@agent-ix/quoin 0.21.9 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/default-modules.yaml +18 -2
- package/dist/{advisor-BiKhR9Yp.js → advisor-B0rESCx1.js} +1 -1
- package/dist/auditor/audit.d.ts +23 -18
- package/dist/auditor/audit.d.ts.map +1 -1
- package/dist/auditor/index.d.ts +2 -1
- package/dist/auditor/index.d.ts.map +1 -1
- package/dist/{auditor-ww0MC62a.js → auditor-Dd3i9Aqx.js} +82 -65
- package/dist/{base-W7vrLi5E.js → base-gAClyCNd.js} +1 -1
- package/dist/change-assurance/attestations.d.ts +7 -0
- package/dist/change-assurance/attestations.d.ts.map +1 -0
- package/dist/change-assurance/index.d.ts +14 -0
- package/dist/change-assurance/index.d.ts.map +1 -0
- package/dist/change-assurance/integrity.d.ts +11 -0
- package/dist/change-assurance/integrity.d.ts.map +1 -0
- package/dist/change-assurance/records.d.ts +22 -0
- package/dist/change-assurance/records.d.ts.map +1 -0
- package/dist/change-assurance/schema-assets.d.ts +8 -0
- package/dist/change-assurance/schema-assets.d.ts.map +1 -0
- package/dist/change-assurance/store.d.ts +18 -0
- package/dist/change-assurance/store.d.ts.map +1 -0
- package/dist/change-assurance/types.d.ts +180 -0
- package/dist/change-assurance/types.d.ts.map +1 -0
- package/dist/change-assurance/verify.d.ts +4 -0
- package/dist/change-assurance/verify.d.ts.map +1 -0
- package/dist/change-assurance-CyKLPeKa.js +1236 -0
- package/dist/cli.js +1 -1
- package/dist/commands/advise.js +27 -26
- package/dist/commands/assurance.d.ts.map +1 -1
- package/dist/commands/assurance.js +84 -61
- 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/change-assurance/common.d.ts +37 -0
- package/dist/commands/change-assurance/common.d.ts.map +1 -0
- package/dist/commands/change-assurance/index.d.ts +8 -0
- package/dist/commands/change-assurance/index.d.ts.map +1 -0
- package/dist/commands/change-assurance/index.js +12 -0
- package/dist/commands/change-assurance/intake.d.ts +15 -0
- package/dist/commands/change-assurance/intake.d.ts.map +1 -0
- package/dist/commands/change-assurance/intake.js +53 -0
- package/dist/commands/change-assurance/receipt.d.ts +21 -0
- package/dist/commands/change-assurance/receipt.d.ts.map +1 -0
- package/dist/commands/change-assurance/receipt.js +99 -0
- package/dist/commands/change-assurance/recover.d.ts +13 -0
- package/dist/commands/change-assurance/recover.d.ts.map +1 -0
- package/dist/commands/change-assurance/recover.js +29 -0
- package/dist/commands/change-assurance/schema.d.ts +13 -0
- package/dist/commands/change-assurance/schema.d.ts.map +1 -0
- package/dist/commands/change-assurance/schema.js +40 -0
- package/dist/commands/change-assurance/seal-attestation.d.ts +15 -0
- package/dist/commands/change-assurance/seal-attestation.d.ts.map +1 -0
- package/dist/commands/change-assurance/seal-attestation.js +58 -0
- package/dist/commands/change-assurance/seal-record.d.ts +14 -0
- package/dist/commands/change-assurance/seal-record.d.ts.map +1 -0
- package/dist/commands/change-assurance/seal-record.js +53 -0
- package/dist/commands/change-assurance/verify-receipt.d.ts +13 -0
- package/dist/commands/change-assurance/verify-receipt.d.ts.map +1 -0
- package/dist/commands/change-assurance/verify-receipt.js +41 -0
- package/dist/commands/completeness.js +2 -2
- package/dist/commands/config/doctor.d.ts.map +1 -1
- package/dist/commands/config/doctor.js +3 -3
- package/dist/commands/config/edit.d.ts.map +1 -1
- package/dist/commands/config/edit.js +3 -3
- package/dist/commands/config/get.js +1 -1
- package/dist/commands/config/set.js +1 -1
- package/dist/commands/evidence/affirm.js +17 -16
- package/dist/commands/evidence/audit.d.ts.map +1 -1
- package/dist/commands/evidence/audit.js +55 -43
- package/dist/commands/evidence/baseline.d.ts.map +1 -1
- package/dist/commands/evidence/baseline.js +50 -40
- package/dist/commands/evidence/gc.js +3 -2
- package/dist/commands/evidence/index.js +1 -1
- package/dist/commands/evidence/inspect-mocks.d.ts +16 -0
- package/dist/commands/evidence/inspect-mocks.d.ts.map +1 -0
- package/dist/commands/evidence/inspect-mocks.js +49 -0
- package/dist/commands/evidence/record.d.ts +1 -0
- package/dist/commands/evidence/record.d.ts.map +1 -1
- package/dist/commands/evidence/record.js +48 -33
- package/dist/commands/graph/change-impact.d.ts +16 -0
- package/dist/commands/graph/change-impact.d.ts.map +1 -0
- package/dist/commands/graph/change-impact.js +29 -0
- package/dist/commands/graph/churn.d.ts +14 -0
- package/dist/commands/graph/churn.d.ts.map +1 -0
- package/dist/commands/graph/churn.js +15 -0
- package/dist/commands/graph/common.d.ts +16 -0
- package/dist/commands/graph/common.d.ts.map +1 -0
- package/dist/commands/graph/fan-out.d.ts +14 -0
- package/dist/commands/graph/fan-out.d.ts.map +1 -0
- package/dist/commands/graph/fan-out.js +15 -0
- package/dist/commands/graph/index.d.ts +8 -0
- package/dist/commands/graph/index.d.ts.map +1 -0
- package/dist/commands/graph/index.js +12 -0
- package/dist/commands/matrix.js +1 -1
- package/dist/commands/measurement/index.d.ts +7 -0
- package/dist/commands/measurement/index.d.ts.map +1 -0
- package/dist/commands/measurement/index.js +11 -0
- package/dist/commands/measurement/intervention.d.ts +11 -0
- package/dist/commands/measurement/intervention.d.ts.map +1 -0
- package/dist/commands/measurement/intervention.js +31 -0
- package/dist/commands/measurement/operational-release.d.ts +11 -0
- package/dist/commands/measurement/operational-release.d.ts.map +1 -0
- package/dist/commands/measurement/operational-release.js +31 -0
- package/dist/commands/measurement/record.d.ts +10 -0
- package/dist/commands/measurement/record.d.ts.map +1 -0
- package/dist/commands/measurement/record.js +36 -0
- 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/report.d.ts +19 -0
- package/dist/commands/report.d.ts.map +1 -0
- package/dist/commands/report.js +96 -0
- 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/validate.d.ts +13 -0
- package/dist/commands/validate.d.ts.map +1 -0
- package/dist/commands/validate.js +123 -0
- package/dist/commands/write.js +3 -3
- package/dist/common-B1ZJ8CSO.js +36 -0
- package/dist/common-DTrmnvL-.js +35 -0
- package/dist/{completeness-BQDxME0a.js → completeness-BzBuNq6w.js} +1 -1
- package/dist/evidence/adapters/contract-conformance.d.ts +16 -0
- package/dist/evidence/adapters/contract-conformance.d.ts.map +1 -0
- package/dist/evidence/adapters/differential-report.d.ts +18 -0
- package/dist/evidence/adapters/differential-report.d.ts.map +1 -0
- package/dist/evidence/adapters/registry.d.ts.map +1 -1
- package/dist/evidence/adapters/types.d.ts +31 -0
- package/dist/evidence/adapters/types.d.ts.map +1 -1
- package/dist/evidence/index.d.ts +7 -3
- package/dist/evidence/index.d.ts.map +1 -1
- package/dist/evidence/mock-inspection.d.ts +16 -0
- package/dist/evidence/mock-inspection.d.ts.map +1 -0
- package/dist/evidence/store.d.ts +11 -1
- package/dist/evidence/store.d.ts.map +1 -1
- package/dist/evidence/types.d.ts +31 -0
- package/dist/evidence/types.d.ts.map +1 -1
- package/dist/evidence-OyqpqHLS.js +614 -0
- package/dist/{flow-command-C_dUJNm-.js → flow-command-CCRTE5Oe.js} +7 -7
- package/dist/graph-analysis/analysis.d.ts +106 -0
- package/dist/graph-analysis/analysis.d.ts.map +1 -0
- package/dist/graph-analysis/index.d.ts +6 -0
- package/dist/graph-analysis/index.d.ts.map +1 -0
- package/dist/graph-analysis/input.d.ts +33 -0
- package/dist/graph-analysis/input.d.ts.map +1 -0
- package/dist/graph-analysis/load.d.ts +21 -0
- package/dist/graph-analysis/load.d.ts.map +1 -0
- package/dist/graph-analysis/render.d.ts +4 -0
- package/dist/graph-analysis/render.d.ts.map +1 -0
- package/dist/graph-analysis-IWaoJJSN.js +657 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -8
- package/dist/measurement/agent-eval-intervention.d.ts +6 -0
- package/dist/measurement/agent-eval-intervention.d.ts.map +1 -0
- package/dist/measurement/atomic-file.d.ts +5 -0
- package/dist/measurement/atomic-file.d.ts.map +1 -0
- package/dist/measurement/compare.d.ts +4 -0
- package/dist/measurement/compare.d.ts.map +1 -0
- package/dist/measurement/date-time.d.ts +3 -0
- package/dist/measurement/date-time.d.ts.map +1 -0
- package/dist/measurement/github-release-operational.d.ts +7 -0
- package/dist/measurement/github-release-operational.d.ts.map +1 -0
- package/dist/measurement/graph-adapters.d.ts +304 -0
- package/dist/measurement/graph-adapters.d.ts.map +1 -0
- package/dist/measurement/graph-portfolio-load.d.ts +3 -0
- package/dist/measurement/graph-portfolio-load.d.ts.map +1 -0
- package/dist/measurement/graph-portfolio.d.ts +158 -0
- package/dist/measurement/graph-portfolio.d.ts.map +1 -0
- package/dist/measurement/index.d.ts +22 -0
- package/dist/measurement/index.d.ts.map +1 -0
- package/dist/measurement/intervention-report.d.ts +24 -0
- package/dist/measurement/intervention-report.d.ts.map +1 -0
- package/dist/measurement/intervention-schema.d.ts +144 -0
- package/dist/measurement/intervention-schema.d.ts.map +1 -0
- package/dist/measurement/intervention-types.d.ts +105 -0
- package/dist/measurement/intervention-types.d.ts.map +1 -0
- package/dist/measurement/intervention.d.ts +16 -0
- package/dist/measurement/intervention.d.ts.map +1 -0
- package/dist/measurement/operational-report.d.ts +17 -0
- package/dist/measurement/operational-report.d.ts.map +1 -0
- package/dist/measurement/operational-schema.d.ts +461 -0
- package/dist/measurement/operational-schema.d.ts.map +1 -0
- package/dist/measurement/operational-types.d.ts +121 -0
- package/dist/measurement/operational-types.d.ts.map +1 -0
- package/dist/measurement/operational.d.ts +13 -0
- package/dist/measurement/operational.d.ts.map +1 -0
- package/dist/measurement/plans.d.ts +6 -0
- package/dist/measurement/plans.d.ts.map +1 -0
- package/dist/measurement/portfolio.d.ts +54 -0
- package/dist/measurement/portfolio.d.ts.map +1 -0
- package/dist/measurement/profiles.d.ts +9 -0
- package/dist/measurement/profiles.d.ts.map +1 -0
- package/dist/measurement/report.d.ts +48 -0
- package/dist/measurement/report.d.ts.map +1 -0
- package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
- package/dist/measurement/store.d.ts +14 -0
- package/dist/measurement/store.d.ts.map +1 -0
- package/dist/measurement/types.d.ts +85 -0
- package/dist/measurement/types.d.ts.map +1 -0
- package/dist/measurement/validate.d.ts +9 -0
- package/dist/measurement/validate.d.ts.map +1 -0
- package/dist/measurement-j8sDSqx5.js +2980 -0
- package/dist/{modules-Cn9Htfp0.js → modules-DDQkKC4l.js} +2 -2
- package/dist/{plugins-Byi1bWLD.js → plugins-CHpYhpEI.js} +1 -1
- package/dist/quire/assurance.d.ts +109 -0
- package/dist/quire/assurance.d.ts.map +1 -0
- package/dist/quire/contract.d.ts +12 -12
- package/dist/quire/contract.d.ts.map +1 -1
- package/dist/quire/exec.d.ts +10 -0
- package/dist/quire/exec.d.ts.map +1 -1
- package/dist/quire/index.d.ts +4 -3
- package/dist/quire/index.d.ts.map +1 -1
- package/dist/quire/types.d.ts +119 -1
- package/dist/quire/types.d.ts.map +1 -1
- package/dist/quire/validate.d.ts +5 -0
- package/dist/quire/validate.d.ts.map +1 -1
- package/dist/{quire-UzoK3Azf.js → quire-BsVj1xIR.js} +533 -499
- package/dist/schema-assets-HZWo_iFN.js +233 -0
- package/dist/schemas/assurance-v1.schema.json +225 -0
- package/dist/schemas/change-assurance-record-v1.schema.json +234 -0
- package/dist/schemas/coverage-v1.schema.json +919 -105
- package/dist/schemas/operational-evidence-v1.schema.json +381 -0
- package/dist/schemas/proof-attestation-v1.schema.json +96 -0
- package/dist/schemas/properties-v1.schema.json +25 -0
- package/dist/schemas/verification-receipt-v1.schema.json +208 -0
- package/dist/validators/gates.d.ts +18 -0
- package/dist/validators/gates.d.ts.map +1 -0
- package/dist/validators/index.d.ts +2 -0
- package/dist/validators/index.d.ts.map +1 -0
- package/dist/{version-BMXhyIie.js → version-CMxMIh5g.js} +1 -1
- package/dist/{write-BDxILTLC.js → write-CGTI0dRO.js} +1 -1
- package/package.json +26 -16
- package/skills/assurance-status-report/SKILL.md +135 -0
- package/skills/assurance-status-report/references/report-contract.md +110 -0
- package/skills/gap-analysis/references/step-4-underspecified-code.md +36 -7
- package/skills/gap-analysis/references/step-5-semantic-review.md +2 -2
- package/skills/gap-analysis/references/step-6-specreview-artifact.md +6 -5
- package/skills/spec-architecture-evaluation/SKILL.md +30 -0
- package/skills/spec-fuzz/SKILL.md +7 -6
- package/dist/evidence-BA5vyZJk.js +0 -603
package/default-modules.yaml
CHANGED
|
@@ -9,6 +9,22 @@
|
|
|
9
9
|
schemaVersion: 1
|
|
10
10
|
name: quoin-default-modules
|
|
11
11
|
entries:
|
|
12
|
+
# Assurance artifacts are available by default but remain opt-in: installing
|
|
13
|
+
# their vocabulary does not require a repository to author any assurance
|
|
14
|
+
# document. Pin an exact reachable revision until a release tag carrying the
|
|
15
|
+
# module exists (agent-ix/quire-rs#275). The first-integration pin 2a66359
|
|
16
|
+
# was orphaned when upstream history was rebuilt — upload-pack refuses it, so
|
|
17
|
+
# clean-room installs failed while already-installed dev machines stayed
|
|
18
|
+
# green (agent-ix/quoin#308, caught by the v0.22.1 release run).
|
|
19
|
+
- name: engineering-assurance
|
|
20
|
+
version: "0.2.0+4e6522f"
|
|
21
|
+
defaultEnabled: true
|
|
22
|
+
source:
|
|
23
|
+
type: git-subdir
|
|
24
|
+
url: agent-ix/engineering-assurance
|
|
25
|
+
path: engineering_assurance
|
|
26
|
+
ref: 4e6522fc32f82cac82a3489a4192e17a94f539c3
|
|
27
|
+
|
|
12
28
|
- name: spec-artifacts-iso
|
|
13
29
|
version: "0.18.0"
|
|
14
30
|
defaultEnabled: true
|
|
@@ -28,13 +44,13 @@ entries:
|
|
|
28
44
|
ref: v0.5.0
|
|
29
45
|
|
|
30
46
|
- name: spec-artifacts-process
|
|
31
|
-
version: "0.24.0"
|
|
47
|
+
version: "0.24.0+d605caa"
|
|
32
48
|
defaultEnabled: true
|
|
33
49
|
source:
|
|
34
50
|
type: git-subdir
|
|
35
51
|
url: agent-ix/spec-artifacts-process
|
|
36
52
|
path: spec_artifacts_process
|
|
37
|
-
ref:
|
|
53
|
+
ref: d605caad70a8c09884ef22525d532e01330f763f
|
|
38
54
|
|
|
39
55
|
- name: spec-objects-business
|
|
40
56
|
version: "0.6.0"
|
package/dist/auditor/audit.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Obligation } from '../quire/index.js';
|
|
2
|
-
import { Binding, FindingRecord, RunRecord } from '../evidence/index.js';
|
|
2
|
+
import { Binding, FindingRecord, MockInjection, RunRecord } from '../evidence/index.js';
|
|
3
3
|
import { MethodCatalog } from '../advisor/index.js';
|
|
4
4
|
/** Severity of one finding. Matches the SpecReview vocabulary. */
|
|
5
5
|
export type Severity = "low" | "medium" | "high";
|
|
@@ -9,22 +9,17 @@ export interface Finding {
|
|
|
9
9
|
obligation: string;
|
|
10
10
|
severity: Severity;
|
|
11
11
|
summary: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
suite: string;
|
|
24
|
-
/** Symbol doing the injecting. */
|
|
25
|
-
symbol: string;
|
|
26
|
-
/** Identifiers substituted for real behaviour — `Confirmation::allow`. */
|
|
27
|
-
injects: string[];
|
|
12
|
+
/** Repo-relative source locus when the producer names one. */
|
|
13
|
+
path?: string;
|
|
14
|
+
line?: number;
|
|
15
|
+
symbol?: string;
|
|
16
|
+
/** Structured action fields are additive; only producers with sufficient
|
|
17
|
+
* evidence populate them. The JSON finding contract requires a target and
|
|
18
|
+
* exactly one remedy or safe diagnostic step when subject is present. */
|
|
19
|
+
subject?: string;
|
|
20
|
+
changeTarget?: string;
|
|
21
|
+
remedy?: string;
|
|
22
|
+
nextDiagnosticStep?: string;
|
|
28
23
|
}
|
|
29
24
|
/** What the auditor was given to read. */
|
|
30
25
|
export interface AuditInput {
|
|
@@ -40,9 +35,11 @@ export interface AuditInput {
|
|
|
40
35
|
* Supplied by the caller because the auditor reads the store, not source —
|
|
41
36
|
* and #204 asked to extend `evidence audit`, not to build a second system.
|
|
42
37
|
* An absent list means "nobody looked", never "nothing was mocked": the
|
|
43
|
-
*
|
|
38
|
+
* result is recorded under `unevaluated`, not counted as healthy.
|
|
44
39
|
*/
|
|
45
40
|
injections?: MockInjection[];
|
|
41
|
+
/** Suites with a current completed inspection, including clean inspections. */
|
|
42
|
+
mockInspectionSuites?: string[];
|
|
46
43
|
/**
|
|
47
44
|
* Every finding-shaped scan record the store holds, newest per suite
|
|
48
45
|
* (FR-034).
|
|
@@ -76,6 +73,14 @@ export interface AuditReport {
|
|
|
76
73
|
findings: Finding[];
|
|
77
74
|
/** Obligations with a binding whose hash still matches. */
|
|
78
75
|
healthy: string[];
|
|
76
|
+
/** Checks that could not run, separate from both findings and clean results. */
|
|
77
|
+
unevaluated: UnevaluatedCheck[];
|
|
78
|
+
}
|
|
79
|
+
export interface UnevaluatedCheck {
|
|
80
|
+
check: "mocked-confirmation";
|
|
81
|
+
obligation: string;
|
|
82
|
+
suites: string[];
|
|
83
|
+
reason: string;
|
|
79
84
|
}
|
|
80
85
|
/**
|
|
81
86
|
* Audit the store against the obligations of the day.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/auditor/audit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/auditor/audit.ts"],"names":[],"mappings":"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"}
|
package/dist/auditor/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* Reads the store and reports. Runs nothing (ADR-0011 invariant 1): an auditor
|
|
5
5
|
* that could re-run a suite could also make a finding disappear by re-running it.
|
|
6
6
|
*/
|
|
7
|
-
export { audit, delta, findingKey, ratchet, scoresFor, type AuditInput, type AuditReport, type Finding, type Severity, } from './audit.js';
|
|
7
|
+
export { audit, delta, findingKey, ratchet, scoresFor, type AuditInput, type AuditReport, type Finding, type Severity, type UnevaluatedCheck, } from './audit.js';
|
|
8
|
+
export type { MockInjection } from '../evidence/index.js';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auditor/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACP,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auditor/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACP,SAAS,EACT,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as e } from "./schema-assets-HZWo_iFN.js";
|
|
2
|
+
import "./evidence-OyqpqHLS.js";
|
|
2
3
|
//#region src/auditor/combinatorial.ts
|
|
3
4
|
var t = /^(\d+)-way over\s/, n = /([^\s(]+)\(([^)]*)\)/g, r = /excluding\[([^\]]*)\]/g;
|
|
4
5
|
function i(e) {
|
|
@@ -80,121 +81,134 @@ function u(e, t) {
|
|
|
80
81
|
//#endregion
|
|
81
82
|
//#region src/auditor/audit.ts
|
|
82
83
|
function d(t) {
|
|
83
|
-
let n = [], r = [], a = /* @__PURE__ */ new Map();
|
|
84
|
+
let n = [], r = [], a = [], o = /* @__PURE__ */ new Map();
|
|
84
85
|
for (let e of t.bindings) {
|
|
85
|
-
let t =
|
|
86
|
-
t.push(e),
|
|
86
|
+
let t = o.get(e.obligation) ?? [];
|
|
87
|
+
t.push(e), o.set(e.obligation, t);
|
|
87
88
|
}
|
|
88
|
-
let
|
|
89
|
-
for (let
|
|
90
|
-
let
|
|
91
|
-
if (
|
|
89
|
+
let s = new Map(t.runs.map((e) => [e.suite, e])), c = new Map((t.scans ?? []).map((e) => [e.suite, e])), l = t.injections ?? [], d = new Set(t.mockInspectionSuites ?? l.map((e) => e.suite));
|
|
90
|
+
for (let h of [...t.obligations].sort(p)) {
|
|
91
|
+
let p = n.length, y = a.length, x = (o.get(h.id) ?? []).slice().sort((e, t) => f(e.suite, t.suite)), S = m(h, t.catalog);
|
|
92
|
+
if (S && n.push(S), x.length === 0) {
|
|
92
93
|
n.push({
|
|
93
94
|
kind: "undischarged",
|
|
94
|
-
obligation:
|
|
95
|
+
obligation: h.id,
|
|
95
96
|
severity: "medium",
|
|
96
|
-
summary: `no evidence is bound to ${
|
|
97
|
+
summary: `no evidence is bound to ${h.id}`
|
|
97
98
|
});
|
|
98
99
|
continue;
|
|
99
100
|
}
|
|
100
|
-
let
|
|
101
|
-
if (
|
|
101
|
+
let C = x.filter((e) => e.statementHashAtBinding !== h.statement_hash);
|
|
102
|
+
if (C.length > 0) {
|
|
102
103
|
n.push({
|
|
103
104
|
kind: "suspect-link",
|
|
104
|
-
obligation:
|
|
105
|
+
obligation: h.id,
|
|
105
106
|
severity: "high",
|
|
106
|
-
summary: `${
|
|
107
|
+
summary: `${h.id} was reworded after its evidence was bound in ${C.map((e) => e.suite).join(", ")} (bound against ${C[0].statementHashAtBinding.slice(0, 12)}…, now ${h.statement_hash.slice(0, 12)}…). Re-affirm or re-verify.`
|
|
107
108
|
});
|
|
108
109
|
continue;
|
|
109
110
|
}
|
|
110
|
-
let
|
|
111
|
-
if (
|
|
111
|
+
let w = x.filter((e) => !s.has(e.suite) && !c.has(e.suite));
|
|
112
|
+
if (w.length > 0) {
|
|
112
113
|
n.push({
|
|
113
114
|
kind: "stale-evidence",
|
|
114
|
-
obligation:
|
|
115
|
+
obligation: h.id,
|
|
115
116
|
severity: "high",
|
|
116
|
-
summary: `${
|
|
117
|
+
summary: `${h.id} is bound to ${w.map((e) => e.suite).join(", ")}, which ${w.length === 1 ? "has" : "have"} no recorded run. The binding claims evidence that is not in the store.`
|
|
117
118
|
});
|
|
118
119
|
continue;
|
|
119
120
|
}
|
|
120
|
-
let
|
|
121
|
-
if (
|
|
121
|
+
let T = b(h, x, l), E = [...new Set(x.filter((e) => s.has(e.suite)).map((e) => e.suite).filter((e) => !d.has(e)))].sort(f);
|
|
122
|
+
if (E.length > 0 && a.push({
|
|
123
|
+
check: "mocked-confirmation",
|
|
124
|
+
obligation: h.id,
|
|
125
|
+
suites: E,
|
|
126
|
+
reason: `no current mock inspection exists for ${E.join(", ")}. Run quoin evidence inspect-mocks for each suite at HEAD.`
|
|
127
|
+
}), T.length > 0 && T.length === x.length) {
|
|
128
|
+
let e = [...T].sort((e, t) => f(e.path ?? "", t.path ?? "") || (e.line ?? 0) - (t.line ?? 0) || f(e.symbol, t.symbol))[0];
|
|
122
129
|
n.push({
|
|
123
130
|
kind: "mocked-confirmation",
|
|
124
|
-
obligation:
|
|
131
|
+
obligation: h.id,
|
|
125
132
|
severity: "medium",
|
|
126
|
-
|
|
133
|
+
...e.path ? { path: e.path } : {},
|
|
134
|
+
...e.line ? { line: e.line } : {},
|
|
135
|
+
symbol: e.symbol,
|
|
136
|
+
subject: `${h.id} evidence`,
|
|
137
|
+
changeTarget: e.path && e.line ? `${e.path}:${e.line} in ${e.symbol}` : e.path ? `${e.path} in ${e.symbol}` : e.symbol,
|
|
138
|
+
nextDiagnosticStep: `inspect whether the real behaviour for ${h.id} exists; add or bind an independent test that exercises it without substituting the behaviour under verification`,
|
|
139
|
+
summary: `${h.id} is discharged only by tests that inject a stand-in for the behaviour it verifies: ` + T.map((e) => `${e.path ? `${e.path}${e.line ? `:${e.line}` : ""} ` : ""}${e.symbol} injects ${e.injects.join(", ")}`).sort(f).join("; ") + ". A test that substitutes the behaviour under verification passes whether or not that behaviour exists."
|
|
127
140
|
});
|
|
128
141
|
continue;
|
|
129
142
|
}
|
|
130
|
-
let
|
|
131
|
-
if (
|
|
143
|
+
let D = x.map((e) => c.get(e.suite)).filter((e) => e !== void 0).filter((t) => e(t) === !0);
|
|
144
|
+
if (D.length > 0) {
|
|
132
145
|
n.push({
|
|
133
146
|
kind: "vacuous-evidence",
|
|
134
|
-
obligation:
|
|
147
|
+
obligation: h.id,
|
|
135
148
|
severity: "high",
|
|
136
|
-
summary: `${
|
|
149
|
+
summary: `${h.id} rests on a scan that evaluated no rules: ` + D.map((e) => `${e.suite} (${e.tool})`).sort(f).join(", ") + ". It reported no finding because it looked for nothing."
|
|
137
150
|
});
|
|
138
151
|
continue;
|
|
139
152
|
}
|
|
140
|
-
let
|
|
141
|
-
if (
|
|
142
|
-
let
|
|
153
|
+
let O = x.filter((e) => s.has(e.suite));
|
|
154
|
+
if (O.length === 0) continue;
|
|
155
|
+
let k = O.map((e) => s.get(e.suite));
|
|
143
156
|
if (t.headCommit) {
|
|
144
|
-
let e =
|
|
157
|
+
let e = x.filter((e, n) => k[n].commit !== t.headCommit);
|
|
145
158
|
e.length > 0 && n.push({
|
|
146
159
|
kind: "stale-evidence",
|
|
147
|
-
obligation:
|
|
160
|
+
obligation: h.id,
|
|
148
161
|
severity: "medium",
|
|
149
|
-
summary: `${
|
|
162
|
+
summary: `${h.id} rests on ` + e.map((e) => `a ${e.suite} run at ${s.get(e.suite).commit.slice(0, 12)}`).join(" and ") + `, not at HEAD (${t.headCommit.slice(0, 12)}).`
|
|
150
163
|
});
|
|
151
164
|
}
|
|
152
|
-
let
|
|
153
|
-
let n =
|
|
165
|
+
let A = O.flatMap((e, t) => e.symbols.filter((e) => {
|
|
166
|
+
let n = k[t].entries.find((t) => t.symbol === e);
|
|
154
167
|
return !n || n.outcome === "skip";
|
|
155
|
-
}).map((t) => `${e.suite}:${t}`)),
|
|
156
|
-
if (
|
|
168
|
+
}).map((t) => `${e.suite}:${t}`)), j = O.reduce((e, t) => e + t.symbols.length, 0);
|
|
169
|
+
if (A.length > 0 && A.length === j) {
|
|
157
170
|
n.push({
|
|
158
171
|
kind: "vacuous-evidence",
|
|
159
|
-
obligation:
|
|
172
|
+
obligation: h.id,
|
|
160
173
|
severity: "high",
|
|
161
|
-
summary: `every symbol bound to ${
|
|
174
|
+
summary: `every symbol bound to ${h.id} was skipped or absent from its run: ${A.sort(f).join(", ")}. The row reads as covered and nothing was verified.`
|
|
162
175
|
});
|
|
163
176
|
continue;
|
|
164
177
|
}
|
|
165
|
-
let
|
|
166
|
-
if (
|
|
167
|
-
let e = u(
|
|
178
|
+
let M = i(h.statement ?? "");
|
|
179
|
+
if (M) {
|
|
180
|
+
let e = u(M, k.flatMap((e) => e.entries.map((e) => e.config).filter((e) => !!e)));
|
|
168
181
|
if (e.covered < e.demanded) {
|
|
169
182
|
n.push({
|
|
170
183
|
kind: "combinatorial-gap",
|
|
171
|
-
obligation:
|
|
184
|
+
obligation: h.id,
|
|
172
185
|
severity: "medium",
|
|
173
|
-
summary: `${
|
|
186
|
+
summary: `${h.id} demands ${e.demanded} ${e.strength}-way combinations and its runs reached ${e.covered}. Never run: ${e.gaps.slice(0, 10).join("; ")}` + (e.gaps.length > 10 ? ` (and ${e.gaps.length - 10} more)` : "")
|
|
174
187
|
});
|
|
175
188
|
continue;
|
|
176
189
|
}
|
|
177
190
|
}
|
|
178
|
-
let
|
|
179
|
-
if (
|
|
180
|
-
n.push(
|
|
191
|
+
let N = g(h, O, k, t.catalog);
|
|
192
|
+
if (N) {
|
|
193
|
+
n.push(N);
|
|
181
194
|
continue;
|
|
182
195
|
}
|
|
183
|
-
let
|
|
184
|
-
if (
|
|
185
|
-
n.push(
|
|
196
|
+
let P = _(h, x, t);
|
|
197
|
+
if (P) {
|
|
198
|
+
n.push(P);
|
|
186
199
|
continue;
|
|
187
200
|
}
|
|
188
|
-
let
|
|
189
|
-
if (
|
|
190
|
-
n.push(
|
|
201
|
+
let F = v(h, O, k, t);
|
|
202
|
+
if (F) {
|
|
203
|
+
n.push(F);
|
|
191
204
|
continue;
|
|
192
205
|
}
|
|
193
|
-
n.length ===
|
|
206
|
+
n.length === p && a.length === y && r.push(h.id);
|
|
194
207
|
}
|
|
195
|
-
return n.sort((e, t) => f(e.obligation, t.obligation) || f(e.kind, t.kind)), {
|
|
208
|
+
return n.sort((e, t) => f(e.obligation, t.obligation) || f(e.kind, t.kind)), a.sort((e, t) => f(e.obligation, t.obligation) || f(e.check, t.check)), {
|
|
196
209
|
findings: n,
|
|
197
|
-
healthy: r.sort(f)
|
|
210
|
+
healthy: r.sort(f),
|
|
211
|
+
unevaluated: a
|
|
198
212
|
};
|
|
199
213
|
}
|
|
200
214
|
function f(e, t) {
|
|
@@ -248,7 +262,7 @@ function v(e, t, n, r) {
|
|
|
248
262
|
if (!e.criticality) return null;
|
|
249
263
|
let a = i[e.criticality];
|
|
250
264
|
if (a === void 0) return null;
|
|
251
|
-
let o =
|
|
265
|
+
let o = C(t, n);
|
|
252
266
|
if (o.length === 0) return {
|
|
253
267
|
kind: "unmeasured-mutation-score",
|
|
254
268
|
obligation: e.id,
|
|
@@ -266,12 +280,12 @@ function v(e, t, n, r) {
|
|
|
266
280
|
var y = .5;
|
|
267
281
|
function b(e, t, n) {
|
|
268
282
|
if (n.length === 0) return [];
|
|
269
|
-
let r =
|
|
283
|
+
let r = S(e.statement);
|
|
270
284
|
if (r.size === 0) return [];
|
|
271
285
|
let i = [];
|
|
272
286
|
for (let e of t) {
|
|
273
|
-
let t = n.filter((t) => t.suite === e.suite).find((e) => e.injects.some((e) => {
|
|
274
|
-
let t =
|
|
287
|
+
let t = n.filter((t) => t.suite === e.suite && e.symbols.some((e) => x(e, t.symbol))).find((e) => e.injects.some((e) => {
|
|
288
|
+
let t = S(e);
|
|
275
289
|
if (t.size === 0) return !1;
|
|
276
290
|
let n = 0;
|
|
277
291
|
for (let e of t) r.has(e) && (n += 1);
|
|
@@ -281,7 +295,10 @@ function b(e, t, n) {
|
|
|
281
295
|
}
|
|
282
296
|
return i;
|
|
283
297
|
}
|
|
284
|
-
function x(e) {
|
|
298
|
+
function x(e, t) {
|
|
299
|
+
return e === t || e.endsWith(`::${t}`) || t.endsWith(`::${e}`);
|
|
300
|
+
}
|
|
301
|
+
function S(e) {
|
|
285
302
|
let t = /* @__PURE__ */ new Set([
|
|
286
303
|
"the",
|
|
287
304
|
"a",
|
|
@@ -307,17 +324,17 @@ function x(e) {
|
|
|
307
324
|
]);
|
|
308
325
|
return new Set(e.split(/[^A-Za-z0-9]+/).map((e) => e.toLowerCase()).filter((e) => e.length > 2 && !t.has(e)));
|
|
309
326
|
}
|
|
310
|
-
function
|
|
327
|
+
function C(e, t) {
|
|
311
328
|
let n = new Set(e.map((e) => e.suite)), r = [];
|
|
312
329
|
for (let e of t) if (n.has(e.suite)) for (let t of e.entries) t.metric === "mutation-score" && t.score !== void 0 && t.outcome !== "skip" && r.push(t.score);
|
|
313
330
|
return r;
|
|
314
331
|
}
|
|
315
|
-
function
|
|
332
|
+
function w(e) {
|
|
316
333
|
return `${e.kind}:${e.obligation}`;
|
|
317
334
|
}
|
|
318
|
-
function
|
|
335
|
+
function T(e, t) {
|
|
319
336
|
let n = new Set(t.accepted);
|
|
320
|
-
return e.findings.filter((e) => !n.has(
|
|
337
|
+
return e.findings.filter((e) => !n.has(w(e)));
|
|
321
338
|
}
|
|
322
339
|
//#endregion
|
|
323
|
-
export { i as a,
|
|
340
|
+
export { i as a, C as i, w as n, T as r, d as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./version-
|
|
1
|
+
import { t as e } from "./version-CMxMIh5g.js";
|
|
2
2
|
import { BaseCommand as t, maybeOfferUpdate as n } from "@agent-ix/ix-cli-core";
|
|
3
3
|
import { existsSync as r, readFileSync as i, readdirSync as a, statSync as o } from "node:fs";
|
|
4
4
|
import { basename as s, join as c, resolve as l } from "node:path";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProofAttestation } from './types.js';
|
|
2
|
+
export declare function sealAttestation(input: Omit<ProofAttestation, "digest"> | (Omit<ProofAttestation, "digest"> & {
|
|
3
|
+
digest?: undefined;
|
|
4
|
+
})): ProofAttestation;
|
|
5
|
+
export declare function verifyAttestation(value: unknown): ProofAttestation;
|
|
6
|
+
export declare function attestationBytes(value: ProofAttestation): Uint8Array;
|
|
7
|
+
//# sourceMappingURL=attestations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestations.d.ts","sourceRoot":"","sources":["../../src/change-assurance/attestations.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,wBAAgB,eAAe,CAC7B,KAAK,EACD,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAChC,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC,GAC9D,gBAAgB,CASlB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAIlE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,GAAG,UAAU,CAEpE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reusable change-assurance integrity contracts (FR-063..FR-065).
|
|
3
|
+
*
|
|
4
|
+
* Digests establish content integrity. Recorded actor labels are attribution;
|
|
5
|
+
* neither is an authentication, authorization, signature, or identity claim.
|
|
6
|
+
*/
|
|
7
|
+
export { IntegrityError, assertDigest, blake3Hex, canonicalBytes, canonicalizeJcs, digestValue, parseStrictJson, } from './integrity.js';
|
|
8
|
+
export { recordBytes, hashIxFlowEvent, sealChangeRecord, validateDecision, verifyChangeRecord, verifyIxFlowChain, verifyLineage, } from './records.js';
|
|
9
|
+
export { attestationBytes, sealAttestation, verifyAttestation, } from './attestations.js';
|
|
10
|
+
export { CHANGE_ASSURANCE_INTEGRITY_BOUNDARY, attestationPath, changeAssuranceRoot, intakeAttestation, readAttestation, readChangeRecord, recordPath, recoverChangeAssuranceStaging, writeChangeRecord, type IntakeOptions, } from './store.js';
|
|
11
|
+
export { verifyChangeAssurance, verifyReceipt } from './verify.js';
|
|
12
|
+
export { CHANGE_ASSURANCE_SCHEMA_NAMES, changeAssuranceSchemaPath, readChangeAssuranceSchema, type ChangeAssuranceSchemaName, } from './schema-assets.js';
|
|
13
|
+
export type * from './types.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/change-assurance/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,cAAc,EACd,YAAY,EACZ,SAAS,EACT,cAAc,EACd,eAAe,EACf,WAAW,EACX,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mCAAmC,EACnC,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,6BAA6B,EAC7B,iBAAiB,EACjB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,yBAAyB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,oBAAoB,CAAC;AAC5B,mBAAmB,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class IntegrityError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare function blake3Hex(bytes: Uint8Array): string;
|
|
5
|
+
export declare function parseStrictJson(input: string | Uint8Array): unknown;
|
|
6
|
+
export declare function canonicalizeJcs(value: unknown): string;
|
|
7
|
+
export declare function canonicalBytes(value: unknown): Uint8Array;
|
|
8
|
+
export declare function digestValue(value: Record<string, unknown>): string;
|
|
9
|
+
export declare function assertDigest(value: Record<string, unknown>): void;
|
|
10
|
+
export declare function assertValidUnicode(value: string): void;
|
|
11
|
+
//# sourceMappingURL=integrity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrity.d.ts","sourceRoot":"","sources":["../../src/change-assurance/integrity.ts"],"names":[],"mappings":"AAKA,qBAAa,cAAe,SAAQ,KAAK;gBAC3B,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEnD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAenE;AAkID,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CA0BtD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAEzD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAIlE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CASjE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAatD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChangeAssuranceRecord, Check, DecisionHistory, ReceiptDecisionEvent } from './types.js';
|
|
2
|
+
export declare function sealChangeRecord(input: Omit<ChangeAssuranceRecord, "digest"> | (Omit<ChangeAssuranceRecord, "digest"> & {
|
|
3
|
+
digest?: undefined;
|
|
4
|
+
})): ChangeAssuranceRecord;
|
|
5
|
+
export declare function verifyChangeRecord(value: unknown): ChangeAssuranceRecord;
|
|
6
|
+
export declare function recordBytes(value: ChangeAssuranceRecord): Uint8Array;
|
|
7
|
+
export declare function verifyLineage(record: ChangeAssuranceRecord, parents: ChangeAssuranceRecord[]): string[];
|
|
8
|
+
export declare function validateDecision(record: ChangeAssuranceRecord, history: DecisionHistory): Check & {
|
|
9
|
+
event: ReceiptDecisionEvent | null;
|
|
10
|
+
};
|
|
11
|
+
export declare function validateCommand(value: unknown): void;
|
|
12
|
+
/** Pure local implementation of ix-flow FR-013's public event hash contract. */
|
|
13
|
+
export declare function hashIxFlowEvent(event: Omit<DecisionHistory["events"][number], "hash">): string;
|
|
14
|
+
export declare function verifyIxFlowChain(events: DecisionHistory["events"]): boolean;
|
|
15
|
+
export declare function object(value: unknown, name: string): Record<string, unknown>;
|
|
16
|
+
export declare function exact(value: Record<string, unknown>, allowed: string[]): void;
|
|
17
|
+
export declare function array(value: unknown, name: string, nonemptyValue: boolean): unknown[];
|
|
18
|
+
export declare function nonempty(value: unknown, name: string): string;
|
|
19
|
+
export declare function identity(value: unknown, name: string): void;
|
|
20
|
+
export declare function digest(value: unknown, name: string): void;
|
|
21
|
+
export declare function compareUtf16(left: string, right: string): number;
|
|
22
|
+
//# sourceMappingURL=records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../src/change-assurance/records.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,qBAAqB,EACrB,KAAK,EACL,eAAe,EACf,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAKpB,wBAAgB,gBAAgB,CAC9B,KAAK,EACD,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,GACrC,CAAC,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC,GACnE,qBAAqB,CASvB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAIxE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,qBAAqB,GAAG,UAAU,CAEpE;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,qBAAqB,EAAE,GAC/B,MAAM,EAAE,CAyBV;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,eAAe,GACvB,KAAK,GAAG;IAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAAE,CAsIhD;AA0OD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAkBpD;AAID,gFAAgF;AAChF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACrD,MAAM,CAaR;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC,GAAG,OAAO,CAc5E;AAiBD,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAO5E;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAO7E;AAED,wBAAgB,KAAK,CACnB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,OAAO,GACrB,OAAO,EAAE,CAIX;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAE3D;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEzD;AAqCD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The three normative, versioned JSON Schema assets for FR-063..FR-065. */
|
|
2
|
+
export declare const CHANGE_ASSURANCE_SCHEMA_NAMES: readonly ["change-assurance-record-v1.schema.json", "proof-attestation-v1.schema.json", "verification-receipt-v1.schema.json"];
|
|
3
|
+
export type ChangeAssuranceSchemaName = (typeof CHANGE_ASSURANCE_SCHEMA_NAMES)[number];
|
|
4
|
+
/** Absolute path to a source-tree or packaged change-assurance schema. */
|
|
5
|
+
export declare function changeAssuranceSchemaPath(name: ChangeAssuranceSchemaName): string;
|
|
6
|
+
/** Read one normative change-assurance schema as parsed JSON. */
|
|
7
|
+
export declare function readChangeAssuranceSchema(name: ChangeAssuranceSchemaName): unknown;
|
|
8
|
+
//# sourceMappingURL=schema-assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-assets.d.ts","sourceRoot":"","sources":["../../src/change-assurance/schema-assets.ts"],"names":[],"mappings":"AAIA,4EAA4E;AAC5E,eAAO,MAAM,6BAA6B,gIAIhC,CAAC;AAEX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAIjD,0EAA0E;AAC1E,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,yBAAyB,GAC9B,MAAM,CAER;AAED,iEAAiE;AACjE,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAET"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeAssuranceRecord, ProofAttestation } from './types.js';
|
|
2
|
+
export declare function changeAssuranceRoot(repo: string): string;
|
|
3
|
+
export declare function recordPath(repo: string, digest: string): string;
|
|
4
|
+
export declare function attestationPath(repo: string, digest: string): string;
|
|
5
|
+
export declare function writeChangeRecord(repo: string, record: ChangeAssuranceRecord): string;
|
|
6
|
+
export declare function readChangeRecord(repo: string, digest: string): ChangeAssuranceRecord | null;
|
|
7
|
+
export interface IntakeOptions {
|
|
8
|
+
/** Test-only failure seam immediately before the single visibility rename. */
|
|
9
|
+
beforeRename?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function intakeAttestation(repo: string, rawAttestation: Uint8Array, output: Uint8Array, options?: IntakeOptions): string;
|
|
12
|
+
export declare function readAttestation(repo: string, digest: string): {
|
|
13
|
+
attestation: ProofAttestation;
|
|
14
|
+
output: Uint8Array;
|
|
15
|
+
} | null;
|
|
16
|
+
export declare function recoverChangeAssuranceStaging(repo: string): number;
|
|
17
|
+
export declare const CHANGE_ASSURANCE_INTEGRITY_BOUNDARY: string;
|
|
18
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/change-assurance/store.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAI1E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,qBAAqB,GAC5B,MAAM,CAcR;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,qBAAqB,GAAG,IAAI,CAO9B;AAED,MAAM,WAAW,aAAa;IAC5B,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,UAAU,EAC1B,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,aAAkB,GAC1B,MAAM,CA0CR;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb;IAAE,WAAW,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,CAe9D;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASlE;AAmDD,eAAO,MAAM,mCAAmC,QAE9C,CAAC"}
|