@agent-ix/quoin 0.22.5 → 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 (200) hide show
  1. package/dist/{advisor-BkgwDKvQ.js → advisor-B0rESCx1.js} +1 -1
  2. package/dist/{auditor-C3bSmPD_.js → auditor-Dd3i9Aqx.js} +2 -2
  3. package/dist/{base-CqKNs2Kd.js → base-gAClyCNd.js} +1 -1
  4. package/dist/change-assurance/attestations.d.ts +7 -0
  5. package/dist/change-assurance/attestations.d.ts.map +1 -0
  6. package/dist/change-assurance/index.d.ts +14 -0
  7. package/dist/change-assurance/index.d.ts.map +1 -0
  8. package/dist/change-assurance/integrity.d.ts +11 -0
  9. package/dist/change-assurance/integrity.d.ts.map +1 -0
  10. package/dist/change-assurance/records.d.ts +22 -0
  11. package/dist/change-assurance/records.d.ts.map +1 -0
  12. package/dist/change-assurance/schema-assets.d.ts +8 -0
  13. package/dist/change-assurance/schema-assets.d.ts.map +1 -0
  14. package/dist/change-assurance/store.d.ts +18 -0
  15. package/dist/change-assurance/store.d.ts.map +1 -0
  16. package/dist/change-assurance/types.d.ts +180 -0
  17. package/dist/change-assurance/types.d.ts.map +1 -0
  18. package/dist/change-assurance/verify.d.ts +4 -0
  19. package/dist/change-assurance/verify.d.ts.map +1 -0
  20. package/dist/change-assurance-CyKLPeKa.js +1236 -0
  21. package/dist/cli.js +1 -1
  22. package/dist/commands/advise.js +19 -19
  23. package/dist/commands/assurance.js +20 -20
  24. package/dist/commands/catalog/list.js +2 -2
  25. package/dist/commands/catalog/methods.js +3 -3
  26. package/dist/commands/catalog/show.js +2 -2
  27. package/dist/commands/catalog/validate.js +2 -2
  28. package/dist/commands/change-assurance/common.d.ts +37 -0
  29. package/dist/commands/change-assurance/common.d.ts.map +1 -0
  30. package/dist/commands/change-assurance/index.d.ts +8 -0
  31. package/dist/commands/change-assurance/index.d.ts.map +1 -0
  32. package/dist/commands/change-assurance/index.js +12 -0
  33. package/dist/commands/change-assurance/intake.d.ts +15 -0
  34. package/dist/commands/change-assurance/intake.d.ts.map +1 -0
  35. package/dist/commands/change-assurance/intake.js +53 -0
  36. package/dist/commands/change-assurance/receipt.d.ts +21 -0
  37. package/dist/commands/change-assurance/receipt.d.ts.map +1 -0
  38. package/dist/commands/change-assurance/receipt.js +99 -0
  39. package/dist/commands/change-assurance/recover.d.ts +13 -0
  40. package/dist/commands/change-assurance/recover.d.ts.map +1 -0
  41. package/dist/commands/change-assurance/recover.js +29 -0
  42. package/dist/commands/change-assurance/schema.d.ts +13 -0
  43. package/dist/commands/change-assurance/schema.d.ts.map +1 -0
  44. package/dist/commands/change-assurance/schema.js +40 -0
  45. package/dist/commands/change-assurance/seal-attestation.d.ts +15 -0
  46. package/dist/commands/change-assurance/seal-attestation.d.ts.map +1 -0
  47. package/dist/commands/change-assurance/seal-attestation.js +58 -0
  48. package/dist/commands/change-assurance/seal-record.d.ts +14 -0
  49. package/dist/commands/change-assurance/seal-record.d.ts.map +1 -0
  50. package/dist/commands/change-assurance/seal-record.js +53 -0
  51. package/dist/commands/change-assurance/verify-receipt.d.ts +13 -0
  52. package/dist/commands/change-assurance/verify-receipt.d.ts.map +1 -0
  53. package/dist/commands/change-assurance/verify-receipt.js +41 -0
  54. package/dist/commands/completeness.js +2 -2
  55. package/dist/commands/config/doctor.js +1 -1
  56. package/dist/commands/config/edit.js +1 -1
  57. package/dist/commands/config/get.js +1 -1
  58. package/dist/commands/config/set.js +1 -1
  59. package/dist/commands/evidence/affirm.js +19 -19
  60. package/dist/commands/evidence/audit.js +26 -26
  61. package/dist/commands/evidence/baseline.js +21 -21
  62. package/dist/commands/evidence/gc.js +3 -3
  63. package/dist/commands/evidence/index.js +1 -1
  64. package/dist/commands/evidence/inspect-mocks.js +4 -4
  65. package/dist/commands/evidence/record.d.ts.map +1 -1
  66. package/dist/commands/evidence/record.js +28 -24
  67. package/dist/commands/graph/change-impact.d.ts +16 -0
  68. package/dist/commands/graph/change-impact.d.ts.map +1 -0
  69. package/dist/commands/graph/change-impact.js +29 -0
  70. package/dist/commands/graph/churn.d.ts +14 -0
  71. package/dist/commands/graph/churn.d.ts.map +1 -0
  72. package/dist/commands/graph/churn.js +15 -0
  73. package/dist/commands/graph/common.d.ts +16 -0
  74. package/dist/commands/graph/common.d.ts.map +1 -0
  75. package/dist/commands/graph/fan-out.d.ts +14 -0
  76. package/dist/commands/graph/fan-out.d.ts.map +1 -0
  77. package/dist/commands/graph/fan-out.js +15 -0
  78. package/dist/commands/graph/index.d.ts +8 -0
  79. package/dist/commands/graph/index.d.ts.map +1 -0
  80. package/dist/commands/graph/index.js +12 -0
  81. package/dist/commands/matrix.js +1 -1
  82. package/dist/commands/measurement/index.js +1 -1
  83. package/dist/commands/measurement/intervention.d.ts +11 -0
  84. package/dist/commands/measurement/intervention.d.ts.map +1 -0
  85. package/dist/commands/measurement/intervention.js +31 -0
  86. package/dist/commands/measurement/operational-release.d.ts +11 -0
  87. package/dist/commands/measurement/operational-release.d.ts.map +1 -0
  88. package/dist/commands/measurement/operational-release.js +31 -0
  89. package/dist/commands/measurement/record.d.ts.map +1 -1
  90. package/dist/commands/measurement/record.js +12 -11
  91. package/dist/commands/module/ensure-defaults.js +3 -3
  92. package/dist/commands/module/install.js +2 -2
  93. package/dist/commands/module/list.js +2 -2
  94. package/dist/commands/module/remove.js +2 -2
  95. package/dist/commands/report.d.ts +4 -0
  96. package/dist/commands/report.d.ts.map +1 -1
  97. package/dist/commands/report.js +49 -23
  98. package/dist/commands/review.js +1 -1
  99. package/dist/commands/to-plan.js +1 -1
  100. package/dist/commands/update.js +2 -2
  101. package/dist/commands/validate.js +1 -1
  102. package/dist/commands/write.js +3 -3
  103. package/dist/common-B1ZJ8CSO.js +36 -0
  104. package/dist/common-DTrmnvL-.js +35 -0
  105. package/dist/{completeness-DamWradt.js → completeness-BzBuNq6w.js} +1 -1
  106. package/dist/evidence/adapters/contract-conformance.d.ts +16 -0
  107. package/dist/evidence/adapters/contract-conformance.d.ts.map +1 -0
  108. package/dist/evidence/adapters/differential-report.d.ts +18 -0
  109. package/dist/evidence/adapters/differential-report.d.ts.map +1 -0
  110. package/dist/evidence/adapters/registry.d.ts.map +1 -1
  111. package/dist/evidence/adapters/types.d.ts +31 -0
  112. package/dist/evidence/adapters/types.d.ts.map +1 -1
  113. package/dist/evidence/index.d.ts +5 -2
  114. package/dist/evidence/index.d.ts.map +1 -1
  115. package/dist/{evidence-DD0CHzJ0.js → evidence-OyqpqHLS.js} +191 -110
  116. package/dist/{flow-command-BfFNY0Rv.js → flow-command-CCRTE5Oe.js} +7 -7
  117. package/dist/graph-analysis/analysis.d.ts +106 -0
  118. package/dist/graph-analysis/analysis.d.ts.map +1 -0
  119. package/dist/graph-analysis/index.d.ts +6 -0
  120. package/dist/graph-analysis/index.d.ts.map +1 -0
  121. package/dist/graph-analysis/input.d.ts +33 -0
  122. package/dist/graph-analysis/input.d.ts.map +1 -0
  123. package/dist/graph-analysis/load.d.ts +21 -0
  124. package/dist/graph-analysis/load.d.ts.map +1 -0
  125. package/dist/graph-analysis/render.d.ts +4 -0
  126. package/dist/graph-analysis/render.d.ts.map +1 -0
  127. package/dist/graph-analysis-IWaoJJSN.js +657 -0
  128. package/dist/index.d.ts +1 -0
  129. package/dist/index.d.ts.map +1 -1
  130. package/dist/index.js +11 -9
  131. package/dist/measurement/agent-eval-intervention.d.ts +6 -0
  132. package/dist/measurement/agent-eval-intervention.d.ts.map +1 -0
  133. package/dist/measurement/atomic-file.d.ts +5 -0
  134. package/dist/measurement/atomic-file.d.ts.map +1 -0
  135. package/dist/measurement/date-time.d.ts +3 -0
  136. package/dist/measurement/date-time.d.ts.map +1 -0
  137. package/dist/measurement/github-release-operational.d.ts +7 -0
  138. package/dist/measurement/github-release-operational.d.ts.map +1 -0
  139. package/dist/measurement/graph-adapters.d.ts +304 -0
  140. package/dist/measurement/graph-adapters.d.ts.map +1 -0
  141. package/dist/measurement/graph-portfolio-load.d.ts +3 -0
  142. package/dist/measurement/graph-portfolio-load.d.ts.map +1 -0
  143. package/dist/measurement/graph-portfolio.d.ts +158 -0
  144. package/dist/measurement/graph-portfolio.d.ts.map +1 -0
  145. package/dist/measurement/index.d.ts +15 -2
  146. package/dist/measurement/index.d.ts.map +1 -1
  147. package/dist/measurement/intervention-report.d.ts +24 -0
  148. package/dist/measurement/intervention-report.d.ts.map +1 -0
  149. package/dist/measurement/intervention-schema.d.ts +144 -0
  150. package/dist/measurement/intervention-schema.d.ts.map +1 -0
  151. package/dist/measurement/intervention-types.d.ts +105 -0
  152. package/dist/measurement/intervention-types.d.ts.map +1 -0
  153. package/dist/measurement/intervention.d.ts +16 -0
  154. package/dist/measurement/intervention.d.ts.map +1 -0
  155. package/dist/measurement/operational-report.d.ts +17 -0
  156. package/dist/measurement/operational-report.d.ts.map +1 -0
  157. package/dist/measurement/operational-schema.d.ts +461 -0
  158. package/dist/measurement/operational-schema.d.ts.map +1 -0
  159. package/dist/measurement/operational-types.d.ts +121 -0
  160. package/dist/measurement/operational-types.d.ts.map +1 -0
  161. package/dist/measurement/operational.d.ts +13 -0
  162. package/dist/measurement/operational.d.ts.map +1 -0
  163. package/dist/measurement/plans.d.ts +3 -1
  164. package/dist/measurement/plans.d.ts.map +1 -1
  165. package/dist/measurement/portfolio.d.ts +7 -1
  166. package/dist/measurement/portfolio.d.ts.map +1 -1
  167. package/dist/measurement/report.d.ts +4 -0
  168. package/dist/measurement/report.d.ts.map +1 -1
  169. package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
  170. package/dist/measurement/store.d.ts +7 -0
  171. package/dist/measurement/store.d.ts.map +1 -1
  172. package/dist/measurement/types.d.ts +2 -0
  173. package/dist/measurement/types.d.ts.map +1 -1
  174. package/dist/measurement-j8sDSqx5.js +2980 -0
  175. package/dist/{modules-ez9httBA.js → modules-DDQkKC4l.js} +2 -2
  176. package/dist/{plugins-C-ta0llj.js → plugins-CHpYhpEI.js} +1 -1
  177. package/dist/quire/assurance.d.ts +109 -0
  178. package/dist/quire/assurance.d.ts.map +1 -0
  179. package/dist/quire/contract.d.ts +2 -1
  180. package/dist/quire/contract.d.ts.map +1 -1
  181. package/dist/quire/index.d.ts +3 -2
  182. package/dist/quire/index.d.ts.map +1 -1
  183. package/dist/quire/validate.d.ts +5 -0
  184. package/dist/quire/validate.d.ts.map +1 -1
  185. package/dist/{quire-D8tCpgyA.js → quire-BsVj1xIR.js} +54 -47
  186. package/dist/schema-assets-HZWo_iFN.js +233 -0
  187. package/dist/schemas/assurance-v1.schema.json +225 -0
  188. package/dist/schemas/change-assurance-record-v1.schema.json +234 -0
  189. package/dist/schemas/operational-evidence-v1.schema.json +381 -0
  190. package/dist/schemas/proof-attestation-v1.schema.json +96 -0
  191. package/dist/schemas/verification-receipt-v1.schema.json +208 -0
  192. package/dist/{version-Dg0e6CZU.js → version-CMxMIh5g.js} +1 -1
  193. package/dist/{write-DElwS9xc.js → write-CGTI0dRO.js} +1 -1
  194. package/package.json +5 -1
  195. package/skills/gap-analysis/references/step-4-underspecified-code.md +36 -7
  196. package/skills/gap-analysis/references/step-5-semantic-review.md +2 -2
  197. package/skills/gap-analysis/references/step-6-specreview-artifact.md +6 -5
  198. package/skills/spec-fuzz/SKILL.md +7 -6
  199. package/dist/measurement-CzB74Q07.js +0 -595
  200. package/dist/store--2sAv12X.js +0 -219
@@ -1,9 +1,9 @@
1
- import { t as e } from "../base-CqKNs2Kd.js";
2
- import { a as t, c as n, d as r, i, l as a, n as o, r as s, s as c, u as l } from "../measurement-CzB74Q07.js";
3
- import { i as u } from "../store--2sAv12X.js";
4
- import { Flags as d } from "@oclif/core";
1
+ import { t as e } from "../base-gAClyCNd.js";
2
+ import { _ as t, b as n, d as r, h as i, l as a, m as o, o as s, p as c, r as l, v as u, x as d, y as f } from "../measurement-j8sDSqx5.js";
3
+ import { c as p } from "../schema-assets-HZWo_iFN.js";
4
+ import { Flags as m } from "@oclif/core";
5
5
  //#region src/commands/report.ts
6
- var f = class f extends e {
6
+ var h = class h extends e {
7
7
  static summary = "Render QA plans and measurements from the evidence store.";
8
8
  static description = "A deterministic store view. It accepts no typed values and runs no\nmeasurement producer. Plans with no records remain visible as not_computed.";
9
9
  static examples = [
@@ -13,51 +13,77 @@ var f = class f extends e {
13
13
  "quoin report --portfolio ../quoin --portfolio ../quire-rs"
14
14
  ];
15
15
  static flags = {
16
- repo: d.string({
16
+ repo: m.string({
17
17
  description: "Repository root.",
18
18
  default: "."
19
19
  }),
20
- portfolio: d.string({
20
+ portfolio: m.string({
21
21
  description: "Repository root to include; repeat for a portfolio view.",
22
22
  multiple: !0
23
23
  }),
24
- since: d.string({ description: "Compare the named source revision to latest." }),
25
- series: d.string({ description: "Render the history of one metric." }),
26
- format: d.string({
24
+ "graph-export": m.string({
25
+ description: "Repository=path mapping for an existing Quire assurance export; repeatable.",
26
+ multiple: !0
27
+ }),
28
+ "graph-premises": m.string({
29
+ description: "Repository=path mapping for accepted graph premises; repeatable.",
30
+ multiple: !0
31
+ }),
32
+ "graph-audit": m.string({
33
+ description: "Repository=path mapping for a source-bound audit envelope; repeatable.",
34
+ multiple: !0
35
+ }),
36
+ changed: m.string({
37
+ description: "Repository=requirement mapping for graph change-impact; repeatable.",
38
+ multiple: !0
39
+ }),
40
+ since: m.string({ description: "Compare the named source revision to latest." }),
41
+ series: m.string({ description: "Render the history of one metric." }),
42
+ format: m.string({
27
43
  description: "Output format.",
28
44
  options: ["human", "json"],
29
45
  default: "human"
30
46
  })
31
47
  };
32
48
  async run() {
33
- let { flags: e } = await this.parse(f);
49
+ let { flags: e } = await this.parse(h);
34
50
  e.since && e.series && this.error("--since and --series are mutually exclusive", { exit: 2 });
35
51
  try {
36
- if (e.portfolio?.length) {
37
- (e.since || e.series) && this.error("--portfolio cannot be combined with --since or --series", { exit: 2 });
38
- let t = o(e.portfolio);
39
- this.log(e.format === "json" ? i(t).trimEnd() : s(t));
52
+ let m = !!(e["graph-export"]?.length || e["graph-premises"]?.length || e["graph-audit"]?.length || e.changed?.length);
53
+ if (m && !e.portfolio?.length && this.error("graph portfolio mappings require --portfolio", { exit: 2 }), e.portfolio?.length) {
54
+ if ((e.since || e.series) && this.error("--portfolio cannot be combined with --since or --series", { exit: 2 }), m) {
55
+ let t = l(e.portfolio, {
56
+ graphExports: e["graph-export"],
57
+ graphPremises: e["graph-premises"],
58
+ graphAudits: e["graph-audit"],
59
+ changed: e.changed
60
+ });
61
+ this.log(e.format === "json" ? s(t).trimEnd() : a(t));
62
+ return;
63
+ }
64
+ let t = r(e.portfolio);
65
+ this.log(e.format === "json" ? o(t).trimEnd() : c(t));
40
66
  return;
41
67
  }
42
68
  if (e.series) {
43
- let t = r(e.repo, e.series);
44
- this.log(e.format === "json" ? u(t).trimEnd() : p(e.series, t));
69
+ let t = d(e.repo, e.series);
70
+ this.log(e.format === "json" ? p(t).trimEnd() : g(e.series, t));
45
71
  return;
46
72
  }
47
73
  if (e.since) {
48
- let t = c(e.repo, e.since);
49
- this.log(e.format === "json" ? u(t).trimEnd() : n(t));
74
+ let n = t(e.repo, e.since);
75
+ this.log(e.format === "json" ? p(n).trimEnd() : u(n));
50
76
  return;
51
77
  }
52
- let d = t(e.repo);
53
- this.log(e.format === "json" ? l(d).trimEnd() : a(d));
78
+ let h = i(e.repo);
79
+ this.log(e.format === "json" ? n(h).trimEnd() : f(h));
54
80
  } catch (e) {
55
81
  let t = e instanceof Error ? e.message : String(e);
56
82
  this.error(t, { exit: 2 });
57
83
  }
58
84
  }
59
85
  };
60
- function p(e, t) {
86
+ function g(e, t) {
61
87
  let n = [`# ${e} series`, ""];
62
88
  if (t.length === 0) return `${n.join("\n")}not_computed: no records\n`;
63
89
  for (let e of t) {
@@ -67,4 +93,4 @@ function p(e, t) {
67
93
  return n.push(""), n.join("\n");
68
94
  }
69
95
  //#endregion
70
- export { f as default };
96
+ export { h as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../flow-command-BfFNY0Rv.js";
1
+ import { t as e } from "../flow-command-CCRTE5Oe.js";
2
2
  //#region src/commands/review.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Run a composite spec review workflow.";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../flow-command-BfFNY0Rv.js";
1
+ import { t as e } from "../flow-command-CCRTE5Oe.js";
2
2
  //#region src/commands/to-plan.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Convert accepted requirements into an implementation plan.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../version-Dg0e6CZU.js";
2
- import { t } from "../base-CqKNs2Kd.js";
1
+ import { t as e } from "../version-CMxMIh5g.js";
2
+ import { t } from "../base-gAClyCNd.js";
3
3
  import { runSelfUpdate as n } from "@agent-ix/ix-cli-core";
4
4
  import { Flags as r } from "@oclif/core";
5
5
  //#region src/commands/update.ts
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-CqKNs2Kd.js";
1
+ import { t as e } from "../base-gAClyCNd.js";
2
2
  import { readFileSync as t, readdirSync as n } from "node:fs";
3
3
  import { basename as r, extname as i, join as a, relative as o } from "node:path";
4
4
  import { Flags as s } from "@oclif/core";
@@ -1,6 +1,6 @@
1
- import { o as e, t } from "../base-CqKNs2Kd.js";
2
- import { n } from "../modules-ez9httBA.js";
3
- import { n as r, r as i, t as a } from "../write-DElwS9xc.js";
1
+ import { o as e, t } from "../base-gAClyCNd.js";
2
+ import { n } from "../modules-DDQkKC4l.js";
3
+ import { n as r, r as i, t as a } from "../write-CGTI0dRO.js";
4
4
  import { Args as o, Flags as s } from "@oclif/core";
5
5
  //#region src/commands/write.ts
6
6
  var c = class c extends t {
@@ -0,0 +1,36 @@
1
+ import { E as e, O as t } from "./change-assurance-CyKLPeKa.js";
2
+ import { readFileSync as n } from "node:fs";
3
+ import { Flags as r } from "@oclif/core";
4
+ //#region src/commands/change-assurance/common.ts
5
+ var i = r.string({
6
+ description: "Repository root for retained Quoin state.",
7
+ default: "."
8
+ }), a = r.boolean({ description: "Emit canonical JSON." });
9
+ function o(e) {
10
+ return n(e === "-" ? 0 : e);
11
+ }
12
+ function s(e) {
13
+ return t(o(e));
14
+ }
15
+ function c(t) {
16
+ return e(t);
17
+ }
18
+ function l(e) {
19
+ return e instanceof Error ? e.message : String(e);
20
+ }
21
+ function u(e, t) {
22
+ if (typeof e != "object" || !e || Array.isArray(e)) return "input must be a JSON object";
23
+ let n = t.filter((t) => Object.prototype.hasOwnProperty.call(e, t));
24
+ return n.length === 0 ? null : `input must not supply ${n.join(", ")}; it is derived when sealing`;
25
+ }
26
+ function d(e) {
27
+ let t = e.indexOf("=");
28
+ if (t <= 0) return null;
29
+ let n = e.slice(0, t).trim(), r = e.slice(t + 1).trim();
30
+ return n === "" || !/^[a-f0-9]{64}$/.test(r) ? null : {
31
+ proof_id: n,
32
+ attestation_digest: r
33
+ };
34
+ }
35
+ //#endregion
36
+ export { o as a, i as c, d as i, a as n, s as o, l as r, u as s, c as t };
@@ -0,0 +1,35 @@
1
+ import { n as e, r as t, t as n } from "./graph-analysis-IWaoJJSN.js";
2
+ import { Flags as r } from "@oclif/core";
3
+ //#region src/commands/graph/common.ts
4
+ var i = {
5
+ repo: r.string({
6
+ description: "Repository root for retained Quoin state.",
7
+ default: "."
8
+ }),
9
+ export: r.string({
10
+ description: "Existing Quire assurance-v1 JSON artifact.",
11
+ required: !0
12
+ }),
13
+ premises: r.string({
14
+ description: "Accepted assurance format/module/schema premises JSON.",
15
+ required: !0
16
+ }),
17
+ audit: r.string({
18
+ description: "Source-bound FR-032 audit-envelope JSON.",
19
+ required: !0
20
+ }),
21
+ json: r.boolean({ description: "Emit canonical JSON." })
22
+ };
23
+ function a(e) {
24
+ return t({
25
+ repo: e.repo,
26
+ exportPath: e.export,
27
+ premisesPath: e.premises,
28
+ auditPath: e.audit
29
+ });
30
+ }
31
+ function o(t, r) {
32
+ return (r ? e(t) : n(t)).trimEnd();
33
+ }
34
+ //#endregion
35
+ export { o as n, a as r, i as t };
@@ -1,4 +1,4 @@
1
- import { n as e, s as t } from "./base-CqKNs2Kd.js";
1
+ import { n as e, s as t } from "./base-gAClyCNd.js";
2
2
  import { readFileSync as n, readdirSync as r } from "node:fs";
3
3
  import { join as i, relative as a, sep as o } from "node:path";
4
4
  import { parse as s } from "yaml";
@@ -0,0 +1,16 @@
1
+ import { EvidenceAdapter } from './types.js';
2
+ /**
3
+ * Contract conformance JSONL — one replayed corpus fixture per line.
4
+ *
5
+ * Produced by `quire-contract-conformance run --manifest <corpus>` in
6
+ * `agent-ix/quire-contract-ir`. The runner replays a pinned corpus and reports
7
+ * whether each fixture's canonicalization matched; it decides nothing about
8
+ * sufficiency, and neither does this.
9
+ *
10
+ * No existing adapter reads it. `entries` expects one JSON object with an
11
+ * `entries` array, `junit` expects XML, and the finding-shaped adapters would
12
+ * write it into `findings/` — where the clean-versus-unrun distinction that
13
+ * FR-034 exists to make would be lost for every fixture in the corpus.
14
+ */
15
+ export declare const contractConformanceAdapter: EvidenceAdapter;
16
+ //# sourceMappingURL=contract-conformance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-conformance.d.ts","sourceRoot":"","sources":["../../../src/evidence/adapters/contract-conformance.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,YAAY,CAAC;AA2BpB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,EAAE,eAkExC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { EvidenceAdapter } from './types.js';
2
+ /**
3
+ * Domain differential reports — a domain engine compared against an external
4
+ * reference implementation, case by case.
5
+ *
6
+ * Produced by `agent-ix/tl-mltl` against R2U2/C2PO, and shaped for any domain
7
+ * that runs the same comparison. The report states agreement, mismatch,
8
+ * unsupported and tool-error counts; it reaches no verdict about whether the
9
+ * comparison was sufficient, and neither does this.
10
+ *
11
+ * No existing adapter reads it. `junit` has no state for "the external tool
12
+ * cannot express this case", `cargo-mutants` is mutation-shaped, `agent-eval`
13
+ * is measurement-shaped, and the finding-shaped adapters would record a
14
+ * disagreement as a rule violation — which is a different claim from "two
15
+ * implementations disagree", and one the report does not make.
16
+ */
17
+ export declare const differentialReportAdapter: EvidenceAdapter;
18
+ //# sourceMappingURL=differential-report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"differential-report.d.ts","sourceRoot":"","sources":["../../../src/evidence/adapters/differential-report.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EAErB,MAAM,YAAY,CAAC;AAkCpB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,EAAE,eAiFvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/evidence/adapters/registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAAE,eAuB5B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,eAAe,EAM9C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CACnC;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAS,cAAc,EA2BrD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAG1C,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,cAAc,GAAG,SAAS,CAO7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,eAAe,CAmBlB"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/evidence/adapters/registry.ts"],"names":[],"mappings":"AAQA,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAAE,eAuB5B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,eAAe,EAQ9C,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CACnC;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAS,cAAc,EA2BrD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAG1C,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,cAAc,GAAG,SAAS,CAO7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,eAAe,CAmBlB"}
@@ -27,9 +27,40 @@ export interface EvidenceAdapter {
27
27
  readonly tools: readonly string[];
28
28
  parse(raw: string): AdapterResult;
29
29
  }
30
+ /**
31
+ * A result the producer reported that quoin's run-entry vocabulary cannot
32
+ * carry.
33
+ *
34
+ * `RunEntry.outcome` is `pass | fail | skip | error`. A producer that reports
35
+ * "the external tool does not support this case" is saying none of those: it
36
+ * is not a skip (nothing chose to omit it) and not an error (nothing failed).
37
+ * Mapping it onto the nearest word would delete the distinction at the point
38
+ * of intake, permanently and silently — which is the failure this campaign
39
+ * exists to stop.
40
+ *
41
+ * So the adapter transcribes what it can and NAMES what it cannot. The command
42
+ * prints these; they are not dropped, and they are not smuggled in as a state
43
+ * they are not.
44
+ */
45
+ export interface UnrepresentedResult {
46
+ /** The producer's own identity for the result. */
47
+ symbol: string;
48
+ /** The producer's own state name, verbatim. */
49
+ state: string;
50
+ /** Why no run-entry outcome carries it. */
51
+ reason: string;
52
+ }
30
53
  /** What an adapter produces. */
31
54
  export interface AdapterResult {
32
55
  entries: RunEntry[];
56
+ /**
57
+ * Results the producer reported that no run-entry outcome represents.
58
+ *
59
+ * Absent when every result was transcribable. Never empty-when-present: an
60
+ * adapter with nothing to report omits the field rather than asserting an
61
+ * empty list, so "unrepresented: []" always means the adapter looked.
62
+ */
63
+ unrepresented?: UnrepresentedResult[];
33
64
  /**
34
65
  * The evidence kind this format proves, when the FORMAT ITSELF determines
35
66
  * it — and usually it does not.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/evidence/adapters/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,eAAe;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,aA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E,MAAM,EACxB,OAAO,EAAE,MAAM;CAKlB"}
@@ -7,13 +7,15 @@
7
7
  * already observed at ecosystem scale: 1,014 trace tags binding to nothing
8
8
  * while matrices read as covered (agent-ix/quire-rs#72).
9
9
  */
10
- export { affirm, baselinePath, bind, bindingsPath, canonicalJson, gc, inspectionsPath, latestMockInspection, latestMockInspections, latestRun, latestRuns, latestScans, listRecordedSuites, listMockInspections, listRuns, readBaseline, readBindings, readMockInspection, readMockInspections, readRun, readRuns, runPath, mockInspectionPath, short, storeRoot, suitesPath, writeBaseline, writeBindings, writeMockInspection, writeRun, } from './store.js';
10
+ export { affirm, baselinePath, bind, bindingsPath, canonicalJson, gc, inspectionsPath, latestMockInspection, latestMockInspections, latestRun, latestRuns, latestScans, listRecordedSuites, listMockInspections, listRuns, readBaseline, readBindings, readMockInspection, readMockInspections, readRun, readRuns, runPath, mockInspectionPath, short, StoreReadError, storeRoot, suitesPath, writeBaseline, writeBindings, writeMockInspection, writeRun, } from './store.js';
11
11
  export { MOCK_INSPECTIONS_DIR, MUTATION_SCORE_METRIC, RUNS_DIR, STORE_SCHEMA_VERSION, type Affirmation, type BaselineFile, type Binding, type BindingsFile, type MockInjection, type MockInspectionRecord, type RunEntry, type RunRecord, } from './types.js';
12
12
  export { obligationsFrom, recordRun, type RecordOutcome, type RecordRequest, } from './record.js';
13
13
  export { ADAPTERS, ADAPTER_NAMES, FINDING_ADAPTERS, entriesAdapter, selectAdapter, selectFindingAdapter, type FindingAdapter, } from './adapters/registry.js';
14
14
  export { junitAdapter, qualifiedName } from './adapters/junit.js';
15
15
  export { cargoMutantsAdapter } from './adapters/cargo-mutants.js';
16
- export { AdapterError, type AdapterResult, type EvidenceAdapter, } from './adapters/types.js';
16
+ export { contractConformanceAdapter } from './adapters/contract-conformance.js';
17
+ export { differentialReportAdapter } from './adapters/differential-report.js';
18
+ export { AdapterError, type AdapterResult, type EvidenceAdapter, type UnrepresentedResult, } from './adapters/types.js';
17
19
  export { parseCargoAudit, parseSarif, type FindingResult, } from './adapters/sarif.js';
18
20
  export type { Finding, FindingRecord } from './types.js';
19
21
  export { latestScan, listScans, readScan, readScans, scanIsVacuous, scanPath, writeScan, } from './store.js';
@@ -21,4 +23,5 @@ export { parseAuditScript } from './adapters/audit-script.js';
21
23
  export { parseSbom, sbomAdapter } from './adapters/sbom.js';
22
24
  export { parseAgentEval, agentEvalAdapter } from './adapters/agent-eval.js';
23
25
  export { inspectMockInjections, mockInspectionInput, } from './mock-inspection.js';
26
+ export { CHANGE_ASSURANCE_SCHEMA_NAMES, changeAssuranceSchemaPath, readChangeAssuranceSchema, type ChangeAssuranceSchemaName, } from '../change-assurance/schema-assets.js';
24
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evidence/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,EAAE,EACF,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,KAAK,EACL,SAAS,EACT,UAAU,EACV,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,QAAQ,EACR,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,SAAS,GACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,eAAe,EACf,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,UAAU,EACV,KAAK,aAAa,GACnB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,SAAS,EACT,aAAa,EACb,QAAQ,EACR,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EACL,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evidence/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,EAAE,EACF,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,OAA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