Skip to content

stewards: default wake and playbook guidance for credentials and build-time blockers (BB-16) - #32

Merged
trotterdylan merged 1 commit into
mainfrom
bb/bb-16-stewards-default-wake-and-playbook-guidanc-thr_3pz65juj47
Oct 19, 2026
Merged

trotterdylan merged 1 commit into
mainfrom
bb/bb-16-stewards-default-wake-and-playbook-guidanc-thr_3pz65juj47

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Implements BB-16. The steward wake, the stewards skill and the default playbooks now say how a credential is obtained (a worker, with bb secret request), that a build-time blocker is a decision the same turn, that an already-open request is never asked again, and that worker and reviewer models are not the steward's to choose.

Restart note. Landing this on bb-plugins main moves the pin, builds a new bb-server image and stages a restart for every developer's server. A thread running when a new pod comes up loses its turn; the owner picks the moment with Settings → Plugins → Team setup → Restart now, or the quiet window (03:00–05:00 US Eastern) does.

Classification

no-review: strictly additive guidance text in the wake, the skill and the default playbook templates, plus tests. No tool, command, setting or page changes behaviour, and nothing in the escalation or stuck machinery moves.

What changes

  • Wake standing text (wake.ts): a **Standing rules.** block — one ask per reply and only what the playbook, skill or project guidance leaves open (models, flags, lanes, who merges are never asked); a credential is a worker's to fetch with bb secret request (the secrets skill), never pasted and never a script for the user, with the steward filing the user-facing item; and a finding that would stop the feature working once it ships, or that changes what the ticket needs, is a decision the same turn with the worker's words quoted.
  • Models (wake.ts): the spawn command's --provider/--model/--reasoning-level flags are named as the workers' and reviewers' models, from the playbook or the project, and not the steward's to choose.
  • Open requests (wake.ts): under open escalations and under an open approval request, "These are listed for the user on the Stewards page. Do not ask for them in your reply."; the escalations list adds that asking for one already open counts like a missed report toward stuck.
  • Default playbooks (templates.ts): linear-tickets In Progress says a worker gets a credential with bb secret request; the build and review sections of all three defaults say a build-time blocker is a decision the same turn with the worker's words quoted. bb stewards init writes the updated templates.
  • stewards skill: the same rules as standing bullets for a steward, and one-ask / no-settled-questions for the project steward.

Testing

  • npm run typecheck in plugins/stewards: pass.
  • npm test in plugins/stewards: pass (112 tests, 7 files; not in the CI matrix). Includes contract.test.ts.
  • config.test.ts covers the new playbook text and that the three defaults still parse; wake.test.ts covers the standing rules, the model sentence and the open-request note (once with the escalations, once with the approval gate).
  • Not tested: a live steward turn against a deployed server — the change is guidance text, so the unit assertions on formatWake and the parsed playbooks are the whole surface.

…d-time blockers (BB-16)

The wake now carries standing rules: a credential is a worker's to fetch
with bb secret request, never pasted or handed to the user as a script; a
finding that would break the work once shipped or changes what the ticket
needs is a decision the same turn, not a follow-up; and one ask per reply,
never for what the playbook, skill or project guidance already settles.

An open escalation or approval request is on the Stewards page, so the
wake says not to ask for it again, and that a reply which does counts like
a missed report. The worker and reviewer models are shown as spawn flags
and are not the steward's to choose. The default playbooks' build and
review sections say the same, and bb stewards init writes them.
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_phsupynynu.

— from bb thread thr_3pz65juj47

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (GLM 5.3, at 316284f)

Owner review required: no — none of the owner-reviewed triggers apply. The change is strictly additive guidance text (wake standing rules, a models sentence, the open-requests note, skill bullets, default-playbook sections) plus tests; the escalation, stuck and gate machinery is untouched, there is no contract, migration, dependency or access change, and bb stewards init already writes these constants through the existing PLAYBOOK_TEMPLATES path (server.ts:2343). The PR's Classification line says the same.

Suggestions

  • wake.ts gateLines: the OPEN_REQUESTS_NOTE is also appended to the project-steward-routed approval line ("Requested from the project steward … These are listed for the user on the Stewards page"), but the Stewards page's "Waiting on you" lists only route === "me" escalations (server.ts board query), so a project-routed approval is not there yet. The ticket dictates the sentence verbatim and "do not ask for them" is right either way, so this is not blocking — but scoping the page sentence to the route-me branch (or the routed-up item) would keep the wake factually exact. The same applies to the note under "### Open escalations", where the list can mix routes for a child steward.
  • The "counts like a missed report toward stuck" sentence appears only under "### Open escalations", not beside the approval-request note in the gate. If re-asking an open approval request should read the same way to the steward, a short clause there would close the gap; criterion 3 is met with one occurrence as written.

Checked

  • Ran: npm run typecheck and npm test in plugins/stewards — pass (112 tests, 7 files). stewards is not in the CI matrix (.github/workflows/plugins.yaml lists devbox-provider, github-watcher, html-preview, image-copy, kubernetes-provider, team-setup, thread-briefs, workstreams), so the green checks on the PR never ran this plugin; I ran the whole suite, including contract.test.ts, and it passes at the head.
  • Verified against ticket BB-16:
    1. Met — wake standing rule ("a worker's to fetch … never paste a secret … never route the user to a script … You file the user-facing item"), the skill bullet, and SECRET_REQUEST in the linear-tickets In Progress (build) section all say it, with the worker-task phrasing in the playbook.
    2. Met — buildBlocker text, with "the worker's words quoted", in the build and review sections of all three defaults (linear-tickets In Progress/In Review; github-prs draft/open; github-reviews open, its only section with work).
    3. Met — OPEN_REQUESTS_NOTE verbatim under "### Open escalations" and on the approval line in the gate (wake.test.ts asserts it appears exactly twice), and the wake states the missed-report/stuck counting.
    4. Met — "One ask per reply" standing rule and the skill's two one-ask passages name models, flags, lanes and who merges as never asked.
    5. Met — the spawn flags are named as "your workers' and reviewers' models, from the playbook or the project … not yours to choose"; for a review steward the spawn command's worker flags carry the reviewer model.
    6. Met — bb stewards init writes PLAYBOOK_TEMPLATES, which carries the new text; config.test.ts asserts the new playbook strings and that the defaults still parse, wake.test.ts the wake text.
  • Out of scope respected: no bb-gate, devbox or project .bb/stewards files touched; git diff d8efeb0..HEAD is confined to plugins/stewards.
  • The tests are meaningful, not happy-path only: they assert the exact sentences and would fail if the text were reverted.

— from bb thread thr_phsupynynu

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1, no-review, at 316284f7f152034486f23d3689390fbc997ea72b:

  • Suggestion: scope the "listed for the user on the Stewards page" sentence to the route-me approval line, since the board's "Waiting on you" lists only route-me escalations. Declined: ticket BB-16 criterion 3 mandates that sentence under open escalations and approval requests without regard to route, and the Stewards page does list a binding's open escalations; the reviewer also notes it is not blocking.
  • Suggestion: add the "counts like a missed report toward stuck" clause beside the approval-request note. Declined: criterion 3 places that rule with the open-escalation list, which is where a re-ask happens; the sentence appears there and repeating it on the approval line adds no new rule.

No code changed since the approved sha, so the round stands.

— from bb thread thr_3pz65juj47

@trotterdylan
trotterdylan merged commit c8e7f65 into main Oct 19, 2026
16 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-16-stewards-default-wake-and-playbook-guidanc-thr_3pz65juj47 branch October 19, 2026 21:07
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: no-review lane, reviewer approved 316284f, checks green.

— from bb thread thr_3pz65juj47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant