Skip to content

spec(policy): l2_generation -- gen/json/ is t27c gen-json's backend directory (Closes #10079) - #10082

Merged
gHashTag merged 2 commits into
masterfrom
policy/l2-json-backend
Oct 17, 2026
Merged

gHashTag merged 2 commits into
masterfrom
policy/l2-json-backend

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

Closes #10079

Why

PR #10064 (gen-json, #10050) commits gen/json/igla/own_model_board.json, and its L2 GENERATION check fails:

rule: gen/c/policy/l2_generation.c at origin/master
HAND-MADE COPY  gen/json/igla/own_model_board.json: a backend directory t27c does not write

The plumbing runs the base's copy of the rule, so a PR cannot loosen the rule that judges it. The table entry has to land on master first; after it does, #10064's copy is checked against t27c gen-json specs/igla/own_model_board.t27 byte for byte like every other gen/ copy.

What

  • specs/policy/l2_generation.t27: BACKENDS gains json and SUBCOMMANDS gains gen-json, both at index 4 (FR-001).
    • The invariant the_backend_table_is_pinned now pins both lists to length 5 and pins json to the same index as gen-json.
    • The test a_copy_maps_to_its_backend_and_stem gains two asserts. gen/json/igla/own_model_board.json maps to its backend. gen/jsonl/a.json is still R_UNKNOWN_BACKEND, so a prefix does not count as the backend name.
  • gen/c/policy/l2_generation.c: this is t27c gen-c output, not a hand edit (FR-002).

Lab output (Railway lab, /tmp, PATH=/opt/zig)

$ cargo build --release -p t27c
BUILD_RC=0
$ ./target/release/t27c gen-c specs/policy/l2_generation.t27 > l2_generation.c
5d625a4c4b4a123672dced88d11224a08a1b6f3d8cc5d2e7b558fe2d067233d1  l2_generation.c
42175
--- test report: specs/policy/l2_generation.t27 ---
  tests       22
  pass        22
  FAIL        0
  invariants  2   proved -- comptime, so compiling IS the check
  rate    100.0%
  vacuous passes  0 of 22

The committed gen/c/policy/l2_generation.c has sha256 5d625a4c...33d1 and is 42175 bytes, byte-identical to the lab output above.

Not in this PR

🤖 Generated with Claude Code

…irectory (Closes #10079)

BACKENDS and SUBCOMMANDS gain the pair json / gen-json at index 4,
pinned by the_backend_table_is_pinned. A gen/json/<stem>.json copy is
then checked like every other copy: t27c gen-json specs/<stem>.t27 must
reproduce it byte for byte. gen/jsonl/ stays an unknown backend.

The L2 check runs the base's copy of this rule, so #10064 (gen-json,
#10050) needs this entry on master before its committed
gen/json/igla/own_model_board.json can pass.

gen/c/policy/l2_generation.c is t27c gen-c output from the Railway lab
(sha256 5d625a4c...33d1, 42175 bytes); test report 22/22, 0 vacuous.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-17 18:50:44 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 46
PRs with All Checks Green 4
READY 0
FAILING 46
PENDING 0
NO CHECKS YET 0

These columns do not partition: 0 + 46 + 0 + 0 = 46, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e769ef021713 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

…10079)

spec-guards and coverage reported the seal stale: the spec changed in
the previous commit. Resealed on the Railway lab with
t27c seal specs/policy/l2_generation.t27 --save (zig 0.16.0): 22/22
pass, and the four gen hashes equal the "current" values CI printed
(c 9bde97a5, rust 1381dab7, verilog c8b31e83, zig 1b937eda).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-10-17 19:19:19 UTC

Summary

Status Count
Total Open PRs 50
PRs with Failing Checks 48
PRs with All Checks Green 2
READY 0
FAILING 48
PENDING 0
NO CHECKS YET 0

These columns do not partition: 0 + 48 + 0 + 0 = 48, and there are 50 open PRs. A PR is being counted twice or not at all.

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e769ef021713 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

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.

spec(policy): l2_generation -- gen/json/ is the backend directory of t27c gen-json

1 participant