Repository navigation
stewards: confirm a merge from a deployment that already exists (BB-59) - #86
Conversation
|
Independent review running in bb thread @thread:thr_5bxwsvgzd7. — from bb thread thr_d6kew5gw7r |
Review round 1 (GLM 5.3, at 6e48dfd)Owner review required: yes — it changes I verified the three Blockers
Suggestions
Checked
— from bb thread thr_5bxwsvgzd7 |
…e timeout (BB-59)
|
Round 1 addressed at 820bd19. Blockers
Suggestions
Checks: — from bb thread thr_d6kew5gw7r |
Review round 2 (GLM 5.3, at 820bd19)Owner review required: yes — Resolved since round 1
Suggestions
Checked
— from bb thread thr_5bxwsvgzd7 |
|
Gate: reviewer approved at 820bd19; head is cb0d1f1, a comment-only follow-up (the reviewer's non-blocking suggestion naming the deployments-page assumption, taken) plus no behaviour change. Lane: owner-reviewed. Trigger: Project steward: please record the approval with
— from bb thread thr_d6kew5gw7r |
|
Approved cb0d1f1 from the Stewards page |
|
Merged: owner-reviewed, approved by trotterdylan on cb0d1f1 (comment, 2026-10-26T13:13:06Z); reviewer approved round 2 at 820bd19; checks green on cb0d1f1. Since then: cb0d1f1 is a comment-only follow-up (the reviewer's non-blocking suggestion naming the deployments-page assumption, taken) with no behaviour change. This merge moves the merge commit 774e272 — from bb thread thr_2dpb7tg8sk |
…353) Implements [BB-320](https://linear.app/bit-complete/issue/BB-320). Dependabot added alerts #86–#90 on `plugins/voice-transcription/package-lock.json` — five `hono` advisories (GHSA-3gg2-335m-rxc6, GHSA-h7mg-cq63-vhpq, GHSA-4m76-xfj5-7975, GHSA-4h7h-rv7c-7m2v, GHSA-46wx-v44x-9hh2), all fixed in 4.13.16. The lockfile was at 4.13.14; this raises the `hono` devDependency range to `^4.13.16` and re-resolves it to 4.13.18. PR #352 did the same for the other twelve manifests. > **Restart note:** this merge to `bb-plugins` `main` moves the pin, builds a new `bb-server` image and stages a restart on every developer's server (at *Restart now*, or in the 03:00–05:00 ET quiet window). ## Classification no-review: a lockfile-only patch security bump of an existing devDependency, with no behaviour change. No owner-reviewed trigger applies: the package is already a direct devDependency, and this touches no cross-repo contract, no migration, no production infrastructure and no identity or gate code. ## What changes - `plugins/voice-transcription/package.json`: the `hono` devDependency range goes from `^4.13.13` to `^4.13.16`. - `plugins/voice-transcription/package-lock.json`: the root `hono` range and `node_modules/hono` (4.13.14 → 4.13.18, the latest patch satisfying the new range) change; nothing else in the lockfile diff. Out of scope and untouched: every other plugin, unrelated bumps, and all code. ## Testing - `npm ci --legacy-peer-deps --no-audit --no-fund`: pass. - `npm run --if-present typecheck`: pass. - `npm test`: pass (99 tests, 6 files). - `npm audit --legacy-peer-deps`: no vulnerabilities, no `hono` advisory. - `git diff`: only the two files above; the lockfile diff is the root range and the `node_modules/hono` entry.
Implements BB-59.
A
mergedwatch was only ever confirmed by a laterdeploymentdoorbell, so a deployment that landed before the watch existed (or whose doorbell was missed, e.g. across the server restart everybb-pluginsmerge causes) was never seen: the watch sat until its deadline and surfaced as a timeout. Now the plugin reads the target repo's recent deployments for the playbook's environment through the github plugin's source contract, when amergedwatch is first recorded and on every sweep for a watch still inmergedordeploying, and applies the newest one exactly as a doorbell would.Classification
owner-reviewed: it changes
source-contract.ts(a cross-repo contract entry) and its two byte-for-byte copies, plus the linear, github-watcher and stewards plugins that implement it.What changes
source-contract.ts: a newsourceDeploymentsRPC (repo,environment,limit) returning a repo's recent deployments for one environment, newest first, each with its latest status asstate. Copied byte for byte intoplugins/linearandplugins/github-watcher; stewards'contract.test.tspasses.github-watcher: reads the deployments REST API with the server'sghtoken (GraphQL does not expose deployments) and each deployment's latest status; a repo the token cannot read is anerror, not a throw. Linear answers with an error since it has no deployments.stewards/deploy.ts:applyDeploymentReadpicks the newest deployment for the target and applies it to unsettled watches, recordingdeploymentId,deploymentState,ref,shaandurland waking as a doorbell does. A repeat read of the same deployment/state is not news, and an older deployment never moves a watch backwards. AdeploymentStatefield was added to the watch so the sweep does not re-wake for what it already recorded.stewards/server.ts:readDeploymentsgoes through the github plugin's source contract, neverghin the server;reconcileOncereads and applies after recording a merge and before the timeout check, for any watch stillmergedordeploying. No deployments leaves the deadline and timeout path unchanged. The plugin never evaluatescarries.Testing
npm testin plugins/stewards: pass (518 tests; in the CI matrix). New tests cover: a watch recorded after a carrying deployment exists (woken at once); the sweep picking up a missed doorbell; no deployments (no wake, deadline stands); a failed latest deployment (failure wake); and the read dedupe/ordering rules.npm run typecheckandnpm testin plugins/github-watcher: pass (78 tests). New tests cover thesourceDeploymentsRPC and its parsers.npm run typecheckandnpm testin plugins/linear: pass (143 tests; not in the CI matrix) — the copied contract compiles and the linear stub answers.