@agentic-sdlc-kit/contracts 0.8.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/agent/events.d.ts +18 -18
  2. package/dist/agent/execution.d.ts +22 -22
  3. package/dist/agent-tools/index.d.ts +85 -0
  4. package/dist/agent-tools/index.d.ts.map +1 -0
  5. package/dist/agent-tools/index.js +60 -0
  6. package/dist/agent-tools/index.js.map +1 -0
  7. package/dist/application/application-context.d.ts +194 -60
  8. package/dist/application/application-context.d.ts.map +1 -1
  9. package/dist/application/application-persistence.d.ts +276 -114
  10. package/dist/application/application-persistence.d.ts.map +1 -1
  11. package/dist/application/application-state.d.ts +18 -18
  12. package/dist/architecture/api-contract.d.ts +18 -18
  13. package/dist/architecture/architecture-options.d.ts +6 -6
  14. package/dist/architecture/component-map.d.ts +6 -6
  15. package/dist/architecture/data-model.d.ts +6 -6
  16. package/dist/architecture/operational-design.d.ts +6 -6
  17. package/dist/benchmark/bench.d.ts +330 -0
  18. package/dist/benchmark/bench.d.ts.map +1 -0
  19. package/dist/benchmark/bench.js +69 -0
  20. package/dist/benchmark/bench.js.map +1 -0
  21. package/dist/benchmark/index.d.ts +2 -0
  22. package/dist/benchmark/index.d.ts.map +1 -0
  23. package/dist/benchmark/index.js +2 -0
  24. package/dist/benchmark/index.js.map +1 -0
  25. package/dist/constitution/cli-output.d.ts +706 -0
  26. package/dist/constitution/cli-output.d.ts.map +1 -0
  27. package/dist/constitution/cli-output.js +37 -0
  28. package/dist/constitution/cli-output.js.map +1 -0
  29. package/dist/constitution/index.d.ts +4 -0
  30. package/dist/constitution/index.d.ts.map +1 -0
  31. package/dist/constitution/index.js +4 -0
  32. package/dist/constitution/index.js.map +1 -0
  33. package/dist/constitution/result.d.ts +112 -0
  34. package/dist/constitution/result.d.ts.map +1 -0
  35. package/dist/constitution/result.js +67 -0
  36. package/dist/constitution/result.js.map +1 -0
  37. package/dist/constitution/rule.d.ts +488 -0
  38. package/dist/constitution/rule.d.ts.map +1 -0
  39. package/dist/constitution/rule.js +164 -0
  40. package/dist/constitution/rule.js.map +1 -0
  41. package/dist/context/index.d.ts +2 -0
  42. package/dist/context/index.d.ts.map +1 -0
  43. package/dist/context/index.js +2 -0
  44. package/dist/context/index.js.map +1 -0
  45. package/dist/context/project-context.d.ts +275 -0
  46. package/dist/context/project-context.d.ts.map +1 -0
  47. package/dist/context/project-context.js +56 -0
  48. package/dist/context/project-context.js.map +1 -0
  49. package/dist/evaluation/benchmark.d.ts +12 -12
  50. package/dist/evaluation/metrics.d.ts +4 -4
  51. package/dist/evolution/improvement-hypothesis.d.ts +10 -10
  52. package/dist/execution/execution-profile.d.ts +130 -0
  53. package/dist/execution/execution-profile.d.ts.map +1 -0
  54. package/dist/execution/execution-profile.js +44 -0
  55. package/dist/execution/execution-profile.js.map +1 -0
  56. package/dist/execution/index.d.ts +2 -0
  57. package/dist/execution/index.d.ts.map +1 -0
  58. package/dist/execution/index.js +2 -0
  59. package/dist/execution/index.js.map +1 -0
  60. package/dist/index.d.ts +6 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +11 -0
  63. package/dist/index.js.map +1 -1
  64. package/dist/installer/install-plan.d.ts +16 -16
  65. package/dist/installer/ownership-manifest.d.ts +10 -2
  66. package/dist/installer/ownership-manifest.d.ts.map +1 -1
  67. package/dist/installer/ownership-manifest.js +4 -0
  68. package/dist/installer/ownership-manifest.js.map +1 -1
  69. package/dist/installer/package-manifest.d.ts +6 -6
  70. package/dist/learning/engineering-lesson.d.ts +14 -14
  71. package/dist/learning/engineering-memory.d.ts +20 -2
  72. package/dist/learning/engineering-memory.d.ts.map +1 -1
  73. package/dist/learning/engineering-memory.js +2 -0
  74. package/dist/learning/engineering-memory.js.map +1 -1
  75. package/dist/learning/experience-episode.d.ts +14 -14
  76. package/dist/learning/experience.d.ts +8 -8
  77. package/dist/learning/index.d.ts +1 -0
  78. package/dist/learning/index.d.ts.map +1 -1
  79. package/dist/learning/index.js +1 -0
  80. package/dist/learning/index.js.map +1 -1
  81. package/dist/learning/learning-event.d.ts +78 -0
  82. package/dist/learning/learning-event.d.ts.map +1 -0
  83. package/dist/learning/learning-event.js +37 -0
  84. package/dist/learning/learning-event.js.map +1 -0
  85. package/dist/learning/memory.d.ts +2 -2
  86. package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
  87. package/dist/maintenance/bug-report.d.ts +6 -6
  88. package/dist/maintenance/refactor-contract.d.ts +8 -8
  89. package/dist/maintenance/refactor-workflow.d.ts +4 -4
  90. package/dist/observer/event-schema.d.ts +6 -6
  91. package/dist/observer/journal.d.ts +10 -10
  92. package/dist/observer/journal.d.ts.map +1 -1
  93. package/dist/observer/journal.js +7 -0
  94. package/dist/observer/journal.js.map +1 -1
  95. package/dist/observer/run-summary.d.ts +12 -12
  96. package/dist/onboard/index.d.ts +2 -0
  97. package/dist/onboard/index.d.ts.map +1 -0
  98. package/dist/onboard/index.js +2 -0
  99. package/dist/onboard/index.js.map +1 -0
  100. package/dist/onboard/onboard-report.d.ts +349 -0
  101. package/dist/onboard/onboard-report.d.ts.map +1 -0
  102. package/dist/onboard/onboard-report.js +96 -0
  103. package/dist/onboard/onboard-report.js.map +1 -0
  104. package/dist/patterns/pattern.d.ts +2 -2
  105. package/dist/planning/task.d.ts +36 -36
  106. package/dist/policy/policy.d.ts +8 -8
  107. package/dist/product/product-brief.d.ts +6 -6
  108. package/dist/product/requirements.d.ts +48 -48
  109. package/dist/project/project-profile.d.ts +113 -2
  110. package/dist/project/project-profile.d.ts.map +1 -1
  111. package/dist/project/project-profile.js +17 -2
  112. package/dist/project/project-profile.js.map +1 -1
  113. package/dist/routing/index.d.ts +1 -0
  114. package/dist/routing/index.d.ts.map +1 -1
  115. package/dist/routing/index.js +1 -0
  116. package/dist/routing/index.js.map +1 -1
  117. package/dist/routing/measured-routing.d.ts +41 -0
  118. package/dist/routing/measured-routing.d.ts.map +1 -0
  119. package/dist/routing/measured-routing.js +24 -0
  120. package/dist/routing/measured-routing.js.map +1 -0
  121. package/dist/routing/routing-policy.d.ts +20 -20
  122. package/dist/routing/routing-request.d.ts +2 -2
  123. package/dist/runtime-guard/action-classification.d.ts +2 -2
  124. package/dist/runtime-guard/audit-event.d.ts +8 -8
  125. package/dist/runtime-guard/policy-schema.d.ts +4 -4
  126. package/dist/scaffolding/scaffold-contract.d.ts +59 -59
  127. package/dist/scaffolding/template-manifest.d.ts +15 -15
  128. package/dist/secret-guard/detection-rule.d.ts +5 -5
  129. package/dist/secret-guard/detection-rule.d.ts.map +1 -1
  130. package/dist/secret-guard/detection-rule.js +44 -0
  131. package/dist/secret-guard/detection-rule.js.map +1 -1
  132. package/dist/secret-guard/finding.d.ts +12 -12
  133. package/dist/secret-guard/finding.d.ts.map +1 -1
  134. package/dist/secret-guard/finding.js +2 -0
  135. package/dist/secret-guard/finding.js.map +1 -1
  136. package/dist/secret-guard/scanner-failure.d.ts +4 -4
  137. package/dist/specification/specification.d.ts +8 -8
  138. package/dist/stack-pack/manifest.d.ts +33 -4
  139. package/dist/stack-pack/manifest.d.ts.map +1 -1
  140. package/dist/stack-pack/manifest.js +22 -2
  141. package/dist/stack-pack/manifest.js.map +1 -1
  142. package/dist/verification/index.d.ts +1 -0
  143. package/dist/verification/index.d.ts.map +1 -1
  144. package/dist/verification/index.js +1 -0
  145. package/dist/verification/index.js.map +1 -1
  146. package/dist/verification/report.d.ts +118 -12
  147. package/dist/verification/report.d.ts.map +1 -1
  148. package/dist/verification/report.js +4 -0
  149. package/dist/verification/report.js.map +1 -1
  150. package/dist/verification/strength.d.ts +270 -0
  151. package/dist/verification/strength.d.ts.map +1 -0
  152. package/dist/verification/strength.js +168 -0
  153. package/dist/verification/strength.js.map +1 -0
  154. package/dist/workflow/next-action.d.ts +67 -6
  155. package/dist/workflow/next-action.d.ts.map +1 -1
  156. package/dist/workflow/next-action.js +23 -0
  157. package/dist/workflow/next-action.js.map +1 -1
  158. package/dist/workflow/workflow.d.ts +9 -8
  159. package/dist/workflow/workflow.d.ts.map +1 -1
  160. package/package.json +6 -1
  161. package/src/agent-tools/index.ts +81 -0
  162. package/src/benchmark/bench.ts +83 -0
  163. package/src/benchmark/index.ts +1 -0
  164. package/src/constitution/cli-output.ts +44 -0
  165. package/src/constitution/index.ts +3 -0
  166. package/src/constitution/result.test.ts +69 -0
  167. package/src/constitution/result.ts +74 -0
  168. package/src/constitution/rule-origin.test.ts +36 -0
  169. package/src/constitution/rule-path.test.ts +15 -0
  170. package/src/constitution/rule.test.ts +209 -0
  171. package/src/constitution/rule.ts +192 -0
  172. package/src/context/index.ts +1 -0
  173. package/src/context/project-context.ts +63 -0
  174. package/src/execution/execution-profile.ts +50 -0
  175. package/src/execution/index.ts +1 -0
  176. package/src/index.ts +16 -0
  177. package/src/installer/ownership-manifest.ts +4 -0
  178. package/src/learning/engineering-memory.ts +2 -0
  179. package/src/learning/index.ts +1 -0
  180. package/src/learning/learning-event.ts +42 -0
  181. package/src/observer/journal.ts +7 -0
  182. package/src/onboard/index.ts +1 -0
  183. package/src/onboard/onboard-report.test.ts +92 -0
  184. package/src/onboard/onboard-report.ts +115 -0
  185. package/src/project/project-profile.ts +19 -2
  186. package/src/routing/index.ts +1 -0
  187. package/src/routing/measured-routing.ts +27 -0
  188. package/src/secret-guard/detection-rule.ts +53 -0
  189. package/src/secret-guard/finding.ts +2 -0
  190. package/src/stack-pack/manifest.test.ts +45 -0
  191. package/src/stack-pack/manifest.ts +24 -2
  192. package/src/verification/index.ts +1 -0
  193. package/src/verification/report.ts +4 -0
  194. package/src/verification/strength.test.ts +160 -0
  195. package/src/verification/strength.ts +189 -0
  196. package/src/workflow/next-action.test.ts +25 -0
  197. package/src/workflow/next-action.ts +25 -0
  198. package/src/workflow/workflow.ts +1 -0
@@ -8,39 +8,39 @@ export declare const PolicyDecisionSchema: z.ZodDiscriminatedUnion<"verdict", [z
8
8
  verdict: z.ZodLiteral<"allow">;
9
9
  reason: z.ZodString;
10
10
  }, "strip", z.ZodTypeAny, {
11
+ action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
11
12
  reason: string;
12
13
  verdict: "allow";
13
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
14
14
  }, {
15
+ action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
15
16
  reason: string;
16
17
  verdict: "allow";
17
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
18
18
  }>, z.ZodObject<{
19
19
  action: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
20
20
  verdict: z.ZodLiteral<"deny">;
21
21
  reason: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
+ action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
23
24
  reason: string;
24
25
  verdict: "deny";
25
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
26
26
  }, {
27
+ action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
27
28
  reason: string;
28
29
  verdict: "deny";
29
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
30
30
  }>, z.ZodObject<{
31
31
  action: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
32
32
  verdict: z.ZodLiteral<"require-approval">;
33
33
  reason: z.ZodString;
34
34
  approver: z.ZodString;
35
35
  }, "strip", z.ZodTypeAny, {
36
+ action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
36
37
  reason: string;
37
38
  verdict: "require-approval";
38
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
39
39
  approver: string;
40
40
  }, {
41
+ action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
41
42
  reason: string;
42
43
  verdict: "require-approval";
43
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
44
44
  approver: string;
45
45
  }>]>;
46
46
  export type PolicyDecision = z.infer<typeof PolicyDecisionSchema>;
@@ -50,15 +50,15 @@ export declare const ApprovalSchema: z.ZodObject<{
50
50
  grantedAt: z.ZodString;
51
51
  rationale: z.ZodString;
52
52
  }, "strip", z.ZodTypeAny, {
53
+ rationale: string;
53
54
  action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
54
55
  approver: string;
55
56
  grantedAt: string;
56
- rationale: string;
57
57
  }, {
58
+ rationale: string;
58
59
  action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
59
60
  approver: string;
60
61
  grantedAt: string;
61
- rationale: string;
62
62
  }>;
63
63
  export type Approval = z.infer<typeof ApprovalSchema>;
64
64
  /**
@@ -36,19 +36,19 @@ export declare const ProductBriefSchema: z.ZodObject<{
36
36
  question: z.ZodString;
37
37
  blocking: z.ZodBoolean;
38
38
  }, "strip", z.ZodTypeAny, {
39
+ blocking: boolean;
39
40
  id: string;
40
41
  question: string;
41
- blocking: boolean;
42
42
  }, {
43
+ blocking: boolean;
43
44
  id: string;
44
45
  question: string;
45
- blocking: boolean;
46
46
  }>, "many">>;
47
47
  outOfScope: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
48
48
  }, "strict", z.ZodTypeAny, {
49
49
  id: string;
50
- description: string;
51
50
  title: string;
51
+ description: string;
52
52
  problemStatement: string;
53
53
  targetUsers: {
54
54
  name: string;
@@ -62,15 +62,15 @@ export declare const ProductBriefSchema: z.ZodObject<{
62
62
  requiresApproval: boolean;
63
63
  }[];
64
64
  unresolvedDecisions: {
65
+ blocking: boolean;
65
66
  id: string;
66
67
  question: string;
67
- blocking: boolean;
68
68
  }[];
69
69
  outOfScope: string[];
70
70
  }, {
71
71
  id: string;
72
- description: string;
73
72
  title: string;
73
+ description: string;
74
74
  problemStatement: string;
75
75
  targetUsers: {
76
76
  name: string;
@@ -84,9 +84,9 @@ export declare const ProductBriefSchema: z.ZodObject<{
84
84
  requiresApproval: boolean;
85
85
  }[] | undefined;
86
86
  unresolvedDecisions?: {
87
+ blocking: boolean;
87
88
  id: string;
88
89
  question: string;
89
- blocking: boolean;
90
90
  }[] | undefined;
91
91
  outOfScope?: string[] | undefined;
92
92
  }>;
@@ -8,18 +8,18 @@ export declare const ProductRequirementSchema: z.ZodObject<{
8
8
  source: z.ZodString;
9
9
  acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
10
10
  }, "strip", z.ZodTypeAny, {
11
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
11
12
  id: string;
12
13
  statement: string;
13
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
14
- priority: "must" | "should" | "could" | "wont";
15
14
  source: string;
15
+ priority: "must" | "should" | "could" | "wont";
16
16
  acceptanceCriterionIds: string[];
17
17
  }, {
18
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
18
19
  id: string;
19
20
  statement: string;
20
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
21
- priority: "must" | "should" | "could" | "wont";
22
21
  source: string;
22
+ priority: "must" | "should" | "could" | "wont";
23
23
  acceptanceCriterionIds: string[];
24
24
  }>;
25
25
  export declare const RequirementsDocumentSchema: z.ZodObject<{
@@ -33,18 +33,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
33
33
  source: z.ZodString;
34
34
  acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
35
35
  }, "strip", z.ZodTypeAny, {
36
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
36
37
  id: string;
37
38
  statement: string;
38
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
39
- priority: "must" | "should" | "could" | "wont";
40
39
  source: string;
40
+ priority: "must" | "should" | "could" | "wont";
41
41
  acceptanceCriterionIds: string[];
42
42
  }, {
43
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
43
44
  id: string;
44
45
  statement: string;
45
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
46
- priority: "must" | "should" | "could" | "wont";
47
46
  source: string;
47
+ priority: "must" | "should" | "could" | "wont";
48
48
  acceptanceCriterionIds: string[];
49
49
  }>, "many">;
50
50
  nonFunctional: z.ZodArray<z.ZodObject<{
@@ -55,18 +55,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
55
55
  source: z.ZodString;
56
56
  acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
57
57
  }, "strip", z.ZodTypeAny, {
58
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
58
59
  id: string;
59
60
  statement: string;
60
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
61
- priority: "must" | "should" | "could" | "wont";
62
61
  source: string;
62
+ priority: "must" | "should" | "could" | "wont";
63
63
  acceptanceCriterionIds: string[];
64
64
  }, {
65
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
65
66
  id: string;
66
67
  statement: string;
67
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
68
- priority: "must" | "should" | "could" | "wont";
69
68
  source: string;
69
+ priority: "must" | "should" | "could" | "wont";
70
70
  acceptanceCriterionIds: string[];
71
71
  }>, "many">;
72
72
  business: z.ZodArray<z.ZodObject<{
@@ -77,18 +77,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
77
77
  source: z.ZodString;
78
78
  acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
79
79
  }, "strip", z.ZodTypeAny, {
80
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
80
81
  id: string;
81
82
  statement: string;
82
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
83
- priority: "must" | "should" | "could" | "wont";
84
83
  source: string;
84
+ priority: "must" | "should" | "could" | "wont";
85
85
  acceptanceCriterionIds: string[];
86
86
  }, {
87
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
87
88
  id: string;
88
89
  statement: string;
89
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
90
- priority: "must" | "should" | "could" | "wont";
91
90
  source: string;
91
+ priority: "must" | "should" | "could" | "wont";
92
92
  acceptanceCriterionIds: string[];
93
93
  }>, "many">;
94
94
  technicalConstraints: z.ZodArray<z.ZodObject<{
@@ -99,18 +99,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
99
99
  source: z.ZodString;
100
100
  acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
101
101
  }, "strip", z.ZodTypeAny, {
102
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
102
103
  id: string;
103
104
  statement: string;
104
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
105
- priority: "must" | "should" | "could" | "wont";
106
105
  source: string;
106
+ priority: "must" | "should" | "could" | "wont";
107
107
  acceptanceCriterionIds: string[];
108
108
  }, {
109
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
109
110
  id: string;
110
111
  statement: string;
111
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
112
- priority: "must" | "should" | "could" | "wont";
113
112
  source: string;
113
+ priority: "must" | "should" | "could" | "wont";
114
114
  acceptanceCriterionIds: string[];
115
115
  }>, "many">;
116
116
  assumptions: z.ZodArray<z.ZodObject<{
@@ -121,18 +121,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
121
121
  source: z.ZodString;
122
122
  acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
123
123
  }, "strip", z.ZodTypeAny, {
124
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
124
125
  id: string;
125
126
  statement: string;
126
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
127
- priority: "must" | "should" | "could" | "wont";
128
127
  source: string;
128
+ priority: "must" | "should" | "could" | "wont";
129
129
  acceptanceCriterionIds: string[];
130
130
  }, {
131
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
131
132
  id: string;
132
133
  statement: string;
133
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
134
- priority: "must" | "should" | "could" | "wont";
135
134
  source: string;
135
+ priority: "must" | "should" | "could" | "wont";
136
136
  acceptanceCriterionIds: string[];
137
137
  }>, "many">;
138
138
  unresolvedDecisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -140,109 +140,109 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
140
140
  question: z.ZodString;
141
141
  blocking: z.ZodBoolean;
142
142
  }, "strip", z.ZodTypeAny, {
143
+ blocking: boolean;
143
144
  id: string;
144
145
  question: string;
145
- blocking: boolean;
146
146
  }, {
147
+ blocking: boolean;
147
148
  id: string;
148
149
  question: string;
149
- blocking: boolean;
150
150
  }>, "many">>;
151
151
  }, "strict", z.ZodTypeAny, {
152
152
  schemaVersion: 1;
153
153
  assumptions: {
154
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
154
155
  id: string;
155
156
  statement: string;
156
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
157
- priority: "must" | "should" | "could" | "wont";
158
157
  source: string;
158
+ priority: "must" | "should" | "could" | "wont";
159
159
  acceptanceCriterionIds: string[];
160
160
  }[];
161
161
  unresolvedDecisions: {
162
+ blocking: boolean;
162
163
  id: string;
163
164
  question: string;
164
- blocking: boolean;
165
165
  }[];
166
166
  business: {
167
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
167
168
  id: string;
168
169
  statement: string;
169
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
170
- priority: "must" | "should" | "could" | "wont";
171
170
  source: string;
171
+ priority: "must" | "should" | "could" | "wont";
172
172
  acceptanceCriterionIds: string[];
173
173
  }[];
174
174
  functional: {
175
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
175
176
  id: string;
176
177
  statement: string;
177
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
178
- priority: "must" | "should" | "could" | "wont";
179
178
  source: string;
179
+ priority: "must" | "should" | "could" | "wont";
180
180
  acceptanceCriterionIds: string[];
181
181
  }[];
182
182
  briefId: string;
183
183
  nonFunctional: {
184
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
184
185
  id: string;
185
186
  statement: string;
186
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
187
- priority: "must" | "should" | "could" | "wont";
188
187
  source: string;
188
+ priority: "must" | "should" | "could" | "wont";
189
189
  acceptanceCriterionIds: string[];
190
190
  }[];
191
191
  technicalConstraints: {
192
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
192
193
  id: string;
193
194
  statement: string;
194
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
195
- priority: "must" | "should" | "could" | "wont";
196
195
  source: string;
196
+ priority: "must" | "should" | "could" | "wont";
197
197
  acceptanceCriterionIds: string[];
198
198
  }[];
199
199
  }, {
200
200
  schemaVersion: 1;
201
201
  assumptions: {
202
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
202
203
  id: string;
203
204
  statement: string;
204
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
205
- priority: "must" | "should" | "could" | "wont";
206
205
  source: string;
206
+ priority: "must" | "should" | "could" | "wont";
207
207
  acceptanceCriterionIds: string[];
208
208
  }[];
209
209
  business: {
210
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
210
211
  id: string;
211
212
  statement: string;
212
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
213
- priority: "must" | "should" | "could" | "wont";
214
213
  source: string;
214
+ priority: "must" | "should" | "could" | "wont";
215
215
  acceptanceCriterionIds: string[];
216
216
  }[];
217
217
  functional: {
218
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
218
219
  id: string;
219
220
  statement: string;
220
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
221
- priority: "must" | "should" | "could" | "wont";
222
221
  source: string;
222
+ priority: "must" | "should" | "could" | "wont";
223
223
  acceptanceCriterionIds: string[];
224
224
  }[];
225
225
  briefId: string;
226
226
  nonFunctional: {
227
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
227
228
  id: string;
228
229
  statement: string;
229
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
230
- priority: "must" | "should" | "could" | "wont";
231
230
  source: string;
231
+ priority: "must" | "should" | "could" | "wont";
232
232
  acceptanceCriterionIds: string[];
233
233
  }[];
234
234
  technicalConstraints: {
235
+ kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
235
236
  id: string;
236
237
  statement: string;
237
- kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
238
- priority: "must" | "should" | "could" | "wont";
239
238
  source: string;
239
+ priority: "must" | "should" | "could" | "wont";
240
240
  acceptanceCriterionIds: string[];
241
241
  }[];
242
242
  unresolvedDecisions?: {
243
+ blocking: boolean;
243
244
  id: string;
244
245
  question: string;
245
- blocking: boolean;
246
246
  }[] | undefined;
247
247
  }>;
248
248
  export type RequirementKind = z.infer<typeof RequirementKindSchema>;
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
3
  * Schema version for the ProjectProfile contract. Bumped on breaking
4
- // changes; requires an ADR and a migration function in
5
- // core/artifacts/migrations/.
4
+ * changes; requires an ADR and a migration function in
5
+ * core/artifacts/migrations/.
6
6
  */
7
7
  export declare const PROJECT_PROFILE_SCHEMA_VERSION: 1;
8
8
  /**
@@ -26,6 +26,49 @@ export declare const CommandsMapSchema: z.ZodObject<{
26
26
  typecheck?: string[][] | undefined;
27
27
  build?: string[][] | undefined;
28
28
  }>;
29
+ /**
30
+ * Verification settings overlay (ADR-0022). Optional, absent by
31
+ * default: a profile without a `verification` section keeps the exact
32
+ * pre-ADR-0022 behavior — strength evidence is opt-in.
33
+ */
34
+ export declare const VerificationSettingsSectionSchema: z.ZodObject<{
35
+ strength: z.ZodOptional<z.ZodObject<{
36
+ enabled: z.ZodBoolean;
37
+ threshold: z.ZodNumber;
38
+ budgetMs: z.ZodNumber;
39
+ scope: z.ZodEnum<["diff", "suite"]>;
40
+ gateMode: z.ZodEnum<["warn", "enforce"]>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ enabled: boolean;
43
+ threshold: number;
44
+ budgetMs: number;
45
+ scope: "diff" | "suite";
46
+ gateMode: "warn" | "enforce";
47
+ }, {
48
+ enabled: boolean;
49
+ threshold: number;
50
+ budgetMs: number;
51
+ scope: "diff" | "suite";
52
+ gateMode: "warn" | "enforce";
53
+ }>>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ strength?: {
56
+ enabled: boolean;
57
+ threshold: number;
58
+ budgetMs: number;
59
+ scope: "diff" | "suite";
60
+ gateMode: "warn" | "enforce";
61
+ } | undefined;
62
+ }, {
63
+ strength?: {
64
+ enabled: boolean;
65
+ threshold: number;
66
+ budgetMs: number;
67
+ scope: "diff" | "suite";
68
+ gateMode: "warn" | "enforce";
69
+ } | undefined;
70
+ }>;
71
+ export type VerificationSettingsSection = z.infer<typeof VerificationSettingsSectionSchema>;
29
72
  export declare const ProjectProfileSchema: z.ZodObject<{
30
73
  schemaVersion: z.ZodLiteral<1>;
31
74
  name: z.ZodString;
@@ -46,6 +89,50 @@ export declare const ProjectProfileSchema: z.ZodObject<{
46
89
  typecheck?: string[][] | undefined;
47
90
  build?: string[][] | undefined;
48
91
  }>;
92
+ verification: z.ZodOptional<z.ZodObject<{
93
+ strength: z.ZodOptional<z.ZodObject<{
94
+ enabled: z.ZodBoolean;
95
+ threshold: z.ZodNumber;
96
+ budgetMs: z.ZodNumber;
97
+ scope: z.ZodEnum<["diff", "suite"]>;
98
+ gateMode: z.ZodEnum<["warn", "enforce"]>;
99
+ }, "strict", z.ZodTypeAny, {
100
+ enabled: boolean;
101
+ threshold: number;
102
+ budgetMs: number;
103
+ scope: "diff" | "suite";
104
+ gateMode: "warn" | "enforce";
105
+ }, {
106
+ enabled: boolean;
107
+ threshold: number;
108
+ budgetMs: number;
109
+ scope: "diff" | "suite";
110
+ gateMode: "warn" | "enforce";
111
+ }>>;
112
+ }, "strict", z.ZodTypeAny, {
113
+ strength?: {
114
+ enabled: boolean;
115
+ threshold: number;
116
+ budgetMs: number;
117
+ scope: "diff" | "suite";
118
+ gateMode: "warn" | "enforce";
119
+ } | undefined;
120
+ }, {
121
+ strength?: {
122
+ enabled: boolean;
123
+ threshold: number;
124
+ budgetMs: number;
125
+ scope: "diff" | "suite";
126
+ gateMode: "warn" | "enforce";
127
+ } | undefined;
128
+ }>>;
129
+ constitution: z.ZodOptional<z.ZodObject<{
130
+ required: z.ZodBoolean;
131
+ }, "strict", z.ZodTypeAny, {
132
+ required: boolean;
133
+ }, {
134
+ required: boolean;
135
+ }>>;
49
136
  }, "strict", z.ZodTypeAny, {
50
137
  schemaVersion: 1;
51
138
  name: string;
@@ -56,6 +143,18 @@ export declare const ProjectProfileSchema: z.ZodObject<{
56
143
  typecheck?: string[][] | undefined;
57
144
  build?: string[][] | undefined;
58
145
  };
146
+ verification?: {
147
+ strength?: {
148
+ enabled: boolean;
149
+ threshold: number;
150
+ budgetMs: number;
151
+ scope: "diff" | "suite";
152
+ gateMode: "warn" | "enforce";
153
+ } | undefined;
154
+ } | undefined;
155
+ constitution?: {
156
+ required: boolean;
157
+ } | undefined;
59
158
  }, {
60
159
  schemaVersion: 1;
61
160
  name: string;
@@ -66,6 +165,18 @@ export declare const ProjectProfileSchema: z.ZodObject<{
66
165
  typecheck?: string[][] | undefined;
67
166
  build?: string[][] | undefined;
68
167
  };
168
+ verification?: {
169
+ strength?: {
170
+ enabled: boolean;
171
+ threshold: number;
172
+ budgetMs: number;
173
+ scope: "diff" | "suite";
174
+ gateMode: "warn" | "enforce";
175
+ } | undefined;
176
+ } | undefined;
177
+ constitution?: {
178
+ required: boolean;
179
+ } | undefined;
69
180
  }>;
70
181
  export type ProjectProfile = z.infer<typeof ProjectProfileSchema>;
71
182
  export type CommandsMap = z.infer<typeof CommandsMapSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"project-profile.d.ts","sourceRoot":"","sources":["../../src/project/project-profile.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAG,CAAU,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,aAAa,iCAEiC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAOnB,CAAC;AAEZ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetB,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,GAAG,cAAc,CAExF"}
1
+ {"version":3,"file":"project-profile.d.ts","sourceRoot":"","sources":["../../src/project/project-profile.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAG,CAAU,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,aAAa,iCAEiC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAOnB,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,GAAG,cAAc,CAExF"}
@@ -7,10 +7,11 @@
7
7
  //
8
8
  // See docs/contracts/CONTRACTS.md §2 and ADR-0008.
9
9
  import { z } from 'zod';
10
+ import { StrengthSettingsSchema } from '../verification/strength.js';
10
11
  /**
11
12
  * Schema version for the ProjectProfile contract. Bumped on breaking
12
- // changes; requires an ADR and a migration function in
13
- // core/artifacts/migrations/.
13
+ * changes; requires an ADR and a migration function in
14
+ * core/artifacts/migrations/.
14
15
  */
15
16
  export const PROJECT_PROFILE_SCHEMA_VERSION = 1;
16
17
  /**
@@ -28,6 +29,16 @@ export const CommandsMapSchema = z
28
29
  build: z.array(CommandSchema).optional(),
29
30
  })
30
31
  .strict();
32
+ /**
33
+ * Verification settings overlay (ADR-0022). Optional, absent by
34
+ * default: a profile without a `verification` section keeps the exact
35
+ * pre-ADR-0022 behavior — strength evidence is opt-in.
36
+ */
37
+ export const VerificationSettingsSectionSchema = z
38
+ .object({
39
+ strength: StrengthSettingsSchema.optional(),
40
+ })
41
+ .strict();
31
42
  export const ProjectProfileSchema = z
32
43
  .object({
33
44
  schemaVersion: z.literal(PROJECT_PROFILE_SCHEMA_VERSION),
@@ -40,6 +51,10 @@ export const ProjectProfileSchema = z
40
51
  .regex(/^[a-z][a-z0-9-]*$/, 'stack entry must be lowercase kebab-case'))
41
52
  .min(1, 'stack must contain at least one entry'),
42
53
  commands: CommandsMapSchema,
54
+ verification: VerificationSettingsSectionSchema.optional(),
55
+ // Engineering constitution policy (ADR-0023). required: true means a failed
56
+ // or unavailable constitution must never be reported as passing.
57
+ constitution: z.object({ required: z.boolean() }).strict().optional(),
43
58
  })
44
59
  .strict();
45
60
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"project-profile.js","sourceRoot":"","sources":["../../src/project/project-profile.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,uEAAuE;AACvE,EAAE;AACF,0EAA0E;AAC1E,oEAAoE;AACpE,EAAE;AACF,mDAAmD;AAEnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAU,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACxB,GAAG,CAAC,CAAC,EAAE,gDAAgD,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IACvC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IAC5C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC5D,KAAK,EAAE,CAAC;SACL,KAAK,CACJ,CAAC;SACE,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,mBAAmB,EAAE,0CAA0C,CAAC,CAC1E;SACA,GAAG,CAAC,CAAC,EAAE,uCAAuC,CAAC;IAClD,QAAQ,EAAE,iBAAiB;CAC5B,CAAC;KACD,MAAM,EAAE,CAAC;AAOZ;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,KAA4C;IACtE,OAAO,oBAAoB,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,8BAA8B,EAAE,CAAC,CAAC;AACjG,CAAC"}
1
+ {"version":3,"file":"project-profile.js","sourceRoot":"","sources":["../../src/project/project-profile.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,uEAAuE;AACvE,EAAE;AACF,0EAA0E;AAC1E,oEAAoE;AACpE,EAAE;AACF,mDAAmD;AAEnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAU,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACxB,GAAG,CAAC,CAAC,EAAE,gDAAgD,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IACvC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IAC5C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ;;;;GAIG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,MAAM,CAAC;IACN,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC5D,KAAK,EAAE,CAAC;SACL,KAAK,CACJ,CAAC;SACE,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,mBAAmB,EAAE,0CAA0C,CAAC,CAC1E;SACA,GAAG,CAAC,CAAC,EAAE,uCAAuC,CAAC;IAClD,QAAQ,EAAE,iBAAiB;IAC3B,YAAY,EAAE,iCAAiC,CAAC,QAAQ,EAAE;IAC1D,4EAA4E;IAC5E,iEAAiE;IACjE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtE,CAAC;KACD,MAAM,EAAE,CAAC;AAOZ;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,KAA4C;IACtE,OAAO,oBAAoB,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,8BAA8B,EAAE,CAAC,CAAC;AACjG,CAAC"}
@@ -2,4 +2,5 @@ export * from './routing-request.js';
2
2
  export * from './capability-registry.js';
3
3
  export * from './routing-policy.js';
4
4
  export * from './escalation.js';
5
+ export * from './measured-routing.js';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -3,4 +3,5 @@ export * from './routing-request.js';
3
3
  export * from './capability-registry.js';
4
4
  export * from './routing-policy.js';
5
5
  export * from './escalation.js';
6
+ export * from './measured-routing.js';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { z } from 'zod';
2
+ export declare const ROUTING_OBSERVATION_SCHEMA_VERSION: 1;
3
+ export declare const MeasuredRoutingObservationSchema: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<1>;
5
+ id: z.ZodString;
6
+ occurredAt: z.ZodString;
7
+ taskType: z.ZodEnum<["feature", "fix", "refactor", "review", "verify"]>;
8
+ model: z.ZodString;
9
+ effort: z.ZodEnum<["low", "medium", "high"]>;
10
+ verdict: z.ZodEnum<["passed", "failed", "blocked"]>;
11
+ tokensIn: z.ZodNumber;
12
+ tokensOut: z.ZodNumber;
13
+ costUnits: z.ZodNumber;
14
+ latencyMs: z.ZodNumber;
15
+ }, "strict", z.ZodTypeAny, {
16
+ schemaVersion: 1;
17
+ id: string;
18
+ occurredAt: string;
19
+ taskType: "review" | "feature" | "fix" | "refactor" | "verify";
20
+ verdict: "passed" | "failed" | "blocked";
21
+ model: string;
22
+ effort: "low" | "medium" | "high";
23
+ tokensIn: number;
24
+ tokensOut: number;
25
+ costUnits: number;
26
+ latencyMs: number;
27
+ }, {
28
+ schemaVersion: 1;
29
+ id: string;
30
+ occurredAt: string;
31
+ taskType: "review" | "feature" | "fix" | "refactor" | "verify";
32
+ verdict: "passed" | "failed" | "blocked";
33
+ model: string;
34
+ effort: "low" | "medium" | "high";
35
+ tokensIn: number;
36
+ tokensOut: number;
37
+ costUnits: number;
38
+ latencyMs: number;
39
+ }>;
40
+ export type MeasuredRoutingObservation = z.infer<typeof MeasuredRoutingObservationSchema>;
41
+ //# sourceMappingURL=measured-routing.d.ts.map