feat(skills): add 3-way adversarial plan-challenge phase to reflection orchestrators
After a plan/reflection is elaborated and before it executes, three fresh blind sub-agents (correctness / robustness / simplicity) attack it on the big model; the main loop RE-THINKS every aspect a BLOCKER lands (a named plan change, or [deferred]) and re-challenges once if the plan materially changed. Advisory into each skill's existing human gate — the human stays the decider. - lib/challenge-plan.md — reusable phase: fail-safe (never fail open), severity-driven (any single-lens BLOCKER = must-address), RE-THINK loop - agents/plan-challenger.md — challenger role (read-only, big-model per BDR-066) - lib/tests/plan-challenger.test.sh — 41-assertion structure lock - wired into 11 orchestrators: ship-feature/init-project/feat/bugfix (build-plan), onboard/audit-delta/code-clean (proposals), seo/geo/harden/web-validate (fix-bundle) Hardened by dogfooding: 3 blind challengers reviewed this feature's own v1 plan and caught 4 BLOCKERs (fail-open, consensus-buries-lone-finding, wrong model tier vs BDR-066, false on-disk-plan premise) — all fixed here.
This commit is contained in:
@@ -869,6 +869,22 @@ Vérifier que les 4 fichiers `.claude/audits/ONBOARD_REPORT.md`, `.claude/audits
|
||||
|
||||
---
|
||||
|
||||
## STEP 7b — CHALLENGE THE PROPOSALS (before the human gate)
|
||||
The 4 audit files are on disk; `AUDIT_PROPOSALS.md` is the artifact worth
|
||||
attacking before the human spends a gate on it. Run
|
||||
`$HOME/.claude/lib/challenge-plan.md` with `PLAN` =
|
||||
`.claude/audits/AUDIT_PROPOSALS.md`, `KIND` = `proposals`, `SCOPE` = the audited
|
||||
project paths (the `audit_stack` coverage), `CONSTRAINTS` = the STEP 1 archetype
|
||||
profile + the STEP 3 interview constraints (stade, légal, budget perf). Three
|
||||
blind challengers ask whether these are the RIGHT priorities and what the audit
|
||||
under-rated; the main loop RE-THINKS every aspect a BLOCKER lands (a named
|
||||
proposals change re-written into `AUDIT_PROPOSALS.md`, or `[deferred <date>]`)
|
||||
and re-challenges once if the file materially changed. Feed the REVISED
|
||||
proposals + a CHALLENGE SUMMARY into STEP 8. Advisory — the human remains the
|
||||
decider.
|
||||
|
||||
---
|
||||
|
||||
## STEP 8 — VALIDATION GATE ★ MANDATORY STOP
|
||||
|
||||
Afficher à l'utilisateur :
|
||||
@@ -893,6 +909,11 @@ TOP 5 PRIORITÉS :
|
||||
4. [P1 Haute] <titre>
|
||||
5. [P2 Moyenne] <titre>
|
||||
|
||||
CHALLENGE SUMMARY (STEP 7b — 3 lenses):
|
||||
BLOCKERs addressed : <n> — <finding → the named proposals change that closes it>
|
||||
Deferred (human-ack): <list | none>
|
||||
Lenses returned : correctness / robustness / simplicity (NAME any that failed to return)
|
||||
|
||||
Prochaine étape : générer .claude/tasks/TODO.md depuis .claude/audits/AUDIT_PROPOSALS.md approuvé.
|
||||
|
||||
Options :
|
||||
|
||||
Reference in New Issue
Block a user