@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
@@ -0,0 +1,58 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { p as t, w as n } from "../../change-assurance-CyKLPeKa.js";
3
+ import { a as r, n as i, o as a, r as o, s, t as c } from "../../common-B1ZJ8CSO.js";
4
+ import { Flags as l } from "@oclif/core";
5
+ //#region src/commands/change-assurance/seal-attestation.ts
6
+ var u = class u extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Seal a proof attestation over an existing retained result file.";
9
+ static description = "Binds ONE already-produced result file to the reviewed record, candidate\nrevision, proof obligation, command, tool, configuration, environment, and\nresult the caller states (FR-064), and emits the sealed attestation JSON.\n\nThe ONLY fields derived here are `retained_output.digest` and\n`retained_output.size_bytes`, read from the bytes of --output, plus the\n`media_type` the caller declares. Everything else is the caller's: this\ncommand does not run the proof command, re-read the tool, inspect the\nrepository, or infer a result from the file it hashes. A body supplying\n`retained_output` or `digest` is refused.\n\nThe attestation is emitted, not retained. `quoin change-assurance intake`\nis the retention step, and it re-checks this binding against the same bytes.";
10
+ static examples = ["quoin change-assurance seal-attestation --input attestation.json --output junit.xml --media-type application/xml"];
11
+ static flags = {
12
+ input: l.string({
13
+ description: "Proof-attestation body as JSON, without `digest` and without `retained_output`. `-` reads stdin.",
14
+ required: !0
15
+ }),
16
+ output: l.string({
17
+ description: "Path of the retained result file this attestation describes. Its bytes are hashed and measured; it is never executed.",
18
+ required: !0
19
+ }),
20
+ "media-type": l.string({
21
+ description: "Declared media type of the retained result file. Stated by the caller rather than sniffed, so a producer's own content type is preserved exactly.",
22
+ required: !0
23
+ }),
24
+ json: i
25
+ };
26
+ async run() {
27
+ let { flags: e } = await this.parse(u), i;
28
+ try {
29
+ i = a(e.input);
30
+ } catch (t) {
31
+ this.error(`cannot read --input ${e.input}: ${o(t)}`, { exit: 2 });
32
+ }
33
+ let l = s(i, ["digest", "retained_output"]);
34
+ l && this.error(l, { exit: 2 });
35
+ let d;
36
+ try {
37
+ d = r(e.output);
38
+ } catch (t) {
39
+ this.error(`cannot read --output ${e.output}: ${o(t)}`, { exit: 2 });
40
+ }
41
+ let f;
42
+ try {
43
+ f = t({
44
+ ...i,
45
+ retained_output: {
46
+ media_type: e["media-type"],
47
+ digest: n(d),
48
+ size_bytes: d.byteLength
49
+ }
50
+ });
51
+ } catch (e) {
52
+ this.error(`cannot seal attestation: ${o(e)}`, { exit: 2 });
53
+ }
54
+ this.log(c(f));
55
+ }
56
+ };
57
+ //#endregion
58
+ export { u as default };
@@ -0,0 +1,14 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceSealRecord extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ input: 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
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
11
+ };
12
+ run(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=seal-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seal-record.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/seal-record.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAe7C,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,YAAY;IACjE,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA6D;IAC3E,MAAM,CAAC,WAAW,SASH;IAEf,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,KAAK;;;;MAQV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA4C3B"}
@@ -0,0 +1,53 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { _ as t, d as n } from "../../change-assurance-CyKLPeKa.js";
3
+ import { c as r, n as i, o as a, r as o, s, t as c } from "../../common-B1ZJ8CSO.js";
4
+ import { Flags as l } from "@oclif/core";
5
+ //#region src/commands/change-assurance/seal-record.ts
6
+ var u = class u extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Seal an explicit change-assurance record and retain it.";
9
+ static description = "Seals ONE reviewed change definition the caller supplies in full (FR-063) and\nretains it under its own digest.\n\nThe body is the record without its `digest`: the digest is computed from the\ncanonical bytes of everything else, so supplying one is refused rather than\noverwritten. Nothing in the body is inferred, defaulted, or discovered — a\nfield the caller did not state is a validation failure, not a blank.\n\nThis command runs no producer and reads no repository state beyond the store\nit writes into.";
10
+ static examples = ["quoin change-assurance seal-record --input record.json --json", "cat record.json | quoin change-assurance seal-record --input -"];
11
+ static flags = {
12
+ input: l.string({
13
+ description: "Change-assurance record body as JSON, without `digest`. `-` reads stdin.",
14
+ required: !0
15
+ }),
16
+ repo: r,
17
+ json: i
18
+ };
19
+ async run() {
20
+ let { flags: e } = await this.parse(u), r;
21
+ try {
22
+ r = a(e.input);
23
+ } catch (t) {
24
+ this.error(`cannot read --input ${e.input}: ${o(t)}`, { exit: 2 });
25
+ }
26
+ let i = s(r, ["digest"]);
27
+ i && this.error(i, { exit: 2 });
28
+ let l;
29
+ try {
30
+ l = t(r);
31
+ } catch (e) {
32
+ this.error(`cannot seal record: ${o(e)}`, { exit: 2 });
33
+ }
34
+ let d;
35
+ try {
36
+ d = n(e.repo, l);
37
+ } catch (e) {
38
+ this.error(`cannot retain record: ${o(e)}`, { exit: 2 });
39
+ }
40
+ if (e.json) {
41
+ this.log(c({
42
+ record_id: l.record_id,
43
+ revision: l.revision,
44
+ digest: l.digest,
45
+ path: d
46
+ }));
47
+ return;
48
+ }
49
+ this.log(`sealed ${l.record_id} revision ${l.revision}`), this.log(` digest: ${l.digest}`), this.log(` retained: ${d}`);
50
+ }
51
+ };
52
+ //#endregion
53
+ export { u as default };
@@ -0,0 +1,13 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ChangeAssuranceVerifyReceipt extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ static examples: string[];
7
+ static flags: {
8
+ input: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
9
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=verify-receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify-receipt.d.ts","sourceRoot":"","sources":["../../../src/commands/change-assurance/verify-receipt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAY7C,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,YAAY;IACpE,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA8C;IAC5D,MAAM,CAAC,WAAW,SASuD;IAEzE,MAAM,CAAC,QAAQ,WAEb;IAEF,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAuC3B"}
@@ -0,0 +1,41 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { n as t } from "../../change-assurance-CyKLPeKa.js";
3
+ import { n, o as r, r as i, t as a } from "../../common-B1ZJ8CSO.js";
4
+ import { Flags as o } from "@oclif/core";
5
+ //#region src/commands/change-assurance/verify-receipt.ts
6
+ var s = class s extends e {
7
+ skipUpdateNudge = !0;
8
+ static summary = "Re-verify a sealed verification receipt.";
9
+ static description = "Checks that a receipt still has the shape FR-065 declares and still hashes to\nits own digest, so an edited outcome, reason, proof row, or check is refused\nrather than read back as fact.\n\nThis re-verifies the receipt document. It does not re-run verification: the\nunderlying record, attestations, and decisions are not consulted, and no proof\ncommand is executed.\n\nExit status is 0 when the verified receipt is `valid`, 1 when it is\n`invalid` or `incomplete`, and 2 when the document itself is refused.";
10
+ static examples = ["quoin change-assurance verify-receipt --input receipt.json --json"];
11
+ static flags = {
12
+ input: o.string({
13
+ description: "Sealed verification receipt JSON. `-` reads stdin.",
14
+ required: !0
15
+ }),
16
+ json: n
17
+ };
18
+ async run() {
19
+ let { flags: e } = await this.parse(s), n;
20
+ try {
21
+ n = r(e.input);
22
+ } catch (t) {
23
+ this.error(`cannot read --input ${e.input}: ${i(t)}`, { exit: 2 });
24
+ }
25
+ let o;
26
+ try {
27
+ o = t(n);
28
+ } catch (e) {
29
+ this.error(`receipt refused: ${i(e)}`, { exit: 2 });
30
+ }
31
+ e.json ? this.log(a({
32
+ digest: o.digest,
33
+ record_digest: o.record_digest,
34
+ candidate_revision: o.candidate_revision,
35
+ outcome: o.outcome,
36
+ reasons: o.reasons
37
+ })) : (this.log(`receipt ${o.digest} verified`), this.log(` outcome: ${o.outcome}`), o.reasons.length > 0 && this.log(` reasons: ${o.reasons.join(", ")}`)), o.outcome !== "valid" && this.exit(1);
38
+ }
39
+ };
40
+ //#endregion
41
+ export { s as default };
@@ -1,5 +1,5 @@
1
- import { t as e } from "../base-CqKNs2Kd.js";
2
- import { t } from "../completeness-DamWradt.js";
1
+ import { t as e } from "../base-gAClyCNd.js";
2
+ import { t } from "../completeness-BzBuNq6w.js";
3
3
  import { Flags as n } from "@oclif/core";
4
4
  //#region src/commands/completeness.ts
5
5
  var r = class r extends e {
@@ -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 { a as t } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigDoctor as n } from "@agent-ix/ix-cli-core";
4
4
  //#region src/commands/config/doctor.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 { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigEdit as r } from "@agent-ix/ix-cli-core";
4
4
  //#region src/commands/config/edit.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 { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigGet as r } from "@agent-ix/ix-cli-core";
4
4
  import { Args as i } from "@oclif/core";
@@ -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 { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigSet as r } from "@agent-ix/ix-cli-core";
4
4
  import { Args as i } from "@oclif/core";
@@ -1,35 +1,35 @@
1
- import { i as e, n as t, o as n, t as r } from "../../quire-D8tCpgyA.js";
2
- import { t as i } from "../../base-CqKNs2Kd.js";
3
- import { _ as a, f as o, t as s } from "../../store--2sAv12X.js";
4
- import "../../evidence-DD0CHzJ0.js";
5
- import { Flags as c } from "@oclif/core";
6
- import { execFileSync as l } from "node:child_process";
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, i as o, x as s } from "../../schema-assets-HZWo_iFN.js";
4
+ import "../../evidence-OyqpqHLS.js";
5
+ import { execFileSync as c } from "node:child_process";
6
+ import { Flags as l } from "@oclif/core";
7
7
  //#region src/commands/evidence/affirm.ts
8
8
  var u = class u extends i {
9
9
  static summary = "Re-affirm a binding after the statement it was made against changed.";
10
10
  static description = "A reworded acceptance criterion changes its content hash, which makes every\nbinding on it SUSPECT until somebody says the evidence still discharges the new\nwording. This is that act.\n\nAuto-bind, explicit affirmation: first discharge binds without asking, because\nrequiring a signature on something the evidence already proves puts a gate in\nfront of the common case and teaches people to click through it. Re-affirmation\nis the judgement call, so it stays explicit — and it is recorded with who, at\nwhich commit, and optionally why.\n\nRe-running the test does NOT clear suspicion. If it did, the suspect state would\nclear itself on the next CI run and the detector would never fire.";
11
11
  static examples = ["quoin evidence affirm --obligation FR-001-AC-1 --who @reviewer", "quoin evidence affirm --obligation NFR-006-M-2 --who @reviewer --note 'threshold widened deliberately'"];
12
12
  static flags = {
13
- obligation: c.string({
13
+ obligation: l.string({
14
14
  description: "Obligation id whose binding is being re-affirmed.",
15
15
  required: !0
16
16
  }),
17
- who: c.string({
17
+ who: l.string({
18
18
  description: "Who is affirming. Recorded verbatim.",
19
19
  required: !0
20
20
  }),
21
- note: c.string({ description: "Why the evidence still holds." }),
22
- commit: c.string({ description: "Commit of the affirmation. Defaults to HEAD." }),
23
- repo: c.string({
21
+ note: l.string({ description: "Why the evidence still holds." }),
22
+ commit: l.string({ description: "Commit of the affirmation. Defaults to HEAD." }),
23
+ repo: l.string({
24
24
  description: "Repository root.",
25
25
  default: "."
26
26
  }),
27
- module: c.string({ description: "Module directory supplying the traceability model." }),
28
- json: c.boolean({ description: "Emit the outcome as JSON." })
27
+ module: l.string({ description: "Module directory supplying the traceability model." }),
28
+ json: l.boolean({ description: "Emit the outcome as JSON." })
29
29
  };
30
30
  async run() {
31
- let { flags: i } = await this.parse(u), c = n(r());
32
- c && this.error(c.message, { exit: 2 });
31
+ let { flags: i } = await this.parse(u), l = t(r());
32
+ l && this.error(l.message, { exit: 2 });
33
33
  let d = [
34
34
  "coverage",
35
35
  "--scope",
@@ -37,17 +37,17 @@ var u = class u extends i {
37
37
  "--json"
38
38
  ];
39
39
  i.module && d.push("--module", i.module);
40
- let f = e(t(d));
40
+ let f = e(n(d));
41
41
  f.ok || this.error(f.error.message, { exit: 2 });
42
42
  let p = (f.value.obligations ?? []).find((e) => e.id === i.obligation);
43
43
  p || this.error(`no obligation \`${i.obligation}\` is derived from this spec today. Either the id is wrong, or the requirement it named is gone — in which case the binding should be removed rather than affirmed.`, { exit: 2 });
44
- let m = i.commit ?? l("git", [
44
+ let m = i.commit ?? c("git", [
45
45
  "-C",
46
46
  i.repo,
47
47
  "rev-parse",
48
48
  "HEAD"
49
- ], { encoding: "utf8" }).trim(), h = o(i.repo).bindings, { bindings: g, found: _ } = s(h, i.obligation, p.statement_hash, i.who, m, i.note);
50
- _ || this.error(`no binding exists for \`${i.obligation}\`, so there is nothing to affirm. A binding is created when a suite first discharges the obligation (\`quoin evidence record\`).`, { exit: 2 }), a(i.repo, { bindings: g });
49
+ ], { encoding: "utf8" }).trim(), h = a(i.repo).bindings, { bindings: g, found: _ } = o(h, i.obligation, p.statement_hash, i.who, m, i.note);
50
+ _ || this.error(`no binding exists for \`${i.obligation}\`, so there is nothing to affirm. A binding is created when a suite first discharges the obligation (\`quoin evidence record\`).`, { exit: 2 }), s(i.repo, { bindings: g });
51
51
  let v = {
52
52
  obligation: i.obligation,
53
53
  who: i.who,
@@ -1,13 +1,13 @@
1
- import { i as e, n as t, o as n, t as r } from "../../quire-D8tCpgyA.js";
2
- import { t as i } from "../../base-CqKNs2Kd.js";
3
- import { d as a, f as o, l as s, n as c, s as l } from "../../store--2sAv12X.js";
4
- import { t as u } from "../../advisor-BkgwDKvQ.js";
5
- import { r as d, t as f } from "../../auditor-C3bSmPD_.js";
6
- import { n as p } from "../../evidence-DD0CHzJ0.js";
7
- import { Flags as m } from "@oclif/core";
8
- import { execFileSync as h } from "node:child_process";
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
+ import { execFileSync as m } from "node:child_process";
8
+ import { Flags as h } from "@oclif/core";
9
9
  //#region src/commands/evidence/audit.ts
10
- var g = class c extends i {
10
+ var g = class a extends i {
11
11
  static summary = "Audit the evidence store: suspect links, staleness, vacuity.";
12
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";
13
13
  static examples = [
@@ -16,25 +16,25 @@ var g = class c extends i {
16
16
  "quoin evidence audit --json"
17
17
  ];
18
18
  static flags = {
19
- repo: m.string({
19
+ repo: h.string({
20
20
  description: "Repository root.",
21
21
  default: "."
22
22
  }),
23
- module: m.string({ description: "Module directory supplying the traceability model." }),
24
- ratchet: m.boolean({ description: "Report only violations absent from the baseline." }),
25
- strict: m.boolean({ description: "Exit 1 when any reported finding remains." }),
26
- json: m.boolean({ description: "Emit the report as JSON." }),
27
- "multiplicity-requires": m.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({
28
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.",
29
29
  multiple: !0
30
30
  }),
31
- "mutation-floor": m.string({
31
+ "mutation-floor": h.string({
32
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.",
33
33
  multiple: !0
34
34
  })
35
35
  };
36
36
  async run() {
37
- let { flags: i } = await this.parse(c), m = n(r());
37
+ let { flags: i } = await this.parse(a), m = t(r());
38
38
  m && this.error(m.message, { exit: 2 });
39
39
  let h = [
40
40
  "coverage",
@@ -43,20 +43,20 @@ var g = class c extends i {
43
43
  "--json"
44
44
  ];
45
45
  i.module && h.push("--module", i.module);
46
- let g = e(t(h));
46
+ let g = e(n(h));
47
47
  g.ok || this.error(g.error.message, { exit: 2 });
48
- let b = v(i.repo), x = p(i.repo, b), S = f({
48
+ let b = v(i.repo), x = u(i.repo, b), S = p({
49
49
  obligations: g.value.obligations ?? [],
50
- bindings: o(i.repo).bindings,
51
- runs: l(i.repo),
52
- scans: s(i.repo),
50
+ bindings: s(i.repo).bindings,
51
+ runs: o(i.repo),
52
+ scans: l(i.repo),
53
53
  injections: x.injections,
54
54
  mockInspectionSuites: x.suites,
55
- catalog: u(i.module ? [i.module] : void 0),
55
+ catalog: d(i.module ? [i.module] : void 0),
56
56
  headCommit: b,
57
57
  multiplicityRequires: i["multiplicity-requires"],
58
58
  mutationFloor: y(i["mutation-floor"], (e) => this.error(e, { exit: 2 }))
59
- }), C = i.ratchet ? a(i.repo) : null, w = C !== null, T = C ? d(S, C) : S.findings;
59
+ }), C = i.ratchet ? c(i.repo) : null, w = C !== null, T = C ? f(S, C) : S.findings;
60
60
  if (i.ratchet && !w && !i.json && this.log(_(i.repo)), i.json) this.log(JSON.stringify({
61
61
  findings: T,
62
62
  healthy: S.healthy,
@@ -73,11 +73,11 @@ var g = class c extends i {
73
73
  }
74
74
  };
75
75
  function _(e) {
76
- return `--ratchet requested but ${c(e)} does not exist; reporting the full backlog, not new violations. Write the baseline with: quoin evidence baseline`;
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
77
  }
78
78
  function v(e) {
79
79
  try {
80
- return h("git", [
80
+ return m("git", [
81
81
  "-C",
82
82
  e,
83
83
  "rev-parse",
@@ -1,27 +1,27 @@
1
- import { i as e, n as t, o as n, t as r } from "../../quire-D8tCpgyA.js";
2
- import { t as i } from "../../base-CqKNs2Kd.js";
3
- import { f as a, g as o, n as s, o as c, u as l } from "../../store--2sAv12X.js";
4
- import { t as u } from "../../advisor-BkgwDKvQ.js";
5
- import { n as d, t as f } from "../../auditor-C3bSmPD_.js";
6
- import { n as p } from "../../evidence-DD0CHzJ0.js";
7
- import { Flags as m } from "@oclif/core";
8
- import { execFileSync as h } from "node:child_process";
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
+ import { execFileSync as m } from "node:child_process";
8
+ import { Flags as h } from "@oclif/core";
9
9
  //#region src/commands/evidence/baseline.ts
10
10
  var g = class c extends i {
11
11
  static summary = "Accept the current findings as the ratchet baseline.";
12
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.";
13
13
  static examples = ["quoin evidence baseline", "quoin evidence baseline --dry-run"];
14
14
  static flags = {
15
- repo: m.string({
15
+ repo: h.string({
16
16
  description: "Repository root.",
17
17
  default: "."
18
18
  }),
19
- module: m.string({ description: "Module directory supplying the traceability model." }),
20
- "dry-run": m.boolean({ description: "Print what would be accepted and write nothing." }),
21
- json: m.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." })
22
22
  };
23
23
  async run() {
24
- let { flags: i } = await this.parse(c), l = n(r());
24
+ let { flags: i } = await this.parse(c), l = t(r());
25
25
  l && this.error(l.message, { exit: 2 });
26
26
  let m = [
27
27
  "coverage",
@@ -30,17 +30,17 @@ var g = class c extends i {
30
30
  "--json"
31
31
  ];
32
32
  i.module && m.push("--module", i.module);
33
- let h = e(t(m));
33
+ let h = e(n(m));
34
34
  h.ok || this.error(h.error.message, { exit: 2 });
35
- let g = v(i.repo), y = p(i.repo, g), b = f({
35
+ let g = v(i.repo), y = u(i.repo, g), b = p({
36
36
  obligations: h.value.obligations ?? [],
37
- bindings: a(i.repo).bindings,
37
+ bindings: s(i.repo).bindings,
38
38
  runs: _(i.repo),
39
39
  injections: y.injections,
40
40
  mockInspectionSuites: y.suites,
41
- catalog: u(i.module ? [i.module] : void 0),
41
+ catalog: d(i.module ? [i.module] : void 0),
42
42
  headCommit: g
43
- }).findings.map(d).sort(), x = g ?? "";
43
+ }).findings.map(f).sort(), x = g ?? "";
44
44
  if (i["dry-run"] || o(i.repo, {
45
45
  schemaVersion: 1,
46
46
  commit: x,
@@ -60,15 +60,15 @@ var g = class c extends i {
60
60
  }
61
61
  this.log(`${i["dry-run"] ? "would accept" : "accepted"} ${b.length} finding(s) at ${x.slice(0, 12) || "an unknown commit"}`);
62
62
  for (let [e, t] of [...S].sort()) this.log(` ${e}: ${t}`);
63
- i["dry-run"] || this.log(s(i.repo));
63
+ i["dry-run"] || this.log(a(i.repo));
64
64
  }
65
65
  };
66
66
  function _(e) {
67
- return l(e).map((t) => c(e, t)).filter((e) => e !== null);
67
+ return c(e).map((t) => l(e, t)).filter((e) => e !== null);
68
68
  }
69
69
  function v(e) {
70
70
  try {
71
- return h("git", [
71
+ return m("git", [
72
72
  "-C",
73
73
  e,
74
74
  "rev-parse",
@@ -1,6 +1,6 @@
1
- import { t as e } from "../../base-CqKNs2Kd.js";
2
- import { a as t } from "../../store--2sAv12X.js";
3
- import "../../evidence-DD0CHzJ0.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";
4
4
  import { Flags as n } from "@oclif/core";
5
5
  //#region src/commands/evidence/gc.ts
6
6
  var r = class r extends e {
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../base-CqKNs2Kd.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.";
@@ -1,7 +1,7 @@
1
- import { t as e } from "../../version-Dg0e6CZU.js";
2
- import { t } from "../../base-CqKNs2Kd.js";
3
- import { v as n } from "../../store--2sAv12X.js";
4
- import { t as r } from "../../evidence-DD0CHzJ0.js";
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
5
  import { Flags as i } from "@oclif/core";
6
6
  //#region src/commands/evidence/inspect-mocks.ts
7
7
  var a = class a extends t {
@@ -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;CAoL3B;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAI9D"}
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"}