owflow 0.6.0 → 0.7.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.
Files changed (195) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +448 -283
  3. package/dist/agents/bottleneck-analyzer.md +332 -333
  4. package/dist/agents/code-quality-pragmatist.md +353 -354
  5. package/dist/agents/code-reviewer.md +238 -239
  6. package/dist/agents/codebase-analysis-reporter.md +245 -246
  7. package/dist/agents/docs-operator.md +22 -23
  8. package/dist/agents/e2e-test-verifier.md +447 -448
  9. package/dist/agents/gap-analyzer.md +501 -502
  10. package/dist/agents/implementation-completeness-checker.md +219 -220
  11. package/dist/agents/implementation-planner.md +308 -309
  12. package/dist/agents/information-gatherer.md +690 -691
  13. package/dist/agents/production-readiness-checker.md +278 -279
  14. package/dist/agents/project-analyzer.md +403 -403
  15. package/dist/agents/reality-assessor.md +365 -366
  16. package/dist/agents/research-planner.md +449 -450
  17. package/dist/agents/research-synthesizer.md +402 -403
  18. package/dist/agents/solution-brainstormer.md +256 -257
  19. package/dist/agents/solution-designer.md +371 -372
  20. package/dist/agents/spec-auditor.md +297 -298
  21. package/dist/agents/specification-creator.md +333 -334
  22. package/dist/agents/task-classifier.md +449 -450
  23. package/dist/agents/task-group-implementer.md +283 -284
  24. package/dist/agents/test-suite-runner.md +194 -195
  25. package/dist/agents/user-docs-generator.md +508 -509
  26. package/dist/commands/reviews-code.md +90 -90
  27. package/dist/commands/reviews-pragmatic.md +99 -99
  28. package/dist/commands/reviews-production-readiness.md +113 -113
  29. package/dist/commands/reviews-reality-check.md +110 -110
  30. package/dist/commands/reviews-spec-audit.md +114 -114
  31. package/dist/commands/work.md +280 -280
  32. package/dist/configuration/agents-config.d.ts +2 -0
  33. package/dist/configuration/agents-config.js +8 -44
  34. package/dist/configuration/commands-config.d.ts +23 -0
  35. package/dist/configuration/commands-config.js +17 -17
  36. package/dist/configuration/skills-config.d.ts +2 -0
  37. package/dist/configuration/skills-config.js +3 -3
  38. package/dist/hooks/hooks-diagnostics.d.ts +3 -0
  39. package/dist/hooks/hooks-diagnostics.js +21 -0
  40. package/dist/hooks/hooks-persistence.d.ts +17 -0
  41. package/dist/hooks/hooks-persistence.js +207 -0
  42. package/dist/hooks/hooks-registry.d.ts +6 -0
  43. package/dist/hooks/hooks-registry.js +104 -0
  44. package/dist/hooks/hooks-wrapper.d.ts +25 -0
  45. package/dist/hooks/hooks-wrapper.js +318 -0
  46. package/dist/hooks/internal/before-tool.d.ts +6 -0
  47. package/dist/hooks/internal/before-tool.js +13 -0
  48. package/dist/hooks/internal/session-compaction.d.ts +9 -0
  49. package/dist/hooks/{session-compaction.js → internal/session-compaction.js} +9 -7
  50. package/dist/hooks/runtime/circuit-breaker.d.ts +23 -0
  51. package/dist/hooks/runtime/circuit-breaker.js +39 -0
  52. package/dist/hooks/runtime/failure-policy.d.ts +15 -0
  53. package/dist/hooks/runtime/failure-policy.js +49 -0
  54. package/dist/hooks/runtime/process-executor.d.ts +33 -0
  55. package/dist/hooks/runtime/process-executor.js +147 -0
  56. package/dist/hooks/runtime/status-recorder.d.ts +27 -0
  57. package/dist/hooks/runtime/status-recorder.js +111 -0
  58. package/dist/index.d.ts +7 -0
  59. package/dist/index.js +111 -40
  60. package/dist/skills/agents-md-generator/SKILL.md +223 -223
  61. package/dist/skills/codebase-analyzer/SKILL.md +162 -162
  62. package/dist/skills/codebase-analyzer/references/code-analysis.md +63 -63
  63. package/dist/skills/codebase-analyzer/references/combined.md +31 -31
  64. package/dist/skills/codebase-analyzer/references/context-discovery.md +63 -63
  65. package/dist/skills/codebase-analyzer/references/file-discovery.md +51 -51
  66. package/dist/skills/codebase-analyzer/references/migration-target.md +23 -23
  67. package/dist/skills/codebase-analyzer/references/pattern-mining.md +22 -22
  68. package/dist/skills/dev-analyze/SKILL.md +115 -115
  69. package/dist/skills/dev-bugfix/SKILL.md +452 -452
  70. package/dist/skills/dev-finalize/SKILL.md +118 -118
  71. package/dist/skills/dev-implement/SKILL.md +167 -167
  72. package/dist/skills/dev-plan/SKILL.md +147 -147
  73. package/dist/skills/dev-spec/SKILL.md +182 -182
  74. package/dist/skills/dev-tdd-red/SKILL.md +94 -94
  75. package/dist/skills/dev-verify/SKILL.md +153 -153
  76. package/dist/skills/development/SKILL.md +260 -260
  77. package/dist/skills/diagrams-mermaid/SKILL.md +183 -159
  78. package/dist/skills/diagrams-mermaid/references/reference.md +220 -148
  79. package/dist/skills/docs-manager/SKILL.md +379 -379
  80. package/dist/skills/docs-manager/docs/INDEX.md +199 -199
  81. package/dist/skills/docs-manager/docs/standards/backend/api.md +25 -25
  82. package/dist/skills/docs-manager/docs/standards/backend/migrations.md +22 -22
  83. package/dist/skills/docs-manager/docs/standards/backend/models.md +25 -25
  84. package/dist/skills/docs-manager/docs/standards/backend/queries.md +22 -22
  85. package/dist/skills/docs-manager/docs/standards/frontend/accessibility.md +25 -25
  86. package/dist/skills/docs-manager/docs/standards/frontend/components.md +28 -28
  87. package/dist/skills/docs-manager/docs/standards/frontend/css.md +16 -16
  88. package/dist/skills/docs-manager/docs/standards/frontend/responsive.md +28 -28
  89. package/dist/skills/docs-manager/docs/standards/global/coding-style.md +25 -25
  90. package/dist/skills/docs-manager/docs/standards/global/commenting.md +10 -10
  91. package/dist/skills/docs-manager/docs/standards/global/conventions.md +31 -31
  92. package/dist/skills/docs-manager/docs/standards/global/error-handling.md +22 -22
  93. package/dist/skills/docs-manager/docs/standards/global/minimal-implementation.md +22 -22
  94. package/dist/skills/docs-manager/docs/standards/global/validation.md +28 -28
  95. package/dist/skills/docs-manager/docs/standards/testing/test-writing.md +25 -25
  96. package/dist/skills/docs-manager/references/agents-md-template.md +29 -29
  97. package/dist/skills/docs-manager/references/index-md-template.md +73 -73
  98. package/dist/skills/flow-init/SKILL.md +234 -234
  99. package/dist/skills/flow-init/references/architecture-template.md +45 -45
  100. package/dist/skills/flow-init/references/roadmap-templates.md +93 -93
  101. package/dist/skills/flow-init/references/tech-stack-template.md +70 -70
  102. package/dist/skills/flow-init/references/vision-templates.md +75 -75
  103. package/dist/skills/goal-development/SKILL.md +96 -96
  104. package/dist/skills/goal-migration/SKILL.md +114 -114
  105. package/dist/skills/goal-performance/SKILL.md +126 -126
  106. package/dist/skills/goal-research/SKILL.md +118 -118
  107. package/dist/skills/html-renderer/SKILL.md +173 -173
  108. package/dist/skills/html-renderer/references/index.html +318 -318
  109. package/dist/skills/html-renderer/references/styles.css +388 -388
  110. package/dist/skills/html-renderer/references/tokens.json +104 -104
  111. package/dist/skills/implementation-plan-executor/SKILL.md +378 -378
  112. package/dist/skills/implementation-verifier/SKILL.md +307 -307
  113. package/dist/skills/migration/SKILL.md +268 -268
  114. package/dist/skills/migration-analyze/SKILL.md +126 -126
  115. package/dist/skills/migration-finalize/SKILL.md +161 -161
  116. package/dist/skills/migration-fix/SKILL.md +155 -155
  117. package/dist/skills/migration-implement/SKILL.md +131 -131
  118. package/dist/skills/migration-plan/SKILL.md +131 -131
  119. package/dist/skills/migration-spec/SKILL.md +135 -135
  120. package/dist/skills/migration-spec/references/migration-strategies.md +430 -430
  121. package/dist/skills/migration-target/SKILL.md +134 -134
  122. package/dist/skills/migration-target/references/migration-types.md +489 -489
  123. package/dist/skills/migration-verify/SKILL.md +184 -184
  124. package/dist/skills/orchestrator-framework/SKILL.md +65 -65
  125. package/dist/skills/orchestrator-framework/references/command-namespacing.md +7 -7
  126. package/dist/skills/orchestrator-framework/references/confirm-or-revise-exception.md +20 -20
  127. package/dist/skills/orchestrator-framework/references/delegation-rules.md +54 -54
  128. package/dist/skills/orchestrator-framework/references/dispatcher-handoff.md +27 -27
  129. package/dist/skills/orchestrator-framework/references/fix-loop-contract.md +65 -65
  130. package/dist/skills/orchestrator-framework/references/gate-contract.md +122 -122
  131. package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +51 -51
  132. package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +235 -235
  133. package/dist/skills/performance/SKILL.md +267 -267
  134. package/dist/skills/performance-analyze/SKILL.md +129 -129
  135. package/dist/skills/performance-analyze/references/performance-optimization-guide.md +271 -271
  136. package/dist/skills/performance-finalize/SKILL.md +117 -117
  137. package/dist/skills/performance-implement/SKILL.md +114 -114
  138. package/dist/skills/performance-plan/SKILL.md +112 -112
  139. package/dist/skills/performance-spec/SKILL.md +145 -145
  140. package/dist/skills/performance-verify/SKILL.md +164 -164
  141. package/dist/skills/research/SKILL.md +249 -249
  142. package/dist/skills/research-brainstorm/SKILL.md +120 -120
  143. package/dist/skills/research-brainstorm/references/brainstorming-techniques.md +84 -84
  144. package/dist/skills/research-converge/SKILL.md +130 -130
  145. package/dist/skills/research-design/SKILL.md +146 -146
  146. package/dist/skills/research-design/references/design-techniques.md +40 -40
  147. package/dist/skills/research-finalize/SKILL.md +125 -125
  148. package/dist/skills/research-fork/SKILL.md +190 -190
  149. package/dist/skills/research-gather/SKILL.md +133 -133
  150. package/dist/skills/research-plan/SKILL.md +141 -141
  151. package/dist/skills/research-plan/references/research-methodologies.md +710 -710
  152. package/dist/skills/research-quick/SKILL.md +139 -139
  153. package/dist/skills/research-synthesize/SKILL.md +127 -127
  154. package/dist/skills/rule-reviewer/SKILL.md +334 -334
  155. package/dist/skills/standards-discover/SKILL.md +260 -260
  156. package/dist/skills/standards-discover/references/aggregation-strategy.md +76 -76
  157. package/dist/skills/standards-discover/references/code-pattern-prompt.md +68 -68
  158. package/dist/skills/standards-discover/references/config-analyzer-prompt.md +67 -67
  159. package/dist/skills/standards-discover/references/docs-extractor-prompt.md +65 -65
  160. package/dist/skills/standards-discover/references/external-analyzer-prompt.md +75 -75
  161. package/dist/skills/standards-update/SKILL.md +207 -207
  162. package/dist/templates/orchestrator-state-base.yml +17 -17
  163. package/dist/templates/orchestrator-state-development.yml +95 -95
  164. package/dist/templates/orchestrator-state-migration.yml +95 -95
  165. package/dist/templates/orchestrator-state-performance.yml +64 -64
  166. package/dist/templates/orchestrator-state-research.yml +67 -67
  167. package/dist/tools/fork_task.d.ts +17 -0
  168. package/dist/tools/fork_task.js +21 -11
  169. package/dist/tools/verify_template.d.ts +11 -0
  170. package/dist/tools/verify_template.js +32 -17
  171. package/dist/tui/hooks-dialogs.d.ts +20 -0
  172. package/dist/tui/hooks-dialogs.js +181 -0
  173. package/dist/tui/hooks-presenter.d.ts +15 -0
  174. package/dist/tui/hooks-presenter.js +70 -0
  175. package/dist/tui/hooks-sidebar.d.ts +10 -0
  176. package/dist/tui/hooks-sidebar.js +104 -0
  177. package/dist/tui/primitives.d.ts +21 -0
  178. package/dist/tui/primitives.js +47 -0
  179. package/dist/tui.d.ts +12 -0
  180. package/dist/tui.js +129 -0
  181. package/dist/types/hook-types.d.ts +125 -0
  182. package/dist/types/hook-types.js +76 -0
  183. package/dist/types/opencode-types.d.ts +13 -0
  184. package/dist/utils/file-util.d.ts +2 -0
  185. package/dist/utils/file-util.js +6 -6
  186. package/dist/utils/fork-task.d.ts +27 -0
  187. package/dist/utils/fork-task.js +18 -23
  188. package/dist/utils/plugin-info.d.ts +3 -0
  189. package/dist/utils/plugin-info.js +8 -10
  190. package/dist/utils/workflow-paths.d.ts +17 -0
  191. package/dist/utils/workflow-paths.js +18 -0
  192. package/dist/utils/yaml-structure.d.ts +7 -0
  193. package/dist/utils/yaml-structure.js +7 -11
  194. package/package.json +68 -48
  195. package/dist/hooks/before-tool.js +0 -19
@@ -1,184 +1,184 @@
1
- ---
2
- name: owflow:migration-verify
3
- description: Migration — settles all verification options in one gate, delegates the reused verifier, runs the 4 migration compatibility checks, and owns options-chosen then verification-done.
4
- argument-hint: "[task-path-or-identifier]"
5
- user-invocable: true
6
- ---
7
-
8
- # Migration Verify — Options, Verification & Compatibility Checks (options-chosen, verification-done)
9
-
10
- Work phase of the migration workflow. Runs in a **fixed order**: options gate → reused `implementation-verifier` → the 4 migration compatibility checks → `verification-done`. Compatibility checks run **after** the verifier so they consume its verified baseline. Compatibility outcomes are persisted as the `verification_context.compatibility_status` state fact; the Exit Gate itself never mutates phase state.
11
-
12
- ## Entry Gate
13
-
14
- ### 1. Argument resolution
15
-
16
- Resolve the `task-path-or-identifier` argument BEFORE anything else (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)):
17
-
18
- - **Path** (absolute or project-relative) to the task directory — use as-is.
19
- - **Identifier** — exact directory name inside `.owflow/tasks/migrations/` (e.g., `2026-01-12-framework-upgrade`); resolve to its path.
20
- - Missing argument, a path that does **not exist**, or no identifier match → print the blocked block (part 3), then STOP. Never guess or auto-pick a task.
21
-
22
- ### 2. Prerequisites
23
-
24
- | Required for this skill | Where verified | Produced by |
25
- | ----------------------- | -------------------------------------------------------------------- | -------------------------------------- |
26
- | State file exists | `<task-path>/orchestrator-state.yml` | `/owflow:migration <description>` (dispatcher init) or mid-pipeline bootstrap |
27
- | Migration executed | `migration-executed` in `completed_phases` **and** `implementation/work-log.md` exists | `/owflow:migration-implement <task-path>` |
28
- | Verifier inputs present | `implementation/implementation-plan.md`, `implementation/spec.md`, **and** `implementation/work-log.md` exist (the reused verifier's required inputs) | `/owflow:migration-plan`, `/owflow:migration-spec`, `/owflow:migration-implement` |
29
-
30
- ### 3. Blocked output
31
-
32
- 1. Steps that must be completed first (in order), each with its command:
33
- - Migration execution (`migration-executed`) → `/owflow:migration-implement <task-path>`
34
- - Implementation planning (`plan-created`) → `/owflow:migration-plan <task-path>` (if also missing)
35
- - Strategy specification (`strategy-specified`) → `/owflow:migration-spec <task-path>` (if also missing)
36
- - Target state planning (`target-planned`) → `/owflow:migration-target <task-path>` (if also missing)
37
- - Current-state analysis (`state-analysed`) → `/owflow:migration-analyze <task-path>` (if also missing)
38
- - State initialization → `/owflow:migration <description>` (new task)
39
- 2. List available migration-task identifiers (directories under `.owflow/tasks/migrations/`) to resume from, if any.
40
- 3. Hint: `Run /owflow:migration <description> to start a migration task from scratch, or pass a task path/identifier to resume.`
41
-
42
- Then STOP — never guess or auto-pick a task.
43
-
44
- ### 4. Missing-state bootstrap
45
-
46
- When the only unmet prerequisite is the state file, use `question` — "No task exists at this path. Create a fresh standard migration task and start at `options-chosen`?" with **Create task** / **Decline**.
47
-
48
- - **On confirm**: create `.owflow/tasks/migrations/YYYY-MM-DD-task-name/` + `orchestrator-state.yml` from the migration template with `orchestrator.entry_point: "migration-verify (mid-pipeline bootstrap)"`, `orchestrator.started_phase: options-chosen`, `completed_phases: []`, `task.title`/`task.description` from the argument. Run `verify_template` (`orchestrator-state-migration.yml`) immediately. Creates state ONLY — `implementation/work-log.md` still blocks, so bootstrapping never skips upstream work.
49
- - **On decline**: print `No migration task found at <path>. Run /owflow:migration <description> to start a migration task from scratch.` and STOP.
50
-
51
- ### 5. Skip/resume — artifacts before state
52
-
53
- - `verification/implementation-verification.md` exists but `verification-done` is missing ⇒ **adopt**: do not re-run the verifier; backfill `verification_context.last_status` and `verification_context.issues_found` from the report summary, continue at the compatibility checks, then append `verification-done`.
54
- - `verification-done` is present but `verification/implementation-verification.md` is missing ⇒ **drop** `verification-done` from `completed_phases` and re-run.
55
- - `options-chosen` is present with settled `options.*` values ⇒ never re-ask; report the existing decision and continue at the verifier step (or route to the Exit Gate when `verification-done` is also present).
56
- - Re-verification (`options-chosen` + `verification-done` already complete, invoked after fixes) ⇒ confirm scope via `question` — full re-run vs only failed checks.
57
- - A `null` option key is unsettled — include it in the options gate; a `null` tri-state `docs_enabled` means the options gate has not run yet.
58
-
59
- ### 6. Conditional activation
60
-
61
- Not applicable — `migration-verify` runs whenever its prerequisites are met. (Its own outputs activate the downstream conditionals: `migration-fix` and `migration-finalize`.)
62
-
63
- ### 7. Recovery
64
-
65
- | Step | Max Attempts | Strategy |
66
- | ------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
67
- | Options gate (`options-chosen`) | 1 | Re-present one consolidated gate; all 7 keys settle together |
68
- | Verification (`verification-done`) | 3 | Fix-then-reverify (max 3 cycles). **HALT on data integrity**: a failed data-integrity check is never auto-fixed — record ❌ with evidence and recommend rollback (explicit user confirmation required) |
69
-
70
- ## Execute
71
-
72
- **Read first**: the [Delegation Rules](../orchestrator-framework/references/delegation-rules.md), then read `../migration-spec/references/migration-strategies.md` (compatibility and rollback/dual-run testing content) and `../migration-target/references/migration-types.md` (per-type verification focus).
73
-
74
- | Direction | Artifact | Producer |
75
- | --------- | ------------------------------------------- | ----------------------------------------------------------------- |
76
- | Consumed | `implementation/implementation-plan.md`, `implementation/work-log.md` | `migration-plan`, `implementation-plan-executor` |
77
- | Consumed | `analysis/rollback-plan.md`, `analysis/dual-run-plan.md` (conditional) | `migration-spec` |
78
- | Produced | `verification/implementation-verification.md` | `implementation-verifier` (**Skill**, reused 0 changes) |
79
- | Produced | `verification/compatibility-test-results.md` | inline compatibility checks (direct, no delegation) |
80
-
81
- **Fixed order — do not reorder: (1) options gate → (2) `implementation-verifier` → (3) compatibility checks → (4) `verification-done`.**
82
-
83
- ### 1. Verification Options (`options-chosen`, inline)
84
-
85
- **Step 1** — display the plan:
86
-
87
- ```
88
- Verification Plan:
89
- Obligatory (always run):
90
- ✓ Completeness check
91
- ✓ Test suite (skipped — passed during implementation; re-enabled after fixes)
92
- Recommended (adjustable):
93
- ✓ Code review — quality and security analysis
94
- ✓ Pragmatic review — detects over-engineering
95
- ✓ Reality check — validates the migration solves the problem
96
- ✓ Production readiness — deployment readiness checks
97
- Conditional:
98
- [✓/—] Operator migration guide — [reason]
99
- ```
100
-
101
- **Step 2 — one consolidated gate** (2 `question`s, all 7 keys settle together):
102
-
103
- - **Q1** (always): `question` (multi-select) — "Which standard verifications to run?" Options: "Code review (Recommended)", "Pragmatic review (Recommended)", "Reality check (Recommended)", "Production readiness (Recommended)". All pre-selected.
104
- - **Q2** (always): "Generate the operator migration guide in `migration-finalize`?" — "Yes" / "No, skip".
105
-
106
- Set **all 7** `options.*` keys in one state write: `code_review_enabled`, `pragmatic_review_enabled`, `reality_check_enabled`, `production_check_enabled` from Q1; `code_review_scope: "all"` when code review is enabled, else `null`; `skip_test_suite: true` (**auto-set** — the full suite passed during implementation; `migration-fix` resets it to `false` after code changes); `docs_enabled` from Q2 (tri-state: `null` only before this gate; never left `null` afterwards).
107
-
108
- **State write**: append `options-chosen`; write all 7 `options.*` keys; bump `orchestrator.updated`; re-read + `verify_template`. **This write happens BEFORE the verifier runs** — the verifier reads its flags from state, and `null` keys make it warn-and-prompt once per key.
109
-
110
- ### 2. Delegate Verification (first `verification-done` step)
111
-
112
- Skill tool — `implementation-verifier` (reused, 0 changes). Pass: `task_path`, `task_description`, the chosen options, and `verification_context` when re-verifying. It is read-only (reports, never fixes) and writes `verification/implementation-verification.md`; capture its structured output (`status`, `issues[]`, `issue_counts`).
113
-
114
- **Write immediately**: `verification_context.last_status` (`passed` / `passed_with_issues` / `failed`), `verification_context.issues_found` (aggregate counts), `migration_outputs.implementation_verification`; bump `orchestrator.updated`; re-read + `verify_template`. **Do not run the compatibility checks before this write** — they consume this verified baseline.
115
-
116
- ### 3. Migration Compatibility Checks (`compatibility-test-results.md`, inline)
117
-
118
- Author the 4 checks directly (no delegation). Record each check's **Status (Pass / Fail / Not-applicable)**, **Evidence**, and notes; a not-applicable check is recorded explicitly, never silently omitted; close with an overall compatibility verdict.
119
-
120
- 1. **Dual-run liveness** — the old system still works while dual-run is configured. Read `migration_context.dual_run_configured`; `false` ⇒ **Not-applicable** (recorded explicitly). `true` ⇒ verify both systems stay live and synchronized per `analysis/dual-run-plan.md`.
121
- 2. **Non-destructive rollback test** — exercise the `analysis/rollback-plan.md` procedures in a non-production or isolated context **without destroying current state**; verify the documented validation criteria and time estimate.
122
- 3. **Data integrity** — for data migrations (and any migration that moves/transforms data): 100% row-count, checksum, and business-rule validation against the verified baseline (per-type focus: data). Failure is a **HALT-class result**: record ❌ with evidence, never auto-fix, never retry into a pass; recommend rollback (explicit user confirmation required).
123
- 4. **Before/after performance** — baseline comparison of key metrics before vs after; for code/architecture types this also carries the per-type focus (functional equivalence / system-level behavior).
124
-
125
- Write `verification/compatibility-test-results.md`; then write `migration_outputs.compatibility_test_results`, `phase_summaries.verify.summary`, and `verification_context.compatibility_status` — `passed` when no check is ❌, `failed` when any check is ❌ (⚠ concerns do not block) — bump `orchestrator.updated`; re-read + `verify_template`. `compatibility_status` is the persisted overall check verdict consumed by the `migration-fix` / `migration-finalize` gates; it is a check result written during Execute, never an Exit-Gate mutation.
126
-
127
- ### 4. Complete Verification (`verification-done`)
128
-
129
- Append `verification-done` only once the verifier AND all 4 compatibility checks have run. ⚠/❌ verdicts are results shown in the results box; they are **never Exit-Gate state mutations** — the state facts are `verification_context.last_status`, `issues_found`, `compatibility_status`, and the compatibility report. If the verifier itself cannot run or report, do NOT append; use `failed_phases` + `auto_fix_attempts["verification-done"]`.
130
-
131
- ## State Update Convention (per step)
132
-
133
- 1. **Write immediately** — update `orchestrator-state.yml` as soon as each step completes: options after the options gate (before the verifier); `last_status`/`issues_found` right after the verifier (before the checks); `compatibility_status` + the compatibility paths after the checks; `verification-done` last. Never batch.
134
- 2. **Timestamp** — set `orchestrator.updated` to the current UTC timestamp on every write.
135
- 3. **Failures** — a failed or abandoned step is NOT appended to `completed_phases`; append its slug to `orchestrator.failed_phases` and increment `auto_fix_attempts["<slug>"]`.
136
- 4. **Validate** — after every write, re-read the file to confirm values, then run the `verify_template` tool with `filePath: <task-path>/orchestrator-state.yml`, `templateName: orchestrator-state-migration.yml`. Fix any reported issue immediately.
137
- 5. **Final check** — before the Exit Gate, one consolidated re-read + `verify_template` run.
138
-
139
- ## Exit Gate
140
-
141
- Present results, get user confirmation, then hand off (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)). Never auto-invoke the next skill.
142
-
143
- ### Results box
144
-
145
- ```markdown
146
- ## ✅ MIGRATION VERIFY COMPLETE — <task name>
147
-
148
- **Verifier status** — [✅ passed / ⚠ passed_with_issues / ❌ failed]
149
- **Issues found** — [N] ([C] critical / [W] warning / [I] info)
150
- **Compatibility checks** — dual-run [✅ / — N/A] · rollback [✅ / ❌] · data integrity [✅ / ❌ / N/A] · performance [✅ / ⚠ / ❌]
151
- **Overall compatibility** — [✅ compatible / ⚠ compatible with concerns / ❌ not compatible]
152
- **Data integrity** — [✅ verified / ❌ HALT — recommend user-confirmed rollback]
153
- **Options** — code review [on/off] · pragmatic [on/off] · production [on/off] · reality [on/off] · operator guide [yes/no]
154
-
155
- **Artifacts**
156
-
157
- - `verification/implementation-verification.md`
158
- - `verification/compatibility-test-results.md`
159
- - `verification/code-review-report.md`, `verification/pragmatic-review.md`, `verification/production-readiness-report.md`, `verification/reality-check.md` [each if run]
160
- ```
161
-
162
- ### Results-acceptance question
163
-
164
- Use `question` — "Are these results correct?" with options:
165
-
166
- - **Accept** — the verification outcome is good (including an approved proceed-with-warnings); continue.
167
- - **Adjust** — run additional fixes and/or another verification round within the max-3 contract, update state and artifacts, re-present the results box.
168
- - **Discuss** — walk through specific findings (issue details, compatibility evidence, data-integrity status) in more depth; then re-ask.
169
- - **Stop here** — print the resume command (`/owflow:migration-verify <task-path>`) and end.
170
-
171
- ### Next steps (after Accept)
172
-
173
- Render ONLY the row whose condition matches the state; list the other branch under Other options:
174
-
175
- - `→ /owflow:migration-fix <task-path>` — `required` — only when `verification_context.compatibility_status = failed` **or** (`verification_context.last_status != passed` and no recorded deliberate skip): resolves issues with the data-integrity HALT and re-verifies (max 3 iterations). Remaining after: finalize.
176
- - `→ /owflow:migration-finalize <task-path>` — `required` — only when `compatibility_status = passed` **and** the fix phase is settled (`last_status = passed`, or `issues-resolved`/approval, or a recorded deliberate skip): author the operator guide when enabled, then complete the task. Remaining after: none — workflow ends.
177
-
178
- **Other options**:
179
-
180
- - The branch not rendered above (`migration-fix` when the finalize condition holds, or `migration-finalize` when fix is required)
181
- - `/owflow:migration-verify <task-path>` — `optional` — re-verification after fixes: re-runs the verifier and the 4 compatibility checks (settles `last_status` and `compatibility_status`; confirm full re-run vs only failed checks)
182
- - `/owflow:goal-migration <task-path>` — `optional` shortcut: runs all remaining phases in one loop (fix when needed → finalize)
183
-
184
- Then STOP.
1
+ ---
2
+ name: owflow:migration-verify
3
+ description: Migration — settles all verification options in one gate, delegates the reused verifier, runs the 4 migration compatibility checks, and owns options-chosen then verification-done.
4
+ argument-hint: "[task-path-or-identifier]"
5
+ user-invocable: true
6
+ ---
7
+
8
+ # Migration Verify — Options, Verification & Compatibility Checks (options-chosen, verification-done)
9
+
10
+ Work phase of the migration workflow. Runs in a **fixed order**: options gate → reused `implementation-verifier` → the 4 migration compatibility checks → `verification-done`. Compatibility checks run **after** the verifier so they consume its verified baseline. Compatibility outcomes are persisted as the `verification_context.compatibility_status` state fact; the Exit Gate itself never mutates phase state.
11
+
12
+ ## Entry Gate
13
+
14
+ ### 1. Argument resolution
15
+
16
+ Resolve the `task-path-or-identifier` argument BEFORE anything else (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)):
17
+
18
+ - **Path** (absolute or project-relative) to the task directory — use as-is.
19
+ - **Identifier** — exact directory name inside `.owflow/tasks/migrations/` (e.g., `2026-01-12-framework-upgrade`); resolve to its path.
20
+ - Missing argument, a path that does **not exist**, or no identifier match → print the blocked block (part 3), then STOP. Never guess or auto-pick a task.
21
+
22
+ ### 2. Prerequisites
23
+
24
+ | Required for this skill | Where verified | Produced by |
25
+ | ----------------------- | -------------------------------------------------------------------- | -------------------------------------- |
26
+ | State file exists | `<task-path>/orchestrator-state.yml` | `/owflow:migration <description>` (dispatcher init) or mid-pipeline bootstrap |
27
+ | Migration executed | `migration-executed` in `completed_phases` **and** `implementation/work-log.md` exists | `/owflow:migration-implement <task-path>` |
28
+ | Verifier inputs present | `implementation/implementation-plan.md`, `implementation/spec.md`, **and** `implementation/work-log.md` exist (the reused verifier's required inputs) | `/owflow:migration-plan`, `/owflow:migration-spec`, `/owflow:migration-implement` |
29
+
30
+ ### 3. Blocked output
31
+
32
+ 1. Steps that must be completed first (in order), each with its command:
33
+ - Migration execution (`migration-executed`) → `/owflow:migration-implement <task-path>`
34
+ - Implementation planning (`plan-created`) → `/owflow:migration-plan <task-path>` (if also missing)
35
+ - Strategy specification (`strategy-specified`) → `/owflow:migration-spec <task-path>` (if also missing)
36
+ - Target state planning (`target-planned`) → `/owflow:migration-target <task-path>` (if also missing)
37
+ - Current-state analysis (`state-analysed`) → `/owflow:migration-analyze <task-path>` (if also missing)
38
+ - State initialization → `/owflow:migration <description>` (new task)
39
+ 2. List available migration-task identifiers (directories under `.owflow/tasks/migrations/`) to resume from, if any.
40
+ 3. Hint: `Run /owflow:migration <description> to start a migration task from scratch, or pass a task path/identifier to resume.`
41
+
42
+ Then STOP — never guess or auto-pick a task.
43
+
44
+ ### 4. Missing-state bootstrap
45
+
46
+ When the only unmet prerequisite is the state file, use `question` — "No task exists at this path. Create a fresh standard migration task and start at `options-chosen`?" with **Create task** / **Decline**.
47
+
48
+ - **On confirm**: create `.owflow/tasks/migrations/YYYY-MM-DD-task-name/` + `orchestrator-state.yml` from the migration template with `orchestrator.entry_point: "migration-verify (mid-pipeline bootstrap)"`, `orchestrator.started_phase: options-chosen`, `completed_phases: []`, `task.title`/`task.description` from the argument. Run `verify_template` (`orchestrator-state-migration.yml`) immediately. Creates state ONLY — `implementation/work-log.md` still blocks, so bootstrapping never skips upstream work.
49
+ - **On decline**: print `No migration task found at <path>. Run /owflow:migration <description> to start a migration task from scratch.` and STOP.
50
+
51
+ ### 5. Skip/resume — artifacts before state
52
+
53
+ - `verification/implementation-verification.md` exists but `verification-done` is missing ⇒ **adopt**: do not re-run the verifier; backfill `verification_context.last_status` and `verification_context.issues_found` from the report summary, continue at the compatibility checks, then append `verification-done`.
54
+ - `verification-done` is present but `verification/implementation-verification.md` is missing ⇒ **drop** `verification-done` from `completed_phases` and re-run.
55
+ - `options-chosen` is present with settled `options.*` values ⇒ never re-ask; report the existing decision and continue at the verifier step (or route to the Exit Gate when `verification-done` is also present).
56
+ - Re-verification (`options-chosen` + `verification-done` already complete, invoked after fixes) ⇒ confirm scope via `question` — full re-run vs only failed checks.
57
+ - A `null` option key is unsettled — include it in the options gate; a `null` tri-state `docs_enabled` means the options gate has not run yet.
58
+
59
+ ### 6. Conditional activation
60
+
61
+ Not applicable — `migration-verify` runs whenever its prerequisites are met. (Its own outputs activate the downstream conditionals: `migration-fix` and `migration-finalize`.)
62
+
63
+ ### 7. Recovery
64
+
65
+ | Step | Max Attempts | Strategy |
66
+ | ------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
67
+ | Options gate (`options-chosen`) | 1 | Re-present one consolidated gate; all 7 keys settle together |
68
+ | Verification (`verification-done`) | 3 | Fix-then-reverify (max 3 cycles). **HALT on data integrity**: a failed data-integrity check is never auto-fixed — record ❌ with evidence and recommend rollback (explicit user confirmation required) |
69
+
70
+ ## Execute
71
+
72
+ **Read first**: the [Delegation Rules](../orchestrator-framework/references/delegation-rules.md), then read `../migration-spec/references/migration-strategies.md` (compatibility and rollback/dual-run testing content) and `../migration-target/references/migration-types.md` (per-type verification focus).
73
+
74
+ | Direction | Artifact | Producer |
75
+ | --------- | ------------------------------------------- | ----------------------------------------------------------------- |
76
+ | Consumed | `implementation/implementation-plan.md`, `implementation/work-log.md` | `migration-plan`, `implementation-plan-executor` |
77
+ | Consumed | `analysis/rollback-plan.md`, `analysis/dual-run-plan.md` (conditional) | `migration-spec` |
78
+ | Produced | `verification/implementation-verification.md` | `implementation-verifier` (**Skill**, reused 0 changes) |
79
+ | Produced | `verification/compatibility-test-results.md` | inline compatibility checks (direct, no delegation) |
80
+
81
+ **Fixed order — do not reorder: (1) options gate → (2) `implementation-verifier` → (3) compatibility checks → (4) `verification-done`.**
82
+
83
+ ### 1. Verification Options (`options-chosen`, inline)
84
+
85
+ **Step 1** — display the plan:
86
+
87
+ ```
88
+ Verification Plan:
89
+ Obligatory (always run):
90
+ ✓ Completeness check
91
+ ✓ Test suite (skipped — passed during implementation; re-enabled after fixes)
92
+ Recommended (adjustable):
93
+ ✓ Code review — quality and security analysis
94
+ ✓ Pragmatic review — detects over-engineering
95
+ ✓ Reality check — validates the migration solves the problem
96
+ ✓ Production readiness — deployment readiness checks
97
+ Conditional:
98
+ [✓/—] Operator migration guide — [reason]
99
+ ```
100
+
101
+ **Step 2 — one consolidated gate** (2 `question`s, all 7 keys settle together):
102
+
103
+ - **Q1** (always): `question` (multi-select) — "Which standard verifications to run?" Options: "Code review (Recommended)", "Pragmatic review (Recommended)", "Reality check (Recommended)", "Production readiness (Recommended)". All pre-selected.
104
+ - **Q2** (always): "Generate the operator migration guide in `migration-finalize`?" — "Yes" / "No, skip".
105
+
106
+ Set **all 7** `options.*` keys in one state write: `code_review_enabled`, `pragmatic_review_enabled`, `reality_check_enabled`, `production_check_enabled` from Q1; `code_review_scope: "all"` when code review is enabled, else `null`; `skip_test_suite: true` (**auto-set** — the full suite passed during implementation; `migration-fix` resets it to `false` after code changes); `docs_enabled` from Q2 (tri-state: `null` only before this gate; never left `null` afterwards).
107
+
108
+ **State write**: append `options-chosen`; write all 7 `options.*` keys; bump `orchestrator.updated`; re-read + `verify_template`. **This write happens BEFORE the verifier runs** — the verifier reads its flags from state, and `null` keys make it warn-and-prompt once per key.
109
+
110
+ ### 2. Delegate Verification (first `verification-done` step)
111
+
112
+ Skill tool — `implementation-verifier` (reused, 0 changes). Pass: `task_path`, `task_description`, the chosen options, and `verification_context` when re-verifying. It is read-only (reports, never fixes) and writes `verification/implementation-verification.md`; capture its structured output (`status`, `issues[]`, `issue_counts`).
113
+
114
+ **Write immediately**: `verification_context.last_status` (`passed` / `passed_with_issues` / `failed`), `verification_context.issues_found` (aggregate counts), `migration_outputs.implementation_verification`; bump `orchestrator.updated`; re-read + `verify_template`. **Do not run the compatibility checks before this write** — they consume this verified baseline.
115
+
116
+ ### 3. Migration Compatibility Checks (`compatibility-test-results.md`, inline)
117
+
118
+ Author the 4 checks directly (no delegation). Record each check's **Status (Pass / Fail / Not-applicable)**, **Evidence**, and notes; a not-applicable check is recorded explicitly, never silently omitted; close with an overall compatibility verdict.
119
+
120
+ 1. **Dual-run liveness** — the old system still works while dual-run is configured. Read `migration_context.dual_run_configured`; `false` ⇒ **Not-applicable** (recorded explicitly). `true` ⇒ verify both systems stay live and synchronized per `analysis/dual-run-plan.md`.
121
+ 2. **Non-destructive rollback test** — exercise the `analysis/rollback-plan.md` procedures in a non-production or isolated context **without destroying current state**; verify the documented validation criteria and time estimate.
122
+ 3. **Data integrity** — for data migrations (and any migration that moves/transforms data): 100% row-count, checksum, and business-rule validation against the verified baseline (per-type focus: data). Failure is a **HALT-class result**: record ❌ with evidence, never auto-fix, never retry into a pass; recommend rollback (explicit user confirmation required).
123
+ 4. **Before/after performance** — baseline comparison of key metrics before vs after; for code/architecture types this also carries the per-type focus (functional equivalence / system-level behavior).
124
+
125
+ Write `verification/compatibility-test-results.md`; then write `migration_outputs.compatibility_test_results`, `phase_summaries.verify.summary`, and `verification_context.compatibility_status` — `passed` when no check is ❌, `failed` when any check is ❌ (⚠ concerns do not block) — bump `orchestrator.updated`; re-read + `verify_template`. `compatibility_status` is the persisted overall check verdict consumed by the `migration-fix` / `migration-finalize` gates; it is a check result written during Execute, never an Exit-Gate mutation.
126
+
127
+ ### 4. Complete Verification (`verification-done`)
128
+
129
+ Append `verification-done` only once the verifier AND all 4 compatibility checks have run. ⚠/❌ verdicts are results shown in the results box; they are **never Exit-Gate state mutations** — the state facts are `verification_context.last_status`, `issues_found`, `compatibility_status`, and the compatibility report. If the verifier itself cannot run or report, do NOT append; use `failed_phases` + `auto_fix_attempts["verification-done"]`.
130
+
131
+ ## State Update Convention (per step)
132
+
133
+ 1. **Write immediately** — update `orchestrator-state.yml` as soon as each step completes: options after the options gate (before the verifier); `last_status`/`issues_found` right after the verifier (before the checks); `compatibility_status` + the compatibility paths after the checks; `verification-done` last. Never batch.
134
+ 2. **Timestamp** — set `orchestrator.updated` to the current UTC timestamp on every write.
135
+ 3. **Failures** — a failed or abandoned step is NOT appended to `completed_phases`; append its slug to `orchestrator.failed_phases` and increment `auto_fix_attempts["<slug>"]`.
136
+ 4. **Validate** — after every write, re-read the file to confirm values, then run the `verify_template` tool with `filePath: <task-path>/orchestrator-state.yml`, `templateName: orchestrator-state-migration.yml`. Fix any reported issue immediately.
137
+ 5. **Final check** — before the Exit Gate, one consolidated re-read + `verify_template` run.
138
+
139
+ ## Exit Gate
140
+
141
+ Present results, get user confirmation, then hand off (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)). Never auto-invoke the next skill.
142
+
143
+ ### Results box
144
+
145
+ ```markdown
146
+ ## ✅ MIGRATION VERIFY COMPLETE — <task name>
147
+
148
+ **Verifier status** — [✅ passed / ⚠ passed_with_issues / ❌ failed]
149
+ **Issues found** — [N] ([C] critical / [W] warning / [I] info)
150
+ **Compatibility checks** — dual-run [✅ / — N/A] · rollback [✅ / ❌] · data integrity [✅ / ❌ / N/A] · performance [✅ / ⚠ / ❌]
151
+ **Overall compatibility** — [✅ compatible / ⚠ compatible with concerns / ❌ not compatible]
152
+ **Data integrity** — [✅ verified / ❌ HALT — recommend user-confirmed rollback]
153
+ **Options** — code review [on/off] · pragmatic [on/off] · production [on/off] · reality [on/off] · operator guide [yes/no]
154
+
155
+ **Artifacts**
156
+
157
+ - `verification/implementation-verification.md`
158
+ - `verification/compatibility-test-results.md`
159
+ - `verification/code-review-report.md`, `verification/pragmatic-review.md`, `verification/production-readiness-report.md`, `verification/reality-check.md` [each if run]
160
+ ```
161
+
162
+ ### Results-acceptance question
163
+
164
+ Use `question` — "Are these results correct?" with options:
165
+
166
+ - **Accept** — the verification outcome is good (including an approved proceed-with-warnings); continue.
167
+ - **Adjust** — run additional fixes and/or another verification round within the max-3 contract, update state and artifacts, re-present the results box.
168
+ - **Discuss** — walk through specific findings (issue details, compatibility evidence, data-integrity status) in more depth; then re-ask.
169
+ - **Stop here** — print the resume command (`/owflow:migration-verify <task-path>`) and end.
170
+
171
+ ### Next steps (after Accept)
172
+
173
+ Render ONLY the row whose condition matches the state; list the other branch under Other options:
174
+
175
+ - `→ /owflow:migration-fix <task-path>` — `required` — only when `verification_context.compatibility_status = failed` **or** (`verification_context.last_status != passed` and no recorded deliberate skip): resolves issues with the data-integrity HALT and re-verifies (max 3 iterations). Remaining after: finalize.
176
+ - `→ /owflow:migration-finalize <task-path>` — `required` — only when `compatibility_status = passed` **and** the fix phase is settled (`last_status = passed`, or `issues-resolved`/approval, or a recorded deliberate skip): author the operator guide when enabled, then complete the task. Remaining after: none — workflow ends.
177
+
178
+ **Other options**:
179
+
180
+ - The branch not rendered above (`migration-fix` when the finalize condition holds, or `migration-finalize` when fix is required)
181
+ - `/owflow:migration-verify <task-path>` — `optional` — re-verification after fixes: re-runs the verifier and the 4 compatibility checks (settles `last_status` and `compatibility_status`; confirm full re-run vs only failed checks)
182
+ - `/owflow:goal-migration <task-path>` — `optional` shortcut: runs all remaining phases in one loop (fix when needed → finalize)
183
+
184
+ Then STOP.
@@ -1,65 +1,65 @@
1
- ---
2
- name: owflow:orchestrator-framework
3
- description: Shared orchestration patterns for all workflow orchestrators. NOT an executable skill - provides reference documentation for phase execution, state management, interactive mode, and initialization. All orchestrators reference these patterns.
4
- user-invocable: false
5
- ---
6
-
7
- # Orchestrator Framework
8
-
9
- This skill provides **shared reference documentation** for all orchestrator skills in the owflow plugin. It is NOT an executable skill - orchestrators reference these patterns and implement them for their specific domain.
10
-
11
- ## Purpose
12
-
13
- Reduce duplication across orchestrators by documenting common patterns once:
14
-
15
- - **Phase Blocks**: Simple phase structure with inline transitions (`→ Continue`, `→ Pause`, `→ Conditional`)
16
- - **State Management**: `orchestrator-state.yml` schema and operations
17
- - **Phase Gates**: Pause behavior and user prompts
18
- - **Initialization**: Task directory setup, metadata, task creation patterns
19
-
20
- ## How Orchestrators Use This
21
-
22
- Each orchestrator reads the framework reference file at initialization (Step 1):
23
-
24
- ```markdown
25
- ### Step 1: Load Framework Patterns
26
-
27
- **Read the framework reference file NOW using the Read tool:**
28
-
29
- 1. `../orchestrator-framework/references/orchestrator-patterns.md`
30
- ```
31
-
32
- ## Reference Files
33
-
34
- | File | Purpose |
35
- | ----------------------------------------------- | --------------------------------------------------------------------------------------------------- |
36
- | `references/orchestrator-patterns.md` | Delegation rules, interactive mode, state schema, initialization, context passing, issue resolution |
37
- | `references/orchestrator-creation-checklist.md` | Authoring checklist for creating new orchestrators (not loaded at runtime) |
38
-
39
- ## Key Principles
40
-
41
- All orchestrators follow these principles:
42
-
43
- 1. **State-Driven Execution**: `orchestrator-state.yml` is source of truth
44
- 2. **Resume Capability**: Any orchestrator can be paused and resumed
45
- 3. **Interactive**: Pause after each phase for user review
46
- 4. **User-Confirmed Rollback**: Never auto-rollback without user approval
47
- 5. **Task Progress**: Always track progress with TaskCreate/TaskUpdate tools
48
- 6. **Standards Discovery**: Reference `.owflow/docs/INDEX.md` throughout
49
-
50
- ## Orchestrators Using This Framework
51
-
52
- - `development` (bug fixes, enhancements, features)
53
- - `performance`
54
- - `migration`
55
- - `research`
56
-
57
- ## NOT an Executable Skill
58
-
59
- This skill does NOT get invoked directly. It exists to:
60
-
61
- 1. Provide discoverable documentation for orchestrator patterns
62
- 2. Serve as single source of truth for common logic
63
- 3. Enable consistent behavior across all orchestrators
64
-
65
- When building new orchestrators, reference these patterns rather than duplicating them.
1
+ ---
2
+ name: owflow:orchestrator-framework
3
+ description: Shared orchestration patterns for all workflow orchestrators. NOT an executable skill - provides reference documentation for phase execution, state management, interactive mode, and initialization. All orchestrators reference these patterns.
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Orchestrator Framework
8
+
9
+ This skill provides **shared reference documentation** for all orchestrator skills in the owflow plugin. It is NOT an executable skill - orchestrators reference these patterns and implement them for their specific domain.
10
+
11
+ ## Purpose
12
+
13
+ Reduce duplication across orchestrators by documenting common patterns once:
14
+
15
+ - **Phase Blocks**: Simple phase structure with inline transitions (`→ Continue`, `→ Pause`, `→ Conditional`)
16
+ - **State Management**: `orchestrator-state.yml` schema and operations
17
+ - **Phase Gates**: Pause behavior and user prompts
18
+ - **Initialization**: Task directory setup, metadata, task creation patterns
19
+
20
+ ## How Orchestrators Use This
21
+
22
+ Each orchestrator reads the framework reference file at initialization (Step 1):
23
+
24
+ ```markdown
25
+ ### Step 1: Load Framework Patterns
26
+
27
+ **Read the framework reference file NOW using the Read tool:**
28
+
29
+ 1. `../orchestrator-framework/references/orchestrator-patterns.md`
30
+ ```
31
+
32
+ ## Reference Files
33
+
34
+ | File | Purpose |
35
+ | ----------------------------------------------- | --------------------------------------------------------------------------------------------------- |
36
+ | `references/orchestrator-patterns.md` | Delegation rules, interactive mode, state schema, initialization, context passing, issue resolution |
37
+ | `references/orchestrator-creation-checklist.md` | Authoring checklist for creating new orchestrators (not loaded at runtime) |
38
+
39
+ ## Key Principles
40
+
41
+ All orchestrators follow these principles:
42
+
43
+ 1. **State-Driven Execution**: `orchestrator-state.yml` is source of truth
44
+ 2. **Resume Capability**: Any orchestrator can be paused and resumed
45
+ 3. **Interactive**: Pause after each phase for user review
46
+ 4. **User-Confirmed Rollback**: Never auto-rollback without user approval
47
+ 5. **Task Progress**: Always track progress with TaskCreate/TaskUpdate tools
48
+ 6. **Standards Discovery**: Reference `.owflow/docs/INDEX.md` throughout
49
+
50
+ ## Orchestrators Using This Framework
51
+
52
+ - `development` (bug fixes, enhancements, features)
53
+ - `performance`
54
+ - `migration`
55
+ - `research`
56
+
57
+ ## NOT an Executable Skill
58
+
59
+ This skill does NOT get invoked directly. It exists to:
60
+
61
+ 1. Provide discoverable documentation for orchestrator patterns
62
+ 2. Serve as single source of truth for common logic
63
+ 3. Enable consistent behavior across all orchestrators
64
+
65
+ When building new orchestrators, reference these patterns rather than duplicating them.
@@ -1,7 +1,7 @@
1
- # Command Namespacing
2
-
3
- How commands and skills are named and referenced. Extracted from `orchestrator-patterns.md` (Section 8) so skills can link to it directly.
4
-
5
- - Slash commands registered from `src/skills/*/SKILL.md` and from the maintained `src/commands/*.md` use `name: owflow:<command>` in frontmatter; users invoke `/owflow:<command>`.
6
- - **Skill `name:` fields are prefixed too.** Skill-tool invocations (`skill: "owflow:development"`, `skills:` frontmatter preloads, work.md routing) always reference `owflow:`-prefixed skill names.
7
- - Handoff messages, docs, and cross-references always display the prefixed slash command — never the bare skill name — in user-facing text.
1
+ # Command Namespacing
2
+
3
+ How commands and skills are named and referenced. Extracted from `orchestrator-patterns.md` (Section 8) so skills can link to it directly.
4
+
5
+ - Slash commands registered from `src/skills/*/SKILL.md` and from the maintained `src/commands/*.md` use `name: owflow:<command>` in frontmatter; users invoke `/owflow:<command>`.
6
+ - **Skill `name:` fields are prefixed too.** Skill-tool invocations (`skill: "owflow:development"`, `skills:` frontmatter preloads, work.md routing) always reference `owflow:`-prefixed skill names.
7
+ - Handoff messages, docs, and cross-references always display the prefixed slash command — never the bare skill name — in user-facing text.
@@ -1,20 +1,20 @@
1
- # Confirm-or-Revise Exception
2
-
3
- Extension of the [Gate Contract](gate-contract.md) for utility skills with explicit no-follow-up contracts — currently `agents-md-generator` and `rule-reviewer`.
4
-
5
- ## Rule
6
-
7
- The standard Exit Gate's results-acceptance question offers four options (Accept / Adjust / Discuss / Stop). Utility skills whose whole purpose is to produce a single artifact and stop **narrow this to confirm-or-revise only**:
8
-
9
- - **Confirm** — the artifact is good; end the skill.
10
- - **Revise** — user specifies what to change; re-work only the affected parts of the artifact, then re-present it and re-ask.
11
-
12
- ## What stays prohibited
13
-
14
- - No follow-up suggestions, "next steps" hints, or "Other options" blocks after Confirm.
15
- - No auto-chaining into other skills or workflows.
16
- - Follow-up work happens only if the user explicitly asks for it.
17
-
18
- ## Why
19
-
20
- Utility skills end their contract with the artifact itself — there is no pipeline to continue — so offering pipeline-style next steps would imply a workflow that does not exist.
1
+ # Confirm-or-Revise Exception
2
+
3
+ Extension of the [Gate Contract](gate-contract.md) for utility skills with explicit no-follow-up contracts — currently `agents-md-generator` and `rule-reviewer`.
4
+
5
+ ## Rule
6
+
7
+ The standard Exit Gate's results-acceptance question offers four options (Accept / Adjust / Discuss / Stop). Utility skills whose whole purpose is to produce a single artifact and stop **narrow this to confirm-or-revise only**:
8
+
9
+ - **Confirm** — the artifact is good; end the skill.
10
+ - **Revise** — user specifies what to change; re-work only the affected parts of the artifact, then re-present it and re-ask.
11
+
12
+ ## What stays prohibited
13
+
14
+ - No follow-up suggestions, "next steps" hints, or "Other options" blocks after Confirm.
15
+ - No auto-chaining into other skills or workflows.
16
+ - Follow-up work happens only if the user explicitly asks for it.
17
+
18
+ ## Why
19
+
20
+ Utility skills end their contract with the artifact itself — there is no pipeline to continue — so offering pipeline-style next steps would imply a workflow that does not exist.