Skip to content

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

Merged
admarble merged 1 commit into
mainfrom
feature/99-feat-add-adversarial-self-questioning-to-workfl
Jan 16, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/99-feat-add-adversarial-self-questioning-to-workfl

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds mandatory adversarial self-evaluation sections to /exec, /qa, and /fullsolve skills
  • Forces the LLM to honestly assess its own work before completing each phase
  • Self-evaluation output is visible and auditable in responses

Changes

Each skill now includes a self-evaluation section with questions like:

  • "Did anything not work as expected?"
  • "If this feature broke, would tests catch it?"
  • "What's the weakest part of this implementation?"
  • "Am I reporting success honestly, or just because checks passed?"

The evaluation must be included in the output, making concerns visible to reviewers.

Test plan

  • npm test - 363 tests pass
  • npm run build - Build succeeds
  • Manual: Run /exec on a real issue and verify self-evaluation section appears
  • Manual: Run /qa on a real issue and verify self-evaluation section appears

AC Coverage

AC Description Status
AC-1 /exec includes self-evaluation before completion MET
AC-2 /qa includes self-evaluation before verdict MET
AC-3 /fullsolve includes self-evaluation before closing MET
AC-4 Checkpoint loops until concerns addressed MET (via instructions)
AC-5 Test efficacy reduced to single question MET

Closes #99

🤖 Generated with Claude Code

Add mandatory self-evaluation sections to /exec, /qa, and /fullsolve
skills that force the LLM to honestly assess its own work before
completing each phase.

Each skill now requires answering adversarial questions:
- "Did anything not work as expected?"
- "Would tests catch this breaking?"
- "What's the weakest part?"
- "Am I reporting success honestly?"

The self-evaluation must be included in the output, making it visible
and auditable. If concerns are identified, they must be addressed
before proceeding.

Closes #99

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit 41ef389 into main Jan 16, 2026
@admarble
admarble deleted the feature/99-feat-add-adversarial-self-questioning-to-workfl branch January 16, 2026 21:55
admarble added a commit that referenced this pull request Mar 25, 2026
- Print per-issue completion line with timing and error detail as each
  issue finishes in parallel mode (e.g., "✓ Issue #100 completed (1m 23s)")
- Support non-TTY environments: completion lines use console.log instead
  of \r overwrite, so CI/piped output gets progress visibility
- Fix issueNumber: 0 fallback in rejected-promise handler — use array
  index to map back to the correct issue number
admarble added a commit that referenced this pull request Mar 25, 2026
- Print per-issue completion line with timing and error detail as each
  issue finishes in parallel mode (e.g., "✓ Issue #100 completed (1m 23s)")
- Support non-TTY environments: completion lines use console.log instead
  of \r overwrite, so CI/piped output gets progress visibility
- Fix issueNumber: 0 fallback in rejected-promise handler — use array
  index to map back to the correct issue number
admarble added a commit that referenced this pull request Mar 25, 2026
…419)

* feat(#404): parallel execution as default mode for multi-issue runs

Replace the serial for...of loop with Promise.allSettled + p-limit for
concurrent issue execution. Issues now run in parallel by default with
configurable concurrency (--concurrency N, default: 3).

Key changes:
- Add p-limit dependency for concurrency limiting
- Add --concurrency CLI flag, RunOptions/ExecutionConfig/RunSettings fields
- Refactor LogWriter to Map-based concurrent issue tracking
- Add real-time progress indicator for parallel execution
- Remove unused forceParallel from ExecutionConfig
- Validate concurrency values (must be positive integer)
- Add unit and integration tests (22 tests)

Closes #404

Entire-Checkpoint: 55f951e8c3c4

* fix(#404): resolve terminal output interleaving and concurrent shutdown gaps

AC-3 (Output isolation): Suppress PhaseSpinner creation and per-issue
console output when running in parallel mode. Each concurrent issue now
uses a no-op logger instead of console.log, preventing multiple ora
spinners from competing for stdout. The updateProgress status line in
run.ts remains the sole terminal output source during parallel execution.

AC-7 (Graceful shutdown): Replace ShutdownManager's single
abortController slot with Set<AbortController>. Each concurrent
executePhase call registers its own controller via addAbortController
and removes it via removeAbortController on completion. On SIGINT, all
registered controllers are aborted — not just the last one registered.

Adds 5 new tests for concurrent abort controller management and
parallel config flag.

* fix(#404): per-issue completion summaries and issueNumber fallback fix

- Print per-issue completion line with timing and error detail as each
  issue finishes in parallel mode (e.g., "✓ Issue #100 completed (1m 23s)")
- Support non-TTY environments: completion lines use console.log instead
  of \r overwrite, so CI/piped output gets progress visibility
- Fix issueNumber: 0 fallback in rejected-promise handler — use array
  index to map back to the correct issue number

* docs(#404): add parallel execution feature documentation

Covers usage, configuration, execution modes, troubleshooting,
and non-TTY behavior for the new concurrent issue execution.

* fix(#404): resolve lint warning for unused parameter in parallel log no-op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add adversarial self-questioning to workflow phases

1 participant