Repository navigation
stewards: load on the bb-server image again, and archive a steward whose last turn outran its ending - #40
Merged
trotterdylan merged 1 commit intoOct 20, 2026
Conversation
…ose last turn outran its ending Two fixes to how a steward thread ends up in the sidebar. The plugin failed to build on every bb-server pod restarted onto image 1438: host.ts (BB-9) imports @get-bb/plugin-sdk/host, but the SDK was only a devDependency, and the image installs plugins with --omit=dev. It is a runtime dependency now, as in multi-repo, the other live plugin with a host entry. finishEnding skips the archive when the steward thread is busy, and nothing retried it, so a steward whose wrap-up turn was still running when its binding ended (BB-9's was, by eight seconds) stayed in the sidebar for good: thread-briefs never archives a steward, and the idle handler returns on an ended binding. finishEnding now records archiveWhenIdle, and the idle that ends that turn archives the thread. Once only, so an owner writing to the ended steward later is not archived under. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Why
The stewards plugin is in an error state on every developer's bb-server that has restarted onto image 1438:
host.ts(added by BB-9, #26) imports@get-bb/plugin-sdk/host, but the SDK was only adevDependency, anddocker/bb-server/Dockerfileinstalls plugin deps with--omit=dev. While it is down no steward is woken and no ticket or PR is managed.Separately, BB-9's own steward (
thr_72ybjk6nbc) was never archived when its binding ended.finishEndingskips the archive while the thread is busy, and its wrap-up turn was still running when the ending arrived eight seconds later. Nothing retried: thread-briefs is told not to archive stewards, and the idle handler returned on an ended binding.What
@get-bb/plugin-sdkmoves todependencies(lockfile regenerated). Verified withnpm ci --omit=devinto a scratch dir:node_modules/@get-bb/plugin-sdkis present.finishEndingrecordsarchiveWhenIdlewhen the thread is busy instead of dropping the archive; thethread.idlethat ends that turn archives it. One-shot, so an owner who writes to the ended steward later is not archived under.server.test.ts.Lane
No-review: a narrow fix that makes stewards do what it was already meant to do (load, and archive its ended steward). No contract, access or infrastructure files touched.
Shipping
Merging moves the bb-gate pin, builds a new
bb-serverimage and stages a restart for every developer's server (Restart now, or the 03:00–05:00 US Eastern window). Until a server restarts onto it, its stewards plugin stays down.npm run typecheckandnpm test(224 tests, 10 files) pass inplugins/stewards.🤖 Generated with Claude Code