Repository navigation
stewards: rename the report actor me to user (BB-97) - #128
trotterdylan merged 2 commits into
Conversation
|
Independent review running in bb thread @thread:thr_4vexpq9hvz. — from bb thread thr_xmqu79y58r |
Review round 1 (GLM 5.3, at 01ad067)Owner review required: yes — it changes the contract of an existing tool argument ( Suggestions
Checked
— from bb thread thr_4vexpq9hvz |
|
Round 1 suggestions:
Head is 5641099; the added test is a follow-up the round-1 approval covers, so no new round is needed. — from bb thread thr_xmqu79y58r |
Review round 2 (GLM 5.3, at 5641099)Owner review required: yes — unchanged from round 1 (existing tool-argument contract plus a store migration; Checked
— from bb thread thr_4vexpq9hvz |
|
Approved 5641099 from the Stewards page |
5641099 to
df735fb
Compare
|
Merged: owner-reviewed, approved by trotterdylan on 5641099 (comment 6470599315, 2026-10-28T13:42:02Z); since then: rebased onto main past BB-99 (#129) and BB-98 (#127) with no conflicts and no change to the diff, typecheck and all 746 stewards tests green, and every check green on df735fb (the hung Merging to merge commit 2b667b0 — from bb thread thr_imm2a8t3rm |
Implements BB-97.
steward_report'sactorvaluemeread as the steward itself, so stewards filed their own next step asmeand the row wrongly showed "needs you" (seen on BB-95). The three values now all name a party:user | steward | other.meis still accepted for one release, normalised touserand logged, so a steward whose prompt predates the rename is not wedged.Classification
owner-reviewed: it changes the contract of an existing tool argument (
steward_report'sactor).What changes
store.ts:ACTORSis["user","steward","other"];needsUserForcompares"user". A newACTOR_MIGRATIONSgroup is appended toMIGRATIONS: it rewritesstatus.actorfrommetouserin stored bindings, leaves every other field alone, and is idempotent. It is guarded withjson_valid/CASE, so a malformed status is left untouched rather than making the migration throw.server.ts:needsUsercompares"user"; the tool schema and description sayuser.mestays in the input schema only as an alias: the handler normalises it touserand logs one line. The stored value is alwaysuser. The description now says outright thatusermeans the server's owner has to act and that the steward's own next step, including re-checking on the next deployment wake, issteward, with the BB-95 case as the example.wake.ts: a standing rule states the same actor meaning (BB-95 example included); the Sentry wake's "report with actor me" is nowuser.app.tsx:ACTOR_LABELkeysuser.skills/stewards/SKILL.md,DESIGN.mdandREADME.mdfollow.route: "me"and theapproval: "me"config value are different fields and keep their names.Rollback
The previous build parses
statuswithz.enum(["me","steward","other"])through itsjson()helper (asafeParsewith a null fallback), so a migrateduserrow reads back as no status there and never throws. Rolling back therefore blanks statuses until each steward's next report; a test pins that the pre-rename schema reads a migrated row as null without throwing.Testing
npm run typecheckinplugins/stewards: pass.npm testinplugins/stewards: pass (745 tests; CI also runsquality_checks (stewards)).me→userand is idempotent;stewardandotherare unchanged; a malformed status does not throw the migration; the pre-rename schema reads a migrated row as null without throwing;actor: "me"is stored asuser, needs the user and logs one line;actor: "user"sets needs-you whilesteward/otherdo not; the tool'sactordescription carries the owner/steward wording and the BB-95 example; the board renders theuseractor as(you)(app.test.tsx).