@punks/cli 4.0.3 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BASELINE_CHANGELOG.md +25 -1
- package/dist/CHANGELOG.md +41 -0
- package/dist/baseline/scaffold-baseline/baseline.json +563 -5
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/authoring.d.mts +23 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/authoring.mjs +84 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/authoring.test.ts +79 -0
- package/dist/baseline/scaffold-baseline/data/scripts/harness-projection/lint-feedback.test.ts +60 -28
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents-validator.test.ts +59 -0
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.d.mts +1 -0
- package/dist/baseline/scaffold-baseline/data/scripts/sync-subagents.mjs +192 -16
- package/dist/baseline/scaffold-baseline/data/shared-agents.md +55 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md +12 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/generic/handoff/SKILL.md +18 -5
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/SKILL.md +10 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/plan-schema.md +28 -8
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-plan/references/planner-task-graph.md +7 -3
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-verification-skill/SKILL.md +66 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-verification-skill/references/upstream.md +20 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/SKILL.md +16 -41
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +14 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +10 -6
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/lifecycle.md +47 -7
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +102 -134
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +77 -67
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/parallel.md +19 -39
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/implement-spec/references/runtime-product-validation.md +27 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/swarm-planner/SKILL.md +27 -2
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/update-verification-skill/SKILL.md +81 -0
- package/dist/baseline/scaffold-baseline/skills/agnostic/planning/verify-behavior/SKILL.md +105 -65
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/SKILL.md +17 -4
- package/dist/baseline/scaffold-baseline/skills/agnostic/quality/autoreview/scripts/autoreview +102 -5
- package/dist/baseline/scaffold-baseline/skills/agnostic/requirements/brainstorm/SKILL.md +11 -5
- package/dist/baseline/scaffold-baseline/skills/agnostic/subagents/swarm-planner/SKILL.md +27 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/SKILL.md +12 -14
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/backlog.md +4 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/closeout.md +12 -4
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/debug.md +11 -5
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/docs-ingest.md +4 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/handback.md +6 -2
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/implement.md +12 -7
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/plan.md +7 -1
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/review.md +61 -22
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/router.md +45 -91
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/phases/spec.md +4 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/artifact-state.md +21 -9
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/context-continuity.md +109 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/failure-continuity.md +27 -0
- package/dist/baseline/scaffold-baseline/skills/phases/delivery-phase/references/phase-handoff.md +32 -20
- package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/SKILL.md +4 -0
- package/dist/baseline/scaffold-baseline/skills/phases/docs-ingest-phase/references/wiki-ingest.md +4 -0
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/prepare-review.md +41 -8
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/retain-report.md +13 -4
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/router.md +1 -1
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/phases/run-review.md +24 -18
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/durable-report.md +40 -6
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/review-packet.md +72 -0
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/runtime-handoff.md +3 -0
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/references/state-graph.md +51 -42
- package/dist/baseline/scaffold-baseline/skills/phases/review-phase/scripts/review-contract.mjs +239 -4
- package/dist/baseline/scaffold-baseline.json +5 -5
- package/dist/baseline/scaffold-baseline.tgz +0 -0
- package/dist/data/scripts/harness-projection/authoring.d.mts +23 -0
- package/dist/data/scripts/harness-projection/authoring.mjs +84 -0
- package/dist/data/scripts/sync-subagents.d.mts +1 -0
- package/dist/data/scripts/sync-subagents.mjs +158 -15
- package/dist/data/shared-agents.md +2 -60
- package/dist/index.js +1417 -1407
- package/dist/skills/agnostic/cli/hi-cli/references/post-command-flow.md +12 -0
- package/dist/skills/agnostic/generic/handoff/SKILL.md +18 -5
- package/dist/skills/agnostic/planning/create-plan/SKILL.md +10 -2
- package/dist/skills/agnostic/planning/create-plan/references/plan-schema.md +28 -8
- package/dist/skills/agnostic/planning/create-plan/references/planner-task-graph.md +7 -3
- package/dist/skills/agnostic/planning/create-verification-skill/SKILL.md +66 -0
- package/dist/skills/agnostic/planning/create-verification-skill/references/upstream.md +20 -0
- package/dist/skills/agnostic/planning/implement-spec/SKILL.md +16 -41
- package/dist/skills/agnostic/planning/implement-spec/assets/IMPLEMENTATION-NOTES-TEMPLATE.md +14 -0
- package/dist/skills/agnostic/planning/implement-spec/references/architecture-conformance.md +10 -6
- package/dist/skills/agnostic/planning/implement-spec/references/lifecycle.md +47 -7
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-orchestration.md +102 -134
- package/dist/skills/agnostic/planning/implement-spec/references/parallel-worker-brief.md +77 -67
- package/dist/skills/agnostic/planning/implement-spec/references/parallel.md +19 -39
- package/dist/skills/agnostic/planning/implement-spec/references/runtime-product-validation.md +27 -0
- package/dist/skills/agnostic/planning/swarm-planner/SKILL.md +27 -2
- package/dist/skills/agnostic/planning/update-verification-skill/SKILL.md +81 -0
- package/dist/skills/agnostic/planning/verify-behavior/SKILL.md +105 -65
- package/dist/skills/agnostic/quality/autoreview/SKILL.md +17 -4
- package/dist/skills/agnostic/quality/autoreview/scripts/autoreview +102 -5
- package/dist/skills/agnostic/requirements/brainstorm/SKILL.md +11 -5
- package/dist/skills/agnostic/subagents/swarm-planner/SKILL.md +27 -2
- package/dist/skills/phases/delivery-phase/SKILL.md +12 -14
- package/dist/skills/phases/delivery-phase/phases/backlog.md +4 -0
- package/dist/skills/phases/delivery-phase/phases/closeout.md +12 -4
- package/dist/skills/phases/delivery-phase/phases/debug.md +11 -5
- package/dist/skills/phases/delivery-phase/phases/docs-ingest.md +4 -0
- package/dist/skills/phases/delivery-phase/phases/handback.md +6 -2
- package/dist/skills/phases/delivery-phase/phases/implement.md +12 -7
- package/dist/skills/phases/delivery-phase/phases/plan.md +7 -1
- package/dist/skills/phases/delivery-phase/phases/review.md +61 -22
- package/dist/skills/phases/delivery-phase/phases/router.md +45 -91
- package/dist/skills/phases/delivery-phase/phases/spec.md +4 -0
- package/dist/skills/phases/delivery-phase/references/artifact-state.md +21 -9
- package/dist/skills/phases/delivery-phase/references/context-continuity.md +109 -0
- package/dist/skills/phases/delivery-phase/references/failure-continuity.md +27 -0
- package/dist/skills/phases/delivery-phase/references/phase-handoff.md +32 -20
- package/dist/skills/phases/docs-ingest-phase/SKILL.md +4 -0
- package/dist/skills/phases/docs-ingest-phase/references/wiki-ingest.md +4 -0
- package/dist/skills/phases/review-phase/phases/prepare-review.md +40 -8
- package/dist/skills/phases/review-phase/phases/retain-report.md +13 -4
- package/dist/skills/phases/review-phase/phases/router.md +1 -1
- package/dist/skills/phases/review-phase/phases/run-review.md +24 -18
- package/dist/skills/phases/review-phase/references/durable-report.md +40 -6
- package/dist/skills/phases/review-phase/references/review-packet.md +72 -0
- package/dist/skills/phases/review-phase/references/runtime-handoff.md +3 -0
- package/dist/skills/phases/review-phase/references/state-graph.md +21 -12
- package/dist/skills/phases/review-phase/scripts/review-contract.mjs +137 -4
- package/package.json +4 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
## Philosophy
|
|
2
|
+
|
|
3
|
+
This codebase will outlive you. Every shortcut becomes someone else's burden. Every hack compounds into technical debt that slows the team down.
|
|
4
|
+
|
|
5
|
+
You are shaping the future of the project. The patterns established will be copied, the corners cut will be cut again.
|
|
6
|
+
|
|
7
|
+
Fight entropy, leave the codebase better than when you found it.
|
|
8
|
+
|
|
9
|
+
## Writing style
|
|
10
|
+
|
|
11
|
+
- When generating tokens be extremely concise. Sacrifice grammar for the sake of concision.
|
|
12
|
+
- Be detailed about concepts, reasoning, assumptions, tradeoffs, and questions; keep wording terse.
|
|
13
|
+
- Stop using jargon and speak coherently. State it more simply and concisely, like one human talking to another.
|
|
14
|
+
|
|
15
|
+
## 1. Think Before Coding
|
|
16
|
+
|
|
17
|
+
**Don't assume. Don't hide confusion. Surface tradeoffs.**
|
|
18
|
+
|
|
19
|
+
Before implementing:
|
|
20
|
+
|
|
21
|
+
- State your assumptions explicitly. If uncertain, ask.
|
|
22
|
+
- If multiple interpretations exist, present them. Don't pick silently.
|
|
23
|
+
- If a simpler approach exists, say so. Push back when warranted.
|
|
24
|
+
- If something is unclear, stop. Name what's confusing. Ask.
|
|
25
|
+
|
|
26
|
+
## 2. Simplicity First
|
|
27
|
+
|
|
28
|
+
**Minimum code that solves the problem. Nothing speculative.**
|
|
29
|
+
|
|
30
|
+
- No features beyond what was asked.
|
|
31
|
+
- No abstractions for single-use code.
|
|
32
|
+
- No "flexibility" or "configurability" that wasn't requested.
|
|
33
|
+
- No error handling for impossible scenarios.
|
|
34
|
+
- If you write 200 lines and it could be 50, rewrite it.
|
|
35
|
+
|
|
36
|
+
Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
|
|
37
|
+
|
|
38
|
+
## 3. Surgical Changes
|
|
39
|
+
|
|
40
|
+
**Touch only what you must. Clean up only your own mess.**
|
|
41
|
+
|
|
42
|
+
When editing existing code:
|
|
43
|
+
|
|
44
|
+
- Don't "improve" adjacent code, comments, or formatting by default.
|
|
45
|
+
- Don't refactor things that aren't broken by default.
|
|
46
|
+
- Match existing style, even if you'd do it differently.
|
|
47
|
+
- If you notice unrelated dead code, mention it. Don't delete it by default.
|
|
48
|
+
- If adjacent code materially affects correctness, clarity, maintainability, or the requested change, changing it is allowed. Fight entropy, do not preserve harmful local minima.
|
|
49
|
+
|
|
50
|
+
When your changes create orphans:
|
|
51
|
+
|
|
52
|
+
- Remove imports, variables, functions, and code paths that YOUR changes made unused.
|
|
53
|
+
- Don't remove pre-existing dead code unless asked.
|
|
54
|
+
|
|
55
|
+
The test: Every changed line should trace directly to the user's request or to necessary entropy-reducing support for that request.
|
package/dist/baseline/scaffold-baseline/skills/agnostic/cli/hi-cli/references/post-command-flow.md
CHANGED
|
@@ -19,6 +19,8 @@ Existing `.devpunks/` artifacts describe project state. Read an artifact only wh
|
|
|
19
19
|
|
|
20
20
|
### Scaffold
|
|
21
21
|
|
|
22
|
+
Apply [Project Verifier preservation](#project-verifier-preservation) before reconciliation.
|
|
23
|
+
|
|
22
24
|
Read available generated artifacts in this order:
|
|
23
25
|
|
|
24
26
|
1. `.devpunks/AGENT-SYSTEM-PROMPT.md`
|
|
@@ -66,6 +68,8 @@ Do not inspect or mutate external tools. A settings failure is complete when its
|
|
|
66
68
|
|
|
67
69
|
### Update
|
|
68
70
|
|
|
71
|
+
Apply [Project Verifier preservation](#project-verifier-preservation) before reconciliation.
|
|
72
|
+
|
|
69
73
|
Read the command summary before any generated artifact. If it reports no diff, report success and stop.
|
|
70
74
|
|
|
71
75
|
For a diff, inspect only paths changed or flagged by this run. Apply every matching row:
|
|
@@ -125,6 +129,14 @@ Report `hi-cli` and legacy `dp-cli` state for global and project scopes:
|
|
|
125
129
|
|
|
126
130
|
Operator writes require Skills CLI 1.5.20 or newer. If an action partially fails, return the exact failed Skills CLI command from the result. After successful install, update, or migrate, reload or reactivate `$hi-cli`.
|
|
127
131
|
|
|
132
|
+
## Project Verifier preservation
|
|
133
|
+
|
|
134
|
+
For scaffold, update, and their generated Post-Command Handoffs, preserve every existing file below `.agents/skills/verify-behavior/references/` byte-for-byte, including the index, Surface Verification References, Feature Maps, Cross-App Journeys, and helpers. Refreshing the managed `verify-behavior/SKILL.md` does not authorize changing that project-owned tree.
|
|
135
|
+
|
|
136
|
+
Keep an absent Project Verifier absent. These command flows never invoke `create-verification-skill` or `update-verification-skill`; `implement-spec` owns those coverage-gap branches. Generated handoffs render the current-run preserve action with a pointer to this rule, rather than defining a second policy.
|
|
137
|
+
|
|
138
|
+
Before completing reconciliation, compare existing project-owned paths and bytes with the pre-command inventory, report any unexpected change as a blocker, and retain the comparison outside command cleanup.
|
|
139
|
+
|
|
128
140
|
## 3. Complete the Branch
|
|
129
141
|
|
|
130
142
|
- init: generated onboarding/skills/wiki state is reported and the next bounded action is clear
|
|
@@ -4,12 +4,25 @@ description: Compact the current conversation into a handoff document for anothe
|
|
|
4
4
|
argument-hint: "What will the next session be used for?"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
# Handoff
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Write a compact handoff in the operating system's temporary directory, outside
|
|
10
|
+
the workspace. Tailor its next action to the user's requested receiving task.
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
For delivery work, follow the authoritative
|
|
13
|
+
[Delivery Handoff contract](../../../phases/delivery-phase/references/phase-handoff.md#phase-exit-and-delivery-handoff).
|
|
14
|
+
Resolve goal, bounds, Git identity and stable Context Pointers from durable
|
|
15
|
+
artifacts; retain exact blockers and explicit unknowns. The receiving task always
|
|
16
|
+
cold-routes from current authorities. The disposable Delivery Context Packet is
|
|
17
|
+
never persisted. This contract is separate from the scaffold CLI Post-Command
|
|
18
|
+
Handoff.
|
|
12
19
|
|
|
13
|
-
|
|
20
|
+
For other work, retain the next action, relevant durable artifact paths or URLs,
|
|
21
|
+
exact blocker and unknowns. Reference existing plans, issues, commits and diffs;
|
|
22
|
+
keep their bodies in their owning artifacts. Include only trigger-relevant
|
|
23
|
+
suggested skill pointers, and redact secrets and personal data.
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
Completion: the saved document names a provable next action or exact missing
|
|
26
|
+
proof, every required pointer has a stable identity and freshness rule, and the
|
|
27
|
+
receiving agent can distinguish completed mutations from remaining work. Return
|
|
28
|
+
the absolute handoff path and a concise continuation prompt.
|
|
@@ -97,8 +97,16 @@ silently renaming them.
|
|
|
97
97
|
`runtime_target`, `runtime_evidence`, and `runtime_cleanup`.
|
|
98
98
|
Architecture-bearing tasks also carry the convergence fields required by
|
|
99
99
|
`references/architecture-convergence.md`.
|
|
100
|
-
11. Keep
|
|
101
|
-
|
|
100
|
+
11. Keep the task execution kernel inline: identity, dependencies, owned paths,
|
|
101
|
+
intended outcome and acceptance references, validation/RED/GREEN commands,
|
|
102
|
+
applicable risk gates and Architecture Checkpoint identifiers, status and
|
|
103
|
+
provider identity. Use the task schema for exact fields.
|
|
104
|
+
12. Supply detailed specification, code, architecture and skill context through
|
|
105
|
+
resolvable Context Pointers. For a bounded Derived Context Excerpt, retain
|
|
106
|
+
source identity, selector, freshness and subordinate status; source changes
|
|
107
|
+
require refresh. Use the [worker context contract](../implement-spec/references/parallel-worker-brief.md#compact-task-kernel)
|
|
108
|
+
for pointer selection and stale-context handling. Preserve authoritative
|
|
109
|
+
decisions in their source instead of copying whole documents into the plan.
|
|
102
110
|
13. For complex work, express the plan as a swarm graph of `Tn` tasks with dependency-aware validation gates, expected outcomes, assertions, or checks that let the executor self-verify before moving on.
|
|
103
111
|
14. Stop after plan creation and either eligible in-scope backlog sync or its
|
|
104
112
|
explicit skip record. Do not implement code or spawn implementation workers.
|
|
@@ -31,9 +31,10 @@ ledger starts with every planned temporary seam and final closure requires it to
|
|
|
31
31
|
|
|
32
32
|
`unresolved questions` is not a hiding place for skipped planning. Include only `$grilling`-deferred, externally blocked, or non-blocking questions, and state why each remains open.
|
|
33
33
|
|
|
34
|
-
Each wave
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
Each wave labels an earliest Execution Frontier, not a whole-wave release barrier.
|
|
35
|
+
Record every eligible task under dependency, write/read, runtime and architecture
|
|
36
|
+
constraints; actual capacity determines dispatch. Planning must expose those
|
|
37
|
+
constraints so independent work can proceed after its own parent Task Gates.
|
|
37
38
|
|
|
38
39
|
## Task contract
|
|
39
40
|
|
|
@@ -43,6 +44,9 @@ Every task must include:
|
|
|
43
44
|
- `depends_on`
|
|
44
45
|
- `location`
|
|
45
46
|
- `owned_paths`
|
|
47
|
+
- `read_dependencies`
|
|
48
|
+
- `shared_runtime_resources`
|
|
49
|
+
- `relevant_input_set`
|
|
46
50
|
- `wave_boundary`
|
|
47
51
|
- `description`
|
|
48
52
|
- `validation`
|
|
@@ -108,11 +112,24 @@ blocker edges through the `Tn` alias map. In `planning-only` mode, it names
|
|
|
108
112
|
other `Tn` identities in the same plan. Worker waves derive from the applicable
|
|
109
113
|
graph and disjoint ownership.
|
|
110
114
|
|
|
111
|
-
`owned_paths` lists the exact
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
`owned_paths` lists the exact Active Write Scope assigned to the task. Concurrent
|
|
116
|
+
workers have disjoint reserved scopes. `read_dependencies` names paths, contracts
|
|
117
|
+
and authority consumed by work or checks. `shared_runtime_resources` names shared
|
|
118
|
+
processes, ports, fixtures, provider objects or databases and compatible access.
|
|
119
|
+
`relevant_input_set` names the authoritative inputs and identity/readback method
|
|
120
|
+
needed to detect changes before/after checks, release and finalization. Record
|
|
121
|
+
explicit `none` with rationale where applicable; absence is unknown.
|
|
122
|
+
|
|
123
|
+
A declared read/write or incompatible runtime conflict delays only affected work.
|
|
124
|
+
Read/read overlap is safe. Changed relevant inputs invalidate affected gate proof
|
|
125
|
+
and require affected checks again. Task-local gates include relevant RED/GREEN,
|
|
126
|
+
typecheck, lint, parent acceptance and scope checks. Architecture Checkpoints
|
|
127
|
+
remain cumulative, gating only consumers of unproved responsibilities.
|
|
128
|
+
|
|
129
|
+
`wave_boundary` names the earliest planned frontier, for example `W1`. Actual
|
|
130
|
+
release is recomputed after each Task Gate. Capacity priority is assumption-
|
|
131
|
+
invalidating work, longest remaining chain, unlock count, then plan order.
|
|
132
|
+
Capacity one still delegates; zero blocks implementation with a truthful queue.
|
|
116
133
|
|
|
117
134
|
Multiple provider Tasks may share one parent Story. Planning preserves those
|
|
118
135
|
separate provider identities and cannot create another Task identity for them.
|
|
@@ -156,6 +173,9 @@ Use `not_applicable` for the other runtime fields when `runtime_validation: not_
|
|
|
156
173
|
- **depends_on**: [T1, T2]
|
|
157
174
|
- **location**: src/example.ts
|
|
158
175
|
- **owned_paths**: [src/example.ts, tests/example.test.ts]
|
|
176
|
+
- **read_dependencies**: [src/contracts.ts]
|
|
177
|
+
- **shared_runtime_resources**: Isolated task fixture database; exclusive fixture writes.
|
|
178
|
+
- **relevant_input_set**: Hash src/contracts.ts before/after checks; record fixture database identity.
|
|
159
179
|
- **wave_boundary**: W2
|
|
160
180
|
- **description**: Implement the task behavior.
|
|
161
181
|
- **validation**: Public-interface behavior that proves completion.
|
|
@@ -53,10 +53,13 @@ Produce exactly one named `PLAN.md` in the target spec folder.
|
|
|
53
53
|
Preserve `$swarm-planner` behavior:
|
|
54
54
|
|
|
55
55
|
- explicit task ids and `depends_on`
|
|
56
|
-
- explicit `owned_paths`
|
|
56
|
+
- explicit `owned_paths`, `read_dependencies`, `shared_runtime_resources`,
|
|
57
|
+
`relevant_input_set` and earliest `wave_boundary` per task, as defined in
|
|
58
|
+
[plan-schema.md](plan-schema.md)
|
|
57
59
|
- atomic tasks sized for one worker
|
|
58
60
|
- validations per task
|
|
59
|
-
-
|
|
61
|
+
- the complete eligible Execution Frontier, with task-local parent gates,
|
|
62
|
+
stable-input proof, exclusive scope custody and truthful capacity queues
|
|
60
63
|
- risks and mitigations
|
|
61
64
|
- explicit `assigned_skills` per task from exact scoped trigger
|
|
62
65
|
matches, with task design shaped by those skills
|
|
@@ -66,7 +69,8 @@ Preserve `$swarm-planner` behavior:
|
|
|
66
69
|
`topology_delta`, `forbidden_ownership`, `temporary_seams`, and `responsibility_acceptance_criteria`
|
|
67
70
|
- stable criterion ids mapped to at least one task and exactly one due architecture wave
|
|
68
71
|
- a continuous convergence checkpoint after every architecture wave that checks all criteria due through the
|
|
69
|
-
current wave and regression-checks previously met criteria
|
|
72
|
+
current wave and regression-checks previously met criteria; only work consuming
|
|
73
|
+
an unproved responsibility waits, while safe independent preparation continues
|
|
70
74
|
- a final `plan-reviewer` subagent review for missing deps, missing
|
|
71
75
|
`owned_paths`, missing `wave_boundary`, ordering issues, edge cases, invalid
|
|
72
76
|
parallelism, unsafe write overlap, missing RED targets, missing validation,
|
package/dist/baseline/scaffold-baseline/skills/agnostic/planning/create-verification-skill/SKILL.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-verification-skill
|
|
3
|
+
description: Create and prove the selected missing project app reference when implement-spec encounters an Uncovered Surface.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Create Verification Skill
|
|
7
|
+
|
|
8
|
+
Create project-owned executable knowledge for the original selected scenario. The
|
|
9
|
+
single verification entrypoint remains `verify-behavior`; its Reference contract
|
|
10
|
+
owns the portable structure and safety rules. Read that contract before authoring.
|
|
11
|
+
[Upstream provenance](references/upstream.md) records the adaptation and source.
|
|
12
|
+
|
|
13
|
+
## Interview the repository
|
|
14
|
+
|
|
15
|
+
1. Retain the caller's original scenario, affected acceptance criteria, app scope,
|
|
16
|
+
authority, code and runtime identities. Read scoped guidance and the existing
|
|
17
|
+
Project Verifier index. Preserve existing app references, features, journeys and
|
|
18
|
+
helpers; add only the missing surface coverage required by this scenario.
|
|
19
|
+
2. Read current code, entry points, manifests, startup scripts and existing harnesses,
|
|
20
|
+
plus routed wiki specifications, behavior pages, flows and relevant domain
|
|
21
|
+
knowledge. Answer from evidence: what the user touches; how it starts and becomes
|
|
22
|
+
ready; how an agent drives it; which observations and side effects prove it;
|
|
23
|
+
how concurrent instances, credentials and scratch state are isolated. Cite sources.
|
|
24
|
+
Ask only for an unobservable prerequisite needed to continue.
|
|
25
|
+
3. Prefer the repository's supported command and existing browser, PTY, HTTP or native
|
|
26
|
+
harness. Use stable selectors, commands or prompt strings. Missing build/runtime
|
|
27
|
+
prerequisites require bounded authorized setup or an exact blocker. Product repair
|
|
28
|
+
belongs to the invoking implementation/debugging workflow. Any diagnostic adapter
|
|
29
|
+
must be marked setup-only and removed by Cleanup; it cannot replace a public action.
|
|
30
|
+
|
|
31
|
+
## Author the missing reference
|
|
32
|
+
|
|
33
|
+
Write only below `.agents/skills/verify-behavior/references/`, on the current delivery
|
|
34
|
+
branch and PR. Add a pointer to `<app>/README.md` in the project index, without copying
|
|
35
|
+
app mechanics there. The app README co-locates complete Launch, Doctor, Drive, Evidence,
|
|
36
|
+
Cleanup and helper invocation guidance. For a short-lived CLI, Launch prepares the
|
|
37
|
+
binary once and each Drive uses a fresh isolated session; servers use one owned
|
|
38
|
+
long-lived instance. Refuse ambiguous/shared instance ownership.
|
|
39
|
+
|
|
40
|
+
Create `features/README.md` and the selected feature files. Each feature links its
|
|
41
|
+
product/domain authority and states user entry, stable driver recipe, positive result,
|
|
42
|
+
Scenario Falsifier, applicable variants, side effects, prerequisites and gotchas.
|
|
43
|
+
Use the upstream four sections: Sub-features, How to get to it (user POV), Driving it
|
|
44
|
+
with the selected harness, Gotchas. Include a Relevant Negative Condition and actual
|
|
45
|
+
downstream result when important behavior warrants it. Broader map seeding waits for
|
|
46
|
+
selected scope or an explicit audit. Helpers, if needed, are executable, app-owned,
|
|
47
|
+
and have an explicit invocation condition and exact command. Finish with no unresolved
|
|
48
|
+
placeholders; retain existing bytes outside the selected coverage.
|
|
49
|
+
|
|
50
|
+
## Prove before readiness
|
|
51
|
+
|
|
52
|
+
Run the authored instructions, not an improvised substitute: Launch → Doctor → one
|
|
53
|
+
mapped public Drive → retain action/result/side-effect evidence → Cleanup → confirm
|
|
54
|
+
that retained evidence still exists outside cleanup targets. This is the Reference
|
|
55
|
+
Smoke Proof. Observe a claimed dry-run's actual effects rather than trusting its name.
|
|
56
|
+
After failure, retain evidence and clean owned residue on that iteration; restore known owned state,
|
|
57
|
+
then renew Doctor before another Drive. Protect secrets and user-owned state.
|
|
58
|
+
|
|
59
|
+
Return `ready` only with the complete Reference Smoke Proof, written paths, source
|
|
60
|
+
citations, original scenario/criteria, authority/code/runtime/scenario identities,
|
|
61
|
+
observed positive and falsifying conditions, evidence pointers and confirmed cleanup.
|
|
62
|
+
Otherwise return `blocked` with the exact attempted action, observed failure, attempted
|
|
63
|
+
recovery and missing prerequisite; the original scenario and affected criteria stay
|
|
64
|
+
blocked. A draft reference is never ready. Return control to `implement-spec`, which
|
|
65
|
+
owns acceptance and proof reuse; a smoke action alone may not satisfy the original
|
|
66
|
+
scenario. Point future Uncovered Behavior to `update-verification-skill`.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Upstream adaptation
|
|
2
|
+
|
|
3
|
+
Source: cursor/plugins commit `93b00b89ef425a9c1bac0d0b317dfc49c930ac99`, fetched
|
|
4
|
+
2026-09-06. Read the original procedures when reviewing adaptation fidelity:
|
|
5
|
+
|
|
6
|
+
- [creator](https://github.com/cursor/plugins/blob/93b00b89ef425a9c1bac0d0b317dfc49c930ac99/pstack/skills/create-verification-skill/SKILL.md)
|
|
7
|
+
- [maintainer](https://github.com/cursor/plugins/blob/93b00b89ef425a9c1bac0d0b317dfc49c930ac99/pstack/skills/maintain-verification-skill/SKILL.md)
|
|
8
|
+
|
|
9
|
+
Retained: repository interview, existing-driver preference, actual action and side-effect
|
|
10
|
+
proof, dry-run observation, complete app operations, four-section Feature Map, source
|
|
11
|
+
reconciliation, serial live driving, Doctor/reset discipline, failed-iteration cleanup,
|
|
12
|
+
evidence survival, drift/helper reproof and product-regression triage.
|
|
13
|
+
|
|
14
|
+
Accepted Harness adaptations: model-invoked distinct coverage-gap triggers; one portable
|
|
15
|
+
entrypoint and project-owned references; selected missing coverage instead of broad
|
|
16
|
+
initial seeding or automatic full audit; updater name and four outcomes; current delivery
|
|
17
|
+
branch/PR; caller-owned acceptance and identity-bound proof reuse. Explicit full audit
|
|
18
|
+
retains the upstream multi-feature source-reader/live-coordinator procedure. Source-backed
|
|
19
|
+
retirement reconciles references while preserving expected product semantics. Build or
|
|
20
|
+
product repair returns to its owner; maintenance edits only verifier content.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: implement-spec
|
|
3
|
-
description: Implement an agent-ready spec folder through plan-derived
|
|
3
|
+
description: Implement an agent-ready spec folder through a plan-derived Execution Frontier while keeping `IMPLEMENTATION-NOTES.md`, `PLAN.md`, and spec-linked tech debt in sync. Use when an agent-ready spec already has an execution-ready `PLAN.md`.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Implement Spec
|
|
@@ -10,7 +10,7 @@ description: Implement an agent-ready spec folder through plan-derived worker wa
|
|
|
10
10
|
- **Role:** higher-order execution orchestrator
|
|
11
11
|
- **Entrypoint type:** public entrypoint
|
|
12
12
|
- **Upstream:** agent-ready spec folder with `SPEC.md` and `PLAN.md`
|
|
13
|
-
- **Delegates to:** `$tdd`, `$codebase-design`, `$simplify`, tiny `$requirements-phase` sessions for debt ambiguity, and internal worker
|
|
13
|
+
- **Delegates to:** `$tdd`, `$codebase-design`, `$simplify`, tiny `$requirements-phase` sessions for debt ambiguity, and internal scoped-worker orchestration
|
|
14
14
|
- **Downstream:** `docs-ingest-phase` when the resulting spec folder should be ingested into domain knowledge
|
|
15
15
|
- **Entry conditions:** existing agent-ready spec folder; stop and use `create-plan` if `PLAN.md` is missing
|
|
16
16
|
- **Stop conditions:** shared acceptance audit complete, final manual review checklist written, spec folder finalized, blocked work reported honestly
|
|
@@ -30,11 +30,11 @@ routed `requirements-grill` status artifact. Preserve its canonical terms;
|
|
|
30
30
|
route proposed terminology changes through `requirements-grill` instead of
|
|
31
31
|
silently renaming them.
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## Execution responsibilities
|
|
34
34
|
|
|
35
35
|
Follow [references/parallel.md](references/parallel.md) as the execution contract.
|
|
36
36
|
|
|
37
|
-
The parent owns
|
|
37
|
+
The parent owns Task Gates, Active Write Scopes and shared artifacts. Scoped workers own
|
|
38
38
|
implementation tasks.
|
|
39
39
|
|
|
40
40
|
## Task identity state
|
|
@@ -58,15 +58,15 @@ Provider mechanics remain inside `write-backlog`.
|
|
|
58
58
|
|
|
59
59
|
1. Resolve the target spec folder by checking, in order: `apps/wiki/content/docs/project/specs/<domain>/<spec>/`, legacy `apps/wiki/specs/<domain>/<spec>/`, then `docs/specs/<domain>/<spec>/`.
|
|
60
60
|
2. Read `references/lifecycle.md` and follow the shared execution contract exactly.
|
|
61
|
-
3. Read `references/parallel.md`, parse the plan graph, and
|
|
62
|
-
4. Launch scoped workers for the
|
|
61
|
+
3. Read `references/parallel.md`, parse the plan graph, and compute the complete eligible Execution Frontier. When the plan is architecture-bearing, also read and enforce `references/architecture-conformance.md`.
|
|
62
|
+
4. Launch scoped workers for the eligible tasks using
|
|
63
63
|
`references/parallel-worker-brief.md`. Forward every guidance item unchanged,
|
|
64
64
|
preserving its `implementation_skill_guidance` skill and behavior fields.
|
|
65
|
-
5.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
5. Apply each returned Task Result's parent Task Gate immediately and recompute
|
|
66
|
+
the Execution Frontier. Follow `references/parallel-orchestration.md` for
|
|
67
|
+
stable-input checks, scope transfer, capacity queues and parent reconciliation.
|
|
68
|
+
Architecture Checkpoints gate only consumers of unproved responsibilities;
|
|
69
|
+
cumulative proof and final closure remain mandatory.
|
|
70
70
|
6. Use `$codebase-design` vocabulary while reviewing each worker change: interface, seam, adapter, depth, leverage, locality, and test surface.
|
|
71
71
|
7. Resolve implementation debt as soon as it appears. Do not leave "later" work, TODOs, temporary compromises, or vague follow-up debt.
|
|
72
72
|
8. If a debt item needs a product/scope decision outside the active goal, stop and run a very small `$requirements-phase` clarification before continuing.
|
|
@@ -88,41 +88,16 @@ Provider mechanics remain inside `write-backlog`.
|
|
|
88
88
|
|
|
89
89
|
## Branch and PR invariant
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
- Keep the recorded branch checked out through implementation, validation,
|
|
96
|
-
commits, push, and closeout. Never create, checkout, or switch branches during
|
|
97
|
-
an `implement-spec` run.
|
|
98
|
-
- When the recorded branch already has an open PR, update that exact PR. Never
|
|
99
|
-
create or move the work to another PR.
|
|
100
|
-
- When the recorded branch has no open PR, finish the work on that branch, push
|
|
101
|
-
it, and create exactly one PR for it using the accepted base intent.
|
|
102
|
-
- When `.devpunks/settings.json` sets `repositoryManager` to `github`, preserve
|
|
103
|
-
an accepted open-parent dependency as a GitHub-native PR stack. If the current
|
|
104
|
-
branch already has a PR, set that PR's base to the open parent PR's head
|
|
105
|
-
branch. If it has no PR, create its single PR with the open parent PR's head
|
|
106
|
-
branch as the base. This changes PR metadata only; never checkout, create, or
|
|
107
|
-
switch branches to build the stack.
|
|
108
|
-
- Resolve the parent from the accepted plan or backlog dependency evidence, then
|
|
109
|
-
verify the current PR is open, its head is the recorded branch, and its base
|
|
110
|
-
is the intended parent branch. Use the repository's GitHub integration or
|
|
111
|
-
`gh pr view` and `gh pr edit --base` to inspect and set that PR metadata.
|
|
112
|
-
- For non-GitHub repositories, follow the configured provider's accepted base
|
|
113
|
-
intent.
|
|
114
|
-
- Treat a conflicting `Branch/Base Intent`, parent-branch instruction, or PR
|
|
115
|
-
instruction, or a missing or closed intended parent PR as a blocker. Report
|
|
116
|
-
the conflict instead of changing branches, choosing another parent, or
|
|
117
|
-
creating another PR.
|
|
118
|
-
- Early draft PRs are opt-in only when the user explicitly asks for them.
|
|
91
|
+
Read [references/lifecycle.md](references/lifecycle.md) before implementation for
|
|
92
|
+
recorded branch/base authority, existing PR identity and early draft visibility.
|
|
93
|
+
Workers write on that recorded branch under exclusive Active Write Scopes.
|
|
119
94
|
|
|
120
95
|
## Advanced features
|
|
121
96
|
|
|
122
97
|
- Shared lifecycle, notes contract, tech-debt rules, acceptance audit, finalization: see [references/lifecycle.md](references/lifecycle.md)
|
|
123
98
|
- UI before/after screenshot evidence and PR handoff links: see [references/ui-screenshot-evidence.md](references/ui-screenshot-evidence.md)
|
|
124
99
|
- Supported-runtime proof and cleanup contract: see [references/runtime-product-validation.md](references/runtime-product-validation.md)
|
|
125
|
-
-
|
|
126
|
-
- Plan parsing and
|
|
100
|
+
- Scoped execution: see [references/parallel.md](references/parallel.md)
|
|
101
|
+
- Plan parsing, Task Gates and frontier release: see [references/parallel-orchestration.md](references/parallel-orchestration.md)
|
|
127
102
|
- Worker brief contract: see [references/parallel-worker-brief.md](references/parallel-worker-brief.md)
|
|
128
103
|
- Architecture-bearing wave checkpoints and final closure: see [references/architecture-conformance.md](references/architecture-conformance.md)
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Implementation Notes
|
|
2
2
|
|
|
3
|
+
Parent-owned canonical record. Workers return Task Results; the parent applies
|
|
4
|
+
accepted results here. Follow [parent reconciliation](../references/parallel-worker-brief.md#parent-reconciliation)
|
|
5
|
+
for freshness, asynchronous updates and cumulative barriers.
|
|
6
|
+
|
|
7
|
+
## Execution and Reconciliation
|
|
8
|
+
|
|
9
|
+
Keep gate acceptance separate from summary writes, final acceptance and Code
|
|
10
|
+
Review. A pending summary can coexist with safe dependent dispatch; record the
|
|
11
|
+
retained Task Result pointer and exact stale/blocked reason when applicable.
|
|
12
|
+
|
|
13
|
+
| Task | Task Result and input identities | Parent Task Gate | Reconciliation | Summary blocker / next action | Architecture Checkpoint | Final acceptance | Code Review |
|
|
14
|
+
| ---- | -------------------------------- | ---------------- | -------------- | ----------------------------- | ----------------------- | ---------------- | ----------- |
|
|
15
|
+
| | | | | | | | |
|
|
16
|
+
|
|
3
17
|
## Summary
|
|
4
18
|
|
|
5
19
|
-
|
|
@@ -46,17 +46,20 @@ For each architecture wave:
|
|
|
46
46
|
`due_wave` into its worker brief unchanged.
|
|
47
47
|
3. Verify the tasks collectively advance the declared architecture wave and
|
|
48
48
|
have responsibility acceptance criteria that can be evidenced.
|
|
49
|
-
4. Block
|
|
50
|
-
introduce an undeclared dependency, public seam change
|
|
49
|
+
4. Block each task that consumes an unproved or failed checkpoint responsibility,
|
|
50
|
+
or would introduce an undeclared dependency, public seam change or temporary
|
|
51
|
+
seam. Record the consumed criterion/seam and missing proof. Independent safe
|
|
52
|
+
preparation remains eligible through its Task Gate.
|
|
51
53
|
|
|
52
54
|
Dispatch is ready when every architecture-bearing task has an accountable
|
|
53
55
|
owner, expected graph delta, seam contract, and checkable responsibility bound.
|
|
54
56
|
|
|
55
57
|
## Cumulative conformance checkpoint
|
|
56
58
|
|
|
57
|
-
Run a cumulative conformance checkpoint
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
Run a cumulative conformance checkpoint at every due architecture boundary.
|
|
60
|
+
Reconcile parent-owned shared summaries before running it. Frontier computation
|
|
61
|
+
continues while unrelated work runs; only consumption of an unproved cumulative
|
|
62
|
+
responsibility waits. Inspect the whole affected graph, not only the latest diff:
|
|
60
63
|
|
|
61
64
|
- compare actual responsibility placement with the Target Ownership Topology;
|
|
62
65
|
- compare static imports and semantic calls with the Declared Dependency Graph;
|
|
@@ -78,7 +81,8 @@ diff:
|
|
|
78
81
|
Record the checkpoint in `PLAN.md` and under `## Architecture Conformance
|
|
79
82
|
Evidence` in `IMPLEMENTATION-NOTES.md`. Include expected state, observed state,
|
|
80
83
|
evidence, violations, public seam delta, migration delta, and verdict. A failed
|
|
81
|
-
checkpoint blocks
|
|
84
|
+
checkpoint blocks tasks consuming its unproved responsibilities. Record those
|
|
85
|
+
consumers explicitly; independent eligible work continues. Repair the current wave or
|
|
82
86
|
route a target-contract amendment through `$create-plan`; final closure is not
|
|
83
87
|
the first cleanup pass.
|
|
84
88
|
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
`implement-spec` is the only public execution entrypoint.
|
|
6
6
|
|
|
7
|
-
Execution
|
|
8
|
-
|
|
7
|
+
Execution uses plan-derived tasks and parent-owned Task Gates. Read
|
|
8
|
+
[parallel.md](parallel.md) for Execution Frontier and Active Write Scope rules;
|
|
9
|
+
shared lifecycle rules remain here.
|
|
9
10
|
|
|
10
11
|
## 1. Require an existing agent-ready spec folder
|
|
11
12
|
|
|
@@ -110,7 +111,8 @@ Do not create the file when nothing durable must survive the run.
|
|
|
110
111
|
identity, its same `V*`, and native blocker edges. In `planning-only` mode,
|
|
111
112
|
keep `Tn` as the execution identity, provider fields `not_applicable`,
|
|
112
113
|
`relation_mode: unprojected`, and the nonempty backlog-sync skip reason.
|
|
113
|
-
-
|
|
114
|
+
- Recompute the Execution Frontier after each parent-owned Task Gate; release
|
|
115
|
+
eligible dependency-ready work with disjoint Active Write Scopes immediately.
|
|
114
116
|
- Workers own implementation changes. The parent coordinates, reviews, validates, updates shared artifacts, and finalizes.
|
|
115
117
|
- A wave may contain one worker when dependencies or owned paths leave one task unblocked.
|
|
116
118
|
- Worker routing must be available before implementation begins; otherwise repair it or report the blocker.
|
|
@@ -132,7 +134,7 @@ Do not create the file when nothing durable must survive the run.
|
|
|
132
134
|
- Never leave sloppy debt, TODO placeholders, temporary compromises, or "later" implementation notes for in-goal work.
|
|
133
135
|
- When unclear debt affects the current implementation and the answer is not already in the spec/plan/backlog, pause for a tiny `$requirements-phase` clarification instead of guessing.
|
|
134
136
|
- In `provider-task` mode, load `write-backlog`'s
|
|
135
|
-
[delivery-status.md](
|
|
137
|
+
[delivery-status.md](../../../requirements/write-backlog/references/delivery-status.md) branch
|
|
136
138
|
for lifecycle facts. When work starts, becomes blocked, gains a pull request,
|
|
137
139
|
merges, or receives staging or production evidence, immediately call
|
|
138
140
|
`write-backlog` with only the directly observed fact and require exact
|
|
@@ -145,9 +147,32 @@ Do not create the file when nothing durable must survive the run.
|
|
|
145
147
|
validation commands, or file lists. Provider mapping and mutations remain in
|
|
146
148
|
`write-backlog`.
|
|
147
149
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
After
|
|
150
|
+
### Draft pull request visibility
|
|
151
|
+
|
|
152
|
+
After the recorded branch/base gate passes, inspect the remote branch and its
|
|
153
|
+
pull requests before dispatching further implementation. Preserve the recorded
|
|
154
|
+
branch, base and stack intent. If an in-scope specification or implementation
|
|
155
|
+
commit is already pushed, reuse its matching draft pull request or create one
|
|
156
|
+
now. Otherwise continue implementation and perform this check immediately after
|
|
157
|
+
the first meaningful in-scope commit is pushed. An empty visibility commit is
|
|
158
|
+
never a qualifying change.
|
|
159
|
+
|
|
160
|
+
The parent records the pushed commit, provider PR identity/URL, head and base,
|
|
161
|
+
and exact provider readback in implementation notes. Search by recorded head
|
|
162
|
+
and base before creation; on resume or an ambiguous creation response, read back
|
|
163
|
+
that identity before retrying. A conflicting base, stack or existing non-draft
|
|
164
|
+
PR requires reconciliation against accepted intent before mutation. Completion
|
|
165
|
+
of this visibility step is one matching draft PR with observed provider state,
|
|
166
|
+
not a locally prepared URL. Route observed lifecycle facts through the existing
|
|
167
|
+
`write-backlog` contract. A provider failure records the exact visibility blocker;
|
|
168
|
+
independent eligible work can continue within its accepted scope.
|
|
169
|
+
|
|
170
|
+
## 7. Parent-owned shared upkeep
|
|
171
|
+
|
|
172
|
+
The parent reconciles worker Task Results into shared summaries asynchronously
|
|
173
|
+
after Task Gates, off the dependency-release critical path. Flush all pending
|
|
174
|
+
results before cumulative Architecture Checkpoints, final acceptance, review
|
|
175
|
+
handoff and finalization. Workers return evidence; the parent performs this upkeep:
|
|
151
176
|
|
|
152
177
|
- update `PLAN.md` status
|
|
153
178
|
- append a concise execution log in `PLAN.md`
|
|
@@ -283,3 +308,18 @@ Summarize:
|
|
|
283
308
|
- manual review checklist
|
|
284
309
|
- blocked tasks needing input
|
|
285
310
|
- whether the spec-linked tech-debt file was created or updated
|
|
311
|
+
|
|
312
|
+
## 14. Return implementation to delivery
|
|
313
|
+
|
|
314
|
+
Before returning control to `delivery-phase` for Code Review, the parent verifies
|
|
315
|
+
implementation completion, every applicable Task Gate and task check, current
|
|
316
|
+
Verification evidence, shared-summary reconciliation, all due Architecture
|
|
317
|
+
Checkpoints and final architecture closure, and final acceptance evidence.
|
|
318
|
+
Record exact unmet gates and continue reachable implementation work when any
|
|
319
|
+
proof is missing. A visible draft PR does not satisfy these gates.
|
|
320
|
+
|
|
321
|
+
Once all proof matches the implemented snapshot, return the durable evidence
|
|
322
|
+
pointers to delivery. Code Review is a subsequent gate; use
|
|
323
|
+
[the delivery review transition](../../../../phases/delivery-phase/phases/review.md)
|
|
324
|
+
for the completed-pass budget and repair routing. Reviewers consume Verification
|
|
325
|
+
proof; `implement-spec` retains ownership of verifier execution and maintenance.
|