Skip to content

feat: Add adversarial self-questioning to workflow phases #99

Closed

Description

@admarble

Summary

Manual prompts like "Did anything not work as expected?" consistently surface real issues that automated checks miss. Instead of complex checklists, use a simple forced checkpoint via AskUserQuestion.

Evidence

Two recent sessions showed this pattern:

Session 1 (sequant - Issue #85):

  • Question surfaced: Bypass suggestion doesn't work (hook runs before command)
  • Question surfaced: Safeguard missing uncommitted changes check
  • Result: Fixed both issues

Session 2 (workout-admin):

  • Question surfaced: "5 tests passed" but 0 cover changed code
  • Result: Added 16 targeted unit tests

Problem

Current workflow reports success metrics without honest self-evaluation:

  • "Tests pass ✅" → But do they test our changes?
  • "Build succeeds ✅" → But does the feature actually work?
  • "AC met ✅" → But what's the weakest part?

Solution: Forced Checkpoint via AskUserQuestion

Add a required AskUserQuestion call before phase completion. This:

  • Forces a pause (can't be skipped)
  • Gets real human input
  • Requires no new infrastructure
  • Is just prompt engineering

Implementation

Add to /exec, /qa, and /fullsolve skills:

## Phase Completion Checkpoint (Required)

Before outputting your final summary, you MUST call AskUserQuestion:

AskUserQuestion({
  questions: [{
    question: "Quick check before I finish - did anything not work as expected, or any concerns I should address?",
    header: "Checkpoint",
    options: [
      { label: "Looks good", description: "No issues, proceed to completion" },
      { label: "Yes, concerns", description: "I'll describe what needs attention" }
    ],
    multiSelect: false
  }]
})

If user selects "Yes, concerns":
- Read their input
- Address the issues
- Loop back to checkpoint until "Looks good"

Test Efficacy (Simplified)

Instead of a 5-point checklist, add ONE question to the checkpoint for /exec:

question: "Before I finish: (1) Did anything not work as expected? (2) If this feature broke, would the tests catch it?"

This replaces complex efficacy frameworks with honest reflection.

Acceptance Criteria

  • /exec skill includes AskUserQuestion checkpoint before completion
  • /qa skill includes AskUserQuestion checkpoint before verdict
  • /fullsolve skill includes AskUserQuestion checkpoint before closing
  • Checkpoint loops until user confirms "Looks good"
  • Test efficacy reduced to single question, not checklist

Why This Approach

Approach Complexity Effectiveness Chosen
Complex checklist High Low (box-ticking) ❌
Skill instructions only Low Medium (can skip) ❌
AskUserQuestion checkpoint Low High (forced pause) ✅
New hook infrastructure High High ❌ Overkill

Principle: The original question works. Don't over-engineer it.

Files to Modify

.claude/skills/exec/SKILL.md      # Add checkpoint before completion
.claude/skills/qa/SKILL.md        # Add checkpoint before verdict  
.claude/skills/fullsolve/SKILL.md # Add checkpoint before closing

Related

Activity

  1. added a commit that references this issue on Jan 16, 2026
  2. admarble commented on Jan 16, 2026

    @admarble
    ContributorAuthor

    /fullsolve Complete

    Issue: #99
    Status: READY_FOR_MERGE

    Summary

    • AC: 5/5 met
    • Tests: 363/363 passed
    • Build: Success

    Changes Made

    File Change
    .claude/skills/exec/SKILL.md Added Section 5: Adversarial Self-Evaluation
    .claude/skills/qa/SKILL.md Added Section 5: Adversarial Self-Evaluation
    .claude/skills/fullsolve/SKILL.md Added Section 4.4: Adversarial Self-Evaluation

    Self-Evaluation Questions Added

    1. "Did anything not work as expected?"
    2. "If this feature broke, would tests catch it?"
    3. "What's the weakest part?"
    4. "Am I reporting success honestly?"

    Iterations

    • Spec: 1
    • Exec: 2 (adjusted approach from AskUserQuestion to self-evaluation per feedback)
    • QA: 1

    PR: #100


    Ready for human review and merge.

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