@agentic-sdlc-kit/contracts 0.8.0 → 1.0.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 (198) hide show
  1. package/dist/agent/events.d.ts +18 -18
  2. package/dist/agent/execution.d.ts +22 -22
  3. package/dist/agent-tools/index.d.ts +85 -0
  4. package/dist/agent-tools/index.d.ts.map +1 -0
  5. package/dist/agent-tools/index.js +60 -0
  6. package/dist/agent-tools/index.js.map +1 -0
  7. package/dist/application/application-context.d.ts +194 -60
  8. package/dist/application/application-context.d.ts.map +1 -1
  9. package/dist/application/application-persistence.d.ts +276 -114
  10. package/dist/application/application-persistence.d.ts.map +1 -1
  11. package/dist/application/application-state.d.ts +18 -18
  12. package/dist/architecture/api-contract.d.ts +18 -18
  13. package/dist/architecture/architecture-options.d.ts +6 -6
  14. package/dist/architecture/component-map.d.ts +6 -6
  15. package/dist/architecture/data-model.d.ts +6 -6
  16. package/dist/architecture/operational-design.d.ts +6 -6
  17. package/dist/benchmark/bench.d.ts +330 -0
  18. package/dist/benchmark/bench.d.ts.map +1 -0
  19. package/dist/benchmark/bench.js +69 -0
  20. package/dist/benchmark/bench.js.map +1 -0
  21. package/dist/benchmark/index.d.ts +2 -0
  22. package/dist/benchmark/index.d.ts.map +1 -0
  23. package/dist/benchmark/index.js +2 -0
  24. package/dist/benchmark/index.js.map +1 -0
  25. package/dist/constitution/cli-output.d.ts +706 -0
  26. package/dist/constitution/cli-output.d.ts.map +1 -0
  27. package/dist/constitution/cli-output.js +37 -0
  28. package/dist/constitution/cli-output.js.map +1 -0
  29. package/dist/constitution/index.d.ts +4 -0
  30. package/dist/constitution/index.d.ts.map +1 -0
  31. package/dist/constitution/index.js +4 -0
  32. package/dist/constitution/index.js.map +1 -0
  33. package/dist/constitution/result.d.ts +112 -0
  34. package/dist/constitution/result.d.ts.map +1 -0
  35. package/dist/constitution/result.js +67 -0
  36. package/dist/constitution/result.js.map +1 -0
  37. package/dist/constitution/rule.d.ts +488 -0
  38. package/dist/constitution/rule.d.ts.map +1 -0
  39. package/dist/constitution/rule.js +164 -0
  40. package/dist/constitution/rule.js.map +1 -0
  41. package/dist/context/index.d.ts +2 -0
  42. package/dist/context/index.d.ts.map +1 -0
  43. package/dist/context/index.js +2 -0
  44. package/dist/context/index.js.map +1 -0
  45. package/dist/context/project-context.d.ts +275 -0
  46. package/dist/context/project-context.d.ts.map +1 -0
  47. package/dist/context/project-context.js +56 -0
  48. package/dist/context/project-context.js.map +1 -0
  49. package/dist/evaluation/benchmark.d.ts +12 -12
  50. package/dist/evaluation/metrics.d.ts +4 -4
  51. package/dist/evolution/improvement-hypothesis.d.ts +10 -10
  52. package/dist/execution/execution-profile.d.ts +130 -0
  53. package/dist/execution/execution-profile.d.ts.map +1 -0
  54. package/dist/execution/execution-profile.js +44 -0
  55. package/dist/execution/execution-profile.js.map +1 -0
  56. package/dist/execution/index.d.ts +2 -0
  57. package/dist/execution/index.d.ts.map +1 -0
  58. package/dist/execution/index.js +2 -0
  59. package/dist/execution/index.js.map +1 -0
  60. package/dist/index.d.ts +6 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +11 -0
  63. package/dist/index.js.map +1 -1
  64. package/dist/installer/install-plan.d.ts +16 -16
  65. package/dist/installer/ownership-manifest.d.ts +10 -2
  66. package/dist/installer/ownership-manifest.d.ts.map +1 -1
  67. package/dist/installer/ownership-manifest.js +4 -0
  68. package/dist/installer/ownership-manifest.js.map +1 -1
  69. package/dist/installer/package-manifest.d.ts +6 -6
  70. package/dist/learning/engineering-lesson.d.ts +14 -14
  71. package/dist/learning/engineering-memory.d.ts +20 -2
  72. package/dist/learning/engineering-memory.d.ts.map +1 -1
  73. package/dist/learning/engineering-memory.js +2 -0
  74. package/dist/learning/engineering-memory.js.map +1 -1
  75. package/dist/learning/experience-episode.d.ts +14 -14
  76. package/dist/learning/experience.d.ts +8 -8
  77. package/dist/learning/index.d.ts +1 -0
  78. package/dist/learning/index.d.ts.map +1 -1
  79. package/dist/learning/index.js +1 -0
  80. package/dist/learning/index.js.map +1 -1
  81. package/dist/learning/learning-event.d.ts +78 -0
  82. package/dist/learning/learning-event.d.ts.map +1 -0
  83. package/dist/learning/learning-event.js +37 -0
  84. package/dist/learning/learning-event.js.map +1 -0
  85. package/dist/learning/memory.d.ts +2 -2
  86. package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
  87. package/dist/maintenance/bug-report.d.ts +6 -6
  88. package/dist/maintenance/refactor-contract.d.ts +8 -8
  89. package/dist/maintenance/refactor-workflow.d.ts +4 -4
  90. package/dist/observer/event-schema.d.ts +6 -6
  91. package/dist/observer/journal.d.ts +10 -10
  92. package/dist/observer/journal.d.ts.map +1 -1
  93. package/dist/observer/journal.js +7 -0
  94. package/dist/observer/journal.js.map +1 -1
  95. package/dist/observer/run-summary.d.ts +12 -12
  96. package/dist/onboard/index.d.ts +2 -0
  97. package/dist/onboard/index.d.ts.map +1 -0
  98. package/dist/onboard/index.js +2 -0
  99. package/dist/onboard/index.js.map +1 -0
  100. package/dist/onboard/onboard-report.d.ts +349 -0
  101. package/dist/onboard/onboard-report.d.ts.map +1 -0
  102. package/dist/onboard/onboard-report.js +96 -0
  103. package/dist/onboard/onboard-report.js.map +1 -0
  104. package/dist/patterns/pattern.d.ts +2 -2
  105. package/dist/planning/task.d.ts +36 -36
  106. package/dist/policy/policy.d.ts +8 -8
  107. package/dist/product/product-brief.d.ts +6 -6
  108. package/dist/product/requirements.d.ts +48 -48
  109. package/dist/project/project-profile.d.ts +113 -2
  110. package/dist/project/project-profile.d.ts.map +1 -1
  111. package/dist/project/project-profile.js +17 -2
  112. package/dist/project/project-profile.js.map +1 -1
  113. package/dist/routing/index.d.ts +1 -0
  114. package/dist/routing/index.d.ts.map +1 -1
  115. package/dist/routing/index.js +1 -0
  116. package/dist/routing/index.js.map +1 -1
  117. package/dist/routing/measured-routing.d.ts +41 -0
  118. package/dist/routing/measured-routing.d.ts.map +1 -0
  119. package/dist/routing/measured-routing.js +24 -0
  120. package/dist/routing/measured-routing.js.map +1 -0
  121. package/dist/routing/routing-policy.d.ts +20 -20
  122. package/dist/routing/routing-request.d.ts +2 -2
  123. package/dist/runtime-guard/action-classification.d.ts +2 -2
  124. package/dist/runtime-guard/audit-event.d.ts +8 -8
  125. package/dist/runtime-guard/policy-schema.d.ts +4 -4
  126. package/dist/scaffolding/scaffold-contract.d.ts +59 -59
  127. package/dist/scaffolding/template-manifest.d.ts +15 -15
  128. package/dist/secret-guard/detection-rule.d.ts +5 -5
  129. package/dist/secret-guard/detection-rule.d.ts.map +1 -1
  130. package/dist/secret-guard/detection-rule.js +44 -0
  131. package/dist/secret-guard/detection-rule.js.map +1 -1
  132. package/dist/secret-guard/finding.d.ts +12 -12
  133. package/dist/secret-guard/finding.d.ts.map +1 -1
  134. package/dist/secret-guard/finding.js +2 -0
  135. package/dist/secret-guard/finding.js.map +1 -1
  136. package/dist/secret-guard/scanner-failure.d.ts +4 -4
  137. package/dist/specification/specification.d.ts +8 -8
  138. package/dist/stack-pack/manifest.d.ts +33 -4
  139. package/dist/stack-pack/manifest.d.ts.map +1 -1
  140. package/dist/stack-pack/manifest.js +22 -2
  141. package/dist/stack-pack/manifest.js.map +1 -1
  142. package/dist/verification/index.d.ts +1 -0
  143. package/dist/verification/index.d.ts.map +1 -1
  144. package/dist/verification/index.js +1 -0
  145. package/dist/verification/index.js.map +1 -1
  146. package/dist/verification/report.d.ts +118 -12
  147. package/dist/verification/report.d.ts.map +1 -1
  148. package/dist/verification/report.js +4 -0
  149. package/dist/verification/report.js.map +1 -1
  150. package/dist/verification/strength.d.ts +270 -0
  151. package/dist/verification/strength.d.ts.map +1 -0
  152. package/dist/verification/strength.js +168 -0
  153. package/dist/verification/strength.js.map +1 -0
  154. package/dist/workflow/next-action.d.ts +67 -6
  155. package/dist/workflow/next-action.d.ts.map +1 -1
  156. package/dist/workflow/next-action.js +23 -0
  157. package/dist/workflow/next-action.js.map +1 -1
  158. package/dist/workflow/workflow.d.ts +9 -8
  159. package/dist/workflow/workflow.d.ts.map +1 -1
  160. package/package.json +6 -1
  161. package/src/agent-tools/index.ts +81 -0
  162. package/src/benchmark/bench.ts +83 -0
  163. package/src/benchmark/index.ts +1 -0
  164. package/src/constitution/cli-output.ts +44 -0
  165. package/src/constitution/index.ts +3 -0
  166. package/src/constitution/result.test.ts +69 -0
  167. package/src/constitution/result.ts +74 -0
  168. package/src/constitution/rule-origin.test.ts +36 -0
  169. package/src/constitution/rule-path.test.ts +15 -0
  170. package/src/constitution/rule.test.ts +209 -0
  171. package/src/constitution/rule.ts +192 -0
  172. package/src/context/index.ts +1 -0
  173. package/src/context/project-context.ts +63 -0
  174. package/src/execution/execution-profile.ts +50 -0
  175. package/src/execution/index.ts +1 -0
  176. package/src/index.ts +16 -0
  177. package/src/installer/ownership-manifest.ts +4 -0
  178. package/src/learning/engineering-memory.ts +2 -0
  179. package/src/learning/index.ts +1 -0
  180. package/src/learning/learning-event.ts +42 -0
  181. package/src/observer/journal.ts +7 -0
  182. package/src/onboard/index.ts +1 -0
  183. package/src/onboard/onboard-report.test.ts +92 -0
  184. package/src/onboard/onboard-report.ts +115 -0
  185. package/src/project/project-profile.ts +19 -2
  186. package/src/routing/index.ts +1 -0
  187. package/src/routing/measured-routing.ts +27 -0
  188. package/src/secret-guard/detection-rule.ts +53 -0
  189. package/src/secret-guard/finding.ts +2 -0
  190. package/src/stack-pack/manifest.test.ts +45 -0
  191. package/src/stack-pack/manifest.ts +24 -2
  192. package/src/verification/index.ts +1 -0
  193. package/src/verification/report.ts +4 -0
  194. package/src/verification/strength.test.ts +160 -0
  195. package/src/verification/strength.ts +189 -0
  196. package/src/workflow/next-action.test.ts +25 -0
  197. package/src/workflow/next-action.ts +25 -0
  198. package/src/workflow/workflow.ts +1 -0
@@ -15,15 +15,15 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
15
15
  exitedAt: z.ZodOptional<z.ZodString>;
16
16
  outcome: z.ZodOptional<z.ZodEnum<["pending", "advanced", "blocked", "completed", "failed", "revised"]>>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
18
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
19
19
  enteredAt: string;
20
- exitedAt?: string | undefined;
21
20
  outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
21
+ exitedAt?: string | undefined;
22
22
  }, {
23
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
23
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
24
24
  enteredAt: string;
25
- exitedAt?: string | undefined;
26
25
  outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
26
+ exitedAt?: string | undefined;
27
27
  }>, "many">;
28
28
  revisions: z.ZodArray<z.ZodObject<{
29
29
  fromStage: z.ZodEnum<["intake", "discovery", "requirements", "architecture", "planning", "scaffolding", "implementation", "verification", "review", "release"]>;
@@ -32,30 +32,30 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
32
32
  revisedAt: z.ZodString;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  reason: string;
35
- fromStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
36
- toStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
35
+ fromStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
36
+ toStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
37
37
  revisedAt: string;
38
38
  }, {
39
39
  reason: string;
40
- fromStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
41
- toStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
40
+ fromStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
41
+ toStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
42
42
  revisedAt: string;
43
43
  }>, "many">;
44
44
  }, "strip", z.ZodTypeAny, {
45
45
  status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
46
46
  schemaVersion: 1;
47
47
  runId: string;
48
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
48
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
49
49
  stageHistory: {
50
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
50
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
51
51
  enteredAt: string;
52
- exitedAt?: string | undefined;
53
52
  outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
53
+ exitedAt?: string | undefined;
54
54
  }[];
55
55
  revisions: {
56
56
  reason: string;
57
- fromStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
58
- toStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
57
+ fromStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
58
+ toStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
59
59
  revisedAt: string;
60
60
  }[];
61
61
  startedAt?: string | undefined;
@@ -64,17 +64,17 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
64
64
  status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
65
65
  schemaVersion: 1;
66
66
  runId: string;
67
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
67
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
68
68
  stageHistory: {
69
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
69
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
70
70
  enteredAt: string;
71
- exitedAt?: string | undefined;
72
71
  outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
72
+ exitedAt?: string | undefined;
73
73
  }[];
74
74
  revisions: {
75
75
  reason: string;
76
- fromStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
77
- toStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
76
+ fromStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
77
+ toStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
78
78
  revisedAt: string;
79
79
  }[];
80
80
  startedAt?: string | undefined;
@@ -166,13 +166,14 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
166
166
  resolved: boolean;
167
167
  }>, "many">;
168
168
  }, "strict", z.ZodTypeAny, {
169
- id: string;
170
- overview: string;
171
- problem: string;
172
169
  scope: {
173
170
  in: string[];
174
171
  out: string[];
175
172
  };
173
+ id: string;
174
+ title: string;
175
+ overview: string;
176
+ problem: string;
176
177
  actors: {
177
178
  name: string;
178
179
  role: string;
@@ -201,15 +202,15 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
201
202
  question: string;
202
203
  resolved: boolean;
203
204
  }[];
204
- title: string;
205
205
  }, {
206
- id: string;
207
- overview: string;
208
- problem: string;
209
206
  scope: {
210
207
  in: string[];
211
208
  out: string[];
212
209
  };
210
+ id: string;
211
+ title: string;
212
+ overview: string;
213
+ problem: string;
213
214
  actors: {
214
215
  name: string;
215
216
  role: string;
@@ -238,7 +239,6 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
238
239
  question: string;
239
240
  resolved: boolean;
240
241
  }[];
241
- title: string;
242
242
  }>>;
243
243
  architectureDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
244
244
  plan: z.ZodOptional<z.ZodObject<{
@@ -252,36 +252,36 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
252
252
  expectedStatus: z.ZodEnum<["passed", "failed", "skipped", "blocked"]>;
253
253
  }, "strip", z.ZodTypeAny, {
254
254
  command: string[];
255
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
255
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
256
256
  }, {
257
257
  command: string[];
258
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
258
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
259
259
  }>;
260
260
  dependencies: z.ZodArray<z.ZodString, "many">;
261
261
  likelyFiles: z.ZodArray<z.ZodString, "many">;
262
262
  estimatedScope: z.ZodEnum<["xs", "s", "m", "l", "xl"]>;
263
263
  risk: z.ZodEnum<["low", "medium", "high"]>;
264
264
  }, "strip", z.ZodTypeAny, {
265
+ verification: {
266
+ command: string[];
267
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
268
+ };
265
269
  id: string;
266
270
  acceptanceCriteria: string[];
267
271
  dependencies: string[];
268
272
  description: string;
269
- verification: {
270
- command: string[];
271
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
272
- };
273
273
  likelyFiles: string[];
274
274
  estimatedScope: "xs" | "s" | "m" | "l" | "xl";
275
275
  risk: "low" | "medium" | "high";
276
276
  }, {
277
+ verification: {
278
+ command: string[];
279
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
280
+ };
277
281
  id: string;
278
282
  acceptanceCriteria: string[];
279
283
  dependencies: string[];
280
284
  description: string;
281
- verification: {
282
- command: string[];
283
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
284
- };
285
285
  likelyFiles: string[];
286
286
  estimatedScope: "xs" | "s" | "m" | "l" | "xl";
287
287
  risk: "low" | "medium" | "high";
@@ -292,54 +292,54 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
292
292
  reason: z.ZodString;
293
293
  }, "strip", z.ZodTypeAny, {
294
294
  from: string;
295
- to: string;
296
295
  reason: string;
296
+ to: string;
297
297
  }, {
298
298
  from: string;
299
- to: string;
300
299
  reason: string;
300
+ to: string;
301
301
  }>, "many">;
302
302
  verticalSlices: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  featureId: string;
305
305
  tasks: {
306
+ verification: {
307
+ command: string[];
308
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
309
+ };
306
310
  id: string;
307
311
  acceptanceCriteria: string[];
308
312
  dependencies: string[];
309
313
  description: string;
310
- verification: {
311
- command: string[];
312
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
313
- };
314
314
  likelyFiles: string[];
315
315
  estimatedScope: "xs" | "s" | "m" | "l" | "xl";
316
316
  risk: "low" | "medium" | "high";
317
317
  }[];
318
318
  edges: {
319
319
  from: string;
320
- to: string;
321
320
  reason: string;
321
+ to: string;
322
322
  }[];
323
323
  verticalSlices: string[][];
324
324
  }, {
325
325
  featureId: string;
326
326
  tasks: {
327
+ verification: {
328
+ command: string[];
329
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
330
+ };
327
331
  id: string;
328
332
  acceptanceCriteria: string[];
329
333
  dependencies: string[];
330
334
  description: string;
331
- verification: {
332
- command: string[];
333
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
334
- };
335
335
  likelyFiles: string[];
336
336
  estimatedScope: "xs" | "s" | "m" | "l" | "xl";
337
337
  risk: "low" | "medium" | "high";
338
338
  }[];
339
339
  edges: {
340
340
  from: string;
341
- to: string;
342
341
  reason: string;
342
+ to: string;
343
343
  }[];
344
344
  verticalSlices: string[][];
345
345
  }>>;
@@ -357,46 +357,152 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
357
357
  evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
358
358
  errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
359
359
  }, "strip", z.ZodTypeAny, {
360
- status: "passed" | "failed" | "skipped" | "blocked";
360
+ status: "passed" | "failed" | "blocked" | "skipped";
361
361
  id: string;
362
- command?: string[] | undefined;
363
362
  durationMs?: number | undefined;
363
+ command?: string[] | undefined;
364
364
  evidence?: string[] | undefined;
365
365
  errors?: string[] | undefined;
366
366
  }, {
367
- status: "passed" | "failed" | "skipped" | "blocked";
367
+ status: "passed" | "failed" | "blocked" | "skipped";
368
368
  id: string;
369
- command?: string[] | undefined;
370
369
  durationMs?: number | undefined;
370
+ command?: string[] | undefined;
371
371
  evidence?: string[] | undefined;
372
372
  errors?: string[] | undefined;
373
373
  }>, "many">;
374
+ rules: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
375
+ ruleId: z.ZodString;
376
+ mode: z.ZodEnum<["off", "shadow", "advisory", "blocking"]>;
377
+ outcome: z.ZodEnum<["passed", "violations", "adapter-unavailable", "adapter-error", "timed-out", "not-evaluated"]>;
378
+ violations: z.ZodArray<z.ZodObject<{
379
+ ruleId: z.ZodString;
380
+ path: z.ZodString;
381
+ fingerprint: z.ZodString;
382
+ line: z.ZodOptional<z.ZodNumber>;
383
+ message: z.ZodString;
384
+ }, "strip", z.ZodTypeAny, {
385
+ path: string;
386
+ message: string;
387
+ ruleId: string;
388
+ fingerprint: string;
389
+ line?: number | undefined;
390
+ }, {
391
+ path: string;
392
+ message: string;
393
+ ruleId: string;
394
+ fingerprint: string;
395
+ line?: number | undefined;
396
+ }>, "many">;
397
+ baselined: z.ZodNumber;
398
+ detail: z.ZodOptional<z.ZodString>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ ruleId: string;
401
+ mode: "off" | "shadow" | "advisory" | "blocking";
402
+ violations: {
403
+ path: string;
404
+ message: string;
405
+ ruleId: string;
406
+ fingerprint: string;
407
+ line?: number | undefined;
408
+ }[];
409
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
410
+ baselined: number;
411
+ detail?: string | undefined;
412
+ }, {
413
+ ruleId: string;
414
+ mode: "off" | "shadow" | "advisory" | "blocking";
415
+ violations: {
416
+ path: string;
417
+ message: string;
418
+ ruleId: string;
419
+ fingerprint: string;
420
+ line?: number | undefined;
421
+ }[];
422
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
423
+ baselined: number;
424
+ detail?: string | undefined;
425
+ }>, {
426
+ ruleId: string;
427
+ mode: "off" | "shadow" | "advisory" | "blocking";
428
+ violations: {
429
+ path: string;
430
+ message: string;
431
+ ruleId: string;
432
+ fingerprint: string;
433
+ line?: number | undefined;
434
+ }[];
435
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
436
+ baselined: number;
437
+ detail?: string | undefined;
438
+ }, {
439
+ ruleId: string;
440
+ mode: "off" | "shadow" | "advisory" | "blocking";
441
+ violations: {
442
+ path: string;
443
+ message: string;
444
+ ruleId: string;
445
+ fingerprint: string;
446
+ line?: number | undefined;
447
+ }[];
448
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
449
+ baselined: number;
450
+ detail?: string | undefined;
451
+ }>, "many">>;
374
452
  }, "strip", z.ZodTypeAny, {
375
453
  status: "passed" | "failed" | "blocked";
376
454
  schemaVersion: 1;
377
455
  runId: string;
378
456
  checks: {
379
- status: "passed" | "failed" | "skipped" | "blocked";
457
+ status: "passed" | "failed" | "blocked" | "skipped";
380
458
  id: string;
381
- command?: string[] | undefined;
382
459
  durationMs?: number | undefined;
460
+ command?: string[] | undefined;
383
461
  evidence?: string[] | undefined;
384
462
  errors?: string[] | undefined;
385
463
  }[];
386
464
  commitSha?: string | undefined;
465
+ rules?: {
466
+ ruleId: string;
467
+ mode: "off" | "shadow" | "advisory" | "blocking";
468
+ violations: {
469
+ path: string;
470
+ message: string;
471
+ ruleId: string;
472
+ fingerprint: string;
473
+ line?: number | undefined;
474
+ }[];
475
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
476
+ baselined: number;
477
+ detail?: string | undefined;
478
+ }[] | undefined;
387
479
  }, {
388
480
  status: "passed" | "failed" | "blocked";
389
481
  schemaVersion: 1;
390
482
  runId: string;
391
483
  checks: {
392
- status: "passed" | "failed" | "skipped" | "blocked";
484
+ status: "passed" | "failed" | "blocked" | "skipped";
393
485
  id: string;
394
- command?: string[] | undefined;
395
486
  durationMs?: number | undefined;
487
+ command?: string[] | undefined;
396
488
  evidence?: string[] | undefined;
397
489
  errors?: string[] | undefined;
398
490
  }[];
399
491
  commitSha?: string | undefined;
492
+ rules?: {
493
+ ruleId: string;
494
+ mode: "off" | "shadow" | "advisory" | "blocking";
495
+ violations: {
496
+ path: string;
497
+ message: string;
498
+ ruleId: string;
499
+ fingerprint: string;
500
+ line?: number | undefined;
501
+ }[];
502
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
503
+ baselined: number;
504
+ detail?: string | undefined;
505
+ }[] | undefined;
400
506
  }>, "many">>;
401
507
  reviewReportPath: z.ZodOptional<z.ZodString>;
402
508
  releaseVersion: z.ZodOptional<z.ZodString>;
@@ -425,13 +531,14 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
425
531
  }[];
426
532
  brief?: string | undefined;
427
533
  specification?: {
428
- id: string;
429
- overview: string;
430
- problem: string;
431
534
  scope: {
432
535
  in: string[];
433
536
  out: string[];
434
537
  };
538
+ id: string;
539
+ title: string;
540
+ overview: string;
541
+ problem: string;
435
542
  actors: {
436
543
  name: string;
437
544
  role: string;
@@ -460,28 +567,27 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
460
567
  question: string;
461
568
  resolved: boolean;
462
569
  }[];
463
- title: string;
464
570
  } | undefined;
465
571
  architectureDecisionIds?: string[] | undefined;
466
572
  plan?: {
467
573
  featureId: string;
468
574
  tasks: {
575
+ verification: {
576
+ command: string[];
577
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
578
+ };
469
579
  id: string;
470
580
  acceptanceCriteria: string[];
471
581
  dependencies: string[];
472
582
  description: string;
473
- verification: {
474
- command: string[];
475
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
476
- };
477
583
  likelyFiles: string[];
478
584
  estimatedScope: "xs" | "s" | "m" | "l" | "xl";
479
585
  risk: "low" | "medium" | "high";
480
586
  }[];
481
587
  edges: {
482
588
  from: string;
483
- to: string;
484
589
  reason: string;
590
+ to: string;
485
591
  }[];
486
592
  verticalSlices: string[][];
487
593
  } | undefined;
@@ -491,27 +597,42 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
491
597
  schemaVersion: 1;
492
598
  runId: string;
493
599
  checks: {
494
- status: "passed" | "failed" | "skipped" | "blocked";
600
+ status: "passed" | "failed" | "blocked" | "skipped";
495
601
  id: string;
496
- command?: string[] | undefined;
497
602
  durationMs?: number | undefined;
603
+ command?: string[] | undefined;
498
604
  evidence?: string[] | undefined;
499
605
  errors?: string[] | undefined;
500
606
  }[];
501
607
  commitSha?: string | undefined;
608
+ rules?: {
609
+ ruleId: string;
610
+ mode: "off" | "shadow" | "advisory" | "blocking";
611
+ violations: {
612
+ path: string;
613
+ message: string;
614
+ ruleId: string;
615
+ fingerprint: string;
616
+ line?: number | undefined;
617
+ }[];
618
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
619
+ baselined: number;
620
+ detail?: string | undefined;
621
+ }[] | undefined;
502
622
  }[] | undefined;
503
623
  reviewReportPath?: string | undefined;
504
624
  releaseVersion?: string | undefined;
505
625
  }, {
506
626
  brief?: string | undefined;
507
627
  specification?: {
508
- id: string;
509
- overview: string;
510
- problem: string;
511
628
  scope: {
512
629
  in: string[];
513
630
  out: string[];
514
631
  };
632
+ id: string;
633
+ title: string;
634
+ overview: string;
635
+ problem: string;
515
636
  actors: {
516
637
  name: string;
517
638
  role: string;
@@ -540,28 +661,27 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
540
661
  question: string;
541
662
  resolved: boolean;
542
663
  }[];
543
- title: string;
544
664
  } | undefined;
545
665
  architectureDecisionIds?: string[] | undefined;
546
666
  plan?: {
547
667
  featureId: string;
548
668
  tasks: {
669
+ verification: {
670
+ command: string[];
671
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
672
+ };
549
673
  id: string;
550
674
  acceptanceCriteria: string[];
551
675
  dependencies: string[];
552
676
  description: string;
553
- verification: {
554
- command: string[];
555
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
556
- };
557
677
  likelyFiles: string[];
558
678
  estimatedScope: "xs" | "s" | "m" | "l" | "xl";
559
679
  risk: "low" | "medium" | "high";
560
680
  }[];
561
681
  edges: {
562
682
  from: string;
563
- to: string;
564
683
  reason: string;
684
+ to: string;
565
685
  }[];
566
686
  verticalSlices: string[][];
567
687
  } | undefined;
@@ -571,14 +691,28 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
571
691
  schemaVersion: 1;
572
692
  runId: string;
573
693
  checks: {
574
- status: "passed" | "failed" | "skipped" | "blocked";
694
+ status: "passed" | "failed" | "blocked" | "skipped";
575
695
  id: string;
576
- command?: string[] | undefined;
577
696
  durationMs?: number | undefined;
697
+ command?: string[] | undefined;
578
698
  evidence?: string[] | undefined;
579
699
  errors?: string[] | undefined;
580
700
  }[];
581
701
  commitSha?: string | undefined;
702
+ rules?: {
703
+ ruleId: string;
704
+ mode: "off" | "shadow" | "advisory" | "blocking";
705
+ violations: {
706
+ path: string;
707
+ message: string;
708
+ ruleId: string;
709
+ fingerprint: string;
710
+ line?: number | undefined;
711
+ }[];
712
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
713
+ baselined: number;
714
+ detail?: string | undefined;
715
+ }[] | undefined;
582
716
  }[] | undefined;
583
717
  reviewReportPath?: string | undefined;
584
718
  releaseVersion?: string | undefined;
@@ -597,15 +731,15 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
597
731
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
598
732
  }, "strip", z.ZodTypeAny, {
599
733
  at: string;
600
- id: string;
601
734
  summary: string;
602
735
  kind: "stage-entered" | "stage-exited" | "context-updated" | "decision-raised" | "decision-resolved" | "scope-revised" | "architecture-revised" | "workflow-resumed" | "workflow-blocked" | "workflow-failed" | "workflow-completed";
736
+ id: string;
603
737
  details?: Record<string, unknown> | undefined;
604
738
  }, {
605
739
  at: string;
606
- id: string;
607
740
  summary: string;
608
741
  kind: "stage-entered" | "stage-exited" | "context-updated" | "decision-raised" | "decision-resolved" | "scope-revised" | "architecture-revised" | "workflow-resumed" | "workflow-blocked" | "workflow-failed" | "workflow-completed";
742
+ id: string;
609
743
  details?: Record<string, unknown> | undefined;
610
744
  }>, "many">;
611
745
  }, "strip", z.ZodTypeAny, {
@@ -614,17 +748,17 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
614
748
  status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
615
749
  schemaVersion: 1;
616
750
  runId: string;
617
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
751
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
618
752
  stageHistory: {
619
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
753
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
620
754
  enteredAt: string;
621
- exitedAt?: string | undefined;
622
755
  outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
756
+ exitedAt?: string | undefined;
623
757
  }[];
624
758
  revisions: {
625
759
  reason: string;
626
- fromStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
627
- toStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
760
+ fromStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
761
+ toStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
628
762
  revisedAt: string;
629
763
  }[];
630
764
  startedAt?: string | undefined;
@@ -639,13 +773,14 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
639
773
  }[];
640
774
  brief?: string | undefined;
641
775
  specification?: {
642
- id: string;
643
- overview: string;
644
- problem: string;
645
776
  scope: {
646
777
  in: string[];
647
778
  out: string[];
648
779
  };
780
+ id: string;
781
+ title: string;
782
+ overview: string;
783
+ problem: string;
649
784
  actors: {
650
785
  name: string;
651
786
  role: string;
@@ -674,28 +809,27 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
674
809
  question: string;
675
810
  resolved: boolean;
676
811
  }[];
677
- title: string;
678
812
  } | undefined;
679
813
  architectureDecisionIds?: string[] | undefined;
680
814
  plan?: {
681
815
  featureId: string;
682
816
  tasks: {
817
+ verification: {
818
+ command: string[];
819
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
820
+ };
683
821
  id: string;
684
822
  acceptanceCriteria: string[];
685
823
  dependencies: string[];
686
824
  description: string;
687
- verification: {
688
- command: string[];
689
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
690
- };
691
825
  likelyFiles: string[];
692
826
  estimatedScope: "xs" | "s" | "m" | "l" | "xl";
693
827
  risk: "low" | "medium" | "high";
694
828
  }[];
695
829
  edges: {
696
830
  from: string;
697
- to: string;
698
831
  reason: string;
832
+ to: string;
699
833
  }[];
700
834
  verticalSlices: string[][];
701
835
  } | undefined;
@@ -705,23 +839,37 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
705
839
  schemaVersion: 1;
706
840
  runId: string;
707
841
  checks: {
708
- status: "passed" | "failed" | "skipped" | "blocked";
842
+ status: "passed" | "failed" | "blocked" | "skipped";
709
843
  id: string;
710
- command?: string[] | undefined;
711
844
  durationMs?: number | undefined;
845
+ command?: string[] | undefined;
712
846
  evidence?: string[] | undefined;
713
847
  errors?: string[] | undefined;
714
848
  }[];
715
849
  commitSha?: string | undefined;
850
+ rules?: {
851
+ ruleId: string;
852
+ mode: "off" | "shadow" | "advisory" | "blocking";
853
+ violations: {
854
+ path: string;
855
+ message: string;
856
+ ruleId: string;
857
+ fingerprint: string;
858
+ line?: number | undefined;
859
+ }[];
860
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
861
+ baselined: number;
862
+ detail?: string | undefined;
863
+ }[] | undefined;
716
864
  }[] | undefined;
717
865
  reviewReportPath?: string | undefined;
718
866
  releaseVersion?: string | undefined;
719
867
  };
720
868
  changeLog: {
721
869
  at: string;
722
- id: string;
723
870
  summary: string;
724
871
  kind: "stage-entered" | "stage-exited" | "context-updated" | "decision-raised" | "decision-resolved" | "scope-revised" | "architecture-revised" | "workflow-resumed" | "workflow-blocked" | "workflow-failed" | "workflow-completed";
872
+ id: string;
725
873
  details?: Record<string, unknown> | undefined;
726
874
  }[];
727
875
  }, {
@@ -730,17 +878,17 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
730
878
  status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
731
879
  schemaVersion: 1;
732
880
  runId: string;
733
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
881
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
734
882
  stageHistory: {
735
- stage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
883
+ stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
736
884
  enteredAt: string;
737
- exitedAt?: string | undefined;
738
885
  outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
886
+ exitedAt?: string | undefined;
739
887
  }[];
740
888
  revisions: {
741
889
  reason: string;
742
- fromStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
743
- toStage: "verification" | "intake" | "discovery" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "review" | "release";
890
+ fromStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
891
+ toStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
744
892
  revisedAt: string;
745
893
  }[];
746
894
  startedAt?: string | undefined;
@@ -749,13 +897,14 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
749
897
  context: {
750
898
  brief?: string | undefined;
751
899
  specification?: {
752
- id: string;
753
- overview: string;
754
- problem: string;
755
900
  scope: {
756
901
  in: string[];
757
902
  out: string[];
758
903
  };
904
+ id: string;
905
+ title: string;
906
+ overview: string;
907
+ problem: string;
759
908
  actors: {
760
909
  name: string;
761
910
  role: string;
@@ -784,28 +933,27 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
784
933
  question: string;
785
934
  resolved: boolean;
786
935
  }[];
787
- title: string;
788
936
  } | undefined;
789
937
  architectureDecisionIds?: string[] | undefined;
790
938
  plan?: {
791
939
  featureId: string;
792
940
  tasks: {
941
+ verification: {
942
+ command: string[];
943
+ expectedStatus: "passed" | "failed" | "blocked" | "skipped";
944
+ };
793
945
  id: string;
794
946
  acceptanceCriteria: string[];
795
947
  dependencies: string[];
796
948
  description: string;
797
- verification: {
798
- command: string[];
799
- expectedStatus: "passed" | "failed" | "skipped" | "blocked";
800
- };
801
949
  likelyFiles: string[];
802
950
  estimatedScope: "xs" | "s" | "m" | "l" | "xl";
803
951
  risk: "low" | "medium" | "high";
804
952
  }[];
805
953
  edges: {
806
954
  from: string;
807
- to: string;
808
955
  reason: string;
956
+ to: string;
809
957
  }[];
810
958
  verticalSlices: string[][];
811
959
  } | undefined;
@@ -815,14 +963,28 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
815
963
  schemaVersion: 1;
816
964
  runId: string;
817
965
  checks: {
818
- status: "passed" | "failed" | "skipped" | "blocked";
966
+ status: "passed" | "failed" | "blocked" | "skipped";
819
967
  id: string;
820
- command?: string[] | undefined;
821
968
  durationMs?: number | undefined;
969
+ command?: string[] | undefined;
822
970
  evidence?: string[] | undefined;
823
971
  errors?: string[] | undefined;
824
972
  }[];
825
973
  commitSha?: string | undefined;
974
+ rules?: {
975
+ ruleId: string;
976
+ mode: "off" | "shadow" | "advisory" | "blocking";
977
+ violations: {
978
+ path: string;
979
+ message: string;
980
+ ruleId: string;
981
+ fingerprint: string;
982
+ line?: number | undefined;
983
+ }[];
984
+ outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
985
+ baselined: number;
986
+ detail?: string | undefined;
987
+ }[] | undefined;
826
988
  }[] | undefined;
827
989
  reviewReportPath?: string | undefined;
828
990
  releaseVersion?: string | undefined;
@@ -835,9 +997,9 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
835
997
  };
836
998
  changeLog: {
837
999
  at: string;
838
- id: string;
839
1000
  summary: string;
840
1001
  kind: "stage-entered" | "stage-exited" | "context-updated" | "decision-raised" | "decision-resolved" | "scope-revised" | "architecture-revised" | "workflow-resumed" | "workflow-blocked" | "workflow-failed" | "workflow-completed";
1002
+ id: string;
841
1003
  details?: Record<string, unknown> | undefined;
842
1004
  }[];
843
1005
  }>;