Skip to content

Let the review fan-out label or require findings a run reproduced, under one shared rule for running reviewed code #15833

Description

@kyle-sexton

Decision (owner, 2026-11-14 and 2026-11-15; answers researched and recorded 2026-11-15)

Source: Lauren Tan's pstack (cursor/plugins, MIT), pstack/skills/interrogate/SKILL.md:9: "A finding survives only when a run proves it. Report the findings. Do not apply fixes." From map decision #15661.

The owner asked for each interview question to be researched and the recommendation the evidence supports to be taken (2026-11-14). The three questions about when reviewed code may run were the owner's, decided 2026-11-15:

  • Unattended runs execute none of the reviewed code. Attended runs execute each check only after the person says yes to that exact command, the terms /bugs:scan uses today (plugins/bugs/skills/scan/context/verification-gate.md:92-107).
  • Fix's red test is the one exception. Headless /review:fanout fix --yes running its red test is named in the shared rule as a second accepted consent form, with no change in behavior (plugins/review/skills/fanout/context/fix-pass-mode.md:117, :129, :144-151).
  • Who counts as unattended. A run is unattended when the --unattended flag or the environment says so (CLAUDE_CODE_REMOTE set, claude -p, or an autonomous loop). This tightens /bugs:scan, which today reads only the flag.

The rest, from the researched answers:

  • One rule, shipped to both plugins. A contract docs/contracts/run-reviewed-code/ owns the rule, its evidence labels and the gate prompt now in /bugs:scan. scripts/sync-shared-copies.sh copies it into the bugs and review plugins, so each reads its own copy and CI catches drift.
  • Only two things run reviewed code: a check a person approved, and fix's red test. The quality gate's downstream probe stays outside the rule because it runs none: it reads the tree as data and must never import, load or execute anything from it.
  • Who proposes a check. After normalization, one fresh-context gate per finding tries to refute it and, failing that, proposes a check. The gate has no shell tool, so it cannot run anything. The reviewers' coverage instruction is unchanged.
  • Which findings. Rows at or above a severity floor, IMPORTANT by default. Rows below it are labelled not-attempted.
  • Labels. reproduced, verified-by-reading, refuted and not-attempted. unverified keeps its current meaning in /bugs:scan only (a verification level skipped the gate).
  • require. Rows at or above the floor that were not reproduced stay in the findings at low confidence, not acted on, and are listed under Dismissed with the reason. An unattended run opens its report with a line saying nothing could be checked, so it never reads as a clean review.
  • Council. /review:council runs the normalization reference itself rather than going through fan-out, so the proof step goes into that shared reference and council reads the same settings.
  • Settings. reproduce_findings (off by default, label, require) and reproduce_findings_floor, in docs/conventions/review.yaml or the user option; the later layer wins, and the repository layer is skipped when the change under review edits that file. No setting can make code run without a person's yes.

Done when

  • docs/contracts/run-reviewed-code/README.md states the two consent forms, that nothing else runs reviewed code, the unattended test, the downstream-probe exclusion with its ban, the labels and the gate prompt, and is registered in docs/plugin-philosophy.md.
  • scripts/shared-copies.txt registers a copy in the bugs plugin and one in the review plugin, scripts/sync-shared-copies.sh --check passes, and verification-gate.md no longer carries its own wording of the rule.
  • /bugs:scan, /review:fanout and /review:council all treat a run as unattended when --unattended is passed or the environment says so; fan-out and council accept --unattended.
  • The proof stage is in plugins/review/reference/findings-normalization.md after Stage 4, run by fan-out and council; under off the report is unchanged.
  • The gate is dispatched as an agent with Read, Grep and Glob only.
  • In an attended run, each check runs only after a yes to that exact command; --yes, an allow rule, auto mode or a setting never counts as that yes.
  • In an unattended run no check runs, and the report states how many were proposed.
  • Each row at or above the floor carries reproduced, verified-by-reading or refuted; each row below it carries not-attempted; fan-out never writes unverified.
  • Under require, every unreproduced row at or above the floor stays in Findings at low confidence with Act on: no and has a Dismissed line; an unattended run's report opens with the nothing-could-be-checked line.
  • Council's round files and report carry the labels, the Dismissed lines and that opening line.
  • reproduce_findings and reproduce_findings_floor are in the review schema, the plugin's user options and plugins/review/reference/config.md, with the level rule above.
  • plugins/review/skills/quality-gate/context/downstream.md forbids the probe from importing, loading or executing any file from the tree.
  • One eval case runs fan-out with --unattended under require and checks the opening line, the Dismissed reason, and that every planted finding is still listed.
  • docs/conventions/review.yaml sets reproduce_findings: label and passes the setup check.

Out of scope

  • The recorded /app-control:drive run of fan-out under require: moved to Let the pr-verify capture record a command-running skill's drive run #16383 (owner, 2026-11-15), because the capture cannot record a command-running skill yet.

  • The count of gate agents one real fan-out run under label starts in this repository: moved to Let the pr-verify capture record a command-running skill's drive run #16383 (owner, 2026-11-15), because a local drive is denied Bash before its first turn and the capture cannot record a command-running skill yet.

  • A sandboxed runner that would let unattended runs reproduce findings: loosening a security control is the owner's call and its own item.

  • Running /bugs:scan's gates without a shell tool: a follow-up.

  • Any change to fix's red test, its gate, or council's fix rounds.

  • The ecosystem-specialist agent, which no review skill dispatches.

  • Measuring precision over the ground-truth eval fixtures: unattended evals reproduce nothing.

  • An attended run that shows a reproduced row needs a person to approve the check, so it is a step for the owner after merge, not a condition for merging.

Activity

  1. added
    needs-human
    on Nov 13, 2026
  2. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: intent
    Blocked by: none

    I understood this as a request to move the rule for running reviewed code out of /bugs:scan into a shared contract. The review fan-out would then get an off/label/require setting for findings a run reproduced. The issue itself says the contract name, the setting's name and location, and the unattended behaviour under require are still to be locked. It also leaves them to a planning interview. No duplicate or merged fix found.

    1. What does an unattended run report under require, given it can reproduce nothing? RECOMMENDED: list every finding as dismissed, flag the run as "nothing could be reproduced unattended", and never return an empty, passing result. Basis: the issue says unproven findings are never silently dropped.
    2. What are the contract's name and the setting's name and location? RECOMMENDED: a contract under the shared contracts area, named for running reviewed code, with the setting as a fan-out input that /review:council inherits. Basis: the issue's "one rule, two readers" and council-inheritance requirements.

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated triage. A maintainer reviews it.

  3. added
    needs-owner-decision
    needs-triage
    on Nov 13, 2026
  4. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at needs-owner-decision:

    • flagged: intent
    • held by needs-owner-decision
    • held by needs-human
    • no lanes App verdict comment shows whether an earlier verdict was flagged

    Reason: intent

  5. removed
    needs-owner-decision
    needs-triage
    needs-human
    on Nov 15, 2026
  6. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor
    No description provided.
  7. kyle-sexton commented on Nov 18, 2026

    @kyle-sexton
    MemberAuthor

    Capture run recorded for /review:fanout under reproduce_findings: label (asked for by #16387). Posted by an agent session.

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

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions