workflow-supervisor 0.1.1 → 0.1.3

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.
@@ -1,11 +1,36 @@
1
1
  ---
2
2
  name: workflow-supervisor
3
- description: Coordinate open-ended, multi-step agent workflows when the user explicitly requests supervised or agent-loop coordination and at least one hard trigger is present, or when no explicit supervisor wording exists but two or more hard triggers are present. Hard triggers include multi-agent or worker delegation, durable resume need, high-risk independent verification, contradictory or missing sources, multi-unit scope, repair loops, approval gates, or workflow-state documentation. Do not use for simple single-turn answers, ordinary repo inspection, medium scoped edits, typo fixes, one-off tests, or narrowly scoped changes that can be completed directly.
3
+ description: Coordinate supervised multi-agent workflows. Trigger whenever the user explicitly invokes workflow-supervisor, $workflow-supervisor, supervised workflow, dossiers, work units, worker agents, handoffs, approval gates, durable resume, or workflow-state documentation. When explicitly invoked, always run the full strict supervisor workflow regardless of task size; do not downscope, skip human approval or complete intake, skip dossiers, skip work units, skip worker-agent contracts, skip worker handoffs, or skip verification because a task appears simple. When not explicitly invoked, use only for workflows with hard supervisor triggers such as multi-agent handoff, durable resume, high-risk verification, contradictory or missing sources, multi-unit scope, repair loops, approval gates, or workflow-state documentation.
4
4
  ---
5
5
 
6
6
  # Workflow Supervisor
7
7
 
8
- Use this skill as the coordinating spine for complex work. The supervisor owns decomposition, delegation quality, loop discipline, stop gates, and outcome reporting. It may do source discovery and reporting itself, but implementation, verification, repair-ticket writing, and documentation should be treated as separate roles when an automated worker path is available. Native threads or subagents are optional transport optimizations, not the workflow contract.
8
+ Use this skill as the coordinating spine for supervised multi-agent work. The supervisor owns decomposition, worker-agent handoff quality, loop discipline, stop gates, and outcome reporting. It may do source discovery and reporting itself, but implementation, verification, repair-ticket writing, and documentation must be treated as separate worker-agent responsibilities when an automated worker path is available. Native threads, subagents, or the portable delegate command are transports for those worker agents.
9
+
10
+ ## Strict Explicit Invocation Contract
11
+
12
+ When the user explicitly invokes `workflow-supervisor`, `$workflow-supervisor`, or says to use this skill, the workflow is in `strict_full_workflow` mode. Task size is irrelevant. Do not decide that a request is too small, too easy, local-only, or single-file to receive the full workflow.
13
+
14
+ Strict mode always requires:
15
+
16
+ 1. Complete intake before planning, goal creation, worker delegation, implementation, publication, or irreversible action.
17
+ 2. A human approval question before implementation unless completed intake explicitly selects `autonomous_goal`.
18
+ 3. A source corpus map, even if the source corpus is only "user prompt plus current workspace".
19
+ 4. A source-requirement coverage ledger before work-unit finalization.
20
+ 5. A SPEC review packet or `.workflow/SPEC.md` before work-unit finalization.
21
+ 6. At least one bounded work unit, even for a tiny change. Use `WU-001` when there is only one unit.
22
+ 7. A dossier for each implementation work unit before implementation begins.
23
+ 8. An acceptance matrix or acceptance draft with evidence expectations before implementation begins.
24
+ 9. A worker-agent plan with implementer, verifier, repair-author, and documenter agents.
25
+ 10. A worker lifecycle record using `planned -> handed_off -> acknowledged -> reported -> verified -> closed`.
26
+ 11. Verification labeled as `self-check`, `focused-check`, or `independent-verifier`.
27
+ 12. A final disposition question or recorded completed-intake final disposition after verification.
28
+
29
+ Worker agents are mandatory when the environment provides worker, subagent, thread, or portable delegation tools. The supervisor must hand off implementation, verification, repair-authoring when needed, and documentation to separate agents with scoped dossiers and the required report schema. Run worker agents sequentially by default unless completed intake explicitly authorizes parallelism.
30
+
31
+ If the environment cannot create, message, or delegate to worker agents, record `worker_agent_unavailable` and stop for the human decision unless completed intake explicitly selected `same_session_phased`. Do not silently collapse worker agents into same-session work.
32
+
33
+ Do not nest supervisors recursively. A worker agent that receives a supervisor-scoped dossier must perform its assigned role instead of spawning another supervisor layer unless the parent supervisor explicitly asks for a child supervisor.
9
34
 
10
35
  ## Domain Neutrality
11
36
 
@@ -13,6 +38,60 @@ This workflow must work without a repository, codebase, existing docs, or instal
13
38
 
14
39
  When no source corpus exists, make the first work unit a discovery/intake unit instead of inventing prerequisites. Do not require `AGENTS.md`, a repo, commands, or Markdown files unless the specific task provides them or needs them.
15
40
 
41
+ ## Source Requirement Coverage Gate
42
+
43
+ After the source corpus map and before final work units, extract the material requirements from the controlling sources into a coverage ledger. Include explicit user constraints, source deliverables, roadmap phases, exit criteria, named integrations, scale targets, verification requirements, and forbidden surfaces.
44
+
45
+ For every source requirement, record:
46
+
47
+ - source reference: file, ticket, prompt, section, line, or artifact id when available
48
+ - requirement statement using the source's own strength, including numbers, named systems, and "must"/"exit criteria" language
49
+ - disposition: `in_current_scope`, `explicit_user_deferred`, `blocked_needs_decision`, `out_of_scope_by_user`, or `non_material_context`
50
+ - planned work unit id or blocking question
51
+ - planned acceptance row id or waiver evidence
52
+
53
+ Do not weaken requirements while translating them into units or acceptance rows. Examples of forbidden downgrades:
54
+
55
+ - "live service import and query verification" to "generated export or optional loader"
56
+ - "required validation corpus size" to "small starter checks exist"
57
+ - "named providers A and B" to "one provider plus an extension hook"
58
+ - "required batch analysis and report generation" to "metadata says reports are possible"
59
+ - "provider-backed extraction and indexing" to "deterministic placeholder logic"
60
+
61
+ Treat roadmap phases, source "Build" lists, and exit criteria as material when the user says the source is the source of truth, asks to implement everything, or does not explicitly narrow the scope. If the user wants only a first slice, record every non-slice material item as `explicit_user_deferred`; otherwise create work units for it or stop as `blocked_needs_decision`.
62
+
63
+ Create exactly one implementation work unit only when all current-scope material requirements can be implemented and verified inside that one unit without hiding source requirements in residual risks, skipped checks, future work, or next recommended actions. For multi-phase, dependency-heavy, or roadmap-driven work, create one work unit per independently verifiable phase, integration, data slice, or risk boundary.
64
+
65
+ Before final closeout, audit the coverage ledger. The workflow may be PASS only when every material requirement is mapped to a PASS acceptance row, explicitly waived by the user, or blocked and reported as not complete.
66
+
67
+ ## SPEC Review And Q&A Gate
68
+
69
+ Before final work units, create a concise reviewable spec as `.workflow/SPEC.md` when workflow docs are enabled, or as an inline SPEC review packet when state is inline. The SPEC is the human-readable contract for interpretation, not the execution plan.
70
+
71
+ The SPEC must include:
72
+
73
+ - status: `Draft`, `Approved`, `Needs Revision`, or `Blocked`
74
+ - objective and non-goals
75
+ - source of truth summary
76
+ - interpreted scope
77
+ - requirement coverage ledger or summary
78
+ - deferred, out-of-scope, and blocked items
79
+ - proposed work units summary
80
+ - acceptance summary
81
+ - assumptions, risks, and open questions
82
+ - Q&A log
83
+ - human verification decision with reviewer, decision, notes, and date when known
84
+
85
+ In `human_in_loop`, stop after presenting the draft SPEC and ask for review. The human may ask questions, request revisions, block, defer requirements, change dispositions, or approve. Continue to final work units, dossiers, or implementation only after the SPEC has `Decision: Approved` or an equivalent explicit approval in the conversation.
86
+
87
+ If the human asks questions, answer them and update the Q&A log before proceeding. If the answers change scope, sources, dispositions, work units, or acceptance, revise the SPEC and ask for approval again. If the human marks `Needs Revision`, revise and re-present. If the human marks `Blocked`, stop and record the blocker.
88
+
89
+ In `autonomous_goal`, create or record the SPEC and continue only when no blocking questions remain and no higher-priority instruction requires approval. Do not fabricate human approval; use `Approval: not required by autonomous_goal intake` or equivalent wording instead.
90
+
91
+ Agents may propose dispositions such as `proposed_current_scope` or `proposed_deferred`, but only explicit user approval may convert them into `in_current_scope`, `explicit_user_deferred`, or `out_of_scope_by_user` when the distinction changes scope. Keep proposed agent interpretation separate from final human decisions.
92
+
93
+ If `autonomous_goal` finds a blocking question or human decision point, use Resume After Human Decision instead of treating the autonomous path as failed. Autonomous execution may pause for the smallest necessary decision and then continue from the saved checkpoint after the human answers.
94
+
16
95
  ## Codex Goal Lifecycle
17
96
 
18
97
  This skill is loop-oriented. Complete intake is mandatory before goal binding. After all required intake decisions are answered, bind the workflow to a Codex goal only when the completed intake and governing environment both authorize goal-oriented work.
@@ -25,15 +104,36 @@ Use this lifecycle:
25
104
  4. If an active relevant goal exists, reuse it.
26
105
  5. If an active unrelated goal exists, do not create, reuse, complete, block, or update it. Ask the user whether to switch goals or continue with goal binding skipped.
27
106
  6. If no active goal exists and completed intake authorizes goal binding, call `create_goal` at most once with a concrete objective.
28
- 7. Do not create a goal for simple single-turn answers, ordinary scoped edits, tiny tasks, incomplete intake, or when the user says not to.
107
+ 7. Do not create a goal for incomplete intake or when the user says not to.
29
108
  8. Keep the goal objective stable. Track tactical steps in the plan, dossier, workflow docs, or `.workflow/GOAL-STATE.md` rather than trying to rewrite the goal.
30
109
  9. Use `update_goal` only for terminal `complete` or `blocked` states when the environment supports that action.
31
110
  10. Mark the goal complete only after acceptance evidence supports completion and no required supervisor work remains.
32
111
  11. Distinguish workflow/unit BLOCKED from Codex goal blocked. Mark a Codex goal blocked only after the same material blocker repeats across the required consecutive goal turns and no meaningful progress remains.
33
- 12. On resume after compaction or continuation, read the active goal first, then reconcile workflow docs and current artifacts.
112
+ 12. On resume after compaction, continuation, or human answer, read the active goal first, then reconcile workflow docs and current artifacts.
113
+ 13. If the prior Codex goal is terminal `blocked old`, do not assume it can be reopened. Continue from workflow state when safe; create or reuse a new active workflow state only when complete intake still authorizes goal binding, and reference the old blocked goal as history.
34
114
 
35
115
  If the environment has no goal tool or goal creation is not permitted, state the intended goal objective in the supervisor report and continue with workflow docs or another state artifact as the fallback state container.
36
116
 
117
+ ## Resume After Human Decision
118
+
119
+ Use this protocol when `autonomous_goal` or another supervised path stops to ask a human for clarification, scope disposition, approval, waiver, final disposition, or any other blocking decision.
120
+
121
+ Before asking the human:
122
+
123
+ - Record the blocker in `.workflow/SPEC.md`, `.workflow/WORKFLOW.md`, `.workflow/GOAL-STATE.md`, or the inline state packet. Include the blocked artifact, exact question, affected requirement ids, affected work units, last completed step, and recorded next action.
124
+ - Ask the smallest decision that can unblock progress. Do not re-ask complete intake unless a required intake decision is missing, contradicted, or directly changed by the blocker.
125
+ - Mark the workflow, SPEC item, unit, or worker as waiting or blocked. Do not mark the Codex goal terminal `blocked` for a first material blocker when meaningful progress can continue after the human answers.
126
+
127
+ When the human answers:
128
+
129
+ - Classify the answer as one or more of: clarification, scope change, requirement waiver, explicit deferral, blocker resolution, final disposition, intake change, or workflow cancellation.
130
+ - Update the SPEC Q&A log, requirement coverage dispositions, decision source, and any `DECISIONS.md`, `WORKFLOW.md`, or `GOAL-STATE.md` resume fields before continuing.
131
+ - Do not restart intake unless the answer changes a required intake decision: objective/source, execution path, mode, delegation, final disposition, mutation boundaries, or state artifacts. If it does, ask only the affected intake item(s), then resume.
132
+ - Re-run only the affected downstream steps: source coverage, SPEC, work-unit split, acceptance rows, dossiers, worker plan, verification, or final disposition. Preserve unaffected completed units and evidence.
133
+ - Invalidate stale work units, acceptance rows, dossiers, or worker reports whose assumptions changed. Do not reuse them as green evidence.
134
+ - Continue from the recorded `Next Action`. If the recorded next action is missing, derive the next action from the latest non-terminal workflow artifact and state the derivation in the report.
135
+ - If the old Codex goal is still active and relevant, reuse it. If it is terminal `blocked old` and cannot be reopened, reference it as history and continue with workflow docs or a newly authorized goal binding.
136
+
37
137
  ## Operating Contract
38
138
 
39
139
  - After complete intake, ground the workflow in sources before creating work units.
@@ -41,15 +141,19 @@ If the environment has no goal tool or goal creation is not permitted, state the
41
141
  - Run the complete intake gate before goal creation, worker delegation, implementation, publication, or other irreversible action.
42
142
  - Do not infer execution path, mode, delegation, final disposition, or boundaries from keywords, action verbs, or intent guesses.
43
143
  - Classify the workflow as `autonomous_goal` or `human_in_loop` only from completed intake answers before delegating workers or beginning implementation.
144
+ - Explicit invocation always requires complete intake, work units, dossiers, worker-agent contracts, scoped handoffs, report schema, and verification; do this even for trivial tasks.
145
+ - Preserve source-scope fidelity: do not translate controlling-source requirements into weaker proxy checks unless the user explicitly approves the narrower scope or waiver.
44
146
  - Always produce a plan after complete intake. In `human_in_loop`, make it an approval packet and stop for approval. In `autonomous_goal`, make it an execution plan and continue only when the completed intake authorizes that path.
45
- - Do not begin implementation until complete intake and the path gate are satisfied, at least one concrete dossier exists, and no stop gate applies.
46
- - Delegate workers only through an automated supported delegation transport after complete intake and the path gate authorize delegation. If no supported transport exists, use same-session phased mode only when intake allowed it; otherwise stop as `delegation_unavailable`.
147
+ - Do not begin implementation until complete intake and the path gate are satisfied, at least one work unit exists, at least one concrete dossier exists, worker-agent contracts exist, and no stop gate applies.
148
+ - Delegate workers only through an automated supported delegation transport after complete intake and the path gate authorize delegation. If no supported transport exists, use same-session phased mode only when intake allowed it; otherwise stop as `worker_agent_unavailable`.
47
149
  - Do not start implementer, verifier, repair-author, or documenter workers before complete intake and the path gate are satisfied; role-specific start conditions are additional gates after that.
48
150
  - Keep roles separate: implementers implement, verifiers verify, repair authors write tickets, documenters update workflow artifacts, and the supervisor coordinates.
49
- - Treat same-session verification as a self-check, not independent verification.
151
+ - Treat same-session verification as a self-check, not independent verification. Separate verifier-agent verification may be labeled `independent-verifier` only when genuinely performed by a separate worker agent or thread.
50
152
  - Prefer explicit PASS/FAIL/BLOCKED states over soft completion language.
51
153
  - Stop instead of improvising when sources are missing, contradictory, materially stale, or too vague to produce acceptance criteria.
154
+ - Treat unimplemented material source requirements found in residual risks, skipped checks, future work, or `next_recommended_action` as open work, not PASS evidence.
52
155
  - Keep provenance optional; require enough outcome detail for another agent to resume.
156
+ - When resuming after a human decision, update state first, invalidate changed downstream artifacts, and continue from the recorded next action instead of restarting the whole workflow.
53
157
  - Treat companion skills as optional phase tools, not an automatic cascade. Use the smallest set needed for the current risk.
54
158
 
55
159
  ## Skills And Workers
@@ -64,7 +168,29 @@ Treat these as distinct mechanisms:
64
168
  - Native thread or subagent: an environment-specific transport a worker adapter may use when it is available and authorized.
65
169
  - Same-session phased mode: the current agent performs roles sequentially. Verification in this mode is a self-check, not independent verification.
66
170
 
67
- Start workers only after complete intake and the path gate are satisfied, a concrete dossier exists, the loop policy authorizes delegation, and the environment exposes an automated supported transport. If environment rules require explicit user approval for user-visible native thread creation, obtain it before using that transport. Do not use manual copy/paste handoff as the primary path. If automated delegation is unavailable, mark the unit `delegation_unavailable` unless completed intake explicitly selected same-session phased work.
171
+ Start workers only after complete intake and the path gate are satisfied, at least one work unit exists, a concrete dossier exists, the loop policy authorizes delegation, and the environment exposes an automated supported transport. If environment rules require explicit user approval for user-visible native thread creation, obtain it before using that transport. Do not use manual copy/paste handoff as the primary path. If automated delegation is unavailable, mark the unit `worker_agent_unavailable` unless completed intake explicitly selected same-session phased work.
172
+
173
+ ## Worker Report Schema
174
+
175
+ Every worker report back to the supervisor must use this schema:
176
+
177
+ ```text
178
+ status: PASS | FAIL | BLOCKED | PARTIAL
179
+ worker_id:
180
+ role: implementer | verifier | repair-author | documenter
181
+ work_unit_id:
182
+ dossier_id:
183
+ summary:
184
+ changed_files:
185
+ acceptance_evidence:
186
+ checks_run:
187
+ skipped_checks:
188
+ blockers:
189
+ residual_risks:
190
+ next_recommended_action:
191
+ ```
192
+
193
+ Implementers may edit only allowed surfaces from the dossier. Verifiers must not edit. Repair authors write repair tickets from failed acceptance rows and must not expand scope. Documenters update only approved workflow or documentation surfaces after source, implementation, verification, or repair evidence exists.
68
194
 
69
195
  ## Intake Gate
70
196
 
@@ -109,29 +235,33 @@ Negative example: "Using Workflow Supervisor, generate an API and create the pro
109
235
  2. Restate the objective, constraints, non-goals, known sources, and unknowns from the completed intake.
110
236
  3. Bind or reconcile the Codex goal only after complete intake and only when no unrelated active goal prevents binding.
111
237
  4. Build or request a source corpus map. Use `$source-corpus` when source authority, freshness, or contradictions matter.
112
- 5. Split the objective into bounded work units. Use `$work-unit` for ambiguous or multi-phase goals.
113
- 6. Choose a loop policy before starting work: sequential or parallel, retry limits, approval gates, budgets, goal update cadence, and blocker rules. Use `$loop-policy` when the policy is not obvious.
114
- 7. Build dossiers for the first implementation units and any planned verification, repair, or documentation workers. Use `$dossier-builder` when delegating work to another agent or when the task has boundaries.
115
- 8. Assign worker roles with explicit allowed and forbidden behavior. Use `$worker-roles` for multi-agent, native-thread, or portable-worker work.
116
- 9. Select the execution path:
238
+ 5. Create the source-requirement coverage ledger. If any material source requirement cannot be classified, mapped to work, or explicitly deferred, stop and ask for the missing scope decision.
239
+ 6. Create the SPEC review packet or `.workflow/SPEC.md` from the source corpus and coverage ledger.
240
+ 7. Run the SPEC Q&A gate. In `human_in_loop`, stop until the human asks questions, receives answers or revisions, and explicitly approves the SPEC. In `autonomous_goal`, continue only when no blocking questions remain and approval is not required by intake.
241
+ 8. Split the objective into bounded work units from the approved or non-blocked SPEC and coverage ledger. Use `$work-unit` for ambiguous or multi-phase goals. If the task is tiny and the ledger has no deferred material requirements, create exactly one work unit named `WU-001`.
242
+ 9. Choose a loop policy before starting work: sequential or parallel, retry limits, approval gates, budgets, goal update cadence, and blocker rules. Use `$loop-policy` when the policy is not obvious.
243
+ 10. Build dossiers for the first implementation units and any planned verification, repair, or documentation workers. Use `$dossier-builder` when delegating work to another agent or when the task has boundaries.
244
+ 11. Assign worker roles with explicit allowed and forbidden behavior. Use `$worker-roles` for multi-agent, native-thread, or portable-worker work.
245
+ 12. Select the execution path:
117
246
  - `human_in_loop`: use when selected in completed intake or when a higher-priority rule requires human approval after intake.
118
247
  - `autonomous_goal`: use only when selected in completed intake and no higher-priority rule requires human approval.
119
- 10. If `.workflow/` artifacts will be used in a Git-backed codebase, ensure `.gitignore` contains `.workflow/` before writing them.
120
- 11. Present the path-specific plan:
248
+ 13. If `.workflow/` artifacts will be used in a Git-backed codebase, ensure `.gitignore` contains `.workflow/` before writing them.
249
+ 14. Present the path-specific plan:
121
250
  - `human_in_loop`: approval packet with plan, work units, worker delegation plan, approval gates, stop gates, and first dossiers. Stop until the human approves or revises it.
122
251
  - `autonomous_goal`: execution plan with the same contents plus autonomous boundaries, allowed actions, stop gates, repair limits, and final disposition policy. Continue after recording it only when complete intake authorized that path.
123
- 12. After the path gate is satisfied, delegate named workers from the worker delegation plan through the selected automated transport. Send each worker only its role, dossier, sources, acceptance rows, stop gates, and report schema.
124
- 13. Collect one terminal report from each worker. If a worker asks a human-facing question, convert it to `BLOCKED` and have the supervisor ask the user only when the path policy permits.
125
- 14. Verify independently where possible. Use `$acceptance-matrix` to map every requirement to evidence. Start verifier workers only after the relevant implementer report is available.
126
- 15. If verification FAILs, convert findings into repair tickets and route them to a repair-author or implementer repair worker. Do not expand scope during repair.
127
- 16. Re-run verification after repairs. Continue only until PASS, BLOCKED, repair limit, or path stop.
128
- 17. Start documenter workers only after source, implementation, verification, or repair evidence exists, unless the documenter is explicitly creating planning state.
129
- 18. If verification BLOCKs, report the blocker and stop or ask for the missing decision.
130
- 19. Use `$workflow-docs` to create or refresh reusable Markdown artifacts under `<workspace>/.workflow/` when the workflow must persist across context loss, agents, or sessions.
131
- 20. When all material acceptance rows are PASS or waived, apply the final disposition policy:
252
+ 15. After the path gate is satisfied, delegate named workers from the worker delegation plan through the selected automated transport. Send each worker only its role, dossier, sources, acceptance rows, stop gates, and report schema.
253
+ 16. Collect one terminal report from each worker. If a worker asks a human-facing question, convert it to `BLOCKED` and have the supervisor ask the user only when the path policy permits.
254
+ 17. Verify independently where possible. Use `$acceptance-matrix` to map every requirement to evidence. Start verifier workers only after the relevant implementer report is available.
255
+ 18. If verification FAILs, convert findings into repair tickets and route them to a repair-author or implementer repair worker. Do not expand scope during repair.
256
+ 19. Re-run verification after repairs. Continue only until PASS, BLOCKED, repair limit, or path stop.
257
+ 20. Start documenter workers only after source, implementation, verification, or repair evidence exists, unless the documenter is explicitly creating planning state.
258
+ 21. If verification BLOCKs, record the resume checkpoint, report the blocker, and stop or ask for the missing decision. When the human answers, use Resume After Human Decision.
259
+ 22. Use `$workflow-docs` to create or refresh reusable Markdown artifacts under `<workspace>/.workflow/` when the workflow must persist across context loss, agents, or sessions.
260
+ 23. Audit skipped checks, residual risks, future work, and next recommended actions against the source-requirement coverage ledger. If any material source requirement appears there without an explicit user deferral or waiver, mark the workflow FAIL/BLOCKED and create more work units or ask for a scope decision.
261
+ 24. When all material acceptance rows are PASS or waived, apply the final disposition policy:
132
262
  - `human_in_loop`: use the completed intake final disposition; if it is `ask_at_end`, ask the human to choose PR, push main, or keep local.
133
263
  - `autonomous_goal`: use the completed intake final disposition. If it is `ask_at_end`, stop and ask before taking any final disposition action.
134
- 21. Finish with an outcome report that names execution path, goal status, sources, work units, delegated workers, checks, skipped checks, residual risks, final disposition decision, and next action.
264
+ 25. Finish with an outcome report that names execution path, goal status, sources, SPEC decision, coverage ledger disposition, work units, delegated workers, checks, skipped checks, residual risks, final disposition decision, and next action.
135
265
 
136
266
  ## Execution Paths
137
267
 
@@ -139,10 +269,12 @@ Negative example: "Using Workflow Supervisor, generate an API and create the pro
139
269
 
140
270
  Use `human_in_loop` when the completed intake selects it, or when a higher-priority rule requires human approval after intake. If the user has not answered the execution-path intake item, stop and ask for that answer instead of inferring a path.
141
271
 
142
- The first supervisor deliverable is a plan for approval, not implementation. The approval packet must include:
272
+ The first review deliverable after source coverage is the SPEC review packet, not implementation. After the SPEC Q&A gate is approved, the supervisor presents the implementation approval packet. The approval packet must include:
143
273
 
144
274
  - objective and non-goals
145
275
  - source corpus summary and gaps
276
+ - source-requirement coverage ledger summary
277
+ - SPEC review status, Q&A summary, and decision
146
278
  - work units and sequence
147
279
  - worker delegation plan with names, roles, dossiers, dependencies, start conditions, and transport
148
280
  - acceptance matrix summary
@@ -157,6 +289,8 @@ Use `autonomous_goal` only when the completed intake selects it. Phrases such as
157
289
 
158
290
  - objective and non-goals
159
291
  - source corpus summary and gaps
292
+ - source-requirement coverage ledger summary
293
+ - SPEC review status, Q&A summary, and approval policy
160
294
  - work units and sequence
161
295
  - worker delegation plan with names, roles, dossiers, dependencies, start conditions, and transport
162
296
  - acceptance matrix summary
@@ -168,6 +302,8 @@ The final disposition must come from the completed intake. Direct push to the ma
168
302
 
169
303
  Even in `autonomous_goal`, stop and ask when any required intake answer is missing or ambiguous, required sources are missing, acceptance cannot be verified, a worker needs scope expansion, an irreversible action lacks intake authorization, or higher-priority instructions require approval.
170
304
 
305
+ When `autonomous_goal` stops for a human decision, it should usually leave the Codex goal active and mark only the workflow artifact, SPEC item, work unit, or worker as waiting or blocked. After the human answers, resume from the recorded next action and refresh only the affected downstream artifacts.
306
+
171
307
  ## Portable Worker Delegation
172
308
 
173
309
  After the path gate is satisfied, use the selected automated worker transport. The portable default is the package helper:
@@ -184,7 +320,7 @@ workflow-supervisor validate-dossier <path> --role <role> --unit <unit-id> --jso
184
320
 
185
321
  If the dossier does not pass `DossierV1` validation, do not start the worker. Create a discovery dossier, ask for the missing decision, or mark the unit BLOCKED.
186
322
 
187
- Adapters may use native threads, native subagents, or one-shot CLI execution underneath, but the supervisor consumes only the normalized worker report. Use `workflow-supervisor delegate-doctor --agent <agent> --probe` to test the installed local adapter before relying on it for a workflow. If automated delegation is unavailable, mark execution as `delegation_unavailable` unless completed intake selected `same_session_phased`.
323
+ Adapters may use native threads, native subagents, or one-shot CLI execution underneath, but the supervisor consumes only the normalized worker report. Use `workflow-supervisor delegate-doctor --agent <agent> --probe` to test the installed local adapter before relying on it for a workflow. If automated delegation is unavailable, mark execution as `worker_agent_unavailable` unless completed intake selected `same_session_phased`.
188
324
 
189
325
  Name workers deterministically from the workflow, unit, role, and dossier:
190
326
 
@@ -247,6 +383,10 @@ Stop when:
247
383
  - source authority cannot be established
248
384
  - sources contradict each other on a material requirement
249
385
  - the requested scope cannot fit into a bounded work unit
386
+ - the coverage ledger is missing, incomplete, or contains material requirements classified as future work without explicit user deferral
387
+ - human-in-loop SPEC approval is missing, marked Needs Revision, marked Blocked, or has unanswered Q&A
388
+ - a human decision was answered but affected downstream coverage, SPEC, work units, acceptance, dossiers, or verification have not been refreshed
389
+ - mandatory approval packet, work unit, dossier, worker-agent contract, or acceptance matrix is missing
250
390
  - allowed and forbidden surfaces cannot be named
251
391
  - acceptance cannot be verified with evidence
252
392
  - a verifier is asked to edit or an implementer is asked to self-approve
@@ -256,6 +396,7 @@ Stop when:
256
396
  - an irreversible action is requested without explicit authorization in the completed intake
257
397
  - a worker asks to expand scope without supervisor or human approval
258
398
  - final verification is not green and no waiver evidence exists
399
+ - residual risks, skipped checks, future work, or next actions contain unimplemented material source requirements
259
400
 
260
401
  ## Final Report Shape
261
402
 
@@ -266,8 +407,14 @@ Report:
266
407
  - Goal status and whether a Codex goal was created, reused, skipped, completed, or blocked
267
408
  - Objective handled
268
409
  - Sources used and gaps
410
+ - SPEC status, Q&A summary, and human decision or autonomous approval policy
411
+ - Source-requirement coverage ledger summary, including deferred or blocked material requirements
269
412
  - Work units completed or remaining
413
+ - Approval question id and whether `WAITING_FOR_HUMAN -> ACTIVE` occurred
414
+ - Human decision resume status, affected artifacts, and whether stale downstream artifacts were invalidated
415
+ - Dossiers created or missing
270
416
  - Workers delegated, blocked, unavailable, or skipped
417
+ - Worker lifecycle status for each role
271
418
  - Verification evidence
272
419
  - Repairs performed or recommended
273
420
  - Checks run and skipped
@@ -1,7 +1,7 @@
1
1
  interface:
2
2
  display_name: "Workflow Supervisor"
3
3
  short_description: "Run autonomous or human-gated workflows"
4
- default_prompt: "Use $workflow-supervisor to run the complete intake gate first. Ask every required intake question and stop until the user explicitly answers all of them. Do not infer or skip steps from keywords such as autonomous, work until done, approval, generate, or create. Start planning or work only after complete intake is satisfied."
4
+ default_prompt: "Use $workflow-supervisor to run the complete intake gate first. Ask every required intake question and stop until the user explicitly answers all of them. Do not infer or skip steps from keywords such as autonomous, work until done, approval, generate, or create. After intake, create a source-requirement coverage ledger and SPEC review gate before work units, preserve source requirements in acceptance rows, and do not hide unimplemented material requirements in residual risks or future work."
5
5
 
6
6
  policy:
7
7
  allow_implicit_invocation: false