@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,12 +1,13 @@
1
- import { i as e, n as t, o as n, t as r } from "../../quire-UzoK3Azf.js";
2
- import { t as i } from "../../base-W7vrLi5E.js";
3
- import { t as a } from "../../advisor-BiKhR9Yp.js";
4
- import { r as o, t as s } from "../../auditor-ww0MC62a.js";
5
- import { d as c, g as l, h as u, p as d, s as f } from "../../evidence-BA5vyZJk.js";
6
- import { Flags as p } from "@oclif/core";
1
+ import { a as e, l as t, n, t as r } from "../../quire-BsVj1xIR.js";
2
+ import { t as i } from "../../base-gAClyCNd.js";
3
+ import { a, d as o, g as s, h as c, p as l } from "../../schema-assets-HZWo_iFN.js";
4
+ import { n as u } from "../../evidence-OyqpqHLS.js";
5
+ import { t as d } from "../../advisor-B0rESCx1.js";
6
+ import { r as f, t as p } from "../../auditor-Dd3i9Aqx.js";
7
7
  import { execFileSync as m } from "node:child_process";
8
+ import { Flags as h } from "@oclif/core";
8
9
  //#region src/commands/evidence/audit.ts
9
- var h = class f extends i {
10
+ var g = class a extends i {
10
11
  static summary = "Audit the evidence store: suspect links, staleness, vacuity.";
11
12
  static description = "Reads the store and reports. RUNS NOTHING (ADR-0011 invariant 1) — the\nconsumer's CI refreshes evidence, and an auditor that could re-run a suite could\nalso make a finding disappear by re-running it.\n\nChecks:\n suspect-link the statement changed after the evidence was bound\n stale-evidence bound to a missing run, or to a run behind HEAD\n vacuous-evidence every bound symbol was skipped or absent from the run\n undischarged no evidence is bound at all\n method-conformance evidence of a kind the declared method does not produce\n unknown-method the declared method is in no catalog\n insufficient-multiplicity criticality demands two independent suites\n insufficient-mutation-score criticality demands a mutation score it misses\n unmeasured-mutation-score a demanded mutation score, with none recorded\n\n--ratchet compares against spec/evidence/baseline.json and fails only on NEW\nviolations. A gate that fails on the whole existing backlog gets disabled within\na week. Write that baseline with: quoin evidence baseline";
12
13
  static examples = [
@@ -15,74 +16,85 @@ var h = class f extends i {
15
16
  "quoin evidence audit --json"
16
17
  ];
17
18
  static flags = {
18
- repo: p.string({
19
+ repo: h.string({
19
20
  description: "Repository root.",
20
21
  default: "."
21
22
  }),
22
- module: p.string({ description: "Module directory supplying the traceability model." }),
23
- ratchet: p.boolean({ description: "Report only violations absent from the baseline." }),
24
- strict: p.boolean({ description: "Exit 1 when any reported finding remains." }),
25
- json: p.boolean({ description: "Emit the report as JSON." }),
26
- "multiplicity-requires": p.string({
23
+ module: h.string({ description: "Module directory supplying the traceability model." }),
24
+ ratchet: h.boolean({ description: "Report only violations absent from the baseline." }),
25
+ strict: h.boolean({ description: "Exit 1 when any reported finding remains." }),
26
+ json: h.boolean({ description: "Emit the report as JSON." }),
27
+ "multiplicity-requires": h.string({
27
28
  description: "Criticality values demanding two independent suites. Repeatable. Unset by default: no obligation source in the ecosystem declares a criticality column, so a built-in default could never fire.",
28
29
  multiple: !0
29
30
  }),
30
- "mutation-floor": p.string({
31
+ "mutation-floor": h.string({
31
32
  description: "Minimum mutation score per criticality, as <criticality>=<0..1>. Repeatable. Unset by default, for the same reason as --multiplicity-requires: a built-in floor is a rule nobody chose.",
32
33
  multiple: !0
33
34
  })
34
35
  };
35
36
  async run() {
36
- let { flags: i } = await this.parse(f), p = n(r());
37
- p && this.error(p.message, { exit: 2 });
38
- let m = [
37
+ let { flags: i } = await this.parse(a), m = t(r());
38
+ m && this.error(m.message, { exit: 2 });
39
+ let h = [
39
40
  "coverage",
40
41
  "--scope",
41
42
  i.repo,
42
43
  "--json"
43
44
  ];
44
- i.module && m.push("--module", i.module);
45
- let h = e(t(m));
46
- h.ok || this.error(h.error.message, { exit: 2 });
47
- let y = s({
48
- obligations: h.value.obligations ?? [],
49
- bindings: l(i.repo).bindings,
50
- runs: c(i.repo),
51
- scans: d(i.repo),
52
- catalog: a(i.module ? [i.module] : void 0),
53
- headCommit: _(i.repo),
45
+ i.module && h.push("--module", i.module);
46
+ let g = e(n(h));
47
+ g.ok || this.error(g.error.message, { exit: 2 });
48
+ let b = v(i.repo), x = u(i.repo, b), S = p({
49
+ obligations: g.value.obligations ?? [],
50
+ bindings: s(i.repo).bindings,
51
+ runs: o(i.repo),
52
+ scans: l(i.repo),
53
+ injections: x.injections,
54
+ mockInspectionSuites: x.suites,
55
+ catalog: d(i.module ? [i.module] : void 0),
56
+ headCommit: b,
54
57
  multiplicityRequires: i["multiplicity-requires"],
55
- mutationFloor: v(i["mutation-floor"], (e) => this.error(e, { exit: 2 }))
56
- }), b = i.ratchet ? u(i.repo) : null, x = b !== null, S = b ? o(y, b) : y.findings;
57
- if (i.ratchet && !x && !i.json && this.log(g(i.repo)), i.json) this.log(JSON.stringify({
58
- findings: S,
59
- healthy: y.healthy,
60
- ratchet: x
58
+ mutationFloor: y(i["mutation-floor"], (e) => this.error(e, { exit: 2 }))
59
+ }), C = i.ratchet ? c(i.repo) : null, w = C !== null, T = C ? f(S, C) : S.findings;
60
+ if (i.ratchet && !w && !i.json && this.log(_(i.repo)), i.json) this.log(JSON.stringify({
61
+ findings: T,
62
+ healthy: S.healthy,
63
+ unevaluated: S.unevaluated,
64
+ ratchet: w
61
65
  }, null, 2));
62
- else if (S.length === 0) this.log(`${y.healthy.length} obligation(s) with healthy evidence; nothing to report`);
66
+ else if (T.length === 0 && S.unevaluated.length === 0) this.log(`${S.healthy.length} obligation(s) with healthy evidence; nothing to report`);
63
67
  else {
64
- for (let e of S) this.log(`[${e.severity}] ${e.kind}: ${e.summary}`);
65
- this.log(""), this.log(`${S.length} finding(s), ${y.healthy.length} healthy` + (x ? " (new violations only)" : ""));
68
+ for (let e of T) this.log(`[${e.severity}] ${e.kind}: ${e.summary}`);
69
+ for (let e of S.unevaluated) this.log(`[not-evaluated] ${e.check}: ${e.obligation}: ${e.reason}`);
70
+ this.log(""), this.log(`${T.length} finding(s), ${S.unevaluated.length} check(s) not evaluated, ${S.healthy.length} healthy` + (w ? " (new violations only)" : ""));
66
71
  }
67
- i.strict && S.length > 0 && this.exit(1);
72
+ i.strict && (T.length > 0 || S.unevaluated.length > 0) && this.exit(1);
68
73
  }
69
74
  };
70
- function g(e) {
71
- return `--ratchet requested but ${f(e)} does not exist; reporting the full backlog, not new violations. Write the baseline with: quoin evidence baseline`;
72
- }
73
75
  function _(e) {
76
+ return `--ratchet requested but ${a(e)} does not exist; reporting the full backlog, not new violations. Write the baseline with: quoin evidence baseline`;
77
+ }
78
+ function v(e) {
74
79
  try {
75
80
  return m("git", [
76
81
  "-C",
77
82
  e,
78
83
  "rev-parse",
79
84
  "HEAD"
80
- ], { encoding: "utf8" }).trim();
85
+ ], {
86
+ encoding: "utf8",
87
+ stdio: [
88
+ "ignore",
89
+ "pipe",
90
+ "ignore"
91
+ ]
92
+ }).trim();
81
93
  } catch {
82
94
  return;
83
95
  }
84
96
  }
85
- function v(e, t) {
97
+ function y(e, t) {
86
98
  if (!e || e.length === 0) return;
87
99
  let n = {};
88
100
  for (let r of e) {
@@ -92,4 +104,4 @@ function v(e, t) {
92
104
  return n;
93
105
  }
94
106
  //#endregion
95
- export { h as default, g as missingBaselineNotice, v as parseMutationFloor };
107
+ export { g as default, _ as missingBaselineNotice, y as parseMutationFloor };
@@ -1 +1 @@
1
- {"version":3,"file":"baseline.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/baseline.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAkB7C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,YAAY;IACxD,MAAM,CAAC,OAAO,SAA0D;IACxE,MAAM,CAAC,WAAW,SAU8C;IAEhE,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,KAAK;;;;;MASV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAiD3B"}
1
+ {"version":3,"file":"baseline.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/baseline.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAmB7C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,YAAY;IACxD,MAAM,CAAC,OAAO,SAA0D;IACxE,MAAM,CAAC,WAAW,SAU8C;IAEhE,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,KAAK;;;;;MASV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqD3B"}
@@ -1,79 +1,89 @@
1
- import { i as e, n as t, o as n, t as r } from "../../quire-UzoK3Azf.js";
2
- import { t as i } from "../../base-W7vrLi5E.js";
3
- import { t as a } from "../../advisor-BiKhR9Yp.js";
4
- import { n as o, t as s } from "../../auditor-ww0MC62a.js";
5
- import { g as c, m as l, s as u, u as d, v as f } from "../../evidence-BA5vyZJk.js";
6
- import { Flags as p } from "@oclif/core";
1
+ import { a as e, l as t, n, t as r } from "../../quire-BsVj1xIR.js";
2
+ import { t as i } from "../../base-gAClyCNd.js";
3
+ import { a, b as o, g as s, m as c, u as l } from "../../schema-assets-HZWo_iFN.js";
4
+ import { n as u } from "../../evidence-OyqpqHLS.js";
5
+ import { t as d } from "../../advisor-B0rESCx1.js";
6
+ import { n as f, t as p } from "../../auditor-Dd3i9Aqx.js";
7
7
  import { execFileSync as m } from "node:child_process";
8
+ import { Flags as h } from "@oclif/core";
8
9
  //#region src/commands/evidence/baseline.ts
9
- var h = class l extends i {
10
+ var g = class c extends i {
10
11
  static summary = "Accept the current findings as the ratchet baseline.";
11
12
  static description = "Writes spec/evidence/baseline.json: every finding the audit reports right now,\nas <kind>:<obligation>, plus the commit it was accepted at.\n\n`--ratchet` reads this file and fails only on findings NOT in it. Without it,\na first run of the gate reports the entire existing backlog and gets switched\noff within a week — so accepting a baseline is the deliberate act that makes\nthe ratchet usable, and its diff is the record of what was accepted and by whom.\n\nRe-run this at a release to move the ratchet forward. Never run it to make a\nnew failure go away: the diff is reviewed, and a baseline that grows between\nreleases is the gate quietly being disabled one entry at a time.";
12
13
  static examples = ["quoin evidence baseline", "quoin evidence baseline --dry-run"];
13
14
  static flags = {
14
- repo: p.string({
15
+ repo: h.string({
15
16
  description: "Repository root.",
16
17
  default: "."
17
18
  }),
18
- module: p.string({ description: "Module directory supplying the traceability model." }),
19
- "dry-run": p.boolean({ description: "Print what would be accepted and write nothing." }),
20
- json: p.boolean({ description: "Emit the outcome as JSON." })
19
+ module: h.string({ description: "Module directory supplying the traceability model." }),
20
+ "dry-run": h.boolean({ description: "Print what would be accepted and write nothing." }),
21
+ json: h.boolean({ description: "Emit the outcome as JSON." })
21
22
  };
22
23
  async run() {
23
- let { flags: i } = await this.parse(l), d = n(r());
24
- d && this.error(d.message, { exit: 2 });
25
- let p = [
24
+ let { flags: i } = await this.parse(c), l = t(r());
25
+ l && this.error(l.message, { exit: 2 });
26
+ let m = [
26
27
  "coverage",
27
28
  "--scope",
28
29
  i.repo,
29
30
  "--json"
30
31
  ];
31
- i.module && p.push("--module", i.module);
32
- let m = e(t(p));
33
- m.ok || this.error(m.error.message, { exit: 2 });
34
- let h = s({
35
- obligations: m.value.obligations ?? [],
36
- bindings: c(i.repo).bindings,
37
- runs: g(i.repo),
38
- catalog: a(i.module ? [i.module] : void 0),
39
- headCommit: _(i.repo)
40
- }).findings.map(o).sort(), v = _(i.repo) ?? "";
41
- if (i["dry-run"] || f(i.repo, {
32
+ i.module && m.push("--module", i.module);
33
+ let h = e(n(m));
34
+ h.ok || this.error(h.error.message, { exit: 2 });
35
+ let g = v(i.repo), y = u(i.repo, g), b = p({
36
+ obligations: h.value.obligations ?? [],
37
+ bindings: s(i.repo).bindings,
38
+ runs: _(i.repo),
39
+ injections: y.injections,
40
+ mockInspectionSuites: y.suites,
41
+ catalog: d(i.module ? [i.module] : void 0),
42
+ headCommit: g
43
+ }).findings.map(f).sort(), x = g ?? "";
44
+ if (i["dry-run"] || o(i.repo, {
42
45
  schemaVersion: 1,
43
- commit: v,
44
- accepted: h
46
+ commit: x,
47
+ accepted: b
45
48
  }), i.json) {
46
49
  this.log(JSON.stringify({
47
- accepted: h,
48
- commit: v,
50
+ accepted: b,
51
+ commit: x,
49
52
  dryRun: !!i["dry-run"]
50
53
  }, null, 2));
51
54
  return;
52
55
  }
53
- let y = /* @__PURE__ */ new Map();
54
- for (let e of h) {
56
+ let S = /* @__PURE__ */ new Map();
57
+ for (let e of b) {
55
58
  let t = e.slice(0, e.indexOf(":"));
56
- y.set(t, (y.get(t) ?? 0) + 1);
59
+ S.set(t, (S.get(t) ?? 0) + 1);
57
60
  }
58
- this.log(`${i["dry-run"] ? "would accept" : "accepted"} ${h.length} finding(s) at ${v.slice(0, 12) || "an unknown commit"}`);
59
- for (let [e, t] of [...y].sort()) this.log(` ${e}: ${t}`);
60
- i["dry-run"] || this.log(u(i.repo));
61
+ this.log(`${i["dry-run"] ? "would accept" : "accepted"} ${b.length} finding(s) at ${x.slice(0, 12) || "an unknown commit"}`);
62
+ for (let [e, t] of [...S].sort()) this.log(` ${e}: ${t}`);
63
+ i["dry-run"] || this.log(a(i.repo));
61
64
  }
62
65
  };
63
- function g(e) {
64
- return l(e).map((t) => d(e, t)).filter((e) => e !== null);
65
- }
66
66
  function _(e) {
67
+ return c(e).map((t) => l(e, t)).filter((e) => e !== null);
68
+ }
69
+ function v(e) {
67
70
  try {
68
71
  return m("git", [
69
72
  "-C",
70
73
  e,
71
74
  "rev-parse",
72
75
  "HEAD"
73
- ], { encoding: "utf8" }).trim();
76
+ ], {
77
+ encoding: "utf8",
78
+ stdio: [
79
+ "ignore",
80
+ "pipe",
81
+ "ignore"
82
+ ]
83
+ }).trim();
74
84
  } catch {
75
85
  return;
76
86
  }
77
87
  }
78
88
  //#endregion
79
- export { h as default };
89
+ export { g as default };
@@ -1,5 +1,6 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
2
- import { l as t } from "../../evidence-BA5vyZJk.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { l as t } from "../../schema-assets-HZWo_iFN.js";
3
+ import "../../evidence-OyqpqHLS.js";
3
4
  import { Flags as n } from "@oclif/core";
4
5
  //#region src/commands/evidence/gc.ts
5
6
  var r = class r extends e {
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../base-W7vrLi5E.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
2
  //#region src/commands/evidence/index.ts
3
3
  var t = class t extends e {
4
4
  static summary = "The evidence store — what actually ran, and against which statement.";
@@ -0,0 +1,16 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class EvidenceInspectMocks extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ suite: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ commit: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
10
+ timestamp: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
11
+ "dry-run": import('@oclif/core/interfaces').BooleanFlag<boolean>;
12
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
13
+ };
14
+ run(): Promise<void>;
15
+ }
16
+ //# sourceMappingURL=inspect-mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspect-mocks.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/inspect-mocks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAQ7C,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,YAAY;IAC5D,MAAM,CAAC,OAAO,SACkD;IAChE,MAAM,CAAC,WAAW,SAMsD;IAExE,MAAM,CAAC,QAAQ,WAEb;IAEF,MAAM,CAAC,KAAK;;;;;;;MAiBV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA+B3B"}
@@ -0,0 +1,49 @@
1
+ import { t as e } from "../../version-CMxMIh5g.js";
2
+ import { t } from "../../base-gAClyCNd.js";
3
+ import { S as n } from "../../schema-assets-HZWo_iFN.js";
4
+ import { t as r } from "../../evidence-OyqpqHLS.js";
5
+ import { Flags as i } from "@oclif/core";
6
+ //#region src/commands/evidence/inspect-mocks.ts
7
+ var a = class a extends t {
8
+ static summary = "Inspect test source and record explicit mock substitutions.";
9
+ static description = "Scans source for explicit stand-in constructors used by test symbols and records\nthe observation for one suite at one commit. It runs no test and assigns no\nverdict: evidence audit independently decides whether an injected identifier\noverlaps the behaviour an obligation claims to verify.\n\nRecord an empty inspection too. That is how audit distinguishes \"looked and\nfound no relevant injections\" from \"nobody looked\" (agent-ix/quoin#204).";
10
+ static examples = ["quoin evidence inspect-mocks --suite SUITE-001 --commit $(git rev-parse HEAD)"];
11
+ static flags = {
12
+ suite: i.string({
13
+ description: "Suite id whose test source is being inspected.",
14
+ required: !0
15
+ }),
16
+ commit: i.string({
17
+ description: "Full commit sha whose source is being inspected.",
18
+ required: !0
19
+ }),
20
+ repo: i.string({
21
+ description: "Repository root.",
22
+ default: "."
23
+ }),
24
+ timestamp: i.string({ description: "ISO-8601 inspection time. Defaults to now." }),
25
+ "dry-run": i.boolean({ description: "Inspect and report without writing an observation record." }),
26
+ json: i.boolean({ description: "Emit the record outcome as JSON." })
27
+ };
28
+ async run() {
29
+ let { flags: t } = await this.parse(a), i = r(t.repo, t.suite), o = t["dry-run"] ? null : n(t.repo, {
30
+ schemaVersion: 1,
31
+ suite: t.suite,
32
+ commit: t.commit,
33
+ tool: `quoin mock-inspection ${e()}`,
34
+ timestamp: t.timestamp ?? (/* @__PURE__ */ new Date()).toISOString(),
35
+ injections: i
36
+ });
37
+ if (t.json) {
38
+ this.log(JSON.stringify({
39
+ path: o,
40
+ injections: i
41
+ }, null, 2));
42
+ return;
43
+ }
44
+ this.log(`${t["dry-run"] ? "inspected" : "recorded mock inspection"} ${t.suite} @ ${t.commit.slice(0, 12)}` + (o ? ` -> ${o}` : " (dry run; wrote nothing)")), this.log(` injections: ${i.length}`);
45
+ for (let e of i) this.log(` ${e.path ?? "(unknown)"}:${e.line ?? 0} ${e.symbol} injects ${e.injects.join(", ")}`);
46
+ }
47
+ };
48
+ //#endregion
49
+ export { a as default };
@@ -18,4 +18,5 @@ export default class EvidenceRecord extends QuoinCommand {
18
18
  };
19
19
  run(): Promise<void>;
20
20
  }
21
+ export declare function isVersionedToolIdentity(value: string): boolean;
21
22
  //# sourceMappingURL=record.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/record.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAoB7C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,MAAM,CAAC,OAAO,SAAuD;IACrE,MAAM,CAAC,WAAW,SAcc;IAEhC,MAAM,CAAC,QAAQ,WAEb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;MAoDV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAmK3B"}
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/record.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAoB7C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,MAAM,CAAC,OAAO,SAAuD;IACrE,MAAM,CAAC,WAAW,SAcc;IAEhC,MAAM,CAAC,QAAQ,WAEb;IAEF,MAAM,CAAC,KAAK;;;;;;;;;;;;MAoDV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqM3B;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI9D"}
@@ -1,13 +1,14 @@
1
- import { i as e, n as t, o as n, t as r } from "../../quire-UzoK3Azf.js";
2
- import { t as i } from "../../base-W7vrLi5E.js";
3
- import { a, b as o, c as s, g as c, i as l, n as u, r as d, t as f, y as p } from "../../evidence-BA5vyZJk.js";
1
+ import { a as e, l as t, n, t as r } from "../../quire-BsVj1xIR.js";
2
+ import { t as i } from "../../base-gAClyCNd.js";
3
+ import { g as a, o, w as s, x as c } from "../../schema-assets-HZWo_iFN.js";
4
+ import { a as l, c as u, i as d, r as f, s as p } from "../../evidence-OyqpqHLS.js";
4
5
  import { readFileSync as m } from "node:fs";
5
6
  import { Flags as h } from "@oclif/core";
6
7
  //#region src/commands/evidence/record.ts
7
- var g = class u extends i {
8
+ var g = class d extends i {
8
9
  static summary = "Transcribe one suite run into the evidence store.";
9
10
  static description = "Records ONE run of ONE suite at ONE commit, then binds every obligation that\nrun discharged, stamping the statement hash as it stands now.\n\nquoin transcribes; the consumer's CI executes (ADR-0011 invariant 1). This\ncommand runs no test and judges no result — recording a FAILING run is as\nlegitimate as recording a passing one, and more useful, because a suite that\nstopped passing is exactly what a freshness check needs to see.\n\n--results takes normalized entries:\n\n {\"entries\": [{\"symbol\": \"tests::tc001\", \"outcome\": \"pass\", \"traceIds\": [\"FR-001-AC-1\"]}]}\n\n--adapter selects a format reader. Without it the suite's --tool picks one, and\nfailing that the normalized shape above is assumed. An adapter transcribes; it\nruns nothing and judges nothing.";
10
- static examples = ["quoin evidence record --suite SUITE-001 --commit $(git rev-parse HEAD) --tool 'cargo test' --results run.json"];
11
+ static examples = ["quoin evidence record --suite SUITE-001 --commit $(git rev-parse HEAD) --tool 'cargo test 1.94.1' --results run.json"];
11
12
  static flags = {
12
13
  suite: h.string({
13
14
  description: "Suite id from spec/evidence/suites.md (e.g. SUITE-001).",
@@ -43,7 +44,9 @@ var g = class u extends i {
43
44
  json: h.boolean({ description: "Emit the outcome as JSON." })
44
45
  };
45
46
  async run() {
46
- let { flags: i } = await this.parse(u), f = n(r());
47
+ let { flags: i } = await this.parse(d);
48
+ _(i.tool) || this.error("--tool must include an immutable version (for example `vitest 3.2.4` or `scanner git:<full-sha>`)", { exit: 2 });
49
+ let f = t(r());
47
50
  f && this.error(f.message, { exit: 2 });
48
51
  let h = [
49
52
  "coverage",
@@ -52,78 +55,90 @@ var g = class u extends i {
52
55
  "--json"
53
56
  ];
54
57
  i.module && h.push("--module", i.module);
55
- let g = t(h), v = e(g);
56
- v.ok || this.error(`${v.error.message}\n${v.error.errors.slice(0, 10).join("\n")}`, { exit: 2 });
57
- let y = d({
58
+ let g = n(h), b = e(g);
59
+ b.ok || this.error(`${b.error.message}\n${b.error.errors.slice(0, 10).join("\n")}`, { exit: 2 });
60
+ let x = l({
58
61
  adapter: i.adapter,
59
62
  tool: i.tool
60
63
  });
61
- if (y) {
62
- let e = i.results === "-" ? m(0, "utf8") : m(i.results, "utf8"), t = y.parse(e), n = o(i.repo, {
64
+ if (x) {
65
+ let e = i.results === "-" ? m(0, "utf8") : m(i.results, "utf8"), t = x.parse(e), n = t.tool;
66
+ n !== void 0 && n !== i.tool && n !== v(i.tool) && this.error(`result tool identity ${JSON.stringify(n)} does not match --tool ${JSON.stringify(i.tool)}`, { exit: 2 });
67
+ let r = s(i.repo, {
63
68
  schemaVersion: 1,
64
69
  suite: i.suite,
65
70
  commit: i.commit,
66
- tool: t.tool ?? i.tool,
71
+ tool: i.tool,
67
72
  ...i.kind === void 0 ? {} : { evidenceKind: i.kind },
68
73
  timestamp: i.timestamp ?? (/* @__PURE__ */ new Date()).toISOString(),
69
74
  ...t.ruleset === void 0 ? {} : { ruleset: t.ruleset },
70
75
  ...t.rulesEvaluated === void 0 ? {} : { rulesEvaluated: t.rulesEvaluated },
71
76
  findings: t.findings
72
- }), r = t.rulesEvaluated === 0, a = (i.discharges ?? "").split(",").map((e) => e.trim()).filter((e) => e !== ""), u = [], d = [];
73
- if (a.length > 0 && !r) {
74
- let e = new Map(l(v.value).map((e) => [e.id, e])), t = c(i.repo).bindings;
75
- for (let n of [...a].sort()) {
77
+ }), l = t.rulesEvaluated === 0, u = (i.discharges ?? "").split(",").map((e) => e.trim()).filter((e) => e !== ""), d = [], f = [];
78
+ if (u.length > 0 && !l) {
79
+ let e = new Map(p(b.value).map((e) => [e.id, e])), t = a(i.repo).bindings;
80
+ for (let n of [...u].sort()) {
76
81
  let r = e.get(n);
77
82
  if (!r) {
78
- d.push(n);
83
+ f.push(n);
79
84
  continue;
80
85
  }
81
- let a = s(t, {
86
+ let a = o(t, {
82
87
  obligation: n,
83
88
  statementHashAtBinding: r.statement_hash,
84
89
  suite: i.suite,
85
90
  commit: i.commit,
86
91
  symbols: []
87
92
  });
88
- t = a.bindings, a.created && u.push(n);
93
+ t = a.bindings, a.created && d.push(n);
89
94
  }
90
- p(i.repo, { bindings: t });
95
+ c(i.repo, { bindings: t });
91
96
  }
92
97
  if (i.json) {
93
98
  this.log(JSON.stringify({
94
- scanPath: n,
99
+ scanPath: r,
95
100
  findings: t.findings,
96
- bound: u,
97
- unknown: d
101
+ bound: d,
102
+ unknown: f
98
103
  }, null, 2));
99
104
  return;
100
105
  }
101
- this.log(`recorded scan ${i.suite} @ ${i.commit.slice(0, 12)} → ${n}`), this.log(` bound: ${u.length}`), d.length > 0 && this.log(` discharges no such obligation: ${d.sort().join(", ")}`), r && a.length > 0 && this.log(" bound nothing: the scan evaluated no rules, so it found nothing because it looked for nothing"), this.log(` findings: ${t.findings.length}` + (t.rulesEvaluated === void 0 ? " (the tool reported no rule count, so this cannot be told from a scan with no rules enabled)" : ` over ${t.rulesEvaluated} rules evaluated`));
106
+ this.log(`recorded scan ${i.suite} @ ${i.commit.slice(0, 12)} → ${r}`), this.log(` bound: ${d.length}`), f.length > 0 && this.log(` discharges no such obligation: ${f.sort().join(", ")}`), l && u.length > 0 && this.log(" bound nothing: the scan evaluated no rules, so it found nothing because it looked for nothing"), this.log(` findings: ${t.findings.length}` + (t.rulesEvaluated === void 0 ? " (the tool reported no rule count, so this cannot be told from a scan with no rules enabled)" : ` over ${t.rulesEvaluated} rules evaluated`));
102
107
  return;
103
108
  }
104
- let b = _(i.results, {
109
+ let S = y(i.results, {
105
110
  adapter: i.adapter,
106
111
  tool: i.tool
107
- }), x = a({
112
+ }), C = S.entries, w = u({
108
113
  repo: i.repo,
109
114
  suite: i.suite,
110
115
  commit: i.commit,
111
116
  tool: i.tool,
112
117
  evidenceKind: i.kind,
113
118
  timestamp: i.timestamp ?? (/* @__PURE__ */ new Date()).toISOString(),
114
- entries: b,
115
- obligations: l(v.value)
119
+ entries: C,
120
+ obligations: p(b.value)
116
121
  });
117
122
  if (i.json) {
118
- this.log(JSON.stringify(x, null, 2));
123
+ this.log(JSON.stringify(S.unrepresented === void 0 ? w : {
124
+ ...w,
125
+ unrepresented: S.unrepresented
126
+ }, null, 2));
119
127
  return;
120
128
  }
121
- this.log(`recorded ${i.suite} @ ${i.commit.slice(0, 12)} → ${x.runPath}`), this.log(` bound: ${x.bound.length}`), x.suspect.length > 0 && this.log(` suspect (statement changed since binding, re-affirm to clear): ${x.suspect.join(", ")}`), x.unmatched.length > 0 && this.log(` unmatched trace ids (tagged in the suite, stated by no obligation): ${x.unmatched.join(", ")}`);
129
+ this.log(`recorded ${i.suite} @ ${i.commit.slice(0, 12)} → ${w.runPath}`), this.log(` bound: ${w.bound.length}`), w.suspect.length > 0 && this.log(` suspect (statement changed since binding, re-affirm to clear): ${w.suspect.join(", ")}`), w.unmatched.length > 0 && this.log(` unmatched trace ids (tagged in the suite, stated by no obligation): ${w.unmatched.join(", ")}`);
130
+ for (let e of S.unrepresented ?? []) this.log(` not transcribed — ${e.symbol} reported ${e.state}: ${e.reason}`);
122
131
  }
123
132
  };
124
- function _(e, t) {
133
+ function _(e) {
134
+ return /(?:^|[\s/@])(?:v?\d+(?:\.\d+)+(?:[-+][0-9A-Za-z.-]+)?|git:[0-9a-f]{40}|sha256:[0-9a-f]{64})(?:$|[\s,)])/i.test(e);
135
+ }
136
+ function v(e) {
137
+ return e.trim().split(/\s+/, 1)[0];
138
+ }
139
+ function y(e, t) {
125
140
  let n = m(e === "-" ? 0 : e, "utf8");
126
- return u(t).parse(n).entries;
141
+ return d(t).parse(n);
127
142
  }
128
143
  //#endregion
129
- export { g as default };
144
+ export { g as default, _ as isVersionedToolIdentity };
@@ -0,0 +1,16 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class GraphChangeImpact extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static flags: {
6
+ requirement: import('@oclif/core/interfaces').OptionFlag<string[], import('@oclif/core/interfaces').CustomOptions>;
7
+ relation: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
8
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ export: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
10
+ premises: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
11
+ audit: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
12
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
13
+ };
14
+ run(): Promise<void>;
15
+ }
16
+ //# sourceMappingURL=change-impact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"change-impact.d.ts","sourceRoot":"","sources":["../../../src/commands/graph/change-impact.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,YAAY;IACzD,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SACmD;IACjE,MAAM,CAAC,KAAK;;;;;;;;MAYV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAW3B"}
@@ -0,0 +1,29 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { i as t } from "../../graph-analysis-IWaoJJSN.js";
3
+ import { n, r, t as i } from "../../common-DTrmnvL-.js";
4
+ import { Flags as a } from "@oclif/core";
5
+ //#region src/commands/graph/change-impact.ts
6
+ var o = class o extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Report reverse dependency exposure from requirement changes.";
9
+ static flags = {
10
+ ...i,
11
+ requirement: a.string({
12
+ description: "Changed requirement id. Repeatable.",
13
+ multiple: !0,
14
+ required: !0
15
+ }),
16
+ relation: a.string({
17
+ description: "Relationship kind replacing the default selection. Repeatable.",
18
+ multiple: !0
19
+ })
20
+ };
21
+ async run() {
22
+ let { flags: e } = await this.parse(o), i = r(e);
23
+ i.ok || this.error(i.error.message, { exit: 2 });
24
+ let a = t(i.value, e.requirement, e.relation);
25
+ this.log(n(a, e.json));
26
+ }
27
+ };
28
+ //#endregion
29
+ export { o as default };
@@ -0,0 +1,14 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class GraphChurn extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static flags: {
6
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ export: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ premises: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ audit: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
10
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
11
+ };
12
+ run(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=churn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"churn.d.ts","sourceRoot":"","sources":["../../../src/commands/graph/churn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAAuD;IACrE,MAAM,CAAC,KAAK;;;;;;MAAmB;IAEzB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAM3B"}
@@ -0,0 +1,15 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { a as t } from "../../graph-analysis-IWaoJJSN.js";
3
+ import { n, r, t as i } from "../../common-DTrmnvL-.js";
4
+ //#region src/commands/graph/churn.ts
5
+ var a = class a extends e {
6
+ skipUpdateNudge = !0;
7
+ static summary = "Report retained obligation reaffirmation history.";
8
+ static flags = i;
9
+ async run() {
10
+ let { flags: e } = await this.parse(a), i = r(e);
11
+ i.ok || this.error(i.error.message, { exit: 2 }), this.log(n(t(i.value), e.json));
12
+ }
13
+ };
14
+ //#endregion
15
+ export { a as default };