Repository navigation
J1 (#53): sealed cross-check corpus for the Omega port of codec v2 - #104
Merged
Merged
Conversation
Collaborator
Author
Independent review (session omega repo issues, reviewer did not author)Verdict: good to merge (no blocking findings). Reviewed head What I checked in code
Findings (none blocking)
Tests rerun (fresh clone, host only,
|
This was referenced Oct 21, 2026
crates/synapse-store/src/j1_corpus.rs (test only) writes and seals evidence/j1-codec-corpus/corpus.bin: 48 bases (28 accepted records and checkpoint contents with their logical form, every record kind on main 1..8; 20 hand-made refusals no mutation reaches) and 55,670 cases (the A1 malformed mutation set) with the Rust outcome of each. The seal is a test; the second test checks every record kind, refusal kind and field id is covered. Kinds 9..11 (open PRs #88, #96, #95) are refused today and slot in as documented. docs/J1_OMEGA_CODEC.md: scope, logical form, file format, reproduction, speed against the section 6.2 bound, limits. The Omega codec that passes the corpus is aien-dev/omega branch feat/synapse-j1-codec. Red: evidence/j1-codec-corpus/red-green/red.txt (no sealed corpus). Green: green.txt; workspace 329 passed, 0 failed; clippy and fmt clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d reseal Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
drakestapleton
force-pushed
the
feat/53-omega-codec
branch
from
October 22, 2026 00:02
c2a41c9 to
7ec55cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #53 together with the Omega PR linked below (ADR 0003 section 9 row 33, J1).
What this adds
crates/synapse-store/src/j1_corpus.rs(test only): writes and sealsevidence/j1-codec-corpus/corpus.bin, one language-neutral file holding every base record and checkpoint content with its logical form, and every A1 malformed case with the outcome the Rust decoder gives. The Rust codec stays the specification by test; a port is judged against these outcomes.u32length of each mutated base): Rust accepts 41,750 (each asserted canonical) and refuses 13,920.docs/J1_OMEGA_CODEC.md: scope, logical form, file format, reproduction, speed against the section 6.2 bound, limits.pub(super)ina1_tests.rs,pub(crate)checkpoint content encode/decode incodec.rs).Parity (Omega side)
aien-dev/omega-mv#531 (repo aien-dev/omega-mv). The Omega codec (
src/synapse/syn_codec.osc, interpreter and native AArch64) gives 28/28 bases decode to the Rust logical form and encode to the Rust bytes, 55,670/55,670 cases give the Rust outcome (class, offset, field, embedded code), all 41,750 accepts re-encode byte identical. Five injected bugs are each caught.Red / green
evidence/j1-codec-corpus/red-green/red.txt(the seal test with no sealed corpus fails).green.txt.cargo test --workspace329 passed, 0 failed, 1 ignored; clippy-D warningsand fmt clean. Crumb recompiled with the tool built from aien-architecture d0f0b95d.Speed (SI units, section 6.2)
Omega native, one core: decode 0.0434 GB/s (23.0 ns per record byte), encode 0.0269 GB/s; fraction of the 273 GB/s memory bound 1.59e-4 and 9.85e-5 (calc:2ef7b34c, calc:a0366c9f).
Limits
🤖 Generated with Claude Code