Skip to content

docs(rivet): VCR-DEC-003 — resolve witness provenance offset-domain (#396)#521

Merged
avrabe merged 1 commit into
mainfrom
vcr-dec-003-offset-domain-resolved-396
Jun 26, 2026
Merged

docs(rivet): VCR-DEC-003 — resolve witness provenance offset-domain (#396)#521
avrabe merged 1 commit into
mainfrom
vcr-dec-003-offset-domain-resolved-396

Conversation

@avrabe

@avrabe avrabe commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

Resolves the single open item on the synth-provenance-v1 contract (#396, VCR-DEC-003):
the offset-normalization domain.

Resolved from synth's side, verified from code (crates/synth-core/src/wasm_decoder.rs):
synth's op_offsets are absolute byte offsets into the original .wasm binary
the decoder feeds the whole module to wasmparser (Parser::new(0).parse_all(wasm_bytes),
base 0) and reads per-op offsets via into_iter_with_offsets() (whole-buffer positions,
not function-body-relative). walrus InstrLocId is the same origin, so the witness join
is direct — no per-function header subtraction, no normalization. Pending only witness's
confirmation of the walrus side.

The artifact now carries the real replacement invariant: both tools must key off the same
input .wasm bytes
.

Gate

Behavior-frozen — docs/traceability only, no code or .text change. rivet validate: 0
non-xref errors. Resolution posted on #396 (issuecomment-4813819780).

This unblocks the synth-provenance-v1 emitter (the remaining work is purely synth-internal:
tagging each branch op with its kind through both lowering paths).

🤖 Generated with Claude Code

…396)

The one open item on the synth-provenance-v1 contract (#396) is resolved from
synth's side, verified from code: synth's op_offsets are ABSOLUTE byte offsets
into the original .wasm binary (wasm_decoder.rs feeds the whole module via
Parser::new(0).parse_all + reads per-op offsets via into_iter_with_offsets),
the same origin as walrus InstrLocId — so the join is direct, no normalization.
Replaces the normalization caveat with the real invariant (both tools key off
the same input .wasm bytes). Pending only witness's confirmation of the walrus
side. Behavior-frozen: docs/traceability only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 0a23a09 into main Jun 26, 2026
20 checks passed
@avrabe avrabe deleted the vcr-dec-003-offset-domain-resolved-396 branch June 26, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant