owflow 0.4.2 → 0.5.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 (79) hide show
  1. package/README.md +6 -2
  2. package/dist/agents/implementation-planner.md +1 -1
  3. package/dist/agents/information-gatherer.md +691 -691
  4. package/dist/agents/research-planner.md +450 -450
  5. package/dist/agents/research-synthesizer.md +403 -403
  6. package/dist/agents/solution-brainstormer.md +257 -257
  7. package/dist/agents/solution-designer.md +372 -372
  8. package/dist/agents/specification-creator.md +1 -1
  9. package/dist/commands/work.md +9 -9
  10. package/dist/configuration/commands-config.js +57 -0
  11. package/dist/skills/codebase-analyzer/SKILL.md +4 -4
  12. package/dist/skills/dev-verify/SKILL.md +3 -10
  13. package/dist/skills/diagrams-mermaid/SKILL.md +1 -0
  14. package/dist/skills/diagrams-mermaid/references/reference.md +4 -4
  15. package/dist/skills/flow-init/SKILL.md +1 -1
  16. package/dist/skills/goal-migration/SKILL.md +114 -0
  17. package/dist/skills/goal-research/SKILL.md +118 -118
  18. package/dist/skills/html-renderer/SKILL.md +1 -0
  19. package/dist/skills/migration/SKILL.md +157 -295
  20. package/dist/skills/migration-analyze/SKILL.md +126 -0
  21. package/dist/skills/migration-finalize/SKILL.md +161 -0
  22. package/dist/skills/migration-fix/SKILL.md +155 -0
  23. package/dist/skills/migration-implement/SKILL.md +131 -0
  24. package/dist/skills/migration-plan/SKILL.md +131 -0
  25. package/dist/skills/migration-spec/SKILL.md +135 -0
  26. package/dist/skills/{migration → migration-spec}/references/migration-strategies.md +9 -9
  27. package/dist/skills/migration-target/SKILL.md +134 -0
  28. package/dist/skills/{migration → migration-target}/references/migration-types.md +22 -23
  29. package/dist/skills/migration-verify/SKILL.md +184 -0
  30. package/dist/skills/orchestrator-framework/references/command-namespacing.md +1 -1
  31. package/dist/skills/orchestrator-framework/references/dispatcher-handoff.md +1 -1
  32. package/dist/skills/orchestrator-framework/references/fix-loop-contract.md +65 -0
  33. package/dist/skills/orchestrator-framework/references/gate-contract.md +117 -112
  34. package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +4 -1
  35. package/dist/skills/performance/SKILL.md +1 -0
  36. package/dist/skills/research/SKILL.md +249 -249
  37. package/dist/skills/research-brainstorm/SKILL.md +120 -120
  38. package/dist/skills/research-converge/SKILL.md +130 -130
  39. package/dist/skills/research-design/SKILL.md +146 -146
  40. package/dist/skills/research-finalize/SKILL.md +125 -125
  41. package/dist/skills/research-fork/SKILL.md +190 -190
  42. package/dist/skills/research-gather/SKILL.md +133 -133
  43. package/dist/skills/research-plan/SKILL.md +141 -141
  44. package/dist/skills/research-quick/SKILL.md +139 -139
  45. package/dist/skills/research-synthesize/SKILL.md +127 -127
  46. package/dist/skills/rule-reviewer/SKILL.md +1 -1
  47. package/dist/skills/standards-discover/SKILL.md +1 -0
  48. package/dist/templates/orchestrator-state-migration.yml +49 -9
  49. package/package.json +1 -1
  50. package/dist/commands/agents-md-generator.md +0 -36
  51. package/dist/commands/dev-analyze.md +0 -33
  52. package/dist/commands/dev-bugfix.md +0 -37
  53. package/dist/commands/dev-finalize.md +0 -33
  54. package/dist/commands/dev-implement.md +0 -34
  55. package/dist/commands/dev-plan.md +0 -37
  56. package/dist/commands/dev-spec.md +0 -37
  57. package/dist/commands/dev-tdd-red.md +0 -33
  58. package/dist/commands/dev-verify.md +0 -33
  59. package/dist/commands/development.md +0 -36
  60. package/dist/commands/diagrams-mermaid.md +0 -36
  61. package/dist/commands/flow-init.md +0 -36
  62. package/dist/commands/goal-development.md +0 -32
  63. package/dist/commands/goal-research.md +0 -33
  64. package/dist/commands/html-renderer.md +0 -36
  65. package/dist/commands/migration.md +0 -36
  66. package/dist/commands/performance.md +0 -36
  67. package/dist/commands/research-brainstorm.md +0 -33
  68. package/dist/commands/research-converge.md +0 -33
  69. package/dist/commands/research-design.md +0 -33
  70. package/dist/commands/research-finalize.md +0 -33
  71. package/dist/commands/research-fork.md +0 -40
  72. package/dist/commands/research-gather.md +0 -33
  73. package/dist/commands/research-plan.md +0 -37
  74. package/dist/commands/research-quick.md +0 -37
  75. package/dist/commands/research-synthesize.md +0 -33
  76. package/dist/commands/research.md +0 -55
  77. package/dist/commands/rule-reviewer.md +0 -38
  78. package/dist/commands/standards-discover.md +0 -36
  79. package/dist/commands/standards-update.md +0 -36
@@ -1,120 +1,120 @@
1
- ---
2
- name: owflow:research-brainstorm
3
- description: Research skill — optional subskill. Delegates multi-perspective solution-alternative generation to the solution-brainstormer agent, producing outputs/solution-exploration.md. Invoking this skill IS the decision to brainstorm — there is no enablement flag.
4
- argument-hint: "[task-path-or-identifier]"
5
- user-invocable: true
6
- ---
7
-
8
- # Research Brainstorm — Solution Alternatives (alternatives-generated)
9
-
10
- Work phase of the research workflow. Delegates divergent solution-alternative generation to the solution-brainstormer agent (`outputs/solution-exploration.md`). Optional phase — runs when the user chooses it: invoking this skill IS the decision to brainstorm (no enablement flag in state). There is no auto-continue into convergence: this skill's Exit Gate and `research-converge`'s Entry Gate make that boundary explicit. State lives in `orchestrator-state.yml` — this skill reads it on entry and writes results on exit.
11
-
12
- Related phases: `/owflow:research-converge` (consumes the alternatives for per-area decisions). The brainstorming-techniques reference lives in this skill's own folder (`references/brainstorming-techniques.md`).
13
-
14
- ## Entry Gate
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/research/` (e.g., `2026-09-26-my-research`); resolve to its path.
20
- - If the argument is **missing**, the path does **not exist**, or matches **no identifier** → print the blocked block, then STOP (never guess or auto-pick a task):
21
- 1. Steps that must be completed first (in order), each with its command:
22
- - Research brief & plan (`brief-written`, `plan-created`) → `/owflow:research-plan <task-path>`
23
- - Parallel findings fan (`findings-gathered`) → `/owflow:research-gather <task-path>`
24
- - Synthesis & research report (`synthesis-complete`) → `/owflow:research-synthesize <task-path>`
25
- 2. List available research-task identifiers (directories under `.owflow/tasks/research/`) to resume from, if any.
26
- 3. Hint: `Run /owflow:research <question> to start a task from scratch, or pass a task path/identifier to resume.`
27
-
28
- ### Prerequisites
29
-
30
- | Required for this skill | Where verified | Produced by |
31
- | --------------------------- | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
32
- | State file exists | `<task-path>/orchestrator-state.yml` | `/owflow:research <question>` or `/owflow:research-quick` |
33
- | Foundation complete | `synthesis-complete` in `completed_phases` + `analysis/synthesis.md` AND `outputs/research-report.md` exist | `/owflow:research-synthesize <task-path>` |
34
-
35
- 1. **Read `orchestrator-state.yml`** from the task path. If missing → mid-pipeline bootstrap ([Missing-state Bootstrap](../orchestrator-framework/references/gate-contract.md), starting slug `alternatives-generated`): `question` — create a fresh standard research task starting at this step, or decline → print `No research task found at <path>. Run /owflow:research <question> to start a task from scratch.` and STOP.
36
- 2. **Skip/resume**: if `alternatives-generated` is in `completed_phases`, validate `outputs/solution-exploration.md` exists; missing → re-run below; present → report the existing alternatives summary and route to the Exit Gate.
37
- 3. **Prerequisite check**: `synthesis-complete` must be in `completed_phases`. If missing → print the blocked block, then STOP:
38
- - Steps that must be completed first: synthesis (`synthesis-complete`).
39
- - `Run /owflow:research-synthesize <task-path> first` (or the command for the earliest missing earlier step: `/owflow:research-plan` or `/owflow:research-gather`).
40
- - If no task exists yet: `Run /owflow:research <question> to start a task from scratch.`
41
-
42
- ## Input / Output Artifacts
43
-
44
- | Artifact | Normal mode (full lane) | Quick mode (`research-quick`) |
45
- | ---------------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
46
- | Consumed: `analysis/synthesis.md`, `outputs/research-report.md` | foundation inputs (from synthesize) | identical — research-quick produces the same standard artifacts, so this skill runs unchanged afterwards |
47
- | Produced: `outputs/solution-exploration.md` | delegated to `solution-brainstormer` (Task tool) | NOT produced here — the quick lane stops at synthesis; the optional chain always runs as this skill |
48
- | State write | `alternatives-generated`; `phase_summaries.brainstorm`, `research_outputs.solution_exploration` | same (this skill never runs inside a quick pass) |
49
-
50
- ## Execute (delegated brainstorm)
51
-
52
- **Read first**: the [Delegation Rules](../orchestrator-framework/references/delegation-rules.md).
53
-
54
- **Read `references/brainstorming-techniques.md` NOW using the Read tool** — divergent/convergent thinking techniques, interactive exploration, scope guardrails.
55
-
56
- > **ANTI-PATTERN — do NOT generate solution alternatives inline. "The question is simple" is NOT a reason to skip delegation. The solution-brainstormer agent has specialized multi-perspective analysis capabilities.**
57
-
58
- 1. **INVOKE NOW**: Task tool - `solution-brainstormer` subagent (never the Skill tool — this is an agent). Pass (Pattern 7 — accumulated context):
59
- - `task_path`, `synthesis_path` (`analysis/synthesis.md`), `research_report_path` (`outputs/research-report.md`)
60
- - `output_path`: `outputs/solution-exploration.md` — brainstormer MUST write to this exact path
61
- - Accumulated context: `research_type`, `research_question`, `confidence_level`, `phase_summaries` (foundation slugs)
62
- - `project_doc_paths` (from state)
63
-
64
- 2. > **SELF-CHECK**: After the Task tool returns, verify `outputs/solution-exploration.md` exists and contains alternatives. If missing: **STOP. Do NOT proceed to convergence or design.** Re-invoke the brainstormer with corrected context (ensure `output_path` is `outputs/solution-exploration.md`). If a second attempt also fails, use `question` to report the failure and ask whether to retry or skip brainstorming.
65
-
66
- 3. On a user-chosen skip (via `question` after repeated failures): record the reason in `phase_summaries.brainstorm`. Do not append `alternatives-generated` to `completed_phases` and do not append a `failed_phases` entry (a deliberate decision, not a failure). Then present the Exit Gate: the results box notes the skip, and the next step follows the user's call (`→ /owflow:research-design <task-path>` for the design-only branch, otherwise `→ /owflow:research-finalize <task-path>`).
67
-
68
- ### Close (`alternatives-generated`)
69
-
70
- 1. **State write**: append `alternatives-generated` to `completed_phases` after the SELF-CHECK passes; update `phase_summaries.brainstorm`; set `research_outputs.solution_exploration`; bump `orchestrator.updated`. On failure: append `alternatives-generated` to `failed_phases`, increment `auto_fix_attempts["alternatives-generated"]`. Then re-read state + run `verify_template` (see State Update Convention).
71
-
72
- ## State Update Convention (per step)
73
-
74
- Apply after EVERY step above:
75
-
76
- 1. **Write immediately** — update `orchestrator-state.yml` as soon as the step completes, appending ONLY the step slug actually performed (`alternatives-generated`) plus that step's fields. Never batch multiple steps into one end-of-skill write.
77
- 2. **Timestamp** — set `orchestrator.updated` to the current UTC timestamp on every write.
78
- 3. **Failures** — if the brainstormer delegation fails or its retries are abandoned, do NOT append `alternatives-generated` to `completed_phases`; instead append it to `orchestrator.failed_phases` and increment `auto_fix_attempts["alternatives-generated"]`. A user-chosen skip is not a failure: record the reason in `phase_summaries.brainstorm` (see Execute step 3) instead of writing `failed_phases`.
79
- 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-research.yml`. Fix any reported issue immediately before proceeding.
80
- 5. **Final check** — before the Exit Gate, one consolidated re-read + `verify_template` run to confirm the full state matches everything performed in this session.
81
-
82
- ## Recovery
83
-
84
- | Step | Max Attempts | Strategy |
85
- | ----------------------------------- | ------------ | ---------------------------------------------------- |
86
- | Brainstorm (`alternatives-generated`) | 2 | Re-invoke solution-brainstormer with adjusted context |
87
-
88
- ## Exit Gate
89
-
90
- Present results, get user confirmation, then hand off (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)). Never auto-invoke the next skill. There is no auto-continue into convergence — converge's Entry Gate re-validates the artifact. A user-chosen skip still uses this Exit Gate; its results box says the step was skipped and why.
91
-
92
- ### Results box
93
-
94
- ```markdown
95
- ## ✅ RESEARCH BRAINSTORM COMPLETE — <research question>
96
-
97
- **Type** — [research type]
98
- **Decision areas** — [N areas surfaced in solution-exploration.md]
99
- **Alternatives** — [total alternatives across areas]
100
-
101
- **Artifacts**
102
-
103
- - `outputs/solution-exploration.md`
104
- ```
105
-
106
- ### Results-acceptance question
107
-
108
- Use `question` — "Are these results correct?" with options:
109
-
110
- - **Accept** — the alternatives are good; continue.
111
- - **Adjust** — re-invoke the brainstormer with the user's corrections (refined scope or emphasis), update state and artifacts, re-present the results box.
112
- - **Discuss** — walk through specific alternatives or a decision area in more depth; then re-ask.
113
- - **Stop here** — print the resume command (`/owflow:research-brainstorm <task-path>`) and end.
114
-
115
- ### Next steps (after Accept)
116
-
117
- - Alternatives produced → `→ /owflow:research-converge <task-path>` — `required` next: presents the alternatives per decision area with identical full detail, records each `chosen_approach` in state, and resolves the combination (`approaches-chosen`). Remaining after: design (when the user wants it) → finalize.
118
- - User-chosen skip → `→ /owflow:research-design <task-path>` (design-only branch, seeded from the research report) or `→ /owflow:research-finalize <task-path>`, per the user's call. Do not suggest converge — there are no alternatives to converge on.
119
-
120
- Then STOP.
1
+ ---
2
+ name: owflow:research-brainstorm
3
+ description: Research skill — optional subskill. Delegates multi-perspective solution-alternative generation to the solution-brainstormer agent, producing outputs/solution-exploration.md. Invoking this skill IS the decision to brainstorm — there is no enablement flag.
4
+ argument-hint: "[task-path-or-identifier]"
5
+ user-invocable: true
6
+ ---
7
+
8
+ # Research Brainstorm — Solution Alternatives (alternatives-generated)
9
+
10
+ Work phase of the research workflow. Delegates divergent solution-alternative generation to the solution-brainstormer agent (`outputs/solution-exploration.md`). Optional phase — runs when the user chooses it: invoking this skill IS the decision to brainstorm (no enablement flag in state). There is no auto-continue into convergence: this skill's Exit Gate and `research-converge`'s Entry Gate make that boundary explicit. State lives in `orchestrator-state.yml` — this skill reads it on entry and writes results on exit.
11
+
12
+ Related phases: `/owflow:research-converge` (consumes the alternatives for per-area decisions). The brainstorming-techniques reference lives in this skill's own folder (`references/brainstorming-techniques.md`).
13
+
14
+ ## Entry Gate
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/research/` (e.g., `2026-09-26-my-research`); resolve to its path.
20
+ - If the argument is **missing**, the path does **not exist**, or matches **no identifier** → print the blocked block, then STOP (never guess or auto-pick a task):
21
+ 1. Steps that must be completed first (in order), each with its command:
22
+ - Research brief & plan (`brief-written`, `plan-created`) → `/owflow:research-plan <task-path>`
23
+ - Parallel findings fan (`findings-gathered`) → `/owflow:research-gather <task-path>`
24
+ - Synthesis & research report (`synthesis-complete`) → `/owflow:research-synthesize <task-path>`
25
+ 2. List available research-task identifiers (directories under `.owflow/tasks/research/`) to resume from, if any.
26
+ 3. Hint: `Run /owflow:research <question> to start a task from scratch, or pass a task path/identifier to resume.`
27
+
28
+ ### Prerequisites
29
+
30
+ | Required for this skill | Where verified | Produced by |
31
+ | --------------------------- | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
32
+ | State file exists | `<task-path>/orchestrator-state.yml` | `/owflow:research <question>` or `/owflow:research-quick` |
33
+ | Foundation complete | `synthesis-complete` in `completed_phases` + `analysis/synthesis.md` AND `outputs/research-report.md` exist | `/owflow:research-synthesize <task-path>` |
34
+
35
+ 1. **Read `orchestrator-state.yml`** from the task path. If missing → mid-pipeline bootstrap ([Missing-state Bootstrap](../orchestrator-framework/references/gate-contract.md), starting slug `alternatives-generated`): `question` — create a fresh standard research task starting at this step, or decline → print `No research task found at <path>. Run /owflow:research <question> to start a task from scratch.` and STOP.
36
+ 2. **Skip/resume**: if `alternatives-generated` is in `completed_phases`, validate `outputs/solution-exploration.md` exists; missing → re-run below; present → report the existing alternatives summary and route to the Exit Gate.
37
+ 3. **Prerequisite check**: `synthesis-complete` must be in `completed_phases`. If missing → print the blocked block, then STOP:
38
+ - Steps that must be completed first: synthesis (`synthesis-complete`).
39
+ - `Run /owflow:research-synthesize <task-path> first` (or the command for the earliest missing earlier step: `/owflow:research-plan` or `/owflow:research-gather`).
40
+ - If no task exists yet: `Run /owflow:research <question> to start a task from scratch.`
41
+
42
+ ## Input / Output Artifacts
43
+
44
+ | Artifact | Normal mode (full lane) | Quick mode (`research-quick`) |
45
+ | ---------------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
46
+ | Consumed: `analysis/synthesis.md`, `outputs/research-report.md` | foundation inputs (from synthesize) | identical — research-quick produces the same standard artifacts, so this skill runs unchanged afterwards |
47
+ | Produced: `outputs/solution-exploration.md` | delegated to `solution-brainstormer` (Task tool) | NOT produced here — the quick lane stops at synthesis; the optional chain always runs as this skill |
48
+ | State write | `alternatives-generated`; `phase_summaries.brainstorm`, `research_outputs.solution_exploration` | same (this skill never runs inside a quick pass) |
49
+
50
+ ## Execute (delegated brainstorm)
51
+
52
+ **Read first**: the [Delegation Rules](../orchestrator-framework/references/delegation-rules.md).
53
+
54
+ **Read `references/brainstorming-techniques.md` NOW using the Read tool** — divergent/convergent thinking techniques, interactive exploration, scope guardrails.
55
+
56
+ > **ANTI-PATTERN — do NOT generate solution alternatives inline. "The question is simple" is NOT a reason to skip delegation. The solution-brainstormer agent has specialized multi-perspective analysis capabilities.**
57
+
58
+ 1. **INVOKE NOW**: Task tool - `solution-brainstormer` subagent (never the Skill tool — this is an agent). Pass (Pattern 7 — accumulated context):
59
+ - `task_path`, `synthesis_path` (`analysis/synthesis.md`), `research_report_path` (`outputs/research-report.md`)
60
+ - `output_path`: `outputs/solution-exploration.md` — brainstormer MUST write to this exact path
61
+ - Accumulated context: `research_type`, `research_question`, `confidence_level`, `phase_summaries` (foundation slugs)
62
+ - `project_doc_paths` (from state)
63
+
64
+ 2. > **SELF-CHECK**: After the Task tool returns, verify `outputs/solution-exploration.md` exists and contains alternatives. If missing: **STOP. Do NOT proceed to convergence or design.** Re-invoke the brainstormer with corrected context (ensure `output_path` is `outputs/solution-exploration.md`). If a second attempt also fails, use `question` to report the failure and ask whether to retry or skip brainstorming.
65
+
66
+ 3. On a user-chosen skip (via `question` after repeated failures): record the reason in `phase_summaries.brainstorm`. Do not append `alternatives-generated` to `completed_phases` and do not append a `failed_phases` entry (a deliberate decision, not a failure). Then present the Exit Gate: the results box notes the skip, and the next step follows the user's call (`→ /owflow:research-design <task-path>` for the design-only branch, otherwise `→ /owflow:research-finalize <task-path>`).
67
+
68
+ ### Close (`alternatives-generated`)
69
+
70
+ 1. **State write**: append `alternatives-generated` to `completed_phases` after the SELF-CHECK passes; update `phase_summaries.brainstorm`; set `research_outputs.solution_exploration`; bump `orchestrator.updated`. On failure: append `alternatives-generated` to `failed_phases`, increment `auto_fix_attempts["alternatives-generated"]`. Then re-read state + run `verify_template` (see State Update Convention).
71
+
72
+ ## State Update Convention (per step)
73
+
74
+ Apply after EVERY step above:
75
+
76
+ 1. **Write immediately** — update `orchestrator-state.yml` as soon as the step completes, appending ONLY the step slug actually performed (`alternatives-generated`) plus that step's fields. Never batch multiple steps into one end-of-skill write.
77
+ 2. **Timestamp** — set `orchestrator.updated` to the current UTC timestamp on every write.
78
+ 3. **Failures** — if the brainstormer delegation fails or its retries are abandoned, do NOT append `alternatives-generated` to `completed_phases`; instead append it to `orchestrator.failed_phases` and increment `auto_fix_attempts["alternatives-generated"]`. A user-chosen skip is not a failure: record the reason in `phase_summaries.brainstorm` (see Execute step 3) instead of writing `failed_phases`.
79
+ 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-research.yml`. Fix any reported issue immediately before proceeding.
80
+ 5. **Final check** — before the Exit Gate, one consolidated re-read + `verify_template` run to confirm the full state matches everything performed in this session.
81
+
82
+ ## Recovery
83
+
84
+ | Step | Max Attempts | Strategy |
85
+ | ----------------------------------- | ------------ | ---------------------------------------------------- |
86
+ | Brainstorm (`alternatives-generated`) | 2 | Re-invoke solution-brainstormer with adjusted context |
87
+
88
+ ## Exit Gate
89
+
90
+ Present results, get user confirmation, then hand off (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)). Never auto-invoke the next skill. There is no auto-continue into convergence — converge's Entry Gate re-validates the artifact. A user-chosen skip still uses this Exit Gate; its results box says the step was skipped and why.
91
+
92
+ ### Results box
93
+
94
+ ```markdown
95
+ ## ✅ RESEARCH BRAINSTORM COMPLETE — <research question>
96
+
97
+ **Type** — [research type]
98
+ **Decision areas** — [N areas surfaced in solution-exploration.md]
99
+ **Alternatives** — [total alternatives across areas]
100
+
101
+ **Artifacts**
102
+
103
+ - `outputs/solution-exploration.md`
104
+ ```
105
+
106
+ ### Results-acceptance question
107
+
108
+ Use `question` — "Are these results correct?" with options:
109
+
110
+ - **Accept** — the alternatives are good; continue.
111
+ - **Adjust** — re-invoke the brainstormer with the user's corrections (refined scope or emphasis), update state and artifacts, re-present the results box.
112
+ - **Discuss** — walk through specific alternatives or a decision area in more depth; then re-ask.
113
+ - **Stop here** — print the resume command (`/owflow:research-brainstorm <task-path>`) and end.
114
+
115
+ ### Next steps (after Accept)
116
+
117
+ - Alternatives produced → `→ /owflow:research-converge <task-path>` — `required` next: presents the alternatives per decision area with identical full detail, records each `chosen_approach` in state, and resolves the combination (`approaches-chosen`). Remaining after: design (when the user wants it) → finalize.
118
+ - User-chosen skip → `→ /owflow:research-design <task-path>` (design-only branch, seeded from the research report) or `→ /owflow:research-finalize <task-path>`, per the user's call. Do not suggest converge — there are no alternatives to converge on.
119
+
120
+ Then STOP.
@@ -1,130 +1,130 @@
1
- ---
2
- name: owflow:research-converge
3
- description: Research skill — optional subskill. Presents the brainstorming alternatives for EVERY decision area with identical full detail — one area, one question — records each chosen approach in phase_summaries.converge.decision_areas (approaches-chosen). Never a combined summary-table confirm.
4
- argument-hint: "[task-path-or-identifier]"
5
- user-invocable: true
6
- ---
7
-
8
- # Research Converge — Per-Area Decisions (approaches-chosen)
9
-
10
- Work phase of the research workflow. Interactive convergence: presents the brainstorming alternatives for each decision area — one area, one dedicated `question` — and records the chosen combination in state (state-only; no new artifacts). Conditional optional phase — runs only when brainstorming ran. There is no auto-continue from brainstorm: this skill's Entry Gate re-checks the artifact. State lives in `orchestrator-state.yml` — this skill reads it on entry and writes results on exit.
11
-
12
- Related phases: `/owflow:research-brainstorm` (produces `outputs/solution-exploration.md`, which this skill parses), `/owflow:research-design` (consumes the chosen combination as `selected_approach`), `/owflow:research-finalize` (the route when design is off).
13
-
14
- ## Entry Gate
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/research/` (e.g., `2026-09-26-my-research`); resolve to its path.
20
- - If the argument is **missing**, the path does **not exist**, or matches **no identifier** → print the blocked block, then STOP (never guess or auto-pick a task):
21
- 1. Steps that must be completed first (in order), each with its command:
22
- - Research brief & plan (`brief-written`, `plan-created`) → `/owflow:research-plan <task-path>`
23
- - Parallel findings fan (`findings-gathered`) → `/owflow:research-gather <task-path>`
24
- - Synthesis & research report (`synthesis-complete`) → `/owflow:research-synthesize <task-path>`
25
- - Solution alternatives (`alternatives-generated`) → `/owflow:research-brainstorm <task-path>`
26
- 2. List available research-task identifiers (directories under `.owflow/tasks/research/`) to resume from, if any.
27
- 3. Hint: `Run /owflow:research <question> to start a task from scratch, or pass a task path/identifier to resume.`
28
-
29
- ### Prerequisites
30
-
31
- | Required for this skill | Where verified | Produced by |
32
- | ----------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
33
- | State file exists | `<task-path>/orchestrator-state.yml` | `/owflow:research <question>` or `/owflow:research-quick` |
34
- | Foundation complete | `synthesis-complete` in `completed_phases` + `analysis/synthesis.md` exists | `/owflow:research-synthesize <task-path>` |
35
- | Alternatives exist | `alternatives-generated` in `completed_phases` + `outputs/solution-exploration.md` exists | `/owflow:research-brainstorm <task-path>` |
36
-
37
- 1. **Read `orchestrator-state.yml`** from the task path. If missing → mid-pipeline bootstrap ([Missing-state Bootstrap](../orchestrator-framework/references/gate-contract.md), starting slug `approaches-chosen`): `question` — create a fresh standard research task starting at this step, or decline → print `No research task found at <path>. Run /owflow:research <question> to start a task from scratch.` and STOP.
38
- 2. **Prerequisite check**: `synthesis-complete` AND `alternatives-generated` must be in `completed_phases`, and `outputs/solution-exploration.md` must exist. If missing → print the blocked block, then STOP:
39
- - `Run /owflow:research-brainstorm <task-path> first` (or the command for the earliest missing earlier step: `/owflow:research-plan`, `/owflow:research-gather`, or `/owflow:research-synthesize`).
40
- 3. **Skip/resume (per-area partial resume)**: if `approaches-chosen` is in `completed_phases`, validate every `phase_summaries.converge.decision_areas` entry carries `chosen_approach` — all resolve → report the existing chosen combination and route to the Exit Gate; any area unresolved → re-ask ONLY the unresolved areas below. Also — even WITHOUT the slug — skip any area whose `decision_areas` entry already carries `chosen_approach`; only unresolved areas are ever asked.
41
-
42
- ## Input / Output Artifacts
43
-
44
- | Artifact | Normal mode (full lane) | Quick mode (`research-quick`) |
45
- | ---------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
46
- | Consumed: `outputs/solution-exploration.md` | parsed for decision areas + alternatives | identical — when the optional chain runs after a quick pass, the exploration file was produced by research-brainstorm |
47
- | Produced: none (state-only) | decisions recorded inline per area | same mechanics — research-quick never converges inline |
48
- | State write | `approaches-chosen`; `phase_summaries.converge {summary, decision_areas, deferred_ideas}` (per-area partial writes) | same slug and fields |
49
-
50
- ## Execute (direct interactive — per-area convergence)
51
-
52
- **Read first**: the [Delegation Rules](../orchestrator-framework/references/delegation-rules.md) — per-area convergence is direct interactive work (like dev-verify's interactive phases); no agents involved.
53
-
54
- > **ANTI-PATTERN**: Do NOT present all decision areas in a single summary table and ask one combined "do you agree?" question. Each area MUST get its own detailed presentation and its own question call.
55
- >
56
- > **ANTI-PATTERN**: Do NOT show full alternatives/pros/cons for the first area and then shortcut remaining areas to just a recommendation line + question. EVERY area gets the SAME level of detail — all alternatives with descriptions, pros, and cons. No exceptions.
57
-
58
- **Per-area handling** (the two guards above apply to EVERY area, including partial resumes):
59
-
60
- 1. Read `outputs/solution-exploration.md`
61
- 2. For each decision area sequentially, output ALL of the following (steps a-d) BEFORE calling question:
62
- a. **Area header**: area name and why this decision matters (1-2 sentences of context)
63
- b. **Alternatives detail**: For EVERY alternative in this area, show:
64
- - Name and description (2-3 sentences)
65
- - Pros (bullet list)
66
- - Cons (bullet list)
67
- c. **Recommendation**: which alternative is recommended and why (1 sentence)
68
- d. **question**: this area's alternatives as options (mark recommended with "(Recommended)") + "Need more info" option
69
- e. If user picks → record choice (write the per-area partial state immediately — see State Update Convention), move to next area
70
- f. If "Need more info" → present the detailed trade-off analysis for the requested alternative, then re-ask
71
-
72
- > **SELF-CHECK before each question**: Did you output the alternatives with pros/cons for THIS area? If you only showed a recommendation line without listing all alternatives and their pros/cons, STOP and output the full detail before asking.
73
-
74
- 3. After all areas resolved, present a brief summary of the chosen combination (this summary moves into the Exit-Gate results box below — the boundary to design/finalize stays explicit, no AUTO-CONTINUE)
75
- 4. **GATE CHECK**: Verify that question was called for EACH decision area. If any decision area was skipped for any reason (e.g., output file missing, read failure), STOP and resolve before continuing. Do NOT mark the convergence complete without user convergence on all decision areas.
76
-
77
- ### Close (`approaches-chosen`)
78
-
79
- 1. **State write**: append `approaches-chosen` to `completed_phases` — ONLY after the LAST unresolved area resolves; update `phase_summaries.converge {summary, decision_areas, deferred_ideas}` (deferred ideas recorded when the exploration documents them); bump `orchestrator.updated`. On failure: append `approaches-chosen` to `failed_phases`, increment `auto_fix_attempts["approaches-chosen"]`. Then re-read state + run `verify_template` (see State Update Convention).
80
-
81
- ## State Update Convention (per step)
82
-
83
- Apply after EVERY step above:
84
-
85
- 1. **Write immediately — per area**: as each decision area resolves, record the `chosen_approach` into that area's entry in `phase_summaries.converge.decision_areas` immediately (never batch all areas into one end-of-skill write — the per-area write is what makes partial resume work). The `approaches-chosen` slug is appended ONLY after the LAST unresolved area resolves.
86
- 2. **Timestamp** — set `orchestrator.updated` to the current UTC timestamp on every write.
87
- 3. **Failures** — if a question cannot fire (read failure, tool failure) or an area could not resolve, do NOT append `approaches-chosen` to `completed_phases`; instead append it to `orchestrator.failed_phases` and increment `auto_fix_attempts["approaches-chosen"]`. A deliberate "stop here" at an area question is NOT a failure — the area simply stays unresolved and partial resume picks it up on the next run.
88
- 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-research.yml`. Fix any reported issue immediately before proceeding.
89
- 5. **Final check** — before the Exit Gate, one consolidated re-read + `verify_template` run to confirm the full state matches everything performed in this session.
90
-
91
- ## Recovery
92
-
93
- | Step | Max Attempts | Strategy |
94
- | ------------------------------- | ------------ | -------------------------------------------- |
95
- | Converge (`approaches-chosen`) | 1 | Re-read exploration file, re-present areas |
96
-
97
- ## Exit Gate
98
-
99
- Present results, get user confirmation, then hand off (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)). Never auto-invoke the next skill. The chosen-combination summary (step 3 above) is folded into the results box.
100
-
101
- ### Results box
102
-
103
- ```markdown
104
- ## ✅ RESEARCH CONVERGE COMPLETE — <research question>
105
-
106
- **Decision areas** — [N areas resolved]
107
- **Chosen combination** — [area: choice, one line per area]
108
- **Deferred ideas** — [one line each / none]
109
- **Design decision** — [feeds into design as `selected_approach` / no design planned]
110
-
111
- **Artifacts**
112
-
113
- - none (state-only) — decisions live in `phase_summaries.converge.decision_areas` of `orchestrator-state.yml`; `outputs/solution-exploration.md` stays the shared record
114
- ```
115
-
116
- ### Results-acceptance question
117
-
118
- Use `question` — "Are these results correct?" with options:
119
-
120
- - **Accept** — the per-area decisions are good; continue.
121
- - **Adjust** — re-open a specific area: re-present that ONE area with full detail and re-ask its question (other areas untouched), update state, re-present the results box.
122
- - **Discuss** — walk through a specific area's trade-offs in more depth; then re-ask.
123
- - **Stop here** — print the resume command (`/owflow:research-converge <task-path>`) and end. Note: unresolved areas re-ask on the next run (per-area partial resume).
124
-
125
- ### Next steps (after Accept)
126
-
127
- - `→ /owflow:research-design <task-path>` — when the user wants high-level design: Part A asks design preferences, Part B delegates the solution-designer with the chosen combination as `selected_approach`, Part D refines diagrams. Remaining after: finalize.
128
- - `→ /owflow:research-finalize <task-path>` — when no design is wanted: inventories the research outputs and completes the task (`research-completed`). Remaining after: none.
129
-
130
- Then STOP.
1
+ ---
2
+ name: owflow:research-converge
3
+ description: Research skill — optional subskill. Presents the brainstorming alternatives for EVERY decision area with identical full detail — one area, one question — records each chosen approach in phase_summaries.converge.decision_areas (approaches-chosen). Never a combined summary-table confirm.
4
+ argument-hint: "[task-path-or-identifier]"
5
+ user-invocable: true
6
+ ---
7
+
8
+ # Research Converge — Per-Area Decisions (approaches-chosen)
9
+
10
+ Work phase of the research workflow. Interactive convergence: presents the brainstorming alternatives for each decision area — one area, one dedicated `question` — and records the chosen combination in state (state-only; no new artifacts). Conditional optional phase — runs only when brainstorming ran. There is no auto-continue from brainstorm: this skill's Entry Gate re-checks the artifact. State lives in `orchestrator-state.yml` — this skill reads it on entry and writes results on exit.
11
+
12
+ Related phases: `/owflow:research-brainstorm` (produces `outputs/solution-exploration.md`, which this skill parses), `/owflow:research-design` (consumes the chosen combination as `selected_approach`), `/owflow:research-finalize` (the route when design is off).
13
+
14
+ ## Entry Gate
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/research/` (e.g., `2026-09-26-my-research`); resolve to its path.
20
+ - If the argument is **missing**, the path does **not exist**, or matches **no identifier** → print the blocked block, then STOP (never guess or auto-pick a task):
21
+ 1. Steps that must be completed first (in order), each with its command:
22
+ - Research brief & plan (`brief-written`, `plan-created`) → `/owflow:research-plan <task-path>`
23
+ - Parallel findings fan (`findings-gathered`) → `/owflow:research-gather <task-path>`
24
+ - Synthesis & research report (`synthesis-complete`) → `/owflow:research-synthesize <task-path>`
25
+ - Solution alternatives (`alternatives-generated`) → `/owflow:research-brainstorm <task-path>`
26
+ 2. List available research-task identifiers (directories under `.owflow/tasks/research/`) to resume from, if any.
27
+ 3. Hint: `Run /owflow:research <question> to start a task from scratch, or pass a task path/identifier to resume.`
28
+
29
+ ### Prerequisites
30
+
31
+ | Required for this skill | Where verified | Produced by |
32
+ | ----------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
33
+ | State file exists | `<task-path>/orchestrator-state.yml` | `/owflow:research <question>` or `/owflow:research-quick` |
34
+ | Foundation complete | `synthesis-complete` in `completed_phases` + `analysis/synthesis.md` exists | `/owflow:research-synthesize <task-path>` |
35
+ | Alternatives exist | `alternatives-generated` in `completed_phases` + `outputs/solution-exploration.md` exists | `/owflow:research-brainstorm <task-path>` |
36
+
37
+ 1. **Read `orchestrator-state.yml`** from the task path. If missing → mid-pipeline bootstrap ([Missing-state Bootstrap](../orchestrator-framework/references/gate-contract.md), starting slug `approaches-chosen`): `question` — create a fresh standard research task starting at this step, or decline → print `No research task found at <path>. Run /owflow:research <question> to start a task from scratch.` and STOP.
38
+ 2. **Prerequisite check**: `synthesis-complete` AND `alternatives-generated` must be in `completed_phases`, and `outputs/solution-exploration.md` must exist. If missing → print the blocked block, then STOP:
39
+ - `Run /owflow:research-brainstorm <task-path> first` (or the command for the earliest missing earlier step: `/owflow:research-plan`, `/owflow:research-gather`, or `/owflow:research-synthesize`).
40
+ 3. **Skip/resume (per-area partial resume)**: if `approaches-chosen` is in `completed_phases`, validate every `phase_summaries.converge.decision_areas` entry carries `chosen_approach` — all resolve → report the existing chosen combination and route to the Exit Gate; any area unresolved → re-ask ONLY the unresolved areas below. Also — even WITHOUT the slug — skip any area whose `decision_areas` entry already carries `chosen_approach`; only unresolved areas are ever asked.
41
+
42
+ ## Input / Output Artifacts
43
+
44
+ | Artifact | Normal mode (full lane) | Quick mode (`research-quick`) |
45
+ | ---------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
46
+ | Consumed: `outputs/solution-exploration.md` | parsed for decision areas + alternatives | identical — when the optional chain runs after a quick pass, the exploration file was produced by research-brainstorm |
47
+ | Produced: none (state-only) | decisions recorded inline per area | same mechanics — research-quick never converges inline |
48
+ | State write | `approaches-chosen`; `phase_summaries.converge {summary, decision_areas, deferred_ideas}` (per-area partial writes) | same slug and fields |
49
+
50
+ ## Execute (direct interactive — per-area convergence)
51
+
52
+ **Read first**: the [Delegation Rules](../orchestrator-framework/references/delegation-rules.md) — per-area convergence is direct interactive work (like dev-verify's interactive phases); no agents involved.
53
+
54
+ > **ANTI-PATTERN**: Do NOT present all decision areas in a single summary table and ask one combined "do you agree?" question. Each area MUST get its own detailed presentation and its own question call.
55
+ >
56
+ > **ANTI-PATTERN**: Do NOT show full alternatives/pros/cons for the first area and then shortcut remaining areas to just a recommendation line + question. EVERY area gets the SAME level of detail — all alternatives with descriptions, pros, and cons. No exceptions.
57
+
58
+ **Per-area handling** (the two guards above apply to EVERY area, including partial resumes):
59
+
60
+ 1. Read `outputs/solution-exploration.md`
61
+ 2. For each decision area sequentially, output ALL of the following (steps a-d) BEFORE calling question:
62
+ a. **Area header**: area name and why this decision matters (1-2 sentences of context)
63
+ b. **Alternatives detail**: For EVERY alternative in this area, show:
64
+ - Name and description (2-3 sentences)
65
+ - Pros (bullet list)
66
+ - Cons (bullet list)
67
+ c. **Recommendation**: which alternative is recommended and why (1 sentence)
68
+ d. **question**: this area's alternatives as options (mark recommended with "(Recommended)") + "Need more info" option
69
+ e. If user picks → record choice (write the per-area partial state immediately — see State Update Convention), move to next area
70
+ f. If "Need more info" → present the detailed trade-off analysis for the requested alternative, then re-ask
71
+
72
+ > **SELF-CHECK before each question**: Did you output the alternatives with pros/cons for THIS area? If you only showed a recommendation line without listing all alternatives and their pros/cons, STOP and output the full detail before asking.
73
+
74
+ 3. After all areas resolved, present a brief summary of the chosen combination (this summary moves into the Exit-Gate results box below — the boundary to design/finalize stays explicit, no AUTO-CONTINUE)
75
+ 4. **GATE CHECK**: Verify that question was called for EACH decision area. If any decision area was skipped for any reason (e.g., output file missing, read failure), STOP and resolve before continuing. Do NOT mark the convergence complete without user convergence on all decision areas.
76
+
77
+ ### Close (`approaches-chosen`)
78
+
79
+ 1. **State write**: append `approaches-chosen` to `completed_phases` — ONLY after the LAST unresolved area resolves; update `phase_summaries.converge {summary, decision_areas, deferred_ideas}` (deferred ideas recorded when the exploration documents them); bump `orchestrator.updated`. On failure: append `approaches-chosen` to `failed_phases`, increment `auto_fix_attempts["approaches-chosen"]`. Then re-read state + run `verify_template` (see State Update Convention).
80
+
81
+ ## State Update Convention (per step)
82
+
83
+ Apply after EVERY step above:
84
+
85
+ 1. **Write immediately — per area**: as each decision area resolves, record the `chosen_approach` into that area's entry in `phase_summaries.converge.decision_areas` immediately (never batch all areas into one end-of-skill write — the per-area write is what makes partial resume work). The `approaches-chosen` slug is appended ONLY after the LAST unresolved area resolves.
86
+ 2. **Timestamp** — set `orchestrator.updated` to the current UTC timestamp on every write.
87
+ 3. **Failures** — if a question cannot fire (read failure, tool failure) or an area could not resolve, do NOT append `approaches-chosen` to `completed_phases`; instead append it to `orchestrator.failed_phases` and increment `auto_fix_attempts["approaches-chosen"]`. A deliberate "stop here" at an area question is NOT a failure — the area simply stays unresolved and partial resume picks it up on the next run.
88
+ 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-research.yml`. Fix any reported issue immediately before proceeding.
89
+ 5. **Final check** — before the Exit Gate, one consolidated re-read + `verify_template` run to confirm the full state matches everything performed in this session.
90
+
91
+ ## Recovery
92
+
93
+ | Step | Max Attempts | Strategy |
94
+ | ------------------------------- | ------------ | -------------------------------------------- |
95
+ | Converge (`approaches-chosen`) | 1 | Re-read exploration file, re-present areas |
96
+
97
+ ## Exit Gate
98
+
99
+ Present results, get user confirmation, then hand off (see [Gate Contract](../orchestrator-framework/references/gate-contract.md)). Never auto-invoke the next skill. The chosen-combination summary (step 3 above) is folded into the results box.
100
+
101
+ ### Results box
102
+
103
+ ```markdown
104
+ ## ✅ RESEARCH CONVERGE COMPLETE — <research question>
105
+
106
+ **Decision areas** — [N areas resolved]
107
+ **Chosen combination** — [area: choice, one line per area]
108
+ **Deferred ideas** — [one line each / none]
109
+ **Design decision** — [feeds into design as `selected_approach` / no design planned]
110
+
111
+ **Artifacts**
112
+
113
+ - none (state-only) — decisions live in `phase_summaries.converge.decision_areas` of `orchestrator-state.yml`; `outputs/solution-exploration.md` stays the shared record
114
+ ```
115
+
116
+ ### Results-acceptance question
117
+
118
+ Use `question` — "Are these results correct?" with options:
119
+
120
+ - **Accept** — the per-area decisions are good; continue.
121
+ - **Adjust** — re-open a specific area: re-present that ONE area with full detail and re-ask its question (other areas untouched), update state, re-present the results box.
122
+ - **Discuss** — walk through a specific area's trade-offs in more depth; then re-ask.
123
+ - **Stop here** — print the resume command (`/owflow:research-converge <task-path>`) and end. Note: unresolved areas re-ask on the next run (per-area partial resume).
124
+
125
+ ### Next steps (after Accept)
126
+
127
+ - `→ /owflow:research-design <task-path>` — when the user wants high-level design: Part A asks design preferences, Part B delegates the solution-designer with the chosen combination as `selected_approach`, Part D refines diagrams. Remaining after: finalize.
128
+ - `→ /owflow:research-finalize <task-path>` — when no design is wanted: inventories the research outputs and completes the task (`research-completed`). Remaining after: none.
129
+
130
+ Then STOP.