Repository navigation
stewards: flag a move into build only from spec with the gate really unmet (BB-7) - #25
Merged
trotterdylan merged 1 commit intoOct 19, 2026
Conversation
…unmet (BB-7) "Moved into a build stage before the ready gate passed" fired on every Todo → In Progress, because gateState counts an unreported checklist item as unmet and the steward has not re-reported right after an approval, and on every In Review → In Progress of a worker's normal loop. It is now raised only when the ticket enters build from a spec stage and gateKnownUnmet says so: approval is needed and missing, voided or stale for the current spec, or a checklist item was reported met: false. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Independent review running in bb thread @thread:thr_6gk7j5bmuv. _— from bb thread |
Collaborator
Author
Review round 1 (GLM 5.3, at 466735f)Owner review required: no — none of the owner-reviewed triggers apply. A narrow bug fix in a live plugin's runtime code that makes the change do what it was already meant to do (fire only on a real gate violation); Suggestions
Checked
— from bb thread thr_6gk7j5bmuv |
Collaborator
Author
|
Round 1 suggestions (both declined):
— from bb thread thr_mysi7hun44 |
Collaborator
Author
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.
Implements BB-7. The stewards change "Moved into a build stage (…) before the ready gate passed" fired on every Todo → In Progress, even seconds after an approval. That happened because
gateStatecounts a checklist item the steward has not reported as unmet. It also fired on In Review → In Progress, a normal step in the worker loop. The change is now raised only when a ticket enters build from a spec stage and the gate is really unmet: approval is missing, voided or stale for the current spec, or an item was reportedmet: false.Classification
no-review: a narrow bug fix in a live plugin's runtime code. The change now fires only in the case it was meant for. It touches no cross-repo contract (
source-contract.tsis unchanged), store migration, dependency or infrastructure.What changes
reconcile.ts: newgateKnownUnmet(playbook, ready, specHash). It returns true when approval is needed and is missing, voided or stale for the current spec, or when a checklist item was reportedmet: false. An item that was never reported does not count.server.ts: the change is raised only whenb.stage === "spec"andgateKnownUnmetis true. A move from review back to build never raises it. Thegatelocal that nothing else used is removed.server.test.ts: one case per acceptance criterion. Spec → build raises with no approval, a stale approval, a voided approval, or an item reported unmet. It does not raise with a current approval and no report. Review → build never raises.reconcile.test.ts: testsgateKnownUnmeton its own.Testing
npm testin plugins/stewards: pass (106 tests).npm run typecheckin plugins/stewards: clean.— from bb thread thr_ammbnrj2z6
🤖 Generated with Claude Code