@bonesofspring/ai-rules 0.2.12 → 0.2.13
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +114 -0
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +64 -5
- package/presets/claude/go/agents/build-verifier.md +9 -2
- package/presets/claude/go/agents/code-reviewer.md +8 -1
- package/presets/claude/go/agents/feature-developer.md +8 -1
- package/presets/claude/go/agents/task-analyst.md +8 -1
- package/presets/claude/go/agents/task-router.md +33 -5
- package/presets/claude/go/commands/task.md +8 -6
- package/presets/claude/go/hooks/chain-team-phases.sh +195 -53
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
- package/presets/claude/go/team/README.md +13 -2
- package/presets/claude/ios-swift/agents/build-verifier.md +8 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +9 -14
- package/presets/claude/ios-swift/agents/feature-developer.md +8 -1
- package/presets/claude/ios-swift/agents/task-analyst.md +8 -1
- package/presets/claude/ios-swift/agents/task-router.md +31 -3
- package/presets/claude/ios-swift/commands/task.md +8 -6
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +177 -54
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +33 -2
- package/presets/claude/ios-swift/team/README.md +13 -2
- package/presets/claude/java/agents/build-verifier.md +8 -1
- package/presets/claude/java/agents/code-reviewer.md +8 -1
- package/presets/claude/java/agents/feature-developer.md +8 -1
- package/presets/claude/java/agents/task-analyst.md +8 -1
- package/presets/claude/java/agents/task-router.md +31 -3
- package/presets/claude/java/commands/task.md +8 -6
- package/presets/claude/java/hooks/chain-team-phases.sh +195 -53
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
- package/presets/claude/java/team/README.md +13 -2
- package/presets/claude/mcp-ts/agents/build-verifier.md +9 -2
- package/presets/claude/mcp-ts/agents/feature-developer.md +7 -1
- package/presets/claude/mcp-ts/agents/task-analyst.md +8 -1
- package/presets/claude/mcp-ts/agents/task-router.md +33 -5
- package/presets/claude/mcp-ts/commands/task.md +8 -6
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +181 -39
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
- package/presets/claude/mcp-ts/team/README.md +13 -2
- package/presets/claude/next/agents/accessibility-reviewer.md +6 -12
- package/presets/claude/next/agents/api-contract-reviewer.md +6 -12
- package/presets/claude/next/agents/build-verifier.md +8 -12
- package/presets/claude/next/agents/ci-investigator.md +7 -13
- package/presets/claude/next/agents/code-reviewer.md +9 -14
- package/presets/claude/next/agents/debugger.md +6 -12
- package/presets/claude/next/agents/feature-developer.md +8 -1
- package/presets/claude/next/agents/migration-specialist.md +6 -12
- package/presets/claude/next/agents/performance-auditor.md +5 -11
- package/presets/claude/next/agents/qa-tester.md +6 -12
- package/presets/claude/next/agents/security-reviewer.md +6 -12
- package/presets/claude/next/agents/solution-architect.md +6 -12
- package/presets/claude/next/agents/task-analyst.md +10 -16
- package/presets/claude/next/agents/task-router.md +31 -3
- package/presets/claude/next/agents/tech-writer.md +6 -13
- package/presets/claude/next/agents/unit-test-generator.md +6 -10
- package/presets/claude/next/agents/unit-test-healer.md +6 -10
- package/presets/claude/next/agents/unit-test-planner.md +5 -11
- package/presets/claude/next/commands/task.md +8 -6
- package/presets/claude/next/hooks/chain-team-phases.sh +197 -54
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +29 -4
- package/presets/claude/next/team/README.md +15 -3
- package/presets/claude/next/team/fixtures/artifact-manifest.example.json +61 -0
- package/presets/claude/next/team/fixtures/bugfix-standard.json +10 -0
- package/presets/claude/next/team/fixtures/feature-full.json +10 -0
- package/presets/claude/next/team/fixtures/feature-light.json +10 -0
- package/presets/claude/php-hexagonal/agents/build-verifier.md +9 -2
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +8 -1
- package/presets/claude/php-hexagonal/agents/feature-developer.md +8 -1
- package/presets/claude/php-hexagonal/agents/task-analyst.md +8 -1
- package/presets/claude/php-hexagonal/agents/task-router.md +31 -3
- package/presets/claude/php-hexagonal/commands/task.md +8 -6
- package/presets/claude/php-hexagonal/hooks/README.md +1 -1
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +195 -53
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
- package/presets/claude/php-hexagonal/team/README.md +13 -2
- package/presets/claude/php-laravel/agents/build-verifier.md +9 -2
- package/presets/claude/php-laravel/agents/code-reviewer.md +8 -1
- package/presets/claude/php-laravel/agents/feature-developer.md +8 -1
- package/presets/claude/php-laravel/agents/task-analyst.md +8 -1
- package/presets/claude/php-laravel/agents/task-router.md +31 -3
- package/presets/claude/php-laravel/commands/task.md +8 -6
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +195 -53
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +30 -5
- package/presets/claude/php-laravel/team/README.md +13 -2
- package/presets/cursor/go/agents/build-verifier.md +8 -1
- package/presets/cursor/go/agents/code-reviewer.md +8 -1
- package/presets/cursor/go/agents/feature-developer.md +8 -1
- package/presets/cursor/go/agents/task-analyst.md +8 -1
- package/presets/cursor/go/agents/task-router.md +31 -3
- package/presets/cursor/go/commands/task.md +8 -6
- package/presets/cursor/go/hooks/chain-team-phases.sh +195 -53
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +30 -5
- package/presets/cursor/go/team/README.md +13 -2
- package/presets/cursor/ios-swift/agents/build-verifier.md +8 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +9 -14
- package/presets/cursor/ios-swift/agents/feature-developer.md +8 -1
- package/presets/cursor/ios-swift/agents/task-analyst.md +8 -1
- package/presets/cursor/ios-swift/agents/task-router.md +31 -3
- package/presets/cursor/ios-swift/commands/task.md +8 -6
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +195 -54
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +23 -2
- package/presets/cursor/ios-swift/team/README.md +13 -2
- package/presets/cursor/java/agents/build-verifier.md +8 -1
- package/presets/cursor/java/agents/code-reviewer.md +8 -1
- package/presets/cursor/java/agents/feature-developer.md +8 -1
- package/presets/cursor/java/agents/task-analyst.md +8 -1
- package/presets/cursor/java/agents/task-router.md +31 -3
- package/presets/cursor/java/commands/task.md +8 -6
- package/presets/cursor/java/hooks/chain-team-phases.sh +195 -53
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +30 -5
- package/presets/cursor/java/team/README.md +13 -2
- package/presets/cursor/mcp-ts/agents/build-verifier.md +8 -1
- package/presets/cursor/mcp-ts/agents/feature-developer.md +7 -1
- package/presets/cursor/mcp-ts/agents/task-analyst.md +8 -1
- package/presets/cursor/mcp-ts/agents/task-router.md +31 -3
- package/presets/cursor/mcp-ts/commands/task.md +8 -6
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +181 -39
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +30 -5
- package/presets/cursor/mcp-ts/team/README.md +13 -2
- package/presets/cursor/next/agents/accessibility-reviewer.md +7 -14
- package/presets/cursor/next/agents/api-contract-reviewer.md +7 -14
- package/presets/cursor/next/agents/build-verifier.md +8 -13
- package/presets/cursor/next/agents/ci-investigator.md +7 -14
- package/presets/cursor/next/agents/code-reviewer.md +9 -14
- package/presets/cursor/next/agents/debugger.md +6 -12
- package/presets/cursor/next/agents/feature-developer.md +8 -1
- package/presets/cursor/next/agents/migration-specialist.md +7 -14
- package/presets/cursor/next/agents/performance-auditor.md +6 -13
- package/presets/cursor/next/agents/qa-tester.md +6 -13
- package/presets/cursor/next/agents/security-reviewer.md +7 -14
- package/presets/cursor/next/agents/solution-architect.md +6 -12
- package/presets/cursor/next/agents/task-analyst.md +10 -16
- package/presets/cursor/next/agents/task-router.md +31 -3
- package/presets/cursor/next/agents/tech-writer.md +6 -13
- package/presets/cursor/next/agents/unit-test-generator.md +6 -11
- package/presets/cursor/next/agents/unit-test-healer.md +6 -11
- package/presets/cursor/next/agents/unit-test-planner.md +6 -13
- package/presets/cursor/next/commands/task.md +8 -6
- package/presets/cursor/next/hooks/chain-team-phases.sh +197 -54
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +30 -5
- package/presets/cursor/next/team/README.md +16 -4
- package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +61 -0
- package/presets/cursor/next/team/fixtures/bugfix-standard.json +10 -0
- package/presets/cursor/next/team/fixtures/feature-full.json +10 -0
- package/presets/cursor/next/team/fixtures/feature-light.json +10 -0
- package/presets/cursor/php-hexagonal/agents/build-verifier.md +8 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +8 -1
- package/presets/cursor/php-hexagonal/agents/feature-developer.md +8 -1
- package/presets/cursor/php-hexagonal/agents/task-analyst.md +8 -1
- package/presets/cursor/php-hexagonal/agents/task-router.md +31 -3
- package/presets/cursor/php-hexagonal/commands/task.md +8 -6
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +195 -53
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +30 -5
- package/presets/cursor/php-hexagonal/team/README.md +13 -2
- package/presets/cursor/php-laravel/agents/build-verifier.md +8 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +8 -1
- package/presets/cursor/php-laravel/agents/feature-developer.md +8 -1
- package/presets/cursor/php-laravel/agents/task-analyst.md +8 -1
- package/presets/cursor/php-laravel/agents/task-router.md +31 -3
- package/presets/cursor/php-laravel/commands/task.md +8 -6
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +195 -53
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +30 -5
- package/presets/cursor/php-laravel/team/README.md +13 -2
|
@@ -40,7 +40,7 @@ When validating **preset packaging** changes (paths under `packages/ai-rules/pre
|
|
|
40
40
|
7. **Embed drift (hard in `check:preset-structure`):** run `packages/ai-rules/scripts/check-shared-core-drift.sh` with `AI_RULES_DRIFT_FAIL=1` (bundled by the structure orchestrator). Lineage stems excluded from body equality.
|
|
41
41
|
8. **Dogfood (monorepo soft):** prefer `packages/ai-rules/scripts/sync-dogfood-cursor.sh`; mass dogfood deletion without migration doc → risk / FAIL for maintainers.
|
|
42
42
|
|
|
43
|
-
9. **Root AGENTS template:** each installable preset (`cursor|claude` × `next|ios-swift|go|java|mcp-ts|php-hexagonal`) must ship `REPO_AGENTS.md` when validating preset packaging → **FAIL** if missing.
|
|
43
|
+
9. **Root AGENTS template:** each installable preset (`cursor|claude` × `next|ios-swift|go|java|mcp-ts|php-hexagonal|php-laravel`) must ship `REPO_AGENTS.md` when validating preset packaging → **FAIL** if missing.
|
|
44
44
|
10. **Hooks cookbook:** default `hooks.json` must **not** reference `hooks/examples/` → **FAIL** if it does.
|
|
45
45
|
11. **No react-performance on ios/go/java:** skill directory / required handoff must be absent under ios-swift, go, java, mcp-ts, php-hexagonal, and php-laravel → **FAIL** (leakage). Prefer `check:preset-leakage`.
|
|
46
46
|
12. **Rule eval (WARN):** `scripts/check-rule-eval.mjs` / `yarn check:rule-eval` should exist for maintainers; smoke optional. Hard fail only when the opt-in eval job runs — not part of default `check:preset-structure`.
|
|
@@ -77,17 +77,13 @@ PASS | FAIL
|
|
|
77
77
|
|
|
78
78
|
## On completion
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Write the owned terminal receipt described under **Artifact contract**. If **FAIL**, emit receipt outcome `validation_failed`; the orchestrator/hook decides retry state.
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
{
|
|
84
|
-
"slug": "<slug>",
|
|
85
|
-
"currentAgent": "build-verifier",
|
|
86
|
-
"state": "completed",
|
|
87
|
-
"updatedAt": "<ISO8601>"
|
|
88
|
-
}
|
|
89
|
-
```
|
|
82
|
+
Do not fix code — report only. Do not advance to code-reviewer until PASS.
|
|
90
83
|
|
|
91
|
-
|
|
84
|
+
## Artifact contract
|
|
92
85
|
|
|
93
|
-
|
|
86
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition, implementation evidence, pipeline scope, and changed files.
|
|
87
|
+
- **Owned outputs:** `validation-report.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `validation`) and preserve all foreign entries.
|
|
88
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `validation_failed`. Bind it to the supplied `attemptId` when present.
|
|
89
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
@@ -43,23 +43,17 @@ Commands run and results.
|
|
|
43
43
|
|
|
44
44
|
## When to hand off
|
|
45
45
|
|
|
46
|
-
- If the fix requires feature work beyond CI scope → document in `ci-report.md` and
|
|
46
|
+
- If the fix requires feature work beyond CI scope → document in `ci-report.md` and emit owned receipt outcome `completed`; orchestrator/hook may invoke `feature-developer`.
|
|
47
47
|
- If only investigation was requested → stop after report without code changes.
|
|
48
48
|
|
|
49
|
-
##
|
|
49
|
+
## Artifact contract
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition when present, failing check context, and prior validation/debug artifacts.
|
|
52
|
+
- **Owned outputs:** `ci-report.md` plus any minimal fix paths; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `ci`) and preserve all foreign entries.
|
|
53
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
54
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
52
55
|
|
|
53
|
-
|
|
54
|
-
{
|
|
55
|
-
"slug": "<slug>",
|
|
56
|
-
"currentAgent": "ci-investigator",
|
|
57
|
-
"state": "completed",
|
|
58
|
-
"updatedAt": "<ISO8601>"
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Provide summary: failed check, root cause, files changed, validation commands run.
|
|
56
|
+
Provide summary: failed check, root cause, files changed, validation commands run. Keep `fixApplied: true/false` (and verdict) in `ci-report.md` / the owned receipt summary — do not encode them by mutating `status.json`.
|
|
63
57
|
|
|
64
58
|
## Anti-sycophancy discipline
|
|
65
59
|
|
|
@@ -4,7 +4,7 @@ description: Expert code review specialist. Reviews after feature development us
|
|
|
4
4
|
model: fast
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
You are a senior code reviewer. You may write only review artifacts under `.claude/team/**` and
|
|
7
|
+
You are a senior code reviewer. You may write only review artifacts under `.claude/team/**` and terminal receipts; do not modify production code.
|
|
8
8
|
|
|
9
9
|
## Inputs
|
|
10
10
|
|
|
@@ -46,22 +46,17 @@ APPROVE | APPROVE_WITH_NOTES | REQUEST_CHANGES
|
|
|
46
46
|
|
|
47
47
|
## On completion
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
```json
|
|
52
|
-
{
|
|
53
|
-
"slug": "<slug>",
|
|
54
|
-
"currentAgent": "code-reviewer",
|
|
55
|
-
"phase": "executing",
|
|
56
|
-
"state": "completed",
|
|
57
|
-
"updatedAt": "<ISO8601>"
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
If **REQUEST_CHANGES**, set `"state": "changes_requested"` (hook will re-invoke feature-developer).
|
|
49
|
+
Write the owned terminal receipt described under **Artifact contract**. If **REQUEST_CHANGES**, emit receipt outcome `changes_requested`; the hook decides retry state.
|
|
62
50
|
|
|
63
51
|
Do not mix this output with retrospective facilitation — keep review and retro separate.
|
|
64
52
|
|
|
65
53
|
## Design guidance
|
|
66
54
|
|
|
67
55
|
- Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
|
|
56
|
+
|
|
57
|
+
## Artifact contract
|
|
58
|
+
|
|
59
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition, implementation, validation evidence, and the scoped git diff.
|
|
60
|
+
- **Owned outputs:** `review.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `review`) and preserve all foreign entries.
|
|
61
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `changes_requested`. Bind it to the supplied `attemptId` when present.
|
|
62
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
@@ -45,20 +45,14 @@ fixApplied: false
|
|
|
45
45
|
|
|
46
46
|
5. If fix is trivial and clearly scoped, you **may** apply the minimal fix and set `fixApplied: true` in the report. Otherwise leave implementation to **feature-developer** with `fixApplied: false`.
|
|
47
47
|
|
|
48
|
-
##
|
|
48
|
+
## Artifact contract
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition when present, failing evidence, and related prior artifacts.
|
|
51
|
+
- **Owned outputs:** `debug-report.md` plus any minimal fix paths; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `debug`) and preserve all foreign entries.
|
|
52
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
53
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
51
54
|
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
"slug": "<slug>",
|
|
55
|
-
"currentAgent": "debugger",
|
|
56
|
-
"state": "completed",
|
|
57
|
-
"updatedAt": "<ISO8601>"
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Handoff summary: root cause, recommended fix, files touched (if any).
|
|
55
|
+
Handoff summary: root cause, recommended fix, files touched (if any). Keep `fixApplied: true/false` in `debug-report.md` / the owned receipt — do not mutate `status.json` for that signal.
|
|
62
56
|
|
|
63
57
|
Do not perform formal code review or write e2e plans — those are separate agents.
|
|
64
58
|
|
|
@@ -35,7 +35,7 @@ You are a senior frontend developer working in a Next.js monorepo with strict la
|
|
|
35
35
|
|
|
36
36
|
## On completion
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
Emit the owned implementation receipt with outcome `completed`. Handoff: tasks done, files by layer, unit specs, validation result, gaps for build-verifier/reviewer.
|
|
39
39
|
|
|
40
40
|
Do not perform formal code review — that is the code-reviewer subagent's job.
|
|
41
41
|
|
|
@@ -50,3 +50,10 @@ Do not perform formal code review — that is the code-reviewer subagent's job.
|
|
|
50
50
|
## Anti-hallucination (Next / React / RTK)
|
|
51
51
|
|
|
52
52
|
- When editing `app/**/*.{ts,tsx}`, load / follow rule `react-next-anti-hallucination`.
|
|
53
|
+
|
|
54
|
+
## Artifact contract
|
|
55
|
+
|
|
56
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for `brief.md`, `decomposition.md`, current scope, and applicable prior findings.
|
|
57
|
+
- **Owned outputs:** `implementation.md` plus changed implementation/test paths; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `implementation`) and preserve all foreign entries.
|
|
58
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
59
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
@@ -53,20 +53,14 @@ Temporary adapters, feature flags, dual-write if needed.
|
|
|
53
53
|
- Map every phase to concrete decomposition tasks for `feature-developer`.
|
|
54
54
|
- Do not implement code — planning only.
|
|
55
55
|
|
|
56
|
-
##
|
|
56
|
+
## Artifact contract
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition and stack/version context from the repo.
|
|
59
|
+
- **Owned outputs:** `migration-plan.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `migration-plan`) and preserve all foreign entries.
|
|
60
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
61
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
59
62
|
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
"slug": "<slug>",
|
|
63
|
-
"currentAgent": "migration-specialist",
|
|
64
|
-
"state": "completed",
|
|
65
|
-
"updatedAt": "<ISO8601>"
|
|
66
|
-
}
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Hand off: orchestrator runs human gate (if configured), then `feature-developer` executes phases from the plan.
|
|
63
|
+
Hand off: orchestrator/hook runs human gate (if configured), then `feature-developer` executes phases from the plan.
|
|
70
64
|
|
|
71
65
|
## Design guidance
|
|
72
66
|
|
|
@@ -50,18 +50,12 @@ Bundle chunks, Lighthouse hints, or measured timings.
|
|
|
50
50
|
Ordered list for feature-developer if fixes are requested.
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Artifact contract
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"slug": "<slug>",
|
|
60
|
-
"currentAgent": "performance-auditor",
|
|
61
|
-
"state": "completed",
|
|
62
|
-
"updatedAt": "<ISO8601>"
|
|
63
|
-
}
|
|
64
|
-
```
|
|
55
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief when present and the scoped git diff / routes under audit.
|
|
56
|
+
- **Owned outputs:** `perf-report.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `perf-report`) and preserve all foreign entries.
|
|
57
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
58
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
65
59
|
|
|
66
60
|
For standalone `perf-audit` intent, suggest `/technical-retro` or a follow-up `/task` to implement fixes.
|
|
67
61
|
|
|
@@ -35,18 +35,12 @@ When the task is mostly e2e, prefer invoking the dedicated `playwright-test-plan
|
|
|
35
35
|
- Run relevant unit tests for changed modules.
|
|
36
36
|
- Run affected e2e specs if feasible; report failures clearly.
|
|
37
37
|
|
|
38
|
-
##
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"slug": "<slug>",
|
|
45
|
-
"currentAgent": "qa-tester",
|
|
46
|
-
"state": "completed",
|
|
47
|
-
"updatedAt": "<ISO8601>"
|
|
48
|
-
}
|
|
49
|
-
```
|
|
38
|
+
## Artifact contract
|
|
39
|
+
|
|
40
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition, reviewer notes when present, and prior implementation/validation artifacts.
|
|
41
|
+
- **Owned outputs:** changed/added test paths (and any QA notes written under the slug dir); upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `qa-tester`) and preserve all foreign entries.
|
|
42
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
43
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
50
44
|
|
|
51
45
|
Provide summary:
|
|
52
46
|
|
|
@@ -48,19 +48,13 @@ PASS | PASS_WITH_NOTES | FAIL
|
|
|
48
48
|
|------|--------|-------|
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## Artifact contract
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition, prior `review.md` when present, and the scoped git diff.
|
|
54
|
+
- **Owned outputs:** `security-review.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `security-review`) and preserve all foreign entries.
|
|
55
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `changes_requested`. Bind it to the supplied `attemptId` when present.
|
|
56
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
54
57
|
|
|
55
|
-
|
|
56
|
-
{
|
|
57
|
-
"slug": "<slug>",
|
|
58
|
-
"currentAgent": "security-reviewer",
|
|
59
|
-
"state": "completed",
|
|
60
|
-
"updatedAt": "<ISO8601>"
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
If **FAIL**, set `"state": "changes_requested"`.
|
|
58
|
+
If **FAIL**, emit receipt outcome `changes_requested`.
|
|
65
59
|
|
|
66
60
|
Do not modify production code.
|
|
@@ -52,20 +52,14 @@ Write `.claude/team/tasks/<slug>/architecture.md`:
|
|
|
52
52
|
- Flag when decomposition should change — list suggested updates for analyst/developer.
|
|
53
53
|
- Do **not** write production code or tests.
|
|
54
54
|
|
|
55
|
-
##
|
|
55
|
+
## Artifact contract
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition and applicable prior analysis artifacts.
|
|
58
|
+
- **Owned outputs:** `architecture.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `architecture`) and preserve all foreign entries.
|
|
59
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
60
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
"slug": "<slug>",
|
|
62
|
-
"currentAgent": "solution-architect",
|
|
63
|
-
"state": "completed",
|
|
64
|
-
"updatedAt": "<ISO8601>"
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
For `spike` intent with human gate after architect: set `"state": "awaiting_approval"` if design needs user sign-off.
|
|
62
|
+
For `spike` intent needing user sign-off: emit receipt outcome `completed` (or `blocked` if design cannot proceed) and state the approval need in the receipt summary — the orchestration runtime/hook owns human-gate lifecycle (`awaiting_approval`), not this agent.
|
|
69
63
|
|
|
70
64
|
Handoff: summary of design decisions and recommended next steps for developer.
|
|
71
65
|
|
|
@@ -73,22 +73,9 @@ Create or update files under `.claude/team/tasks/<slug>/`:
|
|
|
73
73
|
- `rules/architecture/feature-delivery-workflow.md` for layer order
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
###
|
|
76
|
+
### Runtime state
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
{
|
|
80
|
-
"slug": "<slug>",
|
|
81
|
-
"intent": "<from pipeline.json>",
|
|
82
|
-
"pipelineIndex": 0,
|
|
83
|
-
"currentAgent": "task-analyst",
|
|
84
|
-
"phase": "executing",
|
|
85
|
-
"state": "awaiting_approval",
|
|
86
|
-
"awaitingHumanGate": true,
|
|
87
|
-
"updatedAt": "<ISO8601>"
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
If `pipeline.json` has `humanGates` including `after:task-analyst`, set `awaitingHumanGate: true`.
|
|
78
|
+
The orchestration runtime/hook owns `status.json`; the analyst does not create or mutate lifecycle fields.
|
|
92
79
|
|
|
93
80
|
Also write `.claude/team/active-task.json`:
|
|
94
81
|
|
|
@@ -104,7 +91,7 @@ Use kebab-case from the task title (e.g. `order-history-date-filter`). Max 48 ch
|
|
|
104
91
|
|
|
105
92
|
When DoR is reached and artifacts are saved:
|
|
106
93
|
|
|
107
|
-
1.
|
|
94
|
+
1. Emit the analysis receipt; the runtime applies the configured human gate.
|
|
108
95
|
2. Summarize brief and task count for the user.
|
|
109
96
|
3. **Stop** and ask the user to review artifacts. Tell them to run `/task-continue <slug>` after approval or reply with corrections.
|
|
110
97
|
|
|
@@ -113,3 +100,10 @@ Do not invoke the developer or any implementation subagent.
|
|
|
113
100
|
## Design guidance (optional)
|
|
114
101
|
|
|
115
102
|
- Optional: Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit — only when decomposing refactor/architecture tasks (not default).
|
|
103
|
+
|
|
104
|
+
## Artifact contract
|
|
105
|
+
|
|
106
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume `pipeline.json`, the manifest routing entry, user-approved decisions, and any authoritative architecture/approval entries.
|
|
107
|
+
- **Owned outputs:** `brief.md` and `decomposition.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `analysis`) and preserve all foreign entries.
|
|
108
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
109
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
@@ -55,6 +55,27 @@ Set optional top-level `"profile": "full" | "standard" | "light"` in `pipeline.j
|
|
|
55
55
|
|
|
56
56
|
Fixtures: `.claude/team/fixtures/` (feature-full, feature-light, bugfix-standard).
|
|
57
57
|
|
|
58
|
+
## Routing decision rubric
|
|
59
|
+
|
|
60
|
+
Keep top-level `profile` and emit this top-level object in every new `pipeline.json`:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
"routingDecision": {
|
|
64
|
+
"complexity": "low | moderate | high",
|
|
65
|
+
"riskFlags": [],
|
|
66
|
+
"routingReasons": ["Concrete request signal and its routing consequence."],
|
|
67
|
+
"estimatedWorkPackages": 1,
|
|
68
|
+
"openDecisionCount": 0
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
- `low`: one bounded layer/file set, explicit AC, reversible, no risk flags/open decisions → `light` when verification policy permits.
|
|
73
|
+
- `moderate`: adjacent concerns or a regression/refactor with known boundaries → usually `standard`.
|
|
74
|
+
- `high`: cross-layer/public API, security, migration/destructive or concurrency/state risk, broad e2e surface, unclear AC, or multiple work packages → usually `full`.
|
|
75
|
+
- Use concrete flags: `public-contract`, `cross-layer`, `security-sensitive`, `migration`, `destructive`, `concurrency-state`, `external-dependency`, `unclear-acceptance-criteria`, `broad-test-surface`, `behavior-regression`.
|
|
76
|
+
- `routingReasons` must be non-empty and explain profile, gates, specialists, skips, or checkpoints; never write “standard by default.”
|
|
77
|
+
- `estimatedWorkPackages` is an integer ≥1; `openDecisionCount` is an integer ≥0. Do not lower complexity because implementation is familiar.
|
|
78
|
+
|
|
58
79
|
## Adjust steps (when context is clear)
|
|
59
80
|
|
|
60
81
|
- Skip **task-analyst** if AC/scope fully specified → document in `skipped`.
|
|
@@ -95,7 +116,7 @@ Claude Code mapping when orchestrator invokes Agent tool: `cheap` → `haiku` (o
|
|
|
95
116
|
|
|
96
117
|
## Output
|
|
97
118
|
|
|
98
|
-
Write `.claude/team/tasks/<slug>/pipeline.json` and
|
|
119
|
+
Write `.claude/team/tasks/<slug>/pipeline.json` and initialize the routing entry in `artifact-manifest.json`; set `.claude/team/active-task.json`. The orchestration runtime creates and owns `status.json`.
|
|
99
120
|
|
|
100
121
|
## Handoff to orchestrator
|
|
101
122
|
|
|
@@ -107,6 +128,13 @@ Write `.claude/team/tasks/<slug>/pipeline.json` and initial `status.json` (write
|
|
|
107
128
|
|
|
108
129
|
Do not invoke implementation agents yourself.
|
|
109
130
|
|
|
110
|
-
##
|
|
131
|
+
## Runtime initialization
|
|
132
|
+
|
|
133
|
+
Return the routing receipt to the orchestrator. The orchestration runtime/hook exclusively initializes and updates `status.json`, `metrics.json`, attempt identities, and gate lifecycle; the router does not write those shared runtime files.
|
|
134
|
+
|
|
135
|
+
## Artifact contract
|
|
111
136
|
|
|
112
|
-
|
|
137
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume the user request and any existing authoritative task/decision entries.
|
|
138
|
+
- **Owned outputs:** `pipeline.json` and the routing manifest entry; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `routing`) and preserve all foreign entries.
|
|
139
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
140
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
@@ -42,19 +42,12 @@ Conventional commit / release note snippet.
|
|
|
42
42
|
- Do not duplicate entire decomposition — summarize outcomes and how to use/extend.
|
|
43
43
|
- May create or update files under `docs/**` when the task explicitly requests it; otherwise keep primary output in team artifacts.
|
|
44
44
|
|
|
45
|
-
##
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"slug": "<slug>",
|
|
52
|
-
"currentAgent": "tech-writer",
|
|
53
|
-
"phase": "executing",
|
|
54
|
-
"state": "completed",
|
|
55
|
-
"updatedAt": "<ISO8601>"
|
|
56
|
-
}
|
|
57
|
-
```
|
|
45
|
+
## Artifact contract
|
|
46
|
+
|
|
47
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition and available architecture/migration/review artifacts.
|
|
48
|
+
- **Owned outputs:** `documentation.md` (and any explicitly requested docs paths); upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `documentation`) and preserve all foreign entries.
|
|
49
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
50
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
58
51
|
|
|
59
52
|
Suggest `/technical-retro <slug>` when this is the final pipeline step.
|
|
60
53
|
|
|
@@ -25,16 +25,12 @@ You generate unit tests from project test plans.
|
|
|
25
25
|
|
|
26
26
|
Run affected unit tests from `app/` when feasible. Report files changed, commands run, failures, and gaps.
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"state": "completed",
|
|
35
|
-
"updatedAt": "<ISO8601>"
|
|
36
|
-
}
|
|
37
|
-
```
|
|
28
|
+
## Artifact contract
|
|
29
|
+
|
|
30
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for `unit-test-plan.md`, brief/decomposition when present, and target modules.
|
|
31
|
+
- **Owned outputs:** generated/updated `*.spec.ts` / `*.spec.tsx` paths; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `unit-test-generator`) and preserve all foreign entries.
|
|
32
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
33
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
38
34
|
|
|
39
35
|
## Design guidance
|
|
40
36
|
|
|
@@ -26,16 +26,12 @@ Use **`unit-testing` skill**, **`debug-investigation` skill**, and **`rules/test
|
|
|
26
26
|
|
|
27
27
|
Report root cause, files changed, validation result, and remaining risk.
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"state": "completed",
|
|
36
|
-
"updatedAt": "<ISO8601>"
|
|
37
|
-
}
|
|
38
|
-
```
|
|
29
|
+
## Artifact contract
|
|
30
|
+
|
|
31
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for failing test evidence, `unit-test-plan.md` when present, and recent diff.
|
|
32
|
+
- **Owned outputs:** healed `*.spec.ts` / `*.spec.tsx` paths (and minimal production fixes only when evidenced); upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `unit-test-healer`) and preserve all foreign entries.
|
|
33
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
34
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
39
35
|
|
|
40
36
|
## Design guidance
|
|
41
37
|
|
|
@@ -46,18 +46,12 @@ Fixtures, mocks, test-store patterns to reuse.
|
|
|
46
46
|
|
|
47
47
|
Test titles in the plan must follow Russian capitalization rules from `rules/testing/tests-unit.md`.
|
|
48
48
|
|
|
49
|
-
##
|
|
49
|
+
## Artifact contract
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"slug": "<slug>",
|
|
56
|
-
"currentAgent": "unit-test-planner",
|
|
57
|
-
"state": "completed",
|
|
58
|
-
"updatedAt": "<ISO8601>"
|
|
59
|
-
}
|
|
60
|
-
```
|
|
51
|
+
- **Authoritative inputs:** read `.claude/team/tasks/<slug>/artifact-manifest.json` first; consume handoff `artifactInputIds` when supplied, otherwise consume the manifest entries for brief/decomposition and target modules under `app/src/**`.
|
|
52
|
+
- **Owned outputs:** `unit-test-plan.md`; upsert only the manifest entry assigned by handoff (`artifactOutputId`; fallback `unit-test-planner`) and preserve all foreign entries.
|
|
53
|
+
- **Terminal receipt:** cover applicable AC/task IDs, list authoritative evidence paths, and emit `completed` or `blocked`. Bind it to the supplied `attemptId` when present.
|
|
54
|
+
- **Shared state:** never create or mutate `status.json` or `metrics.json`; the orchestration runtime/hook owns lifecycle, gates, retries, attempts, and timestamps.
|
|
61
55
|
|
|
62
56
|
Do not write `*.spec.ts` files — that is `unit-test-generator`'s job.
|
|
63
57
|
|
|
@@ -25,14 +25,16 @@ description: Route a natural-language task through the agent-team pipeline: task
|
|
|
25
25
|
|
|
26
26
|
## Алгоритм
|
|
27
27
|
|
|
28
|
-
1. **Slug** — kebab-case из описания (≤48 символов). Создай `.claude/team/tasks/<slug>/` через запись файла (Write / Edit) — **не** полагайся на Shell `mkdir` как единственный способ создать каталог.
|
|
28
|
+
1. **Slug** — kebab-case из описания (≤48 символов). Создай `.claude/team/tasks/<slug>/` через запись файла (Write / Edit); runtime/hook владеет `status.json` — **не** полагайся на Shell `mkdir` как единственный способ создать каталог.
|
|
29
29
|
2. **Router** — вызови subagent **task-router** с описанием задачи и путём к slug.
|
|
30
30
|
3. **План** — покажи пользователю таблицу из `pipeline.json`: intent, steps, skipped, humanGates.
|
|
31
31
|
4. **Intent retro** — если `intent === "retro"`, выполни `/technical-retro` и **остановись**.
|
|
32
|
-
5. **Старт** —
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
|
|
32
|
+
5. **Старт** — после router:
|
|
33
|
+
- подтверди `pipeline.json` и `active-task.json`;
|
|
34
|
+
- **не** пиши lifecycle-поля `status.json` / `metrics.json` сам — их владеет orchestration runtime/hook (см. **agent-artifact-contracts**). Если `status.json` отсутствует, допустим только минимальный bootstrap (`slug`, `intent`, `pipelineIndex: 0`, `currentAgent: steps[0]`, `state: in_progress`) — **не** увеличивай `pipelineIndex` вручную;
|
|
35
|
+
- вызови subagent для `pipeline.steps[0].agent` (slug, пути к артефактам, scope).
|
|
36
|
+
6. **После каждого агента** — дождись hook handoff / reconciliation terminal receipt → `status.state`; не запускай следующий шаг, пока `status.json` не отражает handoff (или пока нет `followup_message` от hook).
|
|
37
|
+
7. **Human gate** — если после текущего шага есть gate в `humanGates` (`after:<agent>`), после завершения агента **остановись** и попроси `/task-continue <slug>` (или `/feature-continue <slug>`).
|
|
36
38
|
|
|
37
39
|
## Не делать
|
|
38
40
|
|
|
@@ -51,4 +53,4 @@ description: Route a natural-language task through the agent-team pipeline: task
|
|
|
51
53
|
|
|
52
54
|
## Metrics
|
|
53
55
|
|
|
54
|
-
|
|
56
|
+
Runtime/hook owns `metrics.json` and `status.json` attempt ledgers. Before the first invocation ensure `task_started` and one `activeAttempts[attemptId]` + `attempt_started` exist (router/runtime bootstrap — parent must not invent parallel indices). On `/task-continue`, run the installed chain hook `end_human_gate` action (or wrapper) so `human_gate_ended` lands before the next attempt. Do not calculate durations in agents.
|