Repository navigation
t27b ledger steward: the rules and the job card, so spec PRs stop editing the ledger (Closes #8654) - #8656
Merged
Conversation
…ting the ledger (Closes #8654) specs/tri/t27b/ledger_steward.t27 decides which ratchet findings on a master run the steward applies (UNLISTED, UNEXPECTED PASS, STALE, a cap rise covered by new rows) and which it refuses and reports in one issue per run (UNEXPECTED FAILURE, MOVED, BAD REASON, OVER CAP, a defect, a larger cap rise, a STALE flood). The hand batches #8289, #8548 and #8646 are its test vectors. specs/jobs/t27b_ledger_steward.t27 is the jobs.t27 card: CHECK the run, EFFECT the refusal issue, CHECK appliable, EFFECT ledger issue, compose, PR, auto-merge, WAIT merged. The Queen runtime gaps are in gHashTag/trios#1751. Both specs pass t27c test-report and t27b corpus --reference on the t27c lab with runtime asserts; seals and ledger rows included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gHashTag
enabled auto-merge (squash)
October 10, 2026 14:45
Contributor
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8654
Why
Spec PRs land without a row in
docs/reports/t27b_expectations.json. Master'st27b-native-ratchetthen goes red (UNLISTED) on every PR, and parallel lanes conflict on the file. It was fixed by hand three times in two days: see #8289, #8548 and #8646. This is item 1 of the efficiency plan (see #8637) and option 3 of #8321.The rules:
specs/tri/t27b/ledger_steward.t27The rules use steward.t27's codes and functions:
is_pass,bless_reason,cap_rise_is_new, andentry_codein an invariant.unimplementedmax_not_pass= the recounted non-passunimplemented)One refused finding refuses the whole run: the run gets one issue and no PR. A run that is not a master run, did not count asserts, or was compared against a ledger master no longer has is skipped.
The tests use the hand batches as vectors:
The job card:
specs/jobs/t27b_ledger_steward.t27The card has the shape of release_t27c.t27 and follows jobs.t27:
steward-runsteward-refusals-issuesteward-appliablesteward-ledger-issuesteward-composesteward-pull-requeststeward-auto-mergesteward-mergedThe trigger is a master run of t27b-lab (
latest.json) whose ratchet is red. Master's native ratchet is the second trigger oncet27b-native.ymluploads its run.json and ratchet.json. Every effect goes through the effects journal, keyed by the run's commit.Runtime
The Queen's job runner (gHashTag/trios
queen-jobs.ts, branchqueen-runners) runs only the release card. Its loader, trigger, executors, journal kinds (issue,auto-merge) and credential are missing; the details are in gHashTag/trios#1751. Until it runs, spec PRs keep adding their own rows. The t27b-loop skill says so.Measured on the t27c lab
t27c test-report: 10 of 10 tests, 0 vacuous (ledger_steward); 2 of 2, 0 vacuous (card).t27b corpus --blockers --reference <t27c> --json, under qemu-aarch64: both specs pass on both sides, with 108 and 26 runtime asserts and 0 reference disagreements. All 117 files under specs/tri/t27b still pass the reference.t27c seal --save, and each has its ledger row (pass).max_not_passis unchanged.Only .t27, .json and .md files change.
🤖 Generated with Claude Code