Repository navigation
Description
This was generated by AI during triage.
Problem
Both skills/thirdshift-code-review/SKILL.md (used in ticket-run implement reviews) and prompts/spec-review.md (used in spec-run Spec reviews) instruct the Spec reviewer to emit exception-only prose under tight word caps (<400 / <800 words per sub-agent), where passing acceptance criteria are omitted silently.
On larger specs and multi-criterion tickets, "silence = pass" prose allows two recurring false-negative patterns to slip through Spec review:
- Half-wired / backend-only criteria: A required UI element or table column is populated in backend presenter/API props and asserted in a JSON/unit test, so the reviewer sees matching symbols in the diff and moves on, even though the frontend component/template never renders the column.
- Dropped list items inside compound criteria: When an acceptance criterion enumerates several required fields, columns, or states, an unindexed prose pass can miss one omitted item without ever recording which file/layer satisfied each item.
Requiring an explicit 1-for-1 Criterion Matrix (either in the Spec sub-agent's intermediate/structured output or when a ticket/spec exceeds a criterion threshold)—mapping every numbered criterion/sub-item to (a) backend + rendered UI surface, (b) test evidence, and (c) pass/gap verdict before summarizing findings—could force full-stack verification of each criterion. However, adding mandatory per-criterion output changes token usage and review noise across runs and should not be shipped without measuring whether it improves recall without hurting precision on small tickets.
What to decide and test (ready-for-human)
Why a human: Prompt changes to skills/thirdshift-code-review/SKILL.md and prompts/spec-review.md are Experiment-gated, depend on the code-review / spec-review Eval suites (#1516, #1481), and involve a scope choice between spec-run and ticket-run.
- Scope surface (
spec-reviewonly vs. bothspec-reviewandthirdshift-code-review):- Decide whether 1-for-1 criterion accounting belongs first in
prompts/spec-review.md(end-of-Spec review across the full Spec PR, where criterion counts are largest and#1531separates review steps), inskills/thirdshift-code-review/SKILL.mdfor all runs, or gated on specs/tickets with multiple acceptance criteria / UI surfaces. - Decide whether the matrix stays internal to the Spec sub-agent (only surfacing failed rows in the final PR/session summary to preserve
<800-word review brevity) or appears as a compact collapsible<details>checklist in the review output.
- Decide whether 1-for-1 criterion accounting belongs first in
- Eval coverage & Experiment:
- Ensure the
code-review(and/orspec-review) Eval suite includes discriminating tasks covering (a) backend-prop-present / frontend-render-missing UI criteria and (b) one omitted item inside a multi-column / multi-field requirement (alongside#1516). - Run a
thirdshift experimentcomparing the baselineSpecreview prompt against the 1-for-1 criterion-matrix candidate on recall, false-positive rate, and session cost before landing any prompt edit.
- Ensure the
Acceptance criteria
- Scope decision (which review prompt(s) and whether the matrix is sub-agent-internal vs. rendered in
<details>) is settled here. - At least one Eval task in the review suite exercises a partial-layer (backend-wired, UI-unrendered) or multi-item-omission Spec gap.
- A
thirdshift experimentcompares the 1-for-1 criterion-accounting candidate against baselinethirdshift-code-review/spec-review, and results are posted here before adopting or rejecting the prompt change.
Out of scope
- Changing
skills/thirdshift-code-review/SKILL.mdorprompts/spec-review.mdwithout an Experiment verdict. - Growing the baseline
code-reviewEval suite to 20 discriminating tasks (tracked in#1516) or splitting code review out ofimplement(tracked in#1531).
Activity