Repository navigation
gate(policy): wire pr_budget.t27 into a pull_request_target gate -- draft the 21st open PR, promote held drafts, exempt queen-* (Closes #10074) - #10087
Merged
Conversation
… lowered by gen-c, queen-* of this repo exempt (Refs #10074) The PR budget card (#10067) gains the gate's whole decision: budget() reads one row for the event PR and one per other open PR of the same author, oldest first ("S X N BRANCH"), and prints "draft N" for a PR over OPEN_CAP or "ready N" for the oldest held drafts a freed slot admits, through admit() and promoted(). queen-* branches of gHashTag/t27 are exempt (owner decision 2026-10-18); a fork branch named queen-1 is not. gen/c/policy/pr_budget.c is the unedited t27c gen-c output, sealed. The TRI CLAW inventory gets the pr-budget row (67 workflows, census 62/3/2), regenerated gen/c/claw/gates.c. Two orphaned one-off scripts (scripts/trinity-pellis-pipeline/fix_bugs*.py, 99 lines, zero references) are deleted so the foreign-line total shrinks. Lab (Railway, t27c test-report): pr_budget 19/19, claw gates 18/18, pins 5/5, 0 vacuous. Harness: 21st PR -> "draft 99"; 20th -> nothing; cap 200 -> nothing (negative control); fork queen-1 -> drafted; claw drift "matrix is current", DRIFT without the row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 17, 2026
Contributor
This was referenced Oct 17, 2026
Merged
Merged
Merged
…of a second copy (Refs #10074) duplicate-bodies flagged line_end as a new copy of specs/policy/text_lines.t27. gen-c inlines the imported body, so the generated C stays self-contained. Lab: 19/19, 0 vacuous; seal --verify all MATCH; workflow harness unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
PR DashboardGenerated at: 2026-10-18 02:21:13 UTC
Summary
Seal Status
|
Contributor
PR DashboardGenerated at: 2026-10-18 02:22:15 UTC
Summary
Seal Status
|
…Closes #10074) The local own-language hook denies a new workflow file from an agent, so this one file is committed past lefthook on the owner's instruction in chat, 2026-10-18 ("do everything yourself"), with owner-approved-foreign on #10087. gitleaks run on the file by hand: no leaks. CI own-language, foreign-budget and secret-scan still check it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gHashTag
marked this pull request as ready for review
October 18, 2026 02:25
Contributor
PR DashboardGenerated at: 2026-10-18 02:25:19 UTC
Summary
Seal Status
|
gHashTag
added a commit
that referenced
this pull request
Oct 18, 2026
…n, t27mcp duplicate helpers (Closes #10171) (#10172) * fix(ci): master green again -- 8 stale corpus-ledger rows, census re-pin after pr-budget.yml (Closes #10171) Corpus ratchet: #10101 (seven igla/coder specs) and #10095 (nn/attention) now pass every phase; their rows are dropped and the cap follows 81 -> 73. Re-pinned: bench_proxy 738 -> 696, prm 521 -> 520, benchmark 315 -> 319 (bdd-block-fallback only: #10101 lengthened then-conditions in BDD blocks the parser already skips). Census: #10087 added pr-budget.yml. workflow files 66 -> 67, jobs 87 -> 88, run steps 313 -> 314, bash steps 292 -> 293, path-not-quiet 198 -> 200. Re-pinned with tri census pin --bless. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * spec(t27mcp): examples.t27 uses check_hints' find/has instead of a second copy (Refs #10171) #10157 landed examples.t27 with byte-identical find(), has() and NO_POS from check_hints.t27, so duplicate-bodies on master reports two new groups. examples.t27 now imports t27mcp::check_hints. gen-c still emits both definitions in the one C file the wasm build compiles; 8/8 tests, 0 vacuous. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 18, 2026
Open
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 #10074
Wires the PR budget card (#10067, #10070) into a gate, in the issue-shape pattern: the decision is
.t27, lowered byt27c gen-c; the workflow is a one-line C main around the generated function plusghcalls.What changes
specs/policy/pr_budget.t27:budget(buf, n, out, cap)reads one row for the event PR (O= asks to be ready,C= a slot may have freed) and one row per other open PR of the same author, oldest first (S X N BRANCH;Rready,Hheld draft,Dthe author's own draft;X= 1 for a fork). It printsdraft Nwhenadmit()says HOLD_DRAFT, andready Nfor the oldest held draftspromoted()admits.is_exempt(): aqueen-branch of this repository (owner decision 2026-10-18); a fork branch namedqueen-1is capped like any other. 8 new tests.gen/c/policy/pr_budget.c+.trinity/seals/policy_PolicyPrBudget.json: unedited gen-c output, sealed (seal --verify: all hashes MATCH).specs/claw/gates.t27,specs/claw/gates_pins.t27,gen/c/claw/gates.c,docs/claw/README.md: the TRI CLAW inventory gets thepr-budgetrow (67 workflows, census 62/3/2), regenerated.specs/policy/pr_budget.t27importsline_endfromspecs/policy/text_lines.t27instead of carrying a second copy (duplicate-bodies).scripts/trinity-pellis-pipeline/fix_bugs.py,fix_bugs_v2.pydeleted: orphaned one-off LaTeX fixers (99 lines, zero references; the pattern they rewrite no longer occurs), so the PR's foreign-line total shrinks..github/workflows/pr-budget.yml(39 lines,pull_request_target, sparse checkout of the base branch'sgen/c/policyonly, no PR code runs, never closes a PR): committed past the local lefthook (which denies a new.ymlfrom an agent) on the owner's instruction in chat, 2026-10-18: "do everything yourself";owner-approved-foreignis on this PR. gitleaks run on the file by hand: no leaks. CI own-language, foreign-budget and secret-scan check it as usual.Evidence (Railway lab, t27c built at 063da04; no compiler change since)
t27c test-report: pr_budget 19/19, claw gates 18/18, gates_pins 5/5; 0 vacuous.draft 99; 20th -> nothing; forkqueen-1at the cap ->draft 99; ownqueen-1-> nothing; close event with 17 ready + 5 held ->ready 30,ready 31,ready 32.OPEN_CAP200 -> nothing for the 21st PR and nothing for the forkqueen-1.gh pr listrows (no action taken): next dmitrii-f-t27 PR -> drafted (102 ready); a newqueen-*PR -> exempt; dependabot (5) -> admitted; a close event for dmitrii-f-t27 -> no promotion (still over the cap).matrix is current; without the row:DRIFT.actionlintclean; unclassified workflows 24 <= ceiling 24 (check_pr_branch_filters.py).🤖 Generated with Claude Code