Repository navigation
stewards, linear: hold untrusted @bb mentions until the owner confirms one by id (BB-26) - #56
Conversation
…s one by id (BB-26) An @bb mention from anyone other than the server's owner no longer runs a model turn. bb core cannot withhold a turn's tools, so the words are parked under a short request id and the plugin answers the Linear session itself with an elicitation naming it. A trusted owner follow-up of the exact form `confirm <id>` releases exactly that request and wakes the steward with it framed as the owner's confirmation; a vague answer releases nothing and is re-asked once, and an unknown, expired or already-released id gets a short reply. The `stewardsSession` contract gains `routed: "held"` and `requestId` in all three copies.
|
Independent review running in bb thread @thread:thr_7wrku84i2n. — from bb thread thr_se7f44jptb |
Review round 1 (GLM 5.3, at 95c1dd6)Owner review required: yes — identity and access handling (the @bb mention trust gate) plus a significant change to existing behaviour of the mention flow. @trotterdylan, this one needs your approval. I read the acceptance criteria from the ticket's spec comment on BB-26 (they matched the spawn prompt). Suggestions
Checked
No blockers. The gate is now structural: untrusted text runs no turn at all, and — from bb thread thr_7wrku84i2n |
- Keep the hardening line in the owner-confirmed wake form too, since that is the path where third-party text reaches a model. - Remove a confirmed request only after a steward has actually taken it, so a delivery failure leaves the confirmation to retry. - Serialize the pending-list read-modify-write so two events cannot lose one. - Tests: a released id names nothing on a second confirm; a confirmation that cannot be delivered stays pending for a retry.
|
Round 1 follow-up, pushed
Re-ran — from bb thread thr_se7f44jptb |
Review round 2 (GLM 5.3, at 05e892e)Owner review required: yes — identity and access handling (the @bb mention trust gate) plus a significant change to existing behaviour of the mention flow. @trotterdylan, this one needs your approval; my verdict is approved. Reviewed Suggestions
Resolved since round 1
Checked
No blockers. Owner approval is the remaining gate. — from bb thread thr_7wrku84i2n |
…-26) A duplicate confirm of the same id could both pass the lookup before the first take and wake the steward twice. Claim it under the pending lock, and put it back only when no steward could be reached, so the confirmation is atomic and still retryable.
|
Round 2 follow-up, pushed
Re-ran — from bb thread thr_se7f44jptb |
Review round 3 (GLM 5.3, at ab591b0)Owner review required: yes — identity and access handling (the @bb mention trust gate) plus a significant change to existing behaviour of the mention flow. @trotterdylan, this one needs your approval; my verdict is approved on this head. Reviewed Suggestions
Resolved since round 2
Checked
No blockers; nothing new beyond the two cosmetic notes above. Owner approval (@trotterdylan) is the remaining gate. — from bb thread thr_7wrku84i2n |
|
Approved ab591b0 from the Stewards page |
Implements BB-26. An
@bbmention from anyone other than the server's owner now runs no model turn: stewards parks it under a short id and the linear plugin answers the session itself with anelicitationnaming it. A trusted owner follow-up of the exact formconfirm <id>releases exactly that request; a vague answer releases nothing.Classification
owner-reviewed: changes existing behaviour of the @bb mention flow and touches identity and access handling.
What changes
stewardsSessionoutput gainsrouted: "held"andrequestIdinsource-contract.ts, copied byte-identically into linear and github-watcher.stewardsonSession: untrusted input is parked underr-xxxxand returnsheldwith nosendTo, no thread and no project steward. A trustedconfirm <id>removes only that pending request and wakes the steward framed as the owner's confirmation. Other owner text while requests wait releases nothing and returnsheldfor a re-ask.linearonSession: handlesheldby posting anelicitation(untrusted) or re-posting the same elicitation once (owner's vague answer);nonewith a named id posts a short reply.formatSessionWakedrops the untrusted branch, keeps the trusted and owner-confirmed forms; stewards skill, README and DESIGN updated.Testing
npm testin plugins/stewards: pass (342 tests; not all in the CI matrix).npm run typecheckin plugins/stewards: pass.npm testin plugins/linear: pass (143 tests).npm run typecheckin plugins/linear: pass.heldwith no send/spawn/write; held with no steward; 3 queued andconfirm <id>releases only that one; "sure" releases none; a non-owner "confirm " releases none.