@agent-ix/quoin 0.21.2 → 0.21.8
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.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/bin/quoin.js +9 -2
- package/default-modules.yaml +4 -4
- package/dist/advisor/advise.d.ts +91 -5
- package/dist/advisor/advise.d.ts.map +1 -1
- package/dist/advisor/index.d.ts +1 -1
- package/dist/advisor/index.d.ts.map +1 -1
- package/dist/{advisor-x8vSvzWl.js → advisor-COB2SuIj.js} +1 -1
- package/dist/assurance/graph.d.ts +8 -0
- package/dist/assurance/graph.d.ts.map +1 -1
- package/dist/auditor/audit.d.ts +51 -17
- package/dist/auditor/audit.d.ts.map +1 -1
- package/dist/auditor/index.d.ts +1 -1
- package/dist/auditor/index.d.ts.map +1 -1
- package/dist/{auditor-B6Hs00oH.js → auditor-ww0MC62a.js} +127 -73
- package/dist/{base-DVl7skpc.js → base-DNieRzIg.js} +1 -1
- package/dist/cli.d.ts +28 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +20 -10
- package/dist/commands/advise.d.ts.map +1 -1
- package/dist/commands/advise.js +65 -42
- package/dist/commands/assurance.d.ts.map +1 -1
- package/dist/commands/assurance.js +21 -19
- package/dist/commands/catalog/list.js +2 -2
- package/dist/commands/catalog/methods.js +3 -3
- package/dist/commands/catalog/show.js +2 -2
- package/dist/commands/catalog/validate.js +2 -2
- package/dist/commands/completeness.js +2 -2
- package/dist/commands/config/doctor.js +1 -1
- package/dist/commands/config/edit.js +1 -1
- package/dist/commands/config/get.js +1 -1
- package/dist/commands/config/set.js +1 -1
- package/dist/commands/evidence/affirm.d.ts.map +1 -1
- package/dist/commands/evidence/affirm.js +4 -7
- package/dist/commands/evidence/audit.d.ts +8 -0
- package/dist/commands/evidence/audit.d.ts.map +1 -1
- package/dist/commands/evidence/audit.js +39 -36
- package/dist/commands/evidence/baseline.js +5 -5
- package/dist/commands/evidence/gc.d.ts.map +1 -1
- package/dist/commands/evidence/gc.js +3 -3
- package/dist/commands/evidence/index.js +1 -1
- package/dist/commands/evidence/record.js +3 -3
- package/dist/commands/matrix.js +1 -1
- package/dist/commands/module/ensure-defaults.js +3 -3
- package/dist/commands/module/install.js +2 -2
- package/dist/commands/module/list.js +2 -2
- package/dist/commands/module/remove.js +2 -2
- package/dist/commands/review.js +1 -1
- package/dist/commands/to-plan.js +1 -1
- package/dist/commands/update.js +2 -2
- package/dist/commands/write.js +3 -3
- package/dist/{completeness-Bl40nk02.js → completeness-F657dxMp.js} +1 -1
- package/dist/evidence/adapters/cargo-mutants.d.ts.map +1 -1
- package/dist/evidence/index.d.ts +1 -1
- package/dist/evidence/index.d.ts.map +1 -1
- package/dist/evidence/record.d.ts.map +1 -1
- package/dist/evidence/types.d.ts +23 -0
- package/dist/evidence/types.d.ts.map +1 -1
- package/dist/{evidence-DopNnj0E.js → evidence-BA5vyZJk.js} +134 -136
- package/dist/{flow-command-zfisQlK7.js → flow-command-D1vJU-7a.js} +14 -14
- package/dist/index.js +6 -6
- package/dist/modules-BWyZ7kVN.js +23 -0
- package/dist/{plugins-7DX6rIfX.js → plugins-Czi2OyDB.js} +1 -1
- package/dist/quire/contract.d.ts +8 -2
- package/dist/quire/contract.d.ts.map +1 -1
- package/dist/quire/exec.d.ts +12 -0
- package/dist/quire/exec.d.ts.map +1 -1
- package/dist/quire/index.d.ts +2 -2
- package/dist/quire/index.d.ts.map +1 -1
- package/dist/quire/types.d.ts +131 -0
- package/dist/quire/types.d.ts.map +1 -1
- package/dist/{quire-VZjWaHph.js → quire-UzoK3Azf.js} +281 -273
- package/dist/schemas/coverage-v1.schema.json +89 -5
- package/dist/{version-DxqfsO8n.js → version-G_RI6TD4.js} +5 -5
- package/dist/{write-Dkpd6XwW.js → write-BJ9rTVAS.js} +1 -1
- package/package.json +6 -4
- package/skills/gap-analysis/references/step-3-matrix-verification.md +1 -1
- package/skills/spec-dependency-analysis/SKILL.md +15 -0
- package/skills/spec-failure-domain-analysis/SKILL.md +15 -0
- package/skills/spec-fuzz/SKILL.md +8 -0
- package/skills/spec-integrity-analysis/SKILL.md +15 -0
- package/skills/spec-matrix/SKILL.md +9 -4
- package/skills/spec-matrix/assets/test-matrix-example.md +2 -2
- package/skills/spec-matrix/assets/test-matrix-template.md +3 -3
- package/skills/spec-matrix/workflow-assets/dist/index.d.ts +146 -0
- package/skills/spec-matrix/workflow-assets/dist/index.d.ts.map +1 -0
- package/skills/spec-matrix/workflow-assets/dist/index.js +7525 -0
- package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts +6 -0
- package/skills/spec-matrix/workflow-assets/dist/invariants.d.ts.map +1 -0
- package/skills/spec-review/SKILL.md +8 -0
- package/skills/spec-review/workflow-assets/dist/index.d.ts +146 -0
- package/skills/spec-review/workflow-assets/dist/index.d.ts.map +1 -0
- package/skills/spec-review/workflow-assets/dist/index.js +7525 -0
- package/skills/spec-review/workflow-assets/dist/invariants.d.ts +6 -0
- package/skills/spec-review/workflow-assets/dist/invariants.d.ts.map +1 -0
- package/skills/spec-review/workflow-assets/skills/review/SKILL.md +4 -4
- package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +3 -2
- package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +3 -3
- package/skills/spec-risk-complexity-analysis/SKILL.md +15 -0
- package/skills/spec-scope-boundary-analysis/SKILL.md +15 -0
- package/skills/spec-to-plan/workflow-assets/dist/index.d.ts +146 -0
- package/skills/spec-to-plan/workflow-assets/dist/index.d.ts.map +1 -0
- package/skills/spec-to-plan/workflow-assets/dist/index.js +7525 -0
- package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts +6 -0
- package/skills/spec-to-plan/workflow-assets/dist/invariants.d.ts.map +1 -0
- package/dist/modules-BEWi5WeN.js +0 -23
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, t as r } from "../quire-
|
|
2
|
-
import { t as i } from "../base-
|
|
3
|
-
import { t as a } from "../advisor-
|
|
4
|
-
import { t as o } from "../auditor-
|
|
5
|
-
import { f as s, g as c, m as l, u } from "../evidence-
|
|
6
|
-
import { n as d } from "../completeness-
|
|
1
|
+
import { i as e, n as t, o as n, t as r } from "../quire-UzoK3Azf.js";
|
|
2
|
+
import { t as i } from "../base-DNieRzIg.js";
|
|
3
|
+
import { t as a } from "../advisor-COB2SuIj.js";
|
|
4
|
+
import { t as o } from "../auditor-ww0MC62a.js";
|
|
5
|
+
import { f as s, g as c, m as l, u } from "../evidence-BA5vyZJk.js";
|
|
6
|
+
import { n as d } from "../completeness-F657dxMp.js";
|
|
7
7
|
import { Flags as f } from "@oclif/core";
|
|
8
8
|
//#region src/assurance/graph.ts
|
|
9
9
|
var p = /* @__PURE__ */ new Set([
|
|
@@ -15,30 +15,32 @@ var p = /* @__PURE__ */ new Set([
|
|
|
15
15
|
"satisfies"
|
|
16
16
|
]);
|
|
17
17
|
function m(e) {
|
|
18
|
-
let t =
|
|
18
|
+
let t = e.claimTypes ?? ["StR"], n = new Set(t.map((e) => e.toLowerCase())), r = /* @__PURE__ */ new Map();
|
|
19
19
|
for (let t of e.documents) {
|
|
20
20
|
let e = _(t);
|
|
21
|
-
e &&
|
|
21
|
+
e && r.set(e, t);
|
|
22
22
|
}
|
|
23
|
-
let
|
|
23
|
+
let i = /* @__PURE__ */ new Map();
|
|
24
24
|
for (let t of e.documents) {
|
|
25
25
|
let e = _(t);
|
|
26
|
-
if (e) for (let
|
|
26
|
+
if (e) for (let n of v(t)) r.has(n) && i.set(n, [...i.get(n) ?? [], e]);
|
|
27
27
|
}
|
|
28
|
-
let i = /* @__PURE__ */ new Map();
|
|
29
|
-
for (let t of e.findings) i.has(t.obligation) || i.set(t.obligation, t);
|
|
30
28
|
let a = /* @__PURE__ */ new Map();
|
|
29
|
+
for (let t of e.findings) a.has(t.obligation) || a.set(t.obligation, t);
|
|
30
|
+
let o = /* @__PURE__ */ new Map();
|
|
31
31
|
for (let t of e.obligations) {
|
|
32
32
|
let e = y(t.id);
|
|
33
|
-
|
|
33
|
+
o.set(e, [...o.get(e) ?? [], t]);
|
|
34
34
|
}
|
|
35
|
-
let
|
|
36
|
-
for (let [e,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
let s = [], c = /* @__PURE__ */ new Set();
|
|
36
|
+
for (let [e, t] of r) n.has(String(t.frontmatter.type ?? "").toLowerCase()) && s.push(h(e, r, i, o, a, c, /* @__PURE__ */ new Set()));
|
|
37
|
+
s.sort((e, t) => e.id.localeCompare(t.id));
|
|
38
|
+
let l = {
|
|
39
|
+
claims: s,
|
|
40
|
+
unreachable: [...r.keys()].filter((e) => !c.has(e) && o.has(e)).sort(),
|
|
40
41
|
unreadable: e.unreadable ?? []
|
|
41
42
|
};
|
|
43
|
+
return s.length === 0 && (l.reason = `no document declares itself a top-level claim (searched claim types: ${t.join(", ")}); declare one or pass --claim-type`), l;
|
|
42
44
|
}
|
|
43
45
|
function h(e, t, n, r, i, a, o) {
|
|
44
46
|
a.add(e), o.add(e);
|
|
@@ -136,7 +138,7 @@ var E = class s extends i {
|
|
|
136
138
|
}),
|
|
137
139
|
module: f.string({ description: "Module directory supplying the traceability model." }),
|
|
138
140
|
"claim-type": f.string({
|
|
139
|
-
description: "Artifact type that is a top-level claim. Repeatable.
|
|
141
|
+
description: "Artifact type that is a top-level claim. Repeatable; matched case-insensitively. REPLACES the StR default rather than adding to it — pass --claim-type StR as well if StRs should stay claims. A safety or security bundle argues from a declared hazard or threat.",
|
|
140
142
|
multiple: !0
|
|
141
143
|
}),
|
|
142
144
|
json: f.boolean({ description: "Emit the case as JSON." })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e, t } from "../../base-
|
|
2
|
-
import { n } from "../../modules-
|
|
1
|
+
import { o as e, t } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { n } from "../../modules-BWyZ7kVN.js";
|
|
3
3
|
import { Flags as r } from "@oclif/core";
|
|
4
4
|
//#region src/commands/catalog/list.ts
|
|
5
5
|
var i = class i extends t {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../base-
|
|
2
|
-
import { n as t } from "../../modules-
|
|
3
|
-
import { n, t as r } from "../../advisor-
|
|
1
|
+
import { t as e } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { n as t } from "../../modules-BWyZ7kVN.js";
|
|
3
|
+
import { n, t as r } from "../../advisor-COB2SuIj.js";
|
|
4
4
|
import { Flags as i } from "@oclif/core";
|
|
5
5
|
//#region src/commands/catalog/methods.ts
|
|
6
6
|
var a = class a extends e {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, o as t, t as n } from "../../base-
|
|
2
|
-
import { n as r } from "../../modules-
|
|
1
|
+
import { i as e, o as t, t as n } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { n as r } from "../../modules-BWyZ7kVN.js";
|
|
3
3
|
import { Args as i, Flags as a } from "@oclif/core";
|
|
4
4
|
//#region src/commands/catalog/show.ts
|
|
5
5
|
var o = class o extends n {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e, t } from "../../base-
|
|
2
|
-
import { n } from "../../modules-
|
|
1
|
+
import { o as e, t } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { n } from "../../modules-BWyZ7kVN.js";
|
|
3
3
|
import { Flags as r } from "@oclif/core";
|
|
4
4
|
//#region src/commands/catalog/validate.ts
|
|
5
5
|
var i = class i extends t {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../base-
|
|
2
|
-
import { t } from "../completeness-
|
|
1
|
+
import { t as e } from "../base-DNieRzIg.js";
|
|
2
|
+
import { t } from "../completeness-F657dxMp.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"affirm.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/affirm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"affirm.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/affirm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAS7C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,YAAY;IACtD,MAAM,CAAC,OAAO,SAC2D;IACzE,MAAM,CAAC,WAAW,SAWgD;IAElE,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,KAAK;;;;;;;;MAkBV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAmE3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, t as r } from "../../quire-
|
|
2
|
-
import { t as i } from "../../base-
|
|
3
|
-
import { g as a, o, y as s } from "../../evidence-
|
|
1
|
+
import { i as e, n as t, o as n, t as r } from "../../quire-UzoK3Azf.js";
|
|
2
|
+
import { t as i } from "../../base-DNieRzIg.js";
|
|
3
|
+
import { g as a, o, y as s } from "../../evidence-BA5vyZJk.js";
|
|
4
4
|
import { Flags as c } from "@oclif/core";
|
|
5
5
|
import { execFileSync as l } from "node:child_process";
|
|
6
6
|
//#region src/commands/evidence/affirm.ts
|
|
@@ -46,10 +46,7 @@ var u = class u extends i {
|
|
|
46
46
|
"rev-parse",
|
|
47
47
|
"HEAD"
|
|
48
48
|
], { encoding: "utf8" }).trim(), h = a(i.repo).bindings, { bindings: g, found: _ } = o(h, i.obligation, p.statement_hash, i.who, m, i.note);
|
|
49
|
-
_ || 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, {
|
|
50
|
-
schemaVersion: 1,
|
|
51
|
-
bindings: g
|
|
52
|
-
});
|
|
49
|
+
_ || 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 });
|
|
53
50
|
let v = {
|
|
54
51
|
obligation: i.obligation,
|
|
55
52
|
who: i.who,
|
|
@@ -14,6 +14,14 @@ export default class EvidenceAudit extends QuoinCommand {
|
|
|
14
14
|
};
|
|
15
15
|
run(): Promise<void>;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* What `--ratchet` prints when there is no baseline to ratchet against.
|
|
19
|
+
*
|
|
20
|
+
* Named path, named remedy: the reader who hits this on day one has not
|
|
21
|
+
* broken anything and has not introduced the backlog they are looking at —
|
|
22
|
+
* they are one `quoin evidence baseline` away from the gate they asked for.
|
|
23
|
+
*/
|
|
24
|
+
export declare function missingBaselineNotice(repo: string): string;
|
|
17
25
|
/**
|
|
18
26
|
* `--mutation-floor P0=0.8` → `{ P0: 0.8 }`.
|
|
19
27
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/audit.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/audit.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiB7C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,MAAM,CAAC,OAAO,SACmD;IACjE,MAAM,CAAC,WAAW,SAiBuC;IAEzD,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;;;;;;MA0BV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CA6E3B;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM1D;AAsBD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,EAC7B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAuBpC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, t as r } from "../../quire-
|
|
2
|
-
import { t as i } from "../../base-
|
|
3
|
-
import { t as a } from "../../advisor-
|
|
4
|
-
import { r as o, t as s } from "../../auditor-
|
|
5
|
-
import { d as c, g as l, h as u, p as d } from "../../evidence-
|
|
6
|
-
import { Flags as
|
|
7
|
-
import { execFileSync as
|
|
1
|
+
import { i as e, n as t, o as n, t as r } from "../../quire-UzoK3Azf.js";
|
|
2
|
+
import { t as i } from "../../base-DNieRzIg.js";
|
|
3
|
+
import { t as a } from "../../advisor-COB2SuIj.js";
|
|
4
|
+
import { r as o, t as s } from "../../auditor-ww0MC62a.js";
|
|
5
|
+
import { d as c, g as l, h as u, p as d, s as f } from "../../evidence-BA5vyZJk.js";
|
|
6
|
+
import { Flags as p } from "@oclif/core";
|
|
7
|
+
import { execFileSync as m } from "node:child_process";
|
|
8
8
|
//#region src/commands/evidence/audit.ts
|
|
9
|
-
var
|
|
9
|
+
var h = class f extends i {
|
|
10
10
|
static summary = "Audit the evidence store: suspect links, staleness, vacuity.";
|
|
11
11
|
static description = "Reads the store and reports. RUNS NOTHING (ADR-0011 invariant 1) — the\nconsumer's CI refreshes evidence, and an auditor that could re-run a suite could\nalso make a finding disappear by re-running it.\n\nChecks:\n suspect-link the statement changed after the evidence was bound\n stale-evidence bound to a missing run, or to a run behind HEAD\n vacuous-evidence every bound symbol was skipped or absent from the run\n undischarged no evidence is bound at all\n method-conformance evidence of a kind the declared method does not produce\n unknown-method the declared method is in no catalog\n insufficient-multiplicity criticality demands two independent suites\n insufficient-mutation-score criticality demands a mutation score it misses\n unmeasured-mutation-score a demanded mutation score, with none recorded\n\n--ratchet compares against spec/evidence/baseline.json and fails only on NEW\nviolations. A gate that fails on the whole existing backlog gets disabled within\na week. Write that baseline with: quoin evidence baseline";
|
|
12
12
|
static examples = [
|
|
@@ -15,26 +15,26 @@ var m = class p extends i {
|
|
|
15
15
|
"quoin evidence audit --json"
|
|
16
16
|
];
|
|
17
17
|
static flags = {
|
|
18
|
-
repo:
|
|
18
|
+
repo: p.string({
|
|
19
19
|
description: "Repository root.",
|
|
20
20
|
default: "."
|
|
21
21
|
}),
|
|
22
|
-
module:
|
|
23
|
-
ratchet:
|
|
24
|
-
strict:
|
|
25
|
-
json:
|
|
26
|
-
"multiplicity-requires":
|
|
22
|
+
module: p.string({ description: "Module directory supplying the traceability model." }),
|
|
23
|
+
ratchet: p.boolean({ description: "Report only violations absent from the baseline." }),
|
|
24
|
+
strict: p.boolean({ description: "Exit 1 when any reported finding remains." }),
|
|
25
|
+
json: p.boolean({ description: "Emit the report as JSON." }),
|
|
26
|
+
"multiplicity-requires": p.string({
|
|
27
27
|
description: "Criticality values demanding two independent suites. Repeatable. Unset by default: no obligation source in the ecosystem declares a criticality column, so a built-in default could never fire.",
|
|
28
28
|
multiple: !0
|
|
29
29
|
}),
|
|
30
|
-
"mutation-floor":
|
|
30
|
+
"mutation-floor": p.string({
|
|
31
31
|
description: "Minimum mutation score per criticality, as <criticality>=<0..1>. Repeatable. Unset by default, for the same reason as --multiplicity-requires: a built-in floor is a rule nobody chose.",
|
|
32
32
|
multiple: !0
|
|
33
33
|
})
|
|
34
34
|
};
|
|
35
35
|
async run() {
|
|
36
|
-
let { flags: i } = await this.parse(
|
|
37
|
-
|
|
36
|
+
let { flags: i } = await this.parse(f), p = n(r());
|
|
37
|
+
p && this.error(p.message, { exit: 2 });
|
|
38
38
|
let m = [
|
|
39
39
|
"coverage",
|
|
40
40
|
"--scope",
|
|
@@ -42,34 +42,37 @@ var m = class p extends i {
|
|
|
42
42
|
"--json"
|
|
43
43
|
];
|
|
44
44
|
i.module && m.push("--module", i.module);
|
|
45
|
-
let
|
|
46
|
-
|
|
47
|
-
let
|
|
48
|
-
obligations:
|
|
45
|
+
let h = e(t(m));
|
|
46
|
+
h.ok || this.error(h.error.message, { exit: 2 });
|
|
47
|
+
let y = s({
|
|
48
|
+
obligations: h.value.obligations ?? [],
|
|
49
49
|
bindings: l(i.repo).bindings,
|
|
50
50
|
runs: c(i.repo),
|
|
51
51
|
scans: d(i.repo),
|
|
52
52
|
catalog: a(i.module ? [i.module] : void 0),
|
|
53
|
-
headCommit:
|
|
53
|
+
headCommit: _(i.repo),
|
|
54
54
|
multiplicityRequires: i["multiplicity-requires"],
|
|
55
|
-
mutationFloor:
|
|
56
|
-
}),
|
|
57
|
-
if (i.json) this.log(JSON.stringify({
|
|
58
|
-
findings:
|
|
59
|
-
healthy:
|
|
60
|
-
ratchet:
|
|
55
|
+
mutationFloor: v(i["mutation-floor"], (e) => this.error(e, { exit: 2 }))
|
|
56
|
+
}), b = i.ratchet ? u(i.repo) : null, x = b !== null, S = b ? o(y, b) : y.findings;
|
|
57
|
+
if (i.ratchet && !x && !i.json && this.log(g(i.repo)), i.json) this.log(JSON.stringify({
|
|
58
|
+
findings: S,
|
|
59
|
+
healthy: y.healthy,
|
|
60
|
+
ratchet: x
|
|
61
61
|
}, null, 2));
|
|
62
|
-
else if (
|
|
62
|
+
else if (S.length === 0) this.log(`${y.healthy.length} obligation(s) with healthy evidence; nothing to report`);
|
|
63
63
|
else {
|
|
64
|
-
for (let e of
|
|
65
|
-
this.log(""), this.log(`${
|
|
64
|
+
for (let e of S) this.log(`[${e.severity}] ${e.kind}: ${e.summary}`);
|
|
65
|
+
this.log(""), this.log(`${S.length} finding(s), ${y.healthy.length} healthy` + (x ? " (new violations only)" : ""));
|
|
66
66
|
}
|
|
67
|
-
i.strict &&
|
|
67
|
+
i.strict && S.length > 0 && this.exit(1);
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
function
|
|
70
|
+
function g(e) {
|
|
71
|
+
return `--ratchet requested but ${f(e)} does not exist; reporting the full backlog, not new violations. Write the baseline with: quoin evidence baseline`;
|
|
72
|
+
}
|
|
73
|
+
function _(e) {
|
|
71
74
|
try {
|
|
72
|
-
return
|
|
75
|
+
return m("git", [
|
|
73
76
|
"-C",
|
|
74
77
|
e,
|
|
75
78
|
"rev-parse",
|
|
@@ -79,7 +82,7 @@ function h(e) {
|
|
|
79
82
|
return;
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
|
-
function
|
|
85
|
+
function v(e, t) {
|
|
83
86
|
if (!e || e.length === 0) return;
|
|
84
87
|
let n = {};
|
|
85
88
|
for (let r of e) {
|
|
@@ -89,4 +92,4 @@ function g(e, t) {
|
|
|
89
92
|
return n;
|
|
90
93
|
}
|
|
91
94
|
//#endregion
|
|
92
|
-
export {
|
|
95
|
+
export { h as default, g as missingBaselineNotice, v as parseMutationFloor };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, t as r } from "../../quire-
|
|
2
|
-
import { t as i } from "../../base-
|
|
3
|
-
import { t as a } from "../../advisor-
|
|
4
|
-
import { n as o, t as s } from "../../auditor-
|
|
5
|
-
import { g as c, m as l, s as u, u as d, v as f } from "../../evidence-
|
|
1
|
+
import { i as e, n as t, o as n, t as r } from "../../quire-UzoK3Azf.js";
|
|
2
|
+
import { t as i } from "../../base-DNieRzIg.js";
|
|
3
|
+
import { t as a } from "../../advisor-COB2SuIj.js";
|
|
4
|
+
import { n as o, t as s } from "../../auditor-ww0MC62a.js";
|
|
5
|
+
import { g as c, m as l, s as u, u as d, v as f } from "../../evidence-BA5vyZJk.js";
|
|
6
6
|
import { Flags as p } from "@oclif/core";
|
|
7
7
|
import { execFileSync as m } from "node:child_process";
|
|
8
8
|
//#region src/commands/evidence/baseline.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gc.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/gc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD,MAAM,CAAC,OAAO,SAA0C;IACxD,MAAM,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"gc.d.ts","sourceRoot":"","sources":["../../../src/commands/evidence/gc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD,MAAM,CAAC,OAAO,SAA0C;IACxD,MAAM,CAAC,WAAW,SAW4D;IAE9E,MAAM,CAAC,QAAQ,WAAwD;IAEvE,MAAM,CAAC,KAAK;;;;MAMV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAe3B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "../../base-
|
|
2
|
-
import { l as t } from "../../evidence-
|
|
1
|
+
import { t as e } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { l as t } from "../../evidence-BA5vyZJk.js";
|
|
3
3
|
import { Flags as n } from "@oclif/core";
|
|
4
4
|
//#region src/commands/evidence/gc.ts
|
|
5
5
|
var r = class r extends e {
|
|
6
6
|
static summary = "Drop run records nothing references.";
|
|
7
|
-
static description = "Retention policy: the latest run per suite, plus anything a binding points at.\n\nDir-per-suite is what makes this local — a policy change for one expensive suite\n(mutation, DAST, fuzz) touches one directory, and a .gitignore decision can be\nmade per suite rather than for the whole store.";
|
|
7
|
+
static description = "Retention policy: the latest run per suite, plus anything a binding points at.\n\nDir-per-suite is what makes this local — a policy change for one expensive suite\n(mutation, DAST, fuzz) touches one directory, and a .gitignore decision can be\nmade per suite rather than for the whole store.\n\nTakes no --module, deliberately, though every sibling command does: --module\nsupplies the traceability model to quire, and gc never invokes quire and never\nloads a catalog. It is a repo-scoped store operation — it walks runs/ and\nscans/ under spec/evidence/ and decides from timestamps and bindings alone,\nnone of which carry catalog semantics. Should retention ever become\nmodule-policy-driven, the flag stops being a no-op and gets added then (#171).";
|
|
8
8
|
static examples = ["quoin evidence gc --dry-run", "quoin evidence gc"];
|
|
9
9
|
static flags = {
|
|
10
10
|
repo: n.string({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, t as r } from "../../quire-
|
|
2
|
-
import { t as i } from "../../base-
|
|
3
|
-
import { a, b as o, c as s, g as c, i as l, n as u, r as d, t as f, y as p } from "../../evidence-
|
|
1
|
+
import { i as e, n as t, o as n, t as r } from "../../quire-UzoK3Azf.js";
|
|
2
|
+
import { t as i } from "../../base-DNieRzIg.js";
|
|
3
|
+
import { a, b as o, c as s, g as c, i as l, n as u, r as d, t as f, y as p } from "../../evidence-BA5vyZJk.js";
|
|
4
4
|
import { readFileSync as m } from "node:fs";
|
|
5
5
|
import { Flags as h } from "@oclif/core";
|
|
6
6
|
//#region src/commands/evidence/record.ts
|
package/dist/commands/matrix.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../base-
|
|
2
|
-
import { r as t } from "../../plugins-
|
|
3
|
-
import { n } from "../../modules-
|
|
1
|
+
import { t as e } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { r as t } from "../../plugins-Czi2OyDB.js";
|
|
3
|
+
import { n } from "../../modules-BWyZ7kVN.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-
|
|
2
|
-
import { n as t } from "../../plugins-
|
|
1
|
+
import { t as e } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { n as t } from "../../plugins-Czi2OyDB.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-
|
|
2
|
-
import { r as t } from "../../plugins-
|
|
1
|
+
import { t as e } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { r as t } from "../../plugins-Czi2OyDB.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-
|
|
2
|
-
import { a as t } from "../../plugins-
|
|
1
|
+
import { t as e } from "../../base-DNieRzIg.js";
|
|
2
|
+
import { a as t } from "../../plugins-Czi2OyDB.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 {
|
package/dist/commands/review.js
CHANGED
package/dist/commands/to-plan.js
CHANGED
package/dist/commands/update.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../version-
|
|
2
|
-
import { t } from "../base-
|
|
1
|
+
import { t as e } from "../version-G_RI6TD4.js";
|
|
2
|
+
import { t } from "../base-DNieRzIg.js";
|
|
3
3
|
import { runSelfUpdate as n } from "@agent-ix/ix-cli-core";
|
|
4
4
|
import { Flags as r } from "@oclif/core";
|
|
5
5
|
//#region src/commands/update.ts
|
package/dist/commands/write.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as e, t } from "../base-
|
|
2
|
-
import { n } from "../modules-
|
|
3
|
-
import { n as r, r as i, t as a } from "../write-
|
|
1
|
+
import { o as e, t } from "../base-DNieRzIg.js";
|
|
2
|
+
import { n } from "../modules-BWyZ7kVN.js";
|
|
3
|
+
import { n as r, r as i, t as a } from "../write-BJ9rTVAS.js";
|
|
4
4
|
import { Args as o, Flags as s } from "@oclif/core";
|
|
5
5
|
//#region src/commands/write.ts
|
|
6
6
|
var c = class c extends t {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, s as t } from "./base-
|
|
1
|
+
import { n as e, s as t } from "./base-DNieRzIg.js";
|
|
2
2
|
import { readFileSync as n, readdirSync as r } from "node:fs";
|
|
3
3
|
import { join as i, relative as a, sep as o } from "node:path";
|
|
4
4
|
import { parse as s } from "yaml";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cargo-mutants.d.ts","sourceRoot":"","sources":["../../../src/evidence/adapters/cargo-mutants.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,YAAY,CAAC;AAuCpB,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"cargo-mutants.d.ts","sourceRoot":"","sources":["../../../src/evidence/adapters/cargo-mutants.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,YAAY,CAAC;AAuCpB,eAAO,MAAM,mBAAmB,EAAE,eAoFjC,CAAC"}
|
package/dist/evidence/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* while matrices read as covered (agent-ix/quire-rs#72).
|
|
9
9
|
*/
|
|
10
10
|
export { affirm, baselinePath, bind, bindingsPath, canonicalJson, gc, inspectionsPath, latestRun, latestRuns, latestScans, listRecordedSuites, listRuns, readBaseline, readBindings, readRun, readRuns, runPath, short, storeRoot, suitesPath, writeBaseline, writeBindings, writeRun, } from './store.js';
|
|
11
|
-
export { RUNS_DIR, STORE_SCHEMA_VERSION, type Affirmation, type BaselineFile, type Binding, type BindingsFile, type RunEntry, type RunRecord, } from './types.js';
|
|
11
|
+
export { MUTATION_SCORE_METRIC, RUNS_DIR, STORE_SCHEMA_VERSION, type Affirmation, type BaselineFile, type Binding, type BindingsFile, type RunEntry, type RunRecord, } from './types.js';
|
|
12
12
|
export { obligationsFrom, recordRun, type RecordOutcome, type RecordRequest, } from './record.js';
|
|
13
13
|
export { ADAPTERS, ADAPTER_NAMES, FINDING_ADAPTERS, entriesAdapter, selectAdapter, selectFindingAdapter, type FindingAdapter, } from './adapters/registry.js';
|
|
14
14
|
export { junitAdapter, qualifiedName } from './adapters/junit.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evidence/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,EAAE,EACF,eAAe,EACf,SAAS,EACT,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,aAAa,EACb,aAAa,EACb,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,SAAS,GACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,eAAe,EACf,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,UAAU,EACV,KAAK,aAAa,GACnB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EACL,UAAU,EACV,SAAS,EACT,QAAQ,EACR,SAAS,EACT,aAAa,EACb,QAAQ,EACR,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/evidence/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,EAAE,EACF,eAAe,EACf,SAAS,EACT,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,UAAU,EACV,aAAa,EACb,aAAa,EACb,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,qBAAqB,EACrB,QAAQ,EACR,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,SAAS,GACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,eAAe,EACf,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,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AC;IAClB,6DAA6D;IAC7D,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/evidence/record.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE/E,gDAAgD;AAChD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wFAAwF;IACxF,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,oCAAoC;AACpC,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,6DAA6D;IAC7D,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAiG/D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,GAAG,UAAU,EAAE,CAEpE"}
|
package/dist/evidence/types.d.ts
CHANGED
|
@@ -41,6 +41,14 @@ export declare const STORE_SCHEMA_VERSION = 1;
|
|
|
41
41
|
* identity and must be mapped to it by the adapter (agent-ix/quoin#91) before a
|
|
42
42
|
* record is written.
|
|
43
43
|
*/
|
|
44
|
+
/**
|
|
45
|
+
* The `metric` value naming a mutation score — killed mutants over viable
|
|
46
|
+
* ones, in `[0, 1]`.
|
|
47
|
+
*
|
|
48
|
+
* One constant, imported by the adapter that writes it and the auditor that
|
|
49
|
+
* filters on it, so the two cannot drift into different spellings.
|
|
50
|
+
*/
|
|
51
|
+
export declare const MUTATION_SCORE_METRIC = "mutation-score";
|
|
44
52
|
export interface RunEntry {
|
|
45
53
|
/** FR-051 stable symbol identity. */
|
|
46
54
|
symbol: string;
|
|
@@ -50,6 +58,21 @@ export interface RunEntry {
|
|
|
50
58
|
* coverage percentage, a measured latency. Absent for a plain pass/fail.
|
|
51
59
|
*/
|
|
52
60
|
score?: number;
|
|
61
|
+
/**
|
|
62
|
+
* What `score` measures — `"mutation-score"`, `"coverage"`, `"latency-ms"`,
|
|
63
|
+
* or another adapter-declared name. Open vocabulary: well-known values are
|
|
64
|
+
* documented, not enforced, the same posture as `evidenceKind`.
|
|
65
|
+
*
|
|
66
|
+
* The adapter knows — `cargo-mutants` produces a mutation score and nothing
|
|
67
|
+
* else — so the discriminator costs the adapter one field and removes the
|
|
68
|
+
* guessing entirely (agent-ix/quoin#138). Before it existed the auditor
|
|
69
|
+
* scoped mutation scores by tool name against the catalog's
|
|
70
|
+
* `mutation-testing.tooling`, which named a method id in the engine, was a
|
|
71
|
+
* tool allowlist by another name, and did not generalize to the next
|
|
72
|
+
* numeric threshold. An entry without a `metric` is not a mutation score
|
|
73
|
+
* for the purposes of a mutation floor.
|
|
74
|
+
*/
|
|
75
|
+
metric?: string;
|
|
53
76
|
/** Trace ids this symbol carries, as the adapter read them. */
|
|
54
77
|
traceIds?: string[];
|
|
55
78
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/evidence/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH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