Skip to content

fix: simplify adversarial self-evaluation to 2-field risk assessment #513

Closed

Description

@admarble

Summary

The adversarial self-evaluation sections in /exec, /qa, and /fullsolve skills are verbose (~30 lines each, 6 questions, 4-6 output fields) but data analysis across 37 real evaluations (workout, matcha-maps repos) shows only 2 fields consistently produce signal that affects verdicts. Simplify to those 2 fields and remove redundant copies.

Evidence (from .entire log analysis)

Sample: 37 filled self-evaluations across workout (32) and matcha-maps (5).

Field Produces signal? Affects verdict?
Likely failure mode Yes — most valuable field Yes, directly
Test efficacy / Not tested Yes — 62% self-rate "Low" Yes, frequently
Verified working Marginal — 51% say "Yes" Rarely
Verdict confidence Filler Never observed
Honest assessment Redundant with above No
Weakest part Overlaps with failure mode Marginal

Verdict distribution: Only 37% are READY_FOR_MERGE. The self-eval IS lowering grades when warranted — the mechanism works, it's just bloated.

Key examples of useful catches:

  • workout feat(#116): add sequant dashboard CLI command #125: Self-eval said "two ACs confirmed missing" → AC_NOT_MET
  • workout rest timer: "52 test stubs exist but all are .skip" → AC_MET_BUT_NOT_A_PLUS
  • matcha-maps layout: Identified data edge case correctly scoped as not-a-code-bug

Key examples of waste:

  • Trivial changes (metadata, string constants) produce "N/A, N/A, None, High" — adds noise, zero value
  • 6 adversarial questions ("Did anything not work?", "Am I reporting success because...") are training wheels — the model is already honest without them

Root Cause

  1. Redundancy: Same ~30-line section copy-pasted into exec, qa, and fullsolve SKILL.md files
  2. Over-prompting: 6 questions + 4-6 output fields when 2 fields capture the signal
  3. No size gate: Runs on every change including 3-line typo fixes
  4. Buried output: Appears after 15 other QA sections — easy to skim past

Solution

Replace the verbose adversarial sections with a focused 2-field "Risk Assessment":

### Risk Assessment (REQUIRED unless SMALL_DIFF)

Before finalizing, state in 2-3 sentences:
1. **Likely failure mode:** How would this break in production?
2. **Not tested:** What gaps exist in test coverage for these changes?

Design decisions

  • Keep it in prompt, not a hook: Hooks can't do semantic reasoning about failure modes. The current mechanism (prompt instructions) is correct — it just needs fewer words.
  • Canonical location: /qa only: QA is the quality gate. Remove from /exec (defers to QA) and /fullsolve (orchestrates QA). Exec gets a lighter version focused on pre-PR confidence.
  • Skip for SMALL_DIFF: QA already has a small-diff fast path — the simplified section respects it.
  • No new skills/agents/hooks: The overcomplexity trap is adding infrastructure for something a shorter prompt solves.

Acceptance Criteria

Simplify QA self-evaluation

  • AC-1: Replace QA adversarial section — In /qa SKILL.md, replace Section 5 "Adversarial Self-Evaluation" (~30 lines, 6 questions, 4-6 fields) with a focused "Risk Assessment" section: 2 fields (Likely failure mode, Not tested), ~8 lines total. Keep the REQUIRED designation and SMALL_DIFF exemption.
  • AC-2: Update QA output templates — Update both Simple Fix and Standard QA output templates to use "Risk Assessment" instead of "Self-Evaluation". Remove the 4-field format, replace with 2-field format.
  • AC-3: Update QA output verification checklist — Change "Self-Evaluation Completed" to "Risk Assessment" in the verification checklist.

Simplify exec self-evaluation

  • AC-4: Replace exec adversarial section — In /exec SKILL.md, replace Section 5 "Adversarial Self-Evaluation" (~25 lines, 6 questions) with a lighter "Pre-PR Confidence Check" section: 2 fields (Weakest part, Coverage gaps), ~8 lines. This is the exec-appropriate version that feeds into QA's risk assessment.
  • AC-5: Update exec output verification checklist — Change "Self-Evaluation Completed" to "Pre-PR Confidence Check" in the verification checklist.

Simplify fullsolve self-evaluation

  • AC-6: Replace fullsolve adversarial section — In /fullsolve SKILL.md, replace Section 4.5 "Adversarial Self-Evaluation" (~20 lines, 4 questions) with a reference to QA's risk assessment: "Risk assessment is performed during QA phase — see QA output above." Remove the redundant questions and output format.
  • AC-7: Update fullsolve output verification checklist — Change "Self-Evaluation Completed" to "Risk Assessment (from QA)" in the verification checklist.

Sync and consistency

  • AC-8: Three-location sync — All changes applied to .claude/skills/, templates/skills/, and skills/ directories.
  • AC-9: Skill Change Review section in QA — Update the QA "Skill Change Review" subsection (conditional on skill file changes) to use the new Risk Assessment framing instead of adversarial self-evaluation framing. Keep the 4 skill-specific prompts (command verified, fields verified, patterns complete, dependencies explicit) — these are useful and separate from the general self-eval.

Non-goals

  • Adding hooks or new infrastructure (wrong tool for semantic reasoning)
  • Adding more fields or questions (the current 6-field version proves more != better)
  • Creating a separate skill/agent for risk assessment (overcomplexity)
  • Changing the QA verdict algorithm (the simplified fields feed into the same verdict logic)

Files to Modify

  • .claude/skills/qa/SKILL.md — Section 5, output templates, verification checklist
  • .claude/skills/exec/SKILL.md — Section 5, verification checklist
  • .claude/skills/fullsolve/SKILL.md — Section 4.5, verification checklist
  • templates/skills/qa/SKILL.md — Mirror
  • templates/skills/exec/SKILL.md — Mirror
  • templates/skills/fullsolve/SKILL.md — Mirror
  • skills/qa/SKILL.md — Mirror
  • skills/exec/SKILL.md — Mirror
  • skills/fullsolve/SKILL.md — Mirror

Activity

  1. admarble commented on Apr 9, 2026

    @admarble
    ContributorAuthor

    Spec Plan

    ACs are well-defined in the issue body. Implementation is straightforward prompt text replacement across 3 skills × 3 locations = 9 files.

    Phases: exec → qa
    Quality Loop: disabled (prompt-only changes)

  2. added a commit that references this issue on Apr 9, 2026
    4948ca9
  3. admarble commented on Apr 9, 2026

    @admarble
    ContributorAuthor

    /fullsolve Complete

    Issue: #513
    Status: READY_FOR_MERGE
    PR: #514

    AC Coverage: 9/9 MET

    AC Description Status
    AC-1 Replace QA adversarial section MET — 33 lines → 8 lines
    AC-2 Update QA output templates MET — both templates updated
    AC-3 Update QA verification checklist MET — 2 instances updated
    AC-4 Replace exec adversarial section MET — 34 lines → 8 lines
    AC-5 Update exec verification checklist MET
    AC-6 Replace fullsolve adversarial section MET — 33 lines → 4-line reference
    AC-7 Update fullsolve verification checklist MET
    AC-8 Three-location sync MET — all 9 files verified identical
    AC-9 Skill Change Review framing MET — "adversarial prompts" → "verification prompts"

    Risk Assessment

    • Likely failure mode: Model might produce the old 4-field format from training data. The new 2-field format is simple enough that examples should anchor behavior quickly.
    • Not tested: No automated tests for skill prompt content. Verification is manual (run /qa and check output format).

    Iterations

    Phase Iterations Status
    Spec 1/1 Complete
    Exec 1/1 Complete
    QA 1/2 Complete (inline)
  4. admarble commented on Apr 9, 2026

    @admarble
    ContributorAuthor

    Documentation Review Complete

    This issue contains documentation-only changes. No additional documentation generation required.

    Files Modified:

    • .claude/skills/qa/SKILL.md — Section 5 replaced, output templates updated
    • .claude/skills/exec/SKILL.md — Section 5 replaced
    • .claude/skills/fullsolve/SKILL.md — Section 4.5 replaced
    • templates/skills/{qa,exec,fullsolve}/SKILL.md — Mirrors
    • skills/{qa,exec,fullsolve}/SKILL.md — Mirrors

    Status:

    ✅ Documentation changes are merged and live.


    Merged via PR #514.

  5. added a commit that references this issue on Sep 9, 2026
    5aec713
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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions