Repository navigation
Description
Summary
Promote the existing "Adversarial re-read of core logic" item from a final-pass checklist box to a required structured output section in the /qa skill, mirrored across .claude/skills/qa/SKILL.md, templates/skills/qa/SKILL.md, and skills/qa/SKILL.md.
Motivation
Surfaced during /fullsolve 570's reflection (2026-05-06):
- First-pass
/qaproduced a cleanREADY_FOR_MERGEverdict. - A user prompt of literally "any gaps?" triggered an adversarial re-read that surfaced 3 real gaps:
- Verbatim issue-body fixtures (
"WARNING: never run \rm -rf /`...", etc.) were not run against the new code, despitefeedback_motivating_example_regression.md` requiring it - The QA "self-dogfood" claim conflated pre-fix bug reproductions with post-fix validations
- A meta-workflow gap (3 wasted same-SHA QA cycles → filed as bug(fullsolve): QA loop re-runs /qa with no state change instead of escalating same-SHA same-verdict cycles #581)
- Verbatim issue-body fixtures (
The /qa SKILL.md already lists "Adversarial re-read of core logic — list anything the structured pipeline didn't surface" as a checkbox under the "Output Verification" section. In practice it's underweighted because:
- It's a single line at the bottom of a long checklist
- It has no dedicated output template section forcing concrete content
- "no gaps found" passes the checkbox without any evidence that a re-read happened
The structured pipeline (Sections 1–6c) is good at catching known failure modes. The Adversarial Re-Read pass is specifically for catching what the structured pipeline doesn't gate on. Making it a required output section forces the second look on every QA, not just when the user prompts.
Proposal
Insert a new section between "Risk Assessment" (Section 5) and "Verdict" (Section 7) named ### Adversarial Re-Read. Add it to the standard QA output template (not the Simple Fix template — re-read is overkill for trivial diffs). Make it a required item in the standard-mode Output Verification checklist with concrete pass criteria.
Section content (sketch)
### Adversarial Re-Read
A pass over the implementation looking for what the structured pipeline above did NOT gate on. Required for non-Simple-Fix verdicts before READY_FOR_MERGE.
**Sub-prompts (answer each, briefly):**
| Question | Finding |
|----------|---------|
| **Verbatim fixtures:** Did you run the implementation against every verbatim motivating-example string from the issue body (code blocks, `**Verify:**` snippets, blockquotes, `## Repro pattern` sections)? | [Yes — list fixtures] / [No — flag as gap] |
| **Evidence framing:** Are any "evidence" claims actually pre-fix bug reproductions vs. post-fix validations? | [No conflation] / [Yes — list which] |
| **Process state:** Is there uncommitted work, divergent branches, or other process state the structured pipeline normalizes away? | [Clean] / [Issues found] |
| **Sibling sites:** Are there nearby sites in the codebase that share the same root cause but weren't scoped into this fix? | [None] / [List with rationale why deferred or fix now] |
| **Out-of-scope but adjacent:** What does the issue body call out as Non-Goals or "left out"? Does any of it actually need to be in scope? | [None] / [List] |
**Findings:** [Concrete enumeration of any gaps surfaced, OR "No gaps found because: <specific reason>"]
A bare "No gaps" without specific reasoning fails output verification.Acceptance Criteria
- AC-1: A new section
### Adversarial Re-Readis added to.claude/skills/qa/SKILL.md's Output Template (Standard Template only, not Simple Fix Template), positioned between "Risk Assessment" and "Verdict" - AC-2: The section includes the 5 sub-prompts (verbatim fixtures, evidence framing, process state, sibling sites, out-of-scope/Non-Goals) as a structured table with finding columns
- AC-3: A "Findings:" line is required after the table, and the SKILL.md text explicitly states that bare "No gaps" without specific reasoning fails output verification
- AC-4: The Standard QA "Output Verification" checklist gains an item: "Adversarial Re-Read - 5 sub-prompts answered, Findings line concrete"
- AC-5: The Verdict Determination Algorithm gains an entry: if Adversarial Re-Read findings include a gap that maps to a missing AC fixture or unverified claim, downgrade verdict to
AC_MET_BUT_NOT_A_PLUS(orAC_NOT_METif the gap is severe — e.g. verbatim fixture not run) - AC-6: Changes mirrored verbatim across all 3 skill copies:
.claude/skills/qa/SKILL.md,templates/skills/qa/SKILL.md,skills/qa/SKILL.md(usenpx tsx scripts/check-skill-sync.tsto verify) - AC-7: CHANGELOG entry under
[Unreleased] / ### Changedreferencing this issue and noting that QA outputs gain an Adversarial Re-Read section before READY_FOR_MERGE
Non-Goals
- Not modifying the Simple Fix output template — adversarial re-read is overkill for trivial diffs and would just be ceremony
- Not adding an automated detector for "did re-read happen?" — the structured section IS the gate; if Claude omits it, output verification fails
- Not removing the existing "Adversarial re-read of core logic" checkbox — it can stay as a redundant safety net under Output Verification, and the new section provides the actual structure
Risks / Open Questions
- Performative-checkbox failure mode: The section becomes another box that gets filled with "No gaps found" without real content. Mitigated by AC-3 (bare "No gaps" without reasoning fails verification) and AC-5 (verdict downgrade if a missed gap maps to a fixture/claim issue), but the strongest mitigation is the prompt structure itself — concrete sub-prompts are harder to hand-wave than "do an adversarial re-read."
- Token cost: Adds ~30-50 lines to standard QA output. Cheap relative to surfacing real gaps — but worth flagging in case the team is on a token diet.
- Overlap with existing sections: Some sub-prompts touch material already covered (e.g., "verbatim fixtures" overlaps with Section 6c's "Motivating-Example Fixture Verification" for skill markdown). The Adversarial Re-Read prompt explicitly extends 6c's verbatim-fixture rule to all change types (per the related memory broadening on
feedback_motivating_example_regression.md), so it's complementary, not duplicative — 6c gates on skill-markdown changes specifically; this section catches the same class of gap for hook regex fixes, CLI changes, schema validators, etc.
Complexity
simple-fix — text-only changes to 3 mirrored SKILL.md files + 1 CHANGELOG line. No code, no tests beyond skill-sync verification.
Self-assessed workflow
spec → exec → qa (no testgen — skill-sync check is the only verification, and it's a one-line script). Standard sequant pattern for skill content changes.
Related
- Surfaced during
/fullsolve 570reflection on 2026-05-06 - Adjacent to bug(fullsolve): QA loop re-runs /qa with no state change instead of escalating same-SHA same-verdict cycles #581 (fullsolve QA loop escalation) — both came from the bug(hooks): pre-tool.sh regexes for destructive/deployment/reset/workflow commands also match inside quoted gh body content #570 retrospective; distinct concerns
- Related memory:
feedback_qa_second_look.md,feedback_qa_first_pass_thoroughness.md,feedback_motivating_example_regression.md(broadened 2026-05-06 to apply beyond skill markdown)
Activity
admarble commentedon May 6, 2026
QA Review for Issue #582
AC Coverage
### Adversarial Re-Readappears once in standard template path, not in simple-fix template path)adversarial_reread_statusadded to step 2 verification gates; step 4 gainsSevere Gap → AC_NOT_MET(positioned after detection_pattern Failed, before skill_verification Failed — preserves the strictness ladder) andGaps Found → AC_MET_BUT_NOT_A_PLUS(positioned before improvement_suggestions branch)qa/SKILL.mdcopiesnpx tsx scripts/check-skill-sync.ts | grep qa/SKILL.mdreturnsqa/SKILL.md: synced; all 3 files report 2907 lines, byte-identical viadiff -q[Unreleased] / Changedreferencing #582Coverage: 7/7 fully met.
Quality Plan Verification
N/A — no Feature Quality Planning section in issue #582 (issue body has standard ACs/Non-Goals/Risks structure; no separate quality plan was requested).
CI Status
Hooks Validationbuild (20.x)build (22.x)validate-skillstypecheckPlugin Structure ValidationSetup Directory Creationvalidate-pluginCI Summary: 0 passed, 8 pending, 0 failed. Verdict downgrades to
NEEDS_VERIFICATIONper the gate (cannot give READY_FOR_MERGE while CI pending).Quality Metrics
any).tssource changed)tscexit 0)Test Coverage Analysis
.claude/skills/qa/SKILL.mdscripts/check-skill-sync.ts) is the sole verificationtemplates/skills/qa/SKILL.mdskills/qa/SKILL.mdCHANGELOG.mdCoverage: Doc-only diff; no runtime test surface. The CI
validate-skillscheck is the relevant gate — pending.Code Review
Strengths:
Severe Gap → AC_NOT_METis inserted afterdetection_pattern_status == "Failed"and beforeskill_verification == "Failed". This preserves the strictness ladder — silent detection pattern failures and adversarial Severe Gaps both block at AC_NOT_MET, while skill-command verification failures are softer at AC_MET_BUT_NOT_A_PLUS.Gaps Found → AC_MET_BUT_NOT_A_PLUSbranch is positioned just beforeimprovement_suggestions.length > 0, which is the correct neighborhood — both are "merge-with-notes" outcomes from non-blocking findings.feedback_motivating_example_regression.mdfrom the skill-markdown-only Section 6c gate to "any change with motivating-example payload" — closes the exact gap I missed on /fullsolve 570 first-pass.Issues:
Suggestions:
Anti-Pattern Detection
Code Patterns
Doc-only diff, no executable code to scan.
Detection Pattern Verification
N/A. No
grep/awk/jq/sedcommands or regex literals added/modified in this diff. All changes are prose markdown + table structure.Skill Command Verification
N/A. No CLI commands added inside the modified skill markdown. The Section 6d prose references
feedback_qa_second_look.mdandfeedback_motivating_example_regression.mdas memory citations, but those are not executable commands.Execution Evidence
N/A. No
scripts/or CLI files modified. The skill-sync verification (npx tsx scripts/check-skill-sync.ts) was executed inline:CHANGELOG Verification
[Unreleased]entryRisk Assessment
/spec,/exec,/loop) have their own output-verification checklists, but they're scoped to phase-specific concerns (plan completeness, AC coverage, etc.) and don't have an equivalent "adversarial re-read" item that's currently checkbox-only.Adversarial Re-Read
(Dogfooding the new Section 6d on the PR that introduces it.)
.claude/skills/qa/SKILL.mdmatches the sketch's column structure (#, Sub-prompt, What to check) — 5 rows, same 5 sub-prompt names. The implementation expanded the "What to check" cell content beyond the issue's sketch (e.g., the issue listed "Verbatim fixtures" as a single line; the implementation added the explicitfeedback_motivating_example_regression.mdcitation and the broadening rationale). That's an additive expansion, not a divergence.qa/SKILL.md: synced. That's a post-implementation validation (skill-sync ran on the new state and reported clean). Not conflated with a bug reproduction — there's no prior failing state to reproduce on a doc-only PR./Users/tony/Projects/worktrees/feature/582-qa-adversarial-reread, branchfeature/582-qa-adversarial-reread, HEADc2be91b, pushed to origin. Working tree clean except for the gitignorednode_modulessymlink (expected). No stash. Fast-forward of60dfd6c(#575) merge happened cleanly via stash/pop on the in-progress CHANGELOG.md edit..claude/skills/,templates/skills/,skills/) but those are mirrors, not siblings — they receive the SAME edit by definition. No other skill SKILL.md has a "checklist-promoted-to-structured" pattern that warrants the same treatment in this PR; this is a single-instance doc structural change.Findings: No severe gaps. One minor scope deviation (Non-Goal #3 partial: trailing checkbox replaced rather than retained alongside) — substantive expansion of the structured item, but technically deviates from the issue body's stated intent. Not blocking; documenting in this Adversarial Re-Read for the audit trail.
Status: Gaps Found
Verdict: NEEDS_VERIFICATION
Why not READY_FOR_MERGE: All 7 ACs MET, build clean, skill-sync clean, but 8/8 CI checks pending (Hooks Validation, build 20.x, build 22.x, validate-skills, typecheck, Plugin Structure Validation, Setup Directory Creation, validate-plugin all IN_PROGRESS or QUEUED). Per the verdict gate, CI pending → NEEDS_VERIFICATION.
Why not AC_MET_BUT_NOT_A_PLUS: The Adversarial Re-Read found one minor scope deviation (Non-Goal #3 partial) — under the new gating, this would normally downgrade to
Gaps Found → AC_MET_BUT_NOT_A_PLUS. However: NEEDS_VERIFICATION is stricter than AC_MET_BUT_NOT_A_PLUS for merge purposes (CI pending dominates), so the verdict reflects the binding constraint. Once CI lands green:READY_FOR_MERGEAC_MET_BUT_NOT_A_PLUSand apply the small fixDocumentation
[Unreleased] / ChangedNext Steps
c2be91b/qainvocation will produce the new structured section (self-validating via dogfood on next real issue)feat(#582): /qa Adversarial Re-Read structured section before READY_F…