Repository navigation
stewards: retry a lost adoption wake for an unthreaded binding (BB-92) - #119
Merged
trotterdylan merged 1 commit intoOct 27, 2026
Conversation
Collaborator
Author
|
Independent review running in bb thread @thread:thr_kvddjjki6g. — from bb thread thr_dbkp674jxh |
Collaborator
Author
Review round 1 (GLM 5.3, at 478c900)Owner review required: no — none of the owner-reviewed triggers apply. This is a narrow bug fix that makes an existing behaviour do what it was already meant to do (retry a lost adoption wake), in one live plugin, with no contract, identity, infrastructure or default change. No Suggestions
Checked
_— from bb thread thr_kvddjjki6g |
Collaborator
Author
|
Round 1 suggestion addressed:
— from bb thread thr_dbkp674jxh |
trotterdylan
deleted the
bb/bb-92-wake-unthreaded-ticket-bindings-as-adopted-thr_dbkp674jxh
branch
October 27, 2026 19:42
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-92. A ticket or pull-request binding gets its steward thread on its first wake, forced once with reason
adoptedright after adoption. When that first reconcile exits before the wake (a transient null config read, for example), the binding keepsthreadId === nulland no later sweep retries. The ticket path computed its wake reason asforcealone, unlike the ops, deps and sentry paths, which fall back toadoptedwhileb.threadId === null. This makes the ticket/PR path do the same, so a lost adoption wake is retried on the next sweep, and adds a debug log on the silentconfig === nullexit.Classification
no-review: narrow bug fix that makes an existing behaviour do what it was already meant to do (retry a lost adoption wake), in one live plugin, with no contract, identity, infrastructure or default change.
What changes
plugins/stewards/server.ts: the ticket/PR reconcile path now computes its wake reason asforce ?? (b.threadId === null ? "adopted" : null), matching the ops, deps and sentry paths. Bindings that already have a thread are woken exactly as before.plugins/stewards/server.ts: a debug-level log on the silentconfig === nullexit, naming the project and entity.plugins/stewards/server.test.ts: a new case that adopts a ticket binding whose first reconcile exits before the wake (the config read returns null once), then runs a plain reconcile and asserts the steward thread is spawned andwokeAtis set.Testing
npm testinplugins/stewards: pass (702 tests; thestewardsentry in the CI matrix covers it).npm run typecheckinplugins/stewards: pass.server.tslocally).