@code-migration/wow-migrator 0.1.2 → 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.
- package/package.json +1 -1
- package/skills/android-project-analyst/MIGRATION.md +14 -0
- package/skills/android-project-analyst/SKILL.md +20 -0
- package/skills/android-project-analyst/bind.md +2 -1
- package/skills/android-project-analyst/roles/analysis-workspace-state.md +7 -2
- package/skills/android-project-analyst/roles/behavior-logic.md +6 -3
- package/skills/android-project-analyst/roles/data-contract-flow.md +6 -3
- package/skills/android-project-analyst/roles/presentation-resource.md +8 -3
- package/skills/android-project-analyst/roles/project-architecture.md +6 -3
- package/skills/android-project-analyst/workflow.md +19 -16
- package/skills/android-to-kmp-migrator/MIGRATION.md +27 -2
- package/skills/android-to-kmp-migrator/SKILL.md +35 -4
- package/skills/android-to-kmp-migrator/bind.md +11 -5
- package/skills/android-to-kmp-migrator/dependencies.yaml +3 -3
- package/skills/android-to-kmp-migrator/roles/completion-report.md +9 -2
- package/skills/android-to-kmp-migrator/roles/dependency-platform-gate.md +7 -2
- package/skills/android-to-kmp-migrator/roles/logic-implementation.md +7 -2
- package/skills/android-to-kmp-migrator/roles/migration-analysis-planning.md +7 -2
- package/skills/android-to-kmp-migrator/roles/migration-verification.md +9 -3
- package/skills/android-to-kmp-migrator/roles/migration-workspace-state.md +199 -20
- package/skills/android-to-kmp-migrator/roles/module-node-review-fix.md +9 -2
- package/skills/android-to-kmp-migrator/roles/presentation-integration.md +7 -2
- package/skills/android-to-kmp-migrator/roles/state-data-prep.md +7 -2
- package/skills/android-to-kmp-migrator/roles/ui-implementation.md +7 -2
- package/skills/android-to-kmp-migrator/workflow.md +60 -20
- package/skills/kmp-test-validator/MIGRATION.md +26 -0
- package/skills/kmp-test-validator/SKILL.md +52 -1
- package/skills/kmp-test-validator/bind.md +21 -1
- package/skills/kmp-test-validator/roles/validation-intake-fidelity.md +7 -2
- package/skills/kmp-test-validator/roles/validation-plan-gate.md +9 -3
- package/skills/kmp-test-validator/roles/validation-remediation.md +7 -2
- package/skills/kmp-test-validator/roles/validation-report.md +7 -2
- package/skills/kmp-test-validator/roles/validation-test-runner.md +9 -3
- package/skills/kmp-test-validator/roles/validation-workspace-state.md +7 -2
- package/skills/kmp-test-validator/workflow.md +29 -9
- package/skills/migration-task-adapter/MIGRATION.md +16 -1
- package/skills/migration-task-adapter/SKILL.md +18 -0
- package/skills/migration-task-adapter/bind.md +4 -1
- package/skills/migration-task-adapter/dependencies.yaml +1 -1
- package/skills/migration-task-adapter/roles/task-reporter.md +7 -2
- package/skills/migration-task-adapter/roles/task-understanding-router.md +7 -2
- package/skills/migration-task-adapter/roles/workflow-orchestrator.md +7 -2
- package/skills/migration-task-adapter/roles/workspace-state-discipline-inspector.md +15 -6
- package/skills/migration-task-adapter/workflow.md +15 -15
|
@@ -11,7 +11,7 @@ The `migration-task-adapter` is a control-plane skill. It decides which existing
|
|
|
11
11
|
| `only_understand_architecture` | `android-project-analyst` | Analyst output root, `project-architecture` artifacts, module/global representation |
|
|
12
12
|
| `only_understand_overview` | `android-project-analyst` | Analyst output root, module inventory, module/global representation, SPEC package |
|
|
13
13
|
| `migration` | `android-project-analyst` then `android-to-kmp-migrator` | Fresh analyst SPEC before migrator; migration report before validation handoff |
|
|
14
|
-
| `validation_handoff` | `kmp-test-validator` | Migration report plus Android source/SPEC and KMP target evidence |
|
|
14
|
+
| `validation_handoff` | `kmp-test-validator` | Migration report plus Android source/SPEC and KMP target evidence; validator output root is the parallel `validation` location |
|
|
15
15
|
|
|
16
16
|
## Required Adapter Records
|
|
17
17
|
|
|
@@ -32,3 +32,18 @@ For migration tasks, the adapter must not invoke `android-to-kmp-migrator` until
|
|
|
32
32
|
- The adapter first routes and observes an `android-project-analyst` migration-mode run that produces fresh SPEC artifacts.
|
|
33
33
|
|
|
34
34
|
If the migrator returns `ready_for_validation`, the adapter records the migration report and either routes `kmp-test-validator` or returns `ready_for_validation` with an explicit validation handoff requirement.
|
|
35
|
+
|
|
36
|
+
## Output Contract Refinement
|
|
37
|
+
|
|
38
|
+
The active adapter docs now distinguish output filenames from output content responsibilities. `SKILL.md` and `workflow.md` define the artifact schedule and content matrix, while each role file states the exact JSON/Markdown filenames and the evidence each artifact must contain.
|
|
39
|
+
|
|
40
|
+
Role ownership is explicit:
|
|
41
|
+
|
|
42
|
+
- `task_understanding_router.*` records the task interpretation, route, focus, inputs, artifact evidence, downstream sequence, and required inspections/assets.
|
|
43
|
+
- `workflow_orchestration.*` records downstream dispatch contracts, output roots, expected/observed artifacts, stage requests, asset updates, reruns, and blockers.
|
|
44
|
+
- `workspace_state_discipline.*` records adapter discipline state, artifact inventory, path/freshness checks, reruns, blockers, and next actions.
|
|
45
|
+
- `stage_inspection.*` records a single stage gate with checked inputs/outputs, compliance, freshness, asset coverage, reruns, blockers, and next stage.
|
|
46
|
+
- `intermediate_asset_records.*` records every consumed adapter/downstream artifact with producer, path, status, freshness, consumers, evidence, and gaps.
|
|
47
|
+
- `task_adapter_report.*` records the final verified adapter status, downstream summaries, stage/asset summaries, readiness, reruns, blockers, and next action.
|
|
48
|
+
|
|
49
|
+
The adapter must reject artifacts that have the correct filename but contain another role's work, generic downstream summaries without machine-routable evidence, or downstream validator paths written under the migration output root instead of the parallel `validation` output root.
|
|
@@ -103,6 +103,24 @@ Required artifacts:
|
|
|
103
103
|
- `<report_dir>/task_adapter_report.json`
|
|
104
104
|
- `<report_dir>/task_adapter_report.md`
|
|
105
105
|
|
|
106
|
+
## Output Artifact Content Matrix
|
|
107
|
+
|
|
108
|
+
The adapter verifies both artifact names and role-aligned content before any downstream stage consumes an artifact.
|
|
109
|
+
|
|
110
|
+
| Stage / owner | Output file(s) | Required content |
|
|
111
|
+
|---|---|---|
|
|
112
|
+
| Output root lock / Leader | `run_manifest.json` | Task id, raw task summary, requested scope, source/target paths when provided, adapter output root, allowed roots, downstream workflow candidates, dependency-preflight status, schedule version, timestamp. |
|
|
113
|
+
| Task route / `task-understanding-router` | `task_understanding_router.json`, `task_understanding_router.md` | Normalized task, route, task kind, understand focus, source/target/scope fields, existing artifact evidence, required/missing inputs, downstream workflow sequence, stage inspection requirements, intermediate asset requirements, blockers. |
|
|
114
|
+
| Orchestration / `workflow-orchestrator` | `workflow_orchestration.json`, `workflow_orchestration.md` | Downstream workflow sequence, dispatch contracts, expected output roots/artifacts, route constraints, stage inspection requests, observed downstream outputs, intermediate asset updates, rerun requests, blockers. |
|
|
115
|
+
| Workspace discipline / `workspace-state-discipline-inspector` | `workspace_state_discipline.json`, `workspace_state_discipline.md` | Adapter artifact inventory, stage status, path compliance, freshness checks, intermediate asset coverage, rerun history, blockers, next safe actions. No task routing or downstream analysis. |
|
|
116
|
+
| Stage inspections / `workspace-state-discipline-inspector` | `<stage_inspection_dir>/<stage_id>/stage_inspection.json`, `.md` | Checked inputs/outputs, path compliance, freshness checks, intermediate asset coverage, downstream contract checks, stage status, rerun requests, blockers, next allowed stage. |
|
|
117
|
+
| Intermediate assets / `workspace-state-discipline-inspector` | `intermediate_asset_records.json`, `intermediate_asset_records.md` | Stable records for every consumed adapter/downstream artifact: asset id/type, producer, path, status, freshness basis, consumers, source evidence, coverage gaps, blockers. |
|
|
118
|
+
| Final task report / `task-reporter` | `task_adapter_report.json`, `task_adapter_report.md` | Final route/status/readiness, source/target paths, downstream workflow summaries, stage inspection summary, intermediate asset summary, verified outputs, rerun requests, blockers, report path. |
|
|
119
|
+
|
|
120
|
+
Downstream output roots are external asset paths. The adapter records them but does not write into them: `android-project-analyst` writes to its understand output root, `android-to-kmp-migrator` writes to its migration output root, and `kmp-test-validator` writes to its parallel validation output root.
|
|
121
|
+
|
|
122
|
+
JSON artifacts are the machine-routable source of truth. Markdown artifacts are agent-readable handoffs that preserve exact paths, route decisions, stage evidence, asset records, rerun context, blockers, and downstream routing. Adapter Markdown must not be prose-only summaries.
|
|
123
|
+
|
|
106
124
|
## Shared Return Contract
|
|
107
125
|
|
|
108
126
|
```json
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
- **Task-first routing**: `task-understanding-router` must complete before any downstream workflow is selected. A guessed route is invalid.
|
|
18
18
|
- **Strict output root**: the Leader must lock `output_root = <output_dir or ~/.a2c_agents/task-adapter>/migration-task-adapter` before role dispatch. Adapter roles write only under this root.
|
|
19
19
|
- **Downstream boundary**: analyst, migrator, and validator artifacts stay under their own declared output roots. The adapter records their paths and statuses in intermediate asset records.
|
|
20
|
+
- **Downstream output-root alignment**: validator outputs must be recorded under the validator's parallel `validation` output root, not under the migration output root. The adapter may route to `kmp-test-validator`, but it must record validator artifacts as external downstream assets.
|
|
21
|
+
- **Role-output content discipline**: required adapter artifacts must contain the content owned by their role, not just the correct filename. `task_understanding_router.*` must contain route/evidence requirements, `workflow_orchestration.*` must contain downstream contracts/observations, `workspace_state_discipline.*` and `stage_inspection.*` must contain inspection evidence, `intermediate_asset_records.*` must contain asset records, and `task_adapter_report.*` must contain the final verified report.
|
|
20
22
|
- **Stage inspection discipline**: every route boundary and downstream workflow boundary must have a `stage_inspection.json` and `.md`. A stage inspection must say whether the next stage is `pass`, `needs_rerun`, or `blocked`.
|
|
21
23
|
- **Intermediate asset discipline**: every durable artifact consumed by another stage must have one asset record with producer, path, status, freshness basis, consumers, and gaps.
|
|
22
24
|
- **Workspace-state freshness**: the adapter must refresh `workspace-state-discipline-inspector` after task routing, after downstream workflow completion, before report, and after report.
|
|
@@ -79,7 +81,8 @@ No downstream stage may consume a durable artifact whose record is `missing`, `s
|
|
|
79
81
|
| Failure mode | Response |
|
|
80
82
|
|---|---|
|
|
81
83
|
| Node timeout | Retry once with the same contract. On second timeout, record `[ROLE MISSING - node timed out]` in workspace discipline and block any stage that hard-requires it. |
|
|
82
|
-
| Malformed output or missing JSON/MD artifacts | Rerun the same role once with the expected schema and output
|
|
84
|
+
| Malformed output or missing JSON/MD artifacts | Rerun the same role once with the expected schema, output paths, and role-owned output content inlined. On second failure, record `[ROLE MISSING - malformed output]` and block downstream consumption. |
|
|
85
|
+
| Adapter output written outside `output_root` or downstream validator output recorded under migration root | Reject the output as out-of-path; rerun the owning adapter role with the path contract and downstream output-root rules inlined. |
|
|
83
86
|
| Route is ambiguous | Rerun `task-understanding-router` with the ambiguity. If still ambiguous, ask the user for source path, target path, task target, or scope. |
|
|
84
87
|
| Stage inspection missing or malformed | Rerun `workspace-state-discipline-inspector` for that `stage_id`. Do not proceed past the stage. |
|
|
85
88
|
| Intermediate asset record missing for consumed artifact | Rerun `workspace-state-discipline-inspector` to repair the asset ledger before downstream consumption. |
|
|
@@ -12,7 +12,7 @@ skills:
|
|
|
12
12
|
purpose: Downstream workflow for Android-to-KMP migration after analyst evidence is fresh.
|
|
13
13
|
- name: kmp-test-validator
|
|
14
14
|
required: false
|
|
15
|
-
purpose: Downstream workflow for post-migration validation when migration report evidence is ready.
|
|
15
|
+
purpose: Downstream workflow for post-migration validation when migration report evidence is ready; outputs must be recorded under the validator's parallel validation root.
|
|
16
16
|
|
|
17
17
|
tools:
|
|
18
18
|
- name: rg
|
|
@@ -68,6 +68,11 @@ You are the `task-reporter` node subagent dispatched by the `migration-task-adap
|
|
|
68
68
|
|
|
69
69
|
Shared controller return shape: `status`, `node`, `task_id`, `route`, `output_dir`, `output_files`, `changed_files`, `stale_upstream_inputs`, `rerun_requests`, `blocking_gaps`.
|
|
70
70
|
|
|
71
|
+
## Output Files And Contents
|
|
72
|
+
|
|
73
|
+
- `task_adapter_report.json`: machine-routable final adapter report containing final status, task id, route, understand focus, source/target paths, output root, downstream workflow summary, stage inspection summary, intermediate asset summary, verified outputs, readiness, rerun requests, blockers, and report path.
|
|
74
|
+
- `task_adapter_report.md`: agent-readable final handoff containing route decision, downstream workflow evidence, stage inspection status, intermediate asset coverage, verified outputs, readiness decision, rerun requests, blockers, and next action. It must not re-run or reinterpret downstream workflows.
|
|
75
|
+
|
|
71
76
|
## Status Decision Rules
|
|
72
77
|
|
|
73
78
|
- `completed`: only-understand route has required analyst outputs, stage inspections pass, intermediate assets are recorded, and no blocking gaps remain.
|
|
@@ -117,8 +122,8 @@ HANDLER (how you process):
|
|
|
117
122
|
7. Emit exact rerun_requests and blocking_gaps.
|
|
118
123
|
|
|
119
124
|
OUTPUTS (write under output_dir, exact names):
|
|
120
|
-
- task_adapter_report.json
|
|
121
|
-
- task_adapter_report.md
|
|
125
|
+
- task_adapter_report.json (machine final report: status, route, downstream/stage/asset summaries, verified outputs, reruns, blockers)
|
|
126
|
+
- task_adapter_report.md (agent final handoff: evidence-backed route result, readiness, next actions)
|
|
122
127
|
|
|
123
128
|
RETURN TO CONTROLLER (shared shape, no preamble):
|
|
124
129
|
{ "status": "completed | ready_for_validation | needs_rerun | failed | blocked",
|
|
@@ -76,6 +76,11 @@ You are the `task-understanding-router` node subagent dispatched by the `migrati
|
|
|
76
76
|
|
|
77
77
|
Shared controller return shape: `status`, `node`, `task_id`, `route`, `output_dir`, `output_files`, `changed_files`, `stale_upstream_inputs`, `rerun_requests`, `blocking_gaps`.
|
|
78
78
|
|
|
79
|
+
## Output Files And Contents
|
|
80
|
+
|
|
81
|
+
- `task_understanding_router.json`: machine-routable route decision artifact containing task id, normalized task summary, route, task kind, understand focus, source/target/scope fields, existing artifact status, required inputs, missing inputs, downstream workflow sequence, stage inspection requirements, intermediate asset requirements, blockers, and evidence paths.
|
|
82
|
+
- `task_understanding_router.md`: agent-readable routing handoff containing task interpretation, selected route and rationale, input/path requirements, existing artifact evidence, missing inputs, downstream workflow sequence, stage inspection requirements, intermediate asset requirements, and blockers.
|
|
83
|
+
|
|
79
84
|
## Inline Persona for Teammate
|
|
80
85
|
|
|
81
86
|
```
|
|
@@ -123,8 +128,8 @@ HANDLER (how you process):
|
|
|
123
128
|
6. Return blocked when required route inputs are missing or contradictory.
|
|
124
129
|
|
|
125
130
|
OUTPUTS (write under output_dir, exact names):
|
|
126
|
-
- task_understanding_router.json
|
|
127
|
-
- task_understanding_router.md
|
|
131
|
+
- task_understanding_router.json (machine route decision: task, route, focus, evidence, required/missing inputs, downstream sequence)
|
|
132
|
+
- task_understanding_router.md (agent handoff: route rationale, input requirements, artifact evidence, blockers)
|
|
128
133
|
|
|
129
134
|
RETURN TO CONTROLLER (shared shape, no preamble):
|
|
130
135
|
{ "status": "routed | blocked", "node": "task-understanding-router", "task_id": "",
|
|
@@ -70,6 +70,11 @@ You are the `workflow-orchestrator` node subagent dispatched by the `migration-t
|
|
|
70
70
|
|
|
71
71
|
Shared controller return shape: `status`, `node`, `task_id`, `route`, `output_dir`, `output_files`, `changed_files`, `stale_upstream_inputs`, `rerun_requests`, `blocking_gaps`.
|
|
72
72
|
|
|
73
|
+
## Output Files And Contents
|
|
74
|
+
|
|
75
|
+
- `workflow_orchestration.json`: machine-routable orchestration artifact containing route, focus, downstream sequence, dispatch contracts, expected output roots, expected artifacts, observed downstream outputs, route constraints, stage inspection requests, intermediate asset record updates, rerun requests, and blockers.
|
|
76
|
+
- `workflow_orchestration.md`: agent-readable orchestration handoff containing downstream workflow plan, dispatch contracts by workflow, expected/observed artifact tables, validator validation-root note when applicable, rerun/blocker routing, and stage inspection requests.
|
|
77
|
+
|
|
73
78
|
## Dispatch Contract Requirements
|
|
74
79
|
|
|
75
80
|
For `android-project-analyst`:
|
|
@@ -129,8 +134,8 @@ HANDLER (how you process):
|
|
|
129
134
|
output.
|
|
130
135
|
|
|
131
136
|
OUTPUTS (write under output_dir, exact names):
|
|
132
|
-
- workflow_orchestration.json
|
|
133
|
-
- workflow_orchestration.md
|
|
137
|
+
- workflow_orchestration.json (machine orchestration: downstream sequence/contracts, expected/observed outputs, asset updates, reruns)
|
|
138
|
+
- workflow_orchestration.md (agent handoff: workflow plan, output roots, artifact tables, rerun/blocker routing)
|
|
134
139
|
|
|
135
140
|
RETURN TO CONTROLLER (shared shape, no preamble):
|
|
136
141
|
{ "status": "completed | needs_rerun | blocked", "node": "workflow-orchestrator",
|
|
@@ -58,6 +58,15 @@ You are the `workspace-state-discipline-inspector` node subagent dispatched by t
|
|
|
58
58
|
|
|
59
59
|
Shared controller return shape: `status`, `node`, `task_id`, `route`, `output_dir`, `output_files`, `changed_files`, `stale_upstream_inputs`, `rerun_requests`, `blocking_gaps`.
|
|
60
60
|
|
|
61
|
+
## Output Files And Contents
|
|
62
|
+
|
|
63
|
+
- `workspace_state_discipline.json`: machine-routable discipline ledger containing task id, route, output root, current stage id, stage status inventory, artifact inventory, intermediate asset records summary, path compliance, freshness checks, rerun history, blockers, and next actions.
|
|
64
|
+
- `workspace_state_discipline.md`: agent-readable discipline handoff containing stage status table, artifact inventory, path/freshness findings, rerun/blocker history, and next safe action.
|
|
65
|
+
- `<stage_inspection_dir>/<current_stage_id>/stage_inspection.json`: machine-routable stage gate artifact containing checked inputs/outputs, path compliance, freshness checks, intermediate asset coverage, downstream contract checks, rerun requests, blockers, and next allowed stage.
|
|
66
|
+
- `<stage_inspection_dir>/<current_stage_id>/stage_inspection.md`: agent-readable stage inspection handoff with the same checks as evidence tables.
|
|
67
|
+
- `<intermediate_asset_dir>/intermediate_asset_records.json`: machine-routable asset ledger containing every consumed adapter/downstream artifact record, status, freshness basis, consumers, source evidence, and coverage gaps.
|
|
68
|
+
- `<intermediate_asset_dir>/intermediate_asset_records.md`: agent-readable asset handoff listing consumed artifacts, producer, path, status, freshness, consumers, gaps, and blockers.
|
|
69
|
+
|
|
61
70
|
## Stage Inspection Schema
|
|
62
71
|
|
|
63
72
|
```json
|
|
@@ -167,12 +176,12 @@ HANDLER (how you process):
|
|
|
167
176
|
6. Identify the next safe controller action.
|
|
168
177
|
|
|
169
178
|
OUTPUTS (write under output_dir and shared dirs, exact names):
|
|
170
|
-
- workspace_state_discipline.json
|
|
171
|
-
- workspace_state_discipline.md
|
|
172
|
-
- <stage_inspection_dir>/<current_stage_id>/stage_inspection.json
|
|
173
|
-
- <stage_inspection_dir>/<current_stage_id>/stage_inspection.md
|
|
174
|
-
- <intermediate_asset_dir>/intermediate_asset_records.json
|
|
175
|
-
- <intermediate_asset_dir>/intermediate_asset_records.md
|
|
179
|
+
- workspace_state_discipline.json (machine discipline ledger: stage/artifact/path/freshness/rerun/blocker state)
|
|
180
|
+
- workspace_state_discipline.md (agent handoff: discipline tables, findings, next safe action)
|
|
181
|
+
- <stage_inspection_dir>/<current_stage_id>/stage_inspection.json (machine stage gate: checked inputs/outputs, compliance, freshness, assets)
|
|
182
|
+
- <stage_inspection_dir>/<current_stage_id>/stage_inspection.md (agent stage inspection handoff)
|
|
183
|
+
- <intermediate_asset_dir>/intermediate_asset_records.json (machine asset ledger for consumed adapter/downstream artifacts)
|
|
184
|
+
- <intermediate_asset_dir>/intermediate_asset_records.md (agent asset handoff with coverage gaps)
|
|
176
185
|
|
|
177
186
|
RETURN TO CONTROLLER (shared shape, no preamble):
|
|
178
187
|
{ "status": "passed | needs_rerun | blocked", "node": "workspace-state-discipline-inspector",
|
|
@@ -55,15 +55,15 @@ Required durable artifacts:
|
|
|
55
55
|
|
|
56
56
|
| Schedule point | Required artifacts |
|
|
57
57
|
|---|---|
|
|
58
|
-
| Output root lock | `<output_root>/run_manifest.json` |
|
|
59
|
-
| Task understanding | `<task_dir>/task_understanding_router.json`, `<task_dir>/task_understanding_router.md` |
|
|
60
|
-
| Workspace discipline | `<workspace_state_dir>/workspace_state_discipline.json`, `<workspace_state_dir>/workspace_state_discipline.md` |
|
|
61
|
-
| Stage inspection | `<stage_inspection_dir>/<stage_id>/stage_inspection.json`, `<stage_inspection_dir>/<stage_id>/stage_inspection.md` |
|
|
62
|
-
| Intermediate assets | `<intermediate_asset_dir>/intermediate_asset_records.json`, `<intermediate_asset_dir>/intermediate_asset_records.md` |
|
|
63
|
-
| Orchestration | `<orchestration_dir>/workflow_orchestration.json`, `<orchestration_dir>/workflow_orchestration.md` |
|
|
64
|
-
| Final report | `<report_dir>/task_adapter_report.json`, `<report_dir>/task_adapter_report.md` |
|
|
58
|
+
| Output root lock | `<output_root>/run_manifest.json` - task id, raw task, paths/scope, output roots, dependency status, schedule version |
|
|
59
|
+
| Task understanding | `<task_dir>/task_understanding_router.json`, `<task_dir>/task_understanding_router.md` - route decision, focus, evidence, required/missing inputs, downstream sequence |
|
|
60
|
+
| Workspace discipline | `<workspace_state_dir>/workspace_state_discipline.json`, `<workspace_state_dir>/workspace_state_discipline.md` - artifact inventory, path/freshness checks, rerun/blocker history, next actions |
|
|
61
|
+
| Stage inspection | `<stage_inspection_dir>/<stage_id>/stage_inspection.json`, `<stage_inspection_dir>/<stage_id>/stage_inspection.md` - checked inputs/outputs, path/freshness/asset coverage, rerun/blocker routing |
|
|
62
|
+
| Intermediate assets | `<intermediate_asset_dir>/intermediate_asset_records.json`, `<intermediate_asset_dir>/intermediate_asset_records.md` - stable records for every adapter/downstream artifact consumed later |
|
|
63
|
+
| Orchestration | `<orchestration_dir>/workflow_orchestration.json`, `<orchestration_dir>/workflow_orchestration.md` - downstream contracts, expected/observed outputs, stage requests, rerun/blocker routing |
|
|
64
|
+
| Final report | `<report_dir>/task_adapter_report.json`, `<report_dir>/task_adapter_report.md` - final route/status/readiness, verified outputs, stage/asset summaries, blockers |
|
|
65
65
|
|
|
66
|
-
No adapter role may write inside downstream workflow output roots except by invoking the downstream controller with its own declared `output_dir`. Downstream artifacts are referenced by path in intermediate asset records.
|
|
66
|
+
No adapter role may write inside downstream workflow output roots except by invoking the downstream controller with its own declared `output_dir`. Downstream artifacts are referenced by path in intermediate asset records. The validator output root must be the downstream validator's parallel `validation` location, not the migration output root.
|
|
67
67
|
|
|
68
68
|
## Route Matrix
|
|
69
69
|
|
|
@@ -82,7 +82,7 @@ No adapter role may write inside downstream workflow output roots except by invo
|
|
|
82
82
|
|
|
83
83
|
- **Executor**: Leader.
|
|
84
84
|
- **Input**: [dependencies.yaml](dependencies.yaml), user task, optional source/target/output paths.
|
|
85
|
-
- **Action**: verify optional tools and lock `output_root`. Write `run_manifest.json` with task id, timestamp, requested scope, allowed roots, downstream workflow candidates, and schedule version.
|
|
85
|
+
- **Action**: verify optional tools and lock `output_root`. Write `run_manifest.json` with task id, raw task summary, timestamp, requested scope, source/target paths, allowed roots, downstream workflow candidates, dependency status, and schedule version.
|
|
86
86
|
- **Gate**: `run_manifest.json` exists and is non-empty before any role runs.
|
|
87
87
|
|
|
88
88
|
### Step 1 - Task Understanding And Router
|
|
@@ -90,14 +90,14 @@ No adapter role may write inside downstream workflow output roots except by invo
|
|
|
90
90
|
- **Executor**: `task-understanding-router`.
|
|
91
91
|
- **Input**: raw user task, paths, current workspace hints, optional existing analyst/migrator/validator artifact paths.
|
|
92
92
|
- **Action**: normalize request, classify route, select focus, identify missing evidence, create downstream route contract.
|
|
93
|
-
- **Output**: `task_understanding_router.json`, `task_understanding_router.md`.
|
|
93
|
+
- **Output**: `task_understanding_router.json`, `task_understanding_router.md`. Artifacts must contain normalized task summary, route, task kind, focus, source/target/scope fields, existing artifact evidence, required/missing inputs, downstream workflow sequence, stage inspection requirements, intermediate asset requirements, and blockers.
|
|
94
94
|
- **Gate**: route must be one of the route matrix values or `blocked` with missing inputs. No downstream workflow starts on `unknown`.
|
|
95
95
|
|
|
96
96
|
### Step 2 - Workspace State Discipline Init
|
|
97
97
|
|
|
98
98
|
- **Executor**: `workspace-state-discipline-inspector`.
|
|
99
99
|
- **Action**: initialize or refresh workspace discipline ledger, stage inspection index, intermediate asset records, rerun/blocker history.
|
|
100
|
-
- **Output**: `workspace_state_discipline
|
|
100
|
+
- **Output**: `workspace_state_discipline.json`, `.md`, first `stage_inspection.json`, `.md`, and `intermediate_asset_records.json`, `.md`. Artifacts must record adapter artifact inventory, path compliance, freshness, consumed assets, rerun history, blockers, and next safe action.
|
|
101
101
|
- **Gate**: task understanding artifacts and run manifest are recorded as intermediate assets before orchestration.
|
|
102
102
|
|
|
103
103
|
### Step 3 - Workflow Orchestration
|
|
@@ -108,7 +108,7 @@ No adapter role may write inside downstream workflow output roots except by invo
|
|
|
108
108
|
- Record downstream output roots and expected artifacts.
|
|
109
109
|
- After downstream workflow completion, record observed outputs, statuses, blockers, and required reruns.
|
|
110
110
|
- Route stale or missing downstream outputs back to the owning workflow.
|
|
111
|
-
- **Output**: `workflow_orchestration.json`, `workflow_orchestration.md`.
|
|
111
|
+
- **Output**: `workflow_orchestration.json`, `workflow_orchestration.md`. Artifacts must contain downstream dispatch contracts, expected output roots/artifacts, observed downstream outputs, stage inspection requests, intermediate asset updates, rerun requests, and blockers.
|
|
112
112
|
- **Gate**: orchestration cannot claim `completed` until downstream workflow status and required artifact paths are recorded or blockers are explicit.
|
|
113
113
|
|
|
114
114
|
### Step 4 - Stage Inspections
|
|
@@ -123,13 +123,13 @@ No adapter role may write inside downstream workflow output roots except by invo
|
|
|
123
123
|
- `pre_report`
|
|
124
124
|
- `post_report`
|
|
125
125
|
- **Action**: for each applicable point, verify current stage inputs, outputs, freshness, path compliance, intermediate asset coverage, and rerun/blocker routing.
|
|
126
|
-
- **Output**: one `stage_inspection.json` and `.md` per stage id plus refreshed workspace discipline and asset ledgers.
|
|
126
|
+
- **Output**: one `stage_inspection.json` and `.md` per stage id plus refreshed workspace discipline and asset ledgers. Stage inspection artifacts must list checked inputs/outputs, path compliance, freshness checks, intermediate asset coverage, downstream contract checks, rerun requests, blockers, and next allowed stage.
|
|
127
127
|
- **Gate**: final report cannot run unless `pre_report` stage inspection passes or explicitly reports `blocked`.
|
|
128
128
|
|
|
129
129
|
### Step 5 - Intermediate Asset Records
|
|
130
130
|
|
|
131
131
|
- **Executor**: `workspace-state-discipline-inspector` with updates from `workflow-orchestrator`.
|
|
132
|
-
- **Action**: record every durable artifact consumed across stages.
|
|
132
|
+
- **Action**: record every durable adapter and downstream artifact consumed across stages.
|
|
133
133
|
- **Required fields**:
|
|
134
134
|
- `asset_id`
|
|
135
135
|
- `asset_type`
|
|
@@ -148,7 +148,7 @@ No adapter role may write inside downstream workflow output roots except by invo
|
|
|
148
148
|
- **Executor**: `task-reporter`.
|
|
149
149
|
- **Input**: run manifest, task understanding, workflow orchestration, latest workspace discipline, stage inspections, intermediate asset records, downstream reports.
|
|
150
150
|
- **Action**: synthesize a final machine-routable task report. Do not run new analysis, migration, validation, tests, or fixes.
|
|
151
|
-
- **Output**: `task_adapter_report.json`, `task_adapter_report.md`.
|
|
151
|
+
- **Output**: `task_adapter_report.json`, `task_adapter_report.md`. Artifacts must summarize final status, route, focus, source/target paths, downstream workflow results, stage inspections, intermediate assets, verified outputs, readiness, rerun requests, blockers, and report path.
|
|
152
152
|
- **Gate**: report status is `completed`, `ready_for_validation`, `failed`, or `blocked` only from verified evidence.
|
|
153
153
|
|
|
154
154
|
## Final Report Shape
|