@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,170 @@
|
|
|
1
|
+
# Assessment Checklist
|
|
2
|
+
|
|
3
|
+
Detailed steps for gathering PR status during each shepherd iteration.
|
|
4
|
+
|
|
5
|
+
## 1. Identify PRs
|
|
6
|
+
|
|
7
|
+
Read PR URLs from workflow state:
|
|
8
|
+
```
|
|
9
|
+
mcp__plugin_exarchos_exarchos__exarchos_workflow({ action: "get", featureId: "<id>", fields: ["synthesis", "artifacts"] })
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Extract PR numbers from URLs (e.g., `https://github.com/owner/repo/pull/123` → `123`).
|
|
13
|
+
|
|
14
|
+
If no PRs in state, check GitHub:
|
|
15
|
+
```bash
|
|
16
|
+
gh pr list --json number,baseRefName,headRefName,url
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 2. CI Check Status
|
|
20
|
+
|
|
21
|
+
For each PR, use GitHub MCP:
|
|
22
|
+
```
|
|
23
|
+
mcp__plugin_github_github__pull_request_read({
|
|
24
|
+
method: "get_status",
|
|
25
|
+
owner: "<owner>",
|
|
26
|
+
repo: "<repo>",
|
|
27
|
+
pullNumber: <number>
|
|
28
|
+
})
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Classification:
|
|
32
|
+
| state | Status |
|
|
33
|
+
|-------|--------|
|
|
34
|
+
| `SUCCESS` | pass |
|
|
35
|
+
| `NEUTRAL`, `SKIPPED` | pass (ignorable) |
|
|
36
|
+
| `FAILURE`, `ERROR` | fail |
|
|
37
|
+
| `EXPECTED` | pass (status check) |
|
|
38
|
+
| `PENDING` | pending |
|
|
39
|
+
|
|
40
|
+
**Aggregate rule:** ALL checks must pass. Any `FAILURE` or `ERROR` → CI fails.
|
|
41
|
+
|
|
42
|
+
**Wait for pending:** If checks are still running, inform the user and suggest waiting. Do NOT treat pending as failure unless it has been pending for an unreasonable time (>30 minutes).
|
|
43
|
+
|
|
44
|
+
## 3. Formal Review Status
|
|
45
|
+
|
|
46
|
+
Check for formal reviews (APPROVED, CHANGES_REQUESTED, etc.) via GitHub MCP:
|
|
47
|
+
```
|
|
48
|
+
mcp__plugin_github_github__pull_request_read({
|
|
49
|
+
method: "get_reviews",
|
|
50
|
+
owner: "<owner>",
|
|
51
|
+
repo: "<repo>",
|
|
52
|
+
pullNumber: <number>
|
|
53
|
+
})
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Review classification:
|
|
57
|
+
| state | Meaning |
|
|
58
|
+
|-------|---------|
|
|
59
|
+
| `APPROVED` | Reviewer approved |
|
|
60
|
+
| `CHANGES_REQUESTED` | Reviewer wants changes |
|
|
61
|
+
| `COMMENTED` | Non-blocking comment |
|
|
62
|
+
| `PENDING` | Review started but not submitted |
|
|
63
|
+
| `DISMISSED` | Review was dismissed |
|
|
64
|
+
|
|
65
|
+
**Aggregate rule:** No `CHANGES_REQUESTED` reviews from any reviewer. `COMMENTED` and `PENDING` are non-blocking.
|
|
66
|
+
|
|
67
|
+
**NOTE:** Formal review status alone is INSUFFICIENT. Many automated reviewers (Sentry, CodeRabbit) leave inline comments without submitting a formal review. You MUST also check inline review comments (step 4).
|
|
68
|
+
|
|
69
|
+
## 4. Inline Review Comments (CRITICAL)
|
|
70
|
+
|
|
71
|
+
**This is the most commonly missed dimension.** Sentry, CodeRabbit, and other bots leave inline review comments that are independent of formal review status. A PR can show "no reviews" while having 10 unaddressed inline comments.
|
|
72
|
+
|
|
73
|
+
**Read ALL inline review comments for each PR via GitHub MCP:**
|
|
74
|
+
```
|
|
75
|
+
mcp__plugin_github_github__pull_request_read({
|
|
76
|
+
method: "get_review_comments",
|
|
77
|
+
owner: "<owner>",
|
|
78
|
+
repo: "<repo>",
|
|
79
|
+
pullNumber: <number>
|
|
80
|
+
})
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**Identify comment sources:**
|
|
84
|
+
|
|
85
|
+
| Bot login | Reviewer | What they flag |
|
|
86
|
+
|-----------|----------|----------------|
|
|
87
|
+
| `sentry[bot]` | Sentry | Bug predictions, security vulnerabilities, runtime errors |
|
|
88
|
+
| `github-actions[bot]` | GitHub Actions | CI/gate checks, usually informational |
|
|
89
|
+
| `coderabbitai[bot]` | CodeRabbit | Code review suggestions, refactoring, best practices |
|
|
90
|
+
| Any other login | Human reviewer | Direct feedback requiring response |
|
|
91
|
+
|
|
92
|
+
**Determine which comments are addressed:**
|
|
93
|
+
|
|
94
|
+
A comment thread is "addressed" if it has at least one reply (another comment with `in_reply_to_id` matching the original comment's `id`).
|
|
95
|
+
|
|
96
|
+
Build a per-source summary:
|
|
97
|
+
```
|
|
98
|
+
sentry: 2 total, 2 replied
|
|
99
|
+
human: 3 total, 1 replied ← 2 UNADDRESSED
|
|
100
|
+
coderabbit: 5 total, 5 replied
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Any unaddressed comment = assessment fails.** Every thread needs a reply — either confirming a fix, explaining a design decision, or acknowledging for a future phase.
|
|
104
|
+
|
|
105
|
+
## 5. Stack Health
|
|
106
|
+
|
|
107
|
+
Check the branch stack state:
|
|
108
|
+
```bash
|
|
109
|
+
gh pr list --json number,baseRefName,headRefName,state
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Verify:
|
|
113
|
+
- All expected branches are present and have PRs
|
|
114
|
+
- Base branch targeting is correct (bottom of stack targets `main`)
|
|
115
|
+
- Each PR's base matches its parent in the stack
|
|
116
|
+
- No outdated branches needing rebase
|
|
117
|
+
|
|
118
|
+
If base branch has advanced:
|
|
119
|
+
```bash
|
|
120
|
+
git fetch origin
|
|
121
|
+
git rebase origin/<base>
|
|
122
|
+
git push --force-with-lease
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## 6. Merge Readiness
|
|
126
|
+
|
|
127
|
+
Check if `--merge-when-ready` is active via GitHub MCP:
|
|
128
|
+
```
|
|
129
|
+
mcp__plugin_github_github__pull_request_read({
|
|
130
|
+
method: "get",
|
|
131
|
+
owner: "<owner>",
|
|
132
|
+
repo: "<repo>",
|
|
133
|
+
pullNumber: <number>
|
|
134
|
+
})
|
|
135
|
+
```
|
|
136
|
+
The response includes `autoMergeRequest` — if null, merge-when-ready is not set.
|
|
137
|
+
|
|
138
|
+
If `autoMergeRequest` is null, merge-when-ready is not set. Re-enable:
|
|
139
|
+
```bash
|
|
140
|
+
gh pr merge <number> --auto --squash
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## 7. Aggregate and Report
|
|
144
|
+
|
|
145
|
+
Build the status table covering ALL dimensions:
|
|
146
|
+
|
|
147
|
+
```markdown
|
|
148
|
+
## PR Status — Iteration <N>
|
|
149
|
+
|
|
150
|
+
| PR | CI | Formal Reviews | Inline Comments | Stack | Merge Queue |
|
|
151
|
+
|----|-----|---------------|-----------------|-------|-------------|
|
|
152
|
+
| #621 | pass | none | 1 Sentry (replied) | healthy | enqueued |
|
|
153
|
+
| #622 | pass | none | — | healthy | enqueued |
|
|
154
|
+
| #623 | pass | CR: commented | 1 CodeRabbit (replied) | healthy | enqueued |
|
|
155
|
+
| #624 | fail (lint) | CR: commented | 3 human (2 unaddressed), 4 CodeRabbit (replied) | healthy | blocked |
|
|
156
|
+
| #625 | pass | none | 2 Sentry (unaddressed) | healthy | enqueued |
|
|
157
|
+
|
|
158
|
+
### Unaddressed Comments
|
|
159
|
+
1. **PR #624 — Reviewer:** `resolveEvalsDir` should use injected config (eval-run.ts:14)
|
|
160
|
+
2. **PR #624 — Reviewer:** unused `dataset` parameter (eval-run.ts:48)
|
|
161
|
+
3. **PR #625 — Sentry:** TracePatternGrader reads wrong field (trace-pattern.ts:26)
|
|
162
|
+
4. **PR #625 — Sentry:** exact-match structural mismatch (suite.json:22)
|
|
163
|
+
|
|
164
|
+
### Recommended Actions
|
|
165
|
+
1. Fix Sentry bugs in #625 (trace field name, exact-match config)
|
|
166
|
+
2. Reply to DI concern on #624 with Phase 2 rationale
|
|
167
|
+
3. Reply to dataset param concern as intentional forward-compat
|
|
168
|
+
4. Fix lint error in #624
|
|
169
|
+
5. Resubmit stack after fixes
|
|
170
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Escalation Criteria
|
|
2
|
+
|
|
3
|
+
When to stop the shepherd loop and escalate to the user.
|
|
4
|
+
|
|
5
|
+
## Automatic Escalation Triggers
|
|
6
|
+
|
|
7
|
+
| Trigger | Condition | Action |
|
|
8
|
+
|---------|-----------|--------|
|
|
9
|
+
| Iteration limit | `currentIteration >= maxIterations` (default 5) | Pause and report summary |
|
|
10
|
+
| Persistent CI failure | Same check fails across 3+ consecutive iterations | Report as likely flaky or systemic |
|
|
11
|
+
| Review loop | Same reviewer requests changes 2+ times after fixes | Escalate — may need design discussion |
|
|
12
|
+
| Conflicting feedback | Two reviewers give contradictory guidance | Escalate — human decision needed |
|
|
13
|
+
| Access failure | GitHub MCP or `gh` CLI returns auth errors | Report — credentials may need refresh |
|
|
14
|
+
| `assess_stack` returns `escalate` | Composite action determined escalation needed | Report action items to user |
|
|
15
|
+
|
|
16
|
+
## Escalation Report Format
|
|
17
|
+
|
|
18
|
+
When escalating, provide:
|
|
19
|
+
|
|
20
|
+
```markdown
|
|
21
|
+
## Shepherd Escalation — Iteration <N>/<max>
|
|
22
|
+
|
|
23
|
+
**Reason:** <trigger from table above>
|
|
24
|
+
|
|
25
|
+
### Persistent Issues
|
|
26
|
+
- <Issue 1>: failed in iterations <list>, last fix attempted: <description>
|
|
27
|
+
- <Issue 2>: ...
|
|
28
|
+
|
|
29
|
+
### Actions Taken
|
|
30
|
+
- Iteration 1: <summary>
|
|
31
|
+
- Iteration 2: <summary>
|
|
32
|
+
- ...
|
|
33
|
+
|
|
34
|
+
### Recommendation
|
|
35
|
+
<Suggest next steps — e.g., "re-run with higher limit", "needs human review of X", "flaky test should be skipped">
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## User Override
|
|
39
|
+
|
|
40
|
+
The user can override iteration limits: `/exarchos:shepherd --max-iterations 10`
|
|
41
|
+
|
|
42
|
+
After escalation, the user may:
|
|
43
|
+
1. Ask to continue with a higher limit
|
|
44
|
+
2. Manually resolve the blocking issue, then re-run `/exarchos:shepherd`
|
|
45
|
+
3. Accept the current state and proceed to `/exarchos:cleanup`
|
|
46
|
+
|
|
47
|
+
## Non-Escalation Cases
|
|
48
|
+
|
|
49
|
+
These situations should NOT trigger escalation:
|
|
50
|
+
- CI checks still pending (wait and re-assess)
|
|
51
|
+
- Minor CodeRabbit suggestions (acknowledge and move on)
|
|
52
|
+
- Informational `github-actions[bot]` comments (safe to skip)
|
|
53
|
+
- Stack needs routine restack (fix automatically)
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
# Fix Strategies
|
|
2
|
+
|
|
3
|
+
How to address common issues found during shepherd assessment.
|
|
4
|
+
|
|
5
|
+
## Decision: Fix Directly vs. Delegate
|
|
6
|
+
|
|
7
|
+
| Condition | Approach |
|
|
8
|
+
|-----------|----------|
|
|
9
|
+
| Single file, < 20 lines changed | Fix directly in the stack branch |
|
|
10
|
+
| Multiple files, contained concern | Fix directly if < 5 files |
|
|
11
|
+
| Cross-cutting or architectural | Delegate via `/exarchos:delegate --pr-fixes [PR_URL]` |
|
|
12
|
+
| Test changes needed | Fix directly (keep TDD cycle tight) |
|
|
13
|
+
|
|
14
|
+
**Default to fixing directly** — delegation adds overhead. Only delegate when the fix scope warrants it.
|
|
15
|
+
|
|
16
|
+
## Remediation Event Emission
|
|
17
|
+
|
|
18
|
+
When fixing CI failures or addressing review comments that require code changes, emit remediation events to track self-correction metrics in CodeQualityView.
|
|
19
|
+
|
|
20
|
+
**When a fix attempt is made** (after applying a code change for a CI failure or review finding):
|
|
21
|
+
```
|
|
22
|
+
mcp__plugin_exarchos_exarchos__exarchos_event({
|
|
23
|
+
action: "append",
|
|
24
|
+
stream: "<featureId>",
|
|
25
|
+
event: {
|
|
26
|
+
type: "remediation.attempted",
|
|
27
|
+
data: {
|
|
28
|
+
taskId: "<taskId>",
|
|
29
|
+
skill: "shepherd",
|
|
30
|
+
gateName: "<failing-check-name-or-review-source>",
|
|
31
|
+
attemptNumber: <N>,
|
|
32
|
+
strategy: "direct-fix"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**When the next iteration confirms the fix resolved the issue:**
|
|
39
|
+
```
|
|
40
|
+
mcp__plugin_exarchos_exarchos__exarchos_event({
|
|
41
|
+
action: "append",
|
|
42
|
+
stream: "<featureId>",
|
|
43
|
+
event: {
|
|
44
|
+
type: "remediation.succeeded",
|
|
45
|
+
data: {
|
|
46
|
+
taskId: "<taskId>",
|
|
47
|
+
skill: "shepherd",
|
|
48
|
+
gateName: "<check-name-or-review-source>",
|
|
49
|
+
totalAttempts: <N>,
|
|
50
|
+
finalStrategy: "direct-fix"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
These events feed `selfCorrectionRate` and `avgRemediationAttempts` metrics in CodeQualityView. Emit `remediation.attempted` each time you push a fix, and `remediation.succeeded` when the subsequent assess cycle confirms the issue is resolved.
|
|
57
|
+
|
|
58
|
+
## CI Failures
|
|
59
|
+
|
|
60
|
+
### Lint / Format
|
|
61
|
+
|
|
62
|
+
1. Read the failure details via GitHub MCP:
|
|
63
|
+
```
|
|
64
|
+
mcp__plugin_github_github__pull_request_read({
|
|
65
|
+
method: "get_status", owner: "<owner>", repo: "<repo>", pullNumber: <number>
|
|
66
|
+
})
|
|
67
|
+
```
|
|
68
|
+
2. Checkout the failing branch:
|
|
69
|
+
```bash
|
|
70
|
+
git checkout <branch-name>
|
|
71
|
+
```
|
|
72
|
+
3. Run the linter locally to reproduce:
|
|
73
|
+
```bash
|
|
74
|
+
npm run lint # or project-specific command
|
|
75
|
+
```
|
|
76
|
+
4. Fix the issues
|
|
77
|
+
5. Commit and push:
|
|
78
|
+
```bash
|
|
79
|
+
git add <fixed-files>
|
|
80
|
+
git commit --amend -m "fix: lint errors"
|
|
81
|
+
git push --force-with-lease
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Test Failures
|
|
85
|
+
|
|
86
|
+
1. Identify which tests failed from CI output
|
|
87
|
+
2. Checkout the branch and reproduce locally:
|
|
88
|
+
```bash
|
|
89
|
+
npm run test:run
|
|
90
|
+
```
|
|
91
|
+
3. Fix the failing tests (maintain TDD — don't delete tests, fix the code or update test expectations if the behavior changed intentionally)
|
|
92
|
+
4. Verify all tests pass locally before pushing
|
|
93
|
+
5. Commit and resubmit
|
|
94
|
+
|
|
95
|
+
### Build / TypeCheck Failures
|
|
96
|
+
|
|
97
|
+
1. Reproduce locally:
|
|
98
|
+
```bash
|
|
99
|
+
npm run build && npm run typecheck
|
|
100
|
+
```
|
|
101
|
+
2. Fix type errors or build issues
|
|
102
|
+
3. Commit and resubmit
|
|
103
|
+
|
|
104
|
+
### Flaky Tests
|
|
105
|
+
|
|
106
|
+
If a test passes locally but fails in CI:
|
|
107
|
+
1. Check if it's a known flaky test
|
|
108
|
+
2. Re-run CI: `gh pr checks <number> --watch` (or push an empty commit to retrigger)
|
|
109
|
+
3. If consistently flaky, fix the test or mark it with a skip annotation and create a follow-up issue
|
|
110
|
+
|
|
111
|
+
## Addressing Inline Review Comments
|
|
112
|
+
|
|
113
|
+
**Every inline review comment on every PR must be addressed with a reply.** This applies to ALL sources — Sentry, CodeRabbit, humans, and any other bot that leaves comments.
|
|
114
|
+
|
|
115
|
+
### Reading Comments
|
|
116
|
+
|
|
117
|
+
Read all inline review comments for a PR via GitHub MCP:
|
|
118
|
+
```
|
|
119
|
+
mcp__plugin_github_github__pull_request_read({
|
|
120
|
+
method: "get_review_comments",
|
|
121
|
+
owner: "<owner>",
|
|
122
|
+
repo: "<repo>",
|
|
123
|
+
pullNumber: <number>
|
|
124
|
+
})
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Filter to find unaddressed root comments (threads with no replies):
|
|
128
|
+
- Root comments have `in_reply_to_id: null`
|
|
129
|
+
- A thread is addressed if any comment has `in_reply_to_id` equal to the root comment's `id`
|
|
130
|
+
|
|
131
|
+
### Replying to Comments
|
|
132
|
+
|
|
133
|
+
Use GitHub MCP tools to reply:
|
|
134
|
+
```
|
|
135
|
+
mcp__plugin_github_github__add_reply_to_pull_request_comment({
|
|
136
|
+
owner: "<owner>",
|
|
137
|
+
repo: "<repo>",
|
|
138
|
+
pullNumber: <number>,
|
|
139
|
+
commentId: <numeric_comment_id>,
|
|
140
|
+
body: "<response>"
|
|
141
|
+
})
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Response Categories
|
|
145
|
+
|
|
146
|
+
For each comment, determine the appropriate response:
|
|
147
|
+
|
|
148
|
+
| Category | Action | Reply template |
|
|
149
|
+
|----------|--------|---------------|
|
|
150
|
+
| Real bug | Fix the code, then reply | "Fixed — [description of fix]. Test added: `TestName`." |
|
|
151
|
+
| Valid suggestion (implement) | Apply the change, then reply | "Fixed — [description of change]." |
|
|
152
|
+
| Valid suggestion (defer) | Reply with rationale | "Acknowledged — [rationale]. Tracked for Phase N / follow-up." |
|
|
153
|
+
| Intentional design choice | Reply explaining | "Intentional — [explanation of why the current approach is correct]." |
|
|
154
|
+
| Already fixed (outdated) | Reply confirming | "Fixed in [commit/PR description] — [brief explanation]." |
|
|
155
|
+
| False positive | Reply explaining | "[Explanation of why this doesn't apply in this context]." |
|
|
156
|
+
|
|
157
|
+
### Sentry Comments
|
|
158
|
+
|
|
159
|
+
Sentry's `[bot]` leaves **bug predictions** — AI-generated analysis of potential runtime issues. These appear as inline review comments with severity tags (CRITICAL, MEDIUM, etc.).
|
|
160
|
+
|
|
161
|
+
**Sentry comments deserve careful attention because they often identify real bugs** (field name mismatches, type coercion issues, null reference risks).
|
|
162
|
+
|
|
163
|
+
How to handle:
|
|
164
|
+
1. Read the full comment body — Sentry includes a "Suggested Fix" section
|
|
165
|
+
2. Evaluate whether the bug is real:
|
|
166
|
+
- Check if the code path is actually reachable
|
|
167
|
+
- Check if the field names/types match what the data actually provides
|
|
168
|
+
- Check existing tests — does any test exercise this path?
|
|
169
|
+
3. If real: fix the bug, add a test, reply confirming
|
|
170
|
+
4. If false positive: reply explaining why (e.g., "This path is guarded by X" or "The field is validated at Y before reaching this code")
|
|
171
|
+
|
|
172
|
+
**Common Sentry findings:**
|
|
173
|
+
- Field name mismatches between producers and consumers
|
|
174
|
+
- Missing null checks on optional fields
|
|
175
|
+
- Type mismatches (string vs. enum, array vs. object)
|
|
176
|
+
- Unreachable error paths due to upstream validation
|
|
177
|
+
|
|
178
|
+
### CodeRabbit Comments
|
|
179
|
+
|
|
180
|
+
CodeRabbit leaves detailed code review suggestions with severity indicators. It re-reviews automatically on push, so code fixes may auto-resolve threads.
|
|
181
|
+
|
|
182
|
+
How to handle:
|
|
183
|
+
1. Read all CodeRabbit comments, noting severity (Critical, Major, Minor)
|
|
184
|
+
2. Critical/Major: Must address — fix or provide strong rationale for not fixing
|
|
185
|
+
3. Minor: Fix if low-effort, otherwise acknowledge
|
|
186
|
+
4. CodeRabbit marks threads as "Addressed in commits" when it detects the code changed — but always verify with a reply
|
|
187
|
+
|
|
188
|
+
**Common CodeRabbit findings:**
|
|
189
|
+
- Error handling gaps (missing try/catch, bare catches)
|
|
190
|
+
- Code duplication (DRY violations)
|
|
191
|
+
- Style/naming suggestions
|
|
192
|
+
- Performance optimizations
|
|
193
|
+
- Security concerns
|
|
194
|
+
|
|
195
|
+
### Human Reviewer Comments
|
|
196
|
+
|
|
197
|
+
Human comments require the most careful handling:
|
|
198
|
+
1. Read comments carefully — understand the full context
|
|
199
|
+
2. For required changes: fix the code, reply confirming
|
|
200
|
+
3. For questions: answer directly on the PR
|
|
201
|
+
4. For suggestions: discuss or implement, reply with decision
|
|
202
|
+
5. For approval with minor nits: fix nits, note the approval
|
|
203
|
+
|
|
204
|
+
### GitHub Actions Bot Comments
|
|
205
|
+
|
|
206
|
+
`github-actions[bot]` typically posts automated gate results (review-gate, CI summaries). These are usually **informational** and don't require replies. However, if the gate check shows a failure, investigate the cause.
|
|
207
|
+
|
|
208
|
+
## Stack Issues
|
|
209
|
+
|
|
210
|
+
### Needs Rebase
|
|
211
|
+
|
|
212
|
+
When the base branch (usually `main`) has advanced:
|
|
213
|
+
```bash
|
|
214
|
+
git rebase origin/<base>
|
|
215
|
+
git push --force-with-lease
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
If rebase has conflicts:
|
|
219
|
+
1. Resolve conflicts in each affected file
|
|
220
|
+
2. `git add <resolved-files>` then continue:
|
|
221
|
+
```bash
|
|
222
|
+
git rebase --continue
|
|
223
|
+
```
|
|
224
|
+
3. After resolution, push: `git push --force-with-lease`
|
|
225
|
+
|
|
226
|
+
### Wrong Base Branch
|
|
227
|
+
|
|
228
|
+
If a PR targets the wrong base:
|
|
229
|
+
```bash
|
|
230
|
+
gh pr edit <number> --base <correct-base>
|
|
231
|
+
git rebase origin/<correct-base>
|
|
232
|
+
git push --force-with-lease
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### Stack Reconstruction
|
|
236
|
+
|
|
237
|
+
If the stack is in a broken state:
|
|
238
|
+
```typescript
|
|
239
|
+
exarchos_orchestrate({
|
|
240
|
+
action: "reconstruct_stack"
|
|
241
|
+
})
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Then resubmit.
|
|
245
|
+
|
|
246
|
+
## Commit Strategy for Fixes
|
|
247
|
+
|
|
248
|
+
When making fixes to stack branches:
|
|
249
|
+
|
|
250
|
+
1. **Checkout the target branch:**
|
|
251
|
+
```bash
|
|
252
|
+
git checkout <branch-name>
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
2. **Apply fixes and amend:**
|
|
256
|
+
```bash
|
|
257
|
+
git add <fixed-files>
|
|
258
|
+
git commit --amend -m "fix: <description>"
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
3. **Rebase dependent branches (bottom-up, onto updated parent):**
|
|
262
|
+
```bash
|
|
263
|
+
git rebase <updated-parent-branch>
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
4. **Push the fixes:**
|
|
267
|
+
```bash
|
|
268
|
+
git push --force-with-lease
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
**IMPORTANT:** After pushing, verify auto-merge is still enabled: `gh pr view <number> --json autoMergeRequest`.
|
|
272
|
+
|
|
273
|
+
## Responding on PRs
|
|
274
|
+
|
|
275
|
+
When addressing feedback, reply to each comment thread individually using the GitHub MCP `add_reply_to_pull_request_comment` tool. This ensures:
|
|
276
|
+
- Each reviewer sees their specific feedback was acknowledged
|
|
277
|
+
- GitHub marks threads as having replies
|
|
278
|
+
- The PR audit trail shows every concern was addressed
|
|
279
|
+
|
|
280
|
+
For bulk summaries after a round of fixes, post a general PR comment via GitHub MCP:
|
|
281
|
+
```
|
|
282
|
+
mcp__plugin_github_github__add_issue_comment({
|
|
283
|
+
owner: "<owner>",
|
|
284
|
+
repo: "<repo>",
|
|
285
|
+
issue_number: <number>,
|
|
286
|
+
body: "Addressed review feedback:\n- Fixed Sentry bug: ...\n- Replied to DI concern...\n\nAll inline review threads have replies."
|
|
287
|
+
})
|
|
288
|
+
```
|
|
289
|
+
Fallback (if MCP token lacks write scope): `gh pr comment <number> --body "..."`
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Gate Event Emission
|
|
2
|
+
|
|
3
|
+
`gate.executed` events track CI check results for quality analysis in CodeQualityView.
|
|
4
|
+
|
|
5
|
+
## Event Format
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
{
|
|
9
|
+
type: "gate.executed",
|
|
10
|
+
data: {
|
|
11
|
+
gateName: "<check-name>",
|
|
12
|
+
layer: "CI",
|
|
13
|
+
passed: <true|false>,
|
|
14
|
+
duration: <duration-ms-if-available>,
|
|
15
|
+
details: {
|
|
16
|
+
skill: "shepherd",
|
|
17
|
+
commit: "<head-sha>"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Emission Source
|
|
24
|
+
|
|
25
|
+
The `assess_stack` composite action (`exarchos_orchestrate`) automatically emits `gate.executed` events for each CI check it observes. The shepherd skill does **not** need to emit these manually — they are handled internally by `assess_stack`.
|
|
26
|
+
|
|
27
|
+
If `assess_stack` is unavailable (fallback mode), emit manually via:
|
|
28
|
+
```javascript
|
|
29
|
+
mcp__plugin_exarchos_exarchos__exarchos_event({
|
|
30
|
+
action: "append",
|
|
31
|
+
stream: "<featureId>",
|
|
32
|
+
event: {
|
|
33
|
+
type: "gate.executed",
|
|
34
|
+
data: {
|
|
35
|
+
gateName: "<check-name>",
|
|
36
|
+
layer: "CI",
|
|
37
|
+
passed: <true|false>,
|
|
38
|
+
duration: <duration-ms-if-available>,
|
|
39
|
+
details: { skill: "shepherd", commit: "<head-sha>" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Downstream Consumer
|
|
46
|
+
|
|
47
|
+
CodeQualityView tracks gate pass rates and detects quality regressions. The `gatePassRate` metric per skill drives the quality signal surfaced in Step 0 of the shepherd loop.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Shepherd Event Schemas
|
|
2
|
+
|
|
3
|
+
Event data schemas for the four shepherd lifecycle events. All events are appended via `exarchos_event append` to the workflow's stream.
|
|
4
|
+
|
|
5
|
+
## shepherd.started
|
|
6
|
+
|
|
7
|
+
Emitted automatically by `assess_stack` on first invocation.
|
|
8
|
+
|
|
9
|
+
| Field | Type | Description |
|
|
10
|
+
|-------|------|-------------|
|
|
11
|
+
| featureId | string | Workflow feature ID |
|
|
12
|
+
|
|
13
|
+
## shepherd.iteration
|
|
14
|
+
|
|
15
|
+
Emitted after each assess → fix → resubmit cycle.
|
|
16
|
+
|
|
17
|
+
| Field | Type | Description |
|
|
18
|
+
|-------|------|-------------|
|
|
19
|
+
| iteration | number (int, ≥0) | Zero-based iteration counter |
|
|
20
|
+
| prsAssessed | number (int, ≥0) | Count of PRs assessed this iteration |
|
|
21
|
+
| fixesApplied | number (int, ≥0) | Count of fixes applied this iteration |
|
|
22
|
+
| status | string | Iteration outcome (e.g., "resubmitted", "waiting", "escalated") |
|
|
23
|
+
|
|
24
|
+
```javascript
|
|
25
|
+
mcp__plugin_exarchos_exarchos__exarchos_event({
|
|
26
|
+
action: "append",
|
|
27
|
+
stream: "<featureId>",
|
|
28
|
+
event: {
|
|
29
|
+
type: "shepherd.iteration",
|
|
30
|
+
data: {
|
|
31
|
+
iteration: 1,
|
|
32
|
+
prsAssessed: 1,
|
|
33
|
+
fixesApplied: 2,
|
|
34
|
+
status: "resubmitted"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
idempotencyKey: "<featureId>:shepherd.iteration:<n>"
|
|
38
|
+
})
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## shepherd.approval_requested
|
|
42
|
+
|
|
43
|
+
Emitted when all checks pass and approval is requested.
|
|
44
|
+
|
|
45
|
+
| Field | Type | Description |
|
|
46
|
+
|-------|------|-------------|
|
|
47
|
+
| prUrl | string | URL of the PR ready for approval |
|
|
48
|
+
|
|
49
|
+
## shepherd.completed
|
|
50
|
+
|
|
51
|
+
Emitted automatically by `assess_stack` when a PR is detected as merged.
|
|
52
|
+
|
|
53
|
+
| Field | Type | Description |
|
|
54
|
+
|-------|------|-------------|
|
|
55
|
+
| prUrl | string | URL of the merged PR |
|
|
56
|
+
| outcome | string | Completion outcome (e.g., "merged") |
|