Repository navigation
stewards: a page per project, and a record of questions put to the user (BB-1) - #22
Conversation
BB-1. The project steward's questions to the user are now rows in a new
questions table (appended to MIGRATIONS), made by forwarding an escalation
to the user and by steward_update { ask }, closed by steward_update
{ resolve: "<question id>", answer } or by the user on the page. A
forwarded question and its escalation close together in one transaction.
The nightly wake carries a record assembled from the tables: the previous
digest with its date, what moved, what waits on the user, what is stuck or
held. Every project steward wake lists the open questions.
The Stewards page (a nav panel, a tab per project) shows waiting on you,
in flight by stage, stuck or held, recently ended and the latest digest.
DESIGN.md marks the Board phase built and describes the record in §12.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent review running in bb thread @thread:thr_edhbz5sea7. _— from bb thread |
Review round 1 (glm-5p3, at 1d8b867)Owner review required: yes — three of the owner-reviewed triggers apply: I read the acceptance criteria from BB-1 with Suggestions
Checked
— from bb thread thr_edhbz5sea7 |
|
LGTM |
- Closing a question about the whole project with answer and guidance closes it and says the guidance was not saved, rather than refusing the call. - The page's in-flight groups come from STAGES in config.ts, sent with the board, not a list hardcoded in app.tsx. - Dates in the project steward's wake are in the project's nightly time zone, not UTC. - A forwarded escalation's question is recorded before the await that delivers it, so the escalation cannot be resolved in between. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Round-1 suggestions (review at 1d8b867), all four fixed in b741a51.
No migration change: Because the head moved, @trotterdylan's LGTM on 1d8b867 no longer covers it, so this needs a fresh owner approval on b741a51. A new review round has been requested from the reviewer. _— from bb thread |
Review round 2 (glm-5p3, at b741a51)Owner review required: yes — unchanged from round 1: the diff still touches a live plugin's runtime code ( Suggestions from round 1
Suggestions
Checked
— from bb thread thr_edhbz5sea7 |
|
@trotterdylan, this PR needs your approval on the current head, b741a51. Your LGTM was on 1d8b867, and the head has moved since then.
A review or LGTM comment on b741a51 is all that's left before merge. Merging restarts every developer's server, either when its owner presses Restart now or in the quiet window. _— from bb thread |
|
LGTM |
|
Merged as 559cc17 (owner-reviewed lane). Gate:
This restarts every developer's server: when its owner presses Restart now, or otherwise in the 03:00–05:00 US Eastern quiet window. BB-2 (#23) can now rebase onto main. Keep its migration after the _— from bb thread |
…o retry Escalations carry delivered_at: the project steward's prompt lists undelivered ones as new and the rest as still open, reads them at send time so one resolved meanwhile is left out, and marks the new ones delivered in the same step. A new migration adds the column and a second backfills it for escalations already open, so they are not re-sent as new. steward_update checks every target (forward, resolve, approve, model) before its first write, so a failed call changes nothing. Resolving an escalation that is already resolved (the binding ended, a retry, an approve that closed it) records the answer after the earlier text instead of failing, and only a resolve that closes an open approval request declines the spec. Guidance identical to the binding's last within five minutes is a retry and is saved once. BB-2 On top of BB-1 (#22): the store's resolve keeps closing the question a forward made, and answerEscalation goes through it, so a late answer to an escalation the ending resolved is appended to its question too. A forwarded question that is already closed is answered through its escalation, and repeating a plain question's close with the same answer is a no-op. The question writes (close, ask) run after every check, like the rest of steward_update. Migrations go after #22's questions table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Implements BB-1. Only
plugins/stewardschanges; nosource-contract.tscopy and no other plugin is touched.What changes
A question record (
store.ts)questionstable, added as one new statement at the end ofMIGRATIONS. No existing statement is edited.steward_update { forward }where the route reachesme), bound to that escalation and its binding. A row is also made by the newsteward_update { ask: { question, context } }, bound to a binding whenbindingis given.store.resolve(an escalation resolved by any path: a decision, the binding ending, the steward deleted) also closes its question.store.answer(a question closed) also resolves its escalation. The two records cannot disagree.steward_update(server.ts)askis for the project steward only. With nobinding, the question is about the project as a whole.resolve: "qst_…"withanswercloses a question. For a forwarded question this decides the escalation the usual way: the answer is saved as guidance and the steward is told.The nightly prompt (
wake.ts,wakeProject)advancedAtfalls in the window, bindings that ended, questions answeredstuckescalations and bindings on holdThe Stewards page (
app.tsx)navPanelat/plugins/stewards/board/<projectId>, with one tab per stewarded project. Its sections:usePolled. The Status section links to the page.stewardsBoard, andstewardsAnswerQuestion, which accepts onlyclientcallers. Closing a forwarded question from the page resolves its escalation and wakes the binding's steward.Docs: DESIGN.md marks the Board phase (§17 step 5) as built, describes the question record and the record-built digest in §12, and replaces "a board, later" in §16. The stewards skill and the README are updated to match.
Tests
npm run typecheckpasses.npm test: 92 passed in 7 files (after the round-1 fixes in b741a51).store.test.ts(new): ask, then answer, round-trip; an answered question never shows as open; a forwarded question closes when its escalation is resolved, and closing the question resolves the escalation.wake.test.ts(new): nightly prompt assembly, checking every section line by line; empty cases; the record is left out of wakes that do not ask for a digest.server.test.ts:steward_updateask(bound and unbound) andresolvewithanswer; forwarding makes a question; closing a forwarded question decides its escalation and tells the steward; closing from the page (callers that are notclientare refused); the board RPC; the nightly wake carries the previous digest and what moved since it.Coordination with BB-2
BB-2 also changes
steward_update,store.resolveandMIGRATIONS. When this PR was opened, BB-2 had not merged. Whichever PR merges second rebases onto main, keeps its migration after the other's, and checks that closing a question throughresolvestill works under BB-2's semantics (re-resolving appends; every target is validated before any write).— from bb thread thr_j5itnpekkx
🤖 Generated with Claude Code