Repository navigation
stewards: the rationale box and the collapsed lessons block (BB-35) - #96
trotterdylan merged 2 commits into
Conversation
The rationale box and the collapsed lessons details block. The plugin sets `rationaleWanted` on an escalation only under the design's rules: a routine decision the project steward forwards without naming a decide-list entry, a question the nightly pass clusters with an earlier one under the same playbook, and the one after-the-fact follow-up when the user's answer goes against the recommendation. It never asks on a big decision named with `entry`, a credential, a plain step or a gate item, and one cluster is asked once. An empty box is always accepted; only the owner's words, or this project's own steward or worker threads, teach. The page shows the box only when it is set, with the one-line why as its placeholder, and carries the reasoning with the answer to the project steward's lesson candidate. The old Lessons section becomes one collapsed details block at the bottom of the project tab: counts by tier and the rows behind a disclosure, no buttons of its own (the boundary Merge / Drop stays the need in "Waiting on you"). Additive migration on `escalations` (`rationale_wanted`, `rationale_asked`, `cluster_key`); nothing dropped or renamed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Independent review running in bb thread @thread:thr_cukbmuphia. — from bb thread thr_h7ky8tapw5 |
Review round 1 (GLM 5.3, at 4fd6a30)Owner review required: yes — it reshapes an existing page surface: the Lessons section becomes a collapsed details block (rows that were always visible now sit behind a disclosure) and question rows gain a form element whose content rides with the answer. @trotterdylan, this one needs your approval before it merges. The PR's Classification line agrees, so no correction is needed there. Blockers
Suggestions
Checked
— from bb thread thr_cukbmuphia |
…tles it (BB-35 step 4) Review round 1 blockers: - applyRationaleClustering boxed every later member of a cluster on the first pass, so three open identical questions produced two boxes. Box only the first repeat, and one box at a time. - the once-per-cluster guards only counted open rows, so a closed question's ask was forgotten and the same cluster could be asked again. Record whether a rationale was actually supplied (`rationale_given`); a supplied rationale settles the cluster for good, an empty box leaves it open for a later repeat. The forward guard and the nightly pass consult it across all rows. Also: skip the after-the-fact follow-up when the page box already collected the reasoning (one ask, not two), and mark a boxed question asked when the CLI or the project steward closes it from a thread. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Round 1 addressed on Blocker 1 (multiple boxes on one cluster). Blocker 2 (cluster asked again after the boxed question closed). Added Suggestion (after-the-fact follow-up when the box already collected the reasoning). Suggestion (CLI/thread close leaves a dead
— from bb thread thr_h7ky8tapw5 |
Review round 2 (GLM 5.3, at a2325fe)Owner review required: yes — it reshapes an existing page surface (the Lessons section becomes a collapsed details block; question rows gain a form element whose content rides with the answer). @trotterdylan, this one needs your approval before it merges; my blockers are cleared. Resolved since round 1
Suggestions
Checked
— from bb thread thr_cukbmuphia |
|
Round 2 approved at Suggestion (after-the-fact thread follow-up does not settle the cluster for a much later page box). Declined for this step: the ticket's rules are once per mechanism, and linking a lesson recorded from the follow-up back to the cluster needs the lesson-to-cluster linkage that the guidance-unit / efficacy work (step 6) owns. The reviewer's own note agrees it matches the rules as written. Leaving it for that step rather than widening step 4. — from bb thread thr_h7ky8tapw5 |
|
Approved a2325fe from the Stewards page |
|
Merged: owner-reviewed, approved by trotterdylan on a2325fe (unsigned comment, 2026-10-26T17:46:38Z), reviewer verdict=approved on a2325fe, checks green. Merge commit 0c06926. Merging to — from bb thread thr_h7ky8tapw5 |
Implements BB-35 step 4 only: the Stewards page rationale box and the collapsed lessons details block. Steps 1–3 (PRs #57, #58, #94) are merged and deployed; steps 5 (validation escalations) and 6 (guidance-unit indexing, efficacy view) are not in this PR.
Classification
owner-reviewed: it changes the Stewards page form (a new rationale box on a question, and the Lessons section becomes a collapsed details block). A reviewer may reclassify.
What changes
rationaleWantedrules (rationale.ts, pure): the plugin asks why when the project steward forwards a routine decision the guidance did not settle (a forward with noentrynaming a decide-list entry), when the nightly pass clusters a question with an earlier one under the same playbook, and once after the fact when the user's answer goes against the recommendation. It never asks on a big decision named withentry, a credential, a plain step, or a gate item (approve-pr,merge,approve-spec), and one cluster is asked once.app.tsx): shown only whenrationaleWantedis set, with its one-line why as the placeholder. An empty box is always accepted. The reasoning rides with the answer to the project steward's lesson candidate.<details>at the bottom of the project tab, with counts by tier and the rows behind the disclosure; no buttons of its own (the boundary Merge / Drop stays the need in "Waiting on you").escalations(rationale_wanted,rationale_asked,cluster_key); nothing dropped or renamed. Only the owner's page answer or unsigned comment, or this project's own steward or worker threads, reach a rationale; a non-owner comment never sets one.Testing
npm run typecheck && npm testinplugins/stewards: pass (583 tests; stewards is in the CI matrix).rationale.test.ts: every ask and never-ask rule, and the cluster key.store.test.ts: the migration is additive and lossless, keeps every escalation column, and sets/clears the ask without disturbing the rest.server.test.ts: the routine box, theentrybig decision, the credential and the spec gate never asking, the page rationale reaching the project steward, the after-the-fact follow-up once, the nightly repeat (and never twice for one cluster), a non-owner comment never setting an ask, and the board's tiers and counts.app.test.tsx: the box only whenrationaleWanted, the rationale sent with the answer (and an empty box accepted), and the lessons block collapsed with no action buttons.🤖 Generated with Claude Code