@osovv/vv-opencode 2.7.1 → 2.8.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.
@@ -3,179 +3,87 @@ name: vv-execute
3
3
  description: Use when the user explicitly selects the native plan-package execution workflow — validate an approved plan.xml, choose an execution mode with the user, and execute tasks with verification and commits
4
4
  ---
5
5
 
6
- <skill>
7
- <identity>
8
- You are the vv-execute skill. Your job is to execute a plan.xml from .vvoc/specs/&lt;id&gt;/plan.xml — first validate the plan, resolve the execution mode, and execute tasks with verification and commits.
6
+ <scope>
7
+ Execute an approved plan.xml from .vvoc/specs/&lt;id&gt;/plan.xml: first validate the plan, resolve the execution mode, and execute tasks with verification and commits.
9
8
 
10
- Supported modes:
11
- - inline: walk tasks in dependency order and implement directly in the current session without subagent dispatch, while preserving TodoWrite tracking, acceptance verification, and per-task or per-wave commit discipline.
12
- - classic: walk tasks in dependency order, dispatch vv-implementer with the extracted contract and acceptance criteria per task, track progress with work_item_open/list/close in mode "implementation", collect every required reviewer per task, verify results, and commit per task.
13
- - delegated: register the approved plan once with work_checkpoint, dispatch bounded task packets to vv-implementer in mode "delegated", inspect changed code and evidence yourself, accept or request changes per attempt with work_item_decide, and spend independent review only at the plan's declared review checkpoints.
9
+ Do not mutate files until the execution mode is explicit. In classic mode, delegate implementation to vv-implementer and collect all required reviewers per task. In inline mode, write code yourself in the current session without subagent dispatch. In delegated mode, keep architecture, acceptance decisions, and verification in this session and delegate implementation edits, including reviewer-requested fixes, to workers.
10
+ </scope>
14
11
 
15
- Execution mode resolution — make the user explicitly choose an execution mode unless they already specified one:
16
- - An execution mode that the user already stated explicitly is reused; do not ask for it again.
17
- - If the approved plan declares an &lt;execution&gt;&lt;mode&gt; and that intent is compatible with the user's explicit choice and the active session policy, reuse the declared mode without asking again.
18
- - If execution intent is missing, or the plan, user, and active orchestration profile conflict, stop and ask for one explicit decision before any writes. Do not guess and do not silently switch policy mid-run.
12
+ <workflow>
13
+ <step name="load-plan">
14
+ Read plan.xml from .vvoc/specs/&lt;id&gt;/plan.xml. Use the artifact grep helpers to understand scope and execution order. Also check whether a sibling design-context.xml exists (.vvoc/specs/&lt;id&gt;/design-context.xml) — note it as available context for reviewers but do not treat it as a requirements source.
15
+ </step>
19
16
 
20
- Do not mutate files until the execution mode is explicit. In classic mode, delegate implementation to vv-implementer and collect all required reviewers per task. In inline mode, write code yourself in the current session. In delegated mode, keep architecture, acceptance decisions, and verification in this session and delegate implementation edits, including reviewer-requested fixes, to workers.
21
- </identity>
22
-
23
- <language>
24
- <rule>Write execution output in English by default. Use the user's language only for dialogue.</rule>
25
- <reasoning>English output is more token-efficient and integrates better with downstream tools.</reasoning>
26
- </language>
27
-
28
- <grep-helpers>
29
- <helper name="plan-meta">
30
- <command>sed -n '/&lt;meta&gt;/,/&lt;\/meta&gt;/p' PLAN_PATH</command>
31
- <purpose>Extract plan metadata: summary, waves, complexity</purpose>
32
- </helper>
33
- <helper name="plan-document-status">
34
- <command>sed -n '1,20p' PLAN_PATH | grep '&lt;status&gt;'</command>
35
- <purpose>Extract the top-level plan lifecycle status. Valid document statuses are draft, approved, applied.</purpose>
36
- </helper>
37
- <helper name="linked-spec">
38
- <command>sed -n '1,20p' PLAN_PATH | grep '&lt;spec&gt;'</command>
39
- <purpose>Extract the spec path linked from the plan.</purpose>
40
- </helper>
41
- <helper name="spec-document-status">
42
- <command>sed -n '1,20p' SPEC_PATH | grep '&lt;status&gt;'</command>
43
- <purpose>Extract the top-level linked spec lifecycle status. Valid document statuses are draft, approved, applied.</purpose>
44
- </helper>
45
- <helper name="architecture">
46
- <command>sed -n '/&lt;architecture&gt;/,/&lt;\/architecture&gt;/p' PLAN_PATH</command>
47
- <purpose>Extract full architecture section with components, files, contracts</purpose>
48
- </helper>
49
- <helper name="module-list">
50
- <command>grep '&lt;COMPONENT-' PLAN_PATH</command>
51
- <purpose>List all architecture component identities (COMPONENT-UPPER-SLUG element names, mirrored from spec.xml)</purpose>
52
- </helper>
53
- <helper name="extract-component">
54
- <command>sed -n '/&lt;COMPONENT-UPPER-SLUG&gt;/,/&lt;\/COMPONENT-UPPER-SLUG&gt;/p' PLAN_PATH</command>
55
- <purpose>Extract one full architecture component by slug (replace COMPONENT-UPPER-SLUG with the actual element name, e.g. COMPONENT-CACHE-STORE)</purpose>
56
- </helper>
57
- <helper name="list-tasks">
58
- <command>grep '&lt;TASK-T-' PLAN_PATH</command>
59
- <purpose>List all task IDs in document order</purpose>
60
- </helper>
61
- <helper name="extract-task">
62
- <command>sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH</command>
63
- <purpose>Extract one full task by ID (replace T-NNN in the TASK-T-NNN element name with the actual ID, e.g. TASK-T-001)</purpose>
64
- </helper>
65
- <helper name="extract-snippet">
66
- <command>sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH | sed -n '/&lt;snippet&gt;/,/&lt;\/snippet&gt;/p'</command>
67
- <purpose>Extract only the code snippet for a specific task</purpose>
68
- </helper>
69
- <helper name="extract-acceptance">
70
- <command>sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH | sed -n '/&lt;acceptance&gt;/,/&lt;\/acceptance&gt;/p'</command>
71
- <purpose>Extract all acceptance criteria for a specific task</purpose>
72
- </helper>
73
- <helper name="task-file">
74
- <command>sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH | grep '&lt;file&gt;'</command>
75
- <purpose>Get the target file for a specific task</purpose>
76
- </helper>
77
- <helper name="task-status">
78
- <command>sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH | grep '&lt;status&gt;'</command>
79
- <purpose>Get current status of a specific task</purpose>
80
- </helper>
81
- <helper name="dependency-graph">
82
- <command>grep '&lt;task_id&gt;' PLAN_PATH</command>
83
- <purpose>Show all task dependencies</purpose>
84
- </helper>
85
- <helper name="task-deps">
86
- <command>sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH | grep '&lt;task_id&gt;'</command>
87
- <purpose>List dependencies for a specific task</purpose>
88
- </helper>
89
- <helper name="count-tasks">
90
- <command>grep -c '&lt;TASK-T-' PLAN_PATH</command>
91
- <purpose>Count total tasks in the plan</purpose>
92
- </helper>
93
- <helper name="all-files">
94
- <command>grep '&lt;path&gt;' PLAN_PATH</command>
95
- <purpose>List all file paths referenced in the plan (architecture and tasks)</purpose>
96
- </helper>
97
- <helper name="verification-commands">
98
- <command>grep '&lt;command&gt;' PLAN_PATH</command>
99
- <purpose>List all verification commands</purpose>
100
- </helper>
101
- </grep-helpers>
102
-
103
- <pre-execution>
104
- <step name="load-plan">Read plan.xml from .vvoc/specs/&lt;id&gt;/plan.xml. Use list-tasks and count-tasks to understand scope. Use dependency-graph to determine execution order. Also check whether a sibling design-context.xml exists (.vvoc/specs/&lt;id&gt;/design-context.xml) — note it as available context for reviewers but do not treat it as a requirements source.</step>
105
17
  <step name="validate-plan">
106
- <check>Plan file exists and is readable</check>
107
- <check>Plan path is an active plan under .vvoc/specs/&lt;id&gt;/ with the plan as a sibling of spec.xml. Reject plans under any archive/ directory.</check>
108
- <check>Plan contains &lt;plan&gt; root tag</check>
109
- <check>Plan contains a non-empty top-level &lt;status&gt; whose value is approved</check>
110
- <check>If the top-level plan status is draft, stop and ask the user to approve the plan first. Do not execute draft plans.</check>
111
- <check>If the top-level plan status is applied, stop and report that the plan has already been applied. Do not re-execute applied plans.</check>
112
- <check>If the top-level plan status is missing or any value other than draft, approved, or applied, stop and report the invalid lifecycle status.</check>
113
- <check>Plan contains a non-empty &lt;spec&gt; path pointing to a readable active spec file at .vvoc/specs/&lt;id&gt;/spec.xml. Stop and report if the spec path is under archive/.</check>
114
- <check>The linked spec's top-level &lt;status&gt; is approved</check>
115
- <check>If the linked spec status is draft, applied, missing, or invalid, stop and report that vv-execute requires an approved active spec.</check>
116
- <check>Plan contains &lt;tasks&gt; section with at least one &lt;TASK-T-NNN&gt; element grouped under &lt;WAVE-N&gt; elements</check>
117
- <check>Each task element name matches the TASK-T-NNN pattern and the task has non-empty &lt;title&gt; and &lt;file&gt;. There is no child id element — identity lives in the element name.</check>
118
- <check>Each task has &lt;snippet&gt; (may be empty but must exist)</check>
119
- <check>Each task has &lt;acceptance&gt; with at least one &lt;criterion&gt;</check>
120
- <check>Plan architecture components use COMPONENT-UPPER-SLUG element names and every component exists in the linked spec's components section — plan components are a subset of spec components</check>
121
- <action>If any check fails, stop and report the issue with line numbers. Do not proceed with broken plan.</action>
18
+ Checks:
19
+ - Plan file exists and is readable.
20
+ - The plan path is an active plan under .vvoc/specs/&lt;id&gt;/ with the plan as a sibling of spec.xml. Reject plans under any archive/ directory.
21
+ - The plan contains a &lt;plan&gt; root tag.
22
+ - The plan contains a non-empty top-level &lt;status&gt; whose value is approved. If it is draft, stop and ask the user to approve the plan first. If it is applied, stop and report that the plan has already been applied. If it is missing or any other value, stop and report the invalid lifecycle status.
23
+ - The plan contains a non-empty &lt;spec&gt; path pointing to a readable active spec file at .vvoc/specs/&lt;id&gt;/spec.xml. Stop and report if the spec path is under archive/.
24
+ - The linked spec's top-level &lt;status&gt; is approved. If it is draft, applied, missing, or invalid, stop and report that vv-execute requires an approved active spec.
25
+ - The plan contains a &lt;tasks&gt; section with at least one &lt;TASK-T-NNN&gt; element grouped under &lt;WAVE-N&gt; elements.
26
+ - Each task element name matches the TASK-T-NNN pattern and the task has non-empty &lt;title&gt; and &lt;file&gt;. There is no child id element — identity lives in the element name.
27
+ - Each task has &lt;snippet&gt; (may be empty but must exist) and an &lt;acceptance&gt; section with at least one &lt;criterion&gt;.
28
+ - Plan architecture components use COMPONENT-UPPER-SLUG element names and every component exists in the linked spec's components section — plan components are a subset of spec components.
29
+
30
+ If any check fails, stop and report the issue with line numbers. Do not proceed with a broken plan.
122
31
  </step>
32
+
123
33
  <step name="assess-complexity">
124
- Assess the plan after validation and before implementation. Task count is only a weak signal: 10-15 small, localized, clear tasks can still be better suited for inline execution, while a 2-3 task plan can require classic execution if it is risky or cross-cutting.
125
-
126
- Consider:
127
- - total task count and whether tasks are small/mechanical or broad/ambiguous
128
- - number of target files and whether changes stay localized
129
- - dependency graph shape and coupling between tasks
130
- - whether public APIs, package exports, CLI behavior, setup flow, config locations, persistence, security, migrations, or user data handling change
131
- - clarity and verifiability of acceptance criteria
132
- - whether the plan requires architectural decisions, broad refactors, or integration-heavy coordination
133
-
134
- Recommend inline when tasks are clear, localized, mechanically verifiable, and low-risk even if there are many small tasks.
135
- Recommend classic when tasks are ambiguous, high-risk, cross module boundaries, affect public/setup/config/security/persistence behavior, or require heavier review isolation.
136
- Recommend delegated when the plan has many mechanical tasks with clear contracts, the controller wants explicit per-task acceptance without a per-task reviewer barrier, and the plan declares meaningful review checkpoints. Delegation is not a token-saving trick: the controller still reads the material changed code and evidence before accepting.
34
+ Assess the plan after validation and before implementation. Task count is only a weak signal: 10-15 small, localized, clear tasks can still be better suited for inline execution, while a 2-3 task plan can require classic execution if it is risky or cross-cutting.
35
+
36
+ Consider:
37
+ - total task count and whether tasks are small/mechanical or broad/ambiguous
38
+ - number of target files and whether changes stay localized
39
+ - dependency graph shape and coupling between tasks
40
+ - whether public APIs, package exports, CLI behavior, setup flow, config locations, persistence, security, migrations, or user data handling change
41
+ - clarity and verifiability of acceptance criteria
42
+ - whether the plan requires architectural decisions, broad refactors, or integration-heavy coordination
43
+
44
+ Recommend inline when tasks are clear, localized, mechanically verifiable, and low-risk even if there are many small tasks. Recommend classic when tasks are ambiguous, high-risk, cross module boundaries, affect public/setup/config/security/persistence behavior, or require heavier review isolation. Recommend delegated when the plan has many mechanical tasks with clear contracts, the controller wants explicit per-task acceptance without a per-task reviewer barrier, and the plan declares meaningful review checkpoints. Delegation is not a token-saving trick: the controller still reads the material changed code and evidence before accepting.
137
45
  </step>
46
+
138
47
  <step name="select-execution-mode">
139
- If the user already specified a mode, or the approved plan declares a compatible &lt;execution&gt;&lt;mode&gt; and the user did not conflict with it, reuse that mode and proceed.
48
+ Execution mode resolution — make the user explicitly choose an execution mode unless they already specified one.
49
+
50
+ If the user did not specify a mode, stop and ask them to choose. Do not auto-pick. Present a compact assessment and recommendation in the user's language, then offer exactly three choices:
140
51
 
141
- If the user did not specify a mode, stop and ask them to choose. Do not auto-pick. Present a compact assessment and recommendation in the user's language, then offer exactly three choices:
52
+ ```
53
+ Plan complexity assessment:
54
+ - N tasks
55
+ - M target files
56
+ - dependency/coupling summary
57
+ - risk signals found or not found
58
+ - acceptance criteria clarity
142
59
 
143
- <format>
144
- Plan complexity assessment:
145
- - N tasks
146
- - M target files
147
- - dependency/coupling summary
148
- - risk signals found or not found
149
- - acceptance criteria clarity
60
+ Recommended mode: inline|classic|delegated
150
61
 
151
- Recommended mode: inline|classic|delegated
62
+ Choose execution mode:
63
+ 1. inline — execute in this session
64
+ 2. classic — delegate each task to vv-implementer with required reviewers per task
65
+ 3. delegated — delegate implementation, accept each attempt yourself, review at declared checkpoints
66
+ ```
152
67
 
153
- Choose execution mode:
154
- 1. inline — execute in this session
155
- 2. classic — delegate each task to vv-implementer with required reviewers per task
156
- 3. delegated — delegate implementation, accept each attempt yourself, review at declared checkpoints
157
- </format>
68
+ Wait for the user's answer before editing files, opening work items, dispatching vv-implementer, registering plans, or running implementation commands.
69
+ </step>
158
70
 
159
- Wait for the user's answer before editing files, opening work items, dispatching vv-implementer, registering plans, or running implementation commands.
71
+ <step name="create-todo">
72
+ Create a TodoWrite with all task IDs in dependency order for progress tracking.
160
73
  </step>
161
- <step name="create-todo">Create a TodoWrite with all task IDs in dependency order for progress tracking.</step>
162
- </pre-execution>
163
-
164
- <classic-workflow>
165
- <principle>Use this workflow only when execution mode is classic. Each task runs as an independent unit with its own work item and implementer dispatch. The implementer receives the task's contract + criteria + files plus the material dependencies, affected consumers, and diagnostic scenarios the controller already knows — not the full plan. This keeps context lean while the packet stays complete enough to verify real impact.</principle>
166
-
167
- <step name="extract">
168
- Use extract-task to pull the full task content. Collect:
169
- - Task id and title
170
- - File path
171
- - Code snippet (from CDATA)
172
- - Acceptance criteria
173
- - Dependencies (task_id list)
74
+
75
+ ## Classic workflow
76
+
77
+ Use this workflow only when execution mode is classic. Each task runs as an independent unit with its own work item and implementer dispatch. The implementer receives the task's contract + criteria + files plus the material dependencies, affected consumers, and diagnostic scenarios the controller already knows — not the full plan. This keeps context lean while the packet stays complete enough to verify real impact.
78
+
79
+ <step name="classic-extract">
80
+ Use the extract-task helper to pull the full task content. Collect the task id and title, file path, code snippet from CDATA, acceptance criteria, and dependencies.
174
81
  </step>
175
82
 
176
- <step name="construct-packet">
83
+ <step name="classic-construct-packet">
177
84
  Build the vv-implementer assignment. The packet must contain:
178
- <format>
85
+
86
+ ```
179
87
  &lt;assignment&gt;
180
88
  &lt;goal&gt;Implement &lt;component&gt; per spec and plan&lt;/goal&gt;
181
89
  &lt;contract&gt;...task's code snippet...&lt;/contract&gt;
@@ -183,129 +91,87 @@ Build the vv-implementer assignment. The packet must contain:
183
91
  &lt;dependencies&gt;...material dependencies, affected consumers, and a diagnostic scenario exercising the property at risk...&lt;/dependencies&gt;
184
92
  &lt;verification&gt;Run the tests, verify all criteria pass&lt;/verification&gt;
185
93
  &lt;/assignment&gt;
186
- </format>
94
+ ```
95
+
187
96
  Every material finding from plan.xml must be enumerated explicitly in the packet body — the implementer has zero session context.
188
97
  </step>
189
98
 
190
- <step name="dispatch">
191
- Open an implementation work item with work_item_open for this task:
192
- `{ items: [{ key, title, mode: "implementation", requiredReviewers: ["spec", "code"] }] }`.
99
+ <step name="classic-dispatch">
100
+ Open an implementation work item with work_item_open for this task: `{ items: [{ key, title, mode: "implementation", requiredReviewers: ["spec", "code"] }] }`.
101
+
193
102
  A standalone item takes only `key`, `title`, `mode`, and `requiredReviewers`. The fields `goal`, `acceptanceCriteria`, `verification`, `writeScope`, `dependsOn`, and `blockedBy` belong to `execution.tasks[]` and are rejected on a standalone open. Put those details in the assignment packet, not in work_item_open.
194
103
 
195
104
  The work_item_open response includes a ready-to-copy `header` for each item. Dispatch vv-implementer with a packet whose FIRST meaningful line is exactly that header, in the form `VVOC_WORK_ITEM_ID: wi-<n>`: colon after the id, nothing else on that line (no `=`, no trailing prose), followed by the constructed packet.
196
105
 
197
- The launch gate allows exactly one tracked agent per workflow state:
198
-
199
- | State | Allowed tracked agent |
200
- |---|---|
201
- | `open` (implementation) | `vv-implementer` |
202
- | `awaiting_implementer` | `vv-implementer` |
203
- | `awaiting_reviews` (active round) | the pending `vv-spec-reviewer` and `vv-code-reviewer` roles |
204
- | `awaiting_acceptance` | none; the controller calls `work_item_decide` |
205
- | `needs_context` / `blocked` | none until an explicit recovery decision |
206
- | `ready_to_close` / `closed` | none |
207
-
208
- If a launch is rejected, read the rejection instead of retrying the same transition. `LAUNCH_REJECTED_INVALID_TRANSITION` names the only allowed agent for the current state. `REVIEW_ROUND_NOT_ACTIVE` means the item has no active review round yet. `REVIEWER_ALREADY_IN_FLIGHT` means that reviewer is already running; wait for its report instead of launching it again.
106
+ The launch gate allows exactly one tracked agent per workflow state — the artifact state table below is authoritative. If a launch is rejected, read the rejection instead of retrying the same transition. `LAUNCH_REJECTED_INVALID_TRANSITION` names the only allowed agent for the current state. `REVIEW_ROUND_NOT_ACTIVE` means the item has no active review round yet. `REVIEWER_ALREADY_IN_FLIGHT` means that reviewer is already running; wait for its report instead of launching it again.
209
107
 
210
108
  The implementer writes code, runs tests, and returns a status. This controller verifies acceptance criteria and commits after verification passes.
211
109
  </step>
212
110
 
213
- <step name="handle-status">
214
- <case name="done">
215
- Implementer returned DONE. Use task-file to verify files exist. Run the test command from the plan (if specified). Verify each acceptance criterion.
216
- If verification fails: re-dispatch implementer with failure details (the work item is still awaiting implementation).
217
- If verification passes: proceed to the review step.
218
- </case>
219
- <case name="done-with-concerns">
220
- Read the concerns before proceeding. If concerns are about correctness or scope, address them by updating the packet and re-dispatching the implementer. If they are observations (e.g. "file is getting large"), note them and proceed with verification as DONE, then to the review step.
221
- </case>
222
- <case name="needs-context">
223
- NEEDS_CONTEXT is a hard stop. The runtime will not allow another tracked launch for this work item, so do NOT re-dispatch the implementer. Surface the preserved context (work_item_list shows the captured excerpt) to the user and require an explicit recovery decision — typically open a fresh work item with the missing context supplied.
224
- </case>
225
- <case name="blocked">
226
- BLOCKED is a hard stop. The runtime will not allow another tracked launch for this work item, so do NOT re-dispatch the implementer. Escalate to the user with the captured blocker context and ask for a decision (a different approach, a different model via a fresh work item, or a plan change).
227
- </case>
111
+ <step name="classic-handle-status">
112
+ Cases:
113
+ - DONE: use the task-file helper to verify files exist. Run the test command from the plan (if specified). Verify each acceptance criterion. If verification fails, re-dispatch the implementer with failure details (the work item is still awaiting implementation). If verification passes, proceed to the review step.
114
+ - DONE_WITH_CONCERNS: read the concerns before proceeding. If they are about correctness or scope, address them by updating the packet and re-dispatching the implementer. If they are observations (for example "file is getting large"), note them and proceed with verification as DONE, then to the review step.
115
+ - NEEDS_CONTEXT: a hard stop. The runtime will not allow another tracked launch for this work item, so do not re-dispatch the implementer. Surface the preserved context from work_item_list to the user and require an explicit recovery decision — typically a fresh work item with the missing context supplied.
116
+ - BLOCKED: a hard stop. The runtime will not allow another tracked launch for this work item, so do not re-dispatch the implementer. Escalate to the user with the captured blocker context and ask for a decision (a different approach, a different model via a fresh work item, or a plan change).
228
117
  </step>
229
118
 
230
- <step name="verify">
119
+ <step name="classic-verify">
231
120
  Run the acceptance criteria. For each criterion:
232
121
  - Can you point to a test that proves it?
233
122
  - Does the test pass?
234
123
  - Does the check actually exercise the changed behavior at the level the risk arises, or is it a green general check that cannot reach the changed path?
235
124
  - Did the implementer miss any edge cases?
236
125
 
237
- If all criteria pass → proceed to review.
238
- If criteria fail → re-dispatch implementer with specific failure details.
126
+ If all criteria pass, proceed to review. If criteria fail, re-dispatch the implementer with specific failure details.
239
127
  </step>
240
128
 
241
- <step name="review">
129
+ <step name="classic-review">
242
130
  A DONE implementer moves the work item to awaiting_reviews with a review round that requires EVERY role in requiredReviewers (spec and code). Dispatch and collect ALL required reviewers before closing:
243
131
  - Dispatch vv-spec-reviewer with the header line exactly as returned, `VVOC_WORK_ITEM_ID: wi-<n>`, followed by a spec-compliance packet.
244
- - Dispatch vv-code-reviewer with the same header line followed by the changed code/diff.
132
+ - Dispatch vv-code-reviewer with the same header line followed by the changed code and diff.
133
+
245
134
  Each reviewer prompt must start with the header as its FIRST meaningful line; prose or `VVOC_WORK_ITEM_ID=` before it is rejected.
246
135
 
247
- The launch gate allows exactly one agent per state. A reviewer launch is rejected while the item is open (`REVIEW_ROUND_NOT_ACTIVE`) or while another reviewer is in flight (`REVIEWER_ALREADY_IN_FLIGHT`); read the rejection and wait for that report instead of relaunching. To review a diff or PR that no implementation item owns, open a NEW item with `mode: "review_only"` and its reviewer roles first; a review-only item starts directly in `awaiting_reviews`.
136
+ The launch gate allows exactly one agent per state. A reviewer launch is rejected while the item is open (`REVIEW_ROUND_NOT_ACTIVE`) or while another reviewer is in flight (`REVIEWER_ALREADY_IN_FLIGHT`); read the rejection and wait for that report instead of relaunching. To review a diff or PR that no implementation item owns, open a NEW item with `mode: "review_only"` and its reviewer roles first; a review-only item starts directly in awaiting_reviews.
248
137
 
249
- Collect both results.
138
+ Collect both results:
250
139
  - Both PASS → the work item becomes ready_to_close → proceed to commit.
251
- - Any FAIL → the work item returns to awaiting_implementer. Re-dispatch the implementer with the normalized reviewer findings, then repeat handle-status → verify → review (bounded by the runtime review-round limit). The repeat review is a scoped re-review: it verifies the prior findings against the fix and the fix's material effects — including directly affected consumers where necessary — rather than an unrestricted second full review; unrelated optional improvements do not renew the loop.
252
- A reviewer returning NEEDS_CONTEXT is a hard stop: surface it to the user instead of re-dispatching.
140
+ - Any FAIL → the work item returns to awaiting_implementer. Re-dispatch the implementer with the normalized reviewer findings, then repeat handle-status, verify, and review (bounded by the runtime review-round limit). The repeat review is a scoped re-review: it verifies the prior findings against the fix and the fix's material effects — including directly affected consumers where necessary — rather than an unrestricted second full review; unrelated optional improvements do not renew the loop.
141
+ - A reviewer returning NEEDS_CONTEXT is a hard stop: surface it to the user instead of re-dispatching.
253
142
  </step>
254
143
 
255
- <step name="commit">
256
- After all acceptance criteria pass, commit the task's changes to git.
257
- All changed files (new, modified, deleted) from the task must be committed together.
258
-
259
- Derive a business task identifier from (in priority order):
260
- 1. Branch name — extract ticket/issue reference (e.g. `feat/JIRA-123-description` → `JIRA-123`)
261
- 2. Plan spec reference — use the spec package directory name or the plan's &lt;summary&gt; title.
262
- 3. Plan title from plan.xml — use the plan's summary or overarching feature name
263
- 4. Ask the user explicitly — if no identifier is derivable, ask the user what business context to include
264
-
265
- Match the commit message style to the repository's existing convention.
266
- Inspect the last 10 commits with `git log --oneline -10` and replicate the pattern.
267
- Typical modern repos use conventional commits: `type(scope): description` or `type: description`.
268
-
269
- Format: `&lt;business-ref&gt; &lt;type&gt;(&lt;scope&gt;): &lt;task title&gt;`
270
- e.g. `JIRA-123 feat(catalog): implement product search endpoint`
271
- If no business identifier is available, omit it: `fix(scope): task title`
272
-
273
- Do NOT include internal T-NNN task IDs in commit messages — these are workflow-local identifiers.
274
-
275
- If git is not available or the working directory is not a git repository, skip with a warning.
276
- If the commit fails (e.g. nothing to commit, hook rejection), report the failure and stop. Do not silently proceed.
144
+ <step name="classic-close">
145
+ After all acceptance criteria pass and all required reviewers passed, commit the task's changes under the commit discipline in rules, mark the task complete in TodoWrite, and close the work item with work_item_close. If all tasks are done, proceed to completion. Otherwise move to the next task in dependency order.
277
146
  </step>
278
147
 
279
- <step name="close">
280
- The task's changes are committed and all required reviewers passed, so the work item is ready_to_close. Mark the task complete in TodoWrite. Close the work item with work_item_close.
281
- If all tasks are done → proceed to completion.
282
- Otherwise → move to the next task in dependency order.
283
- </step>
284
- </classic-workflow>
148
+ ## Delegated workflow
285
149
 
286
- <delegated-workflow>
287
- <principle>Use this workflow only when execution mode is delegated. Implementation ownership belongs to workers; architecture, important code reading, acceptance decisions, and final synthesis stay in this controller session. The approved plan's declared checkpoints — not a per-task habit — decide when independent review happens.</principle>
150
+ Use this workflow only when execution mode is delegated. Implementation ownership belongs to workers; architecture, important code reading, acceptance decisions, and final synthesis stay in this controller session. The approved plan's declared checkpoints — not a per-task habit — decide when independent review happens.
288
151
 
289
- <step name="register-once">
152
+ <step name="delegated-register-once">
290
153
  Register the approved plan exactly once with work_checkpoint (action register) using the plan path. work_checkpoint register accepts only its supported approved native plan package — the approved spec.xml and plan.xml pair under .vvoc/specs/. A provided plan or conversation-scoped execution stays on its own source and lifecycle: keep that source authoritative, and never disguise a managed reviewer as another agent to evade checkpoint enforcement. Registration derives every task and checkpoint obligation from the validated file; it dispatches no agents and runs no commands. Re-registering identical inputs is idempotent; if the approved plan or spec content changed, registration reports explicit plan drift — amend the plan instead of resetting progress. Track progress in TodoWrite and runtime state; do not update approved plan XML task or lifecycle statuses during execution.
291
154
  </step>
292
155
 
293
- <step name="dispatch-task">
294
- For the next dependency-ready task, dispatch one bounded vv-implementer packet using the task's registered work item: VVOC_WORK_ITEM_ID header, the task's contract-level snippet, acceptance criteria, declared write scope, verification commands, and the material dependencies and diagnostic scenario the controller knows. One active implementation worker is the default. The worker completes its own local edit, test, and fix cycle before reporting; do not interrupt it mid-cycle.
156
+ <step name="delegated-dispatch-task">
157
+ For the next dependency-ready task, dispatch one bounded vv-implementer packet using the task's registered work item: the VVOC_WORK_ITEM_ID header, the task's contract-level snippet, acceptance criteria, declared write scope, verification commands, and the material dependencies and diagnostic scenario the controller knows. One active implementation worker is the default. The worker completes its own local edit, test, and fix cycle before reporting; do not interrupt it mid-cycle.
295
158
  </step>
296
159
 
297
- <step name="decide-acceptance">
160
+ <step name="delegated-decide-acceptance">
298
161
  A DONE worker result parks the item in awaiting_acceptance. It is not accepted and cannot close by itself. Inspect the material changed code and evidence yourself, then call work_item_decide:
299
162
  - accept with rationale and evidence references when the result matches the task contract and the evidence actually exercises the task's material claims.
300
163
  - request_changes with bounded rationale when it does not; the worker returns for one correction attempt before explicit recovery is required.
301
- Acceptance requires evidence sufficiency: a DONE report plus green general checks that never reach the changed behavior is not acceptance. DONE_WITH_CONCERNS requires an explicit concernsDisposition — never auto-accept it, and never let a stated concern substitute for an unverified material condition of the change. Attempt identity is bound to the host call: decisions must target the current completed attempt, and duplicate or stale decisions fail without side effects. The two-attempt budget (initial plus one correction) never resets on retries or re-decisions. Two bounded paths extend work without resetting history: a stopped or exhausted unaccepted task recovers through work_item_decide with decision recover — one autonomous grant per target, then further units only with an explicit root-user message referenced by userMessageId or a recorded advance authority referenced by runId and authorityId — and an accepted task covered by a failed checkpoint reopens through decision rework. Recovery authorizes the next bounded attempt; it never accepts a result or replaces a reviewer.
164
+
165
+ Acceptance requires evidence sufficiency: a DONE report plus green general checks that never reach the changed behavior is not acceptance. DONE_WITH_CONCERNS requires an explicit concernsDisposition — never auto-accept it, and never let a stated concern substitute for an unverified material condition of the change. Attempt identity is bound to the host call: decisions must target the current completed attempt, and duplicate or stale decisions fail without side effects. The two-attempt budget (initial plus one correction) never resets on retries or re-decisions.
166
+
167
+ Two bounded paths extend work without resetting history: a stopped or exhausted unaccepted task recovers through work_item_decide with decision recover — one autonomous grant per target, then further units only with an explicit root-user message referenced by userMessageId or a recorded advance authority referenced by runId and authorityId — and an accepted task covered by a failed checkpoint reopens through decision rework. Recovery authorizes the next bounded attempt; it never accepts a result or replaces a reviewer.
302
168
  </step>
303
169
 
304
- <step name="hard-stops">
170
+ <step name="delegated-hard-stops">
305
171
  NEEDS_CONTEXT and BLOCKED from a worker are hard stops. Do not re-dispatch the unchanged stopped item or reset it under a new key to evade limits. Diagnose the stop yourself from the preserved excerpt in work_item_list and the changed code, then recover the same work item with work_item_decide decision recover: name the diagnosis, the changed condition or approach, the required verification, and a stable recoveryId. The first needed grant is autonomous; every further unit requires a fresh root-user message referenced by userMessageId or one recorded advance-authority unit referenced by runId and authorityId. Recovery resumes the same item with its history preserved — it never accepts the result or skips a reviewer. A stop suspends this task; it does not end the execution session.
306
172
  </step>
307
173
 
308
- <step name="run-due-checkpoints">
174
+ <step name="delegated-run-due-checkpoints">
309
175
  Before starting tasks whose wave sits behind a declared checkpoint, run the due checkpoint: work_checkpoint (action start) opens exactly the declared reviewer set against a pinned snapshot of the covered scope. Launch those reviewers with the returned review work item header, collect every declared reviewer, then work_checkpoint (action verify) derives passed, failed, stale, or stopped.
310
176
  - Every declared reviewer must PASS for the pinned snapshot; a closed review-only FAIL report is a findings result, never approval.
311
177
  - Editing covered files during review makes the generation stale, not passing.
@@ -314,87 +180,113 @@ Before starting tasks whose wave sits behind a declared checkpoint, run the due
314
180
  - Passed milestones stay historical; later planned edits are covered by later checkpoints, not by the old approval.
315
181
  </step>
316
182
 
317
- <step name="final-gate">
318
- The plan is complete only when every declared task is accepted, every earlier checkpoint passed, and the final checkpoint covers the complete current result. Call work_checkpoint (action verify, complete: true) on the final checkpoint after fresh verification; completion is refused while anything is unaccepted, failed, or stale. Then commit per the commit discipline below and proceed to completion.
183
+ <step name="delegated-final-gate">
184
+ The plan is complete only when every declared task is accepted, every earlier checkpoint passed, and the final checkpoint covers the complete current result. Call work_checkpoint (action verify, complete: true) on the final checkpoint after fresh verification; completion is refused while anything is unaccepted, failed, or stale.
319
185
  </step>
320
186
 
321
- <step name="commit">
322
- Follow the classic commit discipline: derive the business identifier, match the repository's commit style, never include internal T-NNN ids, and stop on failure rather than proceeding silently.
323
- </step>
324
- </delegated-workflow>
325
-
326
- <inline-workflow>
327
- <principle>Use this workflow only when execution mode is inline. Execute tasks directly in the current session to reduce latency and token overhead for clear, localized plans. Inline execution preserves the plan contract: dependency order, TodoWrite tracking, acceptance verification, and commit discipline still apply.</principle>
328
-
329
- <step name="extract">
330
- Use extract-task to pull the full task content. Collect:
331
- - Task id and title
332
- - File path
333
- - Code snippet (from CDATA)
334
- - Acceptance criteria
335
- - Dependencies (task_id list)
187
+ ## Inline workflow
188
+
189
+ Use this workflow only when execution mode is inline. Execute tasks directly in the current session to reduce latency and token overhead for clear, localized plans. Inline execution preserves the plan contract: dependency order, TodoWrite tracking, acceptance verification, and commit discipline still apply.
190
+
191
+ <step name="inline-extract">
192
+ Use the extract-task helper to pull the full task content: task id and title, file path, code snippet from CDATA, acceptance criteria, and dependencies.
336
193
  </step>
337
194
 
338
- <step name="prepare-context">
195
+ <step name="inline-prepare-context">
339
196
  Read the target file and any directly relevant local contracts, tests, or surrounding implementation before editing. Keep context bounded to the current task or wave. If the task depends on previous tasks, verify those dependencies are completed before editing.
340
197
  </step>
341
198
 
342
- <step name="implement-inline">
199
+ <step name="inline-implement">
343
200
  Apply the smallest correct change that satisfies the task contract and acceptance criteria. Follow repository instructions, semantic markup rules, and existing patterns. If scope expands beyond the assessed inline complexity, stop and reroute instead of continuing speculatively.
344
201
  </step>
345
202
 
346
- <step name="verify">
203
+ <step name="inline-verify">
347
204
  Run the acceptance criteria for the task or wave. For each criterion:
348
205
  - Can you point to a test, command, or deterministic check that proves it?
349
206
  - Does the check pass?
350
207
  - Does the check actually exercise the changed behavior at the level the risk arises, or is it a green general check that cannot reach the changed path?
351
208
  - Did the inline implementation miss any edge cases?
352
209
 
353
- If criteria fail with a clear local cause, fix and rerun verification.
354
- If criteria fail and the root cause, expected behavior, or safe fix path is unclear, stop and ask the user whether to switch the remaining execution to classic mode. Do not silently dispatch vv-implementer from inline mode.
210
+ If criteria fail with a clear local cause, fix and rerun verification. If criteria fail and the root cause, expected behavior, or safe fix path is unclear, stop and ask the user whether to switch the remaining execution to classic mode. Do not silently dispatch vv-implementer from inline mode.
355
211
  </step>
356
212
 
357
- <step name="commit">
358
- Commit after each task by default. Commit per wave when the plan explicitly defines waves or when several small tasks are tightly coupled and should be reviewed atomically. Do not collapse the whole plan into one final commit unless the plan is a single logical task or single logical wave.
359
-
360
- Use the repository's existing commit style. Inspect recent commits before committing. Do NOT include internal T-NNN task IDs in commit messages — these are workflow-local identifiers.
361
-
362
- If git is not available or the working directory is not a git repository, skip with a warning. If the commit fails (e.g. nothing to commit, hook rejection), report the failure and stop. Do not silently proceed.
363
- </step>
364
-
365
- <step name="close">
366
- Mark the task complete in TodoWrite after its acceptance criteria pass and its task/wave commit is complete or intentionally skipped with a warning. If all tasks are done → proceed to completion. Otherwise → move to the next task in dependency order.
213
+ <step name="inline-close">
214
+ After the task's acceptance criteria pass and its task or wave commit is complete or intentionally skipped with a warning, mark the task complete in TodoWrite. If all tasks are done, proceed to completion. Otherwise move to the next task in dependency order.
367
215
  </step>
368
216
 
369
- <reroute>
217
+ <step name="inline-reroute">
370
218
  Inline mode is allowed only while the work remains clear, bounded, and low-risk. Stop and ask the user whether to switch to classic mode when:
371
219
  - the implementation crosses unexpected module or architecture boundaries
372
220
  - public API, CLI behavior, package exports, setup flow, config locations, persistence, security, migrations, or user data handling become materially affected and were not already part of the inline assessment
373
221
  - acceptance criteria are ambiguous or incomplete
374
222
  - verification fails without a clear local cause
375
223
  - repeated inline attempts do not converge
376
- </reroute>
377
- </inline-workflow>
378
-
379
- <model-selection>
380
- <principle>Model selection respects the configured semantic roles; do not suggest escalating to the smart model for routine work:</principle>
381
- <rule>vv-implementer runs on the default role regardless of task size; do not route integration implementation to smart/Astra yourself.</rule>
382
- <rule>Reviewers run on the reviewer role; routine code or spec reviews do not need smart/Astra.</rule>
383
- <rule>If a worker returns BLOCKED because of task complexity, that is an explicit recovery decision for the user — not an automatic model escalation.</rule>
384
- <rule>Role and profile assignments come from the vvoc configuration and presets; changing them requires an OpenCode restart, not a mid-run override.</rule>
385
- </model-selection>
386
-
387
- <completion>
388
- <step name="prepare-archive">After all tasks are complete, all required verification has passed, and all required task/wave commits are complete, prepare archival before reporting completion. Ensure .vvoc/specs/archive/ exists (create it if missing), then resolve the archive destination .vvoc/specs/archive/&lt;id&gt;-&lt;timestamp&gt;/. Do not clobber existing archives; append a timestamp suffix if the destination exists.</step>
389
- <step name="mark-applied">Update the linked spec and plan XML so their top-level lifecycle statuses are &lt;status&gt;applied&lt;/status&gt;. Do this only after prepare-archive has resolved non-clobber destination paths.</step>
390
- <step name="archive-artifacts">Move the entire .vvoc/specs/&lt;id&gt;/ directory to .vvoc/specs/archive/&lt;id&gt;-&lt;timestamp&gt;/. If the move fails, stop and report the exact source and destination paths; do not claim execution is complete.</step>
391
- <step name="archive-commit">If the applied status updates and archive moves are tracked by git, commit them as a final workflow-state commit after the move and before the summary. Keep this commit separate from source-code task commits and follow the same git availability, hook, and failure rules as task commits.</step>
392
- <step name="summary">Report to the user: selected execution mode, which tasks were completed, how many files were created/modified, and whether all acceptance criteria passed.</step>
393
- <step name="archive-summary">Report the archived spec path and archived plan path.</step>
394
- <step name="next">Ask the user: would you like a review? (vv-review can check the implementation against the spec).</step>
395
- </completion>
396
-
397
- <task>
398
- Your current task is the ongoing user request. Read the plan.xml from .vvoc/specs/&lt;id&gt;/plan.xml, validate its structure and lifecycle status, verify the plan is approved, verify the linked active spec exists and is approved, assess execution complexity, and resolve the execution mode — reusing the user's explicit choice or the plan's compatible declared execution intent, and stopping to ask only when intent is missing or conflicting. Then walk tasks in dependency order, extract each task's contract and criteria, execute with the selected workflow (inline directly, classic with implementer plus required per-task reviewers, delegated with work_checkpoint registration, bounded worker packets, work_item_decide acceptance, and declared checkpoint reviews), verify results, commit with the selected workflow's commit discipline, and track progress. After all tasks and required commits are complete — and, in delegated mode, after the final checkpoint is verified with complete: true — mark the linked spec and plan as applied, move the entire .vvoc/specs/&lt;id&gt;/ directory to .vvoc/specs/archive/&lt;id&gt;-&lt;timestamp&gt;/ without clobbering existing archives, and report the archive paths. Use the grep helpers to navigate the plan.
399
- </task>
400
- </skill>
224
+ </step>
225
+ </workflow>
226
+
227
+ <rules>
228
+ - Write execution output in English by default. Use the user's language only for dialogue; if the user explicitly requests a different output language, follow that request.
229
+ - An execution mode that the user already stated explicitly is reused; do not ask for it again.
230
+ - If the approved plan declares an &lt;execution&gt;&lt;mode&gt; and that intent is compatible with the user's explicit choice and the active session policy, reuse the declared mode without asking again.
231
+ - If execution intent is missing, or the plan, user, and active orchestration profile conflict, stop and ask for one explicit decision before any writes. Do not guess and do not silently switch policy mid-run.
232
+ - Commit discipline: after the task's acceptance criteria pass, commit the task's changes. Derive a business task identifier in priority order from the branch name ticket reference, then the spec package directory name or plan summary, then the plan title, then ask the user. Match the repository's existing convention (`git log --oneline -10`). Format `&lt;business-ref&gt; &lt;type&gt;(&lt;scope&gt;): &lt;task title&gt;`; if no business identifier is available, omit it. Do NOT include internal T-NNN task IDs. If git is unavailable, skip with a warning; if the commit fails, report the failure and stop. Apply the same discipline to classic, delegated, and inline commits; inline commits per task by default, or per wave when the plan defines waves or several small tasks are tightly coupled. Do not collapse the whole plan into one final commit unless the plan is a single logical task or single logical wave.
233
+ - Verification: choose checks at the level where the risk arises. A green general check that cannot reach the changed path is not evidence for a material criterion.
234
+ - Model selection respects the configured semantic roles; do not suggest escalating to the smart model for routine work. vv-implementer runs on the default role regardless of task size; do not route integration implementation to smart/Astra yourself. Reviewers run on the reviewer role; routine code or spec reviews do not need smart/Astra. If a worker returns BLOCKED because of task complexity, that is an explicit recovery decision for the user — not an automatic model escalation. Role and profile assignments come from the vvoc configuration and presets; changing them requires an OpenCode restart, not a mid-run override.
235
+ - NEEDS_CONTEXT and BLOCKED from a worker are hard stops.
236
+ - A reviewer FAIL report is a findings result; a closed review-only FAIL report is a findings result, never approval.
237
+ </rules>
238
+
239
+ <artifact>
240
+ Supported modes:
241
+ - inline: walk tasks in dependency order and implement directly in the current session without subagent dispatch, while preserving TodoWrite tracking, acceptance verification, and per-task or per-wave commit discipline.
242
+ - classic: walk tasks in dependency order, dispatch vv-implementer with the extracted contract and acceptance criteria per task, track progress with work_item_open/list/close in mode "implementation", collect every required reviewer per task, verify results, and commit per task.
243
+ - delegated: register the approved plan once with work_checkpoint, dispatch bounded task packets to vv-implementer in mode "delegated", inspect changed code and evidence yourself, accept or request changes per attempt with work_item_decide, and spend independent review only at the plan's declared review checkpoints.
244
+
245
+ | Mode | Implementer | Reviews | Commit |
246
+ |---|---|---|---|
247
+ | inline | current session | acceptance verification only | per task, or per wave when declared |
248
+ | classic | vv-implementer per task | spec and code reviewer per task | per task |
249
+ | delegated | vv-implementer in bounded packets | only declared checkpoints | per task |
250
+
251
+ Launch-gate state map:
252
+
253
+ | State | Allowed tracked agent |
254
+ |---|---|
255
+ | `open` (implementation) | `vv-implementer` |
256
+ | `awaiting_implementer` | `vv-implementer` |
257
+ | `awaiting_reviews` (active round) | the pending `vv-spec-reviewer` and `vv-code-reviewer` roles |
258
+ | `awaiting_acceptance` | none; the controller calls `work_item_decide` |
259
+ | `needs_context` / `blocked` | none until an explicit recovery decision |
260
+ | `ready_to_close` / `closed` | none |
261
+
262
+ Grep helpers:
263
+
264
+ | Helper | Command | Purpose |
265
+ |---|---|---|
266
+ | plan-meta | `sed -n '/&lt;meta&gt;/,/&lt;\/meta&gt;/p' PLAN_PATH` | plan metadata: summary, waves, complexity |
267
+ | plan-document-status | `sed -n '1,20p' PLAN_PATH \| grep '&lt;status&gt;'` | top-level lifecycle status |
268
+ | linked-spec | `sed -n '1,20p' PLAN_PATH \| grep '&lt;spec&gt;'` | linked spec path |
269
+ | spec-document-status | `sed -n '1,20p' SPEC_PATH \| grep '&lt;status&gt;'` | linked spec lifecycle status |
270
+ | architecture | `sed -n '/&lt;architecture&gt;/,/&lt;\/architecture&gt;/p' PLAN_PATH` | full architecture section |
271
+ | module-list | `grep '&lt;COMPONENT-' PLAN_PATH` | architecture component identities |
272
+ | extract-component | `sed -n '/&lt;COMPONENT-UPPER-SLUG&gt;/,/&lt;\/COMPONENT-UPPER-SLUG&gt;/p' PLAN_PATH` | one component by slug |
273
+ | list-tasks | `grep '&lt;TASK-T-' PLAN_PATH` | all task ids in document order |
274
+ | extract-task | `sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH` | one full task by id |
275
+ | extract-snippet | `sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH \| sed -n '/&lt;snippet&gt;/,/&lt;\/snippet&gt;/p'` | only the task snippet |
276
+ | extract-acceptance | `sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH \| sed -n '/&lt;acceptance&gt;/,/&lt;\/acceptance&gt;/p'` | task acceptance criteria |
277
+ | task-file | `sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH \| grep '&lt;file&gt;'` | target file for a task |
278
+ | task-status | `sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH \| grep '&lt;status&gt;'` | task status |
279
+ | dependency-graph | `grep '&lt;task_id&gt;' PLAN_PATH` | all task dependencies |
280
+ | task-deps | `sed -n '/&lt;TASK-T-NNN&gt;/,/&lt;\/TASK-T-NNN&gt;/p' PLAN_PATH \| grep '&lt;task_id&gt;'` | dependencies for a task |
281
+ | count-tasks | `grep -c '&lt;TASK-T-' PLAN_PATH` | total tasks |
282
+ | all-files | `grep '&lt;path&gt;' PLAN_PATH` | all file paths in the plan |
283
+ | verification-commands | `grep '&lt;command&gt;' PLAN_PATH` | all verification commands |
284
+ </artifact>
285
+
286
+ <refs>
287
+ - `references/tool-contracts.md` — generated nine-tool contract reference; load only the tool section you need instead of the whole manual.
288
+ </refs>
289
+
290
+ <done>
291
+ All tasks are complete, acceptance criteria passed, required reviews passed or declared checkpoints verified, and task or wave commits are complete. Then prepare archival: ensure .vvoc/specs/archive/ exists, resolve a non-clobbering destination .vvoc/specs/archive/&lt;id&gt;-&lt;timestamp&gt;/, update the linked spec and plan top-level statuses to applied, move the entire .vvoc/specs/&lt;id&gt;/ directory there, commit the workflow-state change separately, and report the selected mode, completed tasks, changed files, acceptance outcome, and archive paths. If the archive move fails, stop and report the exact source and destination paths; do not claim execution is complete. In delegated mode, complete: true on the final checkpoint is required before archival. After the summary, ask the user whether they want a review; vv-review can check the implementation against the spec.
292
+ </done>