Skip to content

stewards: a by-hand configure step is an escalation, not a README line (BB-267) - #304

Merged
trotterdylan merged 4 commits into
mainfrom
bb/bb-267-configure-step-rule-in-stewards-text-and-thr_yed88ani3f
Nov 10, 2026
Merged

trotterdylan merged 4 commits into
mainfrom
bb/bb-267-configure-step-rule-in-stewards-text-and-thr_yed88ani3f

Conversation

@trotterdylan

@trotterdylan trotterdylan commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Implements BB-267. A by-hand step outside the repos a feature needs to work (an app scope, a webhook, a registry entry, a tailnet rule) must be a configure escalation raised in the spec turn, never a README line or a closing-comment follow-up; at wrap-up it keeps the binding open with followThrough, not folded into the closing comment, and a provide-secret answered "unchanged" raises the step again. A step that adds or widens an app scope, a token or a tailnet rule is forwarded to the user, never decided by the project steward. Additive text only; no configure need behaviour changes.

Merging this moves the bb-plugins pin, builds a new bb-server image and stages a restart for every developer's server. Each developer picks the moment at Restart now, or it lands in the quiet window (03:00-05:00 US Eastern).

Sibling PR: the .bb/stewards/playbooks/linear-tickets.md change on bitcomplete/bb-gate, opened after this one and owner-reviewed.

Classification

owner-reviewed: the diff touches bb-plugins/plugins/stewards/wake.ts and bb-plugins/plugins/stewards/templates.ts, matched by the user entry "The stewards plugin's roles parsing, ready gate and approval and escalation plumbing outside the hard-coded self-widening list".

What changes

  • wake.ts: the settled deployment wrap-up text ("This is the last turn of the work…") keeps the binding open with followThrough until a by-hand configure step is done, raises one the spec turn missed with steward_report { escalate: { kind: "decision", … } }, and says an "unchanged" provide-secret raises the step again.
  • templates.ts: the default playbooks' item-5 credential rule (SECRET_REQUEST, carried into the linear-tickets and github-issues guidance) says the same, including that a step widening access is the user's to grant.
  • skills/stewards/SKILL.md: the credential/configure bullet says the same, and the project steward's spec-approval guidance fails checklist item 5 when a spec leaves a by-hand configure step undocumented as an escalation and forwards a widening step to the user.
  • Tests assert the new wording.

Testing

  • cd bb-plugins/plugins/stewards && npm run typecheck: pass.
  • npm test: pass (1473 tests, 31 files). CI's quality_checks (stewards) job also runs this suite.

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_ckqaz5cfs3.

— from bb thread thr_yed88ani3f

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (Claude Opus 5.5, at eb58b51)

Owner review required: yes. The diff changes plugins/stewards/wake.ts and plugins/stewards/templates.ts, which match the decide list entry "The stewards plugin's roles parsing, ready gate and approval and escalation plumbing outside the hard-coded self-widening list" (decide: user). bb stewards gate gives the same entry and the same rule. The ticket expected the no-review lane, but the change is additive text, and the user entry decides by path, so owner review is right. @trotterdylan, this one needs your approval.

Suggestions

  • wake.ts:275 / templates.ts:13 / SKILL.md:145: "reopen the step rather than settling it" doesn't say how. A steward can't reopen a resolved escalation. The only path is to raise the step again with steward_report { escalate }, which the project steward forwards again with resolution: "done". Saying "raise it again" would leave no room to guess. The project steward gets this wrong today (see sred#59), so wording that names the action is worth having.
  • PR body, Testing: the body says stewards "is not in the CI matrix". It is: .github/workflows/plugins.yaml line 20 lists stewards, and quality_checks (stewards) runs on this PR. Please correct the line.

Checked

  • I first reviewed f85a26f. There, the wake text and the item-5 template told stewards to call steward_report { escalate: { kind: "configure", ... } }. escalate.kind is z.enum(ESCALATION_KINDS) = blocked/decision/scope/conflict/stuck (config.ts:1035, server.ts:9144), so that call fails validation. A steward that followed the instruction would get a rejected report, and the step would land back in prose. eb58b51 fixes this. It says to raise the step with steward_report { escalate } and has the project steward forward it with resolution: "done". That is the real path: store.ts:1668 maps resolutionKind "done" to a configure item, which shows Done on the page (server.ts:501). The tests now assert resolution: "done" instead of the invalid kind.
  • At wrap-up, raising an escalation on a terminal binding keeps it open on its own (BB-60, server.ts:9283-9290). "Keep the binding open with followThrough until it is done" therefore matches what the plugin does.
  • No plugin behaviour changes: the diff is string constants, SKILL.md and test assertions. No schema, store or need-kind code is touched.
  • The new skill.test.ts regexes match SKILL.md line wrapping at eb58b51. I checked the \s+ positions by hand.
  • Tests: I did not run the stewards suite locally this round. My run was stopped before it finished. This verdict relies on CI's quality_checks (stewards) job, which is pending on eb58b51. Do not merge until it is green. The lane gate requires that anyway.
  • Ticket criteria:
    • Slack-scope configure need on the Stewards page: slice 1, not this PR (n/a).
    • Wake text, template and skill carry the rule: met. The playbook is the sibling bb-gate PR, not yet seen.
    • Assertions added for the wrap-up and item-5 wording: met (server.test.ts, config.test.ts, skill.test.ts).
    • Skill tells the project steward to fail item 5 on a spec that leaves a configure step as a README line: met (SKILL.md, spec-approval paragraph).
    • No configure behaviour change: met.

Merging this moves the bb-plugins pin and stages a restart for every developer's server, as the PR body says. This PR is stacked on #303 and should merge after it.

— from bb thread thr_ckqaz5cfs3

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Addressed on the new head 7a7f537:

  • Reviewer A suggestion (name the action for an "unchanged" provide-secret): fixed — the wake text, the default-template rule and the skill now say to raise the step again with steward_report { escalate: { kind: "decision", … } } rather than "reopen" it.
  • Reviewer A suggestion (PR body CI line): fixed — the body now says CI's quality_checks (stewards) runs this suite.
  • Reviewer B blocker 1 (from the sibling playbook review; the same text here): fixed — wake.ts and templates.ts no longer show kind: "configure"; they say steward_report { escalate: { kind: "decision", … } }, forwarded by the project steward with resolution: "done".
  • Reviewer B blocker 2 (the approved spec's forwarding rule): fixed — a step that adds or widens an app scope, a token or a tailnet rule is the user's to grant, forwarded under the "Granting a new credential, token or cluster access …" decision; templates.ts and the skill say so.

Tests: npm run typecheck and npm test pass (1473 tests).

— from bb thread thr_yed88ani3f

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 2 (Claude Opus 5.5, at 7a7f537)

Owner review required: yes. The diff touches plugins/stewards/wake.ts and plugins/stewards/templates.ts, which match the decide list entry "The stewards plugin's roles parsing, ready gate and approval and escalation plumbing outside the hard-coded self-widening list" (decide: user). bb stewards gate matches the same entry. @trotterdylan, this one needs your approval.

Suggestions

  • SKILL.md:149 and :566: the shipped skill quotes this project's bigDecisions text word for word ("…cluster access to any server or agent, or widening…"). The skill ships to every project, and the plugin's own default in decisions.ts:31 reads "…cluster access, or widening…", without "to any server or agent". A project on the defaults would look for an entry under a name it doesn't have. templates.ts already paraphrases ("new credential, token or access, or widening what an existing one can reach"). Doing the same in the skill, or quoting the default, keeps it accurate everywhere.
  • Scope: the new rule that a step adding or widening an app scope, token or tailnet rule "is the user's to grant" goes beyond the ticket. It restates existing policy: AGENTS.md "What reaches the user" and the user-marked credential entry. It came from bb-gate#108's review, so it is fine here. I'm pointing it out so you know the PR says a little more than BB-267 asked for.

Resolved since round 1

  • Suggestion "reopen the step doesn't say how": resolved in 7a7f537. All three places now say "raise that step again with steward_report { escalate: { kind: "decision", … } }".
  • Suggestion "PR body says stewards isn't in the CI matrix": resolved, the body is corrected.

Checked

  • No literal kind: "configure" is left in non-test source (grepped plugins/stewards/*.ts and skills/). Every escalate example now uses kind: "decision", a valid value of ESCALATION_KINDS (config.ts:1035). The forward with resolution: "done" is what files the configure item (store.ts:1668).
  • Wake wrap-up (wake.ts:275): "keep the binding open with followThrough until its configure escalation is done, and if the spec turn never raised one, raise it now". This matches the plugin, where an escalation raised or still open on a terminal binding keeps it open (BB-60, server.ts:9283-9290).
  • The new test assertions match the text at 7a7f537. I checked the SKILL.md wrapping against kind:\s+"decision" and must be raised again\s+rather than settling.
  • Still text-only: string constants, SKILL.md and test assertions. No configure behaviour, schema or store code changes.
  • Tests: CI quality_checks (stewards) passed on eb58b51 and is running on 7a7f537. I did not run the suite locally; my earlier attempt was stopped. The author reports typecheck and npm test passing (1473). Merge only once the stewards job is green on 7a7f537.
  • Ticket criteria:
    • Slack-scope configure need on the Stewards page: slice 1, not this PR (n/a).
    • Wake text, template and skill carry the rule: met. The playbook is bb-gate#108.
    • Assertions for the wrap-up and item-5 wording: met.
    • Skill fails item 5 on a spec that leaves the step as a README line: met.
    • No configure behaviour change: met.

Merging moves the bb-plugins pin and stages a restart for every developer's server. This PR is stacked on #303 and should merge after it.

— from bb thread thr_ckqaz5cfs3

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Approved 7a7f537 from the Stewards page

@trotterdylan
trotterdylan force-pushed the bb/bb-267-configure-step-rule-in-stewards-text-and-thr_yed88ani3f branch from 7a7f537 to b06f646 Compare November 10, 2026 02:18
@trotterdylan
trotterdylan changed the base branch from bb/bb-266-syncneeds-merge-decides-on-running-worker-thr_vc5k4ey9gk to main November 10, 2026 02:19
@trotterdylan
trotterdylan merged commit 6b6cb5e into main Nov 10, 2026
22 checks passed
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: owner-reviewed lane, reviewer approved 7a7f537, checks green, approved by the owner, escalated by the reviewer to the owner.
since then: the head moved to b06f646
merge commit 6b6cb5e
Note: merging this moves the pin and stages a restart for every developer's server (Restart now, or in the 03:00–05:00 ET quiet window).
dispatched bb-server.yaml on bitcomplete/bb-gate@main

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