@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,254 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: workflow-state
|
|
3
|
+
description: "Checkpoint and resume workflow state for context persistence across sessions. Use when the user says 'save progress', 'checkpoint', 'I need to stop', or runs /checkpoint or /rehydrate. Saves current workflow phase, task progress, and artifacts for later resumption. Do NOT use for workflow initialization (handled by ideate/debug/refactor commands)."
|
|
4
|
+
metadata:
|
|
5
|
+
author: exarchos
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
mcp-server: exarchos
|
|
8
|
+
category: utility
|
|
9
|
+
phase-affinity:
|
|
10
|
+
- ideate
|
|
11
|
+
- plan
|
|
12
|
+
- delegate
|
|
13
|
+
- review
|
|
14
|
+
- synthesize
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Workflow State Management Skill
|
|
18
|
+
|
|
19
|
+
## Overview
|
|
20
|
+
|
|
21
|
+
Manage persistent workflow state that survives context auto-summarization.
|
|
22
|
+
|
|
23
|
+
State files store: task details, worktree locations, PR URLs, and review status.
|
|
24
|
+
|
|
25
|
+
## Triggers
|
|
26
|
+
|
|
27
|
+
Activate this skill when:
|
|
28
|
+
- Starting a new workflow (`ideate`)
|
|
29
|
+
- Transitioning between workflow phases
|
|
30
|
+
- Restoring context after summarization (`rehydrate`)
|
|
31
|
+
- Saving progress for later continuation (`checkpoint`)
|
|
32
|
+
|
|
33
|
+
## Phase Transitions
|
|
34
|
+
|
|
35
|
+
Valid transitions, guards, and prerequisites for all workflow types are documented in `references/phase-transitions.md`. **CRITICAL:** When a transition has a guard, send the prerequisite `updates` and `phase` in a single `set` call — updates apply before guards evaluate.
|
|
36
|
+
|
|
37
|
+
### Schema Discovery
|
|
38
|
+
|
|
39
|
+
Use `exarchos_workflow({ action: "describe", actions: ["set", "init", "get"] })` for
|
|
40
|
+
parameter schemas and `exarchos_workflow({ action: "describe", playbook: "feature" })`
|
|
41
|
+
for phase transitions, guards, and playbook guidance. For the lightweight
|
|
42
|
+
oneshot variant (with its `implementing → synthesize|completed` choice state
|
|
43
|
+
driven by `synthesisPolicy`), call `exarchos_workflow({ action: "describe", playbook: "oneshot" })`
|
|
44
|
+
— oneshot is a first-class playbook alongside feature/debug/refactor. Use
|
|
45
|
+
`exarchos_event({ action: "describe", eventTypes: ["workflow.transition", "task.completed"] })`
|
|
46
|
+
for event data schemas.
|
|
47
|
+
|
|
48
|
+
## State Location
|
|
49
|
+
|
|
50
|
+
Workflow state lives in the **MCP event store**, not the filesystem. Use `exarchos_workflow get` to read state and `exarchos_view pipeline` to discover active workflows. Do **not** scan `~/.claude/workflow-state/*.state.json` — that path is legacy and may be stale or empty.
|
|
51
|
+
|
|
52
|
+
## State Operations
|
|
53
|
+
|
|
54
|
+
For full MCP tool signatures, error handling, and anti-patterns, see `references/mcp-tool-reference.md`.
|
|
55
|
+
|
|
56
|
+
### Initialize State
|
|
57
|
+
|
|
58
|
+
At the start of `ideate`, use `mcp__exarchos__exarchos_workflow` with `action: "init"` with:
|
|
59
|
+
- `featureId`: the workflow identifier (e.g., `"user-authentication"`)
|
|
60
|
+
- `workflowType`: one of `"feature"`, `"debug"`, `"refactor"`, `"oneshot"`
|
|
61
|
+
- `synthesisPolicy` *(optional, oneshot only)*: one of `"always"`, `"never"`, `"on-request"` (default `"on-request"`) — silently ignored for non-oneshot types
|
|
62
|
+
|
|
63
|
+
This creates a new workflow state entry. The initial phase depends on
|
|
64
|
+
`workflowType`:
|
|
65
|
+
|
|
66
|
+
- `feature` → starts in `ideate`
|
|
67
|
+
- `debug` → starts in `triage`
|
|
68
|
+
- `refactor` → starts in `explore`
|
|
69
|
+
- `oneshot` → starts in `plan` (skips ideate entirely)
|
|
70
|
+
|
|
71
|
+
### Workflow Types at a Glance
|
|
72
|
+
|
|
73
|
+
- `feature` — full `ideate → plan → delegate → review → synthesize` for real features with subagent dispatch and two-stage review
|
|
74
|
+
- `debug` — `triage → investigate → (thorough | hotfix)` for bug workflows with track selection
|
|
75
|
+
- `refactor` — `explore → brief → (polish | overhaul)` for code improvements, polish for small and overhaul for multi-task
|
|
76
|
+
- `oneshot` — `plan → implementing → (completed | synthesize)` for trivial changes; direct-commit by default with an opt-in PR path resolved via a choice-state guard driven by `synthesisPolicy` and the `synthesize.requested` event
|
|
77
|
+
|
|
78
|
+
See `@skills/oneshot-workflow/SKILL.md` for the lightweight variant's full prose, including the choice-state mechanics and `finalize_oneshot` trigger.
|
|
79
|
+
|
|
80
|
+
### Read State
|
|
81
|
+
|
|
82
|
+
Use `mcp__exarchos__exarchos_workflow` with `action: "get"` and `featureId`:
|
|
83
|
+
|
|
84
|
+
- **Full state**: Call with just `featureId`
|
|
85
|
+
- **Specific field**: Add `query` for dot-path lookup (e.g., `query: "phase"`, `query: "tasks"`)
|
|
86
|
+
- **Multiple fields**: Add `fields` array for projection (e.g., `fields: ["phase", "featureId", "tasks"]`)
|
|
87
|
+
|
|
88
|
+
Field projection via `fields` returns only the requested top-level keys, reducing token cost.
|
|
89
|
+
|
|
90
|
+
### Update State
|
|
91
|
+
|
|
92
|
+
Use `mcp__exarchos__exarchos_workflow` with `action: "set"` with `featureId` and either `updates`, `phase`, or both:
|
|
93
|
+
|
|
94
|
+
- **Update phase**: `phase: "delegate"`
|
|
95
|
+
- **Set artifact path**: `updates: { "artifacts.design": "docs/designs/2026-01-05-feature.md" }`
|
|
96
|
+
- **Mark task complete**: `updates: { "tasks[id=001].status": "complete", "tasks[id=001].completedAt": "<timestamp>" }`
|
|
97
|
+
- **Add worktree**: `updates: { "worktrees.wt-001": { "branch": "feature/001-types", "taskId": "001", "status": "active" } }`
|
|
98
|
+
- **Phase + updates together**: `phase: "delegate"`, `updates: { "artifacts.plan": "docs/plans/plan.md" }`
|
|
99
|
+
|
|
100
|
+
Worktree status values: `'active' | 'merged' | 'removed'`
|
|
101
|
+
|
|
102
|
+
### Get Summary
|
|
103
|
+
|
|
104
|
+
For context restoration after summarization, use `mcp__exarchos__exarchos_workflow` with `action: "get"` and `featureId`. This outputs a minimal summary suitable for rebuilding orchestrator context.
|
|
105
|
+
|
|
106
|
+
### Reconcile State
|
|
107
|
+
|
|
108
|
+
To verify state matches git reality, the SessionStart hook automatically reconciles on resume. For manual verification, run the reconciliation script:
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
exarchos_orchestrate({
|
|
112
|
+
action: "reconcile_state",
|
|
113
|
+
stateFile: "<state-file>",
|
|
114
|
+
repoRoot: "<repo-root>"
|
|
115
|
+
})
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**On `passed: true`:** State is consistent.
|
|
119
|
+
**On `passed: false`:** Discrepancies found — review output and resolve.
|
|
120
|
+
|
|
121
|
+
## Integration Points
|
|
122
|
+
|
|
123
|
+
### When to Update State
|
|
124
|
+
|
|
125
|
+
| Event | State Update |
|
|
126
|
+
|-------|--------------|
|
|
127
|
+
| `ideate` starts | Create state file |
|
|
128
|
+
| Design saved | Set `artifacts.design`, phase = "plan" |
|
|
129
|
+
| Plan saved | Set `artifacts.plan`, populate tasks, phase = "plan-review" |
|
|
130
|
+
| Plan-review gaps found | Set `planReview.gaps`, auto-loop to plan |
|
|
131
|
+
| Plan-review approved | Set `planReview.approved = true`, phase = "delegate" |
|
|
132
|
+
| Task dispatched | Set task `status = "in_progress"`, `startedAt` |
|
|
133
|
+
| Task complete | Set task `status = "complete"`, `completedAt` |
|
|
134
|
+
| Worktree created | Add to `worktrees` object |
|
|
135
|
+
| Review complete | Update `reviews` object |
|
|
136
|
+
| PR created | Set `artifacts.pr`, `synthesis.prUrl` |
|
|
137
|
+
| PR feedback | Append to `synthesis.prFeedback` |
|
|
138
|
+
|
|
139
|
+
#### Oneshot-specific state updates
|
|
140
|
+
|
|
141
|
+
Oneshot is a first-class workflow type with a compressed lifecycle and an
|
|
142
|
+
opt-in PR path. The rows below mirror the feature-workflow table above.
|
|
143
|
+
|
|
144
|
+
| Phase | State updates | Events emitted |
|
|
145
|
+
|-------|---------------|----------------|
|
|
146
|
+
| `plan` (oneshot) | `oneshot.planSummary`, `artifacts.plan`, optional `oneshot.synthesisPolicy` | `workflow.transition` |
|
|
147
|
+
| `implementing` (oneshot) | `tasks[].status`, `artifacts.tests` | `task.*`, optional `synthesize.requested` (via `request_synthesize`) |
|
|
148
|
+
| `synthesize` (oneshot) | `synthesis.prUrl`, `artifacts.pr` | `workflow.transition`, `stack.submitted` |
|
|
149
|
+
| `completed` (oneshot) | — | `workflow.transition` (to `completed`) |
|
|
150
|
+
|
|
151
|
+
The `implementing → synthesize | completed` fork is a choice state resolved
|
|
152
|
+
by `finalize_oneshot`, which reads the `synthesisOptedIn` guard
|
|
153
|
+
(`synthesisPolicy` + `synthesize.requested` events). See
|
|
154
|
+
`@skills/oneshot-workflow/SKILL.md` for the full opt-in mechanics.
|
|
155
|
+
|
|
156
|
+
### Automatic State Updates
|
|
157
|
+
|
|
158
|
+
Skills should update state at key moments:
|
|
159
|
+
|
|
160
|
+
**brainstorming/SKILL.md:**
|
|
161
|
+
```markdown
|
|
162
|
+
After saving design:
|
|
163
|
+
1. Update state: `.artifacts.design = "<path>"`
|
|
164
|
+
2. Update state: `.phase = "plan"`
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**implementation-planning/SKILL.md:**
|
|
168
|
+
```markdown
|
|
169
|
+
After saving plan:
|
|
170
|
+
1. Update state: `.artifacts.plan = "<path>"`
|
|
171
|
+
2. Populate `.tasks` from plan
|
|
172
|
+
3. Update state: `.phase = "delegate"`
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**delegation/SKILL.md:**
|
|
176
|
+
```markdown
|
|
177
|
+
On task dispatch:
|
|
178
|
+
- Update task status to "in_progress"
|
|
179
|
+
- Add worktree to state if created
|
|
180
|
+
|
|
181
|
+
On task complete:
|
|
182
|
+
- Update task status to "complete"
|
|
183
|
+
- Check if all tasks done, suggest checkpoint
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## State Schema
|
|
187
|
+
|
|
188
|
+
See `docs/schemas/workflow-state.schema.json` for full schema.
|
|
189
|
+
|
|
190
|
+
Key sections:
|
|
191
|
+
- `version`: Schema version (currently "1.1")
|
|
192
|
+
- `featureId`: Unique workflow identifier
|
|
193
|
+
- `workflowType`: Required. One of "feature", "debug", "refactor", or "oneshot"
|
|
194
|
+
- `phase`: Current workflow phase
|
|
195
|
+
- `artifacts`: Paths to design, plan, PR
|
|
196
|
+
- `tasks`: Task list with status
|
|
197
|
+
- `worktrees`: Active git worktrees
|
|
198
|
+
- `planReview`: Plan-review delta analysis results (`gaps`, `approved`)
|
|
199
|
+
- `reviews`: Review results
|
|
200
|
+
- `synthesis`: Merge/PR state
|
|
201
|
+
|
|
202
|
+
## Best Practices
|
|
203
|
+
|
|
204
|
+
1. **Update often** - State should reflect reality at all times
|
|
205
|
+
2. **Use MCP tools** - Prefer workflow-state MCP tools over manual JSON editing
|
|
206
|
+
3. **Reconcile on resume** - Always verify state matches git state
|
|
207
|
+
4. **Checkpoint at boundaries** - Save state before likely context exhaustion
|
|
208
|
+
5. **Read state, don't remember** - After summarization, read from state file
|
|
209
|
+
|
|
210
|
+
## Troubleshooting
|
|
211
|
+
|
|
212
|
+
### MCP Tool Call Failed
|
|
213
|
+
If an Exarchos MCP tool returns an error:
|
|
214
|
+
1. Check the error message — it usually contains specific guidance
|
|
215
|
+
2. Verify the workflow state exists: call `mcp__exarchos__exarchos_workflow` with `action: "get"` and the featureId
|
|
216
|
+
3. If "version mismatch": another process updated state — retry the operation
|
|
217
|
+
4. If state is corrupted: call `mcp__exarchos__exarchos_workflow` with `action: "cancel"` and `dryRun: true`
|
|
218
|
+
|
|
219
|
+
### State Desync
|
|
220
|
+
If workflow state doesn't match git reality:
|
|
221
|
+
1. The SessionStart hook runs reconciliation automatically on resume
|
|
222
|
+
2. If manual check needed: compare state file with `git log` and branch state
|
|
223
|
+
3. Update state via `mcp__exarchos__exarchos_workflow` with `action: "set"` to match git truth
|
|
224
|
+
|
|
225
|
+
### Checkpoint File Missing
|
|
226
|
+
If the PreCompact hook can't find state to checkpoint:
|
|
227
|
+
1. Verify a workflow is active: call `mcp__exarchos__exarchos_workflow` with `action: "get"` and the featureId
|
|
228
|
+
2. If no active workflow: the hook will silently skip (expected behavior)
|
|
229
|
+
3. If workflow exists but checkpoint fails: check disk space and permissions
|
|
230
|
+
|
|
231
|
+
### Resume Finds Stale State
|
|
232
|
+
If state references branches or worktrees that no longer exist:
|
|
233
|
+
1. The SessionStart hook handles reconciliation automatically
|
|
234
|
+
2. It updates state to reflect current git reality
|
|
235
|
+
3. Missing branches are flagged in the session-start output
|
|
236
|
+
|
|
237
|
+
### Multiple Active Workflows
|
|
238
|
+
If multiple workflow state files exist:
|
|
239
|
+
1. The system uses the most recently updated active (non-completed) workflow
|
|
240
|
+
2. Use `mcp__exarchos__exarchos_workflow` with `action: "cancel"` and `dryRun: true` on stale workflows to preview cleanup
|
|
241
|
+
3. Cancel stale workflows before starting new ones
|
|
242
|
+
|
|
243
|
+
## Example Workflow
|
|
244
|
+
|
|
245
|
+
1. **Start new workflow**: Use `mcp__exarchos__exarchos_workflow` with `action: "init"` with `featureId: "user-authentication"`, `workflowType: "feature"`
|
|
246
|
+
|
|
247
|
+
2. **After design phase**: Use `mcp__exarchos__exarchos_workflow` with `action: "set"` with:
|
|
248
|
+
- `featureId: "user-authentication"`
|
|
249
|
+
- `phase: "plan"`
|
|
250
|
+
- `updates: { "artifacts.design": "docs/designs/2026-01-05-user-auth.md" }`
|
|
251
|
+
|
|
252
|
+
3. **Check state**: Use `mcp__exarchos__exarchos_workflow` with `action: "get"` with `featureId: "user-authentication"`
|
|
253
|
+
|
|
254
|
+
4. **Resume after context loss**: Use `mcp__exarchos__exarchos_workflow` with `action: "get"` with `featureId: "user-authentication"` to get context restoration output
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# MCP Tool Reference
|
|
2
|
+
|
|
3
|
+
Detailed tool usage, methods, and anti-patterns for all installed MCP servers.
|
|
4
|
+
|
|
5
|
+
## Exarchos (`mcp__plugin_exarchos_exarchos__*`)
|
|
6
|
+
|
|
7
|
+
Unified MCP server for workflow orchestration, event sourcing, CQRS views, and task coordination. **Always use for workflow tracking.** Exposes 5 composite tools with action discriminators. Note: inter-agent messaging uses Claude Code's native Agent Teams, not Exarchos.
|
|
8
|
+
|
|
9
|
+
### Composite Tools
|
|
10
|
+
|
|
11
|
+
| Tool | Actions | When to Use |
|
|
12
|
+
|------|---------|-------------|
|
|
13
|
+
| `mcp__plugin_exarchos_exarchos__exarchos_workflow` | `init`, `get`, `set`, `cancel`, `cleanup` | Workflow CRUD: starting workflows, reading/updating state, cancelling abandoned workflows, resolving merged workflows |
|
|
14
|
+
| `mcp__plugin_exarchos_exarchos__exarchos_event` | `append`, `query` | Event sourcing: recording workflow events, reading event history |
|
|
15
|
+
| `mcp__plugin_exarchos_exarchos__exarchos_orchestrate` | `task_claim`, `task_complete`, `task_fail` | Task coordination and lifecycle |
|
|
16
|
+
| `mcp__plugin_exarchos_exarchos__exarchos_view` | `pipeline`, `tasks`, `workflow_status`, `stack_status`, `stack_place` | CQRS materialized views for read-optimized queries |
|
|
17
|
+
| `mcp__plugin_exarchos_exarchos__exarchos_sync` | `now` | Force sync of materialized views |
|
|
18
|
+
|
|
19
|
+
### Workflow Tool Actions
|
|
20
|
+
|
|
21
|
+
| Action | When to Use |
|
|
22
|
+
|--------|-------------|
|
|
23
|
+
| `init` | Starting any `/exarchos:ideate`, `/exarchos:debug`, or `/exarchos:refactor` workflow |
|
|
24
|
+
| `get` | Restoring context, checking phase, reading task details. Use `query` for dot-path lookup (e.g., `query: "phase"`), or `fields` array for projection (e.g., `fields: ["phase", "tasks"]`) to reduce token cost |
|
|
25
|
+
| `set` | Updating phase (`phase: "delegate"`), recording artifacts, marking tasks complete. Use `updates` for field changes and `phase` for transitions |
|
|
26
|
+
| `cancel` | Cleaning up abandoned workflows. Supports `dryRun: true` to preview cleanup actions |
|
|
27
|
+
| `cleanup` | Resolve a merged workflow to completed. Verifies merge, backfills synthesis metadata, force-resolves reviews, transitions to completed. Requires `mergeVerified: true` — pass after verifying PRs are merged via GitHub API |
|
|
28
|
+
|
|
29
|
+
**Hooks (automatic, no tool call needed):**
|
|
30
|
+
- **SessionStart hook** — Discovers active workflows, restores context, determines next action, and verifies state on resume (replaces former `workflow_list`, `workflow_summary`, `workflow_next_action`, `workflow_reconcile` tools)
|
|
31
|
+
- **PreCompact hook** — Saves checkpoints before context exhaustion (replaces former `workflow_checkpoint` tool)
|
|
32
|
+
- Valid phase transitions are documented in `references/phase-transitions.md` (replaces former `workflow_transitions` tool). `INVALID_TRANSITION` errors include valid targets with guard descriptions.
|
|
33
|
+
|
|
34
|
+
### Event Tool Actions
|
|
35
|
+
|
|
36
|
+
| Action | When to Use |
|
|
37
|
+
|--------|-------------|
|
|
38
|
+
| `append` | Recording workflow events (task.assigned, gate.executed, etc.). Use `expectedSequence` for optimistic concurrency |
|
|
39
|
+
| `query` | Reading event history. Use `filter` for type/time filtering, `limit`/`offset` for pagination |
|
|
40
|
+
|
|
41
|
+
### Orchestrate Tool Actions
|
|
42
|
+
|
|
43
|
+
| Action | When to Use |
|
|
44
|
+
|--------|-------------|
|
|
45
|
+
| `task_claim` | Claim a task for execution. Returns `ALREADY_CLAIMED` if previously claimed — handle gracefully |
|
|
46
|
+
| `task_complete` | Mark a task complete with optional `result` (artifacts, duration) |
|
|
47
|
+
| `task_fail` | Mark a task failed with `error` message and optional `diagnostics` |
|
|
48
|
+
|
|
49
|
+
### View Tool Actions
|
|
50
|
+
|
|
51
|
+
| Action | When to Use |
|
|
52
|
+
|--------|-------------|
|
|
53
|
+
| `pipeline` | Aggregated view of all workflows with stack positions. Use `limit`/`offset` for pagination |
|
|
54
|
+
| `tasks` | Task detail view with filtering and projection. Use `workflowId` to scope, `filter` for property matching, `fields` for projection (e.g., `fields: ["taskId", "status", "title"]`), `limit`/`offset` for pagination |
|
|
55
|
+
| `workflow_status` | Workflow phase, task counts, and metadata. Use `workflowId` to scope |
|
|
56
|
+
| `stack_status` | Get current stack positions from events. Use `streamId` to scope |
|
|
57
|
+
| `stack_place` | Record a stack position with `position`, `taskId`, `branch`, optional `prUrl` |
|
|
58
|
+
|
|
59
|
+
## GitHub (`mcp__plugin_github_github__*`)
|
|
60
|
+
> Optional companion (`npx create-exarchos`). Fallback: use `gh` CLI.
|
|
61
|
+
|
|
62
|
+
## Serena (`mcp__plugin_serena_serena__*`)
|
|
63
|
+
> Optional companion (`npx create-exarchos`). Fallback: use Grep/Read/Glob.
|
|
64
|
+
|
|
65
|
+
## Context7 (`mcp__plugin_context7_context7__*`)
|
|
66
|
+
> Optional companion (`npx create-exarchos`). Fallback: use WebSearch.
|
|
67
|
+
|
|
68
|
+
## Microsoft Learn (`mcp__microsoft-learn__*`)
|
|
69
|
+
> Optional companion (`npx create-exarchos`). Fallback: use WebSearch.
|
|
70
|
+
|
|
71
|
+
## Workflow Transition Errors
|
|
72
|
+
|
|
73
|
+
### INVALID_TRANSITION
|
|
74
|
+
No path exists from current phase to target. Check `validTargets` in the error — it lists reachable phases with guard descriptions. You may need to step through intermediate phases.
|
|
75
|
+
|
|
76
|
+
### GUARD_FAILED
|
|
77
|
+
The transition exists but the guard condition is unmet. Send prerequisite `updates` and `phase` in a **single** `set` call — updates apply before guards evaluate. See `references/phase-transitions.md` for guard prerequisites.
|
|
78
|
+
|
|
79
|
+
### CIRCUIT_OPEN
|
|
80
|
+
A compound state's fix cycle limit was reached. Escalate to user or cancel the workflow.
|
|
81
|
+
|
|
82
|
+
## Anti-Patterns
|
|
83
|
+
|
|
84
|
+
| Don't | Do Instead |
|
|
85
|
+
|-------|------------|
|
|
86
|
+
| Manually edit workflow state JSON | Use `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "set"` |
|
|
87
|
+
| Skip state reconciliation on resume | The SessionStart hook handles reconciliation automatically |
|
|
88
|
+
|
|
89
|
+
> See companion documentation for additional tool anti-patterns (Serena, GitHub MCP, Context7). Install companions: `npx create-exarchos`.
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# Phase Transitions Reference
|
|
2
|
+
|
|
3
|
+
All valid HSM phase transitions for each workflow type. Every transition listed here is the **only** way to move between phases — the HSM rejects unlisted transitions with `INVALID_TRANSITION`.
|
|
4
|
+
|
|
5
|
+
## Combined Updates + Phase Pattern
|
|
6
|
+
|
|
7
|
+
**CRITICAL:** When a transition has a guard that requires prerequisite state, send `updates` and `phase` in a single `set` call. Updates are applied BEFORE guards evaluate:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
action: "set"
|
|
11
|
+
featureId: "my-feature"
|
|
12
|
+
phase: "delegate"
|
|
13
|
+
updates: { "planReview.approved": true }
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
This satisfies the `planReviewComplete` guard in one call. Two separate calls (set data, then transition) also work but waste a tool call.
|
|
17
|
+
|
|
18
|
+
## Universal Transitions
|
|
19
|
+
|
|
20
|
+
Available from **any non-final** phase in all workflow types:
|
|
21
|
+
|
|
22
|
+
| To | Guard | How to Trigger |
|
|
23
|
+
|----|-------|----------------|
|
|
24
|
+
| `cancelled` | None | `exarchos_workflow cancel` (not `set`) — runs saga compensation |
|
|
25
|
+
| `completed` | `merge-verified` | `exarchos_workflow cleanup` with `mergeVerified: true` — for post-merge resolution |
|
|
26
|
+
|
|
27
|
+
## Feature Workflow
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
ideate → plan → plan-review → delegate ⇄ review → synthesize → completed
|
|
31
|
+
↓
|
|
32
|
+
plan (gaps found)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
| From | To | Guard | Prerequisite |
|
|
36
|
+
|------|----|-------|-------------|
|
|
37
|
+
| `ideate` | `plan` | `design-artifact-exists` | Set `artifacts.design` |
|
|
38
|
+
| `plan` | `plan-review` | `plan-artifact-exists` | Set `artifacts.plan` |
|
|
39
|
+
| `plan-review` | `delegate` | `plan-review-complete` | Set `planReview.approved = true` |
|
|
40
|
+
| `plan-review` | `plan` | `plan-review-gaps-found` | Set `planReview.gapsFound = true` |
|
|
41
|
+
| `delegate` | `review` | `all-tasks-complete` | All `tasks[].status = "complete"` |
|
|
42
|
+
| `review` | `synthesize` | `all-reviews-passed` | All `reviews.{name}.status` in `["pass", "passed", "approved"]` |
|
|
43
|
+
| `review` | `delegate` | `any-review-failed` | Any `reviews.{name}.status` in `["fail", "failed", "needs_fixes"]` (fix cycle) |
|
|
44
|
+
| `synthesize` | `completed` | `pr-url-exists` | Set `synthesis.prUrl` or `artifacts.pr` |
|
|
45
|
+
| `blocked` | `delegate` | `human-unblocked` | Set `unblocked = true` |
|
|
46
|
+
|
|
47
|
+
**Compound state:** `implementation` contains `delegate` and `review`. Max 3 fix cycles before circuit breaker opens.
|
|
48
|
+
|
|
49
|
+
## Debug Workflow
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
triage → investigate → [hotfix-track | thorough-track] → synthesize → completed
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
| From | To | Guard | Prerequisite |
|
|
56
|
+
|------|----|-------|-------------|
|
|
57
|
+
| `triage` | `investigate` | `triage-complete` | Set `triage.symptom` |
|
|
58
|
+
| `investigate` | `rca` | `thorough-track-selected` | Set `track = "thorough"` |
|
|
59
|
+
| `investigate` | `hotfix-implement` | `hotfix-track-selected` | Set `track = "hotfix"` |
|
|
60
|
+
|
|
61
|
+
### Thorough Track
|
|
62
|
+
|
|
63
|
+
| From | To | Guard | Prerequisite |
|
|
64
|
+
|------|----|-------|-------------|
|
|
65
|
+
| `rca` | `design` | `rca-document-complete` | Set `artifacts.rca` |
|
|
66
|
+
| `design` | `debug-implement` | `fix-design-complete` | Set `artifacts.fixDesign` |
|
|
67
|
+
| `debug-implement` | `debug-validate` | `implementation-complete` | Always passes |
|
|
68
|
+
| `debug-validate` | `debug-review` | `validation-passed` | Set `validation.testsPass = true` |
|
|
69
|
+
| `debug-review` | `synthesize` | `review-passed` | All `reviews.{name}.status` passing |
|
|
70
|
+
|
|
71
|
+
**Compound state:** `thorough-track` contains `rca` through `debug-review`. Max 2 fix cycles.
|
|
72
|
+
|
|
73
|
+
### Hotfix Track
|
|
74
|
+
|
|
75
|
+
| From | To | Guard | Prerequisite |
|
|
76
|
+
|------|----|-------|-------------|
|
|
77
|
+
| `hotfix-implement` | `hotfix-validate` | `implementation-complete` | Always passes |
|
|
78
|
+
| `hotfix-validate` | `completed` | `validation-passed` | Set `validation.testsPass = true` |
|
|
79
|
+
|
|
80
|
+
### Shared
|
|
81
|
+
|
|
82
|
+
| From | To | Guard | Prerequisite |
|
|
83
|
+
|------|----|-------|-------------|
|
|
84
|
+
| `synthesize` | `completed` | `pr-url-exists` | Set `synthesis.prUrl` or `artifacts.pr` |
|
|
85
|
+
|
|
86
|
+
## Refactor Workflow
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
explore → brief → [polish-track | overhaul-track] → completed
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
| From | To | Guard | Prerequisite |
|
|
93
|
+
|------|----|-------|-------------|
|
|
94
|
+
| `explore` | `brief` | `scope-assessment-complete` | Set `explore.scopeAssessment` |
|
|
95
|
+
| `brief` | `polish-implement` | `polish-track-selected` | Set `track = "polish"` |
|
|
96
|
+
| `brief` | `overhaul-plan` | `overhaul-track-selected` | Set `track = "overhaul"` |
|
|
97
|
+
|
|
98
|
+
### Polish Track
|
|
99
|
+
|
|
100
|
+
| From | To | Guard | Prerequisite |
|
|
101
|
+
|------|----|-------|-------------|
|
|
102
|
+
| `polish-implement` | `polish-validate` | `implementation-complete` | Always passes |
|
|
103
|
+
| `polish-validate` | `polish-update-docs` | `goals-verified` | Set `validation.testsPass = true` |
|
|
104
|
+
| `polish-update-docs` | `completed` | `docs-updated` | Set `validation.docsUpdated = true` |
|
|
105
|
+
|
|
106
|
+
### Overhaul Track
|
|
107
|
+
|
|
108
|
+
| From | To | Guard | Prerequisite |
|
|
109
|
+
|------|----|-------|-------------|
|
|
110
|
+
| `overhaul-plan` | `overhaul-plan-review` | `plan-artifact-exists` | Set `artifacts.plan` |
|
|
111
|
+
| `overhaul-plan-review` | `overhaul-delegate` | `plan-review-complete` | Plan approved |
|
|
112
|
+
| `overhaul-plan-review` | `overhaul-plan` | `plan-review-gaps-found` | Revise plan |
|
|
113
|
+
| `overhaul-delegate` | `overhaul-review` | `all-tasks-complete` | All `tasks[].status = "complete"` |
|
|
114
|
+
| `overhaul-review` | `overhaul-update-docs` | `all-reviews-passed` | All `reviews.{name}.status` passing |
|
|
115
|
+
| `overhaul-review` | `overhaul-delegate` | `any-review-failed` | Any `reviews.{name}.status` failing (fix cycle) |
|
|
116
|
+
| `overhaul-update-docs` | `synthesize` | `docs-updated` | Set `validation.docsUpdated = true` |
|
|
117
|
+
| `synthesize` | `completed` | `pr-url-exists` | Set `synthesis.prUrl` or `artifacts.pr` |
|
|
118
|
+
|
|
119
|
+
**Compound state:** `overhaul-track` contains `overhaul-plan`, `overhaul-plan-review`, `overhaul-delegate`, `overhaul-review`, and `overhaul-update-docs`. Max 3 fix cycles.
|
|
120
|
+
|
|
121
|
+
## Oneshot Workflow
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
plan → implementing ─┬→ completed (direct-commit path)
|
|
125
|
+
└→ synthesize → completed (PR path, opt-in)
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
| From | To | Guard | Prerequisite |
|
|
129
|
+
|------|----|-------|-------------|
|
|
130
|
+
| `plan` | `implementing` | `oneshot-plan-set` | Set `artifacts.plan` (non-empty string; `oneshot.planSummary` is optional metadata but does **not** satisfy the guard) |
|
|
131
|
+
| `implementing` | `synthesize` | `synthesis-opted-in` | Policy `always` OR (`on-request` + `synthesize.requested` event) |
|
|
132
|
+
| `implementing` | `completed` | `synthesis-opted-out` | Policy `never` OR (`on-request` + no event) |
|
|
133
|
+
| `synthesize` | `completed` | `pr-url-exists` | Set `synthesis.prUrl` or `artifacts.pr` |
|
|
134
|
+
|
|
135
|
+
**Choice state (end of `implementing`).** The fork after `implementing` is a UML choice state, implemented as two mutually-exclusive HSM transitions whose guards are pure functions of `state.oneshot.synthesisPolicy` and the `synthesize.requested` event count on the stream. At init, the user declares intent via `synthesisPolicy` (`always`, `never`, or `on-request` — default). During implementing, the user can opt in at any time by calling `exarchos_orchestrate request_synthesize`, which appends a `synthesize.requested` event without changing the phase. The decision is only evaluated when `finalize_oneshot` is called: the handler hydrates events, runs the guards, and calls `handleSet` with the resolved target. **Policy wins over event** — if policy is `never`, any `synthesize.requested` event is ignored and the guard routes to `completed`. Policy `always` short-circuits the event check and always routes to `synthesize`.
|
|
136
|
+
|
|
137
|
+
**How to trigger:** `exarchos_orchestrate finalize_oneshot { featureId }` — this is the only way to exit `implementing`. The handler evaluates the choice state and calls `handleSet` with the correct target phase. The HSM re-evaluates the guard at the transition boundary, so any race between read and transition is caught safely.
|
|
138
|
+
|
|
139
|
+
**No compound state.** Oneshot has no multi-agent loop, no review-fix cycle, and therefore no circuit breaker. If the in-session TDD loop gets stuck, cancel via `exarchos_workflow cancel` and restart with a different approach (or escalate to the full `feature` workflow).
|
|
140
|
+
|
|
141
|
+
See `@skills/oneshot-workflow/SKILL.md` for the full prose walkthrough including worked examples.
|
|
142
|
+
|
|
143
|
+
## Circuit Breaker
|
|
144
|
+
|
|
145
|
+
Compound states enforce a maximum number of fix cycles to prevent infinite review-fix loops. When the limit is exceeded, the HSM rejects the transition with a `CIRCUIT_OPEN` error and emits a `workflow.circuit-open` event.
|
|
146
|
+
|
|
147
|
+
### What Triggers It
|
|
148
|
+
|
|
149
|
+
A fix cycle occurs when a review phase transitions back to a delegate/implement phase (a `isFixCycle: true` transition). Each such transition increments the fix cycle counter for the enclosing compound state. The circuit breaker opens when the count reaches `maxFixCycles`.
|
|
150
|
+
|
|
151
|
+
For example, in the feature workflow: `review` -> `delegate` is a fix cycle within the `implementation` compound state. After 3 such cycles, the fourth attempt is blocked.
|
|
152
|
+
|
|
153
|
+
### Max Fix Cycles Per Workflow
|
|
154
|
+
|
|
155
|
+
| Workflow | Compound State | Contains | Max Fix Cycles |
|
|
156
|
+
|----------|---------------|----------|----------------|
|
|
157
|
+
| Feature | `implementation` | `delegate`, `review` | 3 |
|
|
158
|
+
| Debug | `thorough-track` | `rca`, `design`, `debug-implement`, `debug-validate`, `debug-review` | 2 |
|
|
159
|
+
| Refactor | `overhaul-track` | `overhaul-plan`, `overhaul-delegate`, `overhaul-review`, `overhaul-update-docs` | 3 |
|
|
160
|
+
|
|
161
|
+
Note: `polish-track` (refactor) and `hotfix-track` (debug) have no fix cycle transitions, so no circuit breaker applies.
|
|
162
|
+
|
|
163
|
+
### What Happens When It Opens
|
|
164
|
+
|
|
165
|
+
1. The HSM emits a `circuit-open` event with metadata:
|
|
166
|
+
- `compoundStateId` — the compound state that exceeded its limit
|
|
167
|
+
- `fixCycleCount` — current count
|
|
168
|
+
- `maxFixCycles` — the configured limit
|
|
169
|
+
2. The transition is **rejected** — the workflow stays in the current phase
|
|
170
|
+
3. The error response contains `errorCode: "CIRCUIT_OPEN"` with a descriptive message
|
|
171
|
+
4. The workflow effectively enters a stuck state requiring human intervention
|
|
172
|
+
|
|
173
|
+
### How to Recover
|
|
174
|
+
|
|
175
|
+
When a circuit breaker opens, the agent should:
|
|
176
|
+
|
|
177
|
+
1. **Report to the user** with the iteration history and persistent failures
|
|
178
|
+
2. **Set `unblocked = true`** after the user provides guidance — this allows the `blocked` → implementing phase transition (e.g., `delegate` for Feature, `debug-implement` for Debug thorough-track, `overhaul-delegate` for Refactor overhaul-track)
|
|
179
|
+
3. Alternatively, **cancel the workflow** via `exarchos_workflow cancel` and restart with a different approach
|
|
180
|
+
|
|
181
|
+
The circuit breaker count is tracked via `fix-cycle` events in the workflow's `_events` array. These events persist across sessions, so the count survives context compaction and session restarts.
|
|
182
|
+
|
|
183
|
+
## Troubleshooting
|
|
184
|
+
|
|
185
|
+
### INVALID_TRANSITION Error
|
|
186
|
+
|
|
187
|
+
The HSM rejected the transition because no path exists from the current phase to the target.
|
|
188
|
+
|
|
189
|
+
1. Check `validTargets` in the error response — it lists all reachable phases with their guards
|
|
190
|
+
2. You may need to step through intermediate phases (no phase skipping)
|
|
191
|
+
|
|
192
|
+
### GUARD_FAILED Error
|
|
193
|
+
|
|
194
|
+
The transition exists but the guard condition is not met.
|
|
195
|
+
|
|
196
|
+
1. Check `expectedShape` in the error response — it shows exactly what state the guard needs
|
|
197
|
+
2. Set the prerequisite state via `updates` in the same `set` call as the `phase`
|
|
198
|
+
3. Refer to the "Prerequisite" column in the tables above
|
|
199
|
+
4. **Proactive discovery:** Before transitioning, use `exarchos_workflow describe playbook="<workflowType>"` to see guard requirements for each phase
|
|
200
|
+
|
|
201
|
+
### CIRCUIT_OPEN Error
|
|
202
|
+
|
|
203
|
+
A compound state's fix cycle limit has been reached (e.g., review -> delegate looped too many times). See the **Circuit Breaker** section above for full details on limits per workflow, what happens, and recovery steps.
|
|
204
|
+
|
|
205
|
+
1. Report persistent failures to the user with iteration history
|
|
206
|
+
2. After user guidance, set `unblocked = true` to proceed, or cancel and restart
|