@lvlup-sw/exarchos 2.4.3 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +7 -2
- package/AGENTS.md +2 -2
- package/README.md +91 -57
- package/agents/.gitkeep +0 -0
- package/agents/fixer.md +62 -0
- package/agents/implementer.md +68 -0
- package/agents/reviewer.md +50 -0
- package/commands/dogfood.md +31 -0
- package/commands/ideate.md +1 -1
- package/commands/oneshot.md +178 -0
- package/commands/plan.md +1 -1
- package/commands/prune.md +90 -0
- package/commands/review.md +58 -0
- package/dist/exarchos.js +582 -142
- package/hooks/hooks.json +8 -0
- package/package.json +18 -6
- package/scripts/sync-versions.sh +31 -22
- package/skills/{brainstorming → claude/brainstorming}/SKILL.md +16 -0
- package/skills/{brainstorming → claude/brainstorming}/references/design-template.md +9 -0
- package/skills/{cleanup → claude/cleanup}/SKILL.md +6 -0
- package/skills/{debug → claude/debug}/SKILL.md +41 -0
- package/skills/{debug → claude/debug}/references/hotfix-track.md +12 -49
- package/skills/{debug → claude/debug}/references/investigation-checklist.md +3 -3
- package/skills/{debug → claude/debug}/references/thorough-track.md +12 -42
- package/skills/{delegation → claude/delegation}/SKILL.md +128 -40
- package/skills/{delegation → claude/delegation}/references/agent-teams-saga.md +4 -1
- package/skills/claude/delegation/references/fix-mode.md +118 -0
- package/skills/{delegation → claude/delegation}/references/implementer-prompt.md +29 -1
- package/skills/{delegation → claude/delegation}/references/parallel-strategy.md +1 -1
- package/skills/{delegation → claude/delegation}/references/state-management.md +33 -0
- package/skills/{delegation → claude/delegation}/references/troubleshooting.md +2 -2
- package/skills/{delegation → claude/delegation}/references/workflow-steps.md +6 -10
- package/skills/{delegation → claude/delegation}/references/worktree-enforcement.md +13 -7
- package/skills/claude/dogfood/SKILL.md +235 -0
- package/skills/claude/dogfood/references/report-template.md +109 -0
- package/skills/claude/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/{git-worktrees → claude/git-worktrees}/SKILL.md +6 -9
- package/skills/{implementation-planning → claude/implementation-planning}/SKILL.md +32 -27
- package/skills/claude/implementation-planning/references/task-template.md +63 -0
- package/skills/{implementation-planning → claude/implementation-planning}/references/testing-strategy-guide.md +22 -1
- package/skills/{implementation-planning → claude/implementation-planning}/references/worked-example.md +2 -2
- package/skills/claude/oneshot-workflow/SKILL.md +468 -0
- package/skills/claude/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/claude/prune-workflows/SKILL.md +290 -0
- package/skills/claude/prune-workflows/references/safeguards.md +74 -0
- package/skills/{quality-review → claude/quality-review}/SKILL.md +105 -10
- package/skills/{quality-review → claude/quality-review}/references/auto-transition.md +1 -1
- package/skills/claude/quality-review/references/axiom-integration.md +135 -0
- package/skills/{refactor → claude/refactor}/SKILL.md +32 -39
- package/skills/{refactor → claude/refactor}/references/doc-update-checklist.md +2 -3
- package/skills/{refactor → claude/refactor}/references/explore-checklist.md +4 -6
- package/skills/{refactor → claude/refactor}/references/overhaul-track.md +20 -50
- package/skills/{refactor → claude/refactor/references}/phases/polish-implement.md +2 -2
- package/skills/{refactor → claude/refactor/references}/phases/polish-validate.md +1 -1
- package/skills/{refactor → claude/refactor}/references/polish-track.md +18 -46
- package/skills/{shepherd → claude/shepherd}/SKILL.md +42 -10
- package/skills/{shepherd → claude/shepherd}/references/fix-strategies.md +1 -2
- package/skills/claude/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/{spec-review → claude/spec-review}/SKILL.md +48 -10
- package/skills/{spec-review → claude/spec-review}/references/worked-example.md +1 -1
- package/skills/{synthesis → claude/synthesis}/SKILL.md +72 -10
- package/skills/{synthesis → claude/synthesis}/references/github-native-stacking.md +3 -4
- package/skills/{synthesis → claude/synthesis}/references/synthesis-steps.md +11 -13
- package/skills/{workflow-state → claude/workflow-state}/SKILL.md +50 -6
- package/skills/{workflow-state → claude/workflow-state}/references/mcp-tool-reference.md +5 -5
- package/skills/{workflow-state → claude/workflow-state}/references/phase-transitions.md +28 -3
- package/skills/codex/brainstorming/SKILL.md +182 -0
- package/skills/codex/brainstorming/references/design-template.md +107 -0
- package/skills/codex/brainstorming/references/worked-example.md +58 -0
- package/skills/codex/cleanup/SKILL.md +169 -0
- package/skills/codex/cleanup/references/merge-verification.md +40 -0
- package/skills/codex/debug/SKILL.md +247 -0
- package/skills/codex/debug/references/hotfix-track.md +105 -0
- package/skills/codex/debug/references/investigation-checklist.md +217 -0
- package/skills/codex/debug/references/rca-template.md +150 -0
- package/skills/codex/debug/references/state-schema.md +294 -0
- package/skills/codex/debug/references/thorough-track.md +171 -0
- package/skills/codex/debug/references/triage-questions.md +155 -0
- package/skills/codex/debug/references/troubleshooting.md +47 -0
- package/skills/codex/delegation/SKILL.md +353 -0
- package/skills/codex/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/codex/delegation/references/agent-teams-saga.md +254 -0
- package/skills/codex/delegation/references/fix-mode.md +118 -0
- package/skills/codex/delegation/references/fixer-prompt.md +174 -0
- package/skills/codex/delegation/references/implementer-prompt.md +401 -0
- package/skills/codex/delegation/references/parallel-strategy.md +124 -0
- package/skills/codex/delegation/references/pbt-patterns.md +172 -0
- package/skills/codex/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/codex/delegation/references/rationalization-refutation.md +15 -0
- package/skills/codex/delegation/references/state-management.md +84 -0
- package/skills/codex/delegation/references/testing-patterns.md +146 -0
- package/skills/codex/delegation/references/troubleshooting.md +109 -0
- package/skills/codex/delegation/references/worked-example.md +104 -0
- package/skills/codex/delegation/references/workflow-steps.md +131 -0
- package/skills/codex/delegation/references/worktree-enforcement.md +71 -0
- package/skills/codex/dogfood/SKILL.md +235 -0
- package/skills/codex/dogfood/references/report-template.md +109 -0
- package/skills/codex/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/codex/git-worktrees/SKILL.md +193 -0
- package/skills/codex/git-worktrees/references/commands-reference.md +78 -0
- package/skills/codex/implementation-planning/SKILL.md +289 -0
- package/skills/codex/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/codex/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/codex/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/codex/implementation-planning/references/task-template.md +63 -0
- package/skills/codex/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/codex/implementation-planning/references/worked-example.md +76 -0
- package/skills/codex/oneshot-workflow/SKILL.md +468 -0
- package/skills/codex/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/codex/prune-workflows/SKILL.md +290 -0
- package/skills/codex/prune-workflows/references/safeguards.md +74 -0
- package/skills/codex/quality-review/SKILL.md +371 -0
- package/skills/codex/quality-review/references/auto-transition.md +47 -0
- package/skills/codex/quality-review/references/axiom-integration.md +135 -0
- package/skills/codex/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/codex/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/codex/quality-review/references/gate-execution.md +60 -0
- package/skills/codex/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/codex/quality-review/references/review-report-template.md +65 -0
- package/skills/codex/quality-review/references/security-checklist.md +79 -0
- package/skills/codex/quality-review/references/typescript-standards.md +24 -0
- package/skills/codex/refactor/SKILL.md +196 -0
- package/skills/codex/refactor/references/brief-template.md +81 -0
- package/skills/codex/refactor/references/doc-update-checklist.md +113 -0
- package/skills/codex/refactor/references/explore-checklist.md +79 -0
- package/skills/codex/refactor/references/overhaul-track.md +194 -0
- package/skills/codex/refactor/references/phases/auto-chain.md +267 -0
- package/skills/codex/refactor/references/phases/brief.md +176 -0
- package/skills/codex/refactor/references/phases/explore.md +132 -0
- package/skills/codex/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/codex/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/codex/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/codex/refactor/references/phases/polish-implement.md +347 -0
- package/skills/codex/refactor/references/phases/polish-validate.md +218 -0
- package/skills/codex/refactor/references/phases/update-docs.md +234 -0
- package/skills/codex/refactor/references/polish-track.md +152 -0
- package/skills/codex/shepherd/SKILL.md +251 -0
- package/skills/codex/shepherd/references/assess-checklist.md +170 -0
- package/skills/codex/shepherd/references/escalation-criteria.md +53 -0
- package/skills/codex/shepherd/references/fix-strategies.md +289 -0
- package/skills/codex/shepherd/references/gate-event-emission.md +47 -0
- package/skills/codex/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/codex/spec-review/SKILL.md +294 -0
- package/skills/codex/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/codex/spec-review/references/review-checklist.md +79 -0
- package/skills/codex/spec-review/references/worked-example.md +72 -0
- package/skills/codex/synthesis/SKILL.md +217 -0
- package/skills/codex/synthesis/references/github-native-stacking.md +135 -0
- package/skills/codex/synthesis/references/merge-ordering.md +50 -0
- package/skills/codex/synthesis/references/pr-descriptions.md +87 -0
- package/skills/codex/synthesis/references/synthesis-steps.md +145 -0
- package/skills/codex/synthesis/references/troubleshooting.md +115 -0
- package/skills/codex/workflow-state/SKILL.md +254 -0
- package/skills/codex/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/codex/workflow-state/references/phase-transitions.md +206 -0
- package/skills/copilot/brainstorming/SKILL.md +182 -0
- package/skills/copilot/brainstorming/references/design-template.md +107 -0
- package/skills/copilot/brainstorming/references/worked-example.md +58 -0
- package/skills/copilot/cleanup/SKILL.md +169 -0
- package/skills/copilot/cleanup/references/merge-verification.md +40 -0
- package/skills/copilot/debug/SKILL.md +247 -0
- package/skills/copilot/debug/references/hotfix-track.md +105 -0
- package/skills/copilot/debug/references/investigation-checklist.md +217 -0
- package/skills/copilot/debug/references/rca-template.md +150 -0
- package/skills/copilot/debug/references/state-schema.md +294 -0
- package/skills/copilot/debug/references/thorough-track.md +171 -0
- package/skills/copilot/debug/references/triage-questions.md +155 -0
- package/skills/copilot/debug/references/troubleshooting.md +47 -0
- package/skills/copilot/delegation/SKILL.md +345 -0
- package/skills/copilot/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/copilot/delegation/references/agent-teams-saga.md +254 -0
- package/skills/copilot/delegation/references/fix-mode.md +118 -0
- package/skills/copilot/delegation/references/fixer-prompt.md +174 -0
- package/skills/copilot/delegation/references/implementer-prompt.md +401 -0
- package/skills/copilot/delegation/references/parallel-strategy.md +124 -0
- package/skills/copilot/delegation/references/pbt-patterns.md +172 -0
- package/skills/copilot/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/copilot/delegation/references/rationalization-refutation.md +15 -0
- package/skills/copilot/delegation/references/state-management.md +84 -0
- package/skills/copilot/delegation/references/testing-patterns.md +146 -0
- package/skills/copilot/delegation/references/troubleshooting.md +109 -0
- package/skills/copilot/delegation/references/worked-example.md +104 -0
- package/skills/copilot/delegation/references/workflow-steps.md +131 -0
- package/skills/copilot/delegation/references/worktree-enforcement.md +71 -0
- package/skills/copilot/dogfood/SKILL.md +235 -0
- package/skills/copilot/dogfood/references/report-template.md +109 -0
- package/skills/copilot/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/copilot/git-worktrees/SKILL.md +193 -0
- package/skills/copilot/git-worktrees/references/commands-reference.md +78 -0
- package/skills/copilot/implementation-planning/SKILL.md +289 -0
- package/skills/copilot/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/copilot/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/copilot/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/copilot/implementation-planning/references/task-template.md +63 -0
- package/skills/copilot/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/copilot/implementation-planning/references/worked-example.md +76 -0
- package/skills/copilot/oneshot-workflow/SKILL.md +468 -0
- package/skills/copilot/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/copilot/prune-workflows/SKILL.md +290 -0
- package/skills/copilot/prune-workflows/references/safeguards.md +74 -0
- package/skills/copilot/quality-review/SKILL.md +371 -0
- package/skills/copilot/quality-review/references/auto-transition.md +47 -0
- package/skills/copilot/quality-review/references/axiom-integration.md +135 -0
- package/skills/copilot/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/copilot/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/copilot/quality-review/references/gate-execution.md +60 -0
- package/skills/copilot/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/copilot/quality-review/references/review-report-template.md +65 -0
- package/skills/copilot/quality-review/references/security-checklist.md +79 -0
- package/skills/copilot/quality-review/references/typescript-standards.md +24 -0
- package/skills/copilot/refactor/SKILL.md +196 -0
- package/skills/copilot/refactor/references/brief-template.md +81 -0
- package/skills/copilot/refactor/references/doc-update-checklist.md +113 -0
- package/skills/copilot/refactor/references/explore-checklist.md +79 -0
- package/skills/copilot/refactor/references/overhaul-track.md +194 -0
- package/skills/copilot/refactor/references/phases/auto-chain.md +267 -0
- package/skills/copilot/refactor/references/phases/brief.md +176 -0
- package/skills/copilot/refactor/references/phases/explore.md +132 -0
- package/skills/copilot/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/copilot/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/copilot/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/copilot/refactor/references/phases/polish-implement.md +347 -0
- package/skills/copilot/refactor/references/phases/polish-validate.md +218 -0
- package/skills/copilot/refactor/references/phases/update-docs.md +234 -0
- package/skills/copilot/refactor/references/polish-track.md +152 -0
- package/skills/copilot/shepherd/SKILL.md +251 -0
- package/skills/copilot/shepherd/references/assess-checklist.md +170 -0
- package/skills/copilot/shepherd/references/escalation-criteria.md +53 -0
- package/skills/copilot/shepherd/references/fix-strategies.md +289 -0
- package/skills/copilot/shepherd/references/gate-event-emission.md +47 -0
- package/skills/copilot/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/copilot/spec-review/SKILL.md +294 -0
- package/skills/copilot/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/copilot/spec-review/references/review-checklist.md +79 -0
- package/skills/copilot/spec-review/references/worked-example.md +72 -0
- package/skills/copilot/synthesis/SKILL.md +217 -0
- package/skills/copilot/synthesis/references/github-native-stacking.md +135 -0
- package/skills/copilot/synthesis/references/merge-ordering.md +50 -0
- package/skills/copilot/synthesis/references/pr-descriptions.md +87 -0
- package/skills/copilot/synthesis/references/synthesis-steps.md +145 -0
- package/skills/copilot/synthesis/references/troubleshooting.md +115 -0
- package/skills/copilot/workflow-state/SKILL.md +254 -0
- package/skills/copilot/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/copilot/workflow-state/references/phase-transitions.md +206 -0
- package/skills/cursor/brainstorming/SKILL.md +182 -0
- package/skills/cursor/brainstorming/references/design-template.md +107 -0
- package/skills/cursor/brainstorming/references/worked-example.md +58 -0
- package/skills/cursor/cleanup/SKILL.md +169 -0
- package/skills/cursor/cleanup/references/merge-verification.md +40 -0
- package/skills/cursor/debug/SKILL.md +247 -0
- package/skills/cursor/debug/references/hotfix-track.md +105 -0
- package/skills/cursor/debug/references/investigation-checklist.md +217 -0
- package/skills/cursor/debug/references/rca-template.md +150 -0
- package/skills/cursor/debug/references/state-schema.md +294 -0
- package/skills/cursor/debug/references/thorough-track.md +171 -0
- package/skills/cursor/debug/references/triage-questions.md +155 -0
- package/skills/cursor/debug/references/troubleshooting.md +47 -0
- package/skills/cursor/delegation/SKILL.md +351 -0
- package/skills/cursor/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/cursor/delegation/references/agent-teams-saga.md +254 -0
- package/skills/cursor/delegation/references/fix-mode.md +118 -0
- package/skills/cursor/delegation/references/fixer-prompt.md +174 -0
- package/skills/cursor/delegation/references/implementer-prompt.md +401 -0
- package/skills/cursor/delegation/references/parallel-strategy.md +124 -0
- package/skills/cursor/delegation/references/pbt-patterns.md +172 -0
- package/skills/cursor/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/cursor/delegation/references/rationalization-refutation.md +15 -0
- package/skills/cursor/delegation/references/state-management.md +84 -0
- package/skills/cursor/delegation/references/testing-patterns.md +146 -0
- package/skills/cursor/delegation/references/troubleshooting.md +109 -0
- package/skills/cursor/delegation/references/worked-example.md +104 -0
- package/skills/cursor/delegation/references/workflow-steps.md +131 -0
- package/skills/cursor/delegation/references/worktree-enforcement.md +71 -0
- package/skills/cursor/dogfood/SKILL.md +235 -0
- package/skills/cursor/dogfood/references/report-template.md +109 -0
- package/skills/cursor/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/cursor/git-worktrees/SKILL.md +193 -0
- package/skills/cursor/git-worktrees/references/commands-reference.md +78 -0
- package/skills/cursor/implementation-planning/SKILL.md +289 -0
- package/skills/cursor/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/cursor/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/cursor/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/cursor/implementation-planning/references/task-template.md +63 -0
- package/skills/cursor/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/cursor/implementation-planning/references/worked-example.md +76 -0
- package/skills/cursor/oneshot-workflow/SKILL.md +468 -0
- package/skills/cursor/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/cursor/prune-workflows/SKILL.md +290 -0
- package/skills/cursor/prune-workflows/references/safeguards.md +74 -0
- package/skills/cursor/quality-review/SKILL.md +371 -0
- package/skills/cursor/quality-review/references/auto-transition.md +47 -0
- package/skills/cursor/quality-review/references/axiom-integration.md +135 -0
- package/skills/cursor/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/cursor/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/cursor/quality-review/references/gate-execution.md +60 -0
- package/skills/cursor/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/cursor/quality-review/references/review-report-template.md +65 -0
- package/skills/cursor/quality-review/references/security-checklist.md +79 -0
- package/skills/cursor/quality-review/references/typescript-standards.md +24 -0
- package/skills/cursor/refactor/SKILL.md +196 -0
- package/skills/cursor/refactor/references/brief-template.md +81 -0
- package/skills/cursor/refactor/references/doc-update-checklist.md +113 -0
- package/skills/cursor/refactor/references/explore-checklist.md +79 -0
- package/skills/cursor/refactor/references/overhaul-track.md +194 -0
- package/skills/cursor/refactor/references/phases/auto-chain.md +267 -0
- package/skills/cursor/refactor/references/phases/brief.md +176 -0
- package/skills/cursor/refactor/references/phases/explore.md +132 -0
- package/skills/cursor/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/cursor/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/cursor/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/cursor/refactor/references/phases/polish-implement.md +347 -0
- package/skills/cursor/refactor/references/phases/polish-validate.md +218 -0
- package/skills/cursor/refactor/references/phases/update-docs.md +234 -0
- package/skills/cursor/refactor/references/polish-track.md +152 -0
- package/skills/cursor/shepherd/SKILL.md +251 -0
- package/skills/cursor/shepherd/references/assess-checklist.md +170 -0
- package/skills/cursor/shepherd/references/escalation-criteria.md +53 -0
- package/skills/cursor/shepherd/references/fix-strategies.md +289 -0
- package/skills/cursor/shepherd/references/gate-event-emission.md +47 -0
- package/skills/cursor/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/cursor/spec-review/SKILL.md +294 -0
- package/skills/cursor/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/cursor/spec-review/references/review-checklist.md +79 -0
- package/skills/cursor/spec-review/references/worked-example.md +72 -0
- package/skills/cursor/synthesis/SKILL.md +217 -0
- package/skills/cursor/synthesis/references/github-native-stacking.md +135 -0
- package/skills/cursor/synthesis/references/merge-ordering.md +50 -0
- package/skills/cursor/synthesis/references/pr-descriptions.md +87 -0
- package/skills/cursor/synthesis/references/synthesis-steps.md +145 -0
- package/skills/cursor/synthesis/references/troubleshooting.md +115 -0
- package/skills/cursor/workflow-state/SKILL.md +254 -0
- package/skills/cursor/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/cursor/workflow-state/references/phase-transitions.md +206 -0
- package/skills/generic/brainstorming/SKILL.md +182 -0
- package/skills/generic/brainstorming/references/design-template.md +107 -0
- package/skills/generic/brainstorming/references/worked-example.md +58 -0
- package/skills/generic/cleanup/SKILL.md +169 -0
- package/skills/generic/cleanup/references/merge-verification.md +40 -0
- package/skills/generic/debug/SKILL.md +247 -0
- package/skills/generic/debug/references/hotfix-track.md +105 -0
- package/skills/generic/debug/references/investigation-checklist.md +217 -0
- package/skills/generic/debug/references/rca-template.md +150 -0
- package/skills/generic/debug/references/state-schema.md +294 -0
- package/skills/generic/debug/references/thorough-track.md +171 -0
- package/skills/generic/debug/references/triage-questions.md +155 -0
- package/skills/generic/debug/references/troubleshooting.md +47 -0
- package/skills/generic/delegation/SKILL.md +345 -0
- package/skills/generic/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/generic/delegation/references/agent-teams-saga.md +254 -0
- package/skills/generic/delegation/references/fix-mode.md +118 -0
- package/skills/generic/delegation/references/fixer-prompt.md +174 -0
- package/skills/generic/delegation/references/implementer-prompt.md +401 -0
- package/skills/generic/delegation/references/parallel-strategy.md +124 -0
- package/skills/generic/delegation/references/pbt-patterns.md +172 -0
- package/skills/generic/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/generic/delegation/references/rationalization-refutation.md +15 -0
- package/skills/generic/delegation/references/state-management.md +84 -0
- package/skills/generic/delegation/references/testing-patterns.md +146 -0
- package/skills/generic/delegation/references/troubleshooting.md +109 -0
- package/skills/generic/delegation/references/worked-example.md +104 -0
- package/skills/generic/delegation/references/workflow-steps.md +131 -0
- package/skills/generic/delegation/references/worktree-enforcement.md +71 -0
- package/skills/generic/dogfood/SKILL.md +235 -0
- package/skills/generic/dogfood/references/report-template.md +109 -0
- package/skills/generic/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/generic/git-worktrees/SKILL.md +193 -0
- package/skills/generic/git-worktrees/references/commands-reference.md +78 -0
- package/skills/generic/implementation-planning/SKILL.md +289 -0
- package/skills/generic/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/generic/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/generic/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/generic/implementation-planning/references/task-template.md +63 -0
- package/skills/generic/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/generic/implementation-planning/references/worked-example.md +76 -0
- package/skills/generic/oneshot-workflow/SKILL.md +468 -0
- package/skills/generic/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/generic/prune-workflows/SKILL.md +290 -0
- package/skills/generic/prune-workflows/references/safeguards.md +74 -0
- package/skills/generic/quality-review/SKILL.md +371 -0
- package/skills/generic/quality-review/references/auto-transition.md +47 -0
- package/skills/generic/quality-review/references/axiom-integration.md +135 -0
- package/skills/generic/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/generic/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/generic/quality-review/references/gate-execution.md +60 -0
- package/skills/generic/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/generic/quality-review/references/review-report-template.md +65 -0
- package/skills/generic/quality-review/references/security-checklist.md +79 -0
- package/skills/generic/quality-review/references/typescript-standards.md +24 -0
- package/skills/generic/refactor/SKILL.md +196 -0
- package/skills/generic/refactor/references/brief-template.md +81 -0
- package/skills/generic/refactor/references/doc-update-checklist.md +113 -0
- package/skills/generic/refactor/references/explore-checklist.md +79 -0
- package/skills/generic/refactor/references/overhaul-track.md +194 -0
- package/skills/generic/refactor/references/phases/auto-chain.md +267 -0
- package/skills/generic/refactor/references/phases/brief.md +176 -0
- package/skills/generic/refactor/references/phases/explore.md +132 -0
- package/skills/generic/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/generic/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/generic/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/generic/refactor/references/phases/polish-implement.md +347 -0
- package/skills/generic/refactor/references/phases/polish-validate.md +218 -0
- package/skills/generic/refactor/references/phases/update-docs.md +234 -0
- package/skills/generic/refactor/references/polish-track.md +152 -0
- package/skills/generic/shepherd/SKILL.md +251 -0
- package/skills/generic/shepherd/references/assess-checklist.md +170 -0
- package/skills/generic/shepherd/references/escalation-criteria.md +53 -0
- package/skills/generic/shepherd/references/fix-strategies.md +289 -0
- package/skills/generic/shepherd/references/gate-event-emission.md +47 -0
- package/skills/generic/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/generic/spec-review/SKILL.md +294 -0
- package/skills/generic/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/generic/spec-review/references/review-checklist.md +79 -0
- package/skills/generic/spec-review/references/worked-example.md +72 -0
- package/skills/generic/synthesis/SKILL.md +217 -0
- package/skills/generic/synthesis/references/github-native-stacking.md +135 -0
- package/skills/generic/synthesis/references/merge-ordering.md +50 -0
- package/skills/generic/synthesis/references/pr-descriptions.md +87 -0
- package/skills/generic/synthesis/references/synthesis-steps.md +145 -0
- package/skills/generic/synthesis/references/troubleshooting.md +115 -0
- package/skills/generic/workflow-state/SKILL.md +254 -0
- package/skills/generic/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/generic/workflow-state/references/phase-transitions.md +206 -0
- package/skills/opencode/brainstorming/SKILL.md +182 -0
- package/skills/opencode/brainstorming/references/design-template.md +107 -0
- package/skills/opencode/brainstorming/references/worked-example.md +58 -0
- package/skills/opencode/cleanup/SKILL.md +169 -0
- package/skills/opencode/cleanup/references/merge-verification.md +40 -0
- package/skills/opencode/debug/SKILL.md +247 -0
- package/skills/opencode/debug/references/hotfix-track.md +105 -0
- package/skills/opencode/debug/references/investigation-checklist.md +217 -0
- package/skills/opencode/debug/references/rca-template.md +150 -0
- package/skills/opencode/debug/references/state-schema.md +294 -0
- package/skills/opencode/debug/references/thorough-track.md +171 -0
- package/skills/opencode/debug/references/triage-questions.md +155 -0
- package/skills/opencode/debug/references/troubleshooting.md +47 -0
- package/skills/opencode/delegation/SKILL.md +353 -0
- package/skills/opencode/delegation/references/adaptive-orchestration.md +31 -0
- package/skills/opencode/delegation/references/agent-teams-saga.md +254 -0
- package/skills/opencode/delegation/references/fix-mode.md +118 -0
- package/skills/opencode/delegation/references/fixer-prompt.md +174 -0
- package/skills/opencode/delegation/references/implementer-prompt.md +401 -0
- package/skills/opencode/delegation/references/parallel-strategy.md +124 -0
- package/skills/opencode/delegation/references/pbt-patterns.md +172 -0
- package/skills/opencode/delegation/references/pr-fixes-mode.md +155 -0
- package/skills/opencode/delegation/references/rationalization-refutation.md +15 -0
- package/skills/opencode/delegation/references/state-management.md +84 -0
- package/skills/opencode/delegation/references/testing-patterns.md +146 -0
- package/skills/opencode/delegation/references/troubleshooting.md +109 -0
- package/skills/opencode/delegation/references/worked-example.md +104 -0
- package/skills/opencode/delegation/references/workflow-steps.md +131 -0
- package/skills/opencode/delegation/references/worktree-enforcement.md +71 -0
- package/skills/opencode/dogfood/SKILL.md +235 -0
- package/skills/opencode/dogfood/references/report-template.md +109 -0
- package/skills/opencode/dogfood/references/root-cause-patterns.md +227 -0
- package/skills/opencode/git-worktrees/SKILL.md +193 -0
- package/skills/opencode/git-worktrees/references/commands-reference.md +78 -0
- package/skills/opencode/implementation-planning/SKILL.md +289 -0
- package/skills/opencode/implementation-planning/references/plan-document-template.md +42 -0
- package/skills/opencode/implementation-planning/references/rationalization-refutation.md +13 -0
- package/skills/opencode/implementation-planning/references/spec-tracing-guide.md +51 -0
- package/skills/opencode/implementation-planning/references/task-template.md +63 -0
- package/skills/opencode/implementation-planning/references/testing-strategy-guide.md +109 -0
- package/skills/opencode/implementation-planning/references/worked-example.md +76 -0
- package/skills/opencode/oneshot-workflow/SKILL.md +468 -0
- package/skills/opencode/oneshot-workflow/references/choice-state.md +65 -0
- package/skills/opencode/prune-workflows/SKILL.md +290 -0
- package/skills/opencode/prune-workflows/references/safeguards.md +74 -0
- package/skills/opencode/quality-review/SKILL.md +371 -0
- package/skills/opencode/quality-review/references/auto-transition.md +47 -0
- package/skills/opencode/quality-review/references/axiom-integration.md +135 -0
- package/skills/opencode/quality-review/references/code-quality-checklist.md +171 -0
- package/skills/opencode/quality-review/references/convergence-and-verdict.md +48 -0
- package/skills/opencode/quality-review/references/gate-execution.md +60 -0
- package/skills/opencode/quality-review/references/rationalization-refutation.md +13 -0
- package/skills/opencode/quality-review/references/review-report-template.md +65 -0
- package/skills/opencode/quality-review/references/security-checklist.md +79 -0
- package/skills/opencode/quality-review/references/typescript-standards.md +24 -0
- package/skills/opencode/refactor/SKILL.md +196 -0
- package/skills/opencode/refactor/references/brief-template.md +81 -0
- package/skills/opencode/refactor/references/doc-update-checklist.md +113 -0
- package/skills/opencode/refactor/references/explore-checklist.md +79 -0
- package/skills/opencode/refactor/references/overhaul-track.md +194 -0
- package/skills/opencode/refactor/references/phases/auto-chain.md +267 -0
- package/skills/opencode/refactor/references/phases/brief.md +176 -0
- package/skills/opencode/refactor/references/phases/explore.md +132 -0
- package/skills/opencode/refactor/references/phases/overhaul-delegate.md +136 -0
- package/skills/opencode/refactor/references/phases/overhaul-plan.md +312 -0
- package/skills/opencode/refactor/references/phases/overhaul-review.md +304 -0
- package/skills/opencode/refactor/references/phases/polish-implement.md +347 -0
- package/skills/opencode/refactor/references/phases/polish-validate.md +218 -0
- package/skills/opencode/refactor/references/phases/update-docs.md +234 -0
- package/skills/opencode/refactor/references/polish-track.md +152 -0
- package/skills/opencode/shepherd/SKILL.md +251 -0
- package/skills/opencode/shepherd/references/assess-checklist.md +170 -0
- package/skills/opencode/shepherd/references/escalation-criteria.md +53 -0
- package/skills/opencode/shepherd/references/fix-strategies.md +289 -0
- package/skills/opencode/shepherd/references/gate-event-emission.md +47 -0
- package/skills/opencode/shepherd/references/shepherd-event-schemas.md +56 -0
- package/skills/opencode/spec-review/SKILL.md +294 -0
- package/skills/opencode/spec-review/references/rationalization-refutation.md +13 -0
- package/skills/opencode/spec-review/references/review-checklist.md +79 -0
- package/skills/opencode/spec-review/references/worked-example.md +72 -0
- package/skills/opencode/synthesis/SKILL.md +217 -0
- package/skills/opencode/synthesis/references/github-native-stacking.md +135 -0
- package/skills/opencode/synthesis/references/merge-ordering.md +50 -0
- package/skills/opencode/synthesis/references/pr-descriptions.md +87 -0
- package/skills/opencode/synthesis/references/synthesis-steps.md +145 -0
- package/skills/opencode/synthesis/references/troubleshooting.md +115 -0
- package/skills/opencode/workflow-state/SKILL.md +254 -0
- package/skills/opencode/workflow-state/references/mcp-tool-reference.md +89 -0
- package/skills/opencode/workflow-state/references/phase-transitions.md +206 -0
- package/.claude-plugin/marketplace.json +0 -34
- package/dist/node_modules/electron/index.js +0 -1
- package/dist/node_modules/electron/package.json +0 -1
- package/dist/node_modules/playwright-core/index.js +0 -1
- package/dist/node_modules/playwright-core/package.json +0 -1
- package/scripts/assess-refactor-scope.sh +0 -239
- package/scripts/check-coderabbit.sh +0 -288
- package/scripts/check-context-economy.sh +0 -405
- package/scripts/check-coverage-thresholds.sh +0 -194
- package/scripts/check-operational-resilience.sh +0 -306
- package/scripts/check-polish-scope.sh +0 -245
- package/scripts/check-post-merge.sh +0 -185
- package/scripts/check-pr-comments.sh +0 -127
- package/scripts/check-task-decomposition.sh +0 -451
- package/scripts/check-tdd-compliance.sh +0 -265
- package/scripts/check-workflow-determinism.sh +0 -312
- package/scripts/debug-review-gate.sh +0 -201
- package/scripts/extract-fix-tasks.sh +0 -179
- package/scripts/extract-task.sh +0 -67
- package/scripts/generate-traceability.sh +0 -209
- package/scripts/investigation-timer.sh +0 -171
- package/scripts/needs-schema-sync.sh +0 -174
- package/scripts/new-project.sh +0 -103
- package/scripts/post-delegation-check.sh +0 -317
- package/scripts/pre-synthesis-check.sh +0 -475
- package/scripts/reconcile-state.sh +0 -346
- package/scripts/review-diff.sh +0 -63
- package/scripts/review-verdict.sh +0 -169
- package/scripts/security-scan.sh +0 -248
- package/scripts/select-debug-track.sh +0 -186
- package/scripts/setup-worktree.sh +0 -323
- package/scripts/spec-coverage-check.sh +0 -230
- package/scripts/static-analysis-gate.sh +0 -261
- package/scripts/validate-companion.sh +0 -161
- package/scripts/validate-pr-body.sh +0 -158
- package/scripts/validate-pr-stack.sh +0 -146
- package/scripts/verify-delegation-saga.sh +0 -240
- package/scripts/verify-doc-links.sh +0 -211
- package/scripts/verify-ideate-artifacts.sh +0 -296
- package/scripts/verify-plan-coverage.sh +0 -408
- package/scripts/verify-provenance-chain.sh +0 -310
- package/scripts/verify-review-triage.sh +0 -219
- package/scripts/verify-worktree-baseline.sh +0 -159
- package/scripts/verify-worktree.sh +0 -84
- package/skills/delegation/references/fix-mode.md +0 -78
- package/skills/implementation-planning/references/task-template.md +0 -43
- package/skills/shared/prompts/context-reading.md +0 -66
- package/skills/shared/prompts/report-format.md +0 -54
- package/skills/shared/prompts/tdd-requirements.md +0 -39
- package/skills/shared/references/coding-standards.md +0 -46
- package/skills/shared/references/mcp-tool-guidance.md +0 -26
- package/skills/shared/references/skill-path-resolution.md +0 -10
- package/skills/shared/references/tdd.md +0 -41
- package/skills/shared/references/telemetry-awareness.md +0 -9
- /package/skills/{brainstorming → claude/brainstorming}/references/worked-example.md +0 -0
- /package/skills/{cleanup → claude/cleanup}/references/merge-verification.md +0 -0
- /package/skills/{debug → claude/debug}/references/rca-template.md +0 -0
- /package/skills/{debug → claude/debug}/references/state-schema.md +0 -0
- /package/skills/{debug → claude/debug}/references/triage-questions.md +0 -0
- /package/skills/{debug → claude/debug}/references/troubleshooting.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/adaptive-orchestration.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/fixer-prompt.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/pbt-patterns.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/pr-fixes-mode.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/rationalization-refutation.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/testing-patterns.md +0 -0
- /package/skills/{delegation → claude/delegation}/references/worked-example.md +0 -0
- /package/skills/{git-worktrees → claude/git-worktrees}/references/commands-reference.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/plan-document-template.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/rationalization-refutation.md +0 -0
- /package/skills/{implementation-planning → claude/implementation-planning}/references/spec-tracing-guide.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/code-quality-checklist.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/convergence-and-verdict.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/gate-execution.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/rationalization-refutation.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/review-report-template.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/security-checklist.md +0 -0
- /package/skills/{quality-review → claude/quality-review}/references/typescript-standards.md +0 -0
- /package/skills/{refactor → claude/refactor}/references/brief-template.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/auto-chain.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/brief.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/explore.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-delegate.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-plan.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/overhaul-review.md +0 -0
- /package/skills/{refactor → claude/refactor/references}/phases/update-docs.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/assess-checklist.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/escalation-criteria.md +0 -0
- /package/skills/{shepherd → claude/shepherd}/references/gate-event-emission.md +0 -0
- /package/skills/{spec-review → claude/spec-review}/references/rationalization-refutation.md +0 -0
- /package/skills/{spec-review → claude/spec-review}/references/review-checklist.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/merge-ordering.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/pr-descriptions.md +0 -0
- /package/skills/{synthesis → claude/synthesis}/references/troubleshooting.md +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# Overhaul Track: Plan Phase
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Create detailed implementation plans for large refactors with emphasis on incremental, working-state changes. This phase integrates with the existing `/exarchos:plan` skill while adding refactor-specific constraints that ensure safety and reversibility.
|
|
6
|
+
|
|
7
|
+
**Key principle:** Every task leaves the codebase in a working state. No task should break tests or functionality.
|
|
8
|
+
|
|
9
|
+
## Entry Conditions
|
|
10
|
+
|
|
11
|
+
- Track is `overhaul`
|
|
12
|
+
- Brief phase complete with scope assessment
|
|
13
|
+
- State file has `.track = "overhaul"` and `.phase = "brief"` complete
|
|
14
|
+
- Refactoring goals documented in brief
|
|
15
|
+
|
|
16
|
+
## Integration with /exarchos:plan
|
|
17
|
+
|
|
18
|
+
The overhaul track leverages the existing `/exarchos:plan` skill with additional refactor context.
|
|
19
|
+
|
|
20
|
+
### Invocation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Auto-invocation from brief phase
|
|
24
|
+
Skill({ skill: "exarchos:plan", args: "--refactor ~/.claude/workflow-state/<feature>.state.json" })
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Context Passing
|
|
28
|
+
|
|
29
|
+
The `/exarchos:plan` skill receives refactor context from the brief:
|
|
30
|
+
|
|
31
|
+
1. **Scope boundaries** - Which files/modules are affected
|
|
32
|
+
2. **Refactoring goals** - What improvements are targeted
|
|
33
|
+
3. **Constraints** - Working state requirements, rollback needs
|
|
34
|
+
4. **Test baseline** - Current test status to maintain
|
|
35
|
+
|
|
36
|
+
### Plan Modifications
|
|
37
|
+
|
|
38
|
+
When `/exarchos:plan` receives refactor context, it applies these additional rules:
|
|
39
|
+
|
|
40
|
+
| Standard Plan | Refactor Plan |
|
|
41
|
+
|---------------|---------------|
|
|
42
|
+
| Tasks can be feature-incomplete | Each task must leave code functional |
|
|
43
|
+
| Tests verify new behavior | Tests verify existing + new behavior |
|
|
44
|
+
| Dependencies between tasks | Explicit rollback points identified |
|
|
45
|
+
| Parallel execution focus | Sequential safety emphasis |
|
|
46
|
+
|
|
47
|
+
## Refactor-Specific Emphasis
|
|
48
|
+
|
|
49
|
+
### 1. Incremental Changes (Working State Guarantee)
|
|
50
|
+
|
|
51
|
+
**Every task MUST leave code in a working state.**
|
|
52
|
+
|
|
53
|
+
Requirements per task:
|
|
54
|
+
- [ ] Code compiles after task completion
|
|
55
|
+
- [ ] All existing tests pass
|
|
56
|
+
- [ ] New tests (if added) pass
|
|
57
|
+
- [ ] No temporary broken states
|
|
58
|
+
|
|
59
|
+
Anti-patterns to avoid:
|
|
60
|
+
- "Part 1 of 3" tasks that break until Part 3
|
|
61
|
+
- Renaming without updating all references
|
|
62
|
+
- Interface changes without adapter layers
|
|
63
|
+
- Deleting before replacing
|
|
64
|
+
|
|
65
|
+
**Incremental Strategy Examples:**
|
|
66
|
+
|
|
67
|
+
| Refactor Type | Safe Approach |
|
|
68
|
+
|---------------|---------------|
|
|
69
|
+
| Rename | Add alias -> Update references -> Remove old |
|
|
70
|
+
| Extract | Create new -> Duplicate logic -> Redirect calls -> Delete original |
|
|
71
|
+
| Replace | Add new alongside -> Toggle between -> Verify -> Remove old |
|
|
72
|
+
| Restructure | Scaffold new -> Copy behavior -> Redirect -> Clean up |
|
|
73
|
+
|
|
74
|
+
### 2. Rollback Points
|
|
75
|
+
|
|
76
|
+
Identify explicit points where the refactor can be safely paused or abandoned.
|
|
77
|
+
|
|
78
|
+
**Rollback Point Criteria:**
|
|
79
|
+
- All tests pass
|
|
80
|
+
- No temporary code remains
|
|
81
|
+
- Could ship to production if needed
|
|
82
|
+
- Clear documentation of state
|
|
83
|
+
|
|
84
|
+
**Template:**
|
|
85
|
+
|
|
86
|
+
```markdown
|
|
87
|
+
## Rollback Points
|
|
88
|
+
|
|
89
|
+
### After Task 003
|
|
90
|
+
**State:** Old API deprecated, new API available
|
|
91
|
+
**Can ship:** Yes
|
|
92
|
+
**To resume:** Continue with Task 004
|
|
93
|
+
**To abandon:** Remove deprecation warnings, new API becomes optional
|
|
94
|
+
|
|
95
|
+
### After Task 007
|
|
96
|
+
**State:** Migration complete, old code marked for deletion
|
|
97
|
+
**Can ship:** Yes
|
|
98
|
+
**To resume:** Continue with Task 008 (cleanup)
|
|
99
|
+
**To abandon:** Keep both implementations, document tech debt
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 3. Test Strategy Per Task
|
|
103
|
+
|
|
104
|
+
Each task specifies verification requirements:
|
|
105
|
+
|
|
106
|
+
```markdown
|
|
107
|
+
### Task 005: Extract validation logic to shared module
|
|
108
|
+
|
|
109
|
+
**Test Requirements:**
|
|
110
|
+
1. **Existing tests:** All unit tests in `auth.test.ts` must pass unchanged
|
|
111
|
+
2. **New tests:** Add `validation.test.ts` with same coverage
|
|
112
|
+
3. **Integration:** Run `npm run test:integration` to verify no regressions
|
|
113
|
+
4. **Manual verification:** N/A (pure refactor)
|
|
114
|
+
|
|
115
|
+
**Verification Command:**
|
|
116
|
+
npm run test:run -- --coverage
|
|
117
|
+
# Coverage must not decrease
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### 4. Working State Guarantee
|
|
121
|
+
|
|
122
|
+
After every task completion, verify:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Compilation check
|
|
126
|
+
npm run build
|
|
127
|
+
|
|
128
|
+
# Unit tests
|
|
129
|
+
npm run test:run
|
|
130
|
+
|
|
131
|
+
# Integration tests (if applicable)
|
|
132
|
+
npm run test:integration
|
|
133
|
+
|
|
134
|
+
# Lint (code quality)
|
|
135
|
+
npm run lint
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**State tracking in workflow file:**
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"tasks": [
|
|
143
|
+
{
|
|
144
|
+
"id": "001",
|
|
145
|
+
"title": "Add new interface",
|
|
146
|
+
"status": "complete",
|
|
147
|
+
"working_state_verified": true,
|
|
148
|
+
"test_results": {
|
|
149
|
+
"passed": 145,
|
|
150
|
+
"failed": 0,
|
|
151
|
+
"coverage": "87%"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Plan Structure Template
|
|
159
|
+
|
|
160
|
+
Save to: `docs/plans/YYYY-MM-DD-<refactor-name>.md`
|
|
161
|
+
|
|
162
|
+
```markdown
|
|
163
|
+
# Implementation Plan: [Refactor Name]
|
|
164
|
+
|
|
165
|
+
## Source
|
|
166
|
+
- **Brief:** `~/.claude/workflow-state/<feature>.state.json`
|
|
167
|
+
- **Track:** Overhaul
|
|
168
|
+
- **Affected scope:** [Files/modules from brief]
|
|
169
|
+
|
|
170
|
+
## Goals Mapping
|
|
171
|
+
|
|
172
|
+
| Brief Goal | Task ID(s) | Verification |
|
|
173
|
+
|------------|------------|--------------|
|
|
174
|
+
| [Goal 1] | 001, 002 | [How verified] |
|
|
175
|
+
| [Goal 2] | 003-005 | [How verified] |
|
|
176
|
+
| [Goal 3] | 006 | [How verified] |
|
|
177
|
+
|
|
178
|
+
## Working State Strategy
|
|
179
|
+
|
|
180
|
+
**Approach:** [Describe overall incremental approach]
|
|
181
|
+
|
|
182
|
+
**Key constraints:**
|
|
183
|
+
- [Constraint 1 from brief]
|
|
184
|
+
- [Constraint 2 from brief]
|
|
185
|
+
|
|
186
|
+
## Task Breakdown
|
|
187
|
+
|
|
188
|
+
### Task 001: [Title]
|
|
189
|
+
|
|
190
|
+
**Phase:** [RED | GREEN | REFACTOR]
|
|
191
|
+
|
|
192
|
+
**TDD Steps:**
|
|
193
|
+
1. [RED] Write test: `TestName_Scenario_ExpectedOutcome`
|
|
194
|
+
- File: `path/to/test.ts`
|
|
195
|
+
- Expected failure: [Reason]
|
|
196
|
+
- Run: `npm run test:run` - MUST FAIL
|
|
197
|
+
|
|
198
|
+
2. [GREEN] Implement minimum code
|
|
199
|
+
- File: `path/to/implementation.ts`
|
|
200
|
+
- Changes: [Description]
|
|
201
|
+
- Run: `npm run test:run` - MUST PASS
|
|
202
|
+
|
|
203
|
+
3. [REFACTOR] Clean up (if needed)
|
|
204
|
+
- Apply: [Improvement]
|
|
205
|
+
- Run: `npm run test:run` - MUST STAY GREEN
|
|
206
|
+
|
|
207
|
+
**Working State Check:**
|
|
208
|
+
- [ ] Code compiles
|
|
209
|
+
- [ ] All tests pass (existing + new)
|
|
210
|
+
- [ ] No temporary hacks remain
|
|
211
|
+
|
|
212
|
+
**Rollback point:** [Yes/No - if Yes, document in Rollback section]
|
|
213
|
+
|
|
214
|
+
**Dependencies:** [Task IDs or "None"]
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
[Repeat for each task]
|
|
219
|
+
|
|
220
|
+
## Rollback Points
|
|
221
|
+
|
|
222
|
+
### After Task [N]
|
|
223
|
+
**State:** [Description of codebase state]
|
|
224
|
+
**Can ship:** [Yes/No]
|
|
225
|
+
**To resume:** [Instructions]
|
|
226
|
+
**To abandon:** [Cleanup instructions]
|
|
227
|
+
|
|
228
|
+
## Verification Checklist
|
|
229
|
+
|
|
230
|
+
After all tasks complete:
|
|
231
|
+
- [ ] All original tests still pass
|
|
232
|
+
- [ ] New tests added for new code
|
|
233
|
+
- [ ] Code coverage maintained or improved
|
|
234
|
+
- [ ] No TODO/FIXME comments left behind
|
|
235
|
+
- [ ] Brief goals all achieved
|
|
236
|
+
- [ ] Ready for review
|
|
237
|
+
|
|
238
|
+
## Deferred Items
|
|
239
|
+
|
|
240
|
+
[Any scope items explicitly deferred, with rationale]
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
## State Updates
|
|
244
|
+
|
|
245
|
+
### On Plan Completion
|
|
246
|
+
|
|
247
|
+
**Save plan artifact and tasks:**
|
|
248
|
+
|
|
249
|
+
```
|
|
250
|
+
action: "set", featureId: "refactor-<slug>", updates: {
|
|
251
|
+
"artifacts.plan": "docs/plans/YYYY-MM-DD-<refactor>.md",
|
|
252
|
+
"tasks": [
|
|
253
|
+
{"id": "001", "title": "Task description", "status": "pending", "working_state_verified": false},
|
|
254
|
+
{"id": "002", "title": "Task 2 description", "status": "pending", "working_state_verified": false}
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
**Advance to delegate:**
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
action: "set", featureId: "refactor-<slug>", phase: "delegate"
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Task State Structure
|
|
266
|
+
|
|
267
|
+
```json
|
|
268
|
+
{
|
|
269
|
+
"id": "001",
|
|
270
|
+
"title": "Extract validation to shared module",
|
|
271
|
+
"status": "pending",
|
|
272
|
+
"working_state_verified": false,
|
|
273
|
+
"rollback_point": true,
|
|
274
|
+
"dependencies": [],
|
|
275
|
+
"branch": "refactor/001-extract-validation"
|
|
276
|
+
}
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
## Exit Conditions
|
|
280
|
+
|
|
281
|
+
Transition to `delegate` phase when:
|
|
282
|
+
|
|
283
|
+
- [ ] Plan document created at `docs/plans/`
|
|
284
|
+
- [ ] All brief goals mapped to tasks
|
|
285
|
+
- [ ] Every task has working state verification criteria
|
|
286
|
+
- [ ] Rollback points identified (minimum 1)
|
|
287
|
+
- [ ] Test strategy defined per task
|
|
288
|
+
- [ ] State file updated with plan path and tasks
|
|
289
|
+
- [ ] Phase set to `delegate`
|
|
290
|
+
|
|
291
|
+
## Transition to Delegate
|
|
292
|
+
|
|
293
|
+
After plan completion, auto-continue to delegate:
|
|
294
|
+
|
|
295
|
+
1. Update state with plan path and tasks (see State Updates above)
|
|
296
|
+
2. Output: "Refactor plan created with [N] tasks and [M] rollback points. Auto-continuing to delegation..."
|
|
297
|
+
3. Invoke immediately:
|
|
298
|
+
```typescript
|
|
299
|
+
Skill({ skill: "exarchos:delegate", args: "~/.claude/workflow-state/<feature>.state.json" })
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
This is NOT a human checkpoint - workflow continues autonomously.
|
|
303
|
+
|
|
304
|
+
## Anti-Patterns
|
|
305
|
+
|
|
306
|
+
| Avoid | Instead |
|
|
307
|
+
|-------|---------|
|
|
308
|
+
| Big-bang refactors | Break into working-state increments |
|
|
309
|
+
| Skipping tests | Each task verifies existing + new |
|
|
310
|
+
| Hidden dependencies | Explicit rollback points |
|
|
311
|
+
| "Will fix later" tasks | Every task self-contained |
|
|
312
|
+
| Assuming tests pass | Verify after each task |
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
# Overhaul Track: Review Phase
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Quality review with refactor-specific criteria for behavior preservation, regression detection, and goal verification.
|
|
6
|
+
|
|
7
|
+
## Entry Conditions
|
|
8
|
+
|
|
9
|
+
- Track is `overhaul`
|
|
10
|
+
- Delegation phase complete
|
|
11
|
+
- All tasks complete
|
|
12
|
+
- Ready for review
|
|
13
|
+
|
|
14
|
+
## Refactor-Specific Review Emphasis
|
|
15
|
+
|
|
16
|
+
Refactors require additional scrutiny beyond standard quality review because:
|
|
17
|
+
- Behavior must be preserved exactly (unless intentionally changed)
|
|
18
|
+
- Regressions are easy to introduce and hard to detect
|
|
19
|
+
- Brief goals must be explicitly verified
|
|
20
|
+
|
|
21
|
+
## Behavior Preservation Checks
|
|
22
|
+
|
|
23
|
+
### 1. Method Signature Analysis
|
|
24
|
+
|
|
25
|
+
| Check | Verify | Priority |
|
|
26
|
+
|-------|--------|----------|
|
|
27
|
+
| Parameter types unchanged | Same types or compatible widening | HIGH |
|
|
28
|
+
| Return types unchanged | Same type or compatible narrowing | HIGH |
|
|
29
|
+
| Parameter order preserved | No accidental reordering | HIGH |
|
|
30
|
+
| Optional parameters | Same defaults, same optionality | MEDIUM |
|
|
31
|
+
| Overloads preserved | All overloads still present | HIGH |
|
|
32
|
+
|
|
33
|
+
**Detection:**
|
|
34
|
+
```bash
|
|
35
|
+
# Compare method signatures before/after
|
|
36
|
+
git diff main...HEAD -- "*.ts" | grep -E "^[+-].*function|^[+-].*class|^[+-].*interface"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 2. Return Value Equivalence
|
|
40
|
+
|
|
41
|
+
| Aspect | Check For |
|
|
42
|
+
|--------|-----------|
|
|
43
|
+
| Same values | Identical return for same inputs |
|
|
44
|
+
| Same types | No implicit type changes |
|
|
45
|
+
| Same null behavior | Null/undefined handling unchanged |
|
|
46
|
+
| Same error conditions | Same inputs cause same errors |
|
|
47
|
+
|
|
48
|
+
**Verification approach:**
|
|
49
|
+
- Review test assertions for return values
|
|
50
|
+
- Check edge case handling
|
|
51
|
+
- Verify null/undefined paths unchanged
|
|
52
|
+
|
|
53
|
+
### 3. Side Effect Preservation
|
|
54
|
+
|
|
55
|
+
| Side Effect | Verify Unchanged |
|
|
56
|
+
|-------------|-----------------|
|
|
57
|
+
| State mutations | Same state changes occur |
|
|
58
|
+
| Event emissions | Same events fired in same order |
|
|
59
|
+
| External calls | Same API/DB calls made |
|
|
60
|
+
| Logging | Same log outputs (unless intentional) |
|
|
61
|
+
| File operations | Same I/O patterns |
|
|
62
|
+
|
|
63
|
+
### 4. Error Handling Consistency
|
|
64
|
+
|
|
65
|
+
| Check | Verify |
|
|
66
|
+
|-------|--------|
|
|
67
|
+
| Exception types | Same exceptions thrown |
|
|
68
|
+
| Exception conditions | Same inputs trigger errors |
|
|
69
|
+
| Error messages | Equivalent messaging |
|
|
70
|
+
| Catch behavior | Same errors caught/propagated |
|
|
71
|
+
|
|
72
|
+
## Intentional Changes Documentation
|
|
73
|
+
|
|
74
|
+
If behavior changes are intentional, they MUST be:
|
|
75
|
+
1. Documented in the brief goals
|
|
76
|
+
2. Covered by updated tests
|
|
77
|
+
3. Explicitly noted in review
|
|
78
|
+
|
|
79
|
+
**Intentional change checklist:**
|
|
80
|
+
- [ ] Change documented in brief
|
|
81
|
+
- [ ] Old behavior tests updated
|
|
82
|
+
- [ ] New behavior tests added
|
|
83
|
+
- [ ] Breaking change noted (if public API)
|
|
84
|
+
|
|
85
|
+
## Regression Risk Assessment
|
|
86
|
+
|
|
87
|
+
Evaluate each area touched by refactor:
|
|
88
|
+
|
|
89
|
+
| Risk Level | Criteria | Action |
|
|
90
|
+
|------------|----------|--------|
|
|
91
|
+
| **HIGH** | Public API changes, core logic, data handling | Extra scrutiny, explicit test verification |
|
|
92
|
+
| **MEDIUM** | Internal interfaces, shared utilities | Verify dependent code paths |
|
|
93
|
+
| **LOW** | Private methods, isolated modules | Standard review |
|
|
94
|
+
|
|
95
|
+
### Area-by-Area Assessment
|
|
96
|
+
|
|
97
|
+
For each file/component changed:
|
|
98
|
+
|
|
99
|
+
```markdown
|
|
100
|
+
## Regression Risk: <Component>
|
|
101
|
+
|
|
102
|
+
**Files touched:** `path/to/files`
|
|
103
|
+
**Risk level:** [HIGH | MEDIUM | LOW]
|
|
104
|
+
|
|
105
|
+
**Changed behavior (intentional):**
|
|
106
|
+
- [List any intentional changes]
|
|
107
|
+
|
|
108
|
+
**Regression indicators:**
|
|
109
|
+
- [ ] All existing tests pass
|
|
110
|
+
- [ ] No test assertions changed unexpectedly
|
|
111
|
+
- [ ] Dependent components verified
|
|
112
|
+
- [ ] Edge cases still covered
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Performance Considerations
|
|
116
|
+
|
|
117
|
+
Refactors should not degrade performance:
|
|
118
|
+
|
|
119
|
+
| Check | Verify |
|
|
120
|
+
|-------|--------|
|
|
121
|
+
| Algorithm complexity | No O(n) to O(n^2) regressions |
|
|
122
|
+
| Memory allocation | No excessive new allocations |
|
|
123
|
+
| Loop iterations | No added unnecessary iterations |
|
|
124
|
+
| Async patterns | No blocking where async expected |
|
|
125
|
+
| Database queries | No N+1 introductions |
|
|
126
|
+
|
|
127
|
+
**Red flags:**
|
|
128
|
+
- New loops inside existing loops
|
|
129
|
+
- Removed caching/memoization
|
|
130
|
+
- Added synchronous I/O
|
|
131
|
+
- Removed batching
|
|
132
|
+
|
|
133
|
+
## Goal Verification
|
|
134
|
+
|
|
135
|
+
Every goal from the brief must be verified as achieved.
|
|
136
|
+
|
|
137
|
+
### Goal Verification Matrix
|
|
138
|
+
|
|
139
|
+
| Brief Goal | Evidence | Status |
|
|
140
|
+
|------------|----------|--------|
|
|
141
|
+
| <goal 1> | <test/code reference> | [PASS/FAIL] |
|
|
142
|
+
| <goal 2> | <test/code reference> | [PASS/FAIL] |
|
|
143
|
+
| <goal 3> | <test/code reference> | [PASS/FAIL] |
|
|
144
|
+
|
|
145
|
+
**Goal verification process:**
|
|
146
|
+
1. Re-read brief goals
|
|
147
|
+
2. Find implementation of each
|
|
148
|
+
3. Verify test coverage for each
|
|
149
|
+
4. Document evidence
|
|
150
|
+
|
|
151
|
+
## Review Checklist
|
|
152
|
+
|
|
153
|
+
### Pre-Review
|
|
154
|
+
- [ ] Integration tests pass
|
|
155
|
+
- [ ] All tasks marked complete
|
|
156
|
+
- [ ] Brief goals accessible
|
|
157
|
+
|
|
158
|
+
### Behavior Preservation
|
|
159
|
+
- [ ] Method signatures analyzed
|
|
160
|
+
- [ ] Return value equivalence checked
|
|
161
|
+
- [ ] Side effects reviewed
|
|
162
|
+
- [ ] Error handling verified
|
|
163
|
+
- [ ] Intentional changes documented
|
|
164
|
+
|
|
165
|
+
### Regression Assessment
|
|
166
|
+
- [ ] Each component risk-assessed
|
|
167
|
+
- [ ] All existing tests pass (unchanged)
|
|
168
|
+
- [ ] No unexpected test changes
|
|
169
|
+
- [ ] Dependent code paths verified
|
|
170
|
+
|
|
171
|
+
### Performance
|
|
172
|
+
- [ ] No obvious complexity regressions
|
|
173
|
+
- [ ] No removed optimizations
|
|
174
|
+
- [ ] Memory patterns acceptable
|
|
175
|
+
- [ ] Async patterns preserved
|
|
176
|
+
|
|
177
|
+
### Goal Achievement
|
|
178
|
+
- [ ] All brief goals mapped to implementation
|
|
179
|
+
- [ ] Each goal has test coverage
|
|
180
|
+
- [ ] No goals left unaddressed
|
|
181
|
+
|
|
182
|
+
### Quality Standards
|
|
183
|
+
- [ ] Standard quality review criteria (see quality-review/SKILL.md)
|
|
184
|
+
- [ ] SOLID principles maintained or improved
|
|
185
|
+
- [ ] Code readability maintained or improved
|
|
186
|
+
|
|
187
|
+
## Report Template
|
|
188
|
+
|
|
189
|
+
```markdown
|
|
190
|
+
## Overhaul Review Report
|
|
191
|
+
|
|
192
|
+
### Summary
|
|
193
|
+
- Status: [APPROVED | NEEDS_FIXES | BLOCKED]
|
|
194
|
+
- Track: overhaul
|
|
195
|
+
- Brief: <brief-name>
|
|
196
|
+
- Reviewed: [timestamp]
|
|
197
|
+
|
|
198
|
+
### Behavior Preservation
|
|
199
|
+
| Area | Status | Notes |
|
|
200
|
+
|------|--------|-------|
|
|
201
|
+
| Method signatures | [OK | CHANGED] | |
|
|
202
|
+
| Return values | [OK | CHANGED] | |
|
|
203
|
+
| Side effects | [OK | CHANGED] | |
|
|
204
|
+
| Error handling | [OK | CHANGED] | |
|
|
205
|
+
|
|
206
|
+
### Intentional Changes
|
|
207
|
+
[List any intentional behavior changes with justification]
|
|
208
|
+
|
|
209
|
+
### Regression Risk Assessment
|
|
210
|
+
| Component | Risk | Status |
|
|
211
|
+
|-----------|------|--------|
|
|
212
|
+
| <component> | [HIGH | MED | LOW] | [PASS | CONCERN] |
|
|
213
|
+
|
|
214
|
+
### Goal Verification
|
|
215
|
+
| Brief Goal | Achieved | Evidence |
|
|
216
|
+
|------------|----------|----------|
|
|
217
|
+
| <goal 1> | [YES | NO] | <reference> |
|
|
218
|
+
|
|
219
|
+
### Findings
|
|
220
|
+
|
|
221
|
+
#### HIGH Priority (Must Fix)
|
|
222
|
+
1. [Finding title]
|
|
223
|
+
- File: `path/to/file.ts:42`
|
|
224
|
+
- Issue: [Description]
|
|
225
|
+
- Fix: [Required change]
|
|
226
|
+
|
|
227
|
+
#### MEDIUM Priority (Should Fix)
|
|
228
|
+
1. [Finding title]
|
|
229
|
+
- Issue: [Description]
|
|
230
|
+
- Suggestion: [Recommended change]
|
|
231
|
+
|
|
232
|
+
### Verdict
|
|
233
|
+
[APPROVED] Refactor goals achieved, behavior preserved
|
|
234
|
+
[NEEDS_FIXES] Issues found, return to delegate
|
|
235
|
+
[BLOCKED] Fundamental problem requires brief revision
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## State Updates
|
|
239
|
+
|
|
240
|
+
### On Review Complete
|
|
241
|
+
|
|
242
|
+
**Record review results:**
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
action: "set", featureId: "refactor-<slug>", updates: {
|
|
246
|
+
"reviews.overhaul": {
|
|
247
|
+
"status": "approved",
|
|
248
|
+
"behaviorPreserved": true,
|
|
249
|
+
"goalsVerified": true,
|
|
250
|
+
"regressionRisk": "low",
|
|
251
|
+
"timestamp": "<timestamp>"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### On Approval
|
|
257
|
+
|
|
258
|
+
**Advance to synthesize:**
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
action: "set", featureId: "refactor-<slug>", phase: "synthesize"
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### On Needs Fixes
|
|
265
|
+
|
|
266
|
+
**Record issues for fix cycle:**
|
|
267
|
+
|
|
268
|
+
```
|
|
269
|
+
action: "set", featureId: "refactor-<slug>", updates: {
|
|
270
|
+
"reviews.overhaul.status": "needs_fixes",
|
|
271
|
+
"reviews.overhaul.issues": ["<issue1>", "<issue2>"]
|
|
272
|
+
}
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
## Transition
|
|
276
|
+
|
|
277
|
+
### If APPROVED:
|
|
278
|
+
1. Update state: `.phase = "synthesize"`
|
|
279
|
+
2. Output: "Overhaul review passed. All goals achieved, behavior preserved. Auto-continuing to synthesis..."
|
|
280
|
+
3. Auto-invoke:
|
|
281
|
+
```typescript
|
|
282
|
+
Skill({ skill: "exarchos:synthesize", args: "<feature-name>" })
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### If NEEDS_FIXES:
|
|
286
|
+
1. Update state with issues
|
|
287
|
+
2. Output: "Overhaul review found issues. Auto-continuing to fixes..."
|
|
288
|
+
3. Auto-invoke:
|
|
289
|
+
```typescript
|
|
290
|
+
Skill({ skill: "exarchos:delegate", args: "--fixes <plan-path>" })
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### If BLOCKED:
|
|
294
|
+
1. Update state: `.phase = "blocked"`
|
|
295
|
+
2. Output: "Overhaul review blocked: [issue]. Returning to brief..."
|
|
296
|
+
3. Prompt for brief revision
|
|
297
|
+
|
|
298
|
+
## Exit Conditions
|
|
299
|
+
|
|
300
|
+
- [ ] All behavior preservation checks pass
|
|
301
|
+
- [ ] Regression risk assessed and acceptable
|
|
302
|
+
- [ ] All brief goals verified achieved
|
|
303
|
+
- [ ] Standard quality review criteria met
|
|
304
|
+
- [ ] State updated with review results
|