@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,155 @@
|
|
|
1
|
+
# PR Feedback Mode (--pr-fixes)
|
|
2
|
+
|
|
3
|
+
When invoked with `--pr-fixes [PR_URL]`, delegation addresses human review feedback from a pull request instead of implementing from a plan.
|
|
4
|
+
|
|
5
|
+
## Priority Levels
|
|
6
|
+
|
|
7
|
+
| Priority | Source | Description |
|
|
8
|
+
|----------|--------|-------------|
|
|
9
|
+
| 1 | `coderabbit:critical` | Critical issues + SPEC COMPLIANCE failures |
|
|
10
|
+
| 2 | `human` | Human reviewer comments (authority over automation) |
|
|
11
|
+
| 3 | `coderabbit:major` | Major issues + CODE QUALITY HIGH items |
|
|
12
|
+
| 4 | `coderabbit:minor` | Minor issues |
|
|
13
|
+
|
|
14
|
+
## Process
|
|
15
|
+
|
|
16
|
+
### Step 1: Fetch All PR Feedback
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Get full PR details including reviews and comments
|
|
20
|
+
gh pr view <number> --json title,body,state,files,reviewDecision,reviews,comments
|
|
21
|
+
|
|
22
|
+
# Get issue-level comments (pre-merge check summaries)
|
|
23
|
+
gh issue view <number> --json comments
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
> Or use GitHub MCP `pull_request_read` and `issue_read` if available.
|
|
27
|
+
|
|
28
|
+
### Step 2: Parse CodeRabbit Feedback
|
|
29
|
+
|
|
30
|
+
**2a: Identify CodeRabbit comments** by author = `coderabbitai[bot]`
|
|
31
|
+
|
|
32
|
+
**2b: Parse line comments by severity label:**
|
|
33
|
+
|
|
34
|
+
| Label | Priority |
|
|
35
|
+
|-------|----------|
|
|
36
|
+
| `Critical` | 1 |
|
|
37
|
+
| `Major` | 2 |
|
|
38
|
+
| `Minor` | 3 |
|
|
39
|
+
|
|
40
|
+
Extract from each comment:
|
|
41
|
+
- Severity label (emoji + text)
|
|
42
|
+
- File path and line number
|
|
43
|
+
- Issue description
|
|
44
|
+
- Suggested fix (from Proposed fix section if present)
|
|
45
|
+
|
|
46
|
+
**2c: Parse pre-merge check summaries:**
|
|
47
|
+
- `Status: FAIL` in Spec Review -> Priority 1
|
|
48
|
+
- `Status: NEEDS_FIXES | BLOCKED` in Quality Review -> Priority 2
|
|
49
|
+
- Extract items from `Missing:`, `Untested:`, `Scope Creep:` lists
|
|
50
|
+
|
|
51
|
+
**2d: Parse reviews with `CHANGES_REQUESTED`:**
|
|
52
|
+
- Note "Actionable comments posted: N" count
|
|
53
|
+
- Cross-reference with line comments already parsed
|
|
54
|
+
|
|
55
|
+
### Step 3: Parse Human Comments (Priority 2)
|
|
56
|
+
|
|
57
|
+
For non-CodeRabbit comments, assign `priority: 2` (human authority over automation).
|
|
58
|
+
|
|
59
|
+
Skip comments that are:
|
|
60
|
+
- Purely praise/acknowledgment ("LGTM", "Nice work")
|
|
61
|
+
- Questions without action items
|
|
62
|
+
- Already marked resolved
|
|
63
|
+
- From other bots (CI notifications, etc.)
|
|
64
|
+
|
|
65
|
+
### Step 4: Create Fix Tasks
|
|
66
|
+
|
|
67
|
+
For each actionable item, create a structured fix task:
|
|
68
|
+
|
|
69
|
+
| Field | Description |
|
|
70
|
+
|-------|-------------|
|
|
71
|
+
| `id` | `fix-001`, `fix-002`, etc. |
|
|
72
|
+
| `priority` | `1` (critical), `2` (human), `3` (major), `4` (minor) |
|
|
73
|
+
| `source` | `"coderabbit:critical"`, `"human"`, `"coderabbit:major"`, `"coderabbit:minor"` |
|
|
74
|
+
| `severity` | `"Critical"`, `"Major"`, `"Minor"`, or null |
|
|
75
|
+
| `file` | File path |
|
|
76
|
+
| `line` | Line number (if line comment) |
|
|
77
|
+
| `issue` | Problem description |
|
|
78
|
+
| `action` | Required change / suggested fix |
|
|
79
|
+
|
|
80
|
+
### Step 5: Sort and Display Fix Tasks
|
|
81
|
+
|
|
82
|
+
Sort by priority (1->4), then by file path for grouping.
|
|
83
|
+
|
|
84
|
+
### Step 6: Track Fix Tasks
|
|
85
|
+
|
|
86
|
+
Use TodoWrite to track all fix tasks with priority labels.
|
|
87
|
+
|
|
88
|
+
### Step 7: Dispatch Fixes (MANDATORY - Priority Order)
|
|
89
|
+
|
|
90
|
+
**Dispatch sequence:**
|
|
91
|
+
1. Dispatch all P1 (critical) fixes in parallel
|
|
92
|
+
2. Wait for completion
|
|
93
|
+
3. Dispatch all P2 (human) fixes in parallel
|
|
94
|
+
4. Wait for completion
|
|
95
|
+
5. Dispatch all P3 (major) fixes in parallel
|
|
96
|
+
6. Wait for completion
|
|
97
|
+
7. Dispatch all P4 (minor) fixes in parallel
|
|
98
|
+
8. Wait for completion
|
|
99
|
+
|
|
100
|
+
**Task prompt template:**
|
|
101
|
+
```typescript
|
|
102
|
+
Task({
|
|
103
|
+
subagent_type: "general-purpose",
|
|
104
|
+
model: "opus",
|
|
105
|
+
description: "Fix [P{priority} {severity}]: {issue summary}",
|
|
106
|
+
prompt: `
|
|
107
|
+
# Task: Fix PR Feedback - {issue summary}
|
|
108
|
+
|
|
109
|
+
## Priority
|
|
110
|
+
{priority} - {source}
|
|
111
|
+
|
|
112
|
+
## Context
|
|
113
|
+
PR: {PR_URL}
|
|
114
|
+
Source: {source}
|
|
115
|
+
Original feedback: "{original comment text}"
|
|
116
|
+
|
|
117
|
+
## Working Directory
|
|
118
|
+
{absolute path to repo}
|
|
119
|
+
|
|
120
|
+
## Fix Required
|
|
121
|
+
File: {file path}
|
|
122
|
+
Line: {line number if applicable}
|
|
123
|
+
Issue: {issue description}
|
|
124
|
+
Action: {required change}
|
|
125
|
+
|
|
126
|
+
## TDD Requirements
|
|
127
|
+
1. Write a test that would catch this issue (if applicable)
|
|
128
|
+
2. Verify test fails
|
|
129
|
+
3. Implement the fix
|
|
130
|
+
4. Verify test passes
|
|
131
|
+
|
|
132
|
+
## Success Criteria
|
|
133
|
+
- [ ] Issue addressed per feedback
|
|
134
|
+
- [ ] Tests pass
|
|
135
|
+
- [ ] No regressions introduced
|
|
136
|
+
`
|
|
137
|
+
})
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**CHECKPOINT:** Do NOT proceed to next priority level until all fixes in the current level have completed.
|
|
141
|
+
|
|
142
|
+
### Step 8: Push and Report
|
|
143
|
+
|
|
144
|
+
After all fixes complete, commit and push:
|
|
145
|
+
```bash
|
|
146
|
+
git add <fixed-files>
|
|
147
|
+
git commit -m "fix: address PR review feedback"
|
|
148
|
+
git push
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Report to user: total fixes by priority, files modified. Then auto-chain to `/exarchos:synthesize` for merge confirmation.
|
|
152
|
+
|
|
153
|
+
### Handling Missing CodeRabbit Comments
|
|
154
|
+
|
|
155
|
+
If no CodeRabbit comments found, proceed with human comments only.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Rationalization Refutation Guide
|
|
2
|
+
|
|
3
|
+
Common rationalizations that lead to delegation failures, with counter-arguments and correct alternatives.
|
|
4
|
+
|
|
5
|
+
## Rationalizations Table
|
|
6
|
+
|
|
7
|
+
| Rationalization | Counter-argument | What to do instead |
|
|
8
|
+
|----------------|-----------------|-------------------|
|
|
9
|
+
| "This task is simple enough to skip tests." | Simple tasks have the highest regression risk because they lack safety nets. Every skipped test is a future debugging session. TDD is mandatory per project rules, not optional per perceived complexity. | Write the test first. If it truly is simple, the test will be trivial to write — proving the point. |
|
|
10
|
+
| "The subagent will figure it out without a detailed prompt." | Subagents have zero context beyond what you provide. They cannot read the plan, see prior conversation, or infer intent. Vague prompts produce vague implementations that fail review. | Paste the full task description, file paths, TDD requirements, and acceptance criteria into the prompt. Use the implementer-prompt template without shortcuts. |
|
|
11
|
+
| "One worktree is enough for parallel tasks." | Two agents writing to the same worktree will race on `git checkout`, corrupt branch state, and produce merge conflicts. This is a known, documented failure mode. | Create one worktree per task via `prepare_delegation`. Never share worktrees between parallel agents. |
|
|
12
|
+
| "I can fix review findings directly instead of re-dispatching." | The orchestrator must not write implementation code (Orchestrator Constraints rule). Fixing directly bypasses TDD, skips worktree isolation, and conflates orchestration with implementation. | Dispatch a fixer agent using `references/fixer-prompt.md` with adversarial verification posture. Let the subagent fix in the proper worktree with proper tests. |
|
|
13
|
+
| "The subagent's self-assessment is sufficient for verifying completion." | Subagents are biased toward reporting success. They may miss failing tests, skip type checks, or misdiagnose root causes. Self-assessment is a known unreliable signal in multi-agent systems. | Independently verify: run tests in the worktree, check `git status` for uncommitted files, read test output yourself. Use the adversarial verification posture from `references/fixer-prompt.md`. |
|
|
14
|
+
| "I'll just dispatch sequentially to avoid coordination complexity." | Sequential dispatch wastes wall-clock time proportional to task count. Independent tasks should run in parallel — that is the entire purpose of delegation. | Identify dependency edges in the plan. Dispatch all tasks without inbound dependencies in a single parallel batch. Sequence only what the dependency graph requires. |
|
|
15
|
+
| "I can reuse context from the previous subagent's session." | Subagents do not share memory, state, or context windows. Attempting to reference "what the previous agent did" produces hallucinated continuations. | Follow the Fresh Context Per Task principle. Each prompt is self-contained. If Task B depends on Task A's output, wait for A to complete, read its artifacts, and include them in B's prompt. |
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Delegation State Management
|
|
2
|
+
|
|
3
|
+
State update patterns for workflow state during delegation. Use `mcp__plugin_exarchos_exarchos__exarchos_workflow` for all mutations.
|
|
4
|
+
|
|
5
|
+
## Read Tasks from State
|
|
6
|
+
|
|
7
|
+
Instead of re-parsing plan, read task list with `action: "get"`, `query: "tasks"`. For status checks during monitoring, use `fields: ["tasks"]` to reduce response size.
|
|
8
|
+
|
|
9
|
+
## Subagent Mode
|
|
10
|
+
|
|
11
|
+
**On Task Dispatch:**
|
|
12
|
+
```
|
|
13
|
+
action: "set", featureId: "<id>", updates: {
|
|
14
|
+
"tasks[id=<taskId>]": { "status": "in_progress", "startedAt": "<ISO timestamp>" },
|
|
15
|
+
"worktrees.<wt-id>": { "branch": "<branch>", "taskId": "<taskId>", "status": "active" }
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**On Task Complete:**
|
|
20
|
+
```
|
|
21
|
+
action: "set", featureId: "<id>", updates: {
|
|
22
|
+
"tasks[id=<taskId>]": { "status": "complete", "completedAt": "<ISO timestamp>" }
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**On All Tasks Complete:**
|
|
27
|
+
```
|
|
28
|
+
action: "set", featureId: "<id>", phase: "review"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Agent Team Mode (Single-Writer)
|
|
32
|
+
|
|
33
|
+
Only the orchestrator mutates `workflow.tasks[]` via `exarchos_workflow set`. Hooks emit events but never mutate state directly.
|
|
34
|
+
|
|
35
|
+
- **Step 2:** Store `nativeTaskId` from each `TaskCreate` return value
|
|
36
|
+
- **Step 4:** Read `team.task.completed` events during monitoring, update task status
|
|
37
|
+
- **Staleness:** 30-60s projection lag is acceptable — native task dependency unblocking is automatic
|
|
38
|
+
|
|
39
|
+
For the three-layer consistency model, drift recovery, and eventual consistency details, see `agent-teams-saga.md`.
|
|
40
|
+
|
|
41
|
+
## Benchmark Label
|
|
42
|
+
|
|
43
|
+
After extracting tasks from the plan, check if ANY task has `testingStrategy.benchmarks: true`. If so, record in state:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
action: "set", featureId: "<id>", updates: {
|
|
47
|
+
"verification.hasBenchmarks": true
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The `/exarchos:synthesize` skill reads `verification.hasBenchmarks` and applies the `has-benchmarks` label via `gh pr edit <number> --add-label has-benchmarks`.
|
|
52
|
+
|
|
53
|
+
## Agent ID Tracking
|
|
54
|
+
|
|
55
|
+
Workflow task state includes additional fields for resume-aware fixer flow:
|
|
56
|
+
|
|
57
|
+
| Field | Type | Description |
|
|
58
|
+
|-------|------|-------------|
|
|
59
|
+
| `agentId` | string | Claude Code agent ID for resume. Canonical source: `SubagentStop` hook payload. |
|
|
60
|
+
| `agentResumed` | boolean | Whether this agent was resumed (vs. fresh dispatch). |
|
|
61
|
+
| `lastExitReason` | string | Completion status (e.g., `"success"`, `"failure"`, `"timeout"`). Canonical source: `SubagentStop` hook payload. |
|
|
62
|
+
|
|
63
|
+
The `SubagentStop` hook (`hooks/hooks.json`) is the **canonical source** for `agentId` and `lastExitReason`. When the hook fires for `exarchos-implementer` or `exarchos-fixer` agents, the orchestrator persists the hook payload fields into `tasks[id=taskId]`. This enables the resume-first strategy in the fixer flow: when a task fails, the orchestrator can resume the original agent with failure context rather than dispatching a fresh fixer.
|
|
64
|
+
|
|
65
|
+
**State update on SubagentStop hook:**
|
|
66
|
+
```text
|
|
67
|
+
action: "set", featureId: "<id>", updates: {
|
|
68
|
+
"tasks[id=<taskId>]": {
|
|
69
|
+
"agentId": "<from SubagentStop hook payload: agent_id>",
|
|
70
|
+
"agentResumed": false,
|
|
71
|
+
"lastExitReason": "<from SubagentStop hook payload: exit_reason>"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**State update on resume:**
|
|
77
|
+
```text
|
|
78
|
+
action: "set", featureId: "<id>", updates: {
|
|
79
|
+
"tasks[id=<taskId>]": {
|
|
80
|
+
"agentResumed": true,
|
|
81
|
+
"status": "in_progress"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Testing Patterns
|
|
2
|
+
|
|
3
|
+
Code patterns for TDD implementation. Referenced from `rules/tdd.md`.
|
|
4
|
+
|
|
5
|
+
## Test File Co-location
|
|
6
|
+
|
|
7
|
+
Test files live alongside their source files, not in a separate `tests/` directory.
|
|
8
|
+
|
|
9
|
+
| Language | Source | Test |
|
|
10
|
+
|----------|--------|------|
|
|
11
|
+
| TypeScript | `src/foo.ts` | `src/foo.test.ts` |
|
|
12
|
+
| C# | `Services/OrderService.cs` | `Services/OrderService.Tests.cs` |
|
|
13
|
+
| Bash | `scripts/check-pr-comments.sh` | `scripts/check-pr-comments.test.sh` |
|
|
14
|
+
|
|
15
|
+
## Naming Convention
|
|
16
|
+
|
|
17
|
+
Tests use `Method_Scenario_Outcome` format:
|
|
18
|
+
- TypeScript: `it('GetOrder_InvalidId_ReturnsNotFound', ...)`
|
|
19
|
+
- C#: `public async Task GetOrder_InvalidId_ReturnsNotFound()`
|
|
20
|
+
- Bash: function name `test_no_args_exit_2`
|
|
21
|
+
|
|
22
|
+
## TypeScript (Vitest)
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Test Pattern
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
describe('ComponentName', () => {
|
|
32
|
+
describe('methodName', () => {
|
|
33
|
+
it('should do expected behavior when condition', async () => {
|
|
34
|
+
// Arrange
|
|
35
|
+
const input = createTestData();
|
|
36
|
+
|
|
37
|
+
// Act
|
|
38
|
+
const result = await component.method(input);
|
|
39
|
+
|
|
40
|
+
// Assert
|
|
41
|
+
expect(result).toBe(expected);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Mocking
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
vi.mock('./dependency', () => ({ someFn: vi.fn() }));
|
|
51
|
+
fetchMock.mockResponseOnce(JSON.stringify({ data: 'value' }));
|
|
52
|
+
expect(mockFn).toHaveBeenCalledWith(expectedArgs);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## C# (TUnit)
|
|
56
|
+
|
|
57
|
+
All tests MUST use `[Test]` attribute, be `async Task`, and await all assertions.
|
|
58
|
+
|
|
59
|
+
### Test Pattern
|
|
60
|
+
|
|
61
|
+
```csharp
|
|
62
|
+
[Test]
|
|
63
|
+
public async Task MethodName_Scenario_ExpectedOutcome()
|
|
64
|
+
{
|
|
65
|
+
// Arrange
|
|
66
|
+
var mockRepo = Substitute.For<IRepository>();
|
|
67
|
+
mockRepo.FindAsync(Arg.Any<Guid>()).Returns(expectedOrder);
|
|
68
|
+
var sut = new OrderService(mockRepo);
|
|
69
|
+
|
|
70
|
+
// Act
|
|
71
|
+
var result = await sut.GetOrderAsync(orderId);
|
|
72
|
+
|
|
73
|
+
// Assert (MUST await)
|
|
74
|
+
await Assert.That(result.IsSuccess).IsTrue();
|
|
75
|
+
await Assert.That(result.Value.Id).IsEqualTo(orderId);
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Assertions
|
|
80
|
+
|
|
81
|
+
```csharp
|
|
82
|
+
await Assert.That(actual).IsEqualTo(expected);
|
|
83
|
+
await Assert.That(condition).IsTrue();
|
|
84
|
+
await Assert.That(value).IsNotNull();
|
|
85
|
+
await Assert.That(collection).Contains(item);
|
|
86
|
+
await Assert.That(collection).HasCount(3);
|
|
87
|
+
await Assert.That(() => sut.Method()).Throws<ArgumentException>();
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameterized Tests
|
|
91
|
+
|
|
92
|
+
```csharp
|
|
93
|
+
[Test]
|
|
94
|
+
[Arguments(2, 3, 5)]
|
|
95
|
+
[Arguments(0, 0, 0)]
|
|
96
|
+
public async Task Add_VariousInputs_ReturnsExpectedSum(int a, int b, int expected)
|
|
97
|
+
{
|
|
98
|
+
var result = _calculator.Add(a, b);
|
|
99
|
+
await Assert.That(result).IsEqualTo(expected);
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Setup/Cleanup
|
|
104
|
+
|
|
105
|
+
```csharp
|
|
106
|
+
[Before(Test)]
|
|
107
|
+
public async Task Setup() { _service = new Service(); }
|
|
108
|
+
|
|
109
|
+
[After(Test)]
|
|
110
|
+
public async Task Cleanup() { /* dispose */ }
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Mocking (NSubstitute)
|
|
114
|
+
|
|
115
|
+
```csharp
|
|
116
|
+
var mock = Substitute.For<IOrderService>();
|
|
117
|
+
mock.GetOrderAsync(Arg.Any<Guid>()).Returns(Result<Order>.Success(order));
|
|
118
|
+
await mock.Received(1).GetOrderAsync(expectedId);
|
|
119
|
+
await mock.DidNotReceive().DeleteAsync(Arg.Any<Guid>());
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Property-Based Testing (fast-check)
|
|
123
|
+
|
|
124
|
+
### When to Use
|
|
125
|
+
|
|
126
|
+
- Data transformations (encode/decode, serialize/deserialize) -> Roundtrip
|
|
127
|
+
- State machines (transitions, guards) -> Invariant
|
|
128
|
+
- Collections/ordering (sort, filter, pagination) -> Idempotence
|
|
129
|
+
- Mathematical operations (scoring, budgets) -> Bounds/constraints
|
|
130
|
+
- Concurrency (optimistic locking) -> Linearizability
|
|
131
|
+
|
|
132
|
+
### Import
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import { it, fc } from '@fast-check/vitest';
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Basic Usage
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
it.prop([fc.array(fc.integer())], (arr) => {
|
|
142
|
+
expect(sort(sort(arr))).toEqual(sort(arr));
|
|
143
|
+
});
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
See `pbt-patterns.md` for roundtrip, invariant, idempotence, and commutativity pattern templates.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Delegation Troubleshooting
|
|
2
|
+
|
|
3
|
+
## MCP Tool Call Failed
|
|
4
|
+
If an Exarchos MCP tool returns an error:
|
|
5
|
+
1. Check the error message — it usually contains specific guidance
|
|
6
|
+
2. Verify the workflow state exists: call `exarchos_workflow` with `action: "get"` and the featureId
|
|
7
|
+
3. If "version mismatch": another process updated state — retry the operation
|
|
8
|
+
4. If state is corrupted: call `exarchos_workflow` with `action: "cancel"` and `dryRun: true`
|
|
9
|
+
|
|
10
|
+
## State Desync
|
|
11
|
+
If workflow state doesn't match git reality:
|
|
12
|
+
1. The SessionStart hook runs reconciliation automatically on resume
|
|
13
|
+
2. If manual check needed: compare state file with `git log` and branch state
|
|
14
|
+
3. Update state via `exarchos_workflow` with `action: "set"` to match git truth
|
|
15
|
+
|
|
16
|
+
## Worktree Creation Failed
|
|
17
|
+
If `git worktree add` fails:
|
|
18
|
+
1. Check if the branch already exists: `git branch --list <branch-name>`
|
|
19
|
+
2. Check if a worktree already exists at the path: `git worktree list`
|
|
20
|
+
3. If stale worktree: `git worktree prune` then retry
|
|
21
|
+
4. If branch conflict: use a unique branch name
|
|
22
|
+
|
|
23
|
+
## Subagent Not Responding
|
|
24
|
+
If a spawned subagent doesn't respond:
|
|
25
|
+
1. Check task output: use `TaskOutput` with the agent's task ID and `block: false`
|
|
26
|
+
2. If the subagent is stuck: stop it with `TaskStop` and re-dispatch
|
|
27
|
+
3. For Agent Teams: use Claude Code's native teammate messaging (Shift+Up/Down to select, then type)
|
|
28
|
+
|
|
29
|
+
## Task Claim Conflict
|
|
30
|
+
If `exarchos_orchestrate` with `action: "task_claim"` returns ALREADY_CLAIMED:
|
|
31
|
+
1. Another agent already claimed this task — skip it
|
|
32
|
+
2. Check task status via `exarchos_view` with `action: "tasks"` and `filter: { "taskId": "<id>" }`
|
|
33
|
+
3. Do not re-dispatch — the other agent is handling it
|
|
34
|
+
|
|
35
|
+
## Common Workflow Errors
|
|
36
|
+
|
|
37
|
+
### Error: `all-tasks-complete not satisfied: N task(s) incomplete`
|
|
38
|
+
|
|
39
|
+
**Cause:** Claude Code TaskList was updated via `TaskUpdate`, but exarchos workflow state was not synced. The `all-tasks-complete` guard checks the exarchos workflow `tasks[]` array, NOT Claude Code's native TaskList.
|
|
40
|
+
|
|
41
|
+
**Solution:** Before transitioning to review, call `exarchos_workflow set` with updated task statuses:
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"action": "set",
|
|
45
|
+
"featureId": "<id>",
|
|
46
|
+
"updates": {
|
|
47
|
+
"tasks": [
|
|
48
|
+
{ "id": "1", "status": "complete" },
|
|
49
|
+
{ "id": "2", "status": "complete" }
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Error: `Expected object, received array` when setting reviews
|
|
56
|
+
|
|
57
|
+
**Cause:** The `reviews` field requires a keyed object, not an array.
|
|
58
|
+
|
|
59
|
+
**Solution:** Use named keys for each review:
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"reviews": {
|
|
63
|
+
"spec-review": { "status": "pass", "issues": [] },
|
|
64
|
+
"quality-review": { "status": "pass", "issues": [] }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Error: `No transition from 'explore' to 'plan'`
|
|
70
|
+
|
|
71
|
+
**Cause:** Refactor workflows use different phase names than feature workflows. Feature uses `plan`, refactor uses `overhaul-plan` (overhaul track) or `polish-implement` (polish track).
|
|
72
|
+
|
|
73
|
+
**Solution:** Check the `validTargets` array in the error response. For refactor overhaul: use `overhaul-plan`. For refactor polish: use `polish-implement`. Use `exarchos_workflow get` with `query: "phase"` to confirm current phase (fast-path for scalar queries).
|
|
74
|
+
|
|
75
|
+
### Error: `invalid_enum_value` on event type (e.g., `wave.completed`)
|
|
76
|
+
|
|
77
|
+
**Cause:** The event type string doesn't match the enum. Common mistakes: `wave.completed` (not a valid type), `task.progress` (use `task.progressed`).
|
|
78
|
+
|
|
79
|
+
**Solution:** Use exact type strings from the Event Emission Contract table in SKILL.md. Valid team delegation types: `team.spawned`, `team.task.planned`, `team.teammate.dispatched`, `team.disbanded`, `team.task.completed`, `team.task.failed`.
|
|
80
|
+
|
|
81
|
+
### Error: `Guard 'triage-complete' failed: triage-complete not satisfied`
|
|
82
|
+
|
|
83
|
+
**Cause:** The guard checks for `state.triage.symptom`, not `state.triage.complete` or `state.triageComplete`.
|
|
84
|
+
|
|
85
|
+
**Solution:** Set the `triage.symptom` field:
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"action": "set",
|
|
89
|
+
"featureId": "<id>",
|
|
90
|
+
"updates": {
|
|
91
|
+
"triage": { "symptom": "<description of the bug or issue>" }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Error: `Guard 'root-cause-found' failed`
|
|
97
|
+
|
|
98
|
+
**Cause:** Guard checks `state.investigation.rootCause`, not `state.rootCause`.
|
|
99
|
+
|
|
100
|
+
**Solution:** Set `investigation.rootCause`:
|
|
101
|
+
```json
|
|
102
|
+
{
|
|
103
|
+
"action": "set",
|
|
104
|
+
"featureId": "<id>",
|
|
105
|
+
"updates": {
|
|
106
|
+
"investigation": { "rootCause": "<root cause description>" }
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
```
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Delegation Worked Example
|
|
2
|
+
|
|
3
|
+
Complete trace of a two-task delegation: happy path for task-001, failure recovery for task-002.
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
Feature: `add-email-validation` with two plan tasks:
|
|
8
|
+
- **task-001:** Email format validator (`src/validators/email.ts`)
|
|
9
|
+
- **task-002:** Domain MX check (`src/validators/domain.ts`)
|
|
10
|
+
|
|
11
|
+
## 1. Prepare
|
|
12
|
+
|
|
13
|
+
Call the composite action:
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
exarchos_orchestrate({
|
|
17
|
+
action: "prepare_delegation",
|
|
18
|
+
featureId: "add-email-validation",
|
|
19
|
+
tasks: [
|
|
20
|
+
{ id: "task-001", title: "Email format validator", modules: ["src/validators"] },
|
|
21
|
+
{ id: "task-002", title: "Domain MX check", modules: ["src/validators"] }
|
|
22
|
+
]
|
|
23
|
+
})
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Response:
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"ready": true,
|
|
30
|
+
"worktrees": [
|
|
31
|
+
{ "taskId": "task-001", "path": "/project/.worktrees/task-001" },
|
|
32
|
+
{ "taskId": "task-002", "path": "/project/.worktrees/task-002" }
|
|
33
|
+
],
|
|
34
|
+
"qualityHints": []
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## 2. Dispatch
|
|
39
|
+
|
|
40
|
+
Build two self-contained prompts from `implementer-prompt.md` and dispatch in a single message:
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
Task({
|
|
44
|
+
subagent_type: "general-purpose", model: "opus", run_in_background: true,
|
|
45
|
+
description: "Implement task-001: Email format validator",
|
|
46
|
+
prompt: `# Task: Email Format Validator\n\n## Working Directory\n/project/.worktrees/task-001\n\n[Full implementer prompt with TDD, file paths, acceptance criteria...]`
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
Task({
|
|
50
|
+
subagent_type: "general-purpose", model: "opus", run_in_background: true,
|
|
51
|
+
description: "Implement task-002: Domain MX check",
|
|
52
|
+
prompt: `# Task: Domain MX Check\n\n## Working Directory\n/project/.worktrees/task-002\n\n[Full implementer prompt with TDD, file paths, acceptance criteria...]`
|
|
53
|
+
})
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 3. Monitor — Happy Path (task-001)
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
TaskOutput({ task_id: "task-001-id", block: true })
|
|
60
|
+
// Result: tests pass, implementation complete
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Update workflow state:
|
|
64
|
+
```typescript
|
|
65
|
+
exarchos_workflow({ action: "set", featureId: "add-email-validation",
|
|
66
|
+
updates: { "tasks[0].status": "complete" } })
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Emit gate event:
|
|
70
|
+
```typescript
|
|
71
|
+
exarchos_event({ action: "append", stream: "add-email-validation",
|
|
72
|
+
event: { type: "gate.executed", data: { gateName: "post-delegation-check", layer: "CI", passed: true } } })
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 4. Monitor — Failure Recovery (task-002)
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
TaskOutput({ task_id: "task-002-id", block: true })
|
|
79
|
+
// Result: test fails — DNS mock not wired, MX lookup hits network
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Do NOT trust the implementer's summary.** Read the test output independently:
|
|
83
|
+
- Root cause: Missing `vi.mock('dns')` — real DNS called during test.
|
|
84
|
+
|
|
85
|
+
Re-dispatch with fixer prompt in the same worktree:
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
Task({
|
|
89
|
+
subagent_type: "general-purpose", model: "opus",
|
|
90
|
+
description: "Fix task-002: DNS mock missing",
|
|
91
|
+
prompt: `# Fix Task: DNS Mock Missing\n\n## Adversarial Verification Posture\nIndependently verify the failure...\n\n## Working Directory\n/project/.worktrees/task-002\n\n## Issue to Fix\n**File:** src/validators/domain.test.ts\n**Problem:** Missing vi.mock('dns') — test makes real network calls\n**Fix:** Add vi.mock('dns') with MX record stub\n\n## Verification\nRun: npm run test:run\nAll tests must pass without network access.`
|
|
92
|
+
})
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
After fix succeeds, update state and emit gate event as in the happy path.
|
|
96
|
+
|
|
97
|
+
## 5. Transition
|
|
98
|
+
|
|
99
|
+
Both tasks complete. Auto-continue:
|
|
100
|
+
```typescript
|
|
101
|
+
exarchos_workflow({ action: "set", featureId: "add-email-validation",
|
|
102
|
+
updates: { phase: "review" } })
|
|
103
|
+
Skill({ skill: "exarchos:review", args: "docs/plans/add-email-validation.md" })
|
|
104
|
+
```
|