@agent-ix/quoin 0.21.2 → 0.21.9
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-BiKhR9Yp.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-W7vrLi5E.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-BQDxME0a.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-C_dUJNm-.js} +14 -14
- package/dist/index.js +6 -6
- package/dist/modules-Cn9Htfp0.js +23 -0
- package/dist/{plugins-7DX6rIfX.js → plugins-Byi1bWLD.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-BMXhyIie.js} +5 -5
- package/dist/{write-Dkpd6XwW.js → write-BDxILTLC.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
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as e, t } from "./version-
|
|
1
|
+
import { n as e, t } from "./version-BMXhyIie.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-
|
|
4
|
-
import { a as l, i as u, n as d, r as f } from "./plugins-
|
|
5
|
-
import { n as p, t as m } from "./modules-
|
|
3
|
+
import { i, n as a, o, r as s, t as c } from "./base-W7vrLi5E.js";
|
|
4
|
+
import { a as l, i as u, n as d, r as f } from "./plugins-Byi1bWLD.js";
|
|
5
|
+
import { n as p, t as m } from "./modules-Cn9Htfp0.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-
|
|
8
|
-
import { t as T } from "./flow-command-
|
|
7
|
+
import { a as y, i as b, n as x, o as S, r as C, t as w } from "./write-BDxILTLC.js";
|
|
8
|
+
import { t as T } from "./flow-command-C_dUJNm-.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 };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { a as e } from "./base-W7vrLi5E.js";
|
|
2
|
+
import { t } from "./plugins-Byi1bWLD.js";
|
|
3
|
+
import { fileURLToPath as n } from "node:url";
|
|
4
|
+
import { readFileSync as r } from "node:fs";
|
|
5
|
+
import { dirname as i, join as a } from "node:path";
|
|
6
|
+
import { parse as o } from "yaml";
|
|
7
|
+
import { reconcile as s, validateMarketplaceManifest as c } from "@agent-ix/ts-plugin-kit";
|
|
8
|
+
//#region src/modules.ts
|
|
9
|
+
function l() {
|
|
10
|
+
return i(i(n(import.meta.url)));
|
|
11
|
+
}
|
|
12
|
+
function u() {
|
|
13
|
+
let e = a(l(), "default-modules.yaml");
|
|
14
|
+
return c(o(r(e, "utf8")));
|
|
15
|
+
}
|
|
16
|
+
function d(n = e(), r = u()) {
|
|
17
|
+
s(r, {
|
|
18
|
+
...t(n),
|
|
19
|
+
mode: "lazy"
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { d as n, u as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, r as t } from "./base-
|
|
1
|
+
import { a as e, r as t } from "./base-W7vrLi5E.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";
|
package/dist/quire/contract.d.ts
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/** Where the vendored schemas came from, and exactly which bytes. */
|
|
25
25
|
export declare const QUIRE_CONTRACT: {
|
|
26
26
|
/** The quire-rs release the vendored schemas were copied from. */
|
|
27
|
-
readonly sourceTag: "v0.
|
|
27
|
+
readonly sourceTag: "v0.42.0";
|
|
28
28
|
/** The contract version, as carried in each schema's `$id` and filename. */
|
|
29
29
|
readonly contractVersion: "v1";
|
|
30
30
|
/**
|
|
@@ -39,9 +39,15 @@ export declare const QUIRE_CONTRACT: {
|
|
|
39
39
|
/**
|
|
40
40
|
* SHA-256 of each vendored file. Asserted on every test run, so an edit
|
|
41
41
|
* without a matching refresh fails loudly.
|
|
42
|
+
*
|
|
43
|
+
* v0.42.0 supersedes the CR-041 carry-ahead (the two CR-091 shapes taken
|
|
44
|
+
* ahead of the tag) with the released files wholesale, as that note said the
|
|
45
|
+
* next refresh would. Beyond CR-091 the tag adds only additive shapes under
|
|
46
|
+
* quire-rs FR-055-CON-3: `line` on the matrix-row/symbol records (#210),
|
|
47
|
+
* `shared_trace_ids` (CR-087) and `excluded_source_files` (#215).
|
|
42
48
|
*/
|
|
43
49
|
readonly hashes: {
|
|
44
|
-
readonly "coverage-v1.schema.json": "
|
|
50
|
+
readonly "coverage-v1.schema.json": "2b7a8f6d786cadf637df6461c89c92c350096cf263c1f3c5d6b3b24a490bc590";
|
|
45
51
|
readonly "properties-v1.schema.json": "d81f1ec85abdecd1f1664ded15e081f9aecb6c0f054d6b332b71e904cf826292";
|
|
46
52
|
};
|
|
47
53
|
};
|
|
@@ -1 +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;;IAkBH
|
|
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;;IAkBH;;;;;;;;;OASG;;;;;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"}
|
package/dist/quire/exec.d.ts
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
* One place, so the subprocess contract — what is captured, what is reported on
|
|
5
5
|
* failure — is a decision made once rather than repeated at each call site.
|
|
6
6
|
*/
|
|
7
|
+
/**
|
|
8
|
+
* Node's default `maxBuffer` is 1 MiB, and a real corpus already exceeds it:
|
|
9
|
+
* filament-ide-rs (268 spec files, 1,107 obligations) emits 1,090,714 bytes of
|
|
10
|
+
* `quire coverage --json` — 4% over the default — which killed all six
|
|
11
|
+
* commands that shell out here (#164). #53 projects ~2.5x payload growth,
|
|
12
|
+
* putting the near-term ceiling around 2.7 MB; 64 MiB is ~25x that projection
|
|
13
|
+
* again, deliberately generous because `maxBuffer` is a cap on what
|
|
14
|
+
* `execFileSync` will accumulate, not an up-front allocation — headroom costs
|
|
15
|
+
* nothing until a payload actually uses it, while an exceeded cap kills the
|
|
16
|
+
* command outright.
|
|
17
|
+
*/
|
|
18
|
+
export declare const QUIRE_MAX_BUFFER: number;
|
|
7
19
|
/**
|
|
8
20
|
* Run `quire` and return stdout, surfacing **stderr** when it fails.
|
|
9
21
|
*
|
package/dist/quire/exec.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/quire/exec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/quire/exec.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,QAAmB,CAAC;AAEjD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CA0C/C;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,OAAO,CAAC;CACb,CAmBA;AAED,qEAAqE;AACrE,wBAAgB,YAAY,IAAI,MAAM,GAAG,IAAI,CAS5C"}
|
package/dist/quire/index.d.ts
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { QUIRE_CONTRACT, checkVersionPremise, compareVersions, parseCliVersion, readSchema, schemaHash, schemaPath, type SchemaName, type VersionPremiseFailure, } from './contract.js';
|
|
9
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
|
-
export { quireVersion, runQuire, runQuireAllowFailure } from './exec.js';
|
|
10
|
+
export type { AcShape, CoverageDiagnostic, CoverageReport, CoverageTotals, Criterion, CriteriaCounts, CriterionObligation, Extraction, GroupCounts, NoSymbolRow, Obligation, PropertiesDocument, PropertiesReport, PropertyShape, PropertySpan, SharedTraceId, SharedTraceSymbol, StatusLie, UnbackedRow, UntrackedSymbol, VocabularyValueRecord, } from './types.js';
|
|
11
|
+
export { QUIRE_MAX_BUFFER, quireVersion, runQuire, runQuireAllowFailure, } from './exec.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,eAAe,EACf,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,oBAAoB,GACrB,MAAM,WAAW,CAAC"}
|
package/dist/quire/types.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ export interface UnbackedRow {
|
|
|
20
20
|
document: string;
|
|
21
21
|
row_id?: string | null;
|
|
22
22
|
target_ids: string[];
|
|
23
|
+
/**
|
|
24
|
+
* 1-based document line of the matrix row (quire-rs #210, v0.42.0). Absent
|
|
25
|
+
* on a payload from an engine predating the field.
|
|
26
|
+
*/
|
|
27
|
+
line?: number;
|
|
23
28
|
}
|
|
24
29
|
/** A row whose status classes as complete while nothing backs it. */
|
|
25
30
|
export interface StatusLie {
|
|
@@ -28,6 +33,8 @@ export interface StatusLie {
|
|
|
28
33
|
row_id?: string | null;
|
|
29
34
|
status: string;
|
|
30
35
|
target_ids: string[];
|
|
36
|
+
/** 1-based document line of the matrix row (quire-rs #210, v0.42.0). */
|
|
37
|
+
line?: number;
|
|
31
38
|
}
|
|
32
39
|
/** An unbacked row exempted by a method that mints no source symbol (CR-041). */
|
|
33
40
|
export interface NoSymbolRow {
|
|
@@ -36,12 +43,69 @@ export interface NoSymbolRow {
|
|
|
36
43
|
row_id?: string | null;
|
|
37
44
|
test_type: string;
|
|
38
45
|
target_ids: string[];
|
|
46
|
+
/** 1-based document line of the matrix row (quire-rs #210, v0.42.0). */
|
|
47
|
+
line?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A row whose authored status the module's vocabulary classes as nothing
|
|
51
|
+
* (FR-050-AC-21, quire-rs CR-083).
|
|
52
|
+
*
|
|
53
|
+
* Carries no class, deliberately: having none is the entire finding, and two
|
|
54
|
+
* undeclared glyphs in one corpus are told apart only by the authored value.
|
|
55
|
+
*/
|
|
56
|
+
export interface UndeclaredStatus {
|
|
57
|
+
reference: string;
|
|
58
|
+
document: string;
|
|
59
|
+
row_id?: string | null;
|
|
60
|
+
/** The authored status value, verbatim. */
|
|
61
|
+
status: string;
|
|
62
|
+
/**
|
|
63
|
+
* 1-based document line of the matrix row (quire-rs #210, v0.42.0).
|
|
64
|
+
* Byte-identical duplicate rows still collapse to one record (quire-rs
|
|
65
|
+
* CR-086), which carries the first duplicate's line.
|
|
66
|
+
*/
|
|
67
|
+
line?: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* One `implements` edge — requirement to production code (FR-062).
|
|
71
|
+
*
|
|
72
|
+
* **Carries no weight in `totals`.** Scope is not evidence: folding it into the
|
|
73
|
+
* backed set would let code that merely cites a requirement move a coverage
|
|
74
|
+
* number, which is the backdoor quire-rs CR-061 closed.
|
|
75
|
+
*/
|
|
76
|
+
export interface ImplementsRecord {
|
|
77
|
+
path: string;
|
|
78
|
+
symbol: string;
|
|
79
|
+
trace_id: string;
|
|
80
|
+
/** Name of the declared marker form that bound it. */
|
|
81
|
+
form: string;
|
|
39
82
|
}
|
|
40
83
|
/** A source symbol whose trace tag resolves to nothing declared. */
|
|
41
84
|
export interface UntrackedSymbol {
|
|
42
85
|
path: string;
|
|
43
86
|
symbol: string;
|
|
44
87
|
trace_id: string;
|
|
88
|
+
/** 1-based declaration line of the tagged symbol (quire-rs #210, v0.42.0). */
|
|
89
|
+
line?: number;
|
|
90
|
+
}
|
|
91
|
+
/** One of the distinct symbols binding a shared trace id (quire-rs CR-087). */
|
|
92
|
+
export interface SharedTraceSymbol {
|
|
93
|
+
path: string;
|
|
94
|
+
symbol: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A trace id bound by more than one distinct source symbol (quire-rs
|
|
98
|
+
* FR-050-AC-23, CR-087).
|
|
99
|
+
*
|
|
100
|
+
* One id names one symbol; a row backed by N symbols stays green while N-1 of
|
|
101
|
+
* its tests rot. Carries no weight in `totals`, and `--strict` does not gate
|
|
102
|
+
* on it in this contract revision.
|
|
103
|
+
*/
|
|
104
|
+
export interface SharedTraceId {
|
|
105
|
+
/** The trace id, exactly as the binding forms yield it. */
|
|
106
|
+
trace_id: string;
|
|
107
|
+
/** The distinct binding symbols, ordered by (path, symbol); at least two. */
|
|
108
|
+
symbols: SharedTraceSymbol[];
|
|
45
109
|
}
|
|
46
110
|
/** Backed/total counts for one minting document and target kind. */
|
|
47
111
|
export interface GroupCounts {
|
|
@@ -65,6 +129,43 @@ export interface CoverageDiagnostic {
|
|
|
65
129
|
reason: string;
|
|
66
130
|
message: string;
|
|
67
131
|
path?: string | null;
|
|
132
|
+
/**
|
|
133
|
+
* The vocabulary or catalog value the diagnostic is about, verbatim, when it
|
|
134
|
+
* is about exactly one (quire-rs FR-054-AC-12, CR-091).
|
|
135
|
+
*
|
|
136
|
+
* `uncatalogued-verification-method` carries the authored method here —
|
|
137
|
+
* byte-equal to the `Obligation` records' `method` — so the advisor's
|
|
138
|
+
* mismatch / uncatalogued split is an equality join rather than a regex over
|
|
139
|
+
* `message` prose (agent-ix/quoin#168). Absent on a payload from an engine
|
|
140
|
+
* predating the classification, and absent when the diagnostic is not about
|
|
141
|
+
* one value; a consumer must tolerate both.
|
|
142
|
+
*/
|
|
143
|
+
value?: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* One declared coverage-vocabulary value, classified (quire-rs FR-059-AC-9,
|
|
147
|
+
* CR-091).
|
|
148
|
+
*
|
|
149
|
+
* Carried ahead of the pinned `sourceTag` as an additive field (see
|
|
150
|
+
* `QUIRE_CONTRACT`): a payload from quire 0.27.0 simply omits the whole
|
|
151
|
+
* `vocabulary_coverage` array, and every consumer must treat absence as "the
|
|
152
|
+
* engine predates the classification", never as "every value is owned".
|
|
153
|
+
*/
|
|
154
|
+
export interface VocabularyValueRecord {
|
|
155
|
+
/** The `vocabulary_coverage` declaration's name. */
|
|
156
|
+
vocabulary: string;
|
|
157
|
+
/** The projected archetype (the declaration's `from`). */
|
|
158
|
+
archetype: string;
|
|
159
|
+
/** The frontmatter field whose schema `enum` is the vocabulary. */
|
|
160
|
+
field: string;
|
|
161
|
+
/** The declared `<check>` severity token. */
|
|
162
|
+
check: string;
|
|
163
|
+
/** The vocabulary value, verbatim from the schema enum. */
|
|
164
|
+
value: string;
|
|
165
|
+
/** Closed deliberately, unlike `CoverageDiagnostic.reason`. */
|
|
166
|
+
state: "owned" | "excused" | "unowned";
|
|
167
|
+
/** Scope-relative documents that decide the state; empty for `unowned`. */
|
|
168
|
+
documents: string[];
|
|
68
169
|
}
|
|
69
170
|
/**
|
|
70
171
|
* One derived obligation (quire-rs FR-053) — the quire↔quoin contract itself.
|
|
@@ -106,11 +207,41 @@ export interface CoverageReport {
|
|
|
106
207
|
status_lies: StatusLie[];
|
|
107
208
|
/** Absent — not empty — when the module declares no exemption vocabulary. */
|
|
108
209
|
no_symbol_rows?: NoSymbolRow[];
|
|
210
|
+
/** Absent — not empty — when every status value in the corpus is declared. */
|
|
211
|
+
undeclared_statuses?: UndeclaredStatus[];
|
|
109
212
|
untracked_symbols: UntrackedSymbol[];
|
|
213
|
+
/**
|
|
214
|
+
* Trace ids bound by more than one distinct symbol (quire-rs FR-050-AC-23,
|
|
215
|
+
* CR-087). ABSENT — not empty — for a corpus whose every id is uniquely
|
|
216
|
+
* bound.
|
|
217
|
+
*/
|
|
218
|
+
shared_trace_ids?: SharedTraceId[];
|
|
110
219
|
groups: GroupCounts[];
|
|
111
220
|
criteria?: CriteriaCounts[];
|
|
112
221
|
diagnostics?: CoverageDiagnostic[];
|
|
113
222
|
obligations?: Obligation[];
|
|
223
|
+
/**
|
|
224
|
+
* Absent when the module declares no `implements` marker forms. Present in
|
|
225
|
+
* the published schema since CR-080 and missing from this interface until
|
|
226
|
+
* CR-083 — the vendored contract and its types had drifted in the one
|
|
227
|
+
* direction the contract test does not check.
|
|
228
|
+
*/
|
|
229
|
+
implements?: ImplementsRecord[];
|
|
230
|
+
/**
|
|
231
|
+
* One record per declared coverage-vocabulary value, classified
|
|
232
|
+
* owned / excused / unowned (quire-rs FR-059-AC-9, CR-091). ABSENT — not
|
|
233
|
+
* empty — for a module declaring no `vocabulary_coverage`, and absent on any
|
|
234
|
+
* payload from an engine predating the classification.
|
|
235
|
+
*/
|
|
236
|
+
vocabulary_coverage?: VocabularyValueRecord[];
|
|
237
|
+
/**
|
|
238
|
+
* Source files a declared `source_exclude` glob removed from the symbol walk
|
|
239
|
+
* (quire-rs FR-050-AC-24, #215). ABSENT — never 0 — for a model declaring no
|
|
240
|
+
* `source_exclude` or one whose globs match nothing. Without it an
|
|
241
|
+
* over-broad glob silently drops legitimate backing and the report reads as
|
|
242
|
+
* a coverage regression.
|
|
243
|
+
*/
|
|
244
|
+
excluded_source_files?: number;
|
|
114
245
|
totals: CoverageTotals;
|
|
115
246
|
}
|
|
116
247
|
/** A byte-offset span carrying its own text (FR-052). */
|
|
@@ -1 +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,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;
|
|
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,CA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