Registry Mirror
Skip to content

Conversation

@avrabe

@avrabe avrabe commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

RQ-61-WASMOP (#1057): the proof-inventory universe is now the shipped WasmOp enum — absence is a row, never a missing row

Refs #1057. Implements artifacts/release-v0.61/RQ-61-WASMOP.yaml (flipped to implemented in this PR).

What changed

artifacts/proof-inventory.json schema synth-proof-inventory-v1 → synth-proof-inventory-v2:

  • Universe: the 279 WasmOp variants of crates/synth-core/src/wasm_op.rs (parsed, declaration order — same tokenization as the tested scanner in selector_stack_effect_no_wildcard_946.rs), replacing the 138 wasm_instr constructors. Every op an accepted module can carry now has a row.
  • Row shape: key is "op"; "constructor" remains on every row (the Rocq constructor when modeled, null otherwise) so gale's constructor-keyed matcher reads v2 unchanged for every modeled op. New "modeled": bool; new status value "unmodeled".
  • Join: exact-name join of two parsed shipped artifacts — nothing is CamelCase-mangled, and theorem binding/strength stay fully semantic (unchanged from RQ-60-CFOBLIG (#1057) inc 2: proof-inventory manifest — derive, don't guess theorem names (brif_correct is the 29th member of a class) #1089). A wasm_instr constructor that names no WasmOp variant makes the generator REFUSE (loud red, never a silently dropped row) — verified: all 138 constructors name variants.

The universe numbers (the deliverable)

WasmOp variants (universe)      279
  modeled (Rocq constructor)    138   (all qed; 63 result-correspondence, 75 existence-only — unchanged)
  modeled: false (new rows)     141

gale's six named frontier ops all carry rows now: End, Block, Call, Br, Unreachable, I32Load8U, I32Store8 — "modeled": false, "status": "unmodeled".

Is WasmOp the right universe? (measured, honest scope)

  • WasmOp is "every op an ACCEPTED module can carry", not "every op wasm 3.0 defines": an operator with no variant (reference types, table ops, memory.init/data.drop, atomics, most SIMD) falls through convert_operator's _ => None and loud-skips its function at decode, so it can produce no instance for a consumer to meet. This scope is stated in _meta.honesty.
  • One variant no wasm module contains as an opcode: MultiMemory is decoder-synthesized (wraps a non-zero-memory-index access). It keeps its row, labeled in _meta.honesty.
  • For gale's measurement (instances from synth verify over accepted modules) WasmOp is exactly the right denominator surface.

Gates — all still bite (red-first, each restored green after)

mutation gate that goes RED
hand-edit a row (End modeled:false→true) proof_inventory.py --check byte-compare
plant a WasmOp variant without regenerating --check byte-compare (planted op visible in re-derivation)
rocq_qed_total 630→629 SYNTH-PROOF-INVENTORY-CROSSCHECK-1057 fields-equal AND --check
wasm_op_total 279→278 new SYNTH-PROOF-INVENTORY-UNIVERSE-1057 fields-equal vs the tripwire test's hand-pinned WASM_OP_VARIANT_COUNT
flip one "modeled": false count-eq 141 leg of the same claim
rename a Rocq constructor (BrIf→BrIff) generator refuses on the broken join

New floors (the #1113 class — neither half of the universe can silently vanish): ≥250 variants parsed, duplicate-refuse, every constructor must name a variant, modeled == constructor count, plus the existing ≥100/≥50/≥40/≥1 floors.

Local gates

cargo fmt --check / cargo clippy --workspace --all-targets -- -D warnings / cargo test --workspace --features riscv / claim_check.py (55 ok) / status_evidence_check.py / oracle_wiring_check.py / proof_inventory.py --check — all green on exit codes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L

avrabe and others added 2 commits September 2, 2026 02:53
…d WasmOp enum — 279 rows, 141 modeled:false, absence is a row (schema v2)

The v1 universe was the Rocq model's own constructor set (138), so every op
the model does NOT have — exactly gale's measured 180-instance frontier
(End 64, Block 38, Call 31, byte-memory 34, Br 7, Unreachable 6) — got NO
ROW AT ALL rather than an explicit "unmodeled" row. In a manifest whose
purpose is that absence should be legible, a missing row is the one thing
it must not do.

schema synth-proof-inventory-v2:
- universe: the 279 WasmOp variants of crates/synth-core/src/wasm_op.rs,
  PARSED (same tokenization as the tested no-wildcard scanner), never
  hand-listed; row key is "op"
- "constructor" remains on every row (Rocq constructor when modeled, null
  otherwise) so a v1 consumer keyed on entries[].constructor reads v2
  unchanged for every modeled op — the modeled half is byte-for-byte the
  same 138 ops, 138 qed, 63 result-correspondence
- 141 rows carry modeled:false / status "unmodeled": no constructor means
  no obligation is even statable — the honest tier below existence-only
- the model join is exact-name over two parsed shipped artifacts (nothing
  CamelCase-mangled, binding/strength stay semantic); a constructor naming
  no variant makes the generator REFUSE rather than drop a row
- scope stated in _meta.honesty: WasmOp is every op an ACCEPTED module can
  carry, not every op wasm 3.0 defines (no-variant operators loud-skip at
  the decoder's `_ => None`); MultiMemory is decoder-synthesized

New gates so neither half of the universe can silently vanish (the #1113
floor class): >=250 variants, duplicate-refuse, constructor-subset refuse,
modeled==constructor-count; SYNTH-PROOF-INVENTORY-UNIVERSE-1057 pins the
artifact's wasm_op_total fields-equal to the independently hand-pinned
WASM_OP_VARIANT_COUNT of selector_stack_effect_no_wildcard_946.rs, plus a
count-eq on the 141 modeled:false rows. Red-first, each restored green:
hand-edited row, planted variant without regeneration, rocq_qed 630->629,
wasm_op_total 279->278, one modeled:false flipped, constructor rename
(generator refuses) — every mutation turns its gate red.

Refs #1057

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
…six frontier ops all carry modeled:false rows

Status flip with verified-by evidence: schema v2 manifest regenerated
(279 = 138 modeled + 141 modeled:false; End, Block, Call, Br, Unreachable,
I32Load8U, I32Store8 all present), and every gate proven still red-capable
before pushing.

Refs #1057

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJK5LZZEkV5smCY1jKn18L
@codecov

codecov Bot commented Sep 2, 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 9f3d971 into main Sep 2, 2026
60 checks passed
@avrabe
avrabe deleted the feat/wasmop-universe-1057 branch September 2, 2026 02:34
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