ttx: one boot-time identity for gate stamp, lint and the ab boot #298

Merged
Grok merged 1 commit from fix/gate-boot-identity into master 2026-10-22 21:09:40 +02:00
Owner

A gate record that ttx lint accepted was refused as STALE at the ttx ab boot. The cause: lint checked the arm as its .toml spells it (max_model_len 262144), while ab boots a separate arm at max_num_seqs 8 / max_model_len 34816. This cost swg820 its standalone visit in batch 4 (LEDGER R-2026-10-22-free-b4).

  • gateparity.boot_view(arm, boot_b, max_model_len): the arm as a bench boot serves it (defaults are ab/sweep32k's: largest B, largest ctx + 2048).
  • stamp() stamps the boot view; check_arm() (lint, CI sweep) checks against it; ab.py builds its separate-arm boot with it.
  • The boot check stays exact (booted=True): a boot at other sizes than the record's is still refused.
  • No arm on master declares a gate record, so nothing goes stale.
  • Out of scope: a gated arm inside a switch group still refuses at boot (fail closed).

Test: test_a_record_lint_accepts_is_not_stale_at_the_ab_boot fails on the old code with the batch-4 refusal; plus exact-boot refusal and other-size stamp tests. ttx unittests 707 OK, checks.sh clean.

Tooling only: no served source changes, no card time needed.

🤖 Generated with Claude Code

A gate record that `ttx lint` accepted was refused as STALE at the `ttx ab` boot. The cause: lint checked the arm as its .toml spells it (max_model_len 262144), while ab boots a separate arm at max_num_seqs 8 / max_model_len 34816. This cost swg820 its standalone visit in batch 4 (LEDGER R-2026-10-22-free-b4). - `gateparity.boot_view(arm, boot_b, max_model_len)`: the arm as a bench boot serves it (defaults are ab/sweep32k's: largest B, largest ctx + 2048). - `stamp()` stamps the boot view; `check_arm()` (lint, CI sweep) checks against it; `ab.py` builds its separate-arm boot with it. - The boot check stays exact (`booted=True`): a boot at other sizes than the record's is still refused. - No arm on master declares a gate record, so nothing goes stale. - Out of scope: a gated arm inside a switch group still refuses at boot (fail closed). Test: `test_a_record_lint_accepts_is_not_stale_at_the_ab_boot` fails on the old code with the batch-4 refusal; plus exact-boot refusal and other-size stamp tests. ttx unittests 707 OK, checks.sh clean. Tooling only: no served source changes, no card time needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ttx: stamp, lint and the ab boot check gate records against one boot-time arm
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 1m11s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m30s
cards-fresh cards: queued (fingerprint has no successful verdict on this PR) fp=7654c74c0edfed94
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 11m18s
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
acdcf13752
Before, a gate record was stamped on the arm as its .toml spells it (serve.max_model_len
262144) and `ttx lint` checked it there, but `ttx ab` boots a separate arm with
max_num_seqs = largest B and max_model_len = largest context + 2048 (34816). Both sizes
are in the served identity and dims, so a record lint accepted was refused as STALE at
the ab boot. That cost swg820 its standalone visit in batch 4 (2026-10-22,
ab20261022T125150Z).

gateparity.boot_view() is now the one boot-time arm: stamp() stamps it, check_arm()
(lint and the CI sweep) checks against it, and ab.py's separate-arm boot is built by it.
The boot itself is checked exactly (booted=True), never re-viewed, so a boot at other
sizes than the record's is still refused; stamp(max_model_len=, boot_b=) covers a gate
meant for another boot. No arm on master declares a gate record, so nothing goes stale.

Switch-group boots (SW.served) add the armswitch tree and env, so a gated arm inside a
switch group still refuses at boot (fail closed); not in scope here.

New test test_a_record_lint_accepts_is_not_stale_at_the_ab_boot fails on the old code
with the batch-4 STALE refusal.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok force-pushed fix/gate-boot-identity from acdcf13752
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 1m11s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m30s
cards-fresh cards: queued (fingerprint has no successful verdict on this PR) fp=7654c74c0edfed94
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 11m18s
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
to 1e155b4220
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m4s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 6m35s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 5m31s
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
cards-fresh cards: no verdict yet fp=4eaf6488cfd0424b
2026-10-22 18:17:32 +02:00
Compare
Grok force-pushed fix/gate-boot-identity from 1e155b4220
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m4s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 6m35s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 5m31s
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
cards-fresh cards: no verdict yet fp=4eaf6488cfd0424b
to dfe1c77ef8
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 9m38s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 15m47s
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
cards-fresh / Re-check cards-fresh on open PRs (push) Successful in 11m40s
2026-10-22 20:52:29 +02:00
Compare
Grok merged commit dfe1c77ef8 into master 2026-10-22 21:09:40 +02:00
Author
Owner

agent-gateway closeout (merged): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (merged): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!298
No description provided.