@agentic-sdlc-kit/contracts 1.2.1 → 1.4.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 +4 -4
  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
@@ -5,81 +5,80 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
5
5
  state: z.ZodObject<{
6
6
  schemaVersion: z.ZodLiteral<1>;
7
7
  runId: z.ZodString;
8
- status: z.ZodEnum<["pending", "in_progress", "blocked", "completed", "failed"]>;
9
- stage: z.ZodEnum<["intake", "discovery", "requirements", "architecture", "planning", "scaffolding", "implementation", "verification", "review", "release"]>;
8
+ status: z.ZodEnum<{
9
+ failed: "failed";
10
+ blocked: "blocked";
11
+ pending: "pending";
12
+ in_progress: "in_progress";
13
+ completed: "completed";
14
+ }>;
15
+ stage: z.ZodEnum<{
16
+ verification: "verification";
17
+ review: "review";
18
+ discovery: "discovery";
19
+ intake: "intake";
20
+ requirements: "requirements";
21
+ architecture: "architecture";
22
+ planning: "planning";
23
+ scaffolding: "scaffolding";
24
+ implementation: "implementation";
25
+ release: "release";
26
+ }>;
10
27
  startedAt: z.ZodOptional<z.ZodString>;
11
28
  currentTaskId: z.ZodOptional<z.ZodString>;
12
29
  stageHistory: z.ZodArray<z.ZodObject<{
13
- stage: z.ZodEnum<["intake", "discovery", "requirements", "architecture", "planning", "scaffolding", "implementation", "verification", "review", "release"]>;
30
+ stage: z.ZodEnum<{
31
+ verification: "verification";
32
+ review: "review";
33
+ discovery: "discovery";
34
+ intake: "intake";
35
+ requirements: "requirements";
36
+ architecture: "architecture";
37
+ planning: "planning";
38
+ scaffolding: "scaffolding";
39
+ implementation: "implementation";
40
+ release: "release";
41
+ }>;
14
42
  enteredAt: z.ZodString;
15
43
  exitedAt: z.ZodOptional<z.ZodString>;
16
- outcome: z.ZodOptional<z.ZodEnum<["pending", "advanced", "blocked", "completed", "failed", "revised"]>>;
17
- }, "strip", z.ZodTypeAny, {
18
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
19
- enteredAt: string;
20
- outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
21
- exitedAt?: string | undefined;
22
- }, {
23
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
24
- enteredAt: string;
25
- outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
26
- exitedAt?: string | undefined;
27
- }>, "many">;
44
+ outcome: z.ZodOptional<z.ZodEnum<{
45
+ failed: "failed";
46
+ blocked: "blocked";
47
+ pending: "pending";
48
+ completed: "completed";
49
+ advanced: "advanced";
50
+ revised: "revised";
51
+ }>>;
52
+ }, z.core.$strip>>;
28
53
  revisions: z.ZodArray<z.ZodObject<{
29
- fromStage: z.ZodEnum<["intake", "discovery", "requirements", "architecture", "planning", "scaffolding", "implementation", "verification", "review", "release"]>;
30
- toStage: z.ZodEnum<["intake", "discovery", "requirements", "architecture", "planning", "scaffolding", "implementation", "verification", "review", "release"]>;
54
+ fromStage: z.ZodEnum<{
55
+ verification: "verification";
56
+ review: "review";
57
+ discovery: "discovery";
58
+ intake: "intake";
59
+ requirements: "requirements";
60
+ architecture: "architecture";
61
+ planning: "planning";
62
+ scaffolding: "scaffolding";
63
+ implementation: "implementation";
64
+ release: "release";
65
+ }>;
66
+ toStage: z.ZodEnum<{
67
+ verification: "verification";
68
+ review: "review";
69
+ discovery: "discovery";
70
+ intake: "intake";
71
+ requirements: "requirements";
72
+ architecture: "architecture";
73
+ planning: "planning";
74
+ scaffolding: "scaffolding";
75
+ implementation: "implementation";
76
+ release: "release";
77
+ }>;
31
78
  reason: z.ZodString;
32
79
  revisedAt: z.ZodString;
33
- }, "strip", z.ZodTypeAny, {
34
- reason: string;
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
- revisedAt: string;
38
- }, {
39
- reason: string;
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
- revisedAt: string;
43
- }>, "many">;
44
- }, "strip", z.ZodTypeAny, {
45
- status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
46
- schemaVersion: 1;
47
- runId: string;
48
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
49
- stageHistory: {
50
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
51
- enteredAt: string;
52
- outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
53
- exitedAt?: string | undefined;
54
- }[];
55
- revisions: {
56
- reason: string;
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
- revisedAt: string;
60
- }[];
61
- startedAt?: string | undefined;
62
- currentTaskId?: string | undefined;
63
- }, {
64
- status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
65
- schemaVersion: 1;
66
- runId: string;
67
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
68
- stageHistory: {
69
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
70
- enteredAt: string;
71
- outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
72
- exitedAt?: string | undefined;
73
- }[];
74
- revisions: {
75
- reason: string;
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
- revisedAt: string;
79
- }[];
80
- startedAt?: string | undefined;
81
- currentTaskId?: string | undefined;
82
- }>;
80
+ }, z.core.$strip>>;
81
+ }, z.core.$strip>;
83
82
  context: z.ZodObject<{
84
83
  brief: z.ZodOptional<z.ZodString>;
85
84
  specification: z.ZodOptional<z.ZodObject<{
@@ -88,422 +87,130 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
88
87
  overview: z.ZodString;
89
88
  problem: z.ZodString;
90
89
  scope: z.ZodObject<{
91
- in: z.ZodArray<z.ZodString, "many">;
92
- out: z.ZodArray<z.ZodString, "many">;
93
- }, "strip", z.ZodTypeAny, {
94
- in: string[];
95
- out: string[];
96
- }, {
97
- in: string[];
98
- out: string[];
99
- }>;
90
+ in: z.ZodArray<z.ZodString>;
91
+ out: z.ZodArray<z.ZodString>;
92
+ }, z.core.$strip>;
100
93
  actors: z.ZodArray<z.ZodObject<{
101
94
  name: z.ZodString;
102
95
  role: z.ZodString;
103
- }, "strip", z.ZodTypeAny, {
104
- name: string;
105
- role: string;
106
- }, {
107
- name: string;
108
- role: string;
109
- }>, "many">;
96
+ }, z.core.$strip>>;
110
97
  functionalRequirements: z.ZodArray<z.ZodObject<{
111
98
  id: z.ZodString;
112
99
  statement: z.ZodString;
113
- }, "strip", z.ZodTypeAny, {
114
- id: string;
115
- statement: string;
116
- }, {
117
- id: string;
118
- statement: string;
119
- }>, "many">;
100
+ }, z.core.$strip>>;
120
101
  nonFunctionalRequirements: z.ZodArray<z.ZodObject<{
121
102
  id: z.ZodString;
122
103
  statement: z.ZodString;
123
- }, "strip", z.ZodTypeAny, {
124
- id: string;
125
- statement: string;
126
- }, {
127
- id: string;
128
- statement: string;
129
- }>, "many">;
104
+ }, z.core.$strip>>;
130
105
  acceptanceCriteria: z.ZodArray<z.ZodObject<{
131
106
  id: z.ZodString;
132
107
  criterion: z.ZodString;
133
- }, "strip", z.ZodTypeAny, {
134
- id: string;
135
- criterion: string;
136
- }, {
137
- id: string;
138
- criterion: string;
139
- }>, "many">;
140
- edgeCases: z.ZodArray<z.ZodString, "many">;
141
- dependencies: z.ZodArray<z.ZodString, "many">;
108
+ }, z.core.$strip>>;
109
+ edgeCases: z.ZodArray<z.ZodString>;
110
+ dependencies: z.ZodArray<z.ZodString>;
142
111
  risks: z.ZodArray<z.ZodObject<{
143
112
  id: z.ZodString;
144
- severity: z.ZodEnum<["low", "medium", "high"]>;
113
+ severity: z.ZodEnum<{
114
+ low: "low";
115
+ medium: "medium";
116
+ high: "high";
117
+ }>;
145
118
  description: z.ZodString;
146
- }, "strip", z.ZodTypeAny, {
147
- id: string;
148
- severity: "low" | "medium" | "high";
149
- description: string;
150
- }, {
151
- id: string;
152
- severity: "low" | "medium" | "high";
153
- description: string;
154
- }>, "many">;
119
+ }, z.core.$strip>>;
155
120
  openQuestions: z.ZodArray<z.ZodObject<{
156
121
  id: z.ZodString;
157
122
  question: z.ZodString;
158
123
  resolved: z.ZodBoolean;
159
- }, "strip", z.ZodTypeAny, {
160
- id: string;
161
- question: string;
162
- resolved: boolean;
163
- }, {
164
- id: string;
165
- question: string;
166
- resolved: boolean;
167
- }>, "many">;
168
- }, "strict", z.ZodTypeAny, {
169
- scope: {
170
- in: string[];
171
- out: string[];
172
- };
173
- id: string;
174
- title: string;
175
- overview: string;
176
- problem: string;
177
- actors: {
178
- name: string;
179
- role: string;
180
- }[];
181
- functionalRequirements: {
182
- id: string;
183
- statement: string;
184
- }[];
185
- nonFunctionalRequirements: {
186
- id: string;
187
- statement: string;
188
- }[];
189
- acceptanceCriteria: {
190
- id: string;
191
- criterion: string;
192
- }[];
193
- edgeCases: string[];
194
- dependencies: string[];
195
- risks: {
196
- id: string;
197
- severity: "low" | "medium" | "high";
198
- description: string;
199
- }[];
200
- openQuestions: {
201
- id: string;
202
- question: string;
203
- resolved: boolean;
204
- }[];
205
- }, {
206
- scope: {
207
- in: string[];
208
- out: string[];
209
- };
210
- id: string;
211
- title: string;
212
- overview: string;
213
- problem: string;
214
- actors: {
215
- name: string;
216
- role: string;
217
- }[];
218
- functionalRequirements: {
219
- id: string;
220
- statement: string;
221
- }[];
222
- nonFunctionalRequirements: {
223
- id: string;
224
- statement: string;
225
- }[];
226
- acceptanceCriteria: {
227
- id: string;
228
- criterion: string;
229
- }[];
230
- edgeCases: string[];
231
- dependencies: string[];
232
- risks: {
233
- id: string;
234
- severity: "low" | "medium" | "high";
235
- description: string;
236
- }[];
237
- openQuestions: {
238
- id: string;
239
- question: string;
240
- resolved: boolean;
241
- }[];
242
- }>>;
243
- architectureDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
124
+ }, z.core.$strip>>;
125
+ }, z.core.$strict>>;
126
+ architectureDecisionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
244
127
  plan: z.ZodOptional<z.ZodObject<{
245
128
  featureId: z.ZodString;
246
129
  tasks: z.ZodArray<z.ZodObject<{
247
130
  id: z.ZodString;
248
131
  description: z.ZodString;
249
- acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
132
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
250
133
  verification: z.ZodObject<{
251
- command: z.ZodArray<z.ZodString, "many">;
252
- expectedStatus: z.ZodEnum<["passed", "failed", "skipped", "blocked"]>;
253
- }, "strip", z.ZodTypeAny, {
254
- command: string[];
255
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
256
- }, {
257
- command: string[];
258
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
134
+ command: z.ZodArray<z.ZodString>;
135
+ expectedStatus: z.ZodEnum<{
136
+ passed: "passed";
137
+ failed: "failed";
138
+ blocked: "blocked";
139
+ skipped: "skipped";
140
+ }>;
141
+ }, z.core.$strip>;
142
+ dependencies: z.ZodArray<z.ZodString>;
143
+ likelyFiles: z.ZodArray<z.ZodString>;
144
+ estimatedScope: z.ZodEnum<{
145
+ xs: "xs";
146
+ s: "s";
147
+ m: "m";
148
+ l: "l";
149
+ xl: "xl";
259
150
  }>;
260
- dependencies: z.ZodArray<z.ZodString, "many">;
261
- likelyFiles: z.ZodArray<z.ZodString, "many">;
262
- estimatedScope: z.ZodEnum<["xs", "s", "m", "l", "xl"]>;
263
- risk: z.ZodEnum<["low", "medium", "high"]>;
264
- }, "strip", z.ZodTypeAny, {
265
- verification: {
266
- command: string[];
267
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
268
- };
269
- id: string;
270
- acceptanceCriteria: string[];
271
- dependencies: string[];
272
- description: string;
273
- likelyFiles: string[];
274
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
275
- risk: "low" | "medium" | "high";
276
- }, {
277
- verification: {
278
- command: string[];
279
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
280
- };
281
- id: string;
282
- acceptanceCriteria: string[];
283
- dependencies: string[];
284
- description: string;
285
- likelyFiles: string[];
286
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
287
- risk: "low" | "medium" | "high";
288
- }>, "many">;
151
+ risk: z.ZodEnum<{
152
+ low: "low";
153
+ medium: "medium";
154
+ high: "high";
155
+ }>;
156
+ }, z.core.$strip>>;
289
157
  edges: z.ZodArray<z.ZodObject<{
290
158
  from: z.ZodString;
291
159
  to: z.ZodString;
292
160
  reason: z.ZodString;
293
- }, "strip", z.ZodTypeAny, {
294
- from: string;
295
- reason: string;
296
- to: string;
297
- }, {
298
- from: string;
299
- reason: string;
300
- to: string;
301
- }>, "many">;
302
- verticalSlices: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
303
- }, "strip", z.ZodTypeAny, {
304
- featureId: string;
305
- tasks: {
306
- verification: {
307
- command: string[];
308
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
309
- };
310
- id: string;
311
- acceptanceCriteria: string[];
312
- dependencies: string[];
313
- description: string;
314
- likelyFiles: string[];
315
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
316
- risk: "low" | "medium" | "high";
317
- }[];
318
- edges: {
319
- from: string;
320
- reason: string;
321
- to: string;
322
- }[];
323
- verticalSlices: string[][];
324
- }, {
325
- featureId: string;
326
- tasks: {
327
- verification: {
328
- command: string[];
329
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
330
- };
331
- id: string;
332
- acceptanceCriteria: string[];
333
- dependencies: string[];
334
- description: string;
335
- likelyFiles: string[];
336
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
337
- risk: "low" | "medium" | "high";
338
- }[];
339
- edges: {
340
- from: string;
341
- reason: string;
342
- to: string;
343
- }[];
344
- verticalSlices: string[][];
345
- }>>;
346
- scaffoldedFilePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
+ }, z.core.$strip>>;
162
+ verticalSlices: z.ZodArray<z.ZodArray<z.ZodString>>;
163
+ }, z.core.$strip>>;
164
+ scaffoldedFilePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
347
165
  verificationReports: z.ZodOptional<z.ZodArray<z.ZodObject<{
348
166
  schemaVersion: z.ZodLiteral<1>;
349
167
  runId: z.ZodString;
350
168
  commitSha: z.ZodOptional<z.ZodString>;
351
- status: z.ZodEnum<["passed", "failed", "blocked"]>;
169
+ status: z.ZodEnum<{
170
+ passed: "passed";
171
+ failed: "failed";
172
+ blocked: "blocked";
173
+ }>;
352
174
  checks: z.ZodArray<z.ZodObject<{
353
175
  id: z.ZodString;
354
- status: z.ZodEnum<["passed", "failed", "skipped", "blocked"]>;
355
- command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
176
+ status: z.ZodEnum<{
177
+ passed: "passed";
178
+ failed: "failed";
179
+ blocked: "blocked";
180
+ skipped: "skipped";
181
+ }>;
182
+ command: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
183
  durationMs: z.ZodOptional<z.ZodNumber>;
357
- evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
358
- errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
359
- }, "strip", z.ZodTypeAny, {
360
- status: "passed" | "failed" | "blocked" | "skipped";
361
- id: string;
362
- durationMs?: number | undefined;
363
- command?: string[] | undefined;
364
- evidence?: string[] | undefined;
365
- errors?: string[] | undefined;
366
- }, {
367
- status: "passed" | "failed" | "blocked" | "skipped";
368
- id: string;
369
- durationMs?: number | undefined;
370
- command?: string[] | undefined;
371
- evidence?: string[] | undefined;
372
- errors?: string[] | undefined;
373
- }>, "many">;
374
- rules: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
184
+ evidence: z.ZodOptional<z.ZodArray<z.ZodString>>;
185
+ errors: z.ZodOptional<z.ZodArray<z.ZodString>>;
186
+ }, z.core.$strip>>;
187
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
375
188
  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"]>;
189
+ mode: z.ZodEnum<{
190
+ off: "off";
191
+ shadow: "shadow";
192
+ advisory: "advisory";
193
+ blocking: "blocking";
194
+ }>;
195
+ outcome: z.ZodEnum<{
196
+ passed: "passed";
197
+ violations: "violations";
198
+ "adapter-unavailable": "adapter-unavailable";
199
+ "adapter-error": "adapter-error";
200
+ "timed-out": "timed-out";
201
+ "not-evaluated": "not-evaluated";
202
+ }>;
378
203
  violations: z.ZodArray<z.ZodObject<{
379
204
  ruleId: z.ZodString;
380
205
  path: z.ZodString;
381
206
  fingerprint: z.ZodString;
382
207
  line: z.ZodOptional<z.ZodNumber>;
383
208
  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">;
209
+ }, z.core.$strip>>;
397
210
  baselined: z.ZodNumber;
398
211
  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">>;
452
- }, "strip", z.ZodTypeAny, {
453
- status: "passed" | "failed" | "blocked";
454
- schemaVersion: 1;
455
- runId: string;
456
- checks: {
457
- status: "passed" | "failed" | "blocked" | "skipped";
458
- id: string;
459
- durationMs?: number | undefined;
460
- command?: string[] | undefined;
461
- evidence?: string[] | undefined;
462
- errors?: string[] | undefined;
463
- }[];
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;
479
- }, {
480
- status: "passed" | "failed" | "blocked";
481
- schemaVersion: 1;
482
- runId: string;
483
- checks: {
484
- status: "passed" | "failed" | "blocked" | "skipped";
485
- id: string;
486
- durationMs?: number | undefined;
487
- command?: string[] | undefined;
488
- evidence?: string[] | undefined;
489
- errors?: string[] | undefined;
490
- }[];
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;
506
- }>, "many">>;
212
+ }, z.core.$strip>>>;
213
+ }, z.core.$strip>>>;
507
214
  reviewReportPath: z.ZodOptional<z.ZodString>;
508
215
  releaseVersion: z.ZodOptional<z.ZodString>;
509
216
  openDecisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -511,498 +218,28 @@ export declare const ApplicationPersistenceSchema: z.ZodObject<{
511
218
  question: z.ZodString;
512
219
  stage: z.ZodString;
513
220
  raisedAt: z.ZodString;
514
- }, "strip", z.ZodTypeAny, {
515
- id: string;
516
- question: string;
517
- stage: string;
518
- raisedAt: string;
519
- }, {
520
- id: string;
521
- question: string;
522
- stage: string;
523
- raisedAt: string;
524
- }>, "many">>;
525
- }, "strip", z.ZodTypeAny, {
526
- openDecisions: {
527
- id: string;
528
- question: string;
529
- stage: string;
530
- raisedAt: string;
531
- }[];
532
- brief?: string | undefined;
533
- specification?: {
534
- scope: {
535
- in: string[];
536
- out: string[];
537
- };
538
- id: string;
539
- title: string;
540
- overview: string;
541
- problem: string;
542
- actors: {
543
- name: string;
544
- role: string;
545
- }[];
546
- functionalRequirements: {
547
- id: string;
548
- statement: string;
549
- }[];
550
- nonFunctionalRequirements: {
551
- id: string;
552
- statement: string;
553
- }[];
554
- acceptanceCriteria: {
555
- id: string;
556
- criterion: string;
557
- }[];
558
- edgeCases: string[];
559
- dependencies: string[];
560
- risks: {
561
- id: string;
562
- severity: "low" | "medium" | "high";
563
- description: string;
564
- }[];
565
- openQuestions: {
566
- id: string;
567
- question: string;
568
- resolved: boolean;
569
- }[];
570
- } | undefined;
571
- architectureDecisionIds?: string[] | undefined;
572
- plan?: {
573
- featureId: string;
574
- tasks: {
575
- verification: {
576
- command: string[];
577
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
578
- };
579
- id: string;
580
- acceptanceCriteria: string[];
581
- dependencies: string[];
582
- description: string;
583
- likelyFiles: string[];
584
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
585
- risk: "low" | "medium" | "high";
586
- }[];
587
- edges: {
588
- from: string;
589
- reason: string;
590
- to: string;
591
- }[];
592
- verticalSlices: string[][];
593
- } | undefined;
594
- scaffoldedFilePaths?: string[] | undefined;
595
- verificationReports?: {
596
- status: "passed" | "failed" | "blocked";
597
- schemaVersion: 1;
598
- runId: string;
599
- checks: {
600
- status: "passed" | "failed" | "blocked" | "skipped";
601
- id: string;
602
- durationMs?: number | undefined;
603
- command?: string[] | undefined;
604
- evidence?: string[] | undefined;
605
- errors?: string[] | undefined;
606
- }[];
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;
622
- }[] | undefined;
623
- reviewReportPath?: string | undefined;
624
- releaseVersion?: string | undefined;
625
- }, {
626
- brief?: string | undefined;
627
- specification?: {
628
- scope: {
629
- in: string[];
630
- out: string[];
631
- };
632
- id: string;
633
- title: string;
634
- overview: string;
635
- problem: string;
636
- actors: {
637
- name: string;
638
- role: string;
639
- }[];
640
- functionalRequirements: {
641
- id: string;
642
- statement: string;
643
- }[];
644
- nonFunctionalRequirements: {
645
- id: string;
646
- statement: string;
647
- }[];
648
- acceptanceCriteria: {
649
- id: string;
650
- criterion: string;
651
- }[];
652
- edgeCases: string[];
653
- dependencies: string[];
654
- risks: {
655
- id: string;
656
- severity: "low" | "medium" | "high";
657
- description: string;
658
- }[];
659
- openQuestions: {
660
- id: string;
661
- question: string;
662
- resolved: boolean;
663
- }[];
664
- } | undefined;
665
- architectureDecisionIds?: string[] | undefined;
666
- plan?: {
667
- featureId: string;
668
- tasks: {
669
- verification: {
670
- command: string[];
671
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
672
- };
673
- id: string;
674
- acceptanceCriteria: string[];
675
- dependencies: string[];
676
- description: string;
677
- likelyFiles: string[];
678
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
679
- risk: "low" | "medium" | "high";
680
- }[];
681
- edges: {
682
- from: string;
683
- reason: string;
684
- to: string;
685
- }[];
686
- verticalSlices: string[][];
687
- } | undefined;
688
- scaffoldedFilePaths?: string[] | undefined;
689
- verificationReports?: {
690
- status: "passed" | "failed" | "blocked";
691
- schemaVersion: 1;
692
- runId: string;
693
- checks: {
694
- status: "passed" | "failed" | "blocked" | "skipped";
695
- id: string;
696
- durationMs?: number | undefined;
697
- command?: string[] | undefined;
698
- evidence?: string[] | undefined;
699
- errors?: string[] | undefined;
700
- }[];
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;
716
- }[] | undefined;
717
- reviewReportPath?: string | undefined;
718
- releaseVersion?: string | undefined;
719
- openDecisions?: {
720
- id: string;
721
- question: string;
722
- stage: string;
723
- raisedAt: string;
724
- }[] | undefined;
725
- }>;
221
+ }, z.core.$strip>>>;
222
+ }, z.core.$strip>;
726
223
  changeLog: z.ZodArray<z.ZodObject<{
727
224
  id: z.ZodString;
728
225
  at: z.ZodString;
729
- kind: z.ZodEnum<["stage-entered", "stage-exited", "context-updated", "decision-raised", "decision-resolved", "scope-revised", "architecture-revised", "workflow-resumed", "workflow-blocked", "workflow-failed", "workflow-completed"]>;
226
+ kind: z.ZodEnum<{
227
+ "stage-entered": "stage-entered";
228
+ "stage-exited": "stage-exited";
229
+ "context-updated": "context-updated";
230
+ "decision-raised": "decision-raised";
231
+ "decision-resolved": "decision-resolved";
232
+ "scope-revised": "scope-revised";
233
+ "architecture-revised": "architecture-revised";
234
+ "workflow-resumed": "workflow-resumed";
235
+ "workflow-blocked": "workflow-blocked";
236
+ "workflow-failed": "workflow-failed";
237
+ "workflow-completed": "workflow-completed";
238
+ }>;
730
239
  summary: z.ZodString;
731
240
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
732
- }, "strip", z.ZodTypeAny, {
733
- at: string;
734
- summary: string;
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;
737
- details?: Record<string, unknown> | undefined;
738
- }, {
739
- at: string;
740
- summary: string;
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;
743
- details?: Record<string, unknown> | undefined;
744
- }>, "many">;
745
- }, "strip", z.ZodTypeAny, {
746
- schemaVersion: 1;
747
- state: {
748
- status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
749
- schemaVersion: 1;
750
- runId: string;
751
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
752
- stageHistory: {
753
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
754
- enteredAt: string;
755
- outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
756
- exitedAt?: string | undefined;
757
- }[];
758
- revisions: {
759
- reason: string;
760
- fromStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
761
- toStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
762
- revisedAt: string;
763
- }[];
764
- startedAt?: string | undefined;
765
- currentTaskId?: string | undefined;
766
- };
767
- context: {
768
- openDecisions: {
769
- id: string;
770
- question: string;
771
- stage: string;
772
- raisedAt: string;
773
- }[];
774
- brief?: string | undefined;
775
- specification?: {
776
- scope: {
777
- in: string[];
778
- out: string[];
779
- };
780
- id: string;
781
- title: string;
782
- overview: string;
783
- problem: string;
784
- actors: {
785
- name: string;
786
- role: string;
787
- }[];
788
- functionalRequirements: {
789
- id: string;
790
- statement: string;
791
- }[];
792
- nonFunctionalRequirements: {
793
- id: string;
794
- statement: string;
795
- }[];
796
- acceptanceCriteria: {
797
- id: string;
798
- criterion: string;
799
- }[];
800
- edgeCases: string[];
801
- dependencies: string[];
802
- risks: {
803
- id: string;
804
- severity: "low" | "medium" | "high";
805
- description: string;
806
- }[];
807
- openQuestions: {
808
- id: string;
809
- question: string;
810
- resolved: boolean;
811
- }[];
812
- } | undefined;
813
- architectureDecisionIds?: string[] | undefined;
814
- plan?: {
815
- featureId: string;
816
- tasks: {
817
- verification: {
818
- command: string[];
819
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
820
- };
821
- id: string;
822
- acceptanceCriteria: string[];
823
- dependencies: string[];
824
- description: string;
825
- likelyFiles: string[];
826
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
827
- risk: "low" | "medium" | "high";
828
- }[];
829
- edges: {
830
- from: string;
831
- reason: string;
832
- to: string;
833
- }[];
834
- verticalSlices: string[][];
835
- } | undefined;
836
- scaffoldedFilePaths?: string[] | undefined;
837
- verificationReports?: {
838
- status: "passed" | "failed" | "blocked";
839
- schemaVersion: 1;
840
- runId: string;
841
- checks: {
842
- status: "passed" | "failed" | "blocked" | "skipped";
843
- id: string;
844
- durationMs?: number | undefined;
845
- command?: string[] | undefined;
846
- evidence?: string[] | undefined;
847
- errors?: string[] | undefined;
848
- }[];
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;
864
- }[] | undefined;
865
- reviewReportPath?: string | undefined;
866
- releaseVersion?: string | undefined;
867
- };
868
- changeLog: {
869
- at: string;
870
- summary: string;
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;
873
- details?: Record<string, unknown> | undefined;
874
- }[];
875
- }, {
876
- schemaVersion: 1;
877
- state: {
878
- status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
879
- schemaVersion: 1;
880
- runId: string;
881
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
882
- stageHistory: {
883
- stage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
884
- enteredAt: string;
885
- outcome?: "failed" | "blocked" | "pending" | "completed" | "advanced" | "revised" | undefined;
886
- exitedAt?: string | undefined;
887
- }[];
888
- revisions: {
889
- reason: string;
890
- fromStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
891
- toStage: "verification" | "review" | "discovery" | "intake" | "requirements" | "architecture" | "planning" | "scaffolding" | "implementation" | "release";
892
- revisedAt: string;
893
- }[];
894
- startedAt?: string | undefined;
895
- currentTaskId?: string | undefined;
896
- };
897
- context: {
898
- brief?: string | undefined;
899
- specification?: {
900
- scope: {
901
- in: string[];
902
- out: string[];
903
- };
904
- id: string;
905
- title: string;
906
- overview: string;
907
- problem: string;
908
- actors: {
909
- name: string;
910
- role: string;
911
- }[];
912
- functionalRequirements: {
913
- id: string;
914
- statement: string;
915
- }[];
916
- nonFunctionalRequirements: {
917
- id: string;
918
- statement: string;
919
- }[];
920
- acceptanceCriteria: {
921
- id: string;
922
- criterion: string;
923
- }[];
924
- edgeCases: string[];
925
- dependencies: string[];
926
- risks: {
927
- id: string;
928
- severity: "low" | "medium" | "high";
929
- description: string;
930
- }[];
931
- openQuestions: {
932
- id: string;
933
- question: string;
934
- resolved: boolean;
935
- }[];
936
- } | undefined;
937
- architectureDecisionIds?: string[] | undefined;
938
- plan?: {
939
- featureId: string;
940
- tasks: {
941
- verification: {
942
- command: string[];
943
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
944
- };
945
- id: string;
946
- acceptanceCriteria: string[];
947
- dependencies: string[];
948
- description: string;
949
- likelyFiles: string[];
950
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
951
- risk: "low" | "medium" | "high";
952
- }[];
953
- edges: {
954
- from: string;
955
- reason: string;
956
- to: string;
957
- }[];
958
- verticalSlices: string[][];
959
- } | undefined;
960
- scaffoldedFilePaths?: string[] | undefined;
961
- verificationReports?: {
962
- status: "passed" | "failed" | "blocked";
963
- schemaVersion: 1;
964
- runId: string;
965
- checks: {
966
- status: "passed" | "failed" | "blocked" | "skipped";
967
- id: string;
968
- durationMs?: number | undefined;
969
- command?: string[] | undefined;
970
- evidence?: string[] | undefined;
971
- errors?: string[] | undefined;
972
- }[];
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;
988
- }[] | undefined;
989
- reviewReportPath?: string | undefined;
990
- releaseVersion?: string | undefined;
991
- openDecisions?: {
992
- id: string;
993
- question: string;
994
- stage: string;
995
- raisedAt: string;
996
- }[] | undefined;
997
- };
998
- changeLog: {
999
- at: string;
1000
- summary: string;
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;
1003
- details?: Record<string, unknown> | undefined;
1004
- }[];
1005
- }>;
241
+ }, z.core.$strip>>;
242
+ }, z.core.$strip>;
1006
243
  export type ApplicationPersistence = z.infer<typeof ApplicationPersistenceSchema>;
1007
244
  export type ApplicationChangeLogEntry = ApplicationPersistence['changeLog'][number];
1008
245
  //# sourceMappingURL=application-persistence.d.ts.map