hatch3r 1.0.0 → 1.2.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/README.md +93 -322
- package/agents/hatch3r-a11y-auditor.md +24 -6
- package/agents/hatch3r-architect.md +20 -1
- package/agents/hatch3r-ci-watcher.md +31 -8
- package/agents/hatch3r-context-rules.md +14 -2
- package/agents/hatch3r-dependency-auditor.md +21 -5
- package/agents/hatch3r-devops.md +37 -6
- package/agents/hatch3r-docs-writer.md +19 -3
- package/agents/hatch3r-fixer.md +171 -0
- package/agents/hatch3r-implementer.md +84 -11
- package/agents/hatch3r-learnings-loader.md +69 -13
- package/agents/hatch3r-lint-fixer.md +19 -14
- package/agents/hatch3r-perf-profiler.md +18 -1
- package/agents/hatch3r-researcher.md +440 -5
- package/agents/hatch3r-reviewer.md +97 -5
- package/agents/hatch3r-security-auditor.md +23 -5
- package/agents/hatch3r-test-writer.md +21 -10
- package/checks/README.md +49 -0
- package/checks/code-quality.md +49 -0
- package/checks/performance.md +58 -0
- package/checks/security.md +58 -0
- package/checks/testing.md +53 -0
- package/commands/board/pickup-azure-devops.md +81 -0
- package/commands/board/pickup-delegation-multi.md +197 -0
- package/commands/board/pickup-delegation.md +100 -0
- package/commands/board/pickup-github.md +82 -0
- package/commands/board/pickup-gitlab.md +81 -0
- package/commands/board/pickup-modes.md +143 -0
- package/commands/board/pickup-post-impl.md +120 -0
- package/commands/board/shared-azure-devops.md +149 -0
- package/commands/board/shared-board-overview.md +215 -0
- package/commands/board/shared-github.md +169 -0
- package/commands/board/shared-gitlab.md +142 -0
- package/commands/hatch3r-agent-customize.md +40 -2
- package/commands/hatch3r-api-spec.md +294 -32
- package/commands/hatch3r-benchmark.md +386 -32
- package/commands/hatch3r-board-fill.md +161 -25
- package/commands/hatch3r-board-groom.md +595 -0
- package/commands/hatch3r-board-init.md +203 -46
- package/commands/hatch3r-board-pickup.md +79 -457
- package/commands/hatch3r-board-refresh.md +98 -27
- package/commands/hatch3r-board-shared.md +87 -238
- package/commands/hatch3r-bug-plan.md +16 -3
- package/commands/hatch3r-codebase-map.md +43 -10
- package/commands/hatch3r-command-customize.md +6 -0
- package/commands/hatch3r-context-health.md +5 -0
- package/commands/hatch3r-cost-tracking.md +5 -0
- package/commands/hatch3r-debug.md +426 -0
- package/commands/hatch3r-dep-audit.md +7 -1
- package/commands/hatch3r-feature-plan.md +74 -12
- package/commands/hatch3r-healthcheck.md +17 -1
- package/commands/hatch3r-hooks.md +16 -10
- package/commands/hatch3r-learn.md +15 -9
- package/commands/hatch3r-migration-plan.md +333 -33
- package/commands/hatch3r-onboard.md +327 -38
- package/commands/hatch3r-project-spec.md +46 -10
- package/commands/hatch3r-quick-change.md +336 -0
- package/commands/hatch3r-recipe.md +6 -0
- package/commands/hatch3r-refactor-plan.md +29 -13
- package/commands/hatch3r-release.md +13 -3
- package/commands/hatch3r-revision.md +395 -0
- package/commands/hatch3r-roadmap.md +18 -3
- package/commands/hatch3r-rule-customize.md +6 -0
- package/commands/hatch3r-security-audit.md +17 -1
- package/commands/hatch3r-skill-customize.md +6 -0
- package/commands/hatch3r-test-plan.md +532 -0
- package/commands/hatch3r-workflow.md +113 -38
- package/dist/cli/index.js +5184 -2593
- package/dist/cli/index.js.map +1 -0
- package/github-agents/hatch3r-docs-agent.md +1 -0
- package/github-agents/hatch3r-lint-agent.md +1 -0
- package/github-agents/hatch3r-security-agent.md +1 -0
- package/github-agents/hatch3r-test-agent.md +1 -0
- package/hooks/hatch3r-ci-failure.md +30 -0
- package/hooks/hatch3r-file-save.md +22 -0
- package/hooks/hatch3r-post-merge.md +23 -0
- package/hooks/hatch3r-pre-commit.md +23 -0
- package/hooks/hatch3r-pre-push.md +22 -0
- package/hooks/hatch3r-session-start.md +22 -0
- package/mcp/mcp.json +22 -3
- package/package.json +4 -7
- package/prompts/hatch3r-bug-triage.md +1 -0
- package/prompts/hatch3r-code-review.md +1 -0
- package/prompts/hatch3r-pr-description.md +1 -0
- package/rules/hatch3r-accessibility-standards.md +1 -0
- package/rules/hatch3r-agent-orchestration.md +326 -53
- package/rules/hatch3r-agent-orchestration.mdc +225 -0
- package/rules/hatch3r-api-design.md +4 -1
- package/rules/hatch3r-browser-verification.md +33 -1
- package/rules/hatch3r-browser-verification.mdc +29 -0
- package/rules/hatch3r-ci-cd.md +5 -1
- package/rules/hatch3r-ci-cd.mdc +4 -1
- package/rules/hatch3r-code-standards.md +18 -0
- package/rules/hatch3r-code-standards.mdc +10 -1
- package/rules/hatch3r-component-conventions.md +4 -1
- package/rules/hatch3r-data-classification.md +1 -0
- package/rules/hatch3r-deep-context.md +94 -0
- package/rules/hatch3r-deep-context.mdc +69 -0
- package/rules/hatch3r-dependency-management.md +13 -0
- package/rules/hatch3r-feature-flags.md +4 -1
- package/rules/hatch3r-git-conventions.md +1 -0
- package/rules/hatch3r-i18n.md +4 -1
- package/rules/hatch3r-learning-consult.md +4 -2
- package/rules/hatch3r-learning-consult.mdc +3 -2
- package/rules/hatch3r-migrations.md +12 -0
- package/rules/hatch3r-observability.md +293 -1
- package/rules/hatch3r-performance-budgets.md +5 -2
- package/rules/hatch3r-performance-budgets.mdc +1 -1
- package/rules/hatch3r-secrets-management.md +11 -3
- package/rules/hatch3r-secrets-management.mdc +10 -3
- package/rules/hatch3r-security-patterns.md +23 -3
- package/rules/hatch3r-security-patterns.mdc +8 -2
- package/rules/hatch3r-testing.md +1 -0
- package/rules/hatch3r-theming.md +4 -1
- package/rules/hatch3r-tooling-hierarchy.md +42 -15
- package/rules/hatch3r-tooling-hierarchy.mdc +27 -4
- package/skills/hatch3r-a11y-audit/SKILL.md +1 -0
- package/skills/hatch3r-agent-customize/SKILL.md +3 -0
- package/skills/hatch3r-api-spec/SKILL.md +1 -0
- package/skills/hatch3r-architecture-review/SKILL.md +6 -2
- package/skills/hatch3r-bug-fix/SKILL.md +4 -1
- package/skills/hatch3r-ci-pipeline/SKILL.md +1 -0
- package/skills/hatch3r-command-customize/SKILL.md +1 -0
- package/skills/hatch3r-context-health/SKILL.md +2 -1
- package/skills/hatch3r-cost-tracking/SKILL.md +1 -0
- package/skills/hatch3r-dep-audit/SKILL.md +6 -2
- package/skills/hatch3r-feature/SKILL.md +9 -2
- package/skills/hatch3r-gh-agentic-workflows/SKILL.md +130 -21
- package/skills/hatch3r-incident-response/SKILL.md +11 -5
- package/skills/hatch3r-issue-workflow/SKILL.md +12 -7
- package/skills/hatch3r-logical-refactor/SKILL.md +1 -0
- package/skills/hatch3r-migration/SKILL.md +1 -0
- package/skills/hatch3r-perf-audit/SKILL.md +2 -1
- package/skills/hatch3r-pr-creation/SKILL.md +20 -10
- package/skills/hatch3r-qa-validation/SKILL.md +2 -1
- package/skills/hatch3r-recipe/SKILL.md +1 -0
- package/skills/hatch3r-refactor/SKILL.md +7 -1
- package/skills/hatch3r-release/SKILL.md +15 -11
- package/skills/hatch3r-rule-customize/SKILL.md +1 -0
- package/skills/hatch3r-skill-customize/SKILL.md +1 -0
- package/skills/hatch3r-visual-refactor/SKILL.md +1 -0
- package/dist/cli/hooks-ZOTFDEA3.js +0 -59
- package/rules/hatch3r-error-handling.md +0 -17
- package/rules/hatch3r-error-handling.mdc +0 -15
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-board-pickup-delegation-multi
|
|
3
|
+
type: command
|
|
4
|
+
description: Multi-issue sub-agent delegation protocols for board-pickup Steps 6b (epics) and 6c (batch). Covers level-by-level parallel execution, shared context, and quality pipelines.
|
|
5
|
+
tags: [board, team]
|
|
6
|
+
---
|
|
7
|
+
# Board Pickup — Multi-Issue Delegation (Steps 6b, 6c)
|
|
8
|
+
|
|
9
|
+
Delegation details for Steps 6b and 6c of `hatch3r-board-pickup`. Referenced from the core command file.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 6b. Epics -- Sub-Agent Delegation (One Implementer Per Sub-Issue)
|
|
14
|
+
|
|
15
|
+
For epics with sub-issues, delegate each sub-issue to a dedicated implementer sub-agent. The parent orchestrator (this agent) coordinates dependency order, parallelism, and git operations.
|
|
16
|
+
|
|
17
|
+
### 6b.1. Parse Sub-Issues Into Dependency Levels
|
|
18
|
+
|
|
19
|
+
1. Fetch the epic's `## Implementation Order` section.
|
|
20
|
+
2. Group sub-issues by dependency level:
|
|
21
|
+
- **Level 1:** Sub-issues with no unsatisfied blockers (can start immediately).
|
|
22
|
+
- **Level N:** Sub-issues whose blockers are all in levels < N.
|
|
23
|
+
3. Within each level, identify parallelizable sub-issues (no mutual dependencies).
|
|
24
|
+
|
|
25
|
+
### 6b.2. Prepare Shared Context
|
|
26
|
+
|
|
27
|
+
Before spawning implementer sub-agents, delegate context gathering to the **hatch3r-researcher agent protocol**.
|
|
28
|
+
|
|
29
|
+
1. Read the epic body (goal, scope, constraints).
|
|
30
|
+
2. Spawn a researcher sub-agent following the **hatch3r-researcher agent protocol** with:
|
|
31
|
+
- **Research brief:** The epic title, goal, scope, constraints, and area labels.
|
|
32
|
+
- **Modes:** `codebase-impact`, `risk-assessment`
|
|
33
|
+
- **Depth:** `standard` for most epics. Use `quick` if the epic has fewer than 3 sub-issues or is well-specified with linked specs. Use `deep` if the epic spans multiple modules or introduces new patterns.
|
|
34
|
+
- **Project context:** Pre-loaded documentation references from area labels.
|
|
35
|
+
3. Await the researcher result. Include the structured output as shared context in all implementer sub-agent prompts in Step 6b.3.
|
|
36
|
+
|
|
37
|
+
### 6b.2b. Per-Sub-Issue Complexity Scoring and Tier-Adjusted Research
|
|
38
|
+
|
|
39
|
+
After the shared epic-level research, score each sub-issue individually and run additional research for sub-issues that warrant it.
|
|
40
|
+
|
|
41
|
+
1. **Score each sub-issue** per the `hatch3r-deep-context` rule to determine the analysis tier (Light / Standard / Deep).
|
|
42
|
+
|
|
43
|
+
2. **For Tier 2+ sub-issues**, spawn per-sub-issue **hatch3r-researcher** sub-agents via the Task tool (`subagent_type: "generalPurpose"`). Launch as many concurrently as the platform supports.
|
|
44
|
+
|
|
45
|
+
Each per-sub-issue researcher prompt must include:
|
|
46
|
+
- The sub-issue title, body, acceptance criteria, and area labels.
|
|
47
|
+
- Research modes by issue type (same as Step 6a.1).
|
|
48
|
+
- **Tier-adjusted modes** (per `hatch3r-deep-context`):
|
|
49
|
+
- Tier 2: add `requirements-elicitation` + `similar-implementation` at `quick` depth
|
|
50
|
+
- Tier 3: add `requirements-elicitation` + `similar-implementation` at `deep` depth, plus `codebase-impact` at `deep` depth with transitive tracing
|
|
51
|
+
- Depth by risk level, with complexity tier overriding upward.
|
|
52
|
+
- The shared epic-level researcher output from Step 6b.2 (to avoid redundant analysis).
|
|
53
|
+
|
|
54
|
+
3. **Await all per-sub-issue researchers.** Collect structured outputs. Each researcher's output feeds exclusively into its corresponding implementer in Step 6b.3.
|
|
55
|
+
|
|
56
|
+
4. **For Tier 2 sub-issues:** Present the `requirements-elicitation` questions to the user inline and await answers before proceeding.
|
|
57
|
+
|
|
58
|
+
5. **For Tier 3 sub-issues:** Present a full Pre-Implementation Summary per the `hatch3r-deep-context` rule. Do NOT proceed to 6b.3 until all unresolved questions are answered.
|
|
59
|
+
|
|
60
|
+
6. **Tier 1 sub-issues** skip this step — they use only the shared epic-level context from Step 6b.2.
|
|
61
|
+
|
|
62
|
+
### 6b.3. Execute Level-by-Level With Parallel Sub-Agents
|
|
63
|
+
|
|
64
|
+
For each dependency level, starting at Level 1:
|
|
65
|
+
|
|
66
|
+
1. **Spawn one implementer sub-agent per sub-issue in the current level.** Use the Task tool with `subagent_type: "generalPurpose"`. Launch as many sub-agents concurrently as the platform supports.
|
|
67
|
+
|
|
68
|
+
2. **Each sub-agent prompt must include:**
|
|
69
|
+
- The sub-issue number, title, full body, and acceptance criteria.
|
|
70
|
+
- The issue type (bug/feature/refactor/QA) and corresponding hatch3r skill name.
|
|
71
|
+
- Parent epic context (title, goal, related sub-issues at the same level).
|
|
72
|
+
- The shared researcher output from Step 6b.2 (codebase impact and risk assessment as shared context).
|
|
73
|
+
- The per-sub-issue researcher output from Step 6b.2b (if this sub-issue scored Tier 2+).
|
|
74
|
+
- **Reference conventions** from `similar-implementation` output (Tier 2/3) — triggers the implementer's Convention Lock step.
|
|
75
|
+
- **Resolved requirements** from `requirements-elicitation` answers (Tier 2/3) — explicit decisions on ambiguities.
|
|
76
|
+
- **Blast radius data** from enhanced `codebase-impact` (Tier 3) — transitive dependency trace and API consumer map.
|
|
77
|
+
- Documentation references relevant to this sub-issue.
|
|
78
|
+
- Instruction to follow the hatch3r-implementer agent protocol.
|
|
79
|
+
- All `scope: always` rule directives from `.agents/rules/` — subagents do not inherit rules automatically.
|
|
80
|
+
- Relevant learnings from `.agents/learnings/` (from Step 6.pre).
|
|
81
|
+
- Instruction to use GitHub MCP for issue reads, and follow the project's tooling hierarchy for external knowledge augmentation.
|
|
82
|
+
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
83
|
+
|
|
84
|
+
3. **Await all sub-agents in the current level.** Collect their structured results (files changed, tests written, issues encountered).
|
|
85
|
+
|
|
86
|
+
4. **Review sub-agent results:**
|
|
87
|
+
- If any sub-agent reports BLOCKED or PARTIAL, **ASK** the user how to proceed (skip, fix manually, retry).
|
|
88
|
+
- If sub-agents modified overlapping files, review for conflicts and resolve before proceeding.
|
|
89
|
+
|
|
90
|
+
5. **Advance to the next dependency level.** Repeat steps 1-4 until all levels are complete.
|
|
91
|
+
|
|
92
|
+
### 6b.4. Post-Delegation Verification
|
|
93
|
+
|
|
94
|
+
After all sub-agents complete:
|
|
95
|
+
|
|
96
|
+
1. Run a combined quality check across all changes.
|
|
97
|
+
2. Resolve any cross-sub-issue integration issues.
|
|
98
|
+
3. Verify no file conflicts between parallel sub-agent outputs.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 6c. Multi-Issue Batch -- Parallel Subagent Delegation (One Implementer Per Issue)
|
|
103
|
+
|
|
104
|
+
For batches of multiple standalone issues (selected via batch mode in Step 1d or by referencing multiple issue numbers), delegate each issue to a dedicated implementer sub-agent. The parent orchestrator (this agent) coordinates dependency levels, parallelism, collision avoidance, and git operations.
|
|
105
|
+
|
|
106
|
+
### 6c.1. Group Issues Into Dependency Levels
|
|
107
|
+
|
|
108
|
+
1. Use the updated cross-issue dependency graph (from Step 2e, adjusted by Step 3.4).
|
|
109
|
+
2. Group issues by dependency level:
|
|
110
|
+
- **Level 1:** Issues with no dependencies on other issues in the batch (can start immediately). Most standalone issues will be Level 1.
|
|
111
|
+
- **Level N:** Issues that depend on other issues in levels < N.
|
|
112
|
+
3. Within each level, all issues are parallelizable (no mutual dependencies — conflicts were moved to separate levels in Step 3).
|
|
113
|
+
|
|
114
|
+
### 6c.2. Context Gathering (Parallel Researchers)
|
|
115
|
+
|
|
116
|
+
**Skip this step only** if ALL issues in the batch are trivial single-line edits (typos, comment fixes, single-value config changes) that score Tier 1 per `hatch3r-deep-context`. The `risk:low` and `priority:p3` labels alone are not sufficient to skip research — always score complexity first.
|
|
117
|
+
|
|
118
|
+
Unlike epics (which share a single researcher), standalone issues in a batch are unrelated and each need individual context gathering.
|
|
119
|
+
|
|
120
|
+
1. **Spawn one hatch3r-researcher sub-agent per issue** via the Task tool (`subagent_type: "generalPurpose"`). Launch as many concurrently as the platform supports.
|
|
121
|
+
|
|
122
|
+
2. **Each researcher prompt must include:**
|
|
123
|
+
- The issue title, body, acceptance criteria, and area labels.
|
|
124
|
+
- Research modes by issue type (same as Step 6a.1).
|
|
125
|
+
- Tier-adjusted modes per `hatch3r-deep-context` (same as Step 6a.1).
|
|
126
|
+
- Depth by risk level (`quick` / `standard` / `deep`), with complexity tier overriding upward.
|
|
127
|
+
- Project context and documentation references.
|
|
128
|
+
|
|
129
|
+
3. **Await all researchers.** Collect structured outputs. Each researcher's output feeds exclusively into its corresponding implementer in Step 6c.3. For Tier 2/3 issues, present elicitation questions to the user and await answers before proceeding.
|
|
130
|
+
|
|
131
|
+
### 6c.3. Execute Level-by-Level With Parallel Implementers
|
|
132
|
+
|
|
133
|
+
For each dependency level, starting at Level 1:
|
|
134
|
+
|
|
135
|
+
1. **Spawn one hatch3r-implementer sub-agent per issue in the current level.** Use the Task tool with `subagent_type: "generalPurpose"`. Launch as many sub-agents concurrently as the platform supports.
|
|
136
|
+
|
|
137
|
+
2. **Each sub-agent prompt must include:**
|
|
138
|
+
- The issue number, title, full body, and acceptance criteria.
|
|
139
|
+
- The issue type (bug/feature/refactor/QA) and corresponding hatch3r skill name.
|
|
140
|
+
- Batch context: sibling issues in the batch at the same level (for awareness, not implementation).
|
|
141
|
+
- The researcher output from Step 6c.2 for this specific issue (if that step was not skipped).
|
|
142
|
+
- **Reference conventions** from `similar-implementation` output (Tier 2/3) — triggers the implementer's Convention Lock step.
|
|
143
|
+
- **Resolved requirements** from `requirements-elicitation` answers (Tier 2/3).
|
|
144
|
+
- **Blast radius data** from enhanced `codebase-impact` (Tier 3).
|
|
145
|
+
- Documentation references relevant to this issue.
|
|
146
|
+
- Instruction to follow the **hatch3r-implementer agent protocol**.
|
|
147
|
+
- All `scope: always` rule directives from `.agents/rules/` — subagents do not inherit rules automatically.
|
|
148
|
+
- Relevant learnings from `.agents/learnings/` (from Step 6.pre).
|
|
149
|
+
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
150
|
+
|
|
151
|
+
3. **Await all sub-agents in the current level.** Collect their structured results (files changed, tests written, issues encountered).
|
|
152
|
+
|
|
153
|
+
4. **Review sub-agent results:**
|
|
154
|
+
- If any sub-agent reports BLOCKED or PARTIAL, **ASK** the user how to proceed (skip, fix manually, retry).
|
|
155
|
+
- If sub-agents modified overlapping files, review for conflicts and resolve before proceeding.
|
|
156
|
+
|
|
157
|
+
5. **Advance to the next dependency level.** Repeat steps 1-4 until all levels are complete.
|
|
158
|
+
|
|
159
|
+
### 6c.4. Post-Batch Verification
|
|
160
|
+
|
|
161
|
+
After all implementer sub-agents complete across all levels:
|
|
162
|
+
|
|
163
|
+
1. Run a combined quality check across all changes from all issues.
|
|
164
|
+
2. Resolve any cross-issue file conflicts or integration issues.
|
|
165
|
+
3. Verify no regressions between parallel sub-agent outputs.
|
|
166
|
+
|
|
167
|
+
### 6c.5. Post-Implementation Quality Pipeline
|
|
168
|
+
|
|
169
|
+
After all implementations complete, run the two-stage quality pipeline across the entire batch. Use the Task tool with `subagent_type: "generalPurpose"`.
|
|
170
|
+
|
|
171
|
+
**Stage 1 — Review Loop (sequential):**
|
|
172
|
+
|
|
173
|
+
1. Spawn **`hatch3r-reviewer`** — code review of ALL changes across the batch. Include the full diff and acceptance criteria for each issue.
|
|
174
|
+
2. If the reviewer reports Critical or Warning findings, spawn **`hatch3r-fixer`** with the reviewer output to apply fixes. When fixes touch shared or public interfaces, also include:
|
|
175
|
+
- **Blast radius data** from Step 6c.2 (if available) — so the fixer knows which consumers and contracts must be preserved.
|
|
176
|
+
- **Reference conventions** from Step 6c.2 (if available) — so the fixer maintains established patterns when applying fixes.
|
|
177
|
+
3. Re-spawn **`hatch3r-reviewer`** to verify fixes.
|
|
178
|
+
4. Repeat steps 2-3 for a maximum of **3 iterations** until the reviewer reports 0 Critical + 0 Warning findings.
|
|
179
|
+
5. If still not clean after 3 iterations, **ASK** the user how to proceed.
|
|
180
|
+
|
|
181
|
+
**Stage 2 — Final Quality (parallel, after review loop is clean):**
|
|
182
|
+
|
|
183
|
+
Launch as many independent sub-agents in parallel as the platform supports.
|
|
184
|
+
|
|
185
|
+
**Always spawn (mandatory for every code change):**
|
|
186
|
+
- **hatch3r-test-writer** — tests for all code changes across the batch.
|
|
187
|
+
- **hatch3r-security-auditor** — security review of all code changes across the batch.
|
|
188
|
+
|
|
189
|
+
**Always evaluate (spawn when applicable):**
|
|
190
|
+
- **hatch3r-docs-writer** — spawn when any changes affect public APIs, architectural patterns, or user-facing behavior.
|
|
191
|
+
|
|
192
|
+
**Conditional specialists (spawn when triggered by any issue in the batch):**
|
|
193
|
+
- **hatch3r-lint-fixer** — spawn when lint errors are present after implementation.
|
|
194
|
+
- **hatch3r-a11y-auditor** — spawn when any issue has `area:ui` or `area:a11y` labels.
|
|
195
|
+
- **hatch3r-perf-profiler** — spawn when any issue has `area:performance` label.
|
|
196
|
+
|
|
197
|
+
Await all specialist sub-agents. Apply their feedback before proceeding to Step 7.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-board-pickup-delegation
|
|
3
|
+
type: command
|
|
4
|
+
description: Single-issue sub-agent delegation protocol for board-pickup Step 6a. Covers research, implementation, and quality pipeline for standalone issues.
|
|
5
|
+
tags: [board, team]
|
|
6
|
+
---
|
|
7
|
+
# Board Pickup — Single-Issue Delegation (Step 6a)
|
|
8
|
+
|
|
9
|
+
Delegation details for Step 6a of `hatch3r-board-pickup`. Referenced from the core command file.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 6a. Single Standalone Issue -- Subagent Delegation
|
|
14
|
+
|
|
15
|
+
For a single standalone issue (no sub-issues, not part of a batch), follow this three-phase approach: research, delegate to implementer, then specialist review.
|
|
16
|
+
|
|
17
|
+
### 6a.1. Context Gathering (Researcher Subagent)
|
|
18
|
+
|
|
19
|
+
**Skip this step only** for trivial single-line edits (typos, comment fixes, single-value config changes) that score Tier 1 per `hatch3r-deep-context`. The `risk:low` and `priority:p3` labels alone are not sufficient to skip research — always score complexity first.
|
|
20
|
+
|
|
21
|
+
**Score the issue's complexity** per the `hatch3r-deep-context` rule to determine the analysis tier (Light / Standard / Deep). This determines which additional researcher modes to include alongside the standard task-type modes.
|
|
22
|
+
|
|
23
|
+
Spawn a **hatch3r-researcher** sub-agent via the Task tool (`subagent_type: "generalPurpose"`) with:
|
|
24
|
+
|
|
25
|
+
- **Research brief:** The issue title, body, acceptance criteria, and area labels.
|
|
26
|
+
- **Modes by issue type:**
|
|
27
|
+
- `type:bug` → `symptom-trace`, `root-cause`, `codebase-impact`
|
|
28
|
+
- `type:feature` → `codebase-impact`, `feature-design`, `architecture`
|
|
29
|
+
- `type:refactor` → `current-state`, `refactoring-strategy`, `migration-path`
|
|
30
|
+
- `type:qa` → `codebase-impact`
|
|
31
|
+
- `type:docs` → `codebase-impact`
|
|
32
|
+
- `type:infra` → `codebase-impact`, `risk-assessment`
|
|
33
|
+
- **Tier-adjusted modes** (per `hatch3r-deep-context`):
|
|
34
|
+
- Tier 2: add `requirements-elicitation` + `similar-implementation` at `quick` depth
|
|
35
|
+
- Tier 3: add `requirements-elicitation` + `similar-implementation` at `deep` depth, plus `codebase-impact` at `deep` depth with transitive tracing
|
|
36
|
+
- **Depth:** `quick` for `risk:low`, `standard` for `risk:med`, `deep` for `risk:high`. The complexity tier may override depth upward.
|
|
37
|
+
- **Project context:** Pre-loaded documentation references from area labels.
|
|
38
|
+
|
|
39
|
+
Await the researcher result. Use its structured output to inform Steps 6a.2-6a.3.
|
|
40
|
+
|
|
41
|
+
**For Tier 2:** Present the `requirements-elicitation` questions to the user inline and await answers before proceeding to 6a.2.
|
|
42
|
+
|
|
43
|
+
**For Tier 3:** Present a full Pre-Implementation Summary per the `hatch3r-deep-context` rule. Do NOT proceed to 6a.2 until all unresolved questions are answered.
|
|
44
|
+
|
|
45
|
+
### 6a.2. Core Implementation (Implementer Subagent)
|
|
46
|
+
|
|
47
|
+
You MUST spawn a **hatch3r-implementer** sub-agent via the Task tool (`subagent_type: "generalPurpose"`). Do NOT implement inline — always delegate to a dedicated implementer to preserve orchestrator context for coordination, review, and integration.
|
|
48
|
+
|
|
49
|
+
The implementer sub-agent prompt MUST include:
|
|
50
|
+
- The issue number, title, full body, and acceptance criteria.
|
|
51
|
+
- The issue type (bug/feature/refactor/QA) and corresponding hatch3r skill name.
|
|
52
|
+
- The researcher output from Step 6a.1 (if that step was not skipped).
|
|
53
|
+
- **Reference conventions** from `similar-implementation` output (Tier 2/3) — triggers the implementer's Convention Lock step.
|
|
54
|
+
- **Resolved requirements** from `requirements-elicitation` answers (Tier 2/3) — explicit decisions on ambiguities.
|
|
55
|
+
- **Blast radius data** from enhanced `codebase-impact` (Tier 3) — transitive dependency trace and API consumer map.
|
|
56
|
+
- Documentation references relevant to this issue.
|
|
57
|
+
- Instruction to follow the **hatch3r-implementer agent protocol**.
|
|
58
|
+
- All `scope: always` rule directives from `.agents/rules/` — subagents do not inherit rules automatically.
|
|
59
|
+
- Relevant learnings from `.agents/learnings/` (from Step 6.pre).
|
|
60
|
+
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
61
|
+
|
|
62
|
+
Await the implementer sub-agent. Collect its structured result (files changed, tests written, issues encountered).
|
|
63
|
+
|
|
64
|
+
### 6a.3. Post-Implementation Quality Pipeline
|
|
65
|
+
|
|
66
|
+
After implementation completes, run the two-stage quality pipeline. Use the Task tool with `subagent_type: "generalPurpose"`.
|
|
67
|
+
|
|
68
|
+
**Stage 1 — Review Loop (sequential):**
|
|
69
|
+
|
|
70
|
+
1. Spawn **`hatch3r-reviewer`** — code review of all changes. Include the diff and acceptance criteria in the prompt.
|
|
71
|
+
2. If the reviewer reports Critical or Warning findings, spawn **`hatch3r-fixer`** with the reviewer output to apply fixes. When fixes touch shared or public interfaces, also include:
|
|
72
|
+
- **Blast radius data** from Step 6a.1 (if available) — so the fixer knows which consumers and contracts must be preserved.
|
|
73
|
+
- **Reference conventions** from Step 6a.1 (if available) — so the fixer maintains established patterns when applying fixes.
|
|
74
|
+
3. Re-spawn **`hatch3r-reviewer`** to verify fixes.
|
|
75
|
+
4. Repeat steps 2-3 for a maximum of **3 iterations** until the reviewer reports 0 Critical + 0 Warning findings.
|
|
76
|
+
5. If still not clean after 3 iterations, **ASK** the user how to proceed.
|
|
77
|
+
|
|
78
|
+
**Stage 2 — Final Quality (parallel, after review loop is clean):**
|
|
79
|
+
|
|
80
|
+
Launch as many independent sub-agents in parallel as the platform supports.
|
|
81
|
+
|
|
82
|
+
**Always spawn (mandatory for every code change):**
|
|
83
|
+
- **hatch3r-test-writer** — tests for all code changes. Unit tests for new logic, regression tests for bug fixes, integration tests for cross-module changes.
|
|
84
|
+
- **hatch3r-security-auditor** — security review of all code changes. Audit data flows, access control, input validation, and secret management.
|
|
85
|
+
|
|
86
|
+
**Always evaluate (spawn when applicable):**
|
|
87
|
+
- **hatch3r-docs-writer** — spawn when changes affect public APIs, architectural patterns, or user-facing behavior. Skip silently if no documentation impact.
|
|
88
|
+
|
|
89
|
+
**Conditional specialists (spawn when triggered):**
|
|
90
|
+
- **hatch3r-lint-fixer** — spawn when lint errors are present after implementation.
|
|
91
|
+
- **hatch3r-a11y-auditor** — spawn when issue has `area:ui` or `area:a11y` labels.
|
|
92
|
+
- **hatch3r-perf-profiler** — spawn when issue has `area:performance` label or changes touch hot paths.
|
|
93
|
+
|
|
94
|
+
Each specialist sub-agent prompt MUST include:
|
|
95
|
+
- The agent protocol to follow (e.g., "Follow the hatch3r-reviewer agent protocol").
|
|
96
|
+
- All `scope: always` rule directives from `.agents/rules/` (subagents do not inherit rules automatically).
|
|
97
|
+
- The diff or file changes to review.
|
|
98
|
+
- The issue's acceptance criteria.
|
|
99
|
+
|
|
100
|
+
Await all specialist sub-agents. Apply their feedback (fixes, additional tests, documentation updates) before proceeding to Step 7.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-board-pickup-github
|
|
3
|
+
type: command
|
|
4
|
+
description: GitHub-specific platform procedures for board-pickup. Covers gh CLI commands for issue listing, status updates, collision detection, PR creation, and label transitions.
|
|
5
|
+
tags: [board, team, github]
|
|
6
|
+
---
|
|
7
|
+
# Board Pickup — GitHub Platform Details
|
|
8
|
+
|
|
9
|
+
Platform-specific procedures for GitHub. Referenced from `hatch3r-board-pickup`.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Step 1a: Fetch and Parse Board State — GitHub
|
|
14
|
+
|
|
15
|
+
**Fetch all open issues:**
|
|
16
|
+
1. `gh issue list -R {owner}/{repo} --state open --limit 500 --json number,title,labels,state,createdAt,updatedAt,body` (fall back to `list_issues` MCP). Paginate to get all.
|
|
17
|
+
|
|
18
|
+
**Check sub-issues per issue:**
|
|
19
|
+
- `issue_read` with `method: get_sub_issues`.
|
|
20
|
+
|
|
21
|
+
**Fetch labels:**
|
|
22
|
+
- `issue_read` with `method: get_labels`.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Step 3: Collision Detection — GitHub
|
|
27
|
+
|
|
28
|
+
**In-progress issues:**
|
|
29
|
+
- `gh issue list -R {owner}/{repo} --label "status:in-progress" --state open` (fall back to `search_issues` MCP).
|
|
30
|
+
|
|
31
|
+
**Open PRs:**
|
|
32
|
+
- `gh pr list -R {owner}/{repo} --state open` (fall back to `search_pull_requests` MCP).
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Step 4: Update Issue Status — GitHub
|
|
37
|
+
|
|
38
|
+
**Update status labels:**
|
|
39
|
+
- `gh issue edit N --remove-label "status:ready" --add-label "status:in-progress"` (fall back to `issue_write` MCP).
|
|
40
|
+
|
|
41
|
+
**Sync board status:**
|
|
42
|
+
Follow the **GitHub Projects V2 Sync** from `commands/board/shared-github.md` for each issue marked `status:in-progress` (including parent epic). Set status to "In Progress".
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Step 8: Create Pull Request — GitHub
|
|
47
|
+
|
|
48
|
+
**PR template:** Check `.github/PULL_REQUEST_TEMPLATE.md`.
|
|
49
|
+
|
|
50
|
+
**Create PR:**
|
|
51
|
+
`gh pr create -R {owner}/{repo} --head {branch} --base {base} --title "..." --body "..."` (fall back to `create_pull_request` MCP).
|
|
52
|
+
|
|
53
|
+
`{base}` = `board.defaultBranch` from `.agents/hatch.json` (fallback: `"main"`).
|
|
54
|
+
|
|
55
|
+
**Link PR to epic:**
|
|
56
|
+
`gh issue comment {epic} -R {owner}/{repo} --body "PR: #{pr_number}"` (fall back to `add_issue_comment` MCP).
|
|
57
|
+
|
|
58
|
+
**Verify PR body linkage:**
|
|
59
|
+
Read back the created PR body and verify it contains `Closes #N` for every issue addressed. If any `Closes #N` reference is missing:
|
|
60
|
+
`gh pr edit {pr_number} -R {owner}/{repo} --body "..."`.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Step 8a: Post-PR Label Transition — GitHub
|
|
65
|
+
|
|
66
|
+
**Transition labels to `status:in-review`:**
|
|
67
|
+
`gh issue edit N --remove-label "status:in-progress" --add-label "status:in-review"`.
|
|
68
|
+
|
|
69
|
+
**Sync Board:**
|
|
70
|
+
Follow the full **GitHub Projects V2 Sync** from `commands/board/shared-github.md` for:
|
|
71
|
+
- The PR: Set to "In Review" on the board.
|
|
72
|
+
- Each `Closes #N` issue: Set to "In Review".
|
|
73
|
+
- Parent epic (all sub-issues addressed): Set to "In Review".
|
|
74
|
+
- Parent epic (partial): Verify status is "In Progress"; set it if not.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Error Handling — GitHub
|
|
79
|
+
|
|
80
|
+
- **Issue listing failure** (`list_issues`): retry once, then ask user for issue number.
|
|
81
|
+
- **Issue update failure** (`issue_write`): warn and continue (labels not blocking).
|
|
82
|
+
- **PR creation failure** (`create_pull_request`): present error and manual instructions.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-board-pickup-gitlab
|
|
3
|
+
type: command
|
|
4
|
+
description: GitLab-specific platform procedures for board-pickup. Covers glab CLI commands for issue listing, status updates, collision detection, MR creation, and label transitions.
|
|
5
|
+
tags: [board, team, gitlab]
|
|
6
|
+
---
|
|
7
|
+
# Board Pickup — GitLab Platform Details
|
|
8
|
+
|
|
9
|
+
Platform-specific procedures for GitLab. Referenced from `hatch3r-board-pickup`.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Step 1a: Fetch and Parse Board State — GitLab
|
|
14
|
+
|
|
15
|
+
**Fetch all open issues:**
|
|
16
|
+
1. `glab issue list -R {namespace}/{project} --state opened --per-page 100`. Paginate to get all.
|
|
17
|
+
|
|
18
|
+
**Check sub-issues per issue:**
|
|
19
|
+
- `glab api projects/{project_id}/issues/{N}/links`.
|
|
20
|
+
|
|
21
|
+
**Fetch labels:**
|
|
22
|
+
- Extract from issue data.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Step 3: Collision Detection — GitLab
|
|
27
|
+
|
|
28
|
+
**In-progress issues:**
|
|
29
|
+
- `glab issue list -R {namespace}/{project} --label "status::in-progress" --state opened`.
|
|
30
|
+
|
|
31
|
+
**Open MRs:**
|
|
32
|
+
- `glab mr list -R {namespace}/{project} --state opened`.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Step 4: Update Issue Status — GitLab
|
|
37
|
+
|
|
38
|
+
**Update status labels:**
|
|
39
|
+
- `glab issue update N --unlabel "status::ready" --label "status::in-progress"`.
|
|
40
|
+
|
|
41
|
+
**Sync board status:**
|
|
42
|
+
Follow the **GitLab Board Label-Based Sync** from `commands/board/shared-gitlab.md` for each issue marked `status:in-progress` (including parent epic). Set label to `status::in-progress`.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Step 8: Create Merge Request — GitLab
|
|
47
|
+
|
|
48
|
+
**MR template:** Check `.gitlab/merge_request_templates/`.
|
|
49
|
+
|
|
50
|
+
**Create MR:**
|
|
51
|
+
`glab mr create -R {namespace}/{project} --source-branch {branch} --target-branch {base} --title "..." --description "..."`. Use `Closes #N` syntax in the description for auto-close on merge.
|
|
52
|
+
|
|
53
|
+
`{base}` = `board.defaultBranch` from `.agents/hatch.json` (fallback: `"main"`).
|
|
54
|
+
|
|
55
|
+
**Link MR to epic:**
|
|
56
|
+
Reference the epic issue number in the MR description. GitLab auto-links MRs to issues mentioned with `Closes #N`.
|
|
57
|
+
|
|
58
|
+
**Verify MR body linkage:**
|
|
59
|
+
Read back the created MR description and verify it contains `Closes #N` for every issue addressed. If any reference is missing:
|
|
60
|
+
`glab mr update {mr_number} -R {namespace}/{project} --description "..."`.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Step 8a: Post-MR Label Transition — GitLab
|
|
65
|
+
|
|
66
|
+
**Transition labels to `status:in-review`:**
|
|
67
|
+
`glab issue update N --unlabel "status::in-progress" --label "status::in-review"`.
|
|
68
|
+
|
|
69
|
+
**Sync Board:**
|
|
70
|
+
Follow the full **GitLab Board Label-Based Sync** from `commands/board/shared-gitlab.md` for:
|
|
71
|
+
- Each `Closes #N` issue: Set label to `status::in-review`.
|
|
72
|
+
- Parent epic (all sub-issues addressed): Set label to `status::in-review`.
|
|
73
|
+
- Parent epic (partial): Verify label is `status::in-progress`; set it if not.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Error Handling — GitLab
|
|
78
|
+
|
|
79
|
+
- **Issue listing failure** (`glab issue list`): retry once, then ask user for issue number.
|
|
80
|
+
- **Issue update failure** (`glab issue update`): warn and continue (labels not blocking).
|
|
81
|
+
- **MR creation failure** (`glab mr create`): present error and manual instructions.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-board-pickup-modes
|
|
3
|
+
type: command
|
|
4
|
+
description: Auto-advance mode, error handling, and guardrails for board-pickup. Covers --auto/--unattended operation, safety guardrails, and specification generation.
|
|
5
|
+
tags: [board, team]
|
|
6
|
+
---
|
|
7
|
+
# Board Pickup — Modes, Guardrails, and Error Handling
|
|
8
|
+
|
|
9
|
+
Supplementary protocols for `hatch3r-board-pickup`. Referenced from the core command file.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Specification Generation (Step 3b — Optional)
|
|
14
|
+
|
|
15
|
+
When the picked issue lacks a detailed specification, generate one before implementation:
|
|
16
|
+
|
|
17
|
+
### When to Generate
|
|
18
|
+
|
|
19
|
+
- Issue body has acceptance criteria but no implementation spec
|
|
20
|
+
- Issue is type `feature` or `refactor` (bugs typically don't need specs)
|
|
21
|
+
- Issue has complexity label `complex` or `epic`
|
|
22
|
+
|
|
23
|
+
### Specification Generation Process
|
|
24
|
+
|
|
25
|
+
1. **Analyze the issue**: Parse title, body, labels, linked issues, and parent epic context.
|
|
26
|
+
2. **Research context**: Read relevant project documentation, existing code in the affected area, and related specs.
|
|
27
|
+
3. **Generate specification** with the following structure:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
## Specification: #{issue_number} — {title}
|
|
31
|
+
|
|
32
|
+
### Problem Statement
|
|
33
|
+
{what needs to change and why}
|
|
34
|
+
|
|
35
|
+
### Proposed Solution
|
|
36
|
+
{high-level approach}
|
|
37
|
+
|
|
38
|
+
### Technical Design
|
|
39
|
+
- **Data model changes**: {new/modified schemas}
|
|
40
|
+
- **API changes**: {new/modified endpoints}
|
|
41
|
+
- **UI changes**: {new/modified components}
|
|
42
|
+
- **Dependencies**: {new libraries or services}
|
|
43
|
+
|
|
44
|
+
### Implementation Plan
|
|
45
|
+
1. {ordered steps}
|
|
46
|
+
|
|
47
|
+
### Test Strategy
|
|
48
|
+
- Unit: {what to unit test}
|
|
49
|
+
- Integration: {what to integration test}
|
|
50
|
+
- E2E: {what to E2E test}
|
|
51
|
+
|
|
52
|
+
### Risks & Mitigations
|
|
53
|
+
- {risk}: {mitigation}
|
|
54
|
+
|
|
55
|
+
### Out of Scope
|
|
56
|
+
- {explicitly excluded items}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
4. **ASK:** Present the generated specification to the user for validation before proceeding to implementation.
|
|
60
|
+
5. **Store**: Save the validated spec as a comment on the issue for traceability.
|
|
61
|
+
|
|
62
|
+
### Skip Specification
|
|
63
|
+
|
|
64
|
+
Skip this step when:
|
|
65
|
+
- Issue already has a linked spec document
|
|
66
|
+
- Issue is a simple bug fix with clear reproduction steps
|
|
67
|
+
- Issue has `skip-spec` label
|
|
68
|
+
- Auto-advance mode is active (see below)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Auto-Advance Mode
|
|
73
|
+
|
|
74
|
+
When invoked with `--auto` or `--unattended`, the board pickup operates with reduced human checkpoints for sustained autonomous operation.
|
|
75
|
+
|
|
76
|
+
### Behavior Changes in Auto Mode
|
|
77
|
+
|
|
78
|
+
| Checkpoint | Normal Mode | Auto Mode |
|
|
79
|
+
|-----------|-------------|-----------|
|
|
80
|
+
| Issue selection | ASK user to confirm | Auto-select highest priority ready issue(s); **auto-batch** independent issues up to `--max-batch` (default 4) |
|
|
81
|
+
| Specification generation | ASK user to validate | Auto-generate and attach, skip validation |
|
|
82
|
+
| Implementation plan | ASK user to review | Auto-proceed with plan |
|
|
83
|
+
| PR creation | ASK user to confirm | Auto-create PR |
|
|
84
|
+
| Review feedback | Wait for human review | Proceed to next issue/batch |
|
|
85
|
+
|
|
86
|
+
In auto mode, batch pickup is the default when multiple independent issues are available. The system auto-selects up to `--max-batch` independent issues and processes them in parallel via Step 6c.
|
|
87
|
+
|
|
88
|
+
### Safety Guardrails (Always Active)
|
|
89
|
+
|
|
90
|
+
These checkpoints are NEVER skipped, even in auto mode:
|
|
91
|
+
- **Destructive operations**: Database migrations, file deletions, security rule changes always require confirmation
|
|
92
|
+
- **Breaking changes**: API contract changes, public interface modifications always require confirmation
|
|
93
|
+
- **Cost thresholds**: Stop if estimated token cost exceeds configured limit (default: $10 per issue)
|
|
94
|
+
- **Error threshold**: Stop after 3 consecutive implementation failures
|
|
95
|
+
- **Scope limits**: Maximum 10 issues per auto session (configurable)
|
|
96
|
+
|
|
97
|
+
### Activation
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
/hatch3r board-pickup --auto
|
|
101
|
+
/hatch3r board-pickup --auto --max-issues=5 --cost-limit=20
|
|
102
|
+
/hatch3r board-pickup --auto --max-batch=4
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Session Report
|
|
106
|
+
|
|
107
|
+
At the end of an auto session, generate a summary:
|
|
108
|
+
- Issues completed: {count}
|
|
109
|
+
- Issues batched: {count per batch}
|
|
110
|
+
- PRs created: {list}
|
|
111
|
+
- Issues blocked: {list with reasons}
|
|
112
|
+
- Total estimated cost: {tokens/cost}
|
|
113
|
+
- Learnings captured: {count}
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Error Handling
|
|
118
|
+
|
|
119
|
+
> Platform-specific details: see `commands/board/pickup-github.md` (Error Handling)
|
|
120
|
+
> Platform-specific details: see `commands/board/pickup-azure-devops.md` (Error Handling)
|
|
121
|
+
> Platform-specific details: see `commands/board/pickup-gitlab.md` (Error Handling)
|
|
122
|
+
|
|
123
|
+
- **Issue listing/search failure:** retry once, then ask user for issue number.
|
|
124
|
+
- **Issue update failure:** warn and continue (labels not blocking).
|
|
125
|
+
- **Quality verification failure:** fix before creating PR/MR.
|
|
126
|
+
- **PR/MR creation failure:** present error and manual instructions.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Guardrails
|
|
131
|
+
|
|
132
|
+
- **Never skip collision check** (Step 3).
|
|
133
|
+
- **Never skip ASK checkpoints.**
|
|
134
|
+
- **Always work on a dedicated branch.** Never commit to the default branch.
|
|
135
|
+
- **Stay within scope.** Note related work but do not implement it.
|
|
136
|
+
- **One PR per pickup session.** A single issue, epic, or batch produces one PR. Split large epics into multiple PRs.
|
|
137
|
+
- **One sub-agent per issue.** Every issue MUST be delegated to its own `hatch3r-implementer` sub-agent -- never implement multiple issues inline. This applies to standalone issues (6a), epic sub-issues (6b), and batch issues (6c).
|
|
138
|
+
- **Maximize parallelism.** Launch as many independent sub-agents concurrently as the platform supports. Only serialize when dependency order or file conflicts require it.
|
|
139
|
+
- **Respect the issue-type skill** as source of truth for implementation.
|
|
140
|
+
- **Respect dependency and implementation order.** Warn and suggest blockers.
|
|
141
|
+
- **Prefer `status:ready` issues.** Warn if selecting non-ready.
|
|
142
|
+
- **Board Overview is auto-maintained.** Exclude from all analysis.
|
|
143
|
+
- **Always create a PR.** Every board-pickup session MUST end with a PR (Steps 7a-8) unless explicitly abandoned by the user or the epic is an audit that produces no code changes. If quality checks fail in Step 7, fix the issues and re-run Step 7 -- do not exit without completing Steps 7a, 8, 8a, and 9.
|