agents-templated 2.2.18 → 2.2.20
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/package.json +1 -1
- package/templates/agents/commands/arch-check.md +58 -58
- package/templates/agents/commands/audit.md +58 -58
- package/templates/agents/commands/debug-track.md +58 -58
- package/templates/agents/commands/docs.md +58 -58
- package/templates/agents/commands/fix.md +58 -58
- package/templates/agents/commands/learn-loop.md +58 -58
- package/templates/agents/commands/perf.md +58 -58
- package/templates/agents/commands/plan.md +58 -58
- package/templates/agents/commands/pr.md +58 -58
- package/templates/agents/commands/problem-map.md +58 -58
- package/templates/agents/commands/release-ready.md +58 -58
- package/templates/agents/commands/release.md +58 -58
- package/templates/agents/commands/risk-review.md +58 -58
- package/templates/agents/commands/scope-shape.md +58 -58
- package/templates/agents/commands/task.md +58 -58
- package/templates/agents/commands/test.md +58 -58
- package/templates/agents/commands/ux-bar.md +58 -58
- package/templates/agents/rules/core.md +173 -173
- package/templates/agents/rules/database.md +305 -305
- package/templates/agents/rules/frontend.md +217 -217
- package/templates/agents/rules/security.md +278 -278
- package/templates/agents/rules/style.md +344 -344
- package/templates/agents/rules/testing.md +371 -371
- package/templates/agents/rules/workflows.md +56 -56
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
# /release-ready
|
|
2
|
-
|
|
3
|
-
## A. Intent
|
|
4
|
-
Validate pre-release readiness gates and guarantee deploy prerequisites are satisfied.
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
- Use after implementation/tests/risk review and before final release decision.
|
|
8
|
-
- Do not use to execute deployment itself.
|
|
9
|
-
|
|
10
|
-
## C. Context Assumptions
|
|
11
|
-
- Release candidate exists.
|
|
12
|
-
- All required gate outputs are available.
|
|
13
|
-
- Rollout and rollback plans are drafted.
|
|
14
|
-
|
|
15
|
-
## D. Required Inputs
|
|
16
|
-
| Input | Type | Example |
|
|
17
|
-
|---------------------|------------|----------------------------------|
|
|
18
|
-
| `candidate_version` | string | "v2.4.0-rc1" |
|
|
19
|
-
| `gate_artifacts` | string[] | ["test", "risk-review", "perf-scan"] |
|
|
20
|
-
| `release_artifact` | artifact | release checklist, migration plan |
|
|
21
|
-
|
|
22
|
-
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
-
- [ ] mandatory gates are present
|
|
24
|
-
- [ ] critical blockers are resolved
|
|
25
|
-
- [ ] rollback steps are executable
|
|
26
|
-
|
|
27
|
-
## F. Execution Flow
|
|
28
|
-
1. Collect gate evidence for candidate.
|
|
29
|
-
2. Validate checklist completion.
|
|
30
|
-
3. Verify rollout and rollback readiness.
|
|
31
|
-
4. Decision point ->
|
|
32
|
-
- condition A -> missing mandatory gate -> block readiness
|
|
33
|
-
- condition B -> all gates complete -> continue.
|
|
34
|
-
5. Assemble readiness summary and open items.
|
|
35
|
-
6. Emit release-ready report.
|
|
36
|
-
|
|
37
|
-
## G. Output Schema
|
|
38
|
-
|
|
39
|
-
```json
|
|
40
|
-
{
|
|
41
|
-
"readiness_id": "string",
|
|
42
|
-
"gate_status": ["array","of","strings"],
|
|
43
|
-
"readiness_risk": "low | medium | high",
|
|
44
|
-
"blocker": "string | null"
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## H. Output Target
|
|
49
|
-
- Default delivery: stdout
|
|
50
|
-
- Override flag: --output=<target>
|
|
51
|
-
|
|
52
|
-
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
-
- mandatory gate missing or failed
|
|
54
|
-
- rollback execution path is unverified
|
|
55
|
-
|
|
56
|
-
## J. Safety Constraints
|
|
57
|
-
- Hard block: hard block when release checklist is incomplete on critical items
|
|
58
|
-
- Warn only: warn when non-critical items are deferred
|
|
1
|
+
# /release-ready
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Validate pre-release readiness gates and guarantee deploy prerequisites are satisfied.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
- Use after implementation/tests/risk review and before final release decision.
|
|
8
|
+
- Do not use to execute deployment itself.
|
|
9
|
+
|
|
10
|
+
## C. Context Assumptions
|
|
11
|
+
- Release candidate exists.
|
|
12
|
+
- All required gate outputs are available.
|
|
13
|
+
- Rollout and rollback plans are drafted.
|
|
14
|
+
|
|
15
|
+
## D. Required Inputs
|
|
16
|
+
| Input | Type | Example |
|
|
17
|
+
|---------------------|------------|----------------------------------|
|
|
18
|
+
| `candidate_version` | string | "v2.4.0-rc1" |
|
|
19
|
+
| `gate_artifacts` | string[] | ["test", "risk-review", "perf-scan"] |
|
|
20
|
+
| `release_artifact` | artifact | release checklist, migration plan |
|
|
21
|
+
|
|
22
|
+
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
+
- [ ] mandatory gates are present
|
|
24
|
+
- [ ] critical blockers are resolved
|
|
25
|
+
- [ ] rollback steps are executable
|
|
26
|
+
|
|
27
|
+
## F. Execution Flow
|
|
28
|
+
1. Collect gate evidence for candidate.
|
|
29
|
+
2. Validate checklist completion.
|
|
30
|
+
3. Verify rollout and rollback readiness.
|
|
31
|
+
4. Decision point ->
|
|
32
|
+
- condition A -> missing mandatory gate -> block readiness
|
|
33
|
+
- condition B -> all gates complete -> continue.
|
|
34
|
+
5. Assemble readiness summary and open items.
|
|
35
|
+
6. Emit release-ready report.
|
|
36
|
+
|
|
37
|
+
## G. Output Schema
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"readiness_id": "string",
|
|
42
|
+
"gate_status": ["array","of","strings"],
|
|
43
|
+
"readiness_risk": "low | medium | high",
|
|
44
|
+
"blocker": "string | null"
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## H. Output Target
|
|
49
|
+
- Default delivery: stdout
|
|
50
|
+
- Override flag: --output=<target>
|
|
51
|
+
|
|
52
|
+
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
+
- mandatory gate missing or failed
|
|
54
|
+
- rollback execution path is unverified
|
|
55
|
+
|
|
56
|
+
## J. Safety Constraints
|
|
57
|
+
- Hard block: hard block when release checklist is incomplete on critical items
|
|
58
|
+
- Warn only: warn when non-critical items are deferred
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
# /release
|
|
2
|
-
|
|
3
|
-
## A. Intent
|
|
4
|
-
Generate deterministic release decision package with rollout and rollback readiness.
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
- Use when deciding whether to ship to production.
|
|
8
|
-
- Do not use before release-ready checks are complete.
|
|
9
|
-
|
|
10
|
-
## C. Context Assumptions
|
|
11
|
-
- Release candidate is identified.
|
|
12
|
-
- Pre-release checks are completed.
|
|
13
|
-
- Rollback strategy is defined.
|
|
14
|
-
|
|
15
|
-
## D. Required Inputs
|
|
16
|
-
| Input | Type | Example |
|
|
17
|
-
|---------------------|------------|----------------------------------|
|
|
18
|
-
| `version` | string | "v2.4.0" |
|
|
19
|
-
| `gate_results` | string[] | ["tests-pass", "risk-review-pass"] |
|
|
20
|
-
| `release_artifacts` | artifact | release notes draft, migration plan |
|
|
21
|
-
|
|
22
|
-
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
-
- [ ] version is valid and unique
|
|
24
|
-
- [ ] required gates are complete
|
|
25
|
-
- [ ] rollback plan exists
|
|
26
|
-
|
|
27
|
-
## F. Execution Flow
|
|
28
|
-
1. Collect gate outputs and release artifacts.
|
|
29
|
-
2. Validate rollout and rollback prerequisites.
|
|
30
|
-
3. Classify release risk.
|
|
31
|
-
4. Decision point ->
|
|
32
|
-
- condition A -> high unresolved risk -> block release
|
|
33
|
-
- condition B -> acceptable risk -> continue.
|
|
34
|
-
5. Build release decision and communication payload.
|
|
35
|
-
6. Emit release package.
|
|
36
|
-
|
|
37
|
-
## G. Output Schema
|
|
38
|
-
|
|
39
|
-
```json
|
|
40
|
-
{
|
|
41
|
-
"release_id": "string",
|
|
42
|
-
"gates": ["array","of","strings"],
|
|
43
|
-
"release_risk": "low | medium | high",
|
|
44
|
-
"rollback_status": "string | null"
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## H. Output Target
|
|
49
|
-
- Default delivery: stdout
|
|
50
|
-
- Override flag: --output=<target>
|
|
51
|
-
|
|
52
|
-
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
-
- required gate missing or failed
|
|
54
|
-
- rollback plan is undefined
|
|
55
|
-
|
|
56
|
-
## J. Safety Constraints
|
|
57
|
-
- Hard block: hard block on unresolved high-severity release risks
|
|
58
|
-
- Warn only: warn when rollout is phased due to uncertainty
|
|
1
|
+
# /release
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Generate deterministic release decision package with rollout and rollback readiness.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
- Use when deciding whether to ship to production.
|
|
8
|
+
- Do not use before release-ready checks are complete.
|
|
9
|
+
|
|
10
|
+
## C. Context Assumptions
|
|
11
|
+
- Release candidate is identified.
|
|
12
|
+
- Pre-release checks are completed.
|
|
13
|
+
- Rollback strategy is defined.
|
|
14
|
+
|
|
15
|
+
## D. Required Inputs
|
|
16
|
+
| Input | Type | Example |
|
|
17
|
+
|---------------------|------------|----------------------------------|
|
|
18
|
+
| `version` | string | "v2.4.0" |
|
|
19
|
+
| `gate_results` | string[] | ["tests-pass", "risk-review-pass"] |
|
|
20
|
+
| `release_artifacts` | artifact | release notes draft, migration plan |
|
|
21
|
+
|
|
22
|
+
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
+
- [ ] version is valid and unique
|
|
24
|
+
- [ ] required gates are complete
|
|
25
|
+
- [ ] rollback plan exists
|
|
26
|
+
|
|
27
|
+
## F. Execution Flow
|
|
28
|
+
1. Collect gate outputs and release artifacts.
|
|
29
|
+
2. Validate rollout and rollback prerequisites.
|
|
30
|
+
3. Classify release risk.
|
|
31
|
+
4. Decision point ->
|
|
32
|
+
- condition A -> high unresolved risk -> block release
|
|
33
|
+
- condition B -> acceptable risk -> continue.
|
|
34
|
+
5. Build release decision and communication payload.
|
|
35
|
+
6. Emit release package.
|
|
36
|
+
|
|
37
|
+
## G. Output Schema
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"release_id": "string",
|
|
42
|
+
"gates": ["array","of","strings"],
|
|
43
|
+
"release_risk": "low | medium | high",
|
|
44
|
+
"rollback_status": "string | null"
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## H. Output Target
|
|
49
|
+
- Default delivery: stdout
|
|
50
|
+
- Override flag: --output=<target>
|
|
51
|
+
|
|
52
|
+
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
+
- required gate missing or failed
|
|
54
|
+
- rollback plan is undefined
|
|
55
|
+
|
|
56
|
+
## J. Safety Constraints
|
|
57
|
+
- Hard block: hard block on unresolved high-severity release risks
|
|
58
|
+
- Warn only: warn when rollout is phased due to uncertainty
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
# /risk-review
|
|
2
|
-
|
|
3
|
-
## A. Intent
|
|
4
|
-
Perform deterministic release risk review with mitigation and rollback readiness.
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
- Use before merge or release approval on non-trivial changes.
|
|
8
|
-
- Do not use as a substitute for running tests.
|
|
9
|
-
|
|
10
|
-
## C. Context Assumptions
|
|
11
|
-
- Change set is available.
|
|
12
|
-
- Validation evidence exists.
|
|
13
|
-
- Deployment context is known.
|
|
14
|
-
|
|
15
|
-
## D. Required Inputs
|
|
16
|
-
| Input | Type | Example |
|
|
17
|
-
|---------------------|------------|----------------------------------|
|
|
18
|
-
| `change_set` | string | "payment retry + queue changes" |
|
|
19
|
-
| `validation_status` | string[] | ["unit pass", "integration pass"] |
|
|
20
|
-
| `deployment_artifact` | artifact | rollout plan, env config snapshot |
|
|
21
|
-
|
|
22
|
-
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
-
- [ ] change set is fully described
|
|
24
|
-
- [ ] validation status is current
|
|
25
|
-
- [ ] rollback path is defined
|
|
26
|
-
|
|
27
|
-
## F. Execution Flow
|
|
28
|
-
1. Inspect behavior deltas and blast radius.
|
|
29
|
-
2. Rank risks by impact and likelihood.
|
|
30
|
-
3. Validate mitigations and rollback readiness.
|
|
31
|
-
4. Decision point ->
|
|
32
|
-
- condition A -> high unresolved risk -> block recommendation
|
|
33
|
-
- condition B -> acceptable risk -> continue.
|
|
34
|
-
5. Build release risk summary and actions.
|
|
35
|
-
6. Emit risk review report.
|
|
36
|
-
|
|
37
|
-
## G. Output Schema
|
|
38
|
-
|
|
39
|
-
```json
|
|
40
|
-
{
|
|
41
|
-
"review_id": "string",
|
|
42
|
-
"risks": ["array","of","strings"],
|
|
43
|
-
"risk_level": "low | medium | high",
|
|
44
|
-
"recommendation": "string | null"
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## H. Output Target
|
|
49
|
-
- Default delivery: stdout
|
|
50
|
-
- Override flag: --output=<target>
|
|
51
|
-
|
|
52
|
-
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
-
- high-severity risk has no mitigation
|
|
54
|
-
- rollback readiness is undefined
|
|
55
|
-
|
|
56
|
-
## J. Safety Constraints
|
|
57
|
-
- Hard block: hard block on unresolved high-severity risks
|
|
58
|
-
- Warn only: warn when medium risks are accepted with owner
|
|
1
|
+
# /risk-review
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Perform deterministic release risk review with mitigation and rollback readiness.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
- Use before merge or release approval on non-trivial changes.
|
|
8
|
+
- Do not use as a substitute for running tests.
|
|
9
|
+
|
|
10
|
+
## C. Context Assumptions
|
|
11
|
+
- Change set is available.
|
|
12
|
+
- Validation evidence exists.
|
|
13
|
+
- Deployment context is known.
|
|
14
|
+
|
|
15
|
+
## D. Required Inputs
|
|
16
|
+
| Input | Type | Example |
|
|
17
|
+
|---------------------|------------|----------------------------------|
|
|
18
|
+
| `change_set` | string | "payment retry + queue changes" |
|
|
19
|
+
| `validation_status` | string[] | ["unit pass", "integration pass"] |
|
|
20
|
+
| `deployment_artifact` | artifact | rollout plan, env config snapshot |
|
|
21
|
+
|
|
22
|
+
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
+
- [ ] change set is fully described
|
|
24
|
+
- [ ] validation status is current
|
|
25
|
+
- [ ] rollback path is defined
|
|
26
|
+
|
|
27
|
+
## F. Execution Flow
|
|
28
|
+
1. Inspect behavior deltas and blast radius.
|
|
29
|
+
2. Rank risks by impact and likelihood.
|
|
30
|
+
3. Validate mitigations and rollback readiness.
|
|
31
|
+
4. Decision point ->
|
|
32
|
+
- condition A -> high unresolved risk -> block recommendation
|
|
33
|
+
- condition B -> acceptable risk -> continue.
|
|
34
|
+
5. Build release risk summary and actions.
|
|
35
|
+
6. Emit risk review report.
|
|
36
|
+
|
|
37
|
+
## G. Output Schema
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"review_id": "string",
|
|
42
|
+
"risks": ["array","of","strings"],
|
|
43
|
+
"risk_level": "low | medium | high",
|
|
44
|
+
"recommendation": "string | null"
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## H. Output Target
|
|
49
|
+
- Default delivery: stdout
|
|
50
|
+
- Override flag: --output=<target>
|
|
51
|
+
|
|
52
|
+
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
+
- high-severity risk has no mitigation
|
|
54
|
+
- rollback readiness is undefined
|
|
55
|
+
|
|
56
|
+
## J. Safety Constraints
|
|
57
|
+
- Hard block: hard block on unresolved high-severity risks
|
|
58
|
+
- Warn only: warn when medium risks are accepted with owner
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
# /scope-shape
|
|
2
|
-
|
|
3
|
-
## A. Intent
|
|
4
|
-
Constrain delivery scope to the smallest high-value reversible release.
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
- Use after problem framing and before architectural design.
|
|
8
|
-
- Do not use when requirements are already contractually frozen.
|
|
9
|
-
|
|
10
|
-
## C. Context Assumptions
|
|
11
|
-
- Problem map exists.
|
|
12
|
-
- Candidate feature list exists.
|
|
13
|
-
- Delivery constraints are known.
|
|
14
|
-
|
|
15
|
-
## D. Required Inputs
|
|
16
|
-
| Input | Type | Example |
|
|
17
|
-
|---------------------|------------|----------------------------------|
|
|
18
|
-
| `scope_goal` | string | "ship MVP in 2 weeks" |
|
|
19
|
-
| `candidate_items` | string[] | ["email login", "social login", "tutorial"] |
|
|
20
|
-
| `constraint_artifact` | artifact | timeline doc, staffing snapshot |
|
|
21
|
-
|
|
22
|
-
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
-
- [ ] scope goal is explicit
|
|
24
|
-
- [ ] candidate items are ranked
|
|
25
|
-
- [ ] out-of-scope list can be produced
|
|
26
|
-
|
|
27
|
-
## F. Execution Flow
|
|
28
|
-
1. Rank candidate items by value and effort.
|
|
29
|
-
2. Draft in-scope and out-of-scope sets.
|
|
30
|
-
3. Check scope against constraints.
|
|
31
|
-
4. Decision point ->
|
|
32
|
-
- condition A -> scope exceeds constraints -> trim to MVP
|
|
33
|
-
- condition B -> feasible scope -> continue.
|
|
34
|
-
5. Build scope rationale and tradeoffs.
|
|
35
|
-
6. Emit scope decision package.
|
|
36
|
-
|
|
37
|
-
## G. Output Schema
|
|
38
|
-
|
|
39
|
-
```json
|
|
40
|
-
{
|
|
41
|
-
"scope_id": "string",
|
|
42
|
-
"scope_in": ["array","of","strings"],
|
|
43
|
-
"confidence": "low | medium | high",
|
|
44
|
-
"scope_out": "string | null"
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## H. Output Target
|
|
49
|
-
- Default delivery: stdout
|
|
50
|
-
- Override flag: --output=<target>
|
|
51
|
-
|
|
52
|
-
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
-
- scope cannot satisfy constraints
|
|
54
|
-
- no explicit out-of-scope definition is produced
|
|
55
|
-
|
|
56
|
-
## J. Safety Constraints
|
|
57
|
-
- Hard block: hard block on hidden scope creep
|
|
58
|
-
- Warn only: warn when deferred items carry significant risk
|
|
1
|
+
# /scope-shape
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Constrain delivery scope to the smallest high-value reversible release.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
- Use after problem framing and before architectural design.
|
|
8
|
+
- Do not use when requirements are already contractually frozen.
|
|
9
|
+
|
|
10
|
+
## C. Context Assumptions
|
|
11
|
+
- Problem map exists.
|
|
12
|
+
- Candidate feature list exists.
|
|
13
|
+
- Delivery constraints are known.
|
|
14
|
+
|
|
15
|
+
## D. Required Inputs
|
|
16
|
+
| Input | Type | Example |
|
|
17
|
+
|---------------------|------------|----------------------------------|
|
|
18
|
+
| `scope_goal` | string | "ship MVP in 2 weeks" |
|
|
19
|
+
| `candidate_items` | string[] | ["email login", "social login", "tutorial"] |
|
|
20
|
+
| `constraint_artifact` | artifact | timeline doc, staffing snapshot |
|
|
21
|
+
|
|
22
|
+
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
+
- [ ] scope goal is explicit
|
|
24
|
+
- [ ] candidate items are ranked
|
|
25
|
+
- [ ] out-of-scope list can be produced
|
|
26
|
+
|
|
27
|
+
## F. Execution Flow
|
|
28
|
+
1. Rank candidate items by value and effort.
|
|
29
|
+
2. Draft in-scope and out-of-scope sets.
|
|
30
|
+
3. Check scope against constraints.
|
|
31
|
+
4. Decision point ->
|
|
32
|
+
- condition A -> scope exceeds constraints -> trim to MVP
|
|
33
|
+
- condition B -> feasible scope -> continue.
|
|
34
|
+
5. Build scope rationale and tradeoffs.
|
|
35
|
+
6. Emit scope decision package.
|
|
36
|
+
|
|
37
|
+
## G. Output Schema
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"scope_id": "string",
|
|
42
|
+
"scope_in": ["array","of","strings"],
|
|
43
|
+
"confidence": "low | medium | high",
|
|
44
|
+
"scope_out": "string | null"
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## H. Output Target
|
|
49
|
+
- Default delivery: stdout
|
|
50
|
+
- Override flag: --output=<target>
|
|
51
|
+
|
|
52
|
+
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
+
- scope cannot satisfy constraints
|
|
54
|
+
- no explicit out-of-scope definition is produced
|
|
55
|
+
|
|
56
|
+
## J. Safety Constraints
|
|
57
|
+
- Hard block: hard block on hidden scope creep
|
|
58
|
+
- Warn only: warn when deferred items carry significant risk
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
# /task
|
|
2
|
-
|
|
3
|
-
## A. Intent
|
|
4
|
-
Convert approved plans into deterministic, execution-ready task batches.
|
|
5
|
-
|
|
6
|
-
## B. When to Use
|
|
7
|
-
- Use when a plan exists and work must be distributed to implementers.
|
|
8
|
-
- Do not use before planning is complete.
|
|
9
|
-
|
|
10
|
-
## C. Context Assumptions
|
|
11
|
-
- An approved plan exists.
|
|
12
|
-
- Owners and execution context are known.
|
|
13
|
-
- Dependencies can be sequenced.
|
|
14
|
-
|
|
15
|
-
## D. Required Inputs
|
|
16
|
-
| Input | Type | Example |
|
|
17
|
-
|---------------------|------------|----------------------------------|
|
|
18
|
-
| `plan_id` | string | "plan-2026-04-03" |
|
|
19
|
-
| `task_scope` | string[] | ["api", "ui", "tests"] |
|
|
20
|
-
| `source_artifacts` | artifact | plan file path or issue board URL |
|
|
21
|
-
|
|
22
|
-
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
-
- [ ] plan exists and is approved
|
|
24
|
-
- [ ] task scope maps to explicit plan items
|
|
25
|
-
- [ ] dependency order is resolvable
|
|
26
|
-
|
|
27
|
-
## F. Execution Flow
|
|
28
|
-
1. Read plan outputs and dependency graph.
|
|
29
|
-
2. Split work into atomic tasks.
|
|
30
|
-
3. Assign execution order and ownership metadata.
|
|
31
|
-
4. Decision point ->
|
|
32
|
-
- condition A -> blocking dependency found -> move item to blocked queue
|
|
33
|
-
- condition B -> no blockers -> keep in active queue.
|
|
34
|
-
5. Build task package with acceptance checks.
|
|
35
|
-
6. Emit task list and execution order.
|
|
36
|
-
|
|
37
|
-
## G. Output Schema
|
|
38
|
-
|
|
39
|
-
```json
|
|
40
|
-
{
|
|
41
|
-
"task_batch_id": "string",
|
|
42
|
-
"tasks": ["array","of","strings"],
|
|
43
|
-
"priority": "low | medium | high",
|
|
44
|
-
"blocker": "string | null"
|
|
45
|
-
}
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## H. Output Target
|
|
49
|
-
- Default delivery: stdout
|
|
50
|
-
- Override flag: --output=<target>
|
|
51
|
-
|
|
52
|
-
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
-
- plan_id is missing or invalid
|
|
54
|
-
- critical dependency cannot be resolved
|
|
55
|
-
|
|
56
|
-
## J. Safety Constraints
|
|
57
|
-
- Hard block: no task emission without traceability to a plan item
|
|
58
|
-
- Warn only: warn when owner assignment is temporary
|
|
1
|
+
# /task
|
|
2
|
+
|
|
3
|
+
## A. Intent
|
|
4
|
+
Convert approved plans into deterministic, execution-ready task batches.
|
|
5
|
+
|
|
6
|
+
## B. When to Use
|
|
7
|
+
- Use when a plan exists and work must be distributed to implementers.
|
|
8
|
+
- Do not use before planning is complete.
|
|
9
|
+
|
|
10
|
+
## C. Context Assumptions
|
|
11
|
+
- An approved plan exists.
|
|
12
|
+
- Owners and execution context are known.
|
|
13
|
+
- Dependencies can be sequenced.
|
|
14
|
+
|
|
15
|
+
## D. Required Inputs
|
|
16
|
+
| Input | Type | Example |
|
|
17
|
+
|---------------------|------------|----------------------------------|
|
|
18
|
+
| `plan_id` | string | "plan-2026-04-03" |
|
|
19
|
+
| `task_scope` | string[] | ["api", "ui", "tests"] |
|
|
20
|
+
| `source_artifacts` | artifact | plan file path or issue board URL |
|
|
21
|
+
|
|
22
|
+
## E. Pre-Execution Guards <- fail fast, check ALL before running
|
|
23
|
+
- [ ] plan exists and is approved
|
|
24
|
+
- [ ] task scope maps to explicit plan items
|
|
25
|
+
- [ ] dependency order is resolvable
|
|
26
|
+
|
|
27
|
+
## F. Execution Flow
|
|
28
|
+
1. Read plan outputs and dependency graph.
|
|
29
|
+
2. Split work into atomic tasks.
|
|
30
|
+
3. Assign execution order and ownership metadata.
|
|
31
|
+
4. Decision point ->
|
|
32
|
+
- condition A -> blocking dependency found -> move item to blocked queue
|
|
33
|
+
- condition B -> no blockers -> keep in active queue.
|
|
34
|
+
5. Build task package with acceptance checks.
|
|
35
|
+
6. Emit task list and execution order.
|
|
36
|
+
|
|
37
|
+
## G. Output Schema
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"task_batch_id": "string",
|
|
42
|
+
"tasks": ["array","of","strings"],
|
|
43
|
+
"priority": "low | medium | high",
|
|
44
|
+
"blocker": "string | null"
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## H. Output Target
|
|
49
|
+
- Default delivery: stdout
|
|
50
|
+
- Override flag: --output=<target>
|
|
51
|
+
|
|
52
|
+
## I. Stop Conditions <- abort with error message, never emit partial output
|
|
53
|
+
- plan_id is missing or invalid
|
|
54
|
+
- critical dependency cannot be resolved
|
|
55
|
+
|
|
56
|
+
## J. Safety Constraints
|
|
57
|
+
- Hard block: no task emission without traceability to a plan item
|
|
58
|
+
- Warn only: warn when owner assignment is temporary
|