@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,11 +1,11 @@
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, b as o, f as s, r as c } from "../../store--2sAv12X.js";
4
- import { a as l, i as u, o as d, r as f, s as p } from "../../evidence-DD0CHzJ0.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";
5
5
  import { readFileSync as m } from "node:fs";
6
6
  import { Flags as h } from "@oclif/core";
7
7
  //#region src/commands/evidence/record.ts
8
- var g = class u extends i {
8
+ var g = class d extends i {
9
9
  static summary = "Transcribe one suite run into the evidence store.";
10
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.";
11
11
  static examples = ["quoin evidence record --suite SUITE-001 --commit $(git rev-parse HEAD) --tool 'cargo test 1.94.1' --results run.json"];
@@ -44,9 +44,9 @@ var g = class u extends i {
44
44
  json: h.boolean({ description: "Emit the outcome as JSON." })
45
45
  };
46
46
  async run() {
47
- let { flags: i } = await this.parse(u);
47
+ let { flags: i } = await this.parse(d);
48
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 = n(r());
49
+ let f = t(r());
50
50
  f && this.error(f.message, { exit: 2 });
51
51
  let h = [
52
52
  "coverage",
@@ -55,7 +55,7 @@ var g = class u extends i {
55
55
  "--json"
56
56
  ];
57
57
  i.module && h.push("--module", i.module);
58
- let g = t(h), b = e(g);
58
+ let g = n(h), b = e(g);
59
59
  b.ok || this.error(`${b.error.message}\n${b.error.errors.slice(0, 10).join("\n")}`, { exit: 2 });
60
60
  let x = l({
61
61
  adapter: i.adapter,
@@ -64,7 +64,7 @@ var g = class u extends i {
64
64
  if (x) {
65
65
  let e = i.results === "-" ? m(0, "utf8") : m(i.results, "utf8"), t = x.parse(e), n = t.tool;
66
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 = o(i.repo, {
67
+ let r = s(i.repo, {
68
68
  schemaVersion: 1,
69
69
  suite: i.suite,
70
70
  commit: i.commit,
@@ -74,56 +74,60 @@ var g = class u extends i {
74
74
  ...t.ruleset === void 0 ? {} : { ruleset: t.ruleset },
75
75
  ...t.rulesEvaluated === void 0 ? {} : { rulesEvaluated: t.rulesEvaluated },
76
76
  findings: t.findings
77
- }), l = t.rulesEvaluated === 0, u = (i.discharges ?? "").split(",").map((e) => e.trim()).filter((e) => e !== ""), f = [], p = [];
77
+ }), l = t.rulesEvaluated === 0, u = (i.discharges ?? "").split(",").map((e) => e.trim()).filter((e) => e !== ""), d = [], f = [];
78
78
  if (u.length > 0 && !l) {
79
- let e = new Map(d(b.value).map((e) => [e.id, e])), t = s(i.repo).bindings;
79
+ let e = new Map(p(b.value).map((e) => [e.id, e])), t = a(i.repo).bindings;
80
80
  for (let n of [...u].sort()) {
81
81
  let r = e.get(n);
82
82
  if (!r) {
83
- p.push(n);
83
+ f.push(n);
84
84
  continue;
85
85
  }
86
- let a = c(t, {
86
+ let a = o(t, {
87
87
  obligation: n,
88
88
  statementHashAtBinding: r.statement_hash,
89
89
  suite: i.suite,
90
90
  commit: i.commit,
91
91
  symbols: []
92
92
  });
93
- t = a.bindings, a.created && f.push(n);
93
+ t = a.bindings, a.created && d.push(n);
94
94
  }
95
- a(i.repo, { bindings: t });
95
+ c(i.repo, { bindings: t });
96
96
  }
97
97
  if (i.json) {
98
98
  this.log(JSON.stringify({
99
99
  scanPath: r,
100
100
  findings: t.findings,
101
- bound: f,
102
- unknown: p
101
+ bound: d,
102
+ unknown: f
103
103
  }, null, 2));
104
104
  return;
105
105
  }
106
- this.log(`recorded scan ${i.suite} @ ${i.commit.slice(0, 12)} → ${r}`), this.log(` bound: ${f.length}`), p.length > 0 && this.log(` discharges no such obligation: ${p.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`));
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`));
107
107
  return;
108
108
  }
109
109
  let S = y(i.results, {
110
110
  adapter: i.adapter,
111
111
  tool: i.tool
112
- }), C = p({
112
+ }), C = S.entries, w = u({
113
113
  repo: i.repo,
114
114
  suite: i.suite,
115
115
  commit: i.commit,
116
116
  tool: i.tool,
117
117
  evidenceKind: i.kind,
118
118
  timestamp: i.timestamp ?? (/* @__PURE__ */ new Date()).toISOString(),
119
- entries: S,
120
- obligations: d(b.value)
119
+ entries: C,
120
+ obligations: p(b.value)
121
121
  });
122
122
  if (i.json) {
123
- this.log(JSON.stringify(C, null, 2));
123
+ this.log(JSON.stringify(S.unrepresented === void 0 ? w : {
124
+ ...w,
125
+ unrepresented: S.unrepresented
126
+ }, null, 2));
124
127
  return;
125
128
  }
126
- this.log(`recorded ${i.suite} @ ${i.commit.slice(0, 12)} → ${C.runPath}`), this.log(` bound: ${C.bound.length}`), C.suspect.length > 0 && this.log(` suspect (statement changed since binding, re-affirm to clear): ${C.suspect.join(", ")}`), C.unmatched.length > 0 && this.log(` unmatched trace ids (tagged in the suite, stated by no obligation): ${C.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}`);
127
131
  }
128
132
  };
129
133
  function _(e) {
@@ -134,7 +138,7 @@ function v(e) {
134
138
  }
135
139
  function y(e, t) {
136
140
  let n = m(e === "-" ? 0 : e, "utf8");
137
- return u(t).parse(n).entries;
141
+ return d(t).parse(n);
138
142
  }
139
143
  //#endregion
140
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 };
@@ -0,0 +1,16 @@
1
+ import { GraphAnalysis } from '../../graph-analysis/index.js';
2
+ export declare const graphInputFlags: {
3
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
4
+ export: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
5
+ premises: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
6
+ audit: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
8
+ };
9
+ export declare function loadGraphFlags(flags: {
10
+ repo: string;
11
+ export: string;
12
+ premises: string;
13
+ audit: string;
14
+ }): import('../../graph-analysis/load.js').GraphLoadResult;
15
+ export declare function graphOutput(report: GraphAnalysis, json: boolean): string;
16
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/commands/graph/common.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAOnE,eAAO,MAAM,eAAe;;;;;;CAkB3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,0DAOA;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAIxE"}
@@ -0,0 +1,14 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class GraphFanOut 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=fan-out.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fan-out.d.ts","sourceRoot":"","sources":["../../../src/commands/graph/fan-out.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA0D;IACxE,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 { o as t } from "../../graph-analysis-IWaoJJSN.js";
3
+ import { n, r, t as i } from "../../common-DTrmnvL-.js";
4
+ //#region src/commands/graph/fan-out.ts
5
+ var a = class a extends e {
6
+ skipUpdateNudge = !0;
7
+ static summary = "Report distinct live obligations per evidence suite.";
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 };
@@ -0,0 +1,8 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class Graph extends QuoinCommand {
3
+ protected skipUpdateNudge: boolean;
4
+ static summary: string;
5
+ static description: string;
6
+ run(): Promise<void>;
7
+ }
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,YAAY;IAC7C,SAAS,CAAC,eAAe,UAAQ;IACjC,MAAM,CAAC,OAAO,SAA8C;IAC5D,MAAM,CAAC,WAAW,SAOC;IAEb,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAI3B"}
@@ -0,0 +1,12 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ //#region src/commands/graph/index.ts
3
+ var t = class t extends e {
4
+ skipUpdateNudge = !0;
5
+ static summary = "Read-only evidence-graph analysis views.";
6
+ static description = "Analyze an existing, accepted Quire assurance export together with retained\nQuoin evidence and an existing FR-032 audit. These commands run no producer,\nsuite, Quire, Git, or network operation and write nothing.\n\nSubcommands:\n quoin graph fan-out\n quoin graph change-impact\n quoin graph churn";
7
+ async run() {
8
+ await this.parse(t), this.log(t.description);
9
+ }
10
+ };
11
+ //#endregion
12
+ export { t 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/matrix.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Build or update a requirements test matrix.";
@@ -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/measurement/index.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Record and inspect versioned QA measurements.";
@@ -0,0 +1,11 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class MeasurementIntervention extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static flags: {
6
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ definition: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ };
9
+ run(): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=intervention.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intervention.d.ts","sourceRoot":"","sources":["../../../src/commands/measurement/intervention.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7C,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,YAAY;IAC/D,MAAM,CAAC,OAAO,SACmD;IACjE,MAAM,CAAC,WAAW,SACsC;IACxD,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAY3B"}
@@ -0,0 +1,31 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { n as t } from "../../measurement-j8sDSqx5.js";
3
+ import { readFileSync as n } from "node:fs";
4
+ import { Flags as r } from "@oclif/core";
5
+ //#region src/commands/measurement/intervention.ts
6
+ var i = class i extends e {
7
+ static summary = "Record an intervention from two retained agent-eval reports.";
8
+ static description = "Consumes retained reports only. It never invokes an agent,\nevaluation harness, producer process, or network client.";
9
+ static flags = {
10
+ repo: r.string({
11
+ description: "Repository root.",
12
+ default: "."
13
+ }),
14
+ definition: r.string({
15
+ description: "Versioned producer-definition JSON path.",
16
+ required: !0
17
+ })
18
+ };
19
+ async run() {
20
+ let { flags: e } = await this.parse(i);
21
+ try {
22
+ let r = JSON.parse(n(e.definition, "utf8"));
23
+ this.log(t(e.repo, r).path);
24
+ } catch (e) {
25
+ let t = e instanceof Error ? e.message : String(e);
26
+ this.error(t, { exit: 2 });
27
+ }
28
+ }
29
+ };
30
+ //#endregion
31
+ export { i as default };
@@ -0,0 +1,11 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class OperationalRelease extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static flags: {
6
+ repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
7
+ definition: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
+ };
9
+ run(): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=operational-release.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operational-release.d.ts","sourceRoot":"","sources":["../../../src/commands/measurement/operational-release.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;IAC1D,MAAM,CAAC,OAAO,SACwD;IACtE,MAAM,CAAC,WAAW,SAC4D;IAC9E,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAY3B"}
@@ -0,0 +1,31 @@
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { t } from "../../measurement-j8sDSqx5.js";
3
+ import { readFileSync as n } from "node:fs";
4
+ import { Flags as r } from "@oclif/core";
5
+ //#region src/commands/measurement/operational-release.ts
6
+ var i = class i extends e {
7
+ static summary = "Record operational evidence from retained GitHub release exports.";
8
+ static description = "Consumes retained workflow and API files only. It performs no\nnetwork request, workflow dispatch, release publication, or process execution.";
9
+ static flags = {
10
+ repo: r.string({
11
+ description: "Repository root.",
12
+ default: "."
13
+ }),
14
+ definition: r.string({
15
+ description: "Versioned release-producer definition JSON path.",
16
+ required: !0
17
+ })
18
+ };
19
+ async run() {
20
+ let { flags: e } = await this.parse(i);
21
+ try {
22
+ let r = JSON.parse(n(e.definition, "utf8"));
23
+ this.log(t(e.repo, r).path);
24
+ } catch (e) {
25
+ let t = e instanceof Error ? e.message : String(e);
26
+ this.error(t, { exit: 2 });
27
+ }
28
+ }
29
+ };
30
+ //#endregion
31
+ export { i as default };
@@ -1 +1 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../src/commands/measurement/record.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,YAAY;IACzD,MAAM,CAAC,OAAO,SAA+D;IAC7E,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAoB3B"}
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../src/commands/measurement/record.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAO7C,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,YAAY;IACzD,MAAM,CAAC,OAAO,SAA+D;IAC7E,MAAM,CAAC,KAAK;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA8B3B"}
@@ -1,30 +1,31 @@
1
- import { t as e } from "../../base-CqKNs2Kd.js";
2
- import { h as t } from "../../measurement-CzB74Q07.js";
3
- import { readFileSync as n } from "node:fs";
4
- import { Flags as r } from "@oclif/core";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { E as t, N as n, W as r } from "../../measurement-j8sDSqx5.js";
3
+ import { readFileSync as i } from "node:fs";
4
+ import { Flags as a } from "@oclif/core";
5
5
  //#region src/commands/measurement/record.ts
6
- var i = class i extends e {
6
+ var o = class o extends e {
7
7
  static summary = "Atomically record one plan-validated producer invocation.";
8
8
  static flags = {
9
- repo: r.string({
9
+ repo: a.string({
10
10
  description: "Repository root.",
11
11
  default: "."
12
12
  }),
13
- input: r.string({
13
+ input: a.string({
14
14
  description: "Collection JSON path, or - for stdin.",
15
15
  required: !0
16
16
  })
17
17
  };
18
18
  async run() {
19
- let { flags: e } = await this.parse(i), r = e.input === "-" ? n(0, "utf8") : n(e.input, "utf8"), a;
19
+ let { flags: e } = await this.parse(o), a = e.input === "-" ? i(0, "utf8") : i(e.input, "utf8"), s;
20
20
  try {
21
- a = JSON.parse(r);
21
+ s = JSON.parse(a);
22
22
  } catch (e) {
23
23
  let t = e instanceof Error ? e.message : String(e);
24
24
  this.error(`measurement input is not JSON: ${t}`, { exit: 2 });
25
25
  }
26
26
  try {
27
- this.log(t(e.repo, a));
27
+ let i = typeof s == "object" && s && !Array.isArray(s) ? s.record_type : void 0;
28
+ this.log(i === "intervention_experiment" ? r(e.repo, s) : i === "operational_evidence" ? n(e.repo, s) : t(e.repo, s));
28
29
  } catch (e) {
29
30
  let t = e instanceof Error ? e.message : String(e);
30
31
  this.error(t, { exit: 2 });
@@ -32,4 +33,4 @@ var i = class i extends e {
32
33
  }
33
34
  };
34
35
  //#endregion
35
- export { i as default };
36
+ export { o as default };
@@ -1,6 +1,6 @@
1
- import { t as e } from "../../base-CqKNs2Kd.js";
2
- import { r as t } from "../../plugins-C-ta0llj.js";
3
- import { n } from "../../modules-ez9httBA.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { r as t } from "../../plugins-CHpYhpEI.js";
3
+ import { n } from "../../modules-DDQkKC4l.js";
4
4
  //#region src/commands/module/ensure-defaults.ts
5
5
  var r = class r extends e {
6
6
  static summary = "Idempotently install the default spec module set.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-CqKNs2Kd.js";
2
- import { n as t } from "../../plugins-C-ta0llj.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { n as t } from "../../plugins-CHpYhpEI.js";
3
3
  import { Args as n } from "@oclif/core";
4
4
  //#region src/commands/module/install.ts
5
5
  var r = class r extends e {
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-CqKNs2Kd.js";
2
- import { r as t } from "../../plugins-C-ta0llj.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { r as t } from "../../plugins-CHpYhpEI.js";
3
3
  //#region src/commands/module/list.ts
4
4
  var n = class n extends e {
5
5
  static summary = "List installed spec modules.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-CqKNs2Kd.js";
2
- import { a as t } from "../../plugins-C-ta0llj.js";
1
+ import { t as e } from "../../base-gAClyCNd.js";
2
+ import { a as t } from "../../plugins-CHpYhpEI.js";
3
3
  import { Args as n } from "@oclif/core";
4
4
  //#region src/commands/module/remove.ts
5
5
  var r = class r extends e {
@@ -6,6 +6,10 @@ export default class Report extends QuoinCommand {
6
6
  static flags: {
7
7
  repo: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
8
8
  portfolio: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
9
+ "graph-export": import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
10
+ "graph-premises": import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
11
+ "graph-audit": import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
12
+ changed: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
9
13
  since: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
10
14
  series: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
11
15
  format: import('@oclif/core/interfaces').OptionFlag<string, import('@oclif/core/interfaces').CustomOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/commands/report.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAc1C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;IAC9C,MAAM,CAAC,OAAO,SAA+D;IAC7E,MAAM,CAAC,WAAW,SACyD;IAC3E,MAAM,CAAC,QAAQ,WAKb;IACF,MAAM,CAAC,KAAK;;;;;;MAeV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAqD3B"}
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/commands/report.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAiB1C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;IAC9C,MAAM,CAAC,OAAO,SAA+D;IAC7E,MAAM,CAAC,WAAW,SACyD;IAC3E,MAAM,CAAC,QAAQ,WAKb;IACF,MAAM,CAAC,KAAK;;;;;;;;;;MAmCV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA4E3B"}