@agent-ix/quoin 0.13.0 → 0.15.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 (88) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/dist/advisor/advise.d.ts +57 -0
  4. package/dist/advisor/advise.d.ts.map +1 -0
  5. package/dist/advisor/index.d.ts +10 -0
  6. package/dist/advisor/index.d.ts.map +1 -0
  7. package/dist/advisor/methods.d.ts +50 -0
  8. package/dist/advisor/methods.d.ts.map +1 -0
  9. package/dist/advisor-D35K3_iI.js +50 -0
  10. package/dist/auditor/audit.d.ts +52 -0
  11. package/dist/auditor/audit.d.ts.map +1 -0
  12. package/dist/auditor/index.d.ts +8 -0
  13. package/dist/auditor/index.d.ts.map +1 -0
  14. package/dist/{base-D-_JMqkO.js → base-CtpwIg4M.js} +2 -2
  15. package/dist/catalog.d.ts +1 -0
  16. package/dist/catalog.d.ts.map +1 -1
  17. package/dist/cli.js +1 -1
  18. package/dist/commands/catalog/list.js +2 -2
  19. package/dist/commands/catalog/methods.d.ts +12 -0
  20. package/dist/commands/catalog/methods.d.ts.map +1 -0
  21. package/dist/commands/catalog/methods.js +43 -0
  22. package/dist/commands/catalog/show.js +2 -2
  23. package/dist/commands/catalog/validate.js +2 -2
  24. package/dist/commands/config/doctor.js +1 -1
  25. package/dist/commands/config/edit.js +1 -1
  26. package/dist/commands/config/get.js +1 -1
  27. package/dist/commands/config/set.js +1 -1
  28. package/dist/commands/evidence/affirm.d.ts +17 -0
  29. package/dist/commands/evidence/affirm.d.ts.map +1 -0
  30. package/dist/commands/evidence/affirm.js +81 -0
  31. package/dist/commands/evidence/audit.d.ts +15 -0
  32. package/dist/commands/evidence/audit.d.ts.map +1 -0
  33. package/dist/commands/evidence/audit.js +192 -0
  34. package/dist/commands/evidence/gc.d.ts +13 -0
  35. package/dist/commands/evidence/gc.d.ts.map +1 -0
  36. package/dist/commands/evidence/gc.js +34 -0
  37. package/dist/commands/evidence/index.d.ts +8 -0
  38. package/dist/commands/evidence/index.d.ts.map +1 -0
  39. package/dist/commands/evidence/index.js +16 -0
  40. package/dist/commands/evidence/record.d.ts +18 -0
  41. package/dist/commands/evidence/record.d.ts.map +1 -0
  42. package/dist/commands/evidence/record.js +85 -0
  43. package/dist/commands/matrix.js +1 -1
  44. package/dist/commands/module/ensure-defaults.js +3 -3
  45. package/dist/commands/module/install.js +2 -2
  46. package/dist/commands/module/list.js +2 -2
  47. package/dist/commands/module/remove.js +2 -2
  48. package/dist/commands/review.js +1 -1
  49. package/dist/commands/to-plan.js +1 -1
  50. package/dist/commands/update.js +2 -2
  51. package/dist/commands/write.js +3 -3
  52. package/dist/evidence/index.d.ts +13 -0
  53. package/dist/evidence/index.d.ts.map +1 -0
  54. package/dist/evidence/record.d.ts +52 -0
  55. package/dist/evidence/record.d.ts.map +1 -0
  56. package/dist/evidence/store.d.ts +77 -0
  57. package/dist/evidence/store.d.ts.map +1 -0
  58. package/dist/evidence/types.d.ts +122 -0
  59. package/dist/evidence/types.d.ts.map +1 -0
  60. package/dist/evidence-BvUyw-Yv.js +171 -0
  61. package/dist/{flow-command-BPwQwyEV.js → flow-command-BSMqxass.js} +1 -1
  62. package/dist/index.js +6 -6
  63. package/dist/{modules-Dn6ac8th.js → modules-Ckfaq5p4.js} +2 -2
  64. package/dist/{plugins-BCCcBgCW.js → plugins-CLuXx2Jr.js} +1 -1
  65. package/dist/quire/contract.d.ts +82 -0
  66. package/dist/quire/contract.d.ts.map +1 -0
  67. package/dist/quire/index.d.ts +11 -0
  68. package/dist/quire/index.d.ts.map +1 -0
  69. package/dist/quire/types.d.ts +155 -0
  70. package/dist/quire/types.d.ts.map +1 -0
  71. package/dist/quire/validate.d.ts +34 -0
  72. package/dist/quire/validate.d.ts.map +1 -0
  73. package/dist/quire-MbMdffPh.js +4872 -0
  74. package/dist/schemas/coverage-v1.schema.json +191 -0
  75. package/dist/schemas/properties-v1.schema.json +134 -0
  76. package/dist/{version-BGJINLrJ.js → version-By2YFRZQ.js} +1 -1
  77. package/dist/{write-FTRN1yh6.js → write-8JJ8Dumo.js} +1 -1
  78. package/package.json +6 -2
  79. package/skills/gap-analysis/SKILL.md +12 -0
  80. package/skills/gap-analysis/references/step-3-matrix-verification.md +24 -1
  81. package/skills/gap-analysis/references/step-6-specreview-artifact.md +7 -0
  82. package/skills/spec-correctness/references/step-6-review-artifact.md +13 -0
  83. package/skills/spec-correctness/references/step-7-report-and-handoff.md +21 -3
  84. package/skills/spec-ears-analysis/SKILL.md +13 -0
  85. package/skills/spec-evidence-analysis/SKILL.md +64 -52
  86. package/skills/spec-matrix/SKILL.md +13 -0
  87. package/skills/spec-review/SKILL.md +13 -0
  88. package/skills/spec-to-plan/SKILL.md +13 -0
@@ -0,0 +1,122 @@
1
+ /**
2
+ * The evidence store's machine-written records (FR-030).
3
+ *
4
+ * ## Governing principle
5
+ *
6
+ * **Store only what cannot be recomputed from spec + code at HEAD.**
7
+ *
8
+ * Run outcomes, hash-at-binding, affirmations and the ratchet baseline are
9
+ * facts about the past — nothing can re-derive them tomorrow. Obligations are
10
+ * not: they are re-derived live from quire (quire-rs FR-053) on every read, so
11
+ * they cannot drift out of agreement with the spec. A stored copy of an
12
+ * obligation would be one more thing to keep in sync, and the thing it would
13
+ * most likely disagree with is the requirement itself.
14
+ *
15
+ * ## Format rule
16
+ *
17
+ * Authored → markdown, validated as a corpus document (the `SuiteRegistry` and
18
+ * `Inspections` archetypes, spec-artifacts-process FR-006).
19
+ * Machine-transcribed → JSON, typeless and corpus-invisible, described here.
20
+ *
21
+ * No SQLite anywhere. quoin writes files; parsing, loading and indexing for an
22
+ * application is `filament-ide-rs` daemon territory, and a derived index inside
23
+ * the store would be a second source of truth for facts the files already hold.
24
+ */
25
+ /** Where a suite's run records live, relative to the store root. */
26
+ export declare const RUNS_DIR = "runs";
27
+ /** Schema version carried by every machine-written file in the store. */
28
+ export declare const STORE_SCHEMA_VERSION = 1;
29
+ /**
30
+ * One test symbol's outcome within a run.
31
+ *
32
+ * `symbol` is the FR-051 stable symbol identity — the join between what a tool
33
+ * reports and what the matrix declares. A tool's own test name is not that
34
+ * identity and must be mapped to it by the adapter (agent-ix/quoin#91) before a
35
+ * record is written.
36
+ */
37
+ export interface RunEntry {
38
+ /** FR-051 stable symbol identity. */
39
+ symbol: string;
40
+ outcome: "pass" | "fail" | "skip" | "error";
41
+ /**
42
+ * A numeric result where the method produces one — a mutation score, a
43
+ * coverage percentage, a measured latency. Absent for a plain pass/fail.
44
+ */
45
+ score?: number;
46
+ /** Trace ids this symbol carries, as the adapter read them. */
47
+ traceIds?: string[];
48
+ }
49
+ /**
50
+ * One run of ONE suite at ONE commit.
51
+ *
52
+ * The suite is the atomic unit of evidence: aggregation is a view, and a
53
+ * partial run must never be able to masquerade as a full one. The `make ci` /
54
+ * `make ci-python` split already caused exactly that rot (quire-rs TC-715),
55
+ * where a green "CI" meant one of two suites.
56
+ *
57
+ * Re-runs at the same commit are **last-write-wins, latest only**. Flake
58
+ * history is analytics, not the record of record — keeping every attempt here
59
+ * would make the store grow without bound to answer a question a different
60
+ * tool should answer.
61
+ */
62
+ export interface RunRecord {
63
+ schemaVersion: number;
64
+ suite: string;
65
+ /** Full commit sha the run was performed at. */
66
+ commit: string;
67
+ /** Tool and version, as the adapter reported them. */
68
+ tool: string;
69
+ /** ISO-8601, supplied by the caller — never read from the clock here. */
70
+ timestamp: string;
71
+ entries: RunEntry[];
72
+ }
73
+ /** Someone re-affirming a binding after the statement it was made against changed. */
74
+ export interface Affirmation {
75
+ who: string;
76
+ commit: string;
77
+ note?: string;
78
+ }
79
+ /**
80
+ * One obligation bound to the evidence that discharges it.
81
+ *
82
+ * `statementHashAtBinding` is the entire mechanism: suspect detection is
83
+ * `currentHash !== statementHashAtBinding`, computed by comparing this against
84
+ * the obligation quire re-derives today. quire computes the hash; quoin only
85
+ * ever compares.
86
+ */
87
+ export interface Binding {
88
+ /** Obligation id — the same id the coverage rollup and trace tags key on. */
89
+ obligation: string;
90
+ /** The statement hash as it stood when the binding was first made. */
91
+ statementHashAtBinding: string;
92
+ /** Suite that discharged it. */
93
+ suite: string;
94
+ /** Commit of the run that first discharged it. */
95
+ commit: string;
96
+ /** Symbols within that suite that carry the obligation's trace id. */
97
+ symbols: string[];
98
+ /** Re-affirmations recorded after a statement changed. */
99
+ affirmations?: Affirmation[];
100
+ }
101
+ /**
102
+ * The unified binding graph.
103
+ *
104
+ * Unified rather than per-suite because the graph IS cross-suite: one
105
+ * obligation can be discharged by a unit test and a benchmark, and splitting
106
+ * the file per suite would make that relationship something to reassemble.
107
+ */
108
+ export interface BindingsFile {
109
+ schemaVersion: number;
110
+ bindings: Binding[];
111
+ }
112
+ /** The accepted violation set a ratchet compares against. */
113
+ export interface BaselineFile {
114
+ schemaVersion: number;
115
+ /** Commit the baseline was accepted at. */
116
+ commit: string;
117
+ /** Obligation ids accepted as currently undischarged. */
118
+ undischarged: string[];
119
+ /** Obligation ids accepted as currently suspect. */
120
+ suspect: string[];
121
+ }
122
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/evidence/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,oEAAoE;AACpE,eAAO,MAAM,QAAQ,SAAS,CAAC;AAE/B,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,WAAW,QAAQ;IACvB,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,SAAS;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,EAAE,CAAC;CACrB;AAED,sFAAsF;AACtF,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,OAAO;IACtB,6EAA6E;IAC7E,UAAU,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,6DAA6D;AAC7D,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,oDAAoD;IACpD,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -0,0 +1,171 @@
1
+ import { existsSync as e, mkdirSync as t, readFileSync as n, readdirSync as r, rmSync as i, writeFileSync as a } from "node:fs";
2
+ import { dirname as o, join as s } from "node:path";
3
+ //#region src/evidence/types.ts
4
+ var c = "runs";
5
+ //#endregion
6
+ //#region src/evidence/store.ts
7
+ function l(e) {
8
+ return s(e, "spec", "evidence");
9
+ }
10
+ function u(e) {
11
+ return s(l(e), "bindings.json");
12
+ }
13
+ function d(e) {
14
+ return s(l(e), "baseline.json");
15
+ }
16
+ function f(e, t, n) {
17
+ return s(l(e), c, t, `${p(n)}.json`);
18
+ }
19
+ function p(e) {
20
+ return e.slice(0, 12);
21
+ }
22
+ function m(e) {
23
+ return `${JSON.stringify(h(e), null, 2)}\n`;
24
+ }
25
+ function h(e) {
26
+ if (Array.isArray(e)) return e.map(h);
27
+ if (typeof e != "object" || !e) return e;
28
+ let t = {};
29
+ for (let n of Object.keys(e).sort()) t[n] = h(e[n]);
30
+ return t;
31
+ }
32
+ function g(e, n) {
33
+ t(o(e), { recursive: !0 }), a(e, m(n), "utf8");
34
+ }
35
+ function _(t) {
36
+ return e(t) ? JSON.parse(n(t, "utf8")) : null;
37
+ }
38
+ function v(e, t) {
39
+ let n = f(e, t.suite, t.commit);
40
+ return g(n, {
41
+ ...t,
42
+ schemaVersion: 1
43
+ }), n;
44
+ }
45
+ function y(e, t, n) {
46
+ return _(f(e, t, n));
47
+ }
48
+ function b(t, n) {
49
+ let i = s(l(t), c, n);
50
+ return e(i) ? r(i).filter((e) => e.endsWith(".json")).sort() : [];
51
+ }
52
+ function x(t) {
53
+ let n = s(l(t), c);
54
+ return e(n) ? r(n, { withFileTypes: !0 }).filter((e) => e.isDirectory()).map((e) => e.name).sort() : [];
55
+ }
56
+ function S(e) {
57
+ return _(u(e)) ?? {
58
+ schemaVersion: 1,
59
+ bindings: []
60
+ };
61
+ }
62
+ function C(e, t) {
63
+ let n = [...t.bindings].sort((e, t) => e.obligation.localeCompare(t.obligation));
64
+ g(u(e), {
65
+ schemaVersion: 1,
66
+ bindings: n
67
+ });
68
+ }
69
+ function w(e) {
70
+ return _(d(e));
71
+ }
72
+ function T(e, t = !1) {
73
+ let n = new Set(S(e).bindings.map((e) => `${e.suite}/${p(e.commit)}.json`)), r = [];
74
+ for (let a of x(e)) {
75
+ let o = b(e, a), u = /* @__PURE__ */ new Set(), d = o.at(-1);
76
+ d && u.add(d);
77
+ for (let d of o) {
78
+ if (u.has(d) || n.has(`${a}/${d}`)) continue;
79
+ let o = s(l(e), c, a, d);
80
+ r.push(o), t || i(o);
81
+ }
82
+ }
83
+ return r.sort();
84
+ }
85
+ function E(e, t) {
86
+ let n = e.findIndex((e) => e.obligation === t.obligation);
87
+ if (n === -1) return {
88
+ bindings: [...e, { ...t }],
89
+ created: !0,
90
+ suspect: !1
91
+ };
92
+ let r = e[n], i = r.statementHashAtBinding !== t.statementHashAtBinding, a = {
93
+ ...r,
94
+ suite: t.suite,
95
+ commit: t.commit,
96
+ symbols: t.symbols
97
+ }, o = [...e];
98
+ return o[n] = a, {
99
+ bindings: o,
100
+ created: !1,
101
+ suspect: i
102
+ };
103
+ }
104
+ function D(e, t, n, r, i, a) {
105
+ let o = e.findIndex((e) => e.obligation === t);
106
+ if (o === -1) return {
107
+ bindings: e,
108
+ found: !1
109
+ };
110
+ let s = e[o], c = [...e];
111
+ return c[o] = {
112
+ ...s,
113
+ statementHashAtBinding: n,
114
+ affirmations: [...s.affirmations ?? [], {
115
+ who: r,
116
+ commit: i,
117
+ note: a
118
+ }]
119
+ }, {
120
+ bindings: c,
121
+ found: !0
122
+ };
123
+ }
124
+ //#endregion
125
+ //#region src/evidence/record.ts
126
+ function O(e) {
127
+ let t = v(e.repo, {
128
+ schemaVersion: 1,
129
+ suite: e.suite,
130
+ commit: e.commit,
131
+ tool: e.tool,
132
+ timestamp: e.timestamp,
133
+ entries: e.entries
134
+ }), n = new Map(e.obligations.map((e) => [e.id, e])), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
135
+ for (let t of e.entries) for (let e of t.traceIds ?? []) {
136
+ if (!n.has(e)) {
137
+ i.add(e);
138
+ continue;
139
+ }
140
+ if (t.outcome !== "pass") continue;
141
+ let a = r.get(e) ?? [];
142
+ a.push(t.symbol), r.set(e, a);
143
+ }
144
+ let a = S(e.repo).bindings, o = [], s = [];
145
+ for (let [t, i] of [...r].sort(([e], [t]) => e.localeCompare(t))) {
146
+ let r = n.get(t);
147
+ if (!r) continue;
148
+ let c = E(a, {
149
+ obligation: t,
150
+ statementHashAtBinding: r.statement_hash,
151
+ suite: e.suite,
152
+ commit: e.commit,
153
+ symbols: [...i].sort()
154
+ });
155
+ a = c.bindings, c.created && o.push(t), c.suspect && s.push(t);
156
+ }
157
+ return C(e.repo, {
158
+ schemaVersion: 1,
159
+ bindings: a
160
+ }), {
161
+ runPath: t,
162
+ bound: o.sort(),
163
+ suspect: s.sort(),
164
+ unmatched: [...i].sort()
165
+ };
166
+ }
167
+ function k(e) {
168
+ return e.obligations ?? [];
169
+ }
170
+ //#endregion
171
+ export { x as a, S as c, T as i, y as l, O as n, b as o, D as r, w as s, k as t, C as u };
@@ -1,4 +1,4 @@
1
- import { a as e, t } from "./base-D-_JMqkO.js";
1
+ import { a as e, t } from "./base-CtpwIg4M.js";
2
2
  import { existsSync as n } from "node:fs";
3
3
  import { dirname as r, join as i, resolve as a } from "node:path";
4
4
  import { fileURLToPath as o } from "node:url";
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { n as e, t } from "./version-BGJINLrJ.js";
1
+ import { n as e, t } from "./version-By2YFRZQ.js";
2
2
  import { isVersionRequest as n, main as r } from "./cli.js";
3
- import { i, n as a, o, r as s, t as c } from "./base-D-_JMqkO.js";
4
- import { a as l, i as u, n as d, r as f } from "./plugins-BCCcBgCW.js";
5
- import { n as p, t as m } from "./modules-Dn6ac8th.js";
3
+ import { i, n as a, o, r as s, t as c } from "./base-CtpwIg4M.js";
4
+ import { a as l, i as u, n as d, r as f } from "./plugins-CLuXx2Jr.js";
5
+ import { n as p, t as m } from "./modules-Ckfaq5p4.js";
6
6
  import { i as h, n as g, r as _, t as v } from "./config-schema-Dp-vlxuR.js";
7
- import { a as y, i as b, n as x, o as S, r as C, t as w } from "./write-FTRN1yh6.js";
8
- import { t as T } from "./flow-command-BPwQwyEV.js";
7
+ import { a as y, i as b, n as x, o as S, r as C, t as w } from "./write-8JJ8Dumo.js";
8
+ import { t as T } from "./flow-command-BSMqxass.js";
9
9
  export { T as FlowCommand, v as QUOIN_ENV_BINDINGS, g as QUOIN_PLUGIN_ID, c as QuoinCommand, _ as QuoinConfigSchema, b as UNRESOLVED_ORG_MESSAGE, w as createAuthoringPack, a as defaultModuleRoots, m as defaultModulesManifest, p as ensureDefaultModules, s as filamentModulesDir, i as findCatalogEntry, x as formatAuthoringPack, d as installPlugin, n as isVersionRequest, h as ixSchema, f as listPlugins, o as loadCatalog, r as main, y as originOrg, t as packageVersion, u as parseSourceArg, C as parseTypeList, l as removePlugin, S as resolveOrg, e as resolveVersion };
@@ -1,5 +1,5 @@
1
- import { a as e } from "./base-D-_JMqkO.js";
2
- import { t } from "./plugins-BCCcBgCW.js";
1
+ import { a as e } from "./base-CtpwIg4M.js";
2
+ import { t } from "./plugins-CLuXx2Jr.js";
3
3
  import { readFileSync as n } from "node:fs";
4
4
  import { dirname as r, join as i } from "node:path";
5
5
  import { fileURLToPath as a } from "node:url";
@@ -1,4 +1,4 @@
1
- import { a as e, r as t } from "./base-D-_JMqkO.js";
1
+ import { a as e, r as t } from "./base-CtpwIg4M.js";
2
2
  import { existsSync as n, readFileSync as r, rmSync as i } from "node:fs";
3
3
  import { basename as a, join as o } from "node:path";
4
4
  import { parse as s } from "yaml";
@@ -0,0 +1,82 @@
1
+ /**
2
+ * The quire↔quoin JSON contract (FR-029).
3
+ *
4
+ * quire-rs FR-055 publishes a versioned JSON Schema for each machine-readable
5
+ * payload it emits. This module is the consumer side: it pins the contract
6
+ * version quoin was written against, vendors the published schemas, and
7
+ * enforces the version premise before anything reads a payload.
8
+ *
9
+ * ## Why the schemas are vendored
10
+ *
11
+ * quire-rs is a Rust crate consumed by git tag; quoin is an npm package. There
12
+ * is no dependency edge along which a schema file could travel, and fetching
13
+ * one at runtime is out of the question (quoin performs no network reads on a
14
+ * command path). So the artifacts are **copied in with their provenance
15
+ * recorded** — source tag, path and content hash — and refreshed deliberately
16
+ * by `scripts/refresh-quire-schemas.mjs`, whose diff is reviewed.
17
+ *
18
+ * That is a copy, and a copy can drift. What keeps it honest is that the hash
19
+ * is asserted on every test run and the refresh script re-derives it from a
20
+ * checked-out quire-rs at the pinned tag: an edit to the vendored file without
21
+ * a matching refresh fails immediately, rather than silently teaching quoin a
22
+ * contract quire does not emit.
23
+ */
24
+ /** Where the vendored schemas came from, and exactly which bytes. */
25
+ export declare const QUIRE_CONTRACT: {
26
+ /** The quire-rs release the vendored schemas were copied from. */
27
+ readonly sourceTag: "v0.29.0";
28
+ /** The contract version, as carried in each schema's `$id` and filename. */
29
+ readonly contractVersion: "v1";
30
+ /**
31
+ * Minimum `quire` CLI that emits this contract.
32
+ *
33
+ * v0.21.0 is the first release carrying the FR-053 `obligation` field on
34
+ * property records and the FR-055 published schemas. An older binary emits a
35
+ * payload this contract does not describe — which is a diagnosable state, not
36
+ * a parse error to discover three frames deep.
37
+ */
38
+ readonly minimumCli: "0.21.0";
39
+ /**
40
+ * SHA-256 of each vendored file. Asserted on every test run, so an edit
41
+ * without a matching refresh fails loudly.
42
+ */
43
+ readonly hashes: {
44
+ readonly "coverage-v1.schema.json": "bcc79e194a2f6c1a60d5345cf4f7947913fe0fe7dcde3f31989b9d9b8cecdbc3";
45
+ readonly "properties-v1.schema.json": "d81f1ec85abdecd1f1664ded15e081f9aecb6c0f054d6b332b71e904cf826292";
46
+ };
47
+ };
48
+ export type SchemaName = keyof typeof QUIRE_CONTRACT.hashes;
49
+ /** Absolute path of a vendored schema. */
50
+ export declare function schemaPath(name: SchemaName): string;
51
+ /** Read a vendored schema as parsed JSON. */
52
+ export declare function readSchema(name: SchemaName): unknown;
53
+ /** SHA-256 of a vendored schema as it sits on disk. */
54
+ export declare function schemaHash(name: SchemaName): string;
55
+ /**
56
+ * A CLI version that does not satisfy the contract's premise.
57
+ *
58
+ * Carried as a distinct shape so a caller can report *which* premise failed
59
+ * rather than "something went wrong reading quire output" — the failure mode
60
+ * agent-ix/quoin#88 was filed about, where a shape drift surfaced as an
61
+ * unexplained mid-skill error.
62
+ */
63
+ export interface VersionPremiseFailure {
64
+ readonly kind: "version-premise";
65
+ readonly found: string | null;
66
+ readonly required: string;
67
+ readonly message: string;
68
+ }
69
+ /** Parse `quire --version` output (`quire 0.21.0`) into a version string. */
70
+ export declare function parseCliVersion(output: string): string | null;
71
+ /** Numeric semver comparison. Returns <0, 0, >0. */
72
+ export declare function compareVersions(a: string, b: string): number;
73
+ /**
74
+ * Check a `quire --version` output against the contract's minimum.
75
+ *
76
+ * Returns `null` when the premise holds. Returns a named failure otherwise —
77
+ * including when the version could not be parsed at all, because "no quire on
78
+ * PATH" and "a quire too old to emit this shape" are both states a caller must
79
+ * report rather than push into a downstream parse.
80
+ */
81
+ export declare function checkVersionPremise(versionOutput: string | null): VersionPremiseFailure | null;
82
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/quire/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,qEAAqE;AACrE,eAAO,MAAM,cAAc;IACzB,kEAAkE;;IAElE,4EAA4E;;IAE5E;;;;;;;OAOG;;IAEH;;;OAGG;;;;;CAOK,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,cAAc,CAAC,MAAM,CAAC;AAI5D,0CAA0C;AAC1C,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAEnD;AAED,6CAA6C;AAC7C,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAEpD;AAED,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAInD;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG7D;AAED,oDAAoD;AACpD,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAQ5D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,qBAAqB,GAAG,IAAI,CA2B9B"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The quire↔quoin contract surface (FR-029).
3
+ *
4
+ * One import site for everything a consumer needs to read quire JSON safely:
5
+ * the pinned contract, the version premise, the validators, and the models the
6
+ * validators make true.
7
+ */
8
+ export { QUIRE_CONTRACT, checkVersionPremise, compareVersions, parseCliVersion, readSchema, schemaHash, schemaPath, type SchemaName, type VersionPremiseFailure, } from './contract.js';
9
+ export { parseCoverage, parseProperties, validateCoverage, validateProperties, type ContractViolation, type ValidationResult, } from './validate.js';
10
+ export type { AcShape, CoverageDiagnostic, CoverageReport, CoverageTotals, Criterion, CriteriaCounts, CriterionObligation, Extraction, GroupCounts, NoSymbolRow, Obligation, PropertiesDocument, PropertiesReport, PropertyShape, PropertySpan, StatusLie, UnbackedRow, UntrackedSymbol, } from './types.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/quire/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,UAAU,EACf,KAAK,qBAAqB,GAC3B,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,WAAW,EACX,eAAe,GAChB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,155 @@
1
+ /**
2
+ * TypeScript models for the quire JSON payloads (FR-029).
3
+ *
4
+ * These mirror the vendored schemas rather than restating them: every value
5
+ * that reaches consumer code has been validated against the published schema
6
+ * first (`validateCoverage` / `validateProperties`), so a mismatch between
7
+ * these declarations and the contract surfaces as a validation error naming the
8
+ * offending path — not as an `undefined` three frames later.
9
+ *
10
+ * That ordering is the point. quoin's own `spec/review.md` Finding 8 records
11
+ * "no contract test against quire": the shapes lived as prose in skill
12
+ * markdown, and when one drifted an agent failed mid-skill with nothing to
13
+ * diagnose. Types alone would not have fixed that — TypeScript erases at
14
+ * runtime and JSON from a subprocess is `any`. The validator is what makes
15
+ * these types true.
16
+ */
17
+ /** One reference row answerable for trace ids nothing backs (FR-050-AC-3). */
18
+ export interface UnbackedRow {
19
+ reference: string;
20
+ document: string;
21
+ row_id?: string | null;
22
+ target_ids: string[];
23
+ }
24
+ /** A row whose status classes as complete while nothing backs it. */
25
+ export interface StatusLie {
26
+ reference: string;
27
+ document: string;
28
+ row_id?: string | null;
29
+ status: string;
30
+ target_ids: string[];
31
+ }
32
+ /** An unbacked row exempted by a method that mints no source symbol (CR-041). */
33
+ export interface NoSymbolRow {
34
+ reference: string;
35
+ document: string;
36
+ row_id?: string | null;
37
+ test_type: string;
38
+ target_ids: string[];
39
+ }
40
+ /** A source symbol whose trace tag resolves to nothing declared. */
41
+ export interface UntrackedSymbol {
42
+ path: string;
43
+ symbol: string;
44
+ trace_id: string;
45
+ }
46
+ /** Backed/total counts for one minting document and target kind. */
47
+ export interface GroupCounts {
48
+ document: string;
49
+ target: string;
50
+ backed: number;
51
+ total: number;
52
+ }
53
+ /** Per-document property-shape counts (CR-028). */
54
+ export interface CriteriaCounts {
55
+ document: string;
56
+ archetype: string;
57
+ criteria: number;
58
+ property_shaped: number;
59
+ by_property: Record<string, number>;
60
+ }
61
+ /** A declaration that selected nothing, and why (CR-054). */
62
+ export interface CoverageDiagnostic {
63
+ declaration: string;
64
+ /** Open machine vocabulary — deliberately not a union (FR-055). */
65
+ reason: string;
66
+ message: string;
67
+ path?: string | null;
68
+ }
69
+ /**
70
+ * One derived obligation (quire-rs FR-053) — the quire↔quoin contract itself.
71
+ *
72
+ * `statement_hash` is the whole reason this record exists downstream: suspect
73
+ * detection is `current_hash !== hash_at_binding` and nothing more.
74
+ */
75
+ export interface Obligation {
76
+ source: string;
77
+ id: string;
78
+ document: string;
79
+ statement: string;
80
+ statement_hash: string;
81
+ method?: string | null;
82
+ parameters?: Record<string, string>;
83
+ criticality?: string | null;
84
+ }
85
+ /** Bundle-wide totals. The criteria pair is all-or-nothing. */
86
+ export interface CoverageTotals {
87
+ backed: number;
88
+ total: number;
89
+ criteria?: number | null;
90
+ property_shaped?: number | null;
91
+ }
92
+ /** The `quire coverage --json` payload (v1). */
93
+ export interface CoverageReport {
94
+ unbacked_rows: UnbackedRow[];
95
+ status_lies: StatusLie[];
96
+ /** Absent — not empty — when the module declares no exemption vocabulary. */
97
+ no_symbol_rows?: NoSymbolRow[];
98
+ untracked_symbols: UntrackedSymbol[];
99
+ groups: GroupCounts[];
100
+ criteria?: CriteriaCounts[];
101
+ diagnostics?: CoverageDiagnostic[];
102
+ obligations?: Obligation[];
103
+ totals: CoverageTotals;
104
+ }
105
+ /** A byte-offset span carrying its own text (FR-052). */
106
+ export interface PropertySpan {
107
+ start: number;
108
+ end: number;
109
+ text: string;
110
+ }
111
+ /** The FR-047 shape axis. Closed in the engine, so closed here. */
112
+ export type AcShape = "assertion" | "obligation" | "given-when-then" | "unstructured";
113
+ /** The FR-052 property-shape axis. Closed by FR-052-CON-3. */
114
+ export type PropertyShape = "round-trip" | "idempotence" | "ordering" | "invariant" | "error-case" | "lifecycle" | "concurrency" | "universal" | "example" | "unclassified";
115
+ /** What a generator may do with a criterion (CR-033). */
116
+ export type Extraction = "extractable" | "candidate" | "not-extractable";
117
+ /**
118
+ * The obligation as nested on a criterion record.
119
+ *
120
+ * Carries no `id`, `statement` or `document`: the criterion and its enclosing
121
+ * document object already have all three.
122
+ */
123
+ export interface CriterionObligation {
124
+ source: string;
125
+ statement_hash: string;
126
+ method?: string | null;
127
+ parameters?: Record<string, string>;
128
+ criticality?: string | null;
129
+ }
130
+ /** One classified acceptance criterion. */
131
+ export interface Criterion {
132
+ row_id: string | null;
133
+ statement: string;
134
+ line: number | null;
135
+ shape: AcShape;
136
+ property: PropertyShape;
137
+ extractable: boolean;
138
+ extraction: Extraction;
139
+ domain: PropertySpan | null;
140
+ precondition: PropertySpan | null;
141
+ oracle: PropertySpan | null;
142
+ signals: string[];
143
+ obligation: CriterionObligation | null;
144
+ }
145
+ /** One document's classified criteria. */
146
+ export interface PropertiesDocument {
147
+ document: string;
148
+ archetype: string;
149
+ criteria: Criterion[];
150
+ }
151
+ /** The `quire properties --json` payload (v1). */
152
+ export interface PropertiesReport {
153
+ documents: PropertiesDocument[];
154
+ }
155
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/quire/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,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contract.js';
2
+ import { CoverageReport, PropertiesReport } from './types.js';
3
+ /** A payload that did not satisfy the published contract. */
4
+ export interface ContractViolation {
5
+ readonly kind: "contract-violation";
6
+ readonly schema: SchemaName;
7
+ /** One line per failing path, in the order ajv reported them. */
8
+ readonly errors: string[];
9
+ readonly message: string;
10
+ }
11
+ export type ValidationResult<T> = {
12
+ ok: true;
13
+ value: T;
14
+ } | {
15
+ ok: false;
16
+ error: ContractViolation;
17
+ };
18
+ /** Validate a `quire coverage --json` payload. */
19
+ export declare function validateCoverage(payload: unknown): ValidationResult<CoverageReport>;
20
+ /** Validate a `quire properties --json` payload. */
21
+ export declare function validateProperties(payload: unknown): ValidationResult<PropertiesReport>;
22
+ /**
23
+ * Parse and validate in one step, so a caller never holds an unvalidated
24
+ * payload it could accidentally use.
25
+ *
26
+ * A JSON parse failure is reported as a contract violation rather than thrown:
27
+ * from the caller's position "quire emitted something unreadable" and "quire
28
+ * emitted the wrong shape" are the same actionable fact — the tool's output
29
+ * cannot be consumed — and both want the same named diagnostic.
30
+ */
31
+ export declare function parseCoverage(text: string): ValidationResult<CoverageReport>;
32
+ /** As {@link parseCoverage}, for the properties payload. */
33
+ export declare function parseProperties(text: string): ValidationResult<PropertiesReport>;
34
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/quire/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnE,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,iEAAiE;IACjE,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAC5B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAoDnE,kDAAkD;AAClD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,GACf,gBAAgB,CAAC,cAAc,CAAC,CAElC;AAED,oDAAoD;AACpD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,GACf,gBAAgB,CAAC,gBAAgB,CAAC,CAEpC;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAE5E;AAED,4DAA4D;AAC5D,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,GACX,gBAAgB,CAAC,gBAAgB,CAAC,CAEpC"}