@tgoodington/intuition 8.1.3 → 9.2.1

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 (154) hide show
  1. package/README.md +9 -9
  2. package/docs/project_notes/.project-memory-state.json +100 -0
  3. package/docs/project_notes/branches/.gitkeep +0 -0
  4. package/docs/project_notes/bugs.md +41 -0
  5. package/docs/project_notes/decisions.md +147 -0
  6. package/docs/project_notes/issues.md +101 -0
  7. package/docs/project_notes/key_facts.md +88 -0
  8. package/docs/project_notes/trunk/.gitkeep +0 -0
  9. package/docs/project_notes/trunk/.planning_research/decision_file_naming.md +15 -0
  10. package/docs/project_notes/trunk/.planning_research/decisions_log.md +32 -0
  11. package/docs/project_notes/trunk/.planning_research/orientation.md +51 -0
  12. package/docs/project_notes/trunk/audit/plan-rename-hitlist.md +654 -0
  13. package/docs/project_notes/trunk/blueprint-conflicts.md +109 -0
  14. package/docs/project_notes/trunk/blueprints/database-architect.md +416 -0
  15. package/docs/project_notes/trunk/blueprints/devops-infrastructure.md +514 -0
  16. package/docs/project_notes/trunk/blueprints/technical-writer.md +788 -0
  17. package/docs/project_notes/trunk/build_brief.md +119 -0
  18. package/docs/project_notes/trunk/build_report.md +250 -0
  19. package/docs/project_notes/trunk/detail_brief.md +94 -0
  20. package/docs/project_notes/trunk/plan.md +182 -0
  21. package/docs/project_notes/trunk/planning_brief.md +96 -0
  22. package/docs/project_notes/trunk/prompt_brief.md +60 -0
  23. package/docs/project_notes/trunk/prompt_output.json +98 -0
  24. package/docs/project_notes/trunk/scratch/database-architect-decisions.json +72 -0
  25. package/docs/project_notes/trunk/scratch/database-architect-research-plan.md +10 -0
  26. package/docs/project_notes/trunk/scratch/database-architect-stage1.md +226 -0
  27. package/docs/project_notes/trunk/scratch/devops-infrastructure-decisions.json +71 -0
  28. package/docs/project_notes/trunk/scratch/devops-infrastructure-research-plan.md +7 -0
  29. package/docs/project_notes/trunk/scratch/devops-infrastructure-stage1.md +164 -0
  30. package/docs/project_notes/trunk/scratch/technical-writer-decisions.json +88 -0
  31. package/docs/project_notes/trunk/scratch/technical-writer-research-plan.md +7 -0
  32. package/docs/project_notes/trunk/scratch/technical-writer-stage1.md +266 -0
  33. package/docs/project_notes/trunk/team_assignment.json +108 -0
  34. package/docs/project_notes/trunk/test_brief.md +75 -0
  35. package/docs/project_notes/trunk/test_report.md +26 -0
  36. package/docs/project_notes/trunk/verification/devops-infrastructure-verification.md +172 -0
  37. package/docs/v9/decision-framework-direction.md +142 -0
  38. package/docs/v9/decision-framework-implementation.md +114 -0
  39. package/docs/v9/domain-adaptive-team-architecture.md +1016 -0
  40. package/docs/v9/test/SESSION_SUMMARY.md +117 -0
  41. package/docs/v9/test/TEST_PLAN.md +119 -0
  42. package/docs/v9/test/blueprints/legal-analyst.md +166 -0
  43. package/docs/v9/test/output/07_cover_letter.md +41 -0
  44. package/docs/v9/test/phase2/mock_plan.md +89 -0
  45. package/docs/v9/test/phase2/producers.json +32 -0
  46. package/docs/v9/test/phase2/specialists/database-architect.specialist.md +10 -0
  47. package/docs/v9/test/phase2/specialists/financial-analyst.specialist.md +10 -0
  48. package/docs/v9/test/phase2/specialists/legal-analyst.specialist.md +10 -0
  49. package/docs/v9/test/phase2/specialists/technical-writer.specialist.md +10 -0
  50. package/docs/v9/test/phase2/team_assignment.json +61 -0
  51. package/docs/v9/test/phase3/blueprints/legal-analyst.md +840 -0
  52. package/docs/v9/test/phase3/legal-analyst-full.specialist.md +111 -0
  53. package/docs/v9/test/phase3/project_context/nh_landlord_tenant_notes.md +35 -0
  54. package/docs/v9/test/phase3/project_context/property_facts.md +32 -0
  55. package/docs/v9/test/phase3b/blueprints/legal-analyst.md +1715 -0
  56. package/docs/v9/test/phase3b/legal-analyst.specialist.md +153 -0
  57. package/docs/v9/test/phase3b/scratch/legal-analyst-stage1.md +270 -0
  58. package/docs/v9/test/phase4/TEST_PLAN.md +32 -0
  59. package/docs/v9/test/phase4/blueprints/financial-analyst-T2.md +538 -0
  60. package/docs/v9/test/phase4/blueprints/legal-analyst-T4.md +253 -0
  61. package/docs/v9/test/phase4/cross-blueprint-check.md +280 -0
  62. package/docs/v9/test/phase4/scratch/financial-analyst-T2-stage1.md +67 -0
  63. package/docs/v9/test/phase4/scratch/legal-analyst-T4-stage1.md +54 -0
  64. package/docs/v9/test/phase4/specialists/financial-analyst.specialist.md +156 -0
  65. package/docs/v9/test/phase4/specialists/legal-analyst.specialist.md +153 -0
  66. package/docs/v9/test/phase5/TEST_PLAN.md +35 -0
  67. package/docs/v9/test/phase5/blueprints/code-architect-hw-vetter.md +375 -0
  68. package/docs/v9/test/phase5/output/04_compliance_checklist.md +149 -0
  69. package/docs/v9/test/phase5/output/hardware-vetter-SKILL-v2.md +561 -0
  70. package/docs/v9/test/phase5/output/hardware-vetter-SKILL.md +459 -0
  71. package/docs/v9/test/phase5/producers/code-writer.producer.md +49 -0
  72. package/docs/v9/test/phase5/producers/document-writer.producer.md +62 -0
  73. package/docs/v9/test/phase5/regression-comparison-v2.md +60 -0
  74. package/docs/v9/test/phase5/regression-comparison.md +197 -0
  75. package/docs/v9/test/phase5/review-5A-specialist.md +213 -0
  76. package/docs/v9/test/phase5/specialist-test/TEST_PLAN.md +60 -0
  77. package/docs/v9/test/phase5/specialist-test/blueprint-comparison.md +252 -0
  78. package/docs/v9/test/phase5/specialist-test/blueprints/code-architect-hw-vetter.md +916 -0
  79. package/docs/v9/test/phase5/specialist-test/scratch/code-architect-stage1.md +427 -0
  80. package/docs/v9/test/phase5/specialists/code-architect.specialist.md +168 -0
  81. package/docs/v9/test/phase5b/TEST_PLAN.md +219 -0
  82. package/docs/v9/test/phase5b/blueprints/5B-10-stage2-with-decisions.md +286 -0
  83. package/docs/v9/test/phase5b/decisions/5B-2-accept-all-decisions.json +68 -0
  84. package/docs/v9/test/phase5b/decisions/5B-3-promote-decisions.json +70 -0
  85. package/docs/v9/test/phase5b/decisions/5B-4-individual-decisions.json +68 -0
  86. package/docs/v9/test/phase5b/decisions/5B-5-triage-decisions.json +110 -0
  87. package/docs/v9/test/phase5b/decisions/5B-6-fallback-decisions.json +40 -0
  88. package/docs/v9/test/phase5b/decisions/5B-8-partial-decisions.json +46 -0
  89. package/docs/v9/test/phase5b/decisions/5B-9-complete-decisions.json +54 -0
  90. package/docs/v9/test/phase5b/scratch/code-architect-stage1.md +133 -0
  91. package/docs/v9/test/phase5b/specialists/code-architect.specialist.md +202 -0
  92. package/docs/v9/test/phase5b/stage1-many-decisions.md +139 -0
  93. package/docs/v9/test/phase5b/stage1-no-assumptions.md +70 -0
  94. package/docs/v9/test/phase5b/stage1-with-assumptions.md +86 -0
  95. package/docs/v9/test/phase5b/test-5B-1-results.md +157 -0
  96. package/docs/v9/test/phase5b/test-5B-10-results.md +130 -0
  97. package/docs/v9/test/phase5b/test-5B-2-results.md +75 -0
  98. package/docs/v9/test/phase5b/test-5B-3-results.md +104 -0
  99. package/docs/v9/test/phase5b/test-5B-4-results.md +114 -0
  100. package/docs/v9/test/phase5b/test-5B-5-results.md +126 -0
  101. package/docs/v9/test/phase5b/test-5B-6-results.md +60 -0
  102. package/docs/v9/test/phase5b/test-5B-7-results.md +141 -0
  103. package/docs/v9/test/phase5b/test-5B-8-results.md +115 -0
  104. package/docs/v9/test/phase5b/test-5B-9-results.md +76 -0
  105. package/docs/v9/test/producers/document-writer.producer.md +62 -0
  106. package/docs/v9/test/specialists/legal-analyst.specialist.md +58 -0
  107. package/package.json +4 -2
  108. package/producers/code-writer/code-writer.producer.md +86 -0
  109. package/producers/data-file-writer/data-file-writer.producer.md +116 -0
  110. package/producers/document-writer/document-writer.producer.md +117 -0
  111. package/producers/form-filler/form-filler.producer.md +99 -0
  112. package/producers/presentation-creator/presentation-creator.producer.md +109 -0
  113. package/producers/spreadsheet-builder/spreadsheet-builder.producer.md +107 -0
  114. package/scripts/install-skills.js +97 -9
  115. package/scripts/uninstall-skills.js +7 -2
  116. package/skills/intuition-agent-advisor/SKILL.md +327 -220
  117. package/skills/intuition-assemble/SKILL.md +261 -0
  118. package/skills/intuition-build/SKILL.md +379 -319
  119. package/skills/intuition-debugger/SKILL.md +390 -390
  120. package/skills/intuition-design/SKILL.md +385 -381
  121. package/skills/intuition-detail/SKILL.md +377 -0
  122. package/skills/intuition-engineer/SKILL.md +307 -303
  123. package/skills/intuition-handoff/SKILL.md +264 -222
  124. package/skills/intuition-handoff/references/handoff_core.md +54 -54
  125. package/skills/intuition-initialize/SKILL.md +21 -6
  126. package/skills/intuition-initialize/references/agents_template.md +118 -118
  127. package/skills/intuition-initialize/references/claude_template.md +134 -134
  128. package/skills/intuition-initialize/references/intuition_readme_template.md +4 -4
  129. package/skills/intuition-initialize/references/state_template.json +17 -2
  130. package/skills/{intuition-plan → intuition-outline}/SKILL.md +561 -481
  131. package/skills/{intuition-plan → intuition-outline}/references/magellan_core.md +16 -16
  132. package/skills/{intuition-plan → intuition-outline}/references/templates/plan_template.md +6 -6
  133. package/skills/intuition-prompt/SKILL.md +374 -312
  134. package/skills/intuition-start/SKILL.md +46 -13
  135. package/skills/intuition-start/references/start_core.md +60 -60
  136. package/skills/intuition-test/SKILL.md +345 -0
  137. package/specialists/api-designer/api-designer.specialist.md +291 -0
  138. package/specialists/business-analyst/business-analyst.specialist.md +270 -0
  139. package/specialists/copywriter/copywriter.specialist.md +268 -0
  140. package/specialists/database-architect/database-architect.specialist.md +275 -0
  141. package/specialists/devops-infrastructure/devops-infrastructure.specialist.md +314 -0
  142. package/specialists/financial-analyst/financial-analyst.specialist.md +269 -0
  143. package/specialists/frontend-component/frontend-component.specialist.md +293 -0
  144. package/specialists/instructional-designer/instructional-designer.specialist.md +285 -0
  145. package/specialists/legal-analyst/legal-analyst.specialist.md +260 -0
  146. package/specialists/marketing-strategist/marketing-strategist.specialist.md +281 -0
  147. package/specialists/project-manager/project-manager.specialist.md +266 -0
  148. package/specialists/research-analyst/research-analyst.specialist.md +273 -0
  149. package/specialists/security-auditor/security-auditor.specialist.md +354 -0
  150. package/specialists/technical-writer/technical-writer.specialist.md +275 -0
  151. /package/skills/{intuition-plan → intuition-outline}/references/sub_agents.md +0 -0
  152. /package/skills/{intuition-plan → intuition-outline}/references/templates/confidence_scoring.md +0 -0
  153. /package/skills/{intuition-plan → intuition-outline}/references/templates/plan_format.md +0 -0
  154. /package/skills/{intuition-plan → intuition-outline}/references/templates/planning_process.md +0 -0
@@ -0,0 +1,109 @@
1
+ # Blueprint Conflict Analysis
2
+
3
+ > Blueprints reviewed: devops-infrastructure.md, technical-writer.md, database-architect.md
4
+ > Analysis date: 2026-03-05
5
+
6
+ ---
7
+
8
+ ## Summary
9
+
10
+ One minor documentation inconsistency found. No contradictory decisions, no conflicting file modifications, no inconsistent interface assumptions, and no duplicated deliverables.
11
+
12
+ ---
13
+
14
+ ## 1. Contradictory Decisions
15
+
16
+ None found.
17
+
18
+ All three blueprints share the same rename direction (`plan`/`planning` -> `outline`/`outline`), the same KEEP/RENAME disambiguation rules (generic English preserved, phase-name references renamed), and the same task dependency ordering (T3 before T4/T5, T2 before T6, all before T8).
19
+
20
+ ---
21
+
22
+ ## 2. Overlapping File Modifications
23
+
24
+ ### `skills/intuition-handoff/SKILL.md` — documented overlap, not a conflict
25
+
26
+ Both database-architect (T3, Sections 5.5-5.11, Edits 5-25) and technical-writer (T5, handoff section) specify renames to this file.
27
+
28
+ Per the review instructions, this is NOT a conflict. The database-architect blueprint explicitly documents the overlap in Section 7 ("Cross-Blueprint Overlap") and states: "both blueprints target the same old strings and specify the same new strings." Spot-checking confirms this — e.g., both specify `planning_brief.md` -> `outline_brief.md`, `/intuition-plan` -> `/intuition-outline`, `workflow.planning.started` -> `workflow.outline.started`, `status == "planning"` -> `status == "outline"`, transition headings `PROMPT -> PLANNING` -> `PROMPT -> OUTLINE`, etc.
29
+
30
+ The edits unique to each blueprint are non-overlapping:
31
+ - database-architect owns: schema heading version bump (Edit 1), JSON version field bump (Edit 2), JSON key rename in template (Edit 3), status enum update in template (Edit 4), V7 migration handler insertion (Section 5.4).
32
+ - technical-writer owns: no handoff-specific structural changes beyond the prose renames, which match database-architect's overlap list exactly.
33
+
34
+ No other files are targeted by more than one blueprint. `scripts/install-skills.js`, `scripts/uninstall-skills.js`, and `package.json` are exclusively owned by devops-infrastructure (T6). `skills/intuition-initialize/SKILL.md` is exclusively owned by technical-writer (T4). All documentation files are exclusively owned by technical-writer (T7).
35
+
36
+ ---
37
+
38
+ ## 3. Inconsistent Interface Assumptions
39
+
40
+ None found.
41
+
42
+ The state field coupling is internally consistent across all three blueprints:
43
+
44
+ - database-architect T3 renames the handoff's schema template and writes `workflow.outline.*` and `status: "outline"`.
45
+ - technical-writer T4 renames the initialize template's `"planning"` key to `"outline"` (consistent target name).
46
+ - technical-writer T5 updates the start skill's reads of `workflow.planning.*` and `status == "planning"` to `workflow.outline.*` and `status == "outline"` (consistent with what handoff will write).
47
+
48
+ All three blueprints agree that the dependency chain is T3 → T4 → T5. database-architect Section 1 states "T4 and T5 depend on T3." technical-writer T4 states "Dependencies: T3."
49
+
50
+ ---
51
+
52
+ ## 4. Duplicated Work
53
+
54
+ None found.
55
+
56
+ Each deliverable is owned by exactly one task:
57
+ - Audit hit list: T1 (devops-infrastructure)
58
+ - Outline skill rename: T2 (technical-writer)
59
+ - Handoff schema + migration handler: T3 (database-architect)
60
+ - Initialize template update: T4 (technical-writer)
61
+ - All other skill prose renames: T5 (technical-writer)
62
+ - Script and package config updates: T6 (devops-infrastructure)
63
+ - Documentation and memory renames: T7 (technical-writer)
64
+ - Verification sweep: T8 (devops-infrastructure)
65
+
66
+ ---
67
+
68
+ ## 5. Minor Documentation Inconsistency (non-blocking)
69
+
70
+ ### T8 test fixture uses `workflow_pipeline` instead of `workflow`
71
+
72
+ **Location**: devops-infrastructure.md, Section 5 (T8 deliverable), Phase 3 (Migration Handler Validation).
73
+
74
+ The test fixture provided in the devops-infrastructure blueprint uses `workflow_pipeline` as the state field name:
75
+
76
+ ```json
77
+ "active_context": {
78
+ "status": "planning",
79
+ "workflow_pipeline": {
80
+ "planning": { "status": "in_progress" }
81
+ }
82
+ }
83
+ ```
84
+
85
+ However, the actual state schema field is `workflow` (not `workflow_pipeline`), as confirmed by the database-architect blueprint's schema template (Edit 3 targets `"planning": { "started": false, ...}` within the `workflow` object) and the handoff skill's transition condition references (`workflow.planning.started`, `workflow.planning.completed`).
86
+
87
+ **Impact**: The T8 verification fixture does not match the real state schema structure. When the code-writer producer implements the T8 verification, it should use the correct field name `workflow` (not `workflow_pipeline`) for the test fixture and expected output to exercise the actual migration handler correctly.
88
+
89
+ **Severity**: Low. This affects only the T8 test document content, not the migration handler itself. The migration handler (specified by database-architect) correctly targets `workflow.planning`. The T8 producer should use the corrected fixture:
90
+
91
+ ```json
92
+ {
93
+ "schema_version": "8.0",
94
+ "active_context": {
95
+ "status": "outline",
96
+ "workflow": {
97
+ "outline": { "status": "in_progress" }
98
+ }
99
+ }
100
+ }
101
+ ```
102
+
103
+ Note: the fixture also uses `schema_version` at the root level while the actual state schema uses `version` at the root level (per database-architect Edit 2 which targets `"version": "7.0"`). The T8 producer should align the fixture field names with the real schema before executing the test.
104
+
105
+ ---
106
+
107
+ ## 6. Informational: Imprecise Cross-Reference (not a conflict)
108
+
109
+ devops-infrastructure Section 7 ("State Schema Integration") notes that the v7->v8 migration handler "is NOT written by T6 (devops-infrastructure). It is written by another task (likely T4 or T5)." The actual owner is T3 (database-architect), not T4 or T5. This is an imprecise guess in informational commentary only — devops-infrastructure correctly acknowledges it does not own this work. No action needed.
@@ -0,0 +1,416 @@
1
+ # Database Architect Blueprint
2
+
3
+ > Specialist: database-architect
4
+ > Tasks: T3 (Handoff migration handler + schema update)
5
+ > Decision Policy: aggressive (fully delegated)
6
+ > Generated: 2026-03-05
7
+
8
+ ---
9
+
10
+ ## 1. Task Reference
11
+
12
+ ### T3: Add v7->v8 migration handler to handoff skill (Standard)
13
+ - **Acceptance Criteria**:
14
+ 1. Schema version is 8.0 in the handoff SKILL.md header and schema definition
15
+ 2. v7->v8 migration handler exists and renames `planning` -> `outline` in state objects
16
+ 3. All transition messages route to `/intuition-outline` (not `/intuition-plan`)
17
+ 4. All file path references use `outline_brief.md`, `outline.md`
18
+ 5. State field references use `outline` throughout
19
+ 6. Existing v5->v6 and v6->v7 migration handlers are preserved unchanged
20
+ - **Dependencies**: None (T3 is execution phase 1; T4 and T5 depend on T3)
21
+
22
+ ---
23
+
24
+ ## 2. Research Findings
25
+
26
+ ### Target File
27
+
28
+ - **File**: `skills/intuition-handoff/SKILL.md` (~520 lines)
29
+ - **Engine**: Not applicable (prose-based state schema, not a database engine). The "schema" is a JSON template embedded in a Markdown skill file that Claude reads and interprets at runtime.
30
+ - **Naming conventions**: JSON keys use `snake_case`. Status enum values use `lowercase`. Migration handler sections use `## V{N} STATE MIGRATION` heading format. Transitions use `## TRANSITION {N}: SOURCE -> TARGET` heading format.
31
+
32
+ ### Reference Inventory (RF1)
33
+
34
+ All 17 unique lines containing `planning`/`plan` in the handoff file are PHASE-NAME references. Zero generic English instances exist. This eliminates disambiguation concerns entirely for this file.
35
+
36
+ The references break into four categories:
37
+
38
+ **Category A -- Schema definition (2 lines)**
39
+ - Line 131: Status enum includes `planning` as a valid status value
40
+ - Line 134: `"planning": { ... }` workflow phase object key in JSON schema template
41
+
42
+ **Category B -- Transition condition checks (2 lines)**
43
+ - Line 74: `workflow.planning.started == false` (Transition 1 detection)
44
+ - Line 77: `status == "planning" AND workflow.planning.completed == true` (Transition 2/2v9 detection)
45
+
46
+ **Category C -- Transition state writes and routing (12 lines)**
47
+ - Line 24: Critical rule mentioning `prompt->planning`
48
+ - Line 62: Protocol step scoped to `prompt->planning only`
49
+ - Line 208: Transition 1 heading `PROMPT -> PLANNING`
50
+ - Line 216: `planning_brief.md` generation instruction
51
+ - Line 218: Sets `status` to `"planning"`, `planning.started = true`, routes to `/intuition-plan`, references `planning_brief.md` (3 hits in one line)
52
+ - Line 220: Transition 2 heading `PLANNING -> DESIGN`
53
+ - Line 222: Reads `plan.md`, references "planning work"
54
+ - Line 228: `planning.completed = true`
55
+ - Line 230: Transition 2B heading `PLANNING -> ENGINEER`
56
+ - Line 234: `planning.completed = true`
57
+ - Line 236: Transition 2v9 heading `PLAN -> ASSEMBLE`
58
+ - Lines 238, 242, 243, 248: Various `plan.md`, `planning` state writes in v9 transitions
59
+
60
+ **Category D -- Historical migration artifacts (1 line)**
61
+ - Line 206: V3 migration references `planning_brief.md`, `plan.md`, `.planning_research/` as files to move during v3.0 restructuring
62
+
63
+ ### Migration Handler Pattern (RF2)
64
+
65
+ All four existing handlers follow a rigid pattern:
66
+
67
+ ```
68
+ ## V{N} STATE MIGRATION
69
+
70
+ Fires when handoff detects `version == "{N}.0"` [optional: OR fallback condition].
71
+ For trunk and every branch: [mutation description].
72
+ Set `version: "{target}"`, preserve all other fields, write state.
73
+ Report: "Migrated state from v{N}.0 to v{target}.0 ({change description})."
74
+ Then continue with the original transition.
75
+ ```
76
+
77
+ **Ordering convention**: Newer migrations appear first in the file. Current order: V5 (line 192), V6 (line 196), V4 (line 200), V3 (line 204). The V7 handler belongs BEFORE V5 (at line ~192, pushing others down).
78
+
79
+ **Closest structural precedent**: V4 handler -- renames a field (`execution` -> `build`) and remaps a status value (`"executing"` -> `"building"`). T3's v7->v8 handler must rename `planning` -> `outline` and remap `"planning"` -> `"outline"` in status, making V4 the exact template.
80
+
81
+ **No centralized dispatch**: Handlers are inline prose instructions, not code. Claude reads them sequentially and applies whichever matches the detected version. No registry or dispatch table to update.
82
+
83
+ ### State Field Coupling (RF3)
84
+
85
+ The `planning` field participates in a read-write cycle across skills:
86
+
87
+ - **Initialize** (T4, technical-writer): Sets the template with `"planning": {...}` for new projects
88
+ - **Handoff** (T3, this task): Writes `planning.started`, `planning.completed`, `planning.approved`, and sets `status: "planning"`
89
+ - **Start** (T5, technical-writer): Reads `workflow.planning.*` and `status == "planning"` for routing decisions
90
+
91
+ T3 handles the handoff side. The technical-writer blueprint (T4, T5) handles initialize and start. Both use `outline` as the target name.
92
+
93
+ ### V3 Migration Historical Context (RF4)
94
+
95
+ Line 206 references `planning_brief.md`, `plan.md`, `.planning_research/` as artifacts the V3 handler moves from `docs/project_notes/` to `docs/project_notes/trunk/`. These are historical file names from v3.0 state. The V3 handler must continue to reference the OLD names because it migrates projects that have those old-named files on disk. The v7->v8 handler does NOT need to rename files on disk -- it only renames the JSON key in the state object.
96
+
97
+ ### Existing Migration Handlers (exact content for preservation verification)
98
+
99
+ - **V5** (line 192-193): Adds `detail` and `test` phases, migrates 5.0 -> 7.0
100
+ - **V6** (line 196-198): Adds `test` phase, migrates 6.0 -> 7.0
101
+ - **V4** (line 200-202): Renames `execution` -> `build`, adds `engineering`, migrates 4.0 -> 5.0
102
+ - **V3** (line 204-206): Creates trunk directory, restructures state, migrates 3.0 -> 5.0
103
+
104
+ ---
105
+
106
+ ## 3. Approach
107
+
108
+ ### Schema Strategy
109
+
110
+ This is a key-rename migration with status-value remapping. The JSON "schema" is a prose template embedded in SKILL.md, not a formal database schema. The migration renames the `planning` workflow key to `outline` and remaps the `"planning"` status enum value to `"outline"` across all context objects (trunk and every branch).
111
+
112
+ ### Migration Approach
113
+
114
+ A single V7 STATE MIGRATION handler is added, following the established prose-handler pattern. It fires on `version == "7.0"` (simple trigger, no fallback condition needed since v7.0 states always have a version field). The handler:
115
+
116
+ 1. Renames `workflow.planning` -> `workflow.outline` in trunk and every branch
117
+ 2. Remaps `status == "planning"` -> `"outline"` in trunk and every branch
118
+ 3. Preserves all sub-fields within the renamed object (started, completed, completed_at, approved)
119
+ 4. Sets `version: "8.0"`
120
+ 5. Does NOT rename files on disk (JSON key rename only)
121
+
122
+ ### Scope Division with Technical-Writer Blueprint
123
+
124
+ This blueprint (T3) owns:
125
+ - Schema version bump (header + JSON template)
126
+ - Schema key rename (`"planning"` -> `"outline"` in template)
127
+ - Status enum update (`planning` -> `outline` in template)
128
+ - New V7 migration handler
129
+ - Preservation of V3/V4/V5/V6 handlers
130
+
131
+ The technical-writer blueprint (T5) owns:
132
+ - Transition heading renames
133
+ - Routing messages (`/intuition-plan` -> `/intuition-outline`)
134
+ - File path references (`planning_brief.md` -> `outline_brief.md`, `plan.md` -> `outline.md`)
135
+ - State field write references (`planning.started` -> `outline.started`, etc.)
136
+ - Critical rule/protocol step references
137
+
138
+ However, plan acceptance criteria AC3-AC5 require ALL changes to be present in the final file. Since both blueprints target the same file, the build phase applies both. This blueprint specifies ALL changes needed for T3's acceptance criteria, plus documents the overlap where the technical-writer blueprint specifies the same edits independently.
139
+
140
+ ### Indexing / Performance
141
+
142
+ Not applicable. There are no database indexes. The state file is a single JSON document read and written in full on each handoff transition.
143
+
144
+ ---
145
+
146
+ ## 4. Decisions Made
147
+
148
+ ### D1: V3 migration handler -- preserve historical artifact references
149
+ - **Tier**: [SILENT]
150
+ - **Chosen**: Preserve V3 handler exactly as-is
151
+ - **Alternatives considered**: (A) Preserve as-is. (B) Update V3 references to use new names.
152
+ - **Why A**: V3 handler moves files that exist on disk with old names in v3.0 projects. Renaming would break migration of legacy projects. AC6 explicitly requires preserving existing handlers unchanged.
153
+ - **Source**: RF4 (Stage 1 research on V3 handler purpose)
154
+
155
+ ### D2: Status value remapping scope
156
+ - **Tier**: [SILENT]
157
+ - **Chosen**: Remap status `"planning"` -> `"outline"` for trunk and all branches
158
+ - **Alternatives considered**: (A) Remap in all contexts. (B) Remap only in trunk.
159
+ - **Why A**: Status field and workflow key are tightly coupled in transition detection (RF3). Leaving branch statuses un-remapped would break transition detection for any branch in the `"planning"` state at migration time.
160
+ - **Source**: RF3 (state field coupling analysis), V4 handler precedent ("For trunk and every branch")
161
+
162
+ ### D3: Migration trigger condition
163
+ - **Tier**: [SILENT]
164
+ - **Chosen**: Simple trigger: `version == "7.0"` only
165
+ - **Alternatives considered**: (A) Simple trigger. (B) Compound trigger with fallback detection (e.g., OR `planning` key exists but no `outline` key).
166
+ - **Why A**: V7.0 states always have a version field (added in V3 migration). Fallback adds complexity without benefit. All four existing handlers use simple version checks (V4 is the only one with a fallback, and only because it predates reliable version tagging).
167
+ - **Source**: RF2 (migration handler pattern analysis)
168
+
169
+ ---
170
+
171
+ ## 5. Deliverable Specification
172
+
173
+ ### 5.1 Schema Version Bump
174
+
175
+ **Location**: Line 121 (section heading) and line 128 (JSON template)
176
+
177
+ **Edit 1 -- Section heading**:
178
+ - Old: `## STATE SCHEMA (v7.0)`
179
+ - New: `## STATE SCHEMA (v8.0)`
180
+
181
+ **Edit 2 -- Version field in JSON template**:
182
+ - Old: `"version": "7.0",`
183
+ - New: `"version": "8.0",`
184
+
185
+ ### 5.2 Schema Key Rename
186
+
187
+ **Location**: Line 134 (JSON template, workflow object)
188
+
189
+ **Edit 3 -- Workflow phase key**:
190
+ - Old: `"planning": { "started": false, "completed": false, "completed_at": null, "approved": false },`
191
+ - New: `"outline": { "started": false, "completed": false, "completed_at": null, "approved": false },`
192
+
193
+ All four sub-fields (started, completed, completed_at, approved) are preserved exactly. Only the key name changes.
194
+
195
+ ### 5.3 Status Enum Update
196
+
197
+ **Location**: Line 131 (status enum in JSON template)
198
+
199
+ **Edit 4 -- Status enum value**:
200
+ - Old: `"status": "none | prompt | planning | design | engineering | building | testing | detail | complete",`
201
+ - New: `"status": "none | prompt | outline | design | engineering | building | testing | detail | complete",`
202
+
203
+ ### 5.4 New V7 Migration Handler
204
+
205
+ **Location**: Insert immediately BEFORE the V5 handler (currently at line 192). The new section goes between the end of Transition 0 (line 191) and the current V5 handler.
206
+
207
+ **New content to insert**:
208
+
209
+ ```markdown
210
+ ## V7 STATE MIGRATION
211
+
212
+ Fires when handoff detects `version == "7.0"`. For trunk and every branch: rename the `planning` key to `outline` in the `workflow` object (preserving all sub-fields: started, completed, completed_at, approved), and change any `status == "planning"` to `"outline"`. Set `version: "8.0"`, preserve all other fields, write state. Report: "Migrated state from v7.0 to v8.0 (renamed planning → outline)." Then continue with the original transition.
213
+ ```
214
+
215
+ **Structural notes**:
216
+ - Follows the exact pattern established by V4 (field rename + status remap)
217
+ - Single paragraph, consistent with V5/V6 handler format
218
+ - "For trunk and every branch" matches the universal scope phrase used by all handlers
219
+ - Explicitly lists all four sub-fields to preserve, preventing accidental data loss (Risk 3 mitigation)
220
+
221
+ ### 5.5 Transition Condition Updates (T3 scope: state field paths)
222
+
223
+ These edits change the state field paths read during transition detection. They overlap with the technical-writer blueprint (T5 for handoff), but are required for T3's acceptance criteria AC5 ("State field references use `outline` throughout").
224
+
225
+ **Edit 5 -- Transition 1 detection** (line 74):
226
+ - Old: `workflow.planning.started == false`
227
+ - New: `workflow.outline.started == false`
228
+
229
+ **Edit 6 -- Transition 2/2v9 detection** (line 77):
230
+ - Old: `status == "planning" AND workflow.planning.completed == true`
231
+ - New: `status == "outline" AND workflow.outline.completed == true`
232
+
233
+ ### 5.6 Transition State Write Updates (T3 scope: state writes)
234
+
235
+ **Edit 7 -- Transition 1 state write** (line 218):
236
+ - Old: `set status to "planning"`, `planning.started = true`
237
+ - New: `set status to "outline"`, `outline.started = true`
238
+
239
+ **Edit 8 -- Transition 2 state write** (line 228):
240
+ - Old: `planning.completed = true`
241
+ - New: `outline.completed = true`
242
+
243
+ **Edit 9 -- Transition 2B state write** (line 234):
244
+ - Old: `planning.completed = true`
245
+ - New: `outline.completed = true`
246
+
247
+ **Edit 10 -- Transition 2v9 state write** (line 243):
248
+ - Old: `status to "planning"`, `planning.completed = true`, `approved = true`
249
+ - New: `status to "outline"`, `outline.completed = true`, `approved = true`
250
+
251
+ ### 5.7 Transition Heading Updates (overlap with T5)
252
+
253
+ These are documented for completeness. The technical-writer blueprint specifies identical changes.
254
+
255
+ **Edit 11** (line 208): `PROMPT -> PLANNING` to `PROMPT -> OUTLINE`
256
+
257
+ **Edit 12** (line 220): `PLANNING -> DESIGN` to `OUTLINE -> DESIGN`
258
+
259
+ **Edit 13** (line 230): `PLANNING -> ENGINEER` to `OUTLINE -> ENGINEER`
260
+
261
+ **Edit 14** (line 236): `PLAN -> ASSEMBLE` to `OUTLINE -> ASSEMBLE`
262
+
263
+ ### 5.8 Routing Message Updates (overlap with T5)
264
+
265
+ **Edit 15** (line 218): `/intuition-plan` to `/intuition-outline`
266
+
267
+ ### 5.9 File Path Reference Updates (overlap with T5)
268
+
269
+ **Edit 16** (line 216): `planning_brief.md` to `outline_brief.md`
270
+
271
+ **Edit 17** (line 218): `planning_brief.md` to `outline_brief.md` (second occurrence on same line)
272
+
273
+ **Edit 18** (line 222): `plan.md` to `outline.md`
274
+
275
+ **Edit 19** (line 243): `plan.md` to `outline.md` (Transition 2v9 reference)
276
+
277
+ ### 5.10 Critical Rule and Protocol Updates (overlap with T5)
278
+
279
+ **Edit 20** (line 24): `prompt→planning` to `prompt→outline`
280
+
281
+ **Edit 21** (line 62): `prompt→planning only` to `prompt→outline only`
282
+
283
+ ### 5.11 Additional Prose References (overlap with T5)
284
+
285
+ **Edit 22** (line 48): `plan.md` to `outline.md` (mode detection)
286
+
287
+ **Edit 23** (line 84): `Planning → Design` to `Outline → Design` and `Planning → Engineer` to `Outline → Engineer`
288
+
289
+ **Edit 24** (line 238): `planning completes` to `outline completes` (Transition 2v9 description)
290
+
291
+ **Edit 25** (line 505): `v9 plan detected` to `v9 outline detected` (edge case)
292
+
293
+ ### 5.12 Preservation Requirements
294
+
295
+ The following MUST NOT be modified:
296
+
297
+ 1. **V3 migration handler** (lines 204-206): References `planning_brief.md`, `plan.md`, `.planning_research/` as historical file names for v3.0 disk artifacts. These are correct as-is.
298
+ 2. **V4 migration handler** (lines 200-202): References `execution` -> `build` rename. Unrelated to T3.
299
+ 3. **V5 migration handler** (lines 192-194): Adds `detail` and `test` phases. Unrelated to T3.
300
+ 4. **V6 migration handler** (lines 196-198): Adds `test` phase. Unrelated to T3.
301
+ 5. **Branch entry schema** (line 150): Text references "identical to trunk's workflow structure" -- this is generic and does not name `planning` explicitly.
302
+ 6. **All content outside the specific edit targets listed above**.
303
+
304
+ ---
305
+
306
+ ## 6. Acceptance Mapping
307
+
308
+ | Acceptance Criterion | Satisfied By |
309
+ |---------------------|-------------|
310
+ | AC1: Schema version is 8.0 in header and definition | Edit 1 (heading v7.0 -> v8.0) + Edit 2 (JSON version field v7.0 -> v8.0) |
311
+ | AC2: v7->v8 migration handler exists and renames planning -> outline | Section 5.4: New V7 STATE MIGRATION handler inserted before V5, fires on version=="7.0", renames workflow key + status value, sets version to 8.0 |
312
+ | AC3: All transition messages route to /intuition-outline | Edit 15 (line 218 routing). Additional routing references on other lines are covered by the technical-writer blueprint (T5) applying to the same file. |
313
+ | AC4: All file path references use outline_brief.md, outline.md | Edits 16-19 (planning_brief.md -> outline_brief.md, plan.md -> outline.md). V3 handler's historical references are correctly excluded per D1. |
314
+ | AC5: State field references use outline throughout | Edits 3-10 (schema key, status enum, transition conditions, state writes). All `planning.*` field paths and `status == "planning"` values updated to `outline`. |
315
+ | AC6: Existing v5->v6 and v6->v7 handlers preserved unchanged | Section 5.12 preservation requirements. V3, V4, V5, V6 handlers are explicitly excluded from all edits. |
316
+
317
+ ---
318
+
319
+ ## 7. Integration Points
320
+
321
+ ### Files Modified
322
+
323
+ | File | Absolute Path | Change Summary |
324
+ |------|--------------|---------------|
325
+ | Handoff skill | `skills/intuition-handoff/SKILL.md` | Schema version bump (2 edits), key rename (1 edit), status enum update (1 edit), new V7 migration handler (1 insertion), transition condition updates (2 edits), state write updates (4 edits), transition heading updates (4 edits), routing update (1 edit), file path updates (4 edits), critical rule updates (2 edits), prose reference updates (4 edits). Total: ~25 distinct edit operations. |
326
+
327
+ ### Field Name Coupling
328
+
329
+ | Old Field/Value | New Field/Value | Writer (this blueprint) | Readers (other blueprints) |
330
+ |----------------|----------------|------------------------|---------------------------|
331
+ | `workflow.planning` (JSON key) | `workflow.outline` | Handoff schema template (Edit 3) | Initialize template (T4, technical-writer), Start skill (T5, technical-writer) |
332
+ | `status: "planning"` (enum value) | `status: "outline"` | Handoff schema template (Edit 4), transition writes (Edits 7, 10) | Start skill (T5, technical-writer) |
333
+ | `planning.started` | `outline.started` | Transition 1 write (Edit 7) | Start skill routing check (T5, technical-writer) |
334
+ | `planning.completed` | `outline.completed` | Transition 2/2B/2v9 writes (Edits 8-10) | Start skill routing check (T5, technical-writer) |
335
+ | `planning.approved` | `outline.approved` | (written by handoff at transition time) | Start skill (T5, technical-writer) |
336
+
337
+ ### Cross-Blueprint Overlap
338
+
339
+ The technical-writer blueprint (T5) specifies 48 renames in `skills/intuition-handoff/SKILL.md`. This blueprint specifies ~25 edits to the same file. The overlapping edits produce identical results -- both blueprints target the same old strings and specify the same new strings. The build phase can apply either blueprint's edits first; the second will find its targets already renamed and can skip those specific edits.
340
+
341
+ **Non-overlapping edits unique to this blueprint**:
342
+ - Schema version heading bump (Edit 1)
343
+ - Schema JSON version field bump (Edit 2)
344
+ - Schema JSON key rename (Edit 3)
345
+ - Status enum update in template (Edit 4)
346
+ - V7 migration handler insertion (Section 5.4)
347
+
348
+ **Non-overlapping edits unique to technical-writer blueprint**:
349
+ - Mode detection prose (line 49-50 references to "Detail Assessment" / "Design Recommendations" -- no `planning` references)
350
+ - Branch creation section (line 187 mentions `engineering`, `build`, `test`, `detail` but not `planning`)
351
+ - Edge case prose updates beyond line 505
352
+
353
+ ---
354
+
355
+ ## 8. Open Items
356
+
357
+ | ID | Type | Description |
358
+ |----|------|-------------|
359
+ | V1 | [VERIFY] | At build time, confirm exact line numbers have not shifted due to prior edits. Use content matching (exact old-string search), not line numbers, for all edit operations. |
360
+ | V2 | [VERIFY] | After applying edits and inserting the V7 handler, verify that V3/V4/V5/V6 handlers are byte-identical to their pre-edit content. Read each handler section and confirm no accidental modification. |
361
+
362
+ No unresolved design questions remain. All decisions recorded in Section 4.
363
+
364
+ ---
365
+
366
+ ## 9. Producer Handoff
367
+
368
+ ### Producer Assignment
369
+
370
+ - **Producer**: code-writer
371
+ - **Output format**: Direct file edits to a single Markdown file
372
+ - **Filename**: `skills/intuition-handoff/SKILL.md`
373
+ - **Target edit count**: ~25 distinct edit operations (content replacements + 1 section insertion)
374
+ - **Instruction tone**: Precise and mechanical. Each edit is an exact string replacement or a block insertion at a known location. Use content matching to locate edit targets, not line numbers. Apply edits in the order specified. After all edits, verify preservation of all four existing migration handlers.
375
+
376
+ ### Execution Order
377
+
378
+ Apply edits in this order to avoid partial-match interference:
379
+
380
+ **Phase 1 -- Schema updates (Edits 1-4)**
381
+ 1. Replace `## STATE SCHEMA (v7.0)` with `## STATE SCHEMA (v8.0)` (heading)
382
+ 2. Replace `"version": "7.0"` with `"version": "8.0"` in the JSON template block (not in migration handlers)
383
+ 3. Replace `"planning": { "started": false` with `"outline": { "started": false` in the JSON template block
384
+ 4. Replace `planning` with `outline` in the status enum line (the `"status": "none | prompt | planning |...` line)
385
+
386
+ **Phase 2 -- Migration handler insertion (Section 5.4)**
387
+ 5. Locate `## V5 STATE MIGRATION` and insert the V7 handler block immediately before it, with a blank line separator
388
+
389
+ **Phase 3 -- Transition condition and state write updates (Edits 5-10)**
390
+ 6. In the transition detection block: replace `workflow.planning.started` with `workflow.outline.started`
391
+ 7. In the transition detection block: replace `status == "planning" AND workflow.planning.completed` with `status == "outline" AND workflow.outline.completed`
392
+ 8. In Transition 1 state write: replace `"planning"` status and `planning.started` with `"outline"` and `outline.started`
393
+ 9. In Transition 2 state write: replace `planning.completed` with `outline.completed`
394
+ 10. In Transition 2B state write: replace `planning.completed` with `outline.completed`
395
+ 11. In Transition 2v9 state write: replace `"planning"` status and `planning.completed` with `"outline"` and `outline.completed`
396
+
397
+ **Phase 4 -- Remaining renames (Edits 11-25, overlap with T5)**
398
+ 12. Replace transition headings: `PROMPT -> PLANNING` to `PROMPT -> OUTLINE`, `PLANNING -> DESIGN` to `OUTLINE -> DESIGN`, `PLANNING -> ENGINEER` to `OUTLINE -> ENGINEER`, `PLAN -> ASSEMBLE` to `OUTLINE -> ASSEMBLE`
399
+ 13. Replace routing: `/intuition-plan` to `/intuition-outline` (all instances)
400
+ 14. Replace file paths: `planning_brief.md` to `outline_brief.md` (all instances EXCEPT in V3 migration handler), `plan.md` to `outline.md` (all instances EXCEPT in V3 migration handler)
401
+ 15. Replace critical rules: `prompt→planning` to `prompt→outline` (lines 24, 62)
402
+ 16. Replace remaining prose: `planning completes` to `outline completes`, `v9 plan detected` to `v9 outline detected`, `Planning →` to `Outline →` in transition detection block
403
+
404
+ **Phase 5 -- Verification**
405
+ 17. Read the V3 migration handler section and confirm it still references `planning_brief.md`, `plan.md`, `.planning_research/` (unchanged)
406
+ 18. Read the V4, V5, V6 migration handler sections and confirm they are unchanged
407
+ 19. Confirm the new V7 handler appears before V5 and after Transition 0
408
+ 20. Search the file for any remaining `"planning"` (as JSON key or status value) outside the V3 handler -- should find zero
409
+
410
+ ### Content Block: V7 Migration Handler (for insertion)
411
+
412
+ ```markdown
413
+ ## V7 STATE MIGRATION
414
+
415
+ Fires when handoff detects `version == "7.0"`. For trunk and every branch: rename the `planning` key to `outline` in the `workflow` object (preserving all sub-fields: started, completed, completed_at, approved), and change any `status == "planning"` to `"outline"`. Set `version: "8.0"`, preserve all other fields, write state. Report: "Migrated state from v7.0 to v8.0 (renamed planning → outline)." Then continue with the original transition.
416
+ ```