@agentic-sdlc-kit/contracts 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/agent/capability.d.ts +12 -1
  2. package/dist/agent/capability.d.ts.map +1 -1
  3. package/dist/agent/errors.d.ts +29 -11
  4. package/dist/agent/errors.d.ts.map +1 -1
  5. package/dist/agent/events.d.ts +42 -153
  6. package/dist/agent/events.d.ts.map +1 -1
  7. package/dist/agent/execution.d.ts +151 -415
  8. package/dist/agent/execution.d.ts.map +1 -1
  9. package/dist/agent/policy.d.ts +30 -92
  10. package/dist/agent/policy.d.ts.map +1 -1
  11. package/dist/agent/session.d.ts +1 -7
  12. package/dist/agent/session.d.ts.map +1 -1
  13. package/dist/agent-tools/index.d.ts +20 -58
  14. package/dist/agent-tools/index.d.ts.map +1 -1
  15. package/dist/application/application-context.d.ts +80 -582
  16. package/dist/application/application-context.d.ts.map +1 -1
  17. package/dist/application/application-persistence.d.ts +161 -924
  18. package/dist/application/application-persistence.d.ts.map +1 -1
  19. package/dist/application/application-state.d.ts +94 -70
  20. package/dist/application/application-state.d.ts.map +1 -1
  21. package/dist/architecture/api-contract.d.ts +56 -208
  22. package/dist/architecture/api-contract.d.ts.map +1 -1
  23. package/dist/architecture/architecture-approval.d.ts +2 -26
  24. package/dist/architecture/architecture-approval.d.ts.map +1 -1
  25. package/dist/architecture/architecture-options.d.ts +30 -82
  26. package/dist/architecture/architecture-options.d.ts.map +1 -1
  27. package/dist/architecture/component-map.d.ts +34 -60
  28. package/dist/architecture/component-map.d.ts.map +1 -1
  29. package/dist/architecture/data-model.d.ts +91 -205
  30. package/dist/architecture/data-model.d.ts.map +1 -1
  31. package/dist/architecture/operational-design.d.ts +48 -115
  32. package/dist/architecture/operational-design.d.ts.map +1 -1
  33. package/dist/architecture/security-design.d.ts +40 -90
  34. package/dist/architecture/security-design.d.ts.map +1 -1
  35. package/dist/benchmark/bench.d.ts +44 -263
  36. package/dist/benchmark/bench.d.ts.map +1 -1
  37. package/dist/common/identifier.d.ts +1 -1
  38. package/dist/common/identifier.d.ts.map +1 -1
  39. package/dist/constitution/cli-output.d.ts +58 -618
  40. package/dist/constitution/cli-output.d.ts.map +1 -1
  41. package/dist/constitution/result.d.ts +31 -84
  42. package/dist/constitution/result.d.ts.map +1 -1
  43. package/dist/constitution/rule.d.ts +97 -408
  44. package/dist/constitution/rule.d.ts.map +1 -1
  45. package/dist/context/project-context.d.ts +57 -227
  46. package/dist/context/project-context.d.ts.map +1 -1
  47. package/dist/evaluation/benchmark.d.ts +26 -66
  48. package/dist/evaluation/benchmark.d.ts.map +1 -1
  49. package/dist/evaluation/metrics.d.ts +15 -120
  50. package/dist/evaluation/metrics.d.ts.map +1 -1
  51. package/dist/evolution/experiment.d.ts +29 -51
  52. package/dist/evolution/experiment.d.ts.map +1 -1
  53. package/dist/evolution/improvement-hypothesis.d.ts +56 -78
  54. package/dist/evolution/improvement-hypothesis.d.ts.map +1 -1
  55. package/dist/execution/execution-profile.d.ts +25 -111
  56. package/dist/execution/execution-profile.d.ts.map +1 -1
  57. package/dist/improvement/config.d.ts +3 -17
  58. package/dist/improvement/config.d.ts.map +1 -1
  59. package/dist/improvement/config.js +1 -1
  60. package/dist/improvement/config.js.map +1 -1
  61. package/dist/improvement/finding.d.ts +24 -71
  62. package/dist/improvement/finding.d.ts.map +1 -1
  63. package/dist/improvement/issue.d.ts +10 -39
  64. package/dist/improvement/issue.d.ts.map +1 -1
  65. package/dist/improvement/kit-feedback.d.ts +45 -29
  66. package/dist/improvement/kit-feedback.d.ts.map +1 -1
  67. package/dist/improvement/review.d.ts +22 -28
  68. package/dist/improvement/review.d.ts.map +1 -1
  69. package/dist/installer/install-plan.d.ts +52 -137
  70. package/dist/installer/install-plan.d.ts.map +1 -1
  71. package/dist/installer/ownership-manifest.d.ts +7 -62
  72. package/dist/installer/ownership-manifest.d.ts.map +1 -1
  73. package/dist/installer/package-manifest.d.ts +25 -40
  74. package/dist/installer/package-manifest.d.ts.map +1 -1
  75. package/dist/learning/engineering-lesson.d.ts +19 -65
  76. package/dist/learning/engineering-lesson.d.ts.map +1 -1
  77. package/dist/learning/engineering-memory.d.ts +32 -64
  78. package/dist/learning/engineering-memory.d.ts.map +1 -1
  79. package/dist/learning/experience-episode.d.ts +33 -141
  80. package/dist/learning/experience-episode.d.ts.map +1 -1
  81. package/dist/learning/experience.d.ts +16 -50
  82. package/dist/learning/experience.d.ts.map +1 -1
  83. package/dist/learning/hypothesis.d.ts +14 -39
  84. package/dist/learning/hypothesis.d.ts.map +1 -1
  85. package/dist/learning/learning-event.d.ts +32 -62
  86. package/dist/learning/learning-event.d.ts.map +1 -1
  87. package/dist/learning/memory.d.ts +12 -28
  88. package/dist/learning/memory.d.ts.map +1 -1
  89. package/dist/learning/promotion.d.ts +7 -20
  90. package/dist/learning/promotion.d.ts.map +1 -1
  91. package/dist/maintenance/bug-fix-workflow.d.ts +49 -30
  92. package/dist/maintenance/bug-fix-workflow.d.ts.map +1 -1
  93. package/dist/maintenance/bug-report.d.ts +39 -46
  94. package/dist/maintenance/bug-report.d.ts.map +1 -1
  95. package/dist/maintenance/performance-baseline.d.ts +18 -64
  96. package/dist/maintenance/performance-baseline.d.ts.map +1 -1
  97. package/dist/maintenance/refactor-contract.d.ts +47 -133
  98. package/dist/maintenance/refactor-contract.d.ts.map +1 -1
  99. package/dist/maintenance/refactor-workflow.d.ts +50 -51
  100. package/dist/maintenance/refactor-workflow.d.ts.map +1 -1
  101. package/dist/observer/event-schema.d.ts +31 -31
  102. package/dist/observer/event-schema.d.ts.map +1 -1
  103. package/dist/observer/journal.d.ts +32 -57
  104. package/dist/observer/journal.d.ts.map +1 -1
  105. package/dist/observer/journal.js +1 -1
  106. package/dist/observer/journal.js.map +1 -1
  107. package/dist/observer/retention.d.ts +2 -16
  108. package/dist/observer/retention.d.ts.map +1 -1
  109. package/dist/observer/run-summary.d.ts +45 -213
  110. package/dist/observer/run-summary.d.ts.map +1 -1
  111. package/dist/onboard/onboard-report.d.ts +85 -279
  112. package/dist/onboard/onboard-report.d.ts.map +1 -1
  113. package/dist/patterns/pattern.d.ts +28 -74
  114. package/dist/patterns/pattern.d.ts.map +1 -1
  115. package/dist/planning/task.d.ts +70 -149
  116. package/dist/planning/task.d.ts.map +1 -1
  117. package/dist/policy/policy.d.ts +61 -56
  118. package/dist/policy/policy.d.ts.map +1 -1
  119. package/dist/product/mvp-scope.d.ts +8 -18
  120. package/dist/product/mvp-scope.d.ts.map +1 -1
  121. package/dist/product/product-brief.d.ts +6 -74
  122. package/dist/product/product-brief.d.ts.map +1 -1
  123. package/dist/product/requirements.d.ts +99 -215
  124. package/dist/product/requirements.d.ts.map +1 -1
  125. package/dist/product/traceability.d.ts +7 -39
  126. package/dist/product/traceability.d.ts.map +1 -1
  127. package/dist/project/project-profile.d.ts +34 -146
  128. package/dist/project/project-profile.d.ts.map +1 -1
  129. package/dist/project/repository-scan.d.ts +8 -64
  130. package/dist/project/repository-scan.d.ts.map +1 -1
  131. package/dist/routing/capability-registry.d.ts +15 -67
  132. package/dist/routing/capability-registry.d.ts.map +1 -1
  133. package/dist/routing/escalation.d.ts +10 -17
  134. package/dist/routing/escalation.d.ts.map +1 -1
  135. package/dist/routing/measured-routing.d.ts +18 -28
  136. package/dist/routing/measured-routing.d.ts.map +1 -1
  137. package/dist/routing/routing-policy.d.ts +56 -84
  138. package/dist/routing/routing-policy.d.ts.map +1 -1
  139. package/dist/routing/routing-request.d.ts +50 -46
  140. package/dist/routing/routing-request.d.ts.map +1 -1
  141. package/dist/runtime-guard/action-classification.d.ts +66 -36
  142. package/dist/runtime-guard/action-classification.d.ts.map +1 -1
  143. package/dist/runtime-guard/action-classification.js +1 -1
  144. package/dist/runtime-guard/action-classification.js.map +1 -1
  145. package/dist/runtime-guard/audit-event.d.ts +45 -77
  146. package/dist/runtime-guard/audit-event.d.ts.map +1 -1
  147. package/dist/runtime-guard/policy-schema.d.ts +100 -116
  148. package/dist/runtime-guard/policy-schema.d.ts.map +1 -1
  149. package/dist/scaffolding/scaffold-contract.d.ts +46 -450
  150. package/dist/scaffolding/scaffold-contract.d.ts.map +1 -1
  151. package/dist/scaffolding/template-manifest.d.ts +5 -77
  152. package/dist/scaffolding/template-manifest.d.ts.map +1 -1
  153. package/dist/secret-guard/detection-rule.d.ts +25 -19
  154. package/dist/secret-guard/detection-rule.d.ts.map +1 -1
  155. package/dist/secret-guard/finding.d.ts +70 -69
  156. package/dist/secret-guard/finding.d.ts.map +1 -1
  157. package/dist/secret-guard/redaction-policy.d.ts +7 -17
  158. package/dist/secret-guard/redaction-policy.d.ts.map +1 -1
  159. package/dist/secret-guard/scanner-failure.d.ts +17 -45
  160. package/dist/secret-guard/scanner-failure.d.ts.map +1 -1
  161. package/dist/specification/specification.d.ts +48 -184
  162. package/dist/specification/specification.d.ts.map +1 -1
  163. package/dist/stack-pack/manifest.d.ts +19 -90
  164. package/dist/stack-pack/manifest.d.ts.map +1 -1
  165. package/dist/verification/report.d.ts +49 -164
  166. package/dist/verification/report.d.ts.map +1 -1
  167. package/dist/verification/strength.d.ts +62 -188
  168. package/dist/verification/strength.d.ts.map +1 -1
  169. package/dist/workflow/next-action.d.ts +55 -137
  170. package/dist/workflow/next-action.d.ts.map +1 -1
  171. package/dist/workflow/workflow.d.ts +50 -50
  172. package/dist/workflow/workflow.d.ts.map +1 -1
  173. package/package.json +3 -3
  174. package/src/improvement/config.ts +1 -1
  175. package/src/observer/journal.ts +1 -1
  176. package/src/runtime-guard/action-classification.ts +1 -1
  177. package/src/zod-defaults.test.ts +28 -0
@@ -7,422 +7,130 @@ export declare const ApplicationContextSchema: z.ZodObject<{
7
7
  overview: z.ZodString;
8
8
  problem: z.ZodString;
9
9
  scope: z.ZodObject<{
10
- in: z.ZodArray<z.ZodString, "many">;
11
- out: z.ZodArray<z.ZodString, "many">;
12
- }, "strip", z.ZodTypeAny, {
13
- in: string[];
14
- out: string[];
15
- }, {
16
- in: string[];
17
- out: string[];
18
- }>;
10
+ in: z.ZodArray<z.ZodString>;
11
+ out: z.ZodArray<z.ZodString>;
12
+ }, z.core.$strip>;
19
13
  actors: z.ZodArray<z.ZodObject<{
20
14
  name: z.ZodString;
21
15
  role: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- name: string;
24
- role: string;
25
- }, {
26
- name: string;
27
- role: string;
28
- }>, "many">;
16
+ }, z.core.$strip>>;
29
17
  functionalRequirements: z.ZodArray<z.ZodObject<{
30
18
  id: z.ZodString;
31
19
  statement: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
33
- id: string;
34
- statement: string;
35
- }, {
36
- id: string;
37
- statement: string;
38
- }>, "many">;
20
+ }, z.core.$strip>>;
39
21
  nonFunctionalRequirements: z.ZodArray<z.ZodObject<{
40
22
  id: z.ZodString;
41
23
  statement: z.ZodString;
42
- }, "strip", z.ZodTypeAny, {
43
- id: string;
44
- statement: string;
45
- }, {
46
- id: string;
47
- statement: string;
48
- }>, "many">;
24
+ }, z.core.$strip>>;
49
25
  acceptanceCriteria: z.ZodArray<z.ZodObject<{
50
26
  id: z.ZodString;
51
27
  criterion: z.ZodString;
52
- }, "strip", z.ZodTypeAny, {
53
- id: string;
54
- criterion: string;
55
- }, {
56
- id: string;
57
- criterion: string;
58
- }>, "many">;
59
- edgeCases: z.ZodArray<z.ZodString, "many">;
60
- dependencies: z.ZodArray<z.ZodString, "many">;
28
+ }, z.core.$strip>>;
29
+ edgeCases: z.ZodArray<z.ZodString>;
30
+ dependencies: z.ZodArray<z.ZodString>;
61
31
  risks: z.ZodArray<z.ZodObject<{
62
32
  id: z.ZodString;
63
- severity: z.ZodEnum<["low", "medium", "high"]>;
33
+ severity: z.ZodEnum<{
34
+ low: "low";
35
+ medium: "medium";
36
+ high: "high";
37
+ }>;
64
38
  description: z.ZodString;
65
- }, "strip", z.ZodTypeAny, {
66
- id: string;
67
- severity: "low" | "medium" | "high";
68
- description: string;
69
- }, {
70
- id: string;
71
- severity: "low" | "medium" | "high";
72
- description: string;
73
- }>, "many">;
39
+ }, z.core.$strip>>;
74
40
  openQuestions: z.ZodArray<z.ZodObject<{
75
41
  id: z.ZodString;
76
42
  question: z.ZodString;
77
43
  resolved: z.ZodBoolean;
78
- }, "strip", z.ZodTypeAny, {
79
- id: string;
80
- question: string;
81
- resolved: boolean;
82
- }, {
83
- id: string;
84
- question: string;
85
- resolved: boolean;
86
- }>, "many">;
87
- }, "strict", z.ZodTypeAny, {
88
- scope: {
89
- in: string[];
90
- out: string[];
91
- };
92
- id: string;
93
- title: string;
94
- overview: string;
95
- problem: string;
96
- actors: {
97
- name: string;
98
- role: string;
99
- }[];
100
- functionalRequirements: {
101
- id: string;
102
- statement: string;
103
- }[];
104
- nonFunctionalRequirements: {
105
- id: string;
106
- statement: string;
107
- }[];
108
- acceptanceCriteria: {
109
- id: string;
110
- criterion: string;
111
- }[];
112
- edgeCases: string[];
113
- dependencies: string[];
114
- risks: {
115
- id: string;
116
- severity: "low" | "medium" | "high";
117
- description: string;
118
- }[];
119
- openQuestions: {
120
- id: string;
121
- question: string;
122
- resolved: boolean;
123
- }[];
124
- }, {
125
- scope: {
126
- in: string[];
127
- out: string[];
128
- };
129
- id: string;
130
- title: string;
131
- overview: string;
132
- problem: string;
133
- actors: {
134
- name: string;
135
- role: string;
136
- }[];
137
- functionalRequirements: {
138
- id: string;
139
- statement: string;
140
- }[];
141
- nonFunctionalRequirements: {
142
- id: string;
143
- statement: string;
144
- }[];
145
- acceptanceCriteria: {
146
- id: string;
147
- criterion: string;
148
- }[];
149
- edgeCases: string[];
150
- dependencies: string[];
151
- risks: {
152
- id: string;
153
- severity: "low" | "medium" | "high";
154
- description: string;
155
- }[];
156
- openQuestions: {
157
- id: string;
158
- question: string;
159
- resolved: boolean;
160
- }[];
161
- }>>;
162
- architectureDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strict>>;
46
+ architectureDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
163
47
  plan: z.ZodOptional<z.ZodObject<{
164
48
  featureId: z.ZodString;
165
49
  tasks: z.ZodArray<z.ZodObject<{
166
50
  id: z.ZodString;
167
51
  description: z.ZodString;
168
- acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
52
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
169
53
  verification: z.ZodObject<{
170
- command: z.ZodArray<z.ZodString, "many">;
171
- expectedStatus: z.ZodEnum<["passed", "failed", "skipped", "blocked"]>;
172
- }, "strip", z.ZodTypeAny, {
173
- command: string[];
174
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
175
- }, {
176
- command: string[];
177
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
54
+ command: z.ZodArray<z.ZodString>;
55
+ expectedStatus: z.ZodEnum<{
56
+ passed: "passed";
57
+ failed: "failed";
58
+ blocked: "blocked";
59
+ skipped: "skipped";
60
+ }>;
61
+ }, z.core.$strip>;
62
+ dependencies: z.ZodArray<z.ZodString>;
63
+ likelyFiles: z.ZodArray<z.ZodString>;
64
+ estimatedScope: z.ZodEnum<{
65
+ xs: "xs";
66
+ s: "s";
67
+ m: "m";
68
+ l: "l";
69
+ xl: "xl";
178
70
  }>;
179
- dependencies: z.ZodArray<z.ZodString, "many">;
180
- likelyFiles: z.ZodArray<z.ZodString, "many">;
181
- estimatedScope: z.ZodEnum<["xs", "s", "m", "l", "xl"]>;
182
- risk: z.ZodEnum<["low", "medium", "high"]>;
183
- }, "strip", z.ZodTypeAny, {
184
- verification: {
185
- command: string[];
186
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
187
- };
188
- id: string;
189
- acceptanceCriteria: string[];
190
- dependencies: string[];
191
- description: string;
192
- likelyFiles: string[];
193
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
194
- risk: "low" | "medium" | "high";
195
- }, {
196
- verification: {
197
- command: string[];
198
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
199
- };
200
- id: string;
201
- acceptanceCriteria: string[];
202
- dependencies: string[];
203
- description: string;
204
- likelyFiles: string[];
205
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
206
- risk: "low" | "medium" | "high";
207
- }>, "many">;
71
+ risk: z.ZodEnum<{
72
+ low: "low";
73
+ medium: "medium";
74
+ high: "high";
75
+ }>;
76
+ }, z.core.$strip>>;
208
77
  edges: z.ZodArray<z.ZodObject<{
209
78
  from: z.ZodString;
210
79
  to: z.ZodString;
211
80
  reason: z.ZodString;
212
- }, "strip", z.ZodTypeAny, {
213
- from: string;
214
- reason: string;
215
- to: string;
216
- }, {
217
- from: string;
218
- reason: string;
219
- to: string;
220
- }>, "many">;
221
- verticalSlices: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
222
- }, "strip", z.ZodTypeAny, {
223
- featureId: string;
224
- tasks: {
225
- verification: {
226
- command: string[];
227
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
228
- };
229
- id: string;
230
- acceptanceCriteria: string[];
231
- dependencies: string[];
232
- description: string;
233
- likelyFiles: string[];
234
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
235
- risk: "low" | "medium" | "high";
236
- }[];
237
- edges: {
238
- from: string;
239
- reason: string;
240
- to: string;
241
- }[];
242
- verticalSlices: string[][];
243
- }, {
244
- featureId: string;
245
- tasks: {
246
- verification: {
247
- command: string[];
248
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
249
- };
250
- id: string;
251
- acceptanceCriteria: string[];
252
- dependencies: string[];
253
- description: string;
254
- likelyFiles: string[];
255
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
256
- risk: "low" | "medium" | "high";
257
- }[];
258
- edges: {
259
- from: string;
260
- reason: string;
261
- to: string;
262
- }[];
263
- verticalSlices: string[][];
264
- }>>;
265
- scaffoldedFilePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ }, z.core.$strip>>;
82
+ verticalSlices: z.ZodArray<z.ZodArray<z.ZodString>>;
83
+ }, z.core.$strip>>;
84
+ scaffoldedFilePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
266
85
  verificationReports: z.ZodOptional<z.ZodArray<z.ZodObject<{
267
86
  schemaVersion: z.ZodLiteral<1>;
268
87
  runId: z.ZodString;
269
88
  commitSha: z.ZodOptional<z.ZodString>;
270
- status: z.ZodEnum<["passed", "failed", "blocked"]>;
89
+ status: z.ZodEnum<{
90
+ passed: "passed";
91
+ failed: "failed";
92
+ blocked: "blocked";
93
+ }>;
271
94
  checks: z.ZodArray<z.ZodObject<{
272
95
  id: z.ZodString;
273
- status: z.ZodEnum<["passed", "failed", "skipped", "blocked"]>;
274
- command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
+ status: z.ZodEnum<{
97
+ passed: "passed";
98
+ failed: "failed";
99
+ blocked: "blocked";
100
+ skipped: "skipped";
101
+ }>;
102
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
103
  durationMs: z.ZodOptional<z.ZodNumber>;
276
- evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
- errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
278
- }, "strip", z.ZodTypeAny, {
279
- status: "passed" | "failed" | "blocked" | "skipped";
280
- id: string;
281
- durationMs?: number | undefined;
282
- command?: string[] | undefined;
283
- evidence?: string[] | undefined;
284
- errors?: string[] | undefined;
285
- }, {
286
- status: "passed" | "failed" | "blocked" | "skipped";
287
- id: string;
288
- durationMs?: number | undefined;
289
- command?: string[] | undefined;
290
- evidence?: string[] | undefined;
291
- errors?: string[] | undefined;
292
- }>, "many">;
293
- rules: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
104
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
+ errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
+ }, z.core.$strip>>;
107
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
294
108
  ruleId: z.ZodString;
295
- mode: z.ZodEnum<["off", "shadow", "advisory", "blocking"]>;
296
- outcome: z.ZodEnum<["passed", "violations", "adapter-unavailable", "adapter-error", "timed-out", "not-evaluated"]>;
109
+ mode: z.ZodEnum<{
110
+ off: "off";
111
+ shadow: "shadow";
112
+ advisory: "advisory";
113
+ blocking: "blocking";
114
+ }>;
115
+ outcome: z.ZodEnum<{
116
+ passed: "passed";
117
+ violations: "violations";
118
+ "adapter-unavailable": "adapter-unavailable";
119
+ "adapter-error": "adapter-error";
120
+ "timed-out": "timed-out";
121
+ "not-evaluated": "not-evaluated";
122
+ }>;
297
123
  violations: z.ZodArray<z.ZodObject<{
298
124
  ruleId: z.ZodString;
299
125
  path: z.ZodString;
300
126
  fingerprint: z.ZodString;
301
127
  line: z.ZodOptional<z.ZodNumber>;
302
128
  message: z.ZodString;
303
- }, "strip", z.ZodTypeAny, {
304
- path: string;
305
- message: string;
306
- ruleId: string;
307
- fingerprint: string;
308
- line?: number | undefined;
309
- }, {
310
- path: string;
311
- message: string;
312
- ruleId: string;
313
- fingerprint: string;
314
- line?: number | undefined;
315
- }>, "many">;
129
+ }, z.core.$strip>>;
316
130
  baselined: z.ZodNumber;
317
131
  detail: z.ZodOptional<z.ZodString>;
318
- }, "strip", z.ZodTypeAny, {
319
- ruleId: string;
320
- mode: "off" | "shadow" | "advisory" | "blocking";
321
- violations: {
322
- path: string;
323
- message: string;
324
- ruleId: string;
325
- fingerprint: string;
326
- line?: number | undefined;
327
- }[];
328
- outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
329
- baselined: number;
330
- detail?: string | undefined;
331
- }, {
332
- ruleId: string;
333
- mode: "off" | "shadow" | "advisory" | "blocking";
334
- violations: {
335
- path: string;
336
- message: string;
337
- ruleId: string;
338
- fingerprint: string;
339
- line?: number | undefined;
340
- }[];
341
- outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
342
- baselined: number;
343
- detail?: string | undefined;
344
- }>, {
345
- ruleId: string;
346
- mode: "off" | "shadow" | "advisory" | "blocking";
347
- violations: {
348
- path: string;
349
- message: string;
350
- ruleId: string;
351
- fingerprint: string;
352
- line?: number | undefined;
353
- }[];
354
- outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
355
- baselined: number;
356
- detail?: string | undefined;
357
- }, {
358
- ruleId: string;
359
- mode: "off" | "shadow" | "advisory" | "blocking";
360
- violations: {
361
- path: string;
362
- message: string;
363
- ruleId: string;
364
- fingerprint: string;
365
- line?: number | undefined;
366
- }[];
367
- outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
368
- baselined: number;
369
- detail?: string | undefined;
370
- }>, "many">>;
371
- }, "strip", z.ZodTypeAny, {
372
- status: "passed" | "failed" | "blocked";
373
- schemaVersion: 1;
374
- runId: string;
375
- checks: {
376
- status: "passed" | "failed" | "blocked" | "skipped";
377
- id: string;
378
- durationMs?: number | undefined;
379
- command?: string[] | undefined;
380
- evidence?: string[] | undefined;
381
- errors?: string[] | undefined;
382
- }[];
383
- commitSha?: string | undefined;
384
- rules?: {
385
- ruleId: string;
386
- mode: "off" | "shadow" | "advisory" | "blocking";
387
- violations: {
388
- path: string;
389
- message: string;
390
- ruleId: string;
391
- fingerprint: string;
392
- line?: number | undefined;
393
- }[];
394
- outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
395
- baselined: number;
396
- detail?: string | undefined;
397
- }[] | undefined;
398
- }, {
399
- status: "passed" | "failed" | "blocked";
400
- schemaVersion: 1;
401
- runId: string;
402
- checks: {
403
- status: "passed" | "failed" | "blocked" | "skipped";
404
- id: string;
405
- durationMs?: number | undefined;
406
- command?: string[] | undefined;
407
- evidence?: string[] | undefined;
408
- errors?: string[] | undefined;
409
- }[];
410
- commitSha?: string | undefined;
411
- rules?: {
412
- ruleId: string;
413
- mode: "off" | "shadow" | "advisory" | "blocking";
414
- violations: {
415
- path: string;
416
- message: string;
417
- ruleId: string;
418
- fingerprint: string;
419
- line?: number | undefined;
420
- }[];
421
- outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
422
- baselined: number;
423
- detail?: string | undefined;
424
- }[] | undefined;
425
- }>, "many">>;
132
+ }, z.core.$strip>>>;
133
+ }, z.core.$strip>>>;
426
134
  reviewReportPath: z.ZodOptional<z.ZodString>;
427
135
  releaseVersion: z.ZodOptional<z.ZodString>;
428
136
  openDecisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -430,217 +138,7 @@ export declare const ApplicationContextSchema: z.ZodObject<{
430
138
  question: z.ZodString;
431
139
  stage: z.ZodString;
432
140
  raisedAt: z.ZodString;
433
- }, "strip", z.ZodTypeAny, {
434
- id: string;
435
- question: string;
436
- stage: string;
437
- raisedAt: string;
438
- }, {
439
- id: string;
440
- question: string;
441
- stage: string;
442
- raisedAt: string;
443
- }>, "many">>;
444
- }, "strip", z.ZodTypeAny, {
445
- openDecisions: {
446
- id: string;
447
- question: string;
448
- stage: string;
449
- raisedAt: string;
450
- }[];
451
- brief?: string | undefined;
452
- specification?: {
453
- scope: {
454
- in: string[];
455
- out: string[];
456
- };
457
- id: string;
458
- title: string;
459
- overview: string;
460
- problem: string;
461
- actors: {
462
- name: string;
463
- role: string;
464
- }[];
465
- functionalRequirements: {
466
- id: string;
467
- statement: string;
468
- }[];
469
- nonFunctionalRequirements: {
470
- id: string;
471
- statement: string;
472
- }[];
473
- acceptanceCriteria: {
474
- id: string;
475
- criterion: string;
476
- }[];
477
- edgeCases: string[];
478
- dependencies: string[];
479
- risks: {
480
- id: string;
481
- severity: "low" | "medium" | "high";
482
- description: string;
483
- }[];
484
- openQuestions: {
485
- id: string;
486
- question: string;
487
- resolved: boolean;
488
- }[];
489
- } | undefined;
490
- architectureDecisionIds?: string[] | undefined;
491
- plan?: {
492
- featureId: string;
493
- tasks: {
494
- verification: {
495
- command: string[];
496
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
497
- };
498
- id: string;
499
- acceptanceCriteria: string[];
500
- dependencies: string[];
501
- description: string;
502
- likelyFiles: string[];
503
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
504
- risk: "low" | "medium" | "high";
505
- }[];
506
- edges: {
507
- from: string;
508
- reason: string;
509
- to: string;
510
- }[];
511
- verticalSlices: string[][];
512
- } | undefined;
513
- scaffoldedFilePaths?: string[] | undefined;
514
- verificationReports?: {
515
- status: "passed" | "failed" | "blocked";
516
- schemaVersion: 1;
517
- runId: string;
518
- checks: {
519
- status: "passed" | "failed" | "blocked" | "skipped";
520
- id: string;
521
- durationMs?: number | undefined;
522
- command?: string[] | undefined;
523
- evidence?: string[] | undefined;
524
- errors?: string[] | undefined;
525
- }[];
526
- commitSha?: string | undefined;
527
- rules?: {
528
- ruleId: string;
529
- mode: "off" | "shadow" | "advisory" | "blocking";
530
- violations: {
531
- path: string;
532
- message: string;
533
- ruleId: string;
534
- fingerprint: string;
535
- line?: number | undefined;
536
- }[];
537
- outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
538
- baselined: number;
539
- detail?: string | undefined;
540
- }[] | undefined;
541
- }[] | undefined;
542
- reviewReportPath?: string | undefined;
543
- releaseVersion?: string | undefined;
544
- }, {
545
- brief?: string | undefined;
546
- specification?: {
547
- scope: {
548
- in: string[];
549
- out: string[];
550
- };
551
- id: string;
552
- title: string;
553
- overview: string;
554
- problem: string;
555
- actors: {
556
- name: string;
557
- role: string;
558
- }[];
559
- functionalRequirements: {
560
- id: string;
561
- statement: string;
562
- }[];
563
- nonFunctionalRequirements: {
564
- id: string;
565
- statement: string;
566
- }[];
567
- acceptanceCriteria: {
568
- id: string;
569
- criterion: string;
570
- }[];
571
- edgeCases: string[];
572
- dependencies: string[];
573
- risks: {
574
- id: string;
575
- severity: "low" | "medium" | "high";
576
- description: string;
577
- }[];
578
- openQuestions: {
579
- id: string;
580
- question: string;
581
- resolved: boolean;
582
- }[];
583
- } | undefined;
584
- architectureDecisionIds?: string[] | undefined;
585
- plan?: {
586
- featureId: string;
587
- tasks: {
588
- verification: {
589
- command: string[];
590
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
591
- };
592
- id: string;
593
- acceptanceCriteria: string[];
594
- dependencies: string[];
595
- description: string;
596
- likelyFiles: string[];
597
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
598
- risk: "low" | "medium" | "high";
599
- }[];
600
- edges: {
601
- from: string;
602
- reason: string;
603
- to: string;
604
- }[];
605
- verticalSlices: string[][];
606
- } | undefined;
607
- scaffoldedFilePaths?: string[] | undefined;
608
- verificationReports?: {
609
- status: "passed" | "failed" | "blocked";
610
- schemaVersion: 1;
611
- runId: string;
612
- checks: {
613
- status: "passed" | "failed" | "blocked" | "skipped";
614
- id: string;
615
- durationMs?: number | undefined;
616
- command?: string[] | undefined;
617
- evidence?: string[] | undefined;
618
- errors?: string[] | undefined;
619
- }[];
620
- commitSha?: string | undefined;
621
- rules?: {
622
- ruleId: string;
623
- mode: "off" | "shadow" | "advisory" | "blocking";
624
- violations: {
625
- path: string;
626
- message: string;
627
- ruleId: string;
628
- fingerprint: string;
629
- line?: number | undefined;
630
- }[];
631
- outcome: "passed" | "violations" | "adapter-unavailable" | "adapter-error" | "timed-out" | "not-evaluated";
632
- baselined: number;
633
- detail?: string | undefined;
634
- }[] | undefined;
635
- }[] | undefined;
636
- reviewReportPath?: string | undefined;
637
- releaseVersion?: string | undefined;
638
- openDecisions?: {
639
- id: string;
640
- question: string;
641
- stage: string;
642
- raisedAt: string;
643
- }[] | undefined;
644
- }>;
141
+ }, z.core.$strip>>>;
142
+ }, z.core.$strip>;
645
143
  export type ApplicationContext = z.infer<typeof ApplicationContextSchema>;
646
144
  //# sourceMappingURL=application-context.d.ts.map