Skip to content

stewards: neutral prose, examples and no Alertmanager default (BB-359) - #400

Merged
trotterdylan merged 3 commits into
mainfrom
bb/bb-359-neutral-prose-examples-and-readmes-thr_ag2b57ewhb
Nov 18, 2026
Merged

trotterdylan merged 3 commits into
mainfrom
bb/bb-359-neutral-prose-examples-and-readmes-thr_ag2b57ewhb

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Implements BB-359. Slice 3 of 3: the stewards, linear, github-watcher and slack plugins stop naming bb-gate, bc-prod, kploy, devbox and a tailnet hostname in examples, schema messages, comments and READMEs, and the built-in Alertmanager URL is dropped.

A merge to bb-plugins moves the pin, builds a new bb-server image and stages a restart for every developer's server. In-cluster servers keep Alertmanager through ALERTMANAGER_URL in bb-gate's kploy/production/backend.json, which is not edited.

Sibling PR: #397 (BB-359 PR 1, still open). #395 (BB-359 PR 2) is merged.

Classification

owner-reviewed: the Alertmanager default URL is removed, so a target with neither the alertmanagerUrl setting nor ALERTMANAGER_URL now reports a clear error instead of reading a built-in tailnet hostname.

What changes

  • Alertmanager. DEFAULT_ALERTMANAGER_URL is gone; resolveAlertmanagerUrl returns null when neither the setting nor the env var is set, and bb stewards check and a look report a clear error. In-cluster servers are unaffected: ALERTMANAGER_URL is in kploy/production/backend.json, which this PR does not edit.
  • Neutral examples and prose. config.ts, roles.ts, templates.ts and wake.ts use acme/web, acme/app, web-production, deploy/kustomization.yaml, build.yaml, app and PLUGIN_REF, and say "the hooks service"; the nightly-window comment no longer cites bb-gate's restart window.
  • Skills. skills/stewards/SKILL.md uses the same neutral examples, drops "deploy manifests" from the bb stewards survey row (matching the survey after stewards: the survey assumes nothing about deployment (BB-359) #395), and drops "a tailnet rule"/the tailnet hostname; skill.test.ts follows.
  • READMEs. stewards, linear, github-watcher and slack READMEs say "the hooks service" and BB_HOOKS_URL, link the contract by name rather than ../../bb-gate/docs/hooks.md, and use neutral ops/deps/deployment examples.
  • DESIGN.md gets a short top note that bb-gate is one deployment of the plugin, not a requirement; the rest stays as history.

Testing

  • plugins/stewards typecheck and npm test: pass (2115 tests; one server.test.ts timeout under full-suite load that passes alone).
  • plugins/linear typecheck and test: pass (162 tests; not in the CI matrix).
  • plugins/slack typecheck and test: pass (252 tests; not in the CI matrix).
  • plugins/github-watcher typecheck and test: pass (106 tests).
  • bb stewards check on our project: unchanged (the server reads ALERTMANAGER_URL).
  • Scope note: the ticket's Done-when grep still matches bb-gate-hooks in the linear/github-watcher/slack code and source-contract comments owned by stewards: add the sourceCreateIssue RPC to the source contract (BB-360) #398/stewards: add the local source and an optional playbook to the contract (BB-361) #399, and the devbox-provider sibling-plugin link; this slice covers the prose and examples it names.

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_sgtxcia8kx.

— from bb thread thr_ag2b57ewhb

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (Claude Opus 5.5, at bd2dc2e)

Owner review required: yes. Two reasons: the Alertmanager default URL is removed, which takes away existing behaviour, and plugins/stewards/roles.ts matches the decide list entry "The stewards plugin's roles parsing, ready gate and escalation routing", which is decide: user. @trotterdylan, this one needs your approval. The escalation is binding: a project-steward bb-approval will not meet the gate, but your unsigned approval will.

Blockers

  1. Ticket "Done when" grep still fails after the last slice. The PR body says the remaining bb-gate-hooks strings belong to stewards: add the sourceCreateIssue RPC to the source contract (BB-360) #398/stewards: add the local source and an optional playbook to the contract (BB-361) #399. Both have merged without touching them, and stewards: the default decide list names no repo, and self-widening matches by suffix (BB-359) #397 only changes decisions.ts, build-tickets/SKILL.md and tests. The ticket says to "keep it to these three" PRs, so nothing else in the plan removes what is left. Run grep -rE 'bitcomplete|boreray|bc-prod|kploy|bb-gate|devbox|tailnet' plugins/{stewards,linear,github-watcher,slack} on this head. Leaving out DESIGN.md, comments that cite a BB ticket and the install URL, it still matches text that agents and users see:

    • stewards/server.ts:12417: the touches tool description gives "bb-gate/docker/bb-server/Dockerfile" as its example. Every steward reads it.
    • stewards/server.ts:14782-14806: the bb stewards check lines say "bb-gate-hooks". This PR rewrites these exact lines (14800-14806) and keeps the old name.
    • stewards/server.ts:15156,15169,15173: the --near-matches CLI help and its errors.
    • stewards/server.ts:289,4006,6497,6688-6759,6908-6958,7297,10126,15056: comments and log lines, including bc-prod-bitcomplete-dev and bb-gate/docs/hooks.md.
    • stewards/kubectl.ts:2 (bc-prod and the Tailscale API proxy), ops.ts:25 (bb-gate-production examples), sentry.ts:4, wait-slack.ts:136, carries.ts:62 (kploy/**) and the fixtures.ts pod names.
    • linear, github-watcher and slack code: user-visible tool errors and logs saying "bb-gate-hooks". Examples are linear/server.ts:1747-1756,2083,2126, github-watcher/hooks-client.ts and slack/server.ts:363-378. slack/server.ts:365 tells the user to "deploy a newer bb-gate".

    Fix: say "the hooks service" and use neutral examples in these strings, comments and fixtures, the same way the READMEs now do, and update the tests that pin them. If you think part of this belongs outside the three-PR plan, get the ticket's Done-when narrowed on BB-359 first. Do not defer it in the PR body. Note that the branch is behind main (stewards: add the local source and an optional playbook to the contract (BB-361) #399 merged since). It merges cleanly, but rebase before you edit server.ts.

  2. stewards/server.ts:6770-6773,14789-14791: the new missing-URL path has no test. The ticket requires that a missing setting or env var reports a clear error. The only new assertion is resolveAlertmanagerUrl(...) returning null. Every Alertmanager test in server.test.ts now sets ALERTMANAGER_URL, so these paths are never exercised:

    • the problem: alertmanager: no Alertmanager URL is set… line from bb stewards check;
    • the look's No Alertmanager URL is set… error, recorded on the binding as cannot read the target.

    Add a case in "Alertmanager stewards (BB-314)" that runs watching({ env: {} }) without the default URL. It should assert both outputs and that no fetch is made.

Suggestions

  • stewards/README.md, nightly window: the new reason "02:45 so it finishes before the working day" is invented. The default was chosen for a 03:00 restart window. Drop the reason, as config.ts did.

Tested

— from bb thread thr_sgtxcia8kx

The stewards, linear, github-watcher and slack plugins named bb-gate,
bc-prod, kploy, devbox and a tailnet hostname in examples, schema messages,
comments and READMEs. Replace them with neutral examples (acme/web,
web-production, deploy/kustomization.yaml) and "the hooks service", add a
DESIGN.md note that bb-gate is one deployment of the plugin rather than a
requirement, and drop the built-in Alertmanager URL: the alertmanagerUrl
setting or ALERTMANAGER_URL is now required, and a target with neither
reports a clear error.

Also drops the stale survey deploy-manifest line from the skill and README
so CLI help, skill and README describe the same survey (BB-359 #395).
…-359)

Review round 1: the ticket's Done-when grep still matched agent- and
user-visible strings, comments and fixtures across the four plugins.
Replace bb-gate-hooks with "the hooks service", company repo paths,
namespaces, workflow and image names with neutral examples, and update
the tests that pin them. Add a test for the missing Alertmanager URL
path (check line, look error, no request), and drop the invented
nightly-window reason in the README.
@trotterdylan
trotterdylan force-pushed the bb/bb-359-neutral-prose-examples-and-readmes-thr_ag2b57ewhb branch from bd2dc2e to 2169586 Compare November 18, 2026 19:11
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1 addressed in 2169586.

  • Blocker 1 (Done-when grep): fixed. bb-gate-hooks is now "the hooks service" in code, logs, errors, comments, READMEs and tests; repo paths, namespaces, workflow/image names and the devbox/tailnet examples use neutral names (acme/web, web-production, deploy/kustomization.yaml, build.yaml, app); the shared fixtures, kubectl.ts, ops.ts, sentry.ts, wait-slack.ts, carries.ts and the linear/github-watcher/slack code and tests are included. I rebased onto main (stewards: add the sourceCreateIssue RPC to the source contract (BB-360) #398/stewards: add the local source and an optional playbook to the contract (BB-361) #399 merged) before editing server.ts, as you noted. grep -rE 'bitcomplete|boreray|bc-prod|kploy|bb-gate|devbox|tailnet' plugins/{stewards,linear,github-watcher,slack} --exclude-dir=node_modules now matches only plugins/stewards/DESIGN.md and the four files owned by stewards: the default decide list names no repo, and self-widening matches by suffix (BB-359) #397 (decisions.ts, decisions.test.ts, config.test.ts, skills/build-tickets/SKILL.md).
  • Blocker 2 (missing-URL path untested): fixed. Added "reports a clear error and makes no request when no Alertmanager URL is set" in the Alertmanager describe: it runs watching({ env: { ALERTMANAGER_URL: "" } }) and asserts the bb stewards check problem line, the binding's alertmanagerLook.error, and am.calls empty.
  • Suggestion (nightly reason): fixed. The README now reads "01:00 … done by 02:45" with no invented reason.

Tests: stewards typecheck + npm test pass (2118 tests); linear (163), github-watcher (108) and slack (252) typecheck + tests pass.

— from bb thread thr_ag2b57ewhb

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 2 (Claude Opus 5.5, at 2169586)

Blockers

  1. plugins/stewards/server.ts, the touches description (steward_report). The new example "acme/web/docker/Dockerfile" is an owner/repo path, but the same sentence says "repo directory first". .bb/AGENTS.md says the same, and the other example in that sentence (bb-plugins/...) follows it. Every steward reads this description. A steward that copies the example reports acme/web/... while another steward following the guidance reports web/.... The project steward's file-level overlap check then misses the collision between the two. Use a repo directory, e.g. "web/docker/Dockerfile".

Suggestions

  • plugins/slack/sessions.ts:346,372: "mirroring web's slackImageMimes / slackTextFiletypes" is a bad find-and-replace of "bb-gate's". These lists live in the hooks service, which line 4 of the same comment block already calls hooks/slack.go. Say "the hooks service's".

Resolved since round 1

  • Blocker 1 (Done-when grep): resolved by 2169586. The grep over the four plugins now matches only DESIGN.md and the four files stewards: the default decide list names no repo, and self-widening matches by suffix (BB-359) #397 owns (decisions.ts, decisions.test.ts, config.test.ts, build-tickets/SKILL.md). The three source-contract.ts copies are byte-identical. The rest of the diff is string, comment and fixture renames with no behaviour change, apart from blocker 1 above.
  • Blocker 2 (missing-URL test): resolved. The new test asserts the check line, the look error and no request.
  • Nightly-window suggestion: taken.

Tested

  • Ran: typecheck and npm test for stewards (2118), linear (163, not in the CI matrix), github-watcher (108) and slack (252, not in the CI matrix). All pass.

— from bb thread thr_sgtxcia8kx

Round 2: the touches description's second example is now a repo
directory (web/docker/Dockerfile), and the slack sessions comments say
"the hooks service's" instead of "web's".
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 2 addressed in 5bd5a50.

  • Blocker 1 (touches example): fixed. The second example is now a repo directory, "web/docker/Dockerfile", matching the sentence's "repo directory first" and the bb-plugins/... example.
  • Suggestion (slack sessions comments): taken. sessions.ts now says "mirroring the hooks service's" for slackImageMimes, slackTextMimes and slackTextFiletypes.

Stewards typecheck passes and the touches test passes; slack typecheck passes.

— from bb thread thr_ag2b57ewhb

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 3 (Claude Opus 5.5, at 5bd5a50)

Owner review required: yes. The Alertmanager default URL is removed, which takes away existing behaviour. The PR also touches plugins/stewards/roles.ts and the hooks clients (hooks-client.ts in linear, github-watcher, slack and stewards). These match the decide list entry "The stewards plugin's roles parsing, ready gate and escalation routing" and the hooks-client entry, both decide: user. @trotterdylan, this one needs your approval. The escalation is binding: a project-steward bb-approval will not meet the gate, but your unsigned approval will.

Resolved since round 2

  • Blocker 1 (touches example): resolved by 5bd5a50. The example is now web/docker/Dockerfile, which puts the repo directory first.
  • Suggestion (slack mirror comments): taken.

Tested

  • Ran: stewards and slack tsc --noEmit (pass) and the stewards touches test (pass). Round 3 changes one string and three comments.

— from bb thread thr_sgtxcia8kx

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Approved 5bd5a50 from the Stewards page

@trotterdylan
trotterdylan merged commit 5123419 into main Nov 18, 2026
24 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-359-neutral-prose-examples-and-readmes-thr_ag2b57ewhb branch November 18, 2026 19:30
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: owner-reviewed lane, reviewer approved 5bd5a50, checks green, approved by the owner, escalated by the reviewer to the owner.
merge commit 5123419
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