@ai-dev-orchestrator/artifacts 0.1.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 (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +53 -0
  3. package/dist/domain/agreement-artifacts/errors.d.ts +16 -0
  4. package/dist/domain/agreement-artifacts/errors.js +23 -0
  5. package/dist/domain/agreement-artifacts/index.d.ts +1 -0
  6. package/dist/domain/agreement-artifacts/index.js +1 -0
  7. package/dist/domain/artifact-system/artifact-content-schemas.d.ts +487 -0
  8. package/dist/domain/artifact-system/artifact-content-schemas.js +464 -0
  9. package/dist/domain/artifact-system/artifact-descriptors.d.ts +9 -0
  10. package/dist/domain/artifact-system/artifact-descriptors.js +165 -0
  11. package/dist/domain/artifact-system/constants.d.ts +7 -0
  12. package/dist/domain/artifact-system/constants.js +29 -0
  13. package/dist/domain/artifact-system/errors.d.ts +55 -0
  14. package/dist/domain/artifact-system/errors.js +75 -0
  15. package/dist/domain/artifact-system/index.d.ts +5 -0
  16. package/dist/domain/artifact-system/index.js +4 -0
  17. package/dist/index.d.ts +9 -0
  18. package/dist/index.js +11 -0
  19. package/dist/infrastructure/agreement-artifacts/agreement-gate.d.ts +27 -0
  20. package/dist/infrastructure/agreement-artifacts/agreement-gate.js +105 -0
  21. package/dist/infrastructure/agreement-artifacts/agreement-generator.d.ts +28 -0
  22. package/dist/infrastructure/agreement-artifacts/agreement-generator.js +89 -0
  23. package/dist/infrastructure/agreement-artifacts/agreement-validator.d.ts +7 -0
  24. package/dist/infrastructure/agreement-artifacts/agreement-validator.js +38 -0
  25. package/dist/infrastructure/agreement-artifacts/index.d.ts +3 -0
  26. package/dist/infrastructure/agreement-artifacts/index.js +3 -0
  27. package/dist/infrastructure/artifact-system/artifact-type-validator.d.ts +6 -0
  28. package/dist/infrastructure/artifact-system/artifact-type-validator.js +38 -0
  29. package/dist/infrastructure/artifact-system/checksum-engine.d.ts +4 -0
  30. package/dist/infrastructure/artifact-system/checksum-engine.js +9 -0
  31. package/dist/infrastructure/artifact-system/content-parser.d.ts +26 -0
  32. package/dist/infrastructure/artifact-system/content-parser.js +64 -0
  33. package/dist/infrastructure/artifact-system/default-ownership-registry.d.ts +14 -0
  34. package/dist/infrastructure/artifact-system/default-ownership-registry.js +65 -0
  35. package/dist/infrastructure/artifact-system/disk-reader.d.ts +7 -0
  36. package/dist/infrastructure/artifact-system/disk-reader.js +22 -0
  37. package/dist/infrastructure/artifact-system/disk-writer.d.ts +3 -0
  38. package/dist/infrastructure/artifact-system/disk-writer.js +21 -0
  39. package/dist/infrastructure/artifact-system/filesystem-artifact-store.d.ts +26 -0
  40. package/dist/infrastructure/artifact-system/filesystem-artifact-store.js +191 -0
  41. package/dist/infrastructure/artifact-system/index.d.ts +8 -0
  42. package/dist/infrastructure/artifact-system/index.js +7 -0
  43. package/dist/infrastructure/artifact-system/inventory-manager.d.ts +18 -0
  44. package/dist/infrastructure/artifact-system/inventory-manager.js +142 -0
  45. package/dist/infrastructure/artifact-system/version-manager.d.ts +12 -0
  46. package/dist/infrastructure/artifact-system/version-manager.js +42 -0
  47. package/dist/infrastructure/shared/hash.d.ts +2 -0
  48. package/dist/infrastructure/shared/hash.js +10 -0
  49. package/package.json +47 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AI Dev Orchestrator Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # @ai-dev-orchestrator/artifacts
2
+
3
+ Artifact system implementing typed, immutable, content-addressed artifacts with ownership enforcement and agreement gates. Provides both domain logic (schemas, descriptors, validation) and infrastructure (filesystem storage, checksum verification, inventory management).
4
+
5
+ ## Architecture Layer
6
+
7
+ **Domain** -- core artifact lifecycle including storage, ownership, type validation, versioning, and agreement workflows.
8
+
9
+ ## Workspace Dependencies
10
+
11
+ - `@ai-dev-orchestrator/ports`
12
+ - `@ai-dev-orchestrator/schemas`
13
+ - `@ai-dev-orchestrator/utils`
14
+
15
+ ## Structure
16
+
17
+ ```
18
+ src/
19
+ domain/
20
+ artifact-system/
21
+ agreement-artifacts/
22
+ infrastructure/
23
+ artifact-system/
24
+ agreement-artifacts/
25
+ shared/
26
+ ```
27
+
28
+ ## Key Exports
29
+
30
+ **Domain -- Artifact System**:
31
+
32
+ - `ARTIFACT_DESCRIPTORS`, `ARTIFACT_SCHEMA_MAP` -- artifact type registry and schema mapping
33
+ - Content schemas: `planContentSchema`, `implementationContentSchema`, `reviewContentSchema`, `testSuiteContentSchema`, `agreementContentSchema`, and 15 more
34
+ - `AGREEMENT_ARTIFACT_TYPES`, `REVIEW_ARTIFACT_TYPES`, `VERDICT_ARTIFACT_TYPES` -- artifact type groupings
35
+ - `validatePlanStructure` -- structural validation for plan artifacts
36
+ - Error classes: `ArtifactNotFoundError`, `OwnershipViolationError`, `ImmutabilityViolationError`, `ChecksumMismatchError`, `TypeValidationError`, `DiskWriteError`, `InventoryCorruptionError`
37
+
38
+ **Domain -- Agreement Artifacts**:
39
+
40
+ - `AgreementGateError`, `InvalidAgreementError`
41
+
42
+ **Infrastructure -- Artifact System**:
43
+
44
+ - `FilesystemArtifactStore` -- disk-backed artifact storage
45
+ - `DefaultOwnershipRegistry` -- ownership enforcement
46
+ - `DefaultArtifactTypeValidator` -- Zod-based type validation
47
+ - `VersionManager`, `InventoryManager` -- versioning and inventory tracking
48
+ - `computeChecksum`, `verifyChecksum` -- content-addressed integrity
49
+ - `parseFrontmatter`, `parseJson`, `parseYaml`, `parseArtifactContent`, `parseTypedArtifactContent`, `safeJsonParse` -- content parsers
50
+
51
+ **Infrastructure -- Agreement Artifacts**:
52
+
53
+ - `DefaultAgreementGate`, `AgreementGenerator`, `DefaultAgreementValidator`
@@ -0,0 +1,16 @@
1
+ import { NonRecoverableErrorBase } from '@ai-dev-orchestrator/ports';
2
+ import type { AgreementType } from '@ai-dev-orchestrator/schemas';
3
+ /** Thrown when an agreement artifact fails validation. */
4
+ export declare class InvalidAgreementError extends NonRecoverableErrorBase {
5
+ readonly agreementType: AgreementType;
6
+ readonly cause: string;
7
+ readonly code = "INVALID_AGREEMENT";
8
+ constructor(agreementType: AgreementType, cause: string);
9
+ }
10
+ /** Thrown when an agreement gate check fails. */
11
+ export declare class AgreementGateError extends NonRecoverableErrorBase {
12
+ readonly agreementType: AgreementType;
13
+ readonly cause: string;
14
+ readonly code = "AGREEMENT_GATE_ERROR";
15
+ constructor(agreementType: AgreementType, cause: string);
16
+ }
@@ -0,0 +1,23 @@
1
+ import { NonRecoverableErrorBase } from '@ai-dev-orchestrator/ports';
2
+ /** Thrown when an agreement artifact fails validation. */
3
+ export class InvalidAgreementError extends NonRecoverableErrorBase {
4
+ agreementType;
5
+ cause;
6
+ code = 'INVALID_AGREEMENT';
7
+ constructor(agreementType, cause) {
8
+ super(`Invalid agreement artifact "${agreementType}": ${cause}`);
9
+ this.agreementType = agreementType;
10
+ this.cause = cause;
11
+ }
12
+ }
13
+ /** Thrown when an agreement gate check fails. */
14
+ export class AgreementGateError extends NonRecoverableErrorBase {
15
+ agreementType;
16
+ cause;
17
+ code = 'AGREEMENT_GATE_ERROR';
18
+ constructor(agreementType, cause) {
19
+ super(`Agreement gate failed for "${agreementType}": ${cause}`);
20
+ this.agreementType = agreementType;
21
+ this.cause = cause;
22
+ }
23
+ }
@@ -0,0 +1 @@
1
+ export { AgreementGateError, InvalidAgreementError } from './errors';
@@ -0,0 +1 @@
1
+ export { AgreementGateError, InvalidAgreementError } from './errors';
@@ -0,0 +1,487 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const canonicalSpecificationContentSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ version: z.ZodNumber;
5
+ title: z.ZodString;
6
+ businessGoal: z.ZodString;
7
+ createdAt: z.ZodString;
8
+ updatedAt: z.ZodString;
9
+ previousVersion: z.ZodOptional<z.ZodString>;
10
+ sources: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
11
+ analysis: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
12
+ feasibility: z.ZodOptional<z.ZodObject<{
13
+ feasible: z.ZodBoolean;
14
+ reason: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$loose>;
17
+ export declare const planContentSchema: z.ZodObject<{
18
+ version: z.ZodNumber;
19
+ specificationRef: z.ZodObject<{
20
+ type: z.ZodOptional<z.ZodString>;
21
+ name: z.ZodOptional<z.ZodString>;
22
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
23
+ }, z.core.$loose>;
24
+ previousVersion: z.ZodOptional<z.ZodString>;
25
+ createdAt: z.ZodString;
26
+ summary: z.ZodString;
27
+ tasks: z.ZodArray<z.ZodObject<{
28
+ taskId: z.ZodString;
29
+ description: z.ZodString;
30
+ files: z.ZodArray<z.ZodString>;
31
+ dependencies: z.ZodArray<z.ZodString>;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$loose>;
34
+ export declare const reviewContentSchema: z.ZodObject<{
35
+ version: z.ZodNumber;
36
+ approved: z.ZodBoolean;
37
+ summary: z.ZodString;
38
+ findings: z.ZodArray<z.ZodObject<{
39
+ id: z.ZodString;
40
+ category: z.ZodString;
41
+ severity: z.ZodString;
42
+ description: z.ZodString;
43
+ file: z.ZodOptional<z.ZodString>;
44
+ line: z.ZodOptional<z.ZodNumber>;
45
+ suggestion: z.ZodOptional<z.ZodString>;
46
+ evidence: z.ZodOptional<z.ZodString>;
47
+ attribution: z.ZodOptional<z.ZodEnum<{
48
+ introduced: "introduced";
49
+ worsened: "worsened";
50
+ propagated: "propagated";
51
+ "pre-existing": "pre-existing";
52
+ }>>;
53
+ }, z.core.$strip>>;
54
+ reviewType: z.ZodOptional<z.ZodEnum<{
55
+ intake_requirements: "intake_requirements";
56
+ canonical_specification: "canonical_specification";
57
+ clarification_questions: "clarification_questions";
58
+ clarification_answers: "clarification_answers";
59
+ plan: "plan";
60
+ plan_review: "plan_review";
61
+ test_plan: "test_plan";
62
+ implementation: "implementation";
63
+ static_review: "static_review";
64
+ security_review: "security_review";
65
+ performance_review: "performance_review";
66
+ adversarial_review: "adversarial_review";
67
+ design_review: "design_review";
68
+ docs_review: "docs_review";
69
+ ux_review: "ux_review";
70
+ review_report: "review_report";
71
+ remediation_plan: "remediation_plan";
72
+ verification: "verification";
73
+ judge_decision: "judge_decision";
74
+ planning_agreement: "planning_agreement";
75
+ implementation_agreement: "implementation_agreement";
76
+ verification_agreement: "verification_agreement";
77
+ release_summary: "release_summary";
78
+ release_agreement: "release_agreement";
79
+ escalation_context: "escalation_context";
80
+ run_manifest: "run_manifest";
81
+ codebase_context: "codebase_context";
82
+ test_suite: "test_suite";
83
+ acceptance_validation: "acceptance_validation";
84
+ review_findings: "review_findings";
85
+ task_breakdown: "task_breakdown";
86
+ decomposition_review: "decomposition_review";
87
+ task_specifications: "task_specifications";
88
+ pr_diff_context: "pr_diff_context";
89
+ }>>;
90
+ reviewedArtifactRef: z.ZodOptional<z.ZodObject<{
91
+ type: z.ZodOptional<z.ZodString>;
92
+ name: z.ZodOptional<z.ZodString>;
93
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
94
+ }, z.core.$loose>>;
95
+ previousVersion: z.ZodOptional<z.ZodString>;
96
+ role: z.ZodOptional<z.ZodString>;
97
+ createdAt: z.ZodString;
98
+ }, z.core.$loose>;
99
+ export declare const reviewReportContentSchema: z.ZodObject<{
100
+ version: z.ZodNumber;
101
+ approved: z.ZodBoolean;
102
+ summary: z.ZodString;
103
+ findings: z.ZodArray<z.ZodObject<{
104
+ id: z.ZodString;
105
+ category: z.ZodEnum<{
106
+ correctness: "correctness";
107
+ maintainability: "maintainability";
108
+ security: "security";
109
+ performance: "performance";
110
+ design: "design";
111
+ style: "style";
112
+ }>;
113
+ severity: z.ZodEnum<{
114
+ critical: "critical";
115
+ major: "major";
116
+ minor: "minor";
117
+ }>;
118
+ description: z.ZodString;
119
+ sources: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
+ file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
+ suggestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ evidence: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ attribution: z.ZodOptional<z.ZodEnum<{
125
+ introduced: "introduced";
126
+ worsened: "worsened";
127
+ propagated: "propagated";
128
+ "pre-existing": "pre-existing";
129
+ }>>;
130
+ }, z.core.$strip>>;
131
+ verdict: z.ZodEnum<{
132
+ approve: "approve";
133
+ request_changes: "request_changes";
134
+ }>;
135
+ reviewSummary: z.ZodOptional<z.ZodObject<{
136
+ totalFindings: z.ZodOptional<z.ZodNumber>;
137
+ critical: z.ZodOptional<z.ZodNumber>;
138
+ major: z.ZodOptional<z.ZodNumber>;
139
+ minor: z.ZodOptional<z.ZodNumber>;
140
+ }, z.core.$strip>>;
141
+ createdAt: z.ZodString;
142
+ }, z.core.$loose>;
143
+ export declare const testPlanContentSchema: z.ZodObject<{
144
+ version: z.ZodNumber;
145
+ specificationRef: z.ZodObject<{
146
+ type: z.ZodOptional<z.ZodString>;
147
+ name: z.ZodOptional<z.ZodString>;
148
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
149
+ }, z.core.$loose>;
150
+ planRef: z.ZodObject<{
151
+ type: z.ZodOptional<z.ZodString>;
152
+ name: z.ZodOptional<z.ZodString>;
153
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
154
+ }, z.core.$loose>;
155
+ summary: z.ZodOptional<z.ZodString>;
156
+ previousVersion: z.ZodOptional<z.ZodString>;
157
+ createdAt: z.ZodString;
158
+ }, z.core.$loose>;
159
+ export declare const implementationContentSchema: z.ZodObject<{
160
+ version: z.ZodNumber;
161
+ planRef: z.ZodObject<{
162
+ type: z.ZodOptional<z.ZodString>;
163
+ name: z.ZodOptional<z.ZodString>;
164
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
165
+ }, z.core.$loose>;
166
+ testPlanRef: z.ZodObject<{
167
+ type: z.ZodOptional<z.ZodString>;
168
+ name: z.ZodOptional<z.ZodString>;
169
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
170
+ }, z.core.$loose>;
171
+ summary: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
172
+ filesCreated: z.ZodOptional<z.ZodNumber>;
173
+ filesModified: z.ZodOptional<z.ZodNumber>;
174
+ filesDeleted: z.ZodOptional<z.ZodNumber>;
175
+ totalTestsWritten: z.ZodOptional<z.ZodNumber>;
176
+ totalTestsPassed: z.ZodOptional<z.ZodNumber>;
177
+ totalTestsFailed: z.ZodOptional<z.ZodNumber>;
178
+ deviationsFromPlan: z.ZodOptional<z.ZodNumber>;
179
+ }, z.core.$loose>]>>;
180
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>;
181
+ previousVersion: z.ZodOptional<z.ZodString>;
182
+ createdAt: z.ZodString;
183
+ }, z.core.$loose>;
184
+ export declare const verificationContentSchema: z.ZodObject<{
185
+ version: z.ZodNumber;
186
+ passed: z.ZodBoolean;
187
+ summary: z.ZodString;
188
+ failures: z.ZodArray<z.ZodObject<{
189
+ type: z.ZodEnum<{
190
+ test: "test";
191
+ lint: "lint";
192
+ type_check: "type_check";
193
+ build: "build";
194
+ other: "other";
195
+ }>;
196
+ fixable: z.ZodBoolean;
197
+ description: z.ZodString;
198
+ file: z.ZodOptional<z.ZodString>;
199
+ }, z.core.$strip>>;
200
+ implementationRef: z.ZodOptional<z.ZodObject<{
201
+ type: z.ZodOptional<z.ZodString>;
202
+ name: z.ZodOptional<z.ZodString>;
203
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
204
+ }, z.core.$loose>>;
205
+ testPlanRef: z.ZodOptional<z.ZodObject<{
206
+ type: z.ZodOptional<z.ZodString>;
207
+ name: z.ZodOptional<z.ZodString>;
208
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
209
+ }, z.core.$loose>>;
210
+ specificationRef: z.ZodOptional<z.ZodObject<{
211
+ type: z.ZodOptional<z.ZodString>;
212
+ name: z.ZodOptional<z.ZodString>;
213
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
214
+ }, z.core.$loose>>;
215
+ previousVersion: z.ZodOptional<z.ZodString>;
216
+ createdAt: z.ZodString;
217
+ }, z.core.$loose>;
218
+ export declare const agreementContentSchema: z.ZodObject<{
219
+ version: z.ZodNumber;
220
+ agreementType: z.ZodEnum<{
221
+ planning_agreement: "planning_agreement";
222
+ implementation_agreement: "implementation_agreement";
223
+ verification_agreement: "verification_agreement";
224
+ release_agreement: "release_agreement";
225
+ }>;
226
+ runId: z.ZodString;
227
+ stageId: z.ZodString;
228
+ createdAt: z.ZodString;
229
+ approvalStatus: z.ZodEnum<{
230
+ approved: "approved";
231
+ conditionally_approved: "conditionally_approved";
232
+ rejected: "rejected";
233
+ }>;
234
+ approvalType: z.ZodEnum<{
235
+ human: "human";
236
+ automated: "automated";
237
+ judge: "judge";
238
+ }>;
239
+ }, z.core.$loose>;
240
+ export declare const judgeDecisionContentSchema: z.ZodObject<{
241
+ version: z.ZodNumber;
242
+ approved: z.ZodBoolean;
243
+ rationale: z.ZodString;
244
+ directives: z.ZodArray<z.ZodString>;
245
+ reviewArtifactsConsidered: z.ZodArray<z.ZodString>;
246
+ planLevelIssue: z.ZodOptional<z.ZodBoolean>;
247
+ createdAt: z.ZodString;
248
+ }, z.core.$loose>;
249
+ export declare const escalationContextContentSchema: z.ZodObject<{
250
+ version: z.ZodNumber;
251
+ runId: z.ZodString;
252
+ escalationTrigger: z.ZodEnum<{
253
+ iteration_limit_exceeded: "iteration_limit_exceeded";
254
+ quality_gate_failed: "quality_gate_failed";
255
+ unresolvable_conflict: "unresolvable_conflict";
256
+ human_requested: "human_requested";
257
+ token_budget_exceeded: "token_budget_exceeded";
258
+ retry_limit_exceeded: "retry_limit_exceeded";
259
+ confidence_too_low: "confidence_too_low";
260
+ provider_failure: "provider_failure";
261
+ timeout: "timeout";
262
+ unrecoverable_error: "unrecoverable_error";
263
+ }>;
264
+ stateAtEscalation: z.ZodString;
265
+ createdAt: z.ZodString;
266
+ }, z.core.$loose>;
267
+ export declare const runManifestContentSchema: z.ZodObject<{
268
+ runId: z.ZodString;
269
+ version: z.ZodString;
270
+ repository: z.ZodObject<{}, z.core.$loose>;
271
+ workflow: z.ZodObject<{}, z.core.$loose>;
272
+ timing: z.ZodObject<{}, z.core.$loose>;
273
+ status: z.ZodEnum<{
274
+ completed: "completed";
275
+ aborted: "aborted";
276
+ failed: "failed";
277
+ }>;
278
+ finalState: z.ZodString;
279
+ abortReason: z.ZodOptional<z.ZodString>;
280
+ }, z.core.$loose>;
281
+ export declare const intakeAnalysisContentSchema: z.ZodObject<{
282
+ completenessScore: z.ZodNumber;
283
+ ambiguityCount: z.ZodOptional<z.ZodNumber>;
284
+ riskCount: z.ZodOptional<z.ZodNumber>;
285
+ unvalidatedAssumptionCount: z.ZodOptional<z.ZodNumber>;
286
+ readinessVerdict: z.ZodEnum<{
287
+ Ready: "Ready";
288
+ NotReady: "NotReady";
289
+ }>;
290
+ analystNotes: z.ZodOptional<z.ZodString>;
291
+ }, z.core.$loose>;
292
+ export declare const clarificationAnswersContentSchema: z.ZodObject<{
293
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
294
+ questionId: z.ZodOptional<z.ZodString>;
295
+ question: z.ZodOptional<z.ZodString>;
296
+ answer: z.ZodString;
297
+ }, z.core.$strip>>>;
298
+ }, z.core.$loose>;
299
+ export declare const releaseSummaryContentSchema: z.ZodObject<{
300
+ version: z.ZodNumber;
301
+ commitMessage: z.ZodString;
302
+ prDescription: z.ZodString;
303
+ humanSummary: z.ZodString;
304
+ createdAt: z.ZodString;
305
+ }, z.core.$loose>;
306
+ export declare const reviewFindingsContentSchema: z.ZodObject<{
307
+ version: z.ZodNumber;
308
+ title: z.ZodOptional<z.ZodString>;
309
+ summary: z.ZodOptional<z.ZodString>;
310
+ acceptanceCriteria: z.ZodOptional<z.ZodObject<{
311
+ addressed: z.ZodOptional<z.ZodArray<z.ZodObject<{
312
+ criterion: z.ZodString;
313
+ evidence: z.ZodOptional<z.ZodString>;
314
+ }, z.core.$strip>>>;
315
+ partiallyAddressed: z.ZodOptional<z.ZodArray<z.ZodObject<{
316
+ criterion: z.ZodString;
317
+ note: z.ZodOptional<z.ZodString>;
318
+ }, z.core.$strip>>>;
319
+ notAddressed: z.ZodOptional<z.ZodArray<z.ZodObject<{
320
+ criterion: z.ZodString;
321
+ note: z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strip>>>;
323
+ }, z.core.$strip>>;
324
+ untrackedChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
325
+ file: z.ZodString;
326
+ description: z.ZodString;
327
+ }, z.core.$strip>>>;
328
+ risks: z.ZodOptional<z.ZodArray<z.ZodString>>;
329
+ findings: z.ZodArray<z.ZodObject<{
330
+ description: z.ZodString;
331
+ file: z.ZodOptional<z.ZodString>;
332
+ actionability: z.ZodOptional<z.ZodEnum<{
333
+ actionable: "actionable";
334
+ advisory: "advisory";
335
+ }>>;
336
+ suggestion: z.ZodOptional<z.ZodString>;
337
+ evidence: z.ZodOptional<z.ZodString>;
338
+ }, z.core.$loose>>;
339
+ createdAt: z.ZodString;
340
+ }, z.core.$loose>;
341
+ export declare const intakeRequirementsContentSchema: z.ZodObject<{
342
+ title: z.ZodOptional<z.ZodString>;
343
+ description: z.ZodOptional<z.ZodString>;
344
+ rawFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
345
+ sourceMetadata: z.ZodOptional<z.ZodObject<{
346
+ fetchedAt: z.ZodString;
347
+ checksum: z.ZodString;
348
+ }, z.core.$strip>>;
349
+ }, z.core.$loose>;
350
+ export declare const codebaseContextContentSchema: z.ZodObject<{
351
+ version: z.ZodNumber;
352
+ specificationRef: z.ZodOptional<z.ZodObject<{
353
+ type: z.ZodOptional<z.ZodString>;
354
+ name: z.ZodOptional<z.ZodString>;
355
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
356
+ }, z.core.$loose>>;
357
+ projectStructure: z.ZodString;
358
+ conventions: z.ZodArray<z.ZodString>;
359
+ techStack: z.ZodArray<z.ZodString>;
360
+ affectedFiles: z.ZodArray<z.ZodObject<{
361
+ path: z.ZodString;
362
+ reason: z.ZodString;
363
+ signatures: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
+ }, z.core.$strip>>;
365
+ existingPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
366
+ createdAt: z.ZodString;
367
+ }, z.core.$loose>;
368
+ export declare const testSuiteContentSchema: z.ZodObject<{
369
+ version: z.ZodNumber;
370
+ planRef: z.ZodOptional<z.ZodObject<{
371
+ type: z.ZodOptional<z.ZodString>;
372
+ name: z.ZodOptional<z.ZodString>;
373
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
374
+ }, z.core.$loose>>;
375
+ implementationRef: z.ZodOptional<z.ZodObject<{
376
+ type: z.ZodOptional<z.ZodString>;
377
+ name: z.ZodOptional<z.ZodString>;
378
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
379
+ }, z.core.$loose>>;
380
+ testsWritten: z.ZodArray<z.ZodObject<{
381
+ file: z.ZodString;
382
+ description: z.ZodString;
383
+ type: z.ZodOptional<z.ZodEnum<{
384
+ other: "other";
385
+ unit: "unit";
386
+ integration: "integration";
387
+ e2e: "e2e";
388
+ }>>;
389
+ }, z.core.$strip>>;
390
+ coverageTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
391
+ edgeCases: z.ZodOptional<z.ZodArray<z.ZodString>>;
392
+ createdAt: z.ZodString;
393
+ }, z.core.$loose>;
394
+ export declare const remediationPlanContentSchema: z.ZodObject<{
395
+ version: z.ZodNumber;
396
+ summary: z.ZodString;
397
+ planLevelIssue: z.ZodBoolean;
398
+ needsHuman: z.ZodBoolean;
399
+ actionItems: z.ZodArray<z.ZodObject<{
400
+ id: z.ZodString;
401
+ findingRef: z.ZodString;
402
+ action: z.ZodEnum<{
403
+ fix: "fix";
404
+ defer: "defer";
405
+ dismiss: "dismiss";
406
+ escalate: "escalate";
407
+ }>;
408
+ description: z.ZodString;
409
+ priority: z.ZodEnum<{
410
+ critical: "critical";
411
+ high: "high";
412
+ medium: "medium";
413
+ low: "low";
414
+ }>;
415
+ file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ }, z.core.$strip>>;
417
+ dismissedFindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
418
+ findingId: z.ZodString;
419
+ reason: z.ZodString;
420
+ }, z.core.$strip>>>;
421
+ createdAt: z.ZodString;
422
+ }, z.core.$loose>;
423
+ export declare const acceptanceValidationContentSchema: z.ZodObject<{
424
+ version: z.ZodNumber;
425
+ passed: z.ZodBoolean;
426
+ summary: z.ZodString;
427
+ criteriaResults: z.ZodArray<z.ZodObject<{
428
+ requirementId: z.ZodString;
429
+ description: z.ZodString;
430
+ status: z.ZodEnum<{
431
+ passed: "passed";
432
+ failed: "failed";
433
+ not_covered: "not_covered";
434
+ }>;
435
+ evidence: z.ZodOptional<z.ZodString>;
436
+ }, z.core.$strip>>;
437
+ uncoveredCriteria: z.ZodOptional<z.ZodArray<z.ZodString>>;
438
+ specificationRef: z.ZodOptional<z.ZodObject<{
439
+ type: z.ZodOptional<z.ZodString>;
440
+ name: z.ZodOptional<z.ZodString>;
441
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
442
+ }, z.core.$loose>>;
443
+ verificationRef: z.ZodOptional<z.ZodObject<{
444
+ type: z.ZodOptional<z.ZodString>;
445
+ name: z.ZodOptional<z.ZodString>;
446
+ version: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
447
+ }, z.core.$loose>>;
448
+ createdAt: z.ZodString;
449
+ }, z.core.$loose>;
450
+ export declare const taskBreakdownContentSchema: z.ZodObject<{
451
+ version: z.ZodNumber;
452
+ tasks: z.ZodArray<z.ZodUnknown>;
453
+ }, z.core.$loose>;
454
+ export declare const decompositionReviewContentSchema: z.ZodObject<{
455
+ version: z.ZodNumber;
456
+ approved: z.ZodBoolean;
457
+ }, z.core.$loose>;
458
+ export declare const taskSpecificationsContentSchema: z.ZodObject<{
459
+ version: z.ZodNumber;
460
+ specifications: z.ZodArray<z.ZodUnknown>;
461
+ }, z.core.$loose>;
462
+ export declare const prDiffContextContentSchema: z.ZodObject<{
463
+ version: z.ZodNumber;
464
+ prNumber: z.ZodOptional<z.ZodNumber>;
465
+ baseRef: z.ZodString;
466
+ headRef: z.ZodString;
467
+ repositoryUrl: z.ZodOptional<z.ZodString>;
468
+ diff: z.ZodString;
469
+ changedFiles: z.ZodArray<z.ZodObject<{
470
+ path: z.ZodString;
471
+ status: z.ZodEnum<{
472
+ added: "added";
473
+ modified: "modified";
474
+ deleted: "deleted";
475
+ renamed: "renamed";
476
+ }>;
477
+ additions: z.ZodOptional<z.ZodNumber>;
478
+ deletions: z.ZodOptional<z.ZodNumber>;
479
+ }, z.core.$strip>>;
480
+ createdAt: z.ZodString;
481
+ }, z.core.$loose>;
482
+ export declare function validatePlanStructure(content: {
483
+ tasks?: ReadonlyArray<{
484
+ readonly taskId: string;
485
+ readonly dependencies: readonly string[];
486
+ }>;
487
+ }): readonly string[];