Skip to content

Gate 2: decode strict aggregate snapshots - #10

Merged
hiroki23 merged 1 commit into
mainfrom
feat/gate-two-snapshot
Aug 28, 2026
Merged

Gate 2: decode strict aggregate snapshots#10
hiroki23 merged 1 commit into
mainfrom
feat/gate-two-snapshot

Conversation

@hiroki23

Copy link
Copy Markdown
Contributor

Summary

  • add an incompatible, strict snapshot v3 schema for nominal record and tagged
    type definitions
  • decode Gate 2 aggregate construction, projection, tag test, and payload
    projection instructions into verified Native MIR
  • retain snapshot v2 unchanged for the completed Gate 1 scalar checkpoint
  • reject unknown fields, unsupported versions/operations, Void storage, invalid
    layouts, and MIR invariant failures deterministically
  • add a committed aggregate fixture that decodes, emits, builds, links, and runs
    through pinned QBE 1.3

Verification

  • trb fmt --check .
  • trb check
  • TYPE_RB_NATIVE_ROOT="$PWD" TYPE_RB_NATIVE_QBE=/tmp/qbe-1.3/qbe trb test
    (36 tests, 0 failures)

Issue #7 remains open for the reference TypeRB producer, source differential
corpus, and measurements.

@hiroki23
hiroki23 merged commit 1ec9bcd into main Aug 28, 2026
1 check passed
@hiroki23
hiroki23 deleted the feat/gate-two-snapshot branch August 28, 2026 07:12
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