@agent-ix/quoin 0.21.9 → 0.23.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 (244) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/default-modules.yaml +18 -2
  4. package/dist/{advisor-BiKhR9Yp.js → advisor-B0rESCx1.js} +1 -1
  5. package/dist/auditor/audit.d.ts +23 -18
  6. package/dist/auditor/audit.d.ts.map +1 -1
  7. package/dist/auditor/index.d.ts +2 -1
  8. package/dist/auditor/index.d.ts.map +1 -1
  9. package/dist/{auditor-ww0MC62a.js → auditor-Dd3i9Aqx.js} +82 -65
  10. package/dist/{base-W7vrLi5E.js → base-gAClyCNd.js} +1 -1
  11. package/dist/change-assurance/attestations.d.ts +7 -0
  12. package/dist/change-assurance/attestations.d.ts.map +1 -0
  13. package/dist/change-assurance/index.d.ts +14 -0
  14. package/dist/change-assurance/index.d.ts.map +1 -0
  15. package/dist/change-assurance/integrity.d.ts +11 -0
  16. package/dist/change-assurance/integrity.d.ts.map +1 -0
  17. package/dist/change-assurance/records.d.ts +22 -0
  18. package/dist/change-assurance/records.d.ts.map +1 -0
  19. package/dist/change-assurance/schema-assets.d.ts +8 -0
  20. package/dist/change-assurance/schema-assets.d.ts.map +1 -0
  21. package/dist/change-assurance/store.d.ts +18 -0
  22. package/dist/change-assurance/store.d.ts.map +1 -0
  23. package/dist/change-assurance/types.d.ts +180 -0
  24. package/dist/change-assurance/types.d.ts.map +1 -0
  25. package/dist/change-assurance/verify.d.ts +4 -0
  26. package/dist/change-assurance/verify.d.ts.map +1 -0
  27. package/dist/change-assurance-CyKLPeKa.js +1236 -0
  28. package/dist/cli.js +1 -1
  29. package/dist/commands/advise.js +27 -26
  30. package/dist/commands/assurance.d.ts.map +1 -1
  31. package/dist/commands/assurance.js +84 -61
  32. package/dist/commands/catalog/list.js +2 -2
  33. package/dist/commands/catalog/methods.js +3 -3
  34. package/dist/commands/catalog/show.js +2 -2
  35. package/dist/commands/catalog/validate.js +2 -2
  36. package/dist/commands/change-assurance/common.d.ts +37 -0
  37. package/dist/commands/change-assurance/common.d.ts.map +1 -0
  38. package/dist/commands/change-assurance/index.d.ts +8 -0
  39. package/dist/commands/change-assurance/index.d.ts.map +1 -0
  40. package/dist/commands/change-assurance/index.js +12 -0
  41. package/dist/commands/change-assurance/intake.d.ts +15 -0
  42. package/dist/commands/change-assurance/intake.d.ts.map +1 -0
  43. package/dist/commands/change-assurance/intake.js +53 -0
  44. package/dist/commands/change-assurance/receipt.d.ts +21 -0
  45. package/dist/commands/change-assurance/receipt.d.ts.map +1 -0
  46. package/dist/commands/change-assurance/receipt.js +99 -0
  47. package/dist/commands/change-assurance/recover.d.ts +13 -0
  48. package/dist/commands/change-assurance/recover.d.ts.map +1 -0
  49. package/dist/commands/change-assurance/recover.js +29 -0
  50. package/dist/commands/change-assurance/schema.d.ts +13 -0
  51. package/dist/commands/change-assurance/schema.d.ts.map +1 -0
  52. package/dist/commands/change-assurance/schema.js +40 -0
  53. package/dist/commands/change-assurance/seal-attestation.d.ts +15 -0
  54. package/dist/commands/change-assurance/seal-attestation.d.ts.map +1 -0
  55. package/dist/commands/change-assurance/seal-attestation.js +58 -0
  56. package/dist/commands/change-assurance/seal-record.d.ts +14 -0
  57. package/dist/commands/change-assurance/seal-record.d.ts.map +1 -0
  58. package/dist/commands/change-assurance/seal-record.js +53 -0
  59. package/dist/commands/change-assurance/verify-receipt.d.ts +13 -0
  60. package/dist/commands/change-assurance/verify-receipt.d.ts.map +1 -0
  61. package/dist/commands/change-assurance/verify-receipt.js +41 -0
  62. package/dist/commands/completeness.js +2 -2
  63. package/dist/commands/config/doctor.d.ts.map +1 -1
  64. package/dist/commands/config/doctor.js +3 -3
  65. package/dist/commands/config/edit.d.ts.map +1 -1
  66. package/dist/commands/config/edit.js +3 -3
  67. package/dist/commands/config/get.js +1 -1
  68. package/dist/commands/config/set.js +1 -1
  69. package/dist/commands/evidence/affirm.js +17 -16
  70. package/dist/commands/evidence/audit.d.ts.map +1 -1
  71. package/dist/commands/evidence/audit.js +55 -43
  72. package/dist/commands/evidence/baseline.d.ts.map +1 -1
  73. package/dist/commands/evidence/baseline.js +50 -40
  74. package/dist/commands/evidence/gc.js +3 -2
  75. package/dist/commands/evidence/index.js +1 -1
  76. package/dist/commands/evidence/inspect-mocks.d.ts +16 -0
  77. package/dist/commands/evidence/inspect-mocks.d.ts.map +1 -0
  78. package/dist/commands/evidence/inspect-mocks.js +49 -0
  79. package/dist/commands/evidence/record.d.ts +1 -0
  80. package/dist/commands/evidence/record.d.ts.map +1 -1
  81. package/dist/commands/evidence/record.js +48 -33
  82. package/dist/commands/graph/change-impact.d.ts +16 -0
  83. package/dist/commands/graph/change-impact.d.ts.map +1 -0
  84. package/dist/commands/graph/change-impact.js +29 -0
  85. package/dist/commands/graph/churn.d.ts +14 -0
  86. package/dist/commands/graph/churn.d.ts.map +1 -0
  87. package/dist/commands/graph/churn.js +15 -0
  88. package/dist/commands/graph/common.d.ts +16 -0
  89. package/dist/commands/graph/common.d.ts.map +1 -0
  90. package/dist/commands/graph/fan-out.d.ts +14 -0
  91. package/dist/commands/graph/fan-out.d.ts.map +1 -0
  92. package/dist/commands/graph/fan-out.js +15 -0
  93. package/dist/commands/graph/index.d.ts +8 -0
  94. package/dist/commands/graph/index.d.ts.map +1 -0
  95. package/dist/commands/graph/index.js +12 -0
  96. package/dist/commands/matrix.js +1 -1
  97. package/dist/commands/measurement/index.d.ts +7 -0
  98. package/dist/commands/measurement/index.d.ts.map +1 -0
  99. package/dist/commands/measurement/index.js +11 -0
  100. package/dist/commands/measurement/intervention.d.ts +11 -0
  101. package/dist/commands/measurement/intervention.d.ts.map +1 -0
  102. package/dist/commands/measurement/intervention.js +31 -0
  103. package/dist/commands/measurement/operational-release.d.ts +11 -0
  104. package/dist/commands/measurement/operational-release.d.ts.map +1 -0
  105. package/dist/commands/measurement/operational-release.js +31 -0
  106. package/dist/commands/measurement/record.d.ts +10 -0
  107. package/dist/commands/measurement/record.d.ts.map +1 -0
  108. package/dist/commands/measurement/record.js +36 -0
  109. package/dist/commands/module/ensure-defaults.js +3 -3
  110. package/dist/commands/module/install.js +2 -2
  111. package/dist/commands/module/list.js +2 -2
  112. package/dist/commands/module/remove.js +2 -2
  113. package/dist/commands/report.d.ts +19 -0
  114. package/dist/commands/report.d.ts.map +1 -0
  115. package/dist/commands/report.js +96 -0
  116. package/dist/commands/review.js +1 -1
  117. package/dist/commands/to-plan.js +1 -1
  118. package/dist/commands/update.js +2 -2
  119. package/dist/commands/validate.d.ts +13 -0
  120. package/dist/commands/validate.d.ts.map +1 -0
  121. package/dist/commands/validate.js +123 -0
  122. package/dist/commands/write.js +3 -3
  123. package/dist/common-B1ZJ8CSO.js +36 -0
  124. package/dist/common-DTrmnvL-.js +35 -0
  125. package/dist/{completeness-BQDxME0a.js → completeness-BzBuNq6w.js} +1 -1
  126. package/dist/evidence/adapters/contract-conformance.d.ts +16 -0
  127. package/dist/evidence/adapters/contract-conformance.d.ts.map +1 -0
  128. package/dist/evidence/adapters/differential-report.d.ts +18 -0
  129. package/dist/evidence/adapters/differential-report.d.ts.map +1 -0
  130. package/dist/evidence/adapters/registry.d.ts.map +1 -1
  131. package/dist/evidence/adapters/types.d.ts +31 -0
  132. package/dist/evidence/adapters/types.d.ts.map +1 -1
  133. package/dist/evidence/index.d.ts +7 -3
  134. package/dist/evidence/index.d.ts.map +1 -1
  135. package/dist/evidence/mock-inspection.d.ts +16 -0
  136. package/dist/evidence/mock-inspection.d.ts.map +1 -0
  137. package/dist/evidence/store.d.ts +11 -1
  138. package/dist/evidence/store.d.ts.map +1 -1
  139. package/dist/evidence/types.d.ts +31 -0
  140. package/dist/evidence/types.d.ts.map +1 -1
  141. package/dist/evidence-OyqpqHLS.js +614 -0
  142. package/dist/{flow-command-C_dUJNm-.js → flow-command-CCRTE5Oe.js} +7 -7
  143. package/dist/graph-analysis/analysis.d.ts +106 -0
  144. package/dist/graph-analysis/analysis.d.ts.map +1 -0
  145. package/dist/graph-analysis/index.d.ts +6 -0
  146. package/dist/graph-analysis/index.d.ts.map +1 -0
  147. package/dist/graph-analysis/input.d.ts +33 -0
  148. package/dist/graph-analysis/input.d.ts.map +1 -0
  149. package/dist/graph-analysis/load.d.ts +21 -0
  150. package/dist/graph-analysis/load.d.ts.map +1 -0
  151. package/dist/graph-analysis/render.d.ts +4 -0
  152. package/dist/graph-analysis/render.d.ts.map +1 -0
  153. package/dist/graph-analysis-IWaoJJSN.js +657 -0
  154. package/dist/index.d.ts +2 -0
  155. package/dist/index.d.ts.map +1 -1
  156. package/dist/index.js +11 -8
  157. package/dist/measurement/agent-eval-intervention.d.ts +6 -0
  158. package/dist/measurement/agent-eval-intervention.d.ts.map +1 -0
  159. package/dist/measurement/atomic-file.d.ts +5 -0
  160. package/dist/measurement/atomic-file.d.ts.map +1 -0
  161. package/dist/measurement/compare.d.ts +4 -0
  162. package/dist/measurement/compare.d.ts.map +1 -0
  163. package/dist/measurement/date-time.d.ts +3 -0
  164. package/dist/measurement/date-time.d.ts.map +1 -0
  165. package/dist/measurement/github-release-operational.d.ts +7 -0
  166. package/dist/measurement/github-release-operational.d.ts.map +1 -0
  167. package/dist/measurement/graph-adapters.d.ts +304 -0
  168. package/dist/measurement/graph-adapters.d.ts.map +1 -0
  169. package/dist/measurement/graph-portfolio-load.d.ts +3 -0
  170. package/dist/measurement/graph-portfolio-load.d.ts.map +1 -0
  171. package/dist/measurement/graph-portfolio.d.ts +158 -0
  172. package/dist/measurement/graph-portfolio.d.ts.map +1 -0
  173. package/dist/measurement/index.d.ts +22 -0
  174. package/dist/measurement/index.d.ts.map +1 -0
  175. package/dist/measurement/intervention-report.d.ts +24 -0
  176. package/dist/measurement/intervention-report.d.ts.map +1 -0
  177. package/dist/measurement/intervention-schema.d.ts +144 -0
  178. package/dist/measurement/intervention-schema.d.ts.map +1 -0
  179. package/dist/measurement/intervention-types.d.ts +105 -0
  180. package/dist/measurement/intervention-types.d.ts.map +1 -0
  181. package/dist/measurement/intervention.d.ts +16 -0
  182. package/dist/measurement/intervention.d.ts.map +1 -0
  183. package/dist/measurement/operational-report.d.ts +17 -0
  184. package/dist/measurement/operational-report.d.ts.map +1 -0
  185. package/dist/measurement/operational-schema.d.ts +461 -0
  186. package/dist/measurement/operational-schema.d.ts.map +1 -0
  187. package/dist/measurement/operational-types.d.ts +121 -0
  188. package/dist/measurement/operational-types.d.ts.map +1 -0
  189. package/dist/measurement/operational.d.ts +13 -0
  190. package/dist/measurement/operational.d.ts.map +1 -0
  191. package/dist/measurement/plans.d.ts +6 -0
  192. package/dist/measurement/plans.d.ts.map +1 -0
  193. package/dist/measurement/portfolio.d.ts +54 -0
  194. package/dist/measurement/portfolio.d.ts.map +1 -0
  195. package/dist/measurement/profiles.d.ts +9 -0
  196. package/dist/measurement/profiles.d.ts.map +1 -0
  197. package/dist/measurement/report.d.ts +48 -0
  198. package/dist/measurement/report.d.ts.map +1 -0
  199. package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
  200. package/dist/measurement/store.d.ts +14 -0
  201. package/dist/measurement/store.d.ts.map +1 -0
  202. package/dist/measurement/types.d.ts +85 -0
  203. package/dist/measurement/types.d.ts.map +1 -0
  204. package/dist/measurement/validate.d.ts +9 -0
  205. package/dist/measurement/validate.d.ts.map +1 -0
  206. package/dist/measurement-j8sDSqx5.js +2980 -0
  207. package/dist/{modules-Cn9Htfp0.js → modules-DDQkKC4l.js} +2 -2
  208. package/dist/{plugins-Byi1bWLD.js → plugins-CHpYhpEI.js} +1 -1
  209. package/dist/quire/assurance.d.ts +109 -0
  210. package/dist/quire/assurance.d.ts.map +1 -0
  211. package/dist/quire/contract.d.ts +12 -12
  212. package/dist/quire/contract.d.ts.map +1 -1
  213. package/dist/quire/exec.d.ts +10 -0
  214. package/dist/quire/exec.d.ts.map +1 -1
  215. package/dist/quire/index.d.ts +4 -3
  216. package/dist/quire/index.d.ts.map +1 -1
  217. package/dist/quire/types.d.ts +119 -1
  218. package/dist/quire/types.d.ts.map +1 -1
  219. package/dist/quire/validate.d.ts +5 -0
  220. package/dist/quire/validate.d.ts.map +1 -1
  221. package/dist/{quire-UzoK3Azf.js → quire-BsVj1xIR.js} +533 -499
  222. package/dist/schema-assets-HZWo_iFN.js +233 -0
  223. package/dist/schemas/assurance-v1.schema.json +225 -0
  224. package/dist/schemas/change-assurance-record-v1.schema.json +234 -0
  225. package/dist/schemas/coverage-v1.schema.json +919 -105
  226. package/dist/schemas/operational-evidence-v1.schema.json +381 -0
  227. package/dist/schemas/proof-attestation-v1.schema.json +96 -0
  228. package/dist/schemas/properties-v1.schema.json +25 -0
  229. package/dist/schemas/verification-receipt-v1.schema.json +208 -0
  230. package/dist/validators/gates.d.ts +18 -0
  231. package/dist/validators/gates.d.ts.map +1 -0
  232. package/dist/validators/index.d.ts +2 -0
  233. package/dist/validators/index.d.ts.map +1 -0
  234. package/dist/{version-BMXhyIie.js → version-CMxMIh5g.js} +1 -1
  235. package/dist/{write-BDxILTLC.js → write-CGTI0dRO.js} +1 -1
  236. package/package.json +26 -16
  237. package/skills/assurance-status-report/SKILL.md +135 -0
  238. package/skills/assurance-status-report/references/report-contract.md +110 -0
  239. package/skills/gap-analysis/references/step-4-underspecified-code.md +36 -7
  240. package/skills/gap-analysis/references/step-5-semantic-review.md +2 -2
  241. package/skills/gap-analysis/references/step-6-specreview-artifact.md +6 -5
  242. package/skills/spec-architecture-evaluation/SKILL.md +30 -0
  243. package/skills/spec-fuzz/SKILL.md +7 -6
  244. package/dist/evidence-BA5vyZJk.js +0 -603
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quoin",
3
- "version": "0.21.9",
3
+ "version": "0.22.5",
4
4
  "description": "Spec authoring, review, matrix, and planning skills for Agent IX.",
5
5
  "author": {
6
6
  "name": "Agent IX"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quoin",
3
- "version": "0.21.9",
3
+ "version": "0.22.5",
4
4
  "description": "Spec authoring, review, matrix, and planning skills for Agent IX.",
5
5
  "author": {
6
6
  "name": "Agent IX",
@@ -9,6 +9,22 @@
9
9
  schemaVersion: 1
10
10
  name: quoin-default-modules
11
11
  entries:
12
+ # Assurance artifacts are available by default but remain opt-in: installing
13
+ # their vocabulary does not require a repository to author any assurance
14
+ # document. Pin an exact reachable revision until a release tag carrying the
15
+ # module exists (agent-ix/quire-rs#275). The first-integration pin 2a66359
16
+ # was orphaned when upstream history was rebuilt — upload-pack refuses it, so
17
+ # clean-room installs failed while already-installed dev machines stayed
18
+ # green (agent-ix/quoin#308, caught by the v0.22.1 release run).
19
+ - name: engineering-assurance
20
+ version: "0.2.0+4e6522f"
21
+ defaultEnabled: true
22
+ source:
23
+ type: git-subdir
24
+ url: agent-ix/engineering-assurance
25
+ path: engineering_assurance
26
+ ref: 4e6522fc32f82cac82a3489a4192e17a94f539c3
27
+
12
28
  - name: spec-artifacts-iso
13
29
  version: "0.18.0"
14
30
  defaultEnabled: true
@@ -28,13 +44,13 @@ entries:
28
44
  ref: v0.5.0
29
45
 
30
46
  - name: spec-artifacts-process
31
- version: "0.24.0"
47
+ version: "0.24.0+d605caa"
32
48
  defaultEnabled: true
33
49
  source:
34
50
  type: git-subdir
35
51
  url: agent-ix/spec-artifacts-process
36
52
  path: spec_artifacts_process
37
- ref: v0.24.0
53
+ ref: d605caad70a8c09884ef22525d532e01330f763f
38
54
 
39
55
  - name: spec-objects-business
40
56
  version: "0.6.0"
@@ -1,4 +1,4 @@
1
- import { n as e, s as t } from "./base-W7vrLi5E.js";
1
+ import { n as e, s as t } from "./base-gAClyCNd.js";
2
2
  import { readFileSync as n } from "node:fs";
3
3
  import { join as r } from "node:path";
4
4
  import { parse as i } from "yaml";
@@ -1,5 +1,5 @@
1
1
  import { Obligation } from '../quire/index.js';
2
- import { Binding, FindingRecord, RunRecord } from '../evidence/index.js';
2
+ import { Binding, FindingRecord, MockInjection, RunRecord } from '../evidence/index.js';
3
3
  import { MethodCatalog } from '../advisor/index.js';
4
4
  /** Severity of one finding. Matches the SpecReview vocabulary. */
5
5
  export type Severity = "low" | "medium" | "high";
@@ -9,22 +9,17 @@ export interface Finding {
9
9
  obligation: string;
10
10
  severity: Severity;
11
11
  summary: string;
12
- }
13
- /**
14
- * A stand-in a suite injects for real behaviour.
15
- *
16
- * Pass 2 found `FR-017-AC-7`'s trusted-UI confirmation had NO implementation,
17
- * and its test passed by injecting `Confirmation::allow()` — mocking exactly
18
- * the behaviour the criterion verifies. The test was green, the AC was green,
19
- * and the behaviour did not exist.
20
- */
21
- export interface MockInjection {
22
- /** Suite the injection was observed in. */
23
- suite: string;
24
- /** Symbol doing the injecting. */
25
- symbol: string;
26
- /** Identifiers substituted for real behaviour — `Confirmation::allow`. */
27
- injects: string[];
12
+ /** Repo-relative source locus when the producer names one. */
13
+ path?: string;
14
+ line?: number;
15
+ symbol?: string;
16
+ /** Structured action fields are additive; only producers with sufficient
17
+ * evidence populate them. The JSON finding contract requires a target and
18
+ * exactly one remedy or safe diagnostic step when subject is present. */
19
+ subject?: string;
20
+ changeTarget?: string;
21
+ remedy?: string;
22
+ nextDiagnosticStep?: string;
28
23
  }
29
24
  /** What the auditor was given to read. */
30
25
  export interface AuditInput {
@@ -40,9 +35,11 @@ export interface AuditInput {
40
35
  * Supplied by the caller because the auditor reads the store, not source —
41
36
  * and #204 asked to extend `evidence audit`, not to build a second system.
42
37
  * An absent list means "nobody looked", never "nothing was mocked": the
43
- * check stays silent, the same posture `scanIsVacuous` takes.
38
+ * result is recorded under `unevaluated`, not counted as healthy.
44
39
  */
45
40
  injections?: MockInjection[];
41
+ /** Suites with a current completed inspection, including clean inspections. */
42
+ mockInspectionSuites?: string[];
46
43
  /**
47
44
  * Every finding-shaped scan record the store holds, newest per suite
48
45
  * (FR-034).
@@ -76,6 +73,14 @@ export interface AuditReport {
76
73
  findings: Finding[];
77
74
  /** Obligations with a binding whose hash still matches. */
78
75
  healthy: string[];
76
+ /** Checks that could not run, separate from both findings and clean results. */
77
+ unevaluated: UnevaluatedCheck[];
78
+ }
79
+ export interface UnevaluatedCheck {
80
+ check: "mocked-confirmation";
81
+ obligation: string;
82
+ suites: string[];
83
+ reason: string;
79
84
  }
80
85
  /**
81
86
  * Audit the store against the obligations of the day.
@@ -1 +1 @@
1
- {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/auditor/audit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,kEAAkE;AAClE,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEjD,4DAA4D;AAC5D,MAAM,WAAW,OAAO;IACtB,IAAI,EACA,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,mBAAmB,GACnB,cAAc,GACd,oBAAoB,GACpB,gBAAgB,GAChB,2BAA2B,GAC3B,6BAA6B,GAC7B,2BAA2B,GAC3B,qBAAqB,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,0CAA0C;AAC1C,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,wCAAwC;IACxC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,0DAA0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CAAE,GAC/B,OAAO,EAAE,CAKX;AAED,0DAA0D;AAC1D,wBAAgB,KAAK,CACnB,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,WAAW,GACjB;IAAE,KAAK,EAAE,OAAO,EAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAO3C"}
@@ -4,5 +4,6 @@
4
4
  * Reads the store and reports. Runs nothing (ADR-0011 invariant 1): an auditor
5
5
  * that could re-run a suite could also make a finding disappear by re-running it.
6
6
  */
7
- export { audit, delta, findingKey, ratchet, scoresFor, type AuditInput, type AuditReport, type Finding, type Severity, } from './audit.js';
7
+ export { audit, delta, findingKey, ratchet, scoresFor, type AuditInput, type AuditReport, type Finding, type Severity, type UnevaluatedCheck, } from './audit.js';
8
+ export type { MockInjection } from '../evidence/index.js';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auditor/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACP,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,QAAQ,GACd,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auditor/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACP,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,4 +1,5 @@
1
- import { _ as e } from "./evidence-BA5vyZJk.js";
1
+ import { v as e } from "./schema-assets-HZWo_iFN.js";
2
+ import "./evidence-OyqpqHLS.js";
2
3
  //#region src/auditor/combinatorial.ts
3
4
  var t = /^(\d+)-way over\s/, n = /([^\s(]+)\(([^)]*)\)/g, r = /excluding\[([^\]]*)\]/g;
4
5
  function i(e) {
@@ -80,121 +81,134 @@ function u(e, t) {
80
81
  //#endregion
81
82
  //#region src/auditor/audit.ts
82
83
  function d(t) {
83
- let n = [], r = [], a = /* @__PURE__ */ new Map();
84
+ let n = [], r = [], a = [], o = /* @__PURE__ */ new Map();
84
85
  for (let e of t.bindings) {
85
- let t = a.get(e.obligation) ?? [];
86
- t.push(e), a.set(e.obligation, t);
86
+ let t = o.get(e.obligation) ?? [];
87
+ t.push(e), o.set(e.obligation, t);
87
88
  }
88
- let o = new Map(t.runs.map((e) => [e.suite, e])), s = new Map((t.scans ?? []).map((e) => [e.suite, e])), c = t.injections ?? [];
89
- for (let l of [...t.obligations].sort(p)) {
90
- let d = n.length, p = (a.get(l.id) ?? []).slice().sort((e, t) => f(e.suite, t.suite)), h = m(l, t.catalog);
91
- if (h && n.push(h), p.length === 0) {
89
+ let s = new Map(t.runs.map((e) => [e.suite, e])), c = new Map((t.scans ?? []).map((e) => [e.suite, e])), l = t.injections ?? [], d = new Set(t.mockInspectionSuites ?? l.map((e) => e.suite));
90
+ for (let h of [...t.obligations].sort(p)) {
91
+ let p = n.length, y = a.length, x = (o.get(h.id) ?? []).slice().sort((e, t) => f(e.suite, t.suite)), S = m(h, t.catalog);
92
+ if (S && n.push(S), x.length === 0) {
92
93
  n.push({
93
94
  kind: "undischarged",
94
- obligation: l.id,
95
+ obligation: h.id,
95
96
  severity: "medium",
96
- summary: `no evidence is bound to ${l.id}`
97
+ summary: `no evidence is bound to ${h.id}`
97
98
  });
98
99
  continue;
99
100
  }
100
- let y = p.filter((e) => e.statementHashAtBinding !== l.statement_hash);
101
- if (y.length > 0) {
101
+ let C = x.filter((e) => e.statementHashAtBinding !== h.statement_hash);
102
+ if (C.length > 0) {
102
103
  n.push({
103
104
  kind: "suspect-link",
104
- obligation: l.id,
105
+ obligation: h.id,
105
106
  severity: "high",
106
- summary: `${l.id} was reworded after its evidence was bound in ${y.map((e) => e.suite).join(", ")} (bound against ${y[0].statementHashAtBinding.slice(0, 12)}…, now ${l.statement_hash.slice(0, 12)}…). Re-affirm or re-verify.`
107
+ summary: `${h.id} was reworded after its evidence was bound in ${C.map((e) => e.suite).join(", ")} (bound against ${C[0].statementHashAtBinding.slice(0, 12)}…, now ${h.statement_hash.slice(0, 12)}…). Re-affirm or re-verify.`
107
108
  });
108
109
  continue;
109
110
  }
110
- let x = p.filter((e) => !o.has(e.suite) && !s.has(e.suite));
111
- if (x.length > 0) {
111
+ let w = x.filter((e) => !s.has(e.suite) && !c.has(e.suite));
112
+ if (w.length > 0) {
112
113
  n.push({
113
114
  kind: "stale-evidence",
114
- obligation: l.id,
115
+ obligation: h.id,
115
116
  severity: "high",
116
- summary: `${l.id} is bound to ${x.map((e) => e.suite).join(", ")}, which ${x.length === 1 ? "has" : "have"} no recorded run. The binding claims evidence that is not in the store.`
117
+ summary: `${h.id} is bound to ${w.map((e) => e.suite).join(", ")}, which ${w.length === 1 ? "has" : "have"} no recorded run. The binding claims evidence that is not in the store.`
117
118
  });
118
119
  continue;
119
120
  }
120
- let S = b(l, p, c);
121
- if (S.length > 0 && S.length === p.length) {
121
+ let T = b(h, x, l), E = [...new Set(x.filter((e) => s.has(e.suite)).map((e) => e.suite).filter((e) => !d.has(e)))].sort(f);
122
+ if (E.length > 0 && a.push({
123
+ check: "mocked-confirmation",
124
+ obligation: h.id,
125
+ suites: E,
126
+ reason: `no current mock inspection exists for ${E.join(", ")}. Run quoin evidence inspect-mocks for each suite at HEAD.`
127
+ }), T.length > 0 && T.length === x.length) {
128
+ let e = [...T].sort((e, t) => f(e.path ?? "", t.path ?? "") || (e.line ?? 0) - (t.line ?? 0) || f(e.symbol, t.symbol))[0];
122
129
  n.push({
123
130
  kind: "mocked-confirmation",
124
- obligation: l.id,
131
+ obligation: h.id,
125
132
  severity: "medium",
126
- summary: `${l.id} is discharged only by tests that inject a stand-in for the behaviour it verifies: ` + S.map((e) => `${e.symbol} injects ${e.injects.join(", ")}`).sort(f).join("; ") + ". A test that substitutes the behaviour under verification passes whether or not that behaviour exists."
133
+ ...e.path ? { path: e.path } : {},
134
+ ...e.line ? { line: e.line } : {},
135
+ symbol: e.symbol,
136
+ subject: `${h.id} evidence`,
137
+ changeTarget: e.path && e.line ? `${e.path}:${e.line} in ${e.symbol}` : e.path ? `${e.path} in ${e.symbol}` : e.symbol,
138
+ nextDiagnosticStep: `inspect whether the real behaviour for ${h.id} exists; add or bind an independent test that exercises it without substituting the behaviour under verification`,
139
+ summary: `${h.id} is discharged only by tests that inject a stand-in for the behaviour it verifies: ` + T.map((e) => `${e.path ? `${e.path}${e.line ? `:${e.line}` : ""} ` : ""}${e.symbol} injects ${e.injects.join(", ")}`).sort(f).join("; ") + ". A test that substitutes the behaviour under verification passes whether or not that behaviour exists."
127
140
  });
128
141
  continue;
129
142
  }
130
- let C = p.map((e) => s.get(e.suite)).filter((e) => e !== void 0).filter((t) => e(t) === !0);
131
- if (C.length > 0) {
143
+ let D = x.map((e) => c.get(e.suite)).filter((e) => e !== void 0).filter((t) => e(t) === !0);
144
+ if (D.length > 0) {
132
145
  n.push({
133
146
  kind: "vacuous-evidence",
134
- obligation: l.id,
147
+ obligation: h.id,
135
148
  severity: "high",
136
- summary: `${l.id} rests on a scan that evaluated no rules: ` + C.map((e) => `${e.suite} (${e.tool})`).sort(f).join(", ") + ". It reported no finding because it looked for nothing."
149
+ summary: `${h.id} rests on a scan that evaluated no rules: ` + D.map((e) => `${e.suite} (${e.tool})`).sort(f).join(", ") + ". It reported no finding because it looked for nothing."
137
150
  });
138
151
  continue;
139
152
  }
140
- let w = p.filter((e) => o.has(e.suite));
141
- if (w.length === 0) continue;
142
- let T = w.map((e) => o.get(e.suite));
153
+ let O = x.filter((e) => s.has(e.suite));
154
+ if (O.length === 0) continue;
155
+ let k = O.map((e) => s.get(e.suite));
143
156
  if (t.headCommit) {
144
- let e = p.filter((e, n) => T[n].commit !== t.headCommit);
157
+ let e = x.filter((e, n) => k[n].commit !== t.headCommit);
145
158
  e.length > 0 && n.push({
146
159
  kind: "stale-evidence",
147
- obligation: l.id,
160
+ obligation: h.id,
148
161
  severity: "medium",
149
- summary: `${l.id} rests on ` + e.map((e) => `a ${e.suite} run at ${o.get(e.suite).commit.slice(0, 12)}`).join(" and ") + `, not at HEAD (${t.headCommit.slice(0, 12)}).`
162
+ summary: `${h.id} rests on ` + e.map((e) => `a ${e.suite} run at ${s.get(e.suite).commit.slice(0, 12)}`).join(" and ") + `, not at HEAD (${t.headCommit.slice(0, 12)}).`
150
163
  });
151
164
  }
152
- let E = w.flatMap((e, t) => e.symbols.filter((e) => {
153
- let n = T[t].entries.find((t) => t.symbol === e);
165
+ let A = O.flatMap((e, t) => e.symbols.filter((e) => {
166
+ let n = k[t].entries.find((t) => t.symbol === e);
154
167
  return !n || n.outcome === "skip";
155
- }).map((t) => `${e.suite}:${t}`)), D = w.reduce((e, t) => e + t.symbols.length, 0);
156
- if (E.length > 0 && E.length === D) {
168
+ }).map((t) => `${e.suite}:${t}`)), j = O.reduce((e, t) => e + t.symbols.length, 0);
169
+ if (A.length > 0 && A.length === j) {
157
170
  n.push({
158
171
  kind: "vacuous-evidence",
159
- obligation: l.id,
172
+ obligation: h.id,
160
173
  severity: "high",
161
- summary: `every symbol bound to ${l.id} was skipped or absent from its run: ${E.sort(f).join(", ")}. The row reads as covered and nothing was verified.`
174
+ summary: `every symbol bound to ${h.id} was skipped or absent from its run: ${A.sort(f).join(", ")}. The row reads as covered and nothing was verified.`
162
175
  });
163
176
  continue;
164
177
  }
165
- let O = i(l.statement ?? "");
166
- if (O) {
167
- let e = u(O, T.flatMap((e) => e.entries.map((e) => e.config).filter((e) => !!e)));
178
+ let M = i(h.statement ?? "");
179
+ if (M) {
180
+ let e = u(M, k.flatMap((e) => e.entries.map((e) => e.config).filter((e) => !!e)));
168
181
  if (e.covered < e.demanded) {
169
182
  n.push({
170
183
  kind: "combinatorial-gap",
171
- obligation: l.id,
184
+ obligation: h.id,
172
185
  severity: "medium",
173
- summary: `${l.id} demands ${e.demanded} ${e.strength}-way combinations and its runs reached ${e.covered}. Never run: ${e.gaps.slice(0, 10).join("; ")}` + (e.gaps.length > 10 ? ` (and ${e.gaps.length - 10} more)` : "")
186
+ summary: `${h.id} demands ${e.demanded} ${e.strength}-way combinations and its runs reached ${e.covered}. Never run: ${e.gaps.slice(0, 10).join("; ")}` + (e.gaps.length > 10 ? ` (and ${e.gaps.length - 10} more)` : "")
174
187
  });
175
188
  continue;
176
189
  }
177
190
  }
178
- let k = g(l, w, T, t.catalog);
179
- if (k) {
180
- n.push(k);
191
+ let N = g(h, O, k, t.catalog);
192
+ if (N) {
193
+ n.push(N);
181
194
  continue;
182
195
  }
183
- let A = _(l, p, t);
184
- if (A) {
185
- n.push(A);
196
+ let P = _(h, x, t);
197
+ if (P) {
198
+ n.push(P);
186
199
  continue;
187
200
  }
188
- let j = v(l, w, T, t);
189
- if (j) {
190
- n.push(j);
201
+ let F = v(h, O, k, t);
202
+ if (F) {
203
+ n.push(F);
191
204
  continue;
192
205
  }
193
- n.length === d && r.push(l.id);
206
+ n.length === p && a.length === y && r.push(h.id);
194
207
  }
195
- return n.sort((e, t) => f(e.obligation, t.obligation) || f(e.kind, t.kind)), {
208
+ return n.sort((e, t) => f(e.obligation, t.obligation) || f(e.kind, t.kind)), a.sort((e, t) => f(e.obligation, t.obligation) || f(e.check, t.check)), {
196
209
  findings: n,
197
- healthy: r.sort(f)
210
+ healthy: r.sort(f),
211
+ unevaluated: a
198
212
  };
199
213
  }
200
214
  function f(e, t) {
@@ -248,7 +262,7 @@ function v(e, t, n, r) {
248
262
  if (!e.criticality) return null;
249
263
  let a = i[e.criticality];
250
264
  if (a === void 0) return null;
251
- let o = S(t, n);
265
+ let o = C(t, n);
252
266
  if (o.length === 0) return {
253
267
  kind: "unmeasured-mutation-score",
254
268
  obligation: e.id,
@@ -266,12 +280,12 @@ function v(e, t, n, r) {
266
280
  var y = .5;
267
281
  function b(e, t, n) {
268
282
  if (n.length === 0) return [];
269
- let r = x(e.statement);
283
+ let r = S(e.statement);
270
284
  if (r.size === 0) return [];
271
285
  let i = [];
272
286
  for (let e of t) {
273
- let t = n.filter((t) => t.suite === e.suite).find((e) => e.injects.some((e) => {
274
- let t = x(e);
287
+ let t = n.filter((t) => t.suite === e.suite && e.symbols.some((e) => x(e, t.symbol))).find((e) => e.injects.some((e) => {
288
+ let t = S(e);
275
289
  if (t.size === 0) return !1;
276
290
  let n = 0;
277
291
  for (let e of t) r.has(e) && (n += 1);
@@ -281,7 +295,10 @@ function b(e, t, n) {
281
295
  }
282
296
  return i;
283
297
  }
284
- function x(e) {
298
+ function x(e, t) {
299
+ return e === t || e.endsWith(`::${t}`) || t.endsWith(`::${e}`);
300
+ }
301
+ function S(e) {
285
302
  let t = /* @__PURE__ */ new Set([
286
303
  "the",
287
304
  "a",
@@ -307,17 +324,17 @@ function x(e) {
307
324
  ]);
308
325
  return new Set(e.split(/[^A-Za-z0-9]+/).map((e) => e.toLowerCase()).filter((e) => e.length > 2 && !t.has(e)));
309
326
  }
310
- function S(e, t) {
327
+ function C(e, t) {
311
328
  let n = new Set(e.map((e) => e.suite)), r = [];
312
329
  for (let e of t) if (n.has(e.suite)) for (let t of e.entries) t.metric === "mutation-score" && t.score !== void 0 && t.outcome !== "skip" && r.push(t.score);
313
330
  return r;
314
331
  }
315
- function C(e) {
332
+ function w(e) {
316
333
  return `${e.kind}:${e.obligation}`;
317
334
  }
318
- function w(e, t) {
335
+ function T(e, t) {
319
336
  let n = new Set(t.accepted);
320
- return e.findings.filter((e) => !n.has(C(e)));
337
+ return e.findings.filter((e) => !n.has(w(e)));
321
338
  }
322
339
  //#endregion
323
- export { i as a, S as i, C as n, w as r, d as t };
340
+ export { i as a, C as i, w as n, T as r, d as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./version-BMXhyIie.js";
1
+ import { t as e } from "./version-CMxMIh5g.js";
2
2
  import { BaseCommand as t, maybeOfferUpdate as n } from "@agent-ix/ix-cli-core";
3
3
  import { existsSync as r, readFileSync as i, readdirSync as a, statSync as o } from "node:fs";
4
4
  import { basename as s, join as c, resolve as l } from "node:path";
@@ -0,0 +1,7 @@
1
+ import { ProofAttestation } from './types.js';
2
+ export declare function sealAttestation(input: Omit<ProofAttestation, "digest"> | (Omit<ProofAttestation, "digest"> & {
3
+ digest?: undefined;
4
+ })): ProofAttestation;
5
+ export declare function verifyAttestation(value: unknown): ProofAttestation;
6
+ export declare function attestationBytes(value: ProofAttestation): Uint8Array;
7
+ //# sourceMappingURL=attestations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attestations.d.ts","sourceRoot":"","sources":["../../src/change-assurance/attestations.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,wBAAgB,eAAe,CAC7B,KAAK,EACD,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAChC,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC,GAC9D,gBAAgB,CASlB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAIlE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,GAAG,UAAU,CAEpE"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Reusable change-assurance integrity contracts (FR-063..FR-065).
3
+ *
4
+ * Digests establish content integrity. Recorded actor labels are attribution;
5
+ * neither is an authentication, authorization, signature, or identity claim.
6
+ */
7
+ export { IntegrityError, assertDigest, blake3Hex, canonicalBytes, canonicalizeJcs, digestValue, parseStrictJson, } from './integrity.js';
8
+ export { recordBytes, hashIxFlowEvent, sealChangeRecord, validateDecision, verifyChangeRecord, verifyIxFlowChain, verifyLineage, } from './records.js';
9
+ export { attestationBytes, sealAttestation, verifyAttestation, } from './attestations.js';
10
+ export { CHANGE_ASSURANCE_INTEGRITY_BOUNDARY, attestationPath, changeAssuranceRoot, intakeAttestation, readAttestation, readChangeRecord, recordPath, recoverChangeAssuranceStaging, writeChangeRecord, type IntakeOptions, } from './store.js';
11
+ export { verifyChangeAssurance, verifyReceipt } from './verify.js';
12
+ export { CHANGE_ASSURANCE_SCHEMA_NAMES, changeAssuranceSchemaPath, readChangeAssuranceSchema, type ChangeAssuranceSchemaName, } from './schema-assets.js';
13
+ export type * from './types.js';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/change-assurance/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,EACd,YAAY,EACZ,SAAS,EACT,cAAc,EACd,eAAe,EACf,WAAW,EACX,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,EACnC,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,6BAA6B,EAC7B,iBAAiB,EACjB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,oBAAoB,CAAC;AAC5B,mBAAmB,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare class IntegrityError extends Error {
2
+ constructor(message: string);
3
+ }
4
+ export declare function blake3Hex(bytes: Uint8Array): string;
5
+ export declare function parseStrictJson(input: string | Uint8Array): unknown;
6
+ export declare function canonicalizeJcs(value: unknown): string;
7
+ export declare function canonicalBytes(value: unknown): Uint8Array;
8
+ export declare function digestValue(value: Record<string, unknown>): string;
9
+ export declare function assertDigest(value: Record<string, unknown>): void;
10
+ export declare function assertValidUnicode(value: string): void;
11
+ //# sourceMappingURL=integrity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrity.d.ts","sourceRoot":"","sources":["../../src/change-assurance/integrity.ts"],"names":[],"mappings":"AAKA,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEnD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAenE;AAkID,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CA0BtD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAEzD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAIlE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CASjE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAatD"}
@@ -0,0 +1,22 @@
1
+ import { ChangeAssuranceRecord, Check, DecisionHistory, ReceiptDecisionEvent } from './types.js';
2
+ export declare function sealChangeRecord(input: Omit<ChangeAssuranceRecord, "digest"> | (Omit<ChangeAssuranceRecord, "digest"> & {
3
+ digest?: undefined;
4
+ })): ChangeAssuranceRecord;
5
+ export declare function verifyChangeRecord(value: unknown): ChangeAssuranceRecord;
6
+ export declare function recordBytes(value: ChangeAssuranceRecord): Uint8Array;
7
+ export declare function verifyLineage(record: ChangeAssuranceRecord, parents: ChangeAssuranceRecord[]): string[];
8
+ export declare function validateDecision(record: ChangeAssuranceRecord, history: DecisionHistory): Check & {
9
+ event: ReceiptDecisionEvent | null;
10
+ };
11
+ export declare function validateCommand(value: unknown): void;
12
+ /** Pure local implementation of ix-flow FR-013's public event hash contract. */
13
+ export declare function hashIxFlowEvent(event: Omit<DecisionHistory["events"][number], "hash">): string;
14
+ export declare function verifyIxFlowChain(events: DecisionHistory["events"]): boolean;
15
+ export declare function object(value: unknown, name: string): Record<string, unknown>;
16
+ export declare function exact(value: Record<string, unknown>, allowed: string[]): void;
17
+ export declare function array(value: unknown, name: string, nonemptyValue: boolean): unknown[];
18
+ export declare function nonempty(value: unknown, name: string): string;
19
+ export declare function identity(value: unknown, name: string): void;
20
+ export declare function digest(value: unknown, name: string): void;
21
+ export declare function compareUtf16(left: string, right: string): number;
22
+ //# sourceMappingURL=records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/change-assurance/records.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,qBAAqB,EACrB,KAAK,EACL,eAAe,EACf,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAKpB,wBAAgB,gBAAgB,CAC9B,KAAK,EACD,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,GACrC,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC,GACnE,qBAAqB,CASvB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAIxE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,qBAAqB,GAAG,UAAU,CAEpE;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,qBAAqB,EAAE,GA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..FR-065. */
2
+ export declare const CHANGE_ASSURANCE_SCHEMA_NAMES: readonly ["change-assurance-record-v1.schema.json", "proof-attestation-v1.schema.json", "verification-receipt-v1.schema.json"];
3
+ export type ChangeAssuranceSchemaName = (typeof CHANGE_ASSURANCE_SCHEMA_NAMES)[number];
4
+ /** Absolute path to a source-tree or packaged change-assurance schema. */
5
+ export declare function changeAssuranceSchemaPath(name: ChangeAssuranceSchemaName): string;
6
+ /** Read one normative change-assurance schema as parsed JSON. */
7
+ export declare function readChangeAssuranceSchema(name: ChangeAssuranceSchemaName): unknown;
8
+ //# sourceMappingURL=schema-assets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-assets.d.ts","sourceRoot":"","sources":["../../src/change-assurance/schema-assets.ts"],"names":[],"mappings":"AAIA,4EAA4E;AAC5E,eAAO,MAAM,6BAA6B,gIAIhC,CAAC;AAEX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAIjD,0EAA0E;AAC1E,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,yBAAyB,GAC9B,MAAM,CAER;AAED,iEAAiE;AACjE,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAET"}
@@ -0,0 +1,18 @@
1
+ import { ChangeAssuranceRecord, ProofAttestation } from './types.js';
2
+ export declare function changeAssuranceRoot(repo: string): string;
3
+ export declare function recordPath(repo: string, digest: string): string;
4
+ export declare function attestationPath(repo: string, digest: string): string;
5
+ export declare function writeChangeRecord(repo: string, record: ChangeAssuranceRecord): string;
6
+ export declare function readChangeRecord(repo: string, digest: string): ChangeAssuranceRecord | null;
7
+ export interface IntakeOptions {
8
+ /** Test-only failure seam immediately before the single visibility rename. */
9
+ beforeRename?: () => void;
10
+ }
11
+ export declare function intakeAttestation(repo: string, rawAttestation: Uint8Array, output: Uint8Array, options?: IntakeOptions): string;
12
+ export declare function readAttestation(repo: string, digest: string): {
13
+ attestation: ProofAttestation;
14
+ output: Uint8Array;
15
+ } | null;
16
+ export declare function recoverChangeAssuranceStaging(repo: string): number;
17
+ export declare const CHANGE_ASSURANCE_INTEGRITY_BOUNDARY: string;
18
+ //# sourceMappingURL=store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/change-assurance/store.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAI1E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,qBAAqB,GAC5B,MAAM,CAcR;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,qBAAqB,GAAG,IAAI,CAO9B;AAED,MAAM,WAAW,aAAa;IAC5B,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,UAAU,EAC1B,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,aAAkB,GAC1B,MAAM,CA0CR;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb;IAAE,WAAW,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,CAe9D;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASlE;AAmDD,eAAO,MAAM,mCAAmC,QAE9C,CAAC"}