Skip to content

Apply the question-tool presentation contract to uf.triage-issue, uf.address-feedback, and uf.review-pr #850

Closed

Description

@jflowers

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):

  1. 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).
  2. 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).
  3. 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 duplicate supplementary 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}.md plus the internal/scaffold/assets/opencode/commands/ mirrors in lockstep.
  • Extend the structural pin tests (TestSpecReviewPerFindingGateContracts pattern) 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

Activity

  1. added 3 commits that reference this issue on Oct 28, 2026
    13f6e6a
    d2c6c4f
    8700136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions