@tiic-tech/openworkflow 0.1.1 → 0.1.2

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 (213) hide show
  1. package/dist/adapters/codex/src/cleanCodexAdapter.js +4 -1
  2. package/dist/adapters/codex/src/cleanCodexAdapter.js.map +1 -1
  3. package/dist/adapters/codex/src/constants.d.ts +1 -0
  4. package/dist/adapters/codex/src/constants.js +2 -0
  5. package/dist/adapters/codex/src/constants.js.map +1 -0
  6. package/dist/adapters/codex/src/generateCommands.js +14 -9
  7. package/dist/adapters/codex/src/generateCommands.js.map +1 -1
  8. package/dist/adapters/codex/src/generateSkills.js +13 -0
  9. package/dist/adapters/codex/src/generateSkills.js.map +1 -1
  10. package/dist/adapters/codex/src/generatedFiles.js +1 -1
  11. package/dist/adapters/codex/src/manifest.js +11 -2
  12. package/dist/adapters/codex/src/manifest.js.map +1 -1
  13. package/dist/adapters/codex/src/templates.d.ts +0 -1
  14. package/dist/adapters/codex/src/templates.js +0 -1
  15. package/dist/adapters/codex/src/templates.js.map +1 -1
  16. package/dist/adapters/src/registry.d.ts +20 -0
  17. package/dist/adapters/src/registry.js +81 -0
  18. package/dist/adapters/src/registry.js.map +1 -0
  19. package/dist/cli/src/commands/brief.d.ts +46 -0
  20. package/dist/cli/src/commands/brief.js +294 -0
  21. package/dist/cli/src/commands/brief.js.map +1 -0
  22. package/dist/cli/src/commands/check.d.ts +42 -0
  23. package/dist/cli/src/commands/check.js +326 -0
  24. package/dist/cli/src/commands/check.js.map +1 -0
  25. package/dist/cli/src/commands/clean.js +46 -1
  26. package/dist/cli/src/commands/clean.js.map +1 -1
  27. package/dist/cli/src/commands/context.d.ts +1 -0
  28. package/dist/cli/src/commands/context.js +471 -0
  29. package/dist/cli/src/commands/context.js.map +1 -0
  30. package/dist/cli/src/commands/doctor.js +122 -12
  31. package/dist/cli/src/commands/doctor.js.map +1 -1
  32. package/dist/cli/src/commands/draft.d.ts +1 -0
  33. package/dist/cli/src/commands/draft.js +175 -0
  34. package/dist/cli/src/commands/draft.js.map +1 -0
  35. package/dist/cli/src/commands/gitAutomation.d.ts +1 -0
  36. package/dist/cli/src/commands/gitAutomation.js +378 -0
  37. package/dist/cli/src/commands/gitAutomation.js.map +1 -0
  38. package/dist/cli/src/commands/handoff.d.ts +22 -0
  39. package/dist/cli/src/commands/handoff.js +122 -0
  40. package/dist/cli/src/commands/handoff.js.map +1 -0
  41. package/dist/cli/src/commands/init.js +52 -1
  42. package/dist/cli/src/commands/init.js.map +1 -1
  43. package/dist/cli/src/commands/inspect.d.ts +23 -0
  44. package/dist/cli/src/commands/inspect.js +157 -0
  45. package/dist/cli/src/commands/inspect.js.map +1 -0
  46. package/dist/cli/src/commands/register.d.ts +1 -0
  47. package/dist/cli/src/commands/register.js +251 -0
  48. package/dist/cli/src/commands/register.js.map +1 -0
  49. package/dist/cli/src/commands/resume.d.ts +59 -0
  50. package/dist/cli/src/commands/resume.js +280 -0
  51. package/dist/cli/src/commands/resume.js.map +1 -0
  52. package/dist/cli/src/commands/shared.js +6 -2
  53. package/dist/cli/src/commands/shared.js.map +1 -1
  54. package/dist/cli/src/commands/summaries.d.ts +1 -0
  55. package/dist/cli/src/commands/summaries.js +77 -0
  56. package/dist/cli/src/commands/summaries.js.map +1 -0
  57. package/dist/cli/src/commands/summarize.d.ts +1 -0
  58. package/dist/cli/src/commands/summarize.js +316 -0
  59. package/dist/cli/src/commands/summarize.js.map +1 -0
  60. package/dist/cli/src/commands/sync.js +135 -12
  61. package/dist/cli/src/commands/sync.js.map +1 -1
  62. package/dist/cli/src/commands/validate.js +25 -1
  63. package/dist/cli/src/commands/validate.js.map +1 -1
  64. package/dist/cli/src/dev/verifyAgentE2E.d.ts +2 -0
  65. package/dist/cli/src/dev/verifyAgentE2E.js +391 -0
  66. package/dist/cli/src/dev/verifyAgentE2E.js.map +1 -0
  67. package/dist/cli/src/dev/verifyCleanCommand.js +213 -2
  68. package/dist/cli/src/dev/verifyCleanCommand.js.map +1 -1
  69. package/dist/cli/src/dev/verifyRuntimeSurface.js +4940 -54
  70. package/dist/cli/src/dev/verifyRuntimeSurface.js.map +1 -1
  71. package/dist/cli/src/dev/verifyWorkflowE2E.js +477 -45
  72. package/dist/cli/src/dev/verifyWorkflowE2E.js.map +1 -1
  73. package/dist/cli/src/index.js +184 -6
  74. package/dist/cli/src/index.js.map +1 -1
  75. package/dist/cli/src/report.d.ts +26 -0
  76. package/dist/cli/src/report.js +17 -0
  77. package/dist/cli/src/report.js.map +1 -0
  78. package/dist/core/src/artifacts/readiness.d.ts +7 -0
  79. package/dist/core/src/artifacts/readiness.js +240 -0
  80. package/dist/core/src/artifacts/readiness.js.map +1 -0
  81. package/dist/core/src/artifacts/registry.d.ts +9 -2
  82. package/dist/core/src/artifacts/registry.js +687 -60
  83. package/dist/core/src/artifacts/registry.js.map +1 -1
  84. package/dist/core/src/commands/registry.js +1425 -146
  85. package/dist/core/src/commands/registry.js.map +1 -1
  86. package/dist/core/src/contracts/index.d.ts +1 -1
  87. package/dist/core/src/fs/index.d.ts +24 -0
  88. package/dist/core/src/fs/index.js +48 -1
  89. package/dist/core/src/fs/index.js.map +1 -1
  90. package/dist/core/src/git/autonomousSimulator.d.ts +46 -0
  91. package/dist/core/src/git/autonomousSimulator.js +163 -0
  92. package/dist/core/src/git/autonomousSimulator.js.map +1 -0
  93. package/dist/core/src/git/branchIdentity.d.ts +19 -0
  94. package/dist/core/src/git/branchIdentity.js +75 -0
  95. package/dist/core/src/git/branchIdentity.js.map +1 -0
  96. package/dist/core/src/git/draftPrPilot.d.ts +47 -0
  97. package/dist/core/src/git/draftPrPilot.js +196 -0
  98. package/dist/core/src/git/draftPrPilot.js.map +1 -0
  99. package/dist/core/src/git/localEvidenceReader.d.ts +21 -0
  100. package/dist/core/src/git/localEvidenceReader.js +142 -0
  101. package/dist/core/src/git/localEvidenceReader.js.map +1 -0
  102. package/dist/core/src/git/localGitAutomation.d.ts +68 -0
  103. package/dist/core/src/git/localGitAutomation.js +470 -0
  104. package/dist/core/src/git/localGitAutomation.js.map +1 -0
  105. package/dist/core/src/git/mergeReadinessCheckpoint.d.ts +31 -0
  106. package/dist/core/src/git/mergeReadinessCheckpoint.js +110 -0
  107. package/dist/core/src/git/mergeReadinessCheckpoint.js.map +1 -0
  108. package/dist/core/src/git/prReadySummary.d.ts +16 -0
  109. package/dist/core/src/git/prReadySummary.js +144 -0
  110. package/dist/core/src/git/prReadySummary.js.map +1 -0
  111. package/dist/core/src/git/remoteReadonlyPlanner.d.ts +60 -0
  112. package/dist/core/src/git/remoteReadonlyPlanner.js +223 -0
  113. package/dist/core/src/git/remoteReadonlyPlanner.js.map +1 -0
  114. package/dist/core/src/onboarding/agentsGuide.d.ts +32 -0
  115. package/dist/core/src/onboarding/agentsGuide.js +164 -0
  116. package/dist/core/src/onboarding/agentsGuide.js.map +1 -0
  117. package/dist/core/src/validators/validateOpenWorkflow.js +1331 -15
  118. package/dist/core/src/validators/validateOpenWorkflow.js.map +1 -1
  119. package/dist/core/src/validators/validateRepositoryContracts.js +2321 -306
  120. package/dist/core/src/validators/validateRepositoryContracts.js.map +1 -1
  121. package/dist/core/src/workflow/cleanOpenWorkflow.d.ts +2 -0
  122. package/dist/core/src/workflow/cleanOpenWorkflow.js +97 -8
  123. package/dist/core/src/workflow/cleanOpenWorkflow.js.map +1 -1
  124. package/dist/core/src/workflow/doctorOpenWorkflow.d.ts +7 -0
  125. package/dist/core/src/workflow/doctorOpenWorkflow.js +26 -0
  126. package/dist/core/src/workflow/doctorOpenWorkflow.js.map +1 -0
  127. package/dist/core/src/workflow/initOpenWorkflow.d.ts +7 -0
  128. package/dist/core/src/workflow/initOpenWorkflow.js +96 -8
  129. package/dist/core/src/workflow/initOpenWorkflow.js.map +1 -1
  130. package/dist/core/src/workflow/planningQueueResume.d.ts +105 -0
  131. package/dist/core/src/workflow/planningQueueResume.js +596 -0
  132. package/dist/core/src/workflow/planningQueueResume.js.map +1 -0
  133. package/dist/core/src/workflow/readWorkflowConfig.d.ts +6 -0
  134. package/dist/core/src/workflow/readWorkflowConfig.js +28 -0
  135. package/dist/core/src/workflow/readWorkflowConfig.js.map +1 -0
  136. package/dist/core/src/workflow/summaryHealth.d.ts +60 -0
  137. package/dist/core/src/workflow/summaryHealth.js +713 -0
  138. package/dist/core/src/workflow/summaryHealth.js.map +1 -0
  139. package/dist/core/src/workflow/syncOpenWorkflow.d.ts +22 -0
  140. package/dist/core/src/workflow/syncOpenWorkflow.js +235 -0
  141. package/dist/core/src/workflow/syncOpenWorkflow.js.map +1 -0
  142. package/package.json +2 -1
  143. package/references/artifact-authoring-templates.md +14 -12
  144. package/references/artifact-instruction-envelope.md +133 -0
  145. package/references/coder-continuous-growth-loop.md +68 -0
  146. package/references/gh-operation-governance.md +114 -0
  147. package/references/git-automation-governance.md +324 -0
  148. package/references/git-version-control-governance.md +227 -0
  149. package/references/internal-coder-protocol.md +202 -0
  150. package/references/issue-governance.md +115 -0
  151. package/references/planning-artifact-contracts.md +595 -0
  152. package/references/planning-skill-runtime-exposure.md +159 -0
  153. package/references/proto-redesign-artifact-contracts.md +217 -0
  154. package/references/proto2html-artifact-contracts.md +113 -0
  155. package/references/skill-system-lifecycle.md +198 -0
  156. package/references/validation-trust-domains.md +286 -0
  157. package/references/workflow-blueprint-runtime-alignment.md +287 -0
  158. package/schemas/atom-tasks.schema.json +101 -0
  159. package/schemas/candidate-changes.schema.json +323 -0
  160. package/schemas/current-state.schema.json +113 -0
  161. package/schemas/html-prototype.schema.json +288 -0
  162. package/schemas/openworkflow-contract.schema.json +9 -1
  163. package/schemas/proto-prompt-pack.schema.json +1333 -0
  164. package/schemas/prototype-evidence.schema.json +684 -142
  165. package/schemas/selected-change.schema.json +104 -0
  166. package/schemas/validation-target.schema.json +187 -1
  167. package/schemas/validation.schema.json +187 -1
  168. package/schemas/vision-session.schema.json +151 -0
  169. package/skills/analyze-changes/SKILL.md +92 -0
  170. package/skills/analyze-changes/agents/openai.yaml +4 -0
  171. package/skills/analyze-changes/references/analysis-protocol.md +116 -0
  172. package/skills/build-proto-prompt/SKILL.md +125 -0
  173. package/skills/build-proto-prompt/references/output-boundary.md +54 -0
  174. package/skills/build-proto-prompt/references/prompt-pack-compiler-protocol.md +80 -0
  175. package/skills/build-prototype/SKILL.md +162 -38
  176. package/skills/build-prototype/agents/openai.yaml +2 -2
  177. package/skills/build-prototype/references/philosophy-engine.md +61 -0
  178. package/skills/build-prototype/references/strategic-prompt-pack-protocol.md +365 -0
  179. package/skills/build-prototype/references/vision2prompt/01_input_contract.md +84 -0
  180. package/skills/build-prototype/references/vision2prompt/02_vision_decomposition.md +108 -0
  181. package/skills/build-prototype/references/vision2prompt/03_strategy_hypothesis_generation.md +89 -0
  182. package/skills/build-prototype/references/vision2prompt/04_product_system_extraction.md +78 -0
  183. package/skills/build-prototype/references/vision2prompt/05_prototype_prompt_schema.md +189 -0
  184. package/skills/build-prototype/references/vision2prompt/06_output_templates.md +125 -0
  185. package/skills/build-prototype/references/vision2prompt/07_quality_rubric.md +171 -0
  186. package/skills/build-validation/SKILL.md +136 -54
  187. package/skills/build-validation/references/prototype-validation-target-rubric.md +35 -0
  188. package/skills/build-validation/references/return-to-vision-gate.md +32 -0
  189. package/skills/build-vision/SKILL.md +192 -0
  190. package/skills/build-vision/references/proto-readiness-rubric.md +48 -0
  191. package/skills/build-vision/references/vision-interview-protocol.md +48 -0
  192. package/skills/coder/SKILL.md +204 -0
  193. package/skills/decompose-to-changes/SKILL.md +176 -0
  194. package/skills/decompose-to-changes/agents/openai.yaml +4 -0
  195. package/skills/decompose-to-changes/references/decomposition-protocol.md +278 -0
  196. package/skills/prompt2proto/SKILL.md +157 -0
  197. package/skills/prompt2proto/agents/openai.yaml +4 -0
  198. package/skills/prompt2proto/references/00_role_philosophy_engine.md +96 -0
  199. package/skills/prompt2proto/references/01_input_contract.md +53 -0
  200. package/skills/prompt2proto/references/02_prompt_pack_readiness.md +50 -0
  201. package/skills/prompt2proto/references/03_visual_translation_workflow.md +64 -0
  202. package/skills/prompt2proto/references/04_output_contract.md +67 -0
  203. package/skills/prompt2proto/references/05_quality_rubric.md +46 -0
  204. package/skills/proto2html/SKILL.md +136 -0
  205. package/skills/proto2html/agents/openai.yaml +4 -0
  206. package/skills/proto2html/references/proto2html-protocol.md +115 -0
  207. package/skills/run-team/SKILL.md +4 -0
  208. package/skills/select-change/SKILL.md +200 -0
  209. package/skills/select-change/agents/openai.yaml +4 -0
  210. package/skills/select-change/references/selection-protocol.md +281 -0
  211. package/skills/tune-prototype/SKILL.md +121 -0
  212. package/skills/tune-prototype/agents/openai.yaml +4 -0
  213. package/skills/tune-prototype/references/refined-prompt-pack-protocol.md +161 -0
@@ -0,0 +1,104 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openworkflow.local/schemas/selected-change.schema.json",
4
+ "title": "OpenWorkflow Selected Change",
5
+ "type": "object",
6
+ "required": [
7
+ "schema_version",
8
+ "contract_id",
9
+ "contract_type",
10
+ "planning_artifact_type",
11
+ "selected_change_id",
12
+ "source_plan_id",
13
+ "source_candidate_id",
14
+ "title",
15
+ "status",
16
+ "selection_reason",
17
+ "scope",
18
+ "owned_paths",
19
+ "forbidden_paths",
20
+ "acceptance",
21
+ "validation"
22
+ ],
23
+ "properties": {
24
+ "schema_version": {
25
+ "type": "string"
26
+ },
27
+ "contract_id": {
28
+ "type": "string"
29
+ },
30
+ "contract_type": {
31
+ "const": "planning"
32
+ },
33
+ "planning_artifact_type": {
34
+ "const": "selected_change"
35
+ },
36
+ "selected_change_id": {
37
+ "type": "string"
38
+ },
39
+ "source_plan_id": {
40
+ "type": "string"
41
+ },
42
+ "source_candidate_id": {
43
+ "type": "string"
44
+ },
45
+ "title": {
46
+ "type": "string"
47
+ },
48
+ "status": {
49
+ "type": "string",
50
+ "enum": [
51
+ "draft",
52
+ "active",
53
+ "completed",
54
+ "blocked",
55
+ "superseded",
56
+ "archived"
57
+ ]
58
+ },
59
+ "selection_reason": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "rejected_alternatives": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "object"
69
+ }
70
+ },
71
+ "scope": {
72
+ "type": "object",
73
+ "required": [
74
+ "includes",
75
+ "excludes"
76
+ ]
77
+ },
78
+ "owned_paths": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "forbidden_paths": {
85
+ "type": "array",
86
+ "items": {
87
+ "type": "string"
88
+ }
89
+ },
90
+ "acceptance": {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "string"
94
+ }
95
+ },
96
+ "validation": {
97
+ "type": "array",
98
+ "items": {
99
+ "type": "string"
100
+ }
101
+ }
102
+ },
103
+ "additionalProperties": true
104
+ }
@@ -10,12 +10,21 @@
10
10
  "artifact_type",
11
11
  "title",
12
12
  "status",
13
+ "trigger",
13
14
  "core_question",
15
+ "central_uncertainty",
16
+ "hypothesis",
17
+ "target_behavior",
14
18
  "feature_classification",
15
19
  "critical_assumptions",
16
20
  "prototype_scope",
21
+ "prototype_experiment",
22
+ "observable_signals",
17
23
  "acceptance",
18
- "decision_options"
24
+ "decision_rules",
25
+ "decision_options",
26
+ "vision_gaps",
27
+ "agent_readiness_gate"
19
28
  ],
20
29
  "properties": {
21
30
  "schema_version": {
@@ -36,9 +45,45 @@
36
45
  "status": {
37
46
  "type": "string"
38
47
  },
48
+ "trigger": {
49
+ "type": "object",
50
+ "required": [
51
+ "mode",
52
+ "requested_command",
53
+ "reason"
54
+ ],
55
+ "properties": {
56
+ "mode": {
57
+ "type": "string",
58
+ "enum": [
59
+ "user_explicit",
60
+ "agent_auto"
61
+ ]
62
+ },
63
+ "requested_command": {
64
+ "type": [
65
+ "string",
66
+ "null"
67
+ ]
68
+ },
69
+ "reason": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "additionalProperties": true
74
+ },
39
75
  "core_question": {
40
76
  "type": "string"
41
77
  },
78
+ "central_uncertainty": {
79
+ "type": "string"
80
+ },
81
+ "hypothesis": {
82
+ "type": "string"
83
+ },
84
+ "target_behavior": {
85
+ "type": "string"
86
+ },
42
87
  "feature_classification": {
43
88
  "type": "object",
44
89
  "required": [
@@ -103,12 +148,110 @@
103
148
  },
104
149
  "additionalProperties": true
105
150
  },
151
+ "prototype_experiment": {
152
+ "type": "object",
153
+ "required": [
154
+ "scenario",
155
+ "must_show",
156
+ "must_not_show"
157
+ ],
158
+ "properties": {
159
+ "scenario": {
160
+ "type": "string"
161
+ },
162
+ "must_show": {
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ "must_not_show": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "string"
172
+ }
173
+ }
174
+ },
175
+ "additionalProperties": true
176
+ },
177
+ "observable_signals": {
178
+ "type": "object",
179
+ "required": [
180
+ "pass",
181
+ "fail",
182
+ "ambiguous"
183
+ ],
184
+ "properties": {
185
+ "pass": {
186
+ "type": "array",
187
+ "items": {
188
+ "type": "string"
189
+ }
190
+ },
191
+ "fail": {
192
+ "type": "array",
193
+ "items": {
194
+ "type": "string"
195
+ }
196
+ },
197
+ "ambiguous": {
198
+ "type": "array",
199
+ "items": {
200
+ "type": "string"
201
+ }
202
+ }
203
+ },
204
+ "additionalProperties": true
205
+ },
106
206
  "acceptance": {
107
207
  "type": "array",
108
208
  "items": {
109
209
  "type": "string"
110
210
  }
111
211
  },
212
+ "decision_rules": {
213
+ "type": "object",
214
+ "required": [
215
+ "continue",
216
+ "revise",
217
+ "pivot",
218
+ "stop",
219
+ "needs_more_evidence"
220
+ ],
221
+ "properties": {
222
+ "continue": {
223
+ "type": "array",
224
+ "items": {
225
+ "type": "string"
226
+ }
227
+ },
228
+ "revise": {
229
+ "type": "array",
230
+ "items": {
231
+ "type": "string"
232
+ }
233
+ },
234
+ "pivot": {
235
+ "type": "array",
236
+ "items": {
237
+ "type": "string"
238
+ }
239
+ },
240
+ "stop": {
241
+ "type": "array",
242
+ "items": {
243
+ "type": "string"
244
+ }
245
+ },
246
+ "needs_more_evidence": {
247
+ "type": "array",
248
+ "items": {
249
+ "type": "string"
250
+ }
251
+ }
252
+ },
253
+ "additionalProperties": true
254
+ },
112
255
  "decision_options": {
113
256
  "type": "array",
114
257
  "items": {
@@ -121,6 +264,49 @@
121
264
  "needs_more_evidence"
122
265
  ]
123
266
  }
267
+ },
268
+ "vision_gaps": {
269
+ "type": "array",
270
+ "items": {
271
+ "type": "string"
272
+ }
273
+ },
274
+ "agent_readiness_gate": {
275
+ "type": "object",
276
+ "required": [
277
+ "status",
278
+ "blockers",
279
+ "warnings",
280
+ "write_authority"
281
+ ],
282
+ "properties": {
283
+ "status": {
284
+ "type": "string",
285
+ "enum": [
286
+ "missing_validation",
287
+ "thin_validation",
288
+ "stale_validation",
289
+ "ready_for_proto",
290
+ "return_to_vision"
291
+ ]
292
+ },
293
+ "blockers": {
294
+ "type": "array",
295
+ "items": {
296
+ "type": "string"
297
+ }
298
+ },
299
+ "warnings": {
300
+ "type": "array",
301
+ "items": {
302
+ "type": "string"
303
+ }
304
+ },
305
+ "write_authority": {
306
+ "type": "string"
307
+ }
308
+ },
309
+ "additionalProperties": true
124
310
  }
125
311
  },
126
312
  "additionalProperties": true
@@ -9,12 +9,21 @@
9
9
  "contract_type",
10
10
  "title",
11
11
  "status",
12
+ "trigger",
12
13
  "core_question",
14
+ "central_uncertainty",
15
+ "hypothesis",
16
+ "target_behavior",
13
17
  "feature_classification",
14
18
  "critical_assumptions",
15
19
  "prototype_scope",
20
+ "prototype_experiment",
21
+ "observable_signals",
16
22
  "acceptance",
17
- "decision_options"
23
+ "decision_rules",
24
+ "decision_options",
25
+ "vision_gaps",
26
+ "agent_readiness_gate"
18
27
  ],
19
28
  "properties": {
20
29
  "schema_version": {
@@ -32,9 +41,45 @@
32
41
  "status": {
33
42
  "type": "string"
34
43
  },
44
+ "trigger": {
45
+ "type": "object",
46
+ "required": [
47
+ "mode",
48
+ "requested_command",
49
+ "reason"
50
+ ],
51
+ "properties": {
52
+ "mode": {
53
+ "type": "string",
54
+ "enum": [
55
+ "user_explicit",
56
+ "agent_auto"
57
+ ]
58
+ },
59
+ "requested_command": {
60
+ "type": [
61
+ "string",
62
+ "null"
63
+ ]
64
+ },
65
+ "reason": {
66
+ "type": "string"
67
+ }
68
+ },
69
+ "additionalProperties": true
70
+ },
35
71
  "core_question": {
36
72
  "type": "string"
37
73
  },
74
+ "central_uncertainty": {
75
+ "type": "string"
76
+ },
77
+ "hypothesis": {
78
+ "type": "string"
79
+ },
80
+ "target_behavior": {
81
+ "type": "string"
82
+ },
38
83
  "feature_classification": {
39
84
  "type": "object",
40
85
  "required": [
@@ -99,12 +144,110 @@
99
144
  },
100
145
  "additionalProperties": true
101
146
  },
147
+ "prototype_experiment": {
148
+ "type": "object",
149
+ "required": [
150
+ "scenario",
151
+ "must_show",
152
+ "must_not_show"
153
+ ],
154
+ "properties": {
155
+ "scenario": {
156
+ "type": "string"
157
+ },
158
+ "must_show": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "string"
162
+ }
163
+ },
164
+ "must_not_show": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "string"
168
+ }
169
+ }
170
+ },
171
+ "additionalProperties": true
172
+ },
173
+ "observable_signals": {
174
+ "type": "object",
175
+ "required": [
176
+ "pass",
177
+ "fail",
178
+ "ambiguous"
179
+ ],
180
+ "properties": {
181
+ "pass": {
182
+ "type": "array",
183
+ "items": {
184
+ "type": "string"
185
+ }
186
+ },
187
+ "fail": {
188
+ "type": "array",
189
+ "items": {
190
+ "type": "string"
191
+ }
192
+ },
193
+ "ambiguous": {
194
+ "type": "array",
195
+ "items": {
196
+ "type": "string"
197
+ }
198
+ }
199
+ },
200
+ "additionalProperties": true
201
+ },
102
202
  "acceptance": {
103
203
  "type": "array",
104
204
  "items": {
105
205
  "type": "string"
106
206
  }
107
207
  },
208
+ "decision_rules": {
209
+ "type": "object",
210
+ "required": [
211
+ "continue",
212
+ "revise",
213
+ "pivot",
214
+ "stop",
215
+ "needs_more_evidence"
216
+ ],
217
+ "properties": {
218
+ "continue": {
219
+ "type": "array",
220
+ "items": {
221
+ "type": "string"
222
+ }
223
+ },
224
+ "revise": {
225
+ "type": "array",
226
+ "items": {
227
+ "type": "string"
228
+ }
229
+ },
230
+ "pivot": {
231
+ "type": "array",
232
+ "items": {
233
+ "type": "string"
234
+ }
235
+ },
236
+ "stop": {
237
+ "type": "array",
238
+ "items": {
239
+ "type": "string"
240
+ }
241
+ },
242
+ "needs_more_evidence": {
243
+ "type": "array",
244
+ "items": {
245
+ "type": "string"
246
+ }
247
+ }
248
+ },
249
+ "additionalProperties": true
250
+ },
108
251
  "decision_options": {
109
252
  "type": "array",
110
253
  "items": {
@@ -117,6 +260,49 @@
117
260
  "needs_more_evidence"
118
261
  ]
119
262
  }
263
+ },
264
+ "vision_gaps": {
265
+ "type": "array",
266
+ "items": {
267
+ "type": "string"
268
+ }
269
+ },
270
+ "agent_readiness_gate": {
271
+ "type": "object",
272
+ "required": [
273
+ "status",
274
+ "blockers",
275
+ "warnings",
276
+ "write_authority"
277
+ ],
278
+ "properties": {
279
+ "status": {
280
+ "type": "string",
281
+ "enum": [
282
+ "missing_validation",
283
+ "thin_validation",
284
+ "stale_validation",
285
+ "ready_for_proto",
286
+ "return_to_vision"
287
+ ]
288
+ },
289
+ "blockers": {
290
+ "type": "array",
291
+ "items": {
292
+ "type": "string"
293
+ }
294
+ },
295
+ "warnings": {
296
+ "type": "array",
297
+ "items": {
298
+ "type": "string"
299
+ }
300
+ },
301
+ "write_authority": {
302
+ "type": "string"
303
+ }
304
+ },
305
+ "additionalProperties": true
120
306
  }
121
307
  },
122
308
  "additionalProperties": true
@@ -54,6 +54,157 @@
54
54
  "type": "object",
55
55
  "additionalProperties": true
56
56
  },
57
+ "strategic_core": {
58
+ "type": "object",
59
+ "properties": {
60
+ "target_user": {
61
+ "type": "string"
62
+ },
63
+ "context": {
64
+ "type": "string"
65
+ },
66
+ "current_alternative": {
67
+ "type": "string"
68
+ },
69
+ "pain": {
70
+ "type": "string"
71
+ },
72
+ "desired_behavior_change": {
73
+ "type": "string"
74
+ },
75
+ "core_mechanism": {
76
+ "type": "string"
77
+ },
78
+ "core_differentiator": {
79
+ "type": "string"
80
+ },
81
+ "strongest_success_signal": {
82
+ "type": "string"
83
+ },
84
+ "failure_signals": {
85
+ "type": "array",
86
+ "items": {
87
+ "type": "string"
88
+ }
89
+ }
90
+ },
91
+ "additionalProperties": true
92
+ },
93
+ "product_system_seed": {
94
+ "type": "object",
95
+ "properties": {
96
+ "product_thesis": {
97
+ "type": "string"
98
+ },
99
+ "primary_loop": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "interaction_model": {
106
+ "type": "string"
107
+ },
108
+ "feature_system": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "string"
112
+ }
113
+ },
114
+ "emotional_value": {
115
+ "type": "string"
116
+ },
117
+ "functional_value": {
118
+ "type": "string"
119
+ },
120
+ "trust_boundary": {
121
+ "type": "string"
122
+ },
123
+ "privacy_boundary": {
124
+ "type": "string"
125
+ },
126
+ "anti_goals": {
127
+ "type": "array",
128
+ "items": {
129
+ "type": "string"
130
+ }
131
+ },
132
+ "future_opportunities": {
133
+ "type": "array",
134
+ "items": {
135
+ "type": "string"
136
+ }
137
+ }
138
+ },
139
+ "additionalProperties": true
140
+ },
141
+ "proto_readiness": {
142
+ "type": "object",
143
+ "properties": {
144
+ "status": {
145
+ "enum": [
146
+ "missing",
147
+ "thin",
148
+ "ready",
149
+ "blocked"
150
+ ]
151
+ },
152
+ "missing_for_proto": {
153
+ "type": "array",
154
+ "items": {
155
+ "type": "string"
156
+ }
157
+ },
158
+ "prototype_direction_seeds": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "string"
162
+ }
163
+ },
164
+ "prompt_constraints": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "string"
168
+ }
169
+ },
170
+ "validation_target": {
171
+ "type": "string"
172
+ },
173
+ "downstream_notes": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "string"
177
+ }
178
+ }
179
+ },
180
+ "additionalProperties": true
181
+ },
182
+ "coverage": {
183
+ "type": "object",
184
+ "additionalProperties": {
185
+ "type": "object",
186
+ "properties": {
187
+ "status": {
188
+ "enum": [
189
+ "missing",
190
+ "thin",
191
+ "solid",
192
+ "conflicted"
193
+ ]
194
+ },
195
+ "evidence": {
196
+ "type": "array",
197
+ "items": {
198
+ "type": "string"
199
+ }
200
+ },
201
+ "follow_up_question": {
202
+ "type": "string"
203
+ }
204
+ },
205
+ "additionalProperties": true
206
+ }
207
+ },
57
208
  "handoff": {
58
209
  "type": "object",
59
210
  "required": [