hatch3r 2.0.0 → 2.1.1
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 +1 -0
- package/dist/cli/index.js +783 -422
- package/dist/content/agents/hatch3r-brownfield-spec.md +1 -1
- package/dist/content/agents/hatch3r-fixer.md +1 -1
- package/dist/content/agents/hatch3r-handoff-preparer.md +4 -16
- package/dist/content/agents/hatch3r-implementer.md +1 -1
- package/dist/content/agents/hatch3r-reviewer.md +1 -1
- package/dist/content/agents/shared/efficiency-patterns.md +1 -1
- package/dist/content/agents/shared/quality-charter.md +3 -3
- package/dist/content/agents/shared/severity-mapping.md +1 -1
- package/dist/content/agents/shared/triage-vocabulary.md +1 -1
- package/dist/content/agents/shared/user-content-templates.md +1 -1
- package/dist/content/agents/shared/user-question-protocol.md +3 -3
- package/dist/content/commands/hatch3r-api-spec.md +4 -16
- package/dist/content/commands/hatch3r-auth-scaffold.md +7 -20
- package/dist/content/commands/hatch3r-benchmark.md +4 -16
- package/dist/content/commands/hatch3r-board-fill.md +4 -16
- package/dist/content/commands/hatch3r-board-pickup.md +4 -16
- package/dist/content/commands/hatch3r-bug-pipeline.md +3 -15
- package/dist/content/commands/hatch3r-bug-plan.md +4 -16
- package/dist/content/commands/hatch3r-codebase-map.md +4 -16
- package/dist/content/commands/hatch3r-create.md +4 -16
- package/dist/content/commands/hatch3r-debug.md +4 -16
- package/dist/content/commands/hatch3r-diagnose.md +10 -18
- package/dist/content/commands/hatch3r-feature-plan.md +4 -16
- package/dist/content/commands/hatch3r-handoff.md +4 -16
- package/dist/content/commands/hatch3r-healthcheck.md +4 -16
- package/dist/content/commands/hatch3r-incident-response.md +3 -15
- package/dist/content/commands/hatch3r-migration-plan.md +4 -16
- package/dist/content/commands/hatch3r-onboard.md +5 -17
- package/dist/content/commands/hatch3r-pack-install.md +6 -29
- package/dist/content/commands/hatch3r-pr-resolve.md +11 -53
- package/dist/content/commands/hatch3r-project-spec.md +4 -16
- package/dist/content/commands/hatch3r-quick-change.md +4 -16
- package/dist/content/commands/hatch3r-refactor-plan.md +4 -16
- package/dist/content/commands/hatch3r-release.md +5 -15
- package/dist/content/commands/hatch3r-revision.md +4 -16
- package/dist/content/commands/hatch3r-roadmap.md +4 -16
- package/dist/content/commands/hatch3r-security-audit.md +4 -16
- package/dist/content/commands/hatch3r-slo-scaffold.md +8 -20
- package/dist/content/commands/hatch3r-spec.md +11 -16
- package/dist/content/commands/hatch3r-test-plan.md +4 -16
- package/dist/content/commands/hatch3r-workflow.md +4 -16
- package/dist/content/commands/shared/orchestration-frame.md +2 -2
- package/dist/content/rules/hatch3r-agent-orchestration.md +1 -1
- package/dist/content/rules/hatch3r-agent-orchestration.mdc +1 -1
- package/dist/content/rules/hatch3r-anti-duplication.md +6 -4
- package/dist/content/rules/hatch3r-anti-duplication.mdc +6 -4
- package/dist/content/rules/hatch3r-clarification-default.md +2 -2
- package/dist/content/rules/hatch3r-clarification-default.mdc +2 -2
- package/dist/content/rules/hatch3r-cost-visibility.md +11 -4
- package/dist/content/rules/hatch3r-cost-visibility.mdc +11 -4
- package/dist/content/rules/hatch3r-handoff-readiness.md +1 -1
- package/dist/content/rules/hatch3r-handoff-readiness.mdc +1 -1
- package/dist/content/rules/hatch3r-iteration-summary.md +45 -49
- package/dist/content/rules/hatch3r-iteration-summary.mdc +45 -49
- package/dist/content/rules/hatch3r-learning-system.md +6 -6
- package/dist/content/rules/hatch3r-learning-system.mdc +6 -6
- package/dist/content/rules/hatch3r-reviewer-calibration.md +2 -2
- package/dist/content/rules/hatch3r-reviewer-calibration.mdc +2 -2
- package/dist/content/rules/hatch3r-tool-currency.md +1 -1
- package/dist/content/rules/hatch3r-tool-currency.mdc +1 -1
- package/dist/content/skills/hatch3r-adhoc-orchestrate/SKILL.md +1 -1
- package/dist/content/skills/hatch3r-handoff-prepare/SKILL.md +4 -4
- package/dist/content/skills/hatch3r-report/SKILL.md +1 -1
- package/package.json +5 -3
|
@@ -129,7 +129,7 @@ cost_estimate:
|
|
|
129
129
|
estimated_duration_min: <int>
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
The log-collection checkpoint (Stage 3) is user-driven and excluded from the duration estimate. Post-execution
|
|
132
|
+
The log-collection checkpoint (Stage 3) is user-driven and excluded from the duration estimate. Post-execution, the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
133
133
|
|
|
134
134
|
### Effort Override (Decision 17)
|
|
135
135
|
|
|
@@ -476,30 +476,18 @@ debug is long-running across a user-checkpoint boundary — Stage 2 instruments
|
|
|
476
476
|
|
|
477
477
|
## Iteration Summary (mandatory output)
|
|
478
478
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
The 9 sections:
|
|
482
|
-
|
|
483
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
484
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
485
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
486
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
487
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
488
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
489
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
490
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
491
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
479
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
492
480
|
|
|
493
481
|
### Cost Visibility (Decision 24)
|
|
494
482
|
|
|
495
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract;
|
|
483
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
496
484
|
|
|
497
485
|
## Cost estimate (Decision 24)
|
|
498
486
|
|
|
499
487
|
This command emits cost transparency per `rules/hatch3r-cost-visibility.md` and CONSTITUTION §6 Decision 24/29:
|
|
500
488
|
|
|
501
489
|
- **Pre-execution `cost_estimate`** — emitted in the Pre-Execution Cost Preview above before the first researcher dispatch.
|
|
502
|
-
- **Post-execution `cost_actuals` + `delta`** —
|
|
490
|
+
- **Post-execution `cost_actuals` + `delta`** — the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
503
491
|
|
|
504
492
|
Per-tier `expected_sa_count` calibration (from frontmatter `sub_agents_spawned.count: 6` × tier heuristic in `rules/hatch3r-cost-visibility.md` Pre-Execution Estimate): Tier 1 ≈ 3 (researcher + implementer + one review pass); Tier 2 ≈ 5 (researcher ×2 + implementer + reviewer/fixer); Tier 3 up to 6 (full pipeline including the parallel testability + security final-quality pass). Deltas beyond 25% absolute value carry `flagged_for_review: true`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
505
493
|
|
|
@@ -100,7 +100,7 @@ cost_estimate:
|
|
|
100
100
|
estimated_duration_min: <int>
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
Post-execution actuals + delta land in the Step 6 Iteration Summary
|
|
103
|
+
Post-execution actuals + delta land in the Step 6 Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md` Post-Execution Actuals. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
104
104
|
|
|
105
105
|
### Effort Override (Decision 17)
|
|
106
106
|
|
|
@@ -166,7 +166,7 @@ Each fixer prompt MUST include:
|
|
|
166
166
|
4. The confidence expression requirement (verbatim).
|
|
167
167
|
5. Explicit: do NOT create branches, commits, or PRs — the fixer's standing boundary; this command stops before commit for human review.
|
|
168
168
|
|
|
169
|
-
Await the fixer's structured result. Capture its `Delegation proof ID` per file (quoted verbatim in the Step 6 attestation) and its `Reviewer re-run required` signal. When a fix touches framework source under `src/`, honor the fixer's reviewer-loop continuation signal — but this command does not run the full Phase 3 review loop; it surfaces `Reviewer re-run required: true`
|
|
169
|
+
Await the fixer's structured result. Capture its `Delegation proof ID` per file (quoted verbatim in the Step 6 attestation) and its `Reviewer re-run required` signal. When a fix touches framework source under `src/`, honor the fixer's reviewer-loop continuation signal — but this command does not run the full Phase 3 review loop; it surfaces `Reviewer re-run required: true` on the `Next:` line of the Step 6 recap rather than auto-spawning a reviewer.
|
|
170
170
|
|
|
171
171
|
---
|
|
172
172
|
|
|
@@ -180,26 +180,18 @@ Re-run the relevant Step 1 probe(s) to confirm the fix cleared the symptom: re-r
|
|
|
180
180
|
|
|
181
181
|
### Iteration Summary (mandatory output)
|
|
182
182
|
|
|
183
|
-
|
|
183
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
184
|
+
|
|
185
|
+
Worked example for this domain:
|
|
184
186
|
|
|
185
187
|
```markdown
|
|
186
188
|
## Iteration Summary
|
|
187
189
|
|
|
188
|
-
**
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
**Not Done / Deferred / Unverified:**
|
|
195
|
-
- (or: `None — full scope completed`)
|
|
196
|
-
|
|
197
|
-
**Open Questions / Blockers:**
|
|
198
|
-
- (or: `None`)
|
|
199
|
-
|
|
200
|
-
**Fan-out + Cost:** sub_agents_spawned: { count, rationale } + cost_estimate / cost_actuals / delta
|
|
201
|
-
**Confidence:** {high | medium | low} — {basis from researcher + fixer outputs}
|
|
202
|
-
**Suggested Next Action:** {one line — e.g., "Commit the manifest migration; re-run /hatch3r-diagnose if drift reappears."}
|
|
190
|
+
**PARTIAL** — Diagnosed manifest schema drift; migrated .hatch3r/hatch.json to schemaVersion 3; primary symptom resolved (hatch3r status re-run clean); second symptom not yet reproduced.
|
|
191
|
+
files 1 (+3/−1) · sa 3/3 · gates 2/2 · cost Δ−8% tok / Δ+5% min · tier 3
|
|
192
|
+
Blockers: second symptom (intermittent sync stall) not reproduced against the captured state bundle — needs a failing transcript
|
|
193
|
+
Confidence: medium — primary fix verified by re-run probe; residual symptom unreproduced.
|
|
194
|
+
Next: commit the manifest migration; re-run /hatch3r-diagnose if the stall recurs.
|
|
203
195
|
```
|
|
204
196
|
|
|
205
197
|
Status decision rules:
|
|
@@ -86,7 +86,7 @@ cost_estimate:
|
|
|
86
86
|
estimated_duration_min: <int>
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
Post-execution
|
|
89
|
+
Post-execution, the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
90
90
|
|
|
91
91
|
### Effort Override (Decision 17)
|
|
92
92
|
|
|
@@ -527,30 +527,18 @@ feature-plan is long-running — a Tier 3 cross-cutting feature fans out four pa
|
|
|
527
527
|
|
|
528
528
|
## Iteration Summary (mandatory output)
|
|
529
529
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
The 9 sections:
|
|
533
|
-
|
|
534
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
535
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
536
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
537
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
538
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
539
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
540
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
541
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
542
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
530
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
543
531
|
|
|
544
532
|
### Cost Visibility (Decision 24)
|
|
545
533
|
|
|
546
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract;
|
|
534
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
547
535
|
|
|
548
536
|
## Cost estimate (Decision 24)
|
|
549
537
|
|
|
550
538
|
This command emits cost transparency per `rules/hatch3r-cost-visibility.md` and CONSTITUTION §6 Decision 24/29:
|
|
551
539
|
|
|
552
540
|
- **Pre-execution `cost_estimate`** — emitted in Step 0.5 before the first researcher dispatch.
|
|
553
|
-
- **Post-execution `cost_actuals` + `delta`** —
|
|
541
|
+
- **Post-execution `cost_actuals` + `delta`** — the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
554
542
|
|
|
555
543
|
Per-tier `expected_sa_count` calibration (from frontmatter `sub_agents_spawned.count: 13` × tier heuristic in `rules/hatch3r-cost-visibility.md` Pre-Execution Estimate): Tier 1 ≈ 2 (reduced researcher set + docs-writer); Tier 2 ≈ 6; Tier 3 up to 13 (4-5 parallel researcher modes + docs-writer + the 9 CQ vector specialists advising pre-write). Deltas beyond 25% absolute value carry `flagged_for_review: true`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
556
544
|
|
|
@@ -59,7 +59,7 @@ cost_estimate:
|
|
|
59
59
|
estimated_duration_min: <int>
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
Post-execution
|
|
62
|
+
Post-execution, the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
63
63
|
|
|
64
64
|
### Effort Override (Decision 17)
|
|
65
65
|
|
|
@@ -162,30 +162,18 @@ ID STATUS BRANCH
|
|
|
162
162
|
|
|
163
163
|
## Iteration Summary (mandatory output)
|
|
164
164
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
The 9 sections:
|
|
168
|
-
|
|
169
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
170
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
171
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
172
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
173
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
174
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
175
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
176
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
177
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
165
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
178
166
|
|
|
179
167
|
### Cost Visibility (Decision 24)
|
|
180
168
|
|
|
181
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract;
|
|
169
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
182
170
|
|
|
183
171
|
## Cost estimate (Decision 24)
|
|
184
172
|
|
|
185
173
|
This command emits cost transparency per `rules/hatch3r-cost-visibility.md` and CONSTITUTION §6 Decision 24/29:
|
|
186
174
|
|
|
187
175
|
- **Pre-execution `cost_estimate`** — emitted in Step 0.5 before the `prepare` subcommand invokes `hatch3r-handoff-preparer`. Inline subcommands emit a one-line `expected_sa_count: 0` cost note.
|
|
188
|
-
- **Post-execution `cost_actuals` + `delta`** —
|
|
176
|
+
- **Post-execution `cost_actuals` + `delta`** — the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
189
177
|
|
|
190
178
|
Per-tier `expected_sa_count` calibration (from frontmatter `sub_agents_spawned.count: 1` × tier heuristic in `rules/hatch3r-cost-visibility.md` Pre-Execution Estimate): `prepare` ≈ 1 (one preparer delegation); `resume` ≈ 0 (inline drift check + status transition); `list`/`complete`/`prune` ≈ 0 (filesystem read or single-file rename). This command is local-only — `estimated_web_research_queries` is always 0. Deltas beyond 25% absolute value carry `flagged_for_review: true`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
191
179
|
|
|
@@ -61,7 +61,7 @@ cost_estimate:
|
|
|
61
61
|
estimated_duration_min: <int>
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
Post-execution
|
|
64
|
+
Post-execution, the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
65
65
|
|
|
66
66
|
### Effort Override (Decision 17)
|
|
67
67
|
|
|
@@ -384,30 +384,18 @@ healthcheck is long-running — module discovery (Step 2) seeds a per-module hat
|
|
|
384
384
|
|
|
385
385
|
## Iteration Summary (mandatory output)
|
|
386
386
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
The 9 sections:
|
|
390
|
-
|
|
391
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
392
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
393
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
394
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
395
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
396
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
397
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
398
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
399
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
387
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
400
388
|
|
|
401
389
|
### Cost Visibility (Decision 24)
|
|
402
390
|
|
|
403
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract;
|
|
391
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
404
392
|
|
|
405
393
|
## Cost estimate (Decision 24)
|
|
406
394
|
|
|
407
395
|
This command emits cost transparency per `rules/hatch3r-cost-visibility.md` and CONSTITUTION §6 Decision 24/29:
|
|
408
396
|
|
|
409
397
|
- **Pre-execution `cost_estimate`** — emitted in the Pre-Execution Cost Preview above before the first module audit-authoring dispatch (Step 4).
|
|
410
|
-
- **Post-execution `cost_actuals` + `delta`** —
|
|
398
|
+
- **Post-execution `cost_actuals` + `delta`** — the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
411
399
|
|
|
412
400
|
Per-tier `expected_sa_count` calibration (from frontmatter `sub_agents_spawned.count: 3`, which is the static floor; actual fan-out scales with discovered module count per `rules/fan-out-discipline.md` P8 B2): one `hatch3r-implementer` Task per module sub-issue body + `hatch3r-ui` (CQ1) + `hatch3r-security` (CQ3 supply-chain slice) for the two cross-cutting axes. Tier 2 (module count ≤8) and Tier 3 (module count >8) both bound the parallel module batch by `max_phase4_parallel`. Deltas beyond 25% absolute value carry `flagged_for_review: true`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
413
401
|
|
|
@@ -91,7 +91,7 @@ cost_estimate:
|
|
|
91
91
|
estimated_duration_min: <int>
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
Post-execution
|
|
94
|
+
Post-execution, the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
95
95
|
|
|
96
96
|
### Effort Override (Decision 17)
|
|
97
97
|
|
|
@@ -171,23 +171,11 @@ Commit message format: `docs: post-mortem for {incident-slug}` (post-mortem + ru
|
|
|
171
171
|
|
|
172
172
|
## Iteration Summary (mandatory output)
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
The 9 sections:
|
|
177
|
-
|
|
178
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
179
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
180
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
181
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
182
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
183
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
184
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
185
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
186
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
174
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
187
175
|
|
|
188
176
|
### Cost Visibility (Decision 24)
|
|
189
177
|
|
|
190
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract;
|
|
178
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; the delta figure lands in the Iteration Summary recap (cost facet); full blocks surface on the `Cost:` exception line beyond ±25%, per `rules/hatch3r-cost-visibility.md`.
|
|
191
179
|
|
|
192
180
|
---
|
|
193
181
|
|
|
@@ -83,7 +83,7 @@ cost_estimate:
|
|
|
83
83
|
estimated_duration_min: <int>
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
Post-execution actuals + delta land in the
|
|
86
|
+
Post-execution actuals + delta land in the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md` Post-Execution Actuals. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
87
87
|
|
|
88
88
|
### Effort Override (Decision 17)
|
|
89
89
|
|
|
@@ -390,30 +390,18 @@ migration-plan is long-running — a Tier 3 multi-major-version or framework mig
|
|
|
390
390
|
|
|
391
391
|
## Iteration Summary (mandatory output)
|
|
392
392
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
The 9 sections:
|
|
396
|
-
|
|
397
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
398
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
399
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
400
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
401
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
402
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
403
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
404
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
405
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
393
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
406
394
|
|
|
407
395
|
### Cost Visibility (Decision 24)
|
|
408
396
|
|
|
409
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; both land in
|
|
397
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; both land in the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md`.
|
|
410
398
|
|
|
411
399
|
## Cost estimate (Decision 24)
|
|
412
400
|
|
|
413
401
|
This command emits cost transparency per `rules/hatch3r-cost-visibility.md` and CONSTITUTION §6 Decision 24/29:
|
|
414
402
|
|
|
415
403
|
- **Pre-execution `cost_estimate`** — emitted in Step 0.5 before the first researcher dispatch.
|
|
416
|
-
- **Post-execution `cost_actuals` + `delta`** — appended to the
|
|
404
|
+
- **Post-execution `cost_actuals` + `delta`** — appended to the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md`.
|
|
417
405
|
|
|
418
406
|
Per-tier `expected_sa_count` calibration (from frontmatter `sub_agents_spawned.count: 3` × tier heuristic in `rules/hatch3r-cost-visibility.md` Pre-Execution Estimate): Tier 1 ≈ 1 (two researchers, architect skipped when no breaking changes); Tier 2 ≈ 3 (two parallel researchers + architect, docs-writer); Tier 3 up to 3 (same fan-out, deeper changelog + incremental-vs-direct analysis). Deltas beyond 25% absolute value carry `flagged_for_review: true`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
419
407
|
|
|
@@ -28,7 +28,7 @@ Before any action, scan the user's request and provided context for unresolved q
|
|
|
28
28
|
- Output format ambiguous — markdown vs GitHub issue vs Notion changes write path.
|
|
29
29
|
- Team context dimensions in Step 1b unanswered — guide either includes the section or omits it; do not invent team norms.
|
|
30
30
|
|
|
31
|
-
Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol. If a question goes unanswered, the gate never deadlocks: as the orchestrator, apply the declared `Default if no response:` option and log it in
|
|
31
|
+
Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol. If a question goes unanswered, the gate never deadlocks: as the orchestrator, apply the declared `Default if no response:` option and log it in the `Default applied:` exception line; if a spawned sub-agent hits the trigger or no default line was emitted, return Status `BLOCKED_AMBIGUITY` with the rendered question rather than silent-picking — per `agents/shared/user-question-protocol.md` → Operationalising Default-if-no-Response.
|
|
32
32
|
|
|
33
33
|
## Agent Pipeline
|
|
34
34
|
|
|
@@ -91,7 +91,7 @@ cost_estimate:
|
|
|
91
91
|
estimated_duration_min: <int>
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
Post-execution actuals + delta land in the
|
|
94
|
+
Post-execution actuals + delta land in the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md` Post-Execution Actuals. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
95
95
|
|
|
96
96
|
### Effort Override (Decision 17)
|
|
97
97
|
|
|
@@ -336,30 +336,18 @@ onboard is long-running — a Tier 3 staff-level guide for a large monorepo fans
|
|
|
336
336
|
|
|
337
337
|
## Iteration Summary (mandatory output)
|
|
338
338
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
The 9 sections:
|
|
342
|
-
|
|
343
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
344
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
345
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
346
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
347
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
348
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
349
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
350
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
351
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
339
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
352
340
|
|
|
353
341
|
### Cost Visibility (Decision 24)
|
|
354
342
|
|
|
355
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; both land in
|
|
343
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; both land in the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md`.
|
|
356
344
|
|
|
357
345
|
## Cost estimate (Decision 24)
|
|
358
346
|
|
|
359
347
|
This command emits cost transparency per `rules/hatch3r-cost-visibility.md` and CONSTITUTION §6 Decision 24/29:
|
|
360
348
|
|
|
361
349
|
- **Pre-execution `cost_estimate`** — emitted in Step 0.5 before the first researcher dispatch.
|
|
362
|
-
- **Post-execution `cost_actuals` + `delta`** — appended to the
|
|
350
|
+
- **Post-execution `cost_actuals` + `delta`** — appended to the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md`.
|
|
363
351
|
|
|
364
352
|
Per-tier `expected_sa_count` calibration (from frontmatter `sub_agents_spawned.count: 3` × tier heuristic in `rules/hatch3r-cost-visibility.md` Pre-Execution Estimate): Tier 1 ≈ 1 (codebase-overview researcher only); Tier 2 ≈ 3 (codebase-overview + architecture + conventions); Tier 3 = 3 at deep depth. Deltas beyond 25% absolute value carry `flagged_for_review: true`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
365
353
|
|
|
@@ -171,39 +171,16 @@ Spawn `hatch3r-pack-installer` via the Task tool with `subagent_type: "generalPu
|
|
|
171
171
|
|
|
172
172
|
## Step 5: Iteration Summary
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md` as the final user-facing output: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
175
|
+
|
|
176
|
+
Worked example for this domain:
|
|
175
177
|
|
|
176
178
|
```markdown
|
|
177
179
|
## Iteration Summary
|
|
178
180
|
|
|
179
|
-
**
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
**Done:**
|
|
183
|
-
- Trust verification: hatch3r-security → {verdict}
|
|
184
|
-
- Install: hatch3r-pack-installer → {COMPLETE | BLOCKED}
|
|
185
|
-
|
|
186
|
-
**Not Done / Deferred / Unverified:**
|
|
187
|
-
- (or: `None — pack installed and verified`)
|
|
188
|
-
|
|
189
|
-
**Open Questions / Blockers:**
|
|
190
|
-
- (or: `None`)
|
|
191
|
-
|
|
192
|
-
**Confidence:** {high | medium | low} — {one-sentence basis from the install + verification verdicts}
|
|
193
|
-
|
|
194
|
-
**Artifacts Touched:**
|
|
195
|
-
| Path | Action | Notes |
|
|
196
|
-
| ---- | ------ | ----- |
|
|
197
|
-
| {adapter path} | created / merged | managed block |
|
|
198
|
-
|
|
199
|
-
**Verifications Run:**
|
|
200
|
-
| Check | Result |
|
|
201
|
-
| ----- | ------ |
|
|
202
|
-
| signature (npm audit signatures / cosign verify-blob) | pass |
|
|
203
|
-
| body scan (scanForDeniedPatterns) | 0 hits |
|
|
204
|
-
| hatch3r verify (post-apply drift) | 0 drift |
|
|
205
|
-
|
|
206
|
-
**Suggested Next Action:** {one line — e.g., "Run /hatch3r-capability-discover to see the newly installed pack artifacts."}
|
|
181
|
+
**SUCCESS** — Installed @acme/hatch3r-react-pack@1.2.0: signature PASS, 0 body-scan hits, post-apply hatch3r verify clean.
|
|
182
|
+
files 4 (+96/−0) · sa 2/2 · gates 3/3 · cost Δ+3% tok / Δ−12% min · tier 1
|
|
183
|
+
Next: run /hatch3r-capability-discover to see the newly installed pack artifacts.
|
|
207
184
|
```
|
|
208
185
|
|
|
209
186
|
Status decision rules:
|
|
@@ -170,7 +170,7 @@ cost_estimate:
|
|
|
170
170
|
estimated_duration_min: <int>
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
Post-execution actuals + delta land in the
|
|
173
|
+
Post-execution actuals + delta land in the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md` Post-Execution Actuals. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
174
174
|
|
|
175
175
|
### Effort Override (Decision 17)
|
|
176
176
|
|
|
@@ -627,46 +627,16 @@ If `run_cache.fix_results.files_changed` is empty (every comment was DECLINE / D
|
|
|
627
627
|
|
|
628
628
|
## Step 10: Resolution Summary
|
|
629
629
|
|
|
630
|
-
|
|
630
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md` — a 1–2 line recap plus every exception line whose firing condition holds, using the closed Status enum. Disposition mapping: DEFER dispositions land on the `Not done:` line; NEEDS_CLARIFICATION items land on the `Blockers:` line. Worked example:
|
|
631
631
|
|
|
632
632
|
```markdown
|
|
633
633
|
## Iteration Summary
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
-
|
|
640
|
-
- {comment_id} @{author}: DECLINE (outdated) → reply posted
|
|
641
|
-
- ...
|
|
642
|
-
|
|
643
|
-
**Not Done / Deferred / Unverified:**
|
|
644
|
-
- {comment_id} @{author}: DEFER → tracked in todo.md
|
|
645
|
-
- {comment_id}: reply post failed (Azure REST 429); manual follow-up needed
|
|
646
|
-
- (or: `None — full scope completed`)
|
|
647
|
-
|
|
648
|
-
**Open Questions / Blockers:**
|
|
649
|
-
- {comment_id} @{author}: NEEDS_CLARIFICATION → awaiting reviewer response
|
|
650
|
-
- (or: `None`)
|
|
651
|
-
|
|
652
|
-
**Confidence:** {high | medium | low} — {one-sentence basis from sub-agent outputs and reviewer verdict}
|
|
653
|
-
|
|
654
|
-
**Artifacts Touched:**
|
|
655
|
-
| Path | Action | Notes |
|
|
656
|
-
| ---- | ------ | ----- |
|
|
657
|
-
| {file} | modified | {one line} |
|
|
658
|
-
|
|
659
|
-
**Verifications Run:**
|
|
660
|
-
| Check | Result |
|
|
661
|
-
| ----- | ------ |
|
|
662
|
-
| lint | pass |
|
|
663
|
-
| typecheck | pass |
|
|
664
|
-
| tests | pass ({n} passed) |
|
|
665
|
-
| reviewer/fixer loop | clean after {n} iteration(s) |
|
|
666
|
-
| hatch3r-security | pass |
|
|
667
|
-
| hatch3r-testability | pass — added {n} test(s) |
|
|
668
|
-
|
|
669
|
-
**Suggested Next Action:** {one line — e.g., "Wait for reviewer response on the 2 NEEDS_CLARIFICATION items, then re-run /hatch3r-pr-resolve."}
|
|
634
|
+
**PARTIAL** — Resolved 8 of 10 comments on PR #142; replies posted; commit pushed.
|
|
635
|
+
files 6 (+184/−42) · sa 7/9 · gates 6/6 · cost Δ−12% tok / Δ+8% min · tier 2
|
|
636
|
+
Not done: c-214 @maya DEFER — deferred: tracked in todo.md for /hatch3r-board-fill
|
|
637
|
+
Blockers: c-207 @jordan NEEDS_CLARIFICATION — awaiting reviewer response
|
|
638
|
+
Confidence: medium — reviewer loop clean after 1 round; 2 comments unresolved. The fix required one round of corrections, which is normal for moderately complex changes. A brief human review is recommended.
|
|
639
|
+
Next: re-run /hatch3r-pr-resolve when the reviewer answers c-207.
|
|
670
640
|
```
|
|
671
641
|
|
|
672
642
|
Status decision rules:
|
|
@@ -695,30 +665,18 @@ pr-resolve is long-running — a Tier 3 PR with many open comments runs identity
|
|
|
695
665
|
|
|
696
666
|
## Iteration Summary (mandatory output)
|
|
697
667
|
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
The 9 sections:
|
|
701
|
-
|
|
702
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
703
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
704
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
705
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
706
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
707
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
708
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
709
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
710
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
668
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06). (The Step 10 block above is the domain rendering; the recap closes the run.)
|
|
711
669
|
|
|
712
670
|
### Cost Visibility (Decision 24)
|
|
713
671
|
|
|
714
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; both land in
|
|
672
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; both land in the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md`.
|
|
715
673
|
|
|
716
674
|
## Cost estimate (Decision 24)
|
|
717
675
|
|
|
718
676
|
This command emits cost transparency per `rules/hatch3r-cost-visibility.md` and CONSTITUTION §6 Decision 24/29:
|
|
719
677
|
|
|
720
678
|
- **Pre-execution `cost_estimate`** — emitted in Step 0.5 before the Step 5 ASK gate (the only mutation gate; fan-out begins in Step 6).
|
|
721
|
-
- **Post-execution `cost_actuals` + `delta`** — appended to the
|
|
679
|
+
- **Post-execution `cost_actuals` + `delta`** — appended to the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md`.
|
|
722
680
|
|
|
723
681
|
Per-tier `expected_sa_count` calibration (from frontmatter `sub_agents_spawned.count: 9` × tier heuristic in `rules/hatch3r-cost-visibility.md` Pre-Execution Estimate): Tier 1 ≈ 1 (one specialist, no review loop); Tier 2 ≈ 4 (FIX NOW fix group + review loop); Tier 3 up to 9 (full pipeline including the parallel Tier-3 final-quality specialist mandate). A no-comment short-circuit (Step 2d) emits `actual_sa_count: 0`. Deltas beyond 25% absolute value carry `flagged_for_review: true`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
724
682
|
|
|
@@ -82,7 +82,7 @@ cost_estimate:
|
|
|
82
82
|
estimated_duration_min: <int>
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
Post-execution actuals + delta land in the
|
|
85
|
+
Post-execution actuals + delta land in the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md` Post-Execution Actuals. Token telemetry sources from `src/pipeline/observability.ts`.
|
|
86
86
|
|
|
87
87
|
### Effort Override (Decision 17)
|
|
88
88
|
|
|
@@ -1236,30 +1236,18 @@ project-spec is long-running — a Tier 3 enterprise-scale greenfield fans out s
|
|
|
1236
1236
|
|
|
1237
1237
|
## Iteration Summary (mandatory output)
|
|
1238
1238
|
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
The 9 sections:
|
|
1242
|
-
|
|
1243
|
-
1. **Request** — verbatim restatement of the user's ask in one sentence.
|
|
1244
|
-
2. **Fan-out + Cost** — `sub_agents_spawned: { count, rationale }` plus the `cost_estimate` / `cost_actuals` / `delta` blocks (see Cost Visibility below).
|
|
1245
|
-
3. **Web Research** — every URL fetched with access date + trust tier per `agents/shared/rigor-contract.md` (0 acceptable when no research was needed).
|
|
1246
|
-
4. **Files Mutated** — list with diff summary (lines added / removed / files created).
|
|
1247
|
-
5. **Gates Passed / Failed** — explicit list per `.claude/rules/capability-lifecycle.md` Gate Checklist.
|
|
1248
|
-
6. **Pillar Impact Attribution** — `progress_toward_pillar: <axis>.<pillar_id>+<delta>` per CONSTITUTION §6 Decision 17.
|
|
1249
|
-
7. **Verification Commands** — exact commands run with exit codes plus key output lines (≤200 chars).
|
|
1250
|
-
8. **Open Questions / Blockers** — explicit `None` if fully closed.
|
|
1251
|
-
9. **Learnings Captured** — IDs of any learnings written to `.hatch3r/learnings/` this run per `rules/hatch3r-learning-system.md`.
|
|
1239
|
+
Close the run with the recap-contract Iteration Summary per `rules/hatch3r-iteration-summary.md`: a 1–2 line recap (status, outcome, files · sub-agents · gates · cost delta) plus every exception line whose firing condition holds — silence asserts the default. Omitting the recap fails that rule's Validation Gate (CONSTITUTION §6 Decision 23, superseded in place 2026-07-06).
|
|
1252
1240
|
|
|
1253
1241
|
### Cost Visibility (Decision 24)
|
|
1254
1242
|
|
|
1255
|
-
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; both land in
|
|
1243
|
+
> Orchestration boilerplate: see `commands/shared/orchestration-frame.md` → Cost Estimate for the 5-field `cost_estimate` schema and the post-execution `cost_actuals` + `delta` contract; both land in the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md`.
|
|
1256
1244
|
|
|
1257
1245
|
## Cost estimate (Decision 24)
|
|
1258
1246
|
|
|
1259
1247
|
This command emits cost transparency per `rules/hatch3r-cost-visibility.md` and CONSTITUTION §6 Decision 24/29:
|
|
1260
1248
|
|
|
1261
1249
|
- **Pre-execution `cost_estimate`** — emitted in Step 0.5 before the first researcher dispatch.
|
|
1262
|
-
- **Post-execution `cost_actuals` + `delta`** — appended to the
|
|
1250
|
+
- **Post-execution `cost_actuals` + `delta`** — appended to the Iteration Summary recap (cost facet; full blocks on the `Cost:` exception line beyond ±25%) per `rules/hatch3r-cost-visibility.md`.
|
|
1263
1251
|
|
|
1264
1252
|
Per-tier `expected_sa_count` calibration (from frontmatter `sub_agents_spawned.count: 7` × tier heuristic in `rules/hatch3r-cost-visibility.md` Pre-Execution Estimate): Tier 1 ≈ 3-4 (reduced researcher set, no production-blueprint); Tier 2/3 spawn up to 7 parallel researchers plus the production-blueprint sub-agent. Deltas beyond 25% absolute value carry `flagged_for_review: true`. Token telemetry sources from `src/pipeline/observability.ts`; estimation primitives from `src/pipeline/costEstimator.ts`.
|
|
1265
1253
|
|