Repository navigation
Description
Context
PR #792 introduced the per-finding spec review decision gate and, with it, a presentation contract for the question tool (uf.review-council.md R1185):
- Print the decision content as plain session text above the question tool (visibility directive — the printed text and the question tool MUST present the same details and options).
- The printed text includes full details with context, per-option reasoning (what each choice does and when it fits), and a recommendation with justification (advisory only — the human decides).
- Present the question tool below with the same options, the recommended option FIRST and labeled "(Recommended)".
The spec review gates now follow this contract. The interactive gates in the sibling commands still use the older, weaker shape — "Inform the user … Use the question tool with options […]" — giving the human a bare options list with no printed-context guarantee, no per-option reasoning, and no recommendation.
Line references below are from the current scaffolded command copies, byte-synced with canonical main.
Gaps
uf.triage-issue
- Phase 4 gate (~L469–505): summary display is required, but there is no same-details/options visibility directive, per-option reasoning, or recommendation.
- Section 4.2 label gates (~L560–594): Path A (create + apply), Path B (apply), and the
duplicatesupplementary gate are bare option lists. - Section 4.3 comment confirmation (~L635–653): the composed comment is not guaranteed to be printed as session text above the question; no reasoning or recommendation.
- Section 4.4 child-issue gates (~L693–707): title/body shown, but no same-options directive, per-option reasoning, or recommendation.
uf.address-feedback
- Section 3.2 author decision (~L684–693): per-item Accept/Modify/Reject/Ask with no visibility directive, per-option reasoning, or recommendation.
- Section 3.4 triage-summary confirm (~L717–720): bare question.
- Phase 4 execution gate (~L731–774): execution summary and session-resume guard exist, but no per-option reasoning or recommendation.
- Section 4.4 diverged-branch rebase (~L840–843) and 4.6 resolve threads (~L948–950): bare questions.
- Section 4.5 post reply comments (~L878–880): the composed replies are never printed as session text before the posting question — the human confirms posting content they have not seen.
uf.review-pr
- Step 3, CI checks pending (~L135–138): bare options, no reasoning or recommendation.
- Step 3.5, diff size advisory (~L175–180): large-diff scope question (plus open-ended follow-up) is bare.
- Step 7, fix-branch offer (~L581): failure context printed above, but no per-option reasoning or recommendation.
- Step 7.5, commit gate (~L616–665): has the MANDATORY GATE, session-resume guard, commit preview, and per-option bullets — but no recommendation and no "(Recommended)"-first ordering.
- Step 8, review-posting offer (~L705) and Step 8a, duplicate review detection (~L717–723): bare options.
- Step 8c, verdict posting gate (~L784–817): has VISIBILITY DIRECTIVE and session-resume guard, but no per-option reasoning, recommendation, or "(Recommended)" ordering.
Proposal
Upgrade every human-facing question gate in these three commands to the PR #792 presentation contract: session text above (same details and options), per-option reasoning, an advisory recommendation, and the recommended option first and labeled "(Recommended)". Open-ended follow-ups (e.g., Modify/Reject/Ask text collection, diff-focus file selection) keep their open-ended form; only the surrounding presentation changes.
Implementation notes
- Canonical files:
.opencode/commands/{uf.triage-issue,uf.address-feedback,uf.review-pr}.mdplus theinternal/scaffold/assets/opencode/commands/mirrors in lockstep. - Extend the structural pin tests (
TestSpecReviewPerFindingGateContractspattern) to cover the upgraded gates — feat: add per-finding spec review decision gate #792's advisories noted the presentation contract is pinned only in prose, not in tests. - Open design question: with the contract spanning 3+ commands, extract it into a shared convention-pack rule that commands reference, or duplicate the prose per gate as feat: add per-finding spec review decision gate #792 did across two commands. The implementing change should decide.
- Recommendation semantics for author-decides flows (address-feedback 3.2): the recommendation is the command's advisory suggestion, clearly labeled non-binding.
Related
- PR feat: add per-finding spec review decision gate #792 (established the pattern); issue Present Recommendations for Findings in Review Council Locally #777 (parent)
- Issue Docs: spec review per-finding decision gate replaces auto-fix consent gate and HIGH/CRITICAL dead-stop #789 (docs tracking for feat: add per-finding spec review decision gate #792); issue docs: document mandatory gate pattern in uf.triage-issue #525 (docs: mandatory gate pattern in uf.triage-issue)
- Out of scope, known adjacent gaps:
uf.review-councilcode-mode gates (Step 7c ~L773, Step 7f ~L969) anduf.finale(13 question-tool references) likely warrant the same treatment.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
feat(commands): apply question-tool presentation contract to 22 gates
docs(uf-fix-ci): apply spec-review findings to change artifacts
docs(uf-fix-ci): apply spec-review findings to change artifacts