@agent-ix/quoin 0.22.5 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{advisor-BkgwDKvQ.js → advisor-B0rESCx1.js} +1 -1
- package/dist/{auditor-C3bSmPD_.js → auditor-Dd3i9Aqx.js} +2 -2
- package/dist/{base-CqKNs2Kd.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 +19 -19
- package/dist/commands/assurance.js +20 -20
- 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.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.js +19 -19
- package/dist/commands/evidence/audit.js +26 -26
- package/dist/commands/evidence/baseline.js +21 -21
- package/dist/commands/evidence/gc.js +3 -3
- package/dist/commands/evidence/index.js +1 -1
- package/dist/commands/evidence/inspect-mocks.js +4 -4
- package/dist/commands/evidence/record.d.ts.map +1 -1
- package/dist/commands/evidence/record.js +28 -24
- 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.js +1 -1
- 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.map +1 -1
- package/dist/commands/measurement/record.js +12 -11
- 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 +4 -0
- package/dist/commands/report.d.ts.map +1 -1
- package/dist/commands/report.js +49 -23
- 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.js +1 -1
- package/dist/commands/write.js +3 -3
- package/dist/common-B1ZJ8CSO.js +36 -0
- package/dist/common-DTrmnvL-.js +35 -0
- package/dist/{completeness-DamWradt.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 +5 -2
- package/dist/evidence/index.d.ts.map +1 -1
- package/dist/{evidence-DD0CHzJ0.js → evidence-OyqpqHLS.js} +191 -110
- package/dist/{flow-command-BfFNY0Rv.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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -9
- 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/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 +15 -2
- package/dist/measurement/index.d.ts.map +1 -1
- 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 +3 -1
- package/dist/measurement/plans.d.ts.map +1 -1
- package/dist/measurement/portfolio.d.ts +7 -1
- package/dist/measurement/portfolio.d.ts.map +1 -1
- package/dist/measurement/report.d.ts +4 -0
- package/dist/measurement/report.d.ts.map +1 -1
- package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
- package/dist/measurement/store.d.ts +7 -0
- package/dist/measurement/store.d.ts.map +1 -1
- package/dist/measurement/types.d.ts +2 -0
- package/dist/measurement/types.d.ts.map +1 -1
- package/dist/measurement-j8sDSqx5.js +2980 -0
- package/dist/{modules-ez9httBA.js → modules-DDQkKC4l.js} +2 -2
- package/dist/{plugins-C-ta0llj.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 +2 -1
- package/dist/quire/contract.d.ts.map +1 -1
- package/dist/quire/index.d.ts +3 -2
- package/dist/quire/index.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-D8tCpgyA.js → quire-BsVj1xIR.js} +54 -47
- 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/operational-evidence-v1.schema.json +381 -0
- package/dist/schemas/proof-attestation-v1.schema.json +96 -0
- package/dist/schemas/verification-receipt-v1.schema.json +208 -0
- package/dist/{version-Dg0e6CZU.js → version-CMxMIh5g.js} +1 -1
- package/dist/{write-DElwS9xc.js → write-CGTI0dRO.js} +1 -1
- package/package.json +5 -1
- 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-fuzz/SKILL.md +7 -6
- package/dist/measurement-CzB74Q07.js +0 -595
- package/dist/store--2sAv12X.js +0 -219
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-ix.github.io/quoin/schemas/operational-evidence-v1.schema.json",
|
|
4
|
+
"title": "OperationalEvidenceV1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"record_type",
|
|
9
|
+
"record_id",
|
|
10
|
+
"observed_at",
|
|
11
|
+
"record_shape",
|
|
12
|
+
"control_kind",
|
|
13
|
+
"subject",
|
|
14
|
+
"producer",
|
|
15
|
+
"scope",
|
|
16
|
+
"configuration",
|
|
17
|
+
"owner",
|
|
18
|
+
"gaps",
|
|
19
|
+
"actions",
|
|
20
|
+
"raw_evidence"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"schema_version": { "const": 1 },
|
|
24
|
+
"record_type": { "const": "operational_evidence" },
|
|
25
|
+
"record_id": { "$ref": "#/$defs/identity" },
|
|
26
|
+
"observed_at": { "type": "string", "format": "date-time" },
|
|
27
|
+
"record_shape": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["standing_capability", "exercise"]
|
|
30
|
+
},
|
|
31
|
+
"control_kind": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": [
|
|
34
|
+
"release",
|
|
35
|
+
"feature_flag",
|
|
36
|
+
"canary_deployment",
|
|
37
|
+
"shadow_deployment",
|
|
38
|
+
"rollback",
|
|
39
|
+
"kill_switch",
|
|
40
|
+
"human_override",
|
|
41
|
+
"appeal",
|
|
42
|
+
"abstention",
|
|
43
|
+
"safe_fallback",
|
|
44
|
+
"policy_pin",
|
|
45
|
+
"prompt_pin",
|
|
46
|
+
"model_pin",
|
|
47
|
+
"tool_pin",
|
|
48
|
+
"data_pin",
|
|
49
|
+
"reporting"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"subject": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": ["id", "revision"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"id": { "$ref": "#/$defs/identity" },
|
|
57
|
+
"revision": { "type": "string", "minLength": 1 }
|
|
58
|
+
},
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
},
|
|
61
|
+
"producer": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"required": [
|
|
64
|
+
"tool_identity",
|
|
65
|
+
"tool_version",
|
|
66
|
+
"configuration_digest",
|
|
67
|
+
"source_revision",
|
|
68
|
+
"environment",
|
|
69
|
+
"definition_version"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"tool_identity": { "type": "string", "minLength": 1 },
|
|
73
|
+
"tool_version": { "$ref": "#/$defs/immutable_version" },
|
|
74
|
+
"configuration_digest": { "$ref": "#/$defs/digest" },
|
|
75
|
+
"source_revision": { "type": "string", "minLength": 1 },
|
|
76
|
+
"environment": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"minProperties": 1,
|
|
79
|
+
"additionalProperties": {
|
|
80
|
+
"anyOf": [
|
|
81
|
+
{ "type": "string" },
|
|
82
|
+
{ "type": "number" },
|
|
83
|
+
{ "type": "boolean" },
|
|
84
|
+
{ "type": "null" }
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"definition_version": { "type": "string", "minLength": 1 }
|
|
89
|
+
},
|
|
90
|
+
"additionalProperties": false
|
|
91
|
+
},
|
|
92
|
+
"scope": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"required": ["service", "environment", "population"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"service": { "$ref": "#/$defs/identity" },
|
|
97
|
+
"environment": { "type": "string", "minLength": 1 },
|
|
98
|
+
"population": { "type": "string", "minLength": 1 }
|
|
99
|
+
},
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
},
|
|
102
|
+
"configuration": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"required": ["version_pins"],
|
|
105
|
+
"properties": {
|
|
106
|
+
"version_pins": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"required": ["kind", "identity", "revision", "digest"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"kind": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": ["policy", "prompt", "model", "tool", "data"]
|
|
115
|
+
},
|
|
116
|
+
"identity": { "$ref": "#/$defs/identity" },
|
|
117
|
+
"revision": { "type": "string", "minLength": 1 },
|
|
118
|
+
"digest": { "$ref": "#/$defs/digest" }
|
|
119
|
+
},
|
|
120
|
+
"additionalProperties": false
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
},
|
|
126
|
+
"capability": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"required": [
|
|
129
|
+
"control_id",
|
|
130
|
+
"status",
|
|
131
|
+
"surface",
|
|
132
|
+
"authorized_roles",
|
|
133
|
+
"coverage",
|
|
134
|
+
"limitations",
|
|
135
|
+
"supported_transitions",
|
|
136
|
+
"clock_support"
|
|
137
|
+
],
|
|
138
|
+
"properties": {
|
|
139
|
+
"control_id": { "$ref": "#/$defs/identity" },
|
|
140
|
+
"status": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"enum": ["available", "unavailable", "unknown", "not_applicable"]
|
|
143
|
+
},
|
|
144
|
+
"surface": { "type": "string", "minLength": 1 },
|
|
145
|
+
"authorized_roles": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"minItems": 1,
|
|
148
|
+
"items": { "type": "string", "minLength": 1 }
|
|
149
|
+
},
|
|
150
|
+
"coverage": { "type": "string", "minLength": 1 },
|
|
151
|
+
"limitations": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": { "type": "string", "minLength": 1 }
|
|
154
|
+
},
|
|
155
|
+
"supported_transitions": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"minItems": 1,
|
|
158
|
+
"items": { "type": "string", "minLength": 1 }
|
|
159
|
+
},
|
|
160
|
+
"clock_support": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"required": ["supported"],
|
|
163
|
+
"properties": {
|
|
164
|
+
"supported": { "type": "boolean" },
|
|
165
|
+
"start_event": { "type": "string", "minLength": 1 },
|
|
166
|
+
"completion_event": { "type": "string", "minLength": 1 },
|
|
167
|
+
"deadline_seconds": { "type": "integer", "minimum": 1 }
|
|
168
|
+
},
|
|
169
|
+
"allOf": [
|
|
170
|
+
{
|
|
171
|
+
"if": {
|
|
172
|
+
"properties": { "supported": { "const": true } },
|
|
173
|
+
"required": ["supported"]
|
|
174
|
+
},
|
|
175
|
+
"then": {
|
|
176
|
+
"required": [
|
|
177
|
+
"start_event",
|
|
178
|
+
"completion_event",
|
|
179
|
+
"deadline_seconds"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"else": {
|
|
183
|
+
"not": {
|
|
184
|
+
"anyOf": [
|
|
185
|
+
{ "required": ["start_event"] },
|
|
186
|
+
{ "required": ["completion_event"] },
|
|
187
|
+
{ "required": ["deadline_seconds"] }
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"additionalProperties": false
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"additionalProperties": false
|
|
197
|
+
},
|
|
198
|
+
"exercise": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"required": [
|
|
201
|
+
"control_id",
|
|
202
|
+
"mode",
|
|
203
|
+
"started_at",
|
|
204
|
+
"completed_at",
|
|
205
|
+
"actor",
|
|
206
|
+
"trigger",
|
|
207
|
+
"outcome",
|
|
208
|
+
"state_before",
|
|
209
|
+
"state_after",
|
|
210
|
+
"observations",
|
|
211
|
+
"clock"
|
|
212
|
+
],
|
|
213
|
+
"properties": {
|
|
214
|
+
"control_id": { "$ref": "#/$defs/identity" },
|
|
215
|
+
"capability_record_id": { "$ref": "#/$defs/identity" },
|
|
216
|
+
"mode": { "type": "string", "enum": ["actual", "drill"] },
|
|
217
|
+
"started_at": { "type": "string", "format": "date-time" },
|
|
218
|
+
"completed_at": { "type": "string", "format": "date-time" },
|
|
219
|
+
"actor": { "type": "string", "minLength": 1 },
|
|
220
|
+
"trigger": { "type": "string", "minLength": 1 },
|
|
221
|
+
"outcome": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"enum": ["succeeded", "failed", "partial", "aborted"]
|
|
224
|
+
},
|
|
225
|
+
"state_before": { "type": "object" },
|
|
226
|
+
"state_after": { "type": "object" },
|
|
227
|
+
"observations": {
|
|
228
|
+
"type": "array",
|
|
229
|
+
"minItems": 1,
|
|
230
|
+
"items": { "type": "string", "minLength": 1 }
|
|
231
|
+
},
|
|
232
|
+
"clock": { "$ref": "#/$defs/clock" }
|
|
233
|
+
},
|
|
234
|
+
"additionalProperties": false
|
|
235
|
+
},
|
|
236
|
+
"owner": { "type": "string", "minLength": 1 },
|
|
237
|
+
"gaps": {
|
|
238
|
+
"type": "array",
|
|
239
|
+
"items": { "type": "string", "minLength": 1 }
|
|
240
|
+
},
|
|
241
|
+
"actions": {
|
|
242
|
+
"type": "array",
|
|
243
|
+
"minItems": 1,
|
|
244
|
+
"items": { "type": "string", "minLength": 1 }
|
|
245
|
+
},
|
|
246
|
+
"raw_evidence": {
|
|
247
|
+
"type": "array",
|
|
248
|
+
"minItems": 1,
|
|
249
|
+
"items": {
|
|
250
|
+
"type": "object",
|
|
251
|
+
"required": ["path", "media_type", "size_bytes", "digest"],
|
|
252
|
+
"properties": {
|
|
253
|
+
"path": { "type": "string", "minLength": 1 },
|
|
254
|
+
"media_type": { "type": "string", "minLength": 1 },
|
|
255
|
+
"size_bytes": { "type": "integer", "minimum": 0 },
|
|
256
|
+
"digest": { "$ref": "#/$defs/raw_digest" }
|
|
257
|
+
},
|
|
258
|
+
"additionalProperties": false
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"allOf": [
|
|
263
|
+
{
|
|
264
|
+
"oneOf": [
|
|
265
|
+
{
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"record_shape": { "const": "standing_capability" },
|
|
269
|
+
"capability": {}
|
|
270
|
+
},
|
|
271
|
+
"required": ["record_shape", "capability"],
|
|
272
|
+
"not": {
|
|
273
|
+
"type": "object",
|
|
274
|
+
"properties": { "exercise": {} },
|
|
275
|
+
"required": ["exercise"]
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"record_shape": { "const": "exercise" },
|
|
282
|
+
"exercise": {}
|
|
283
|
+
},
|
|
284
|
+
"required": ["record_shape", "exercise"],
|
|
285
|
+
"not": {
|
|
286
|
+
"type": "object",
|
|
287
|
+
"properties": { "capability": {} },
|
|
288
|
+
"required": ["capability"]
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"if": {
|
|
295
|
+
"type": "object",
|
|
296
|
+
"properties": {
|
|
297
|
+
"control_kind": {
|
|
298
|
+
"enum": [
|
|
299
|
+
"policy_pin",
|
|
300
|
+
"prompt_pin",
|
|
301
|
+
"model_pin",
|
|
302
|
+
"tool_pin",
|
|
303
|
+
"data_pin"
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"required": ["control_kind"]
|
|
308
|
+
},
|
|
309
|
+
"then": {
|
|
310
|
+
"properties": {
|
|
311
|
+
"configuration": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"properties": {
|
|
314
|
+
"version_pins": { "type": "array", "minItems": 1 }
|
|
315
|
+
},
|
|
316
|
+
"required": ["version_pins"]
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"$defs": {
|
|
323
|
+
"identity": {
|
|
324
|
+
"type": "string",
|
|
325
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$"
|
|
326
|
+
},
|
|
327
|
+
"digest": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"pattern": "^(sha256|blake3):[a-f0-9]{64}$"
|
|
330
|
+
},
|
|
331
|
+
"raw_digest": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
334
|
+
},
|
|
335
|
+
"immutable_version": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"pattern": "^(v?[0-9]+[.][0-9]+[.][0-9]+([-+][0-9A-Za-z.-]+)?|[a-f0-9]{40}|(sha256|blake3):[a-f0-9]{64})$"
|
|
338
|
+
},
|
|
339
|
+
"clock": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"required": ["applicability", "status"],
|
|
342
|
+
"properties": {
|
|
343
|
+
"applicability": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"enum": ["operational_with_clock", "not_applicable"]
|
|
346
|
+
},
|
|
347
|
+
"started_at": { "type": "string", "format": "date-time" },
|
|
348
|
+
"deadline_at": { "type": "string", "format": "date-time" },
|
|
349
|
+
"completed_at": { "type": "string", "format": "date-time" },
|
|
350
|
+
"status": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"enum": ["not_applicable", "open", "met", "missed"]
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"allOf": [
|
|
356
|
+
{
|
|
357
|
+
"if": {
|
|
358
|
+
"type": "object",
|
|
359
|
+
"properties": {
|
|
360
|
+
"applicability": { "const": "operational_with_clock" }
|
|
361
|
+
},
|
|
362
|
+
"required": ["applicability"]
|
|
363
|
+
},
|
|
364
|
+
"then": {
|
|
365
|
+
"properties": {
|
|
366
|
+
"started_at": { "type": "string", "format": "date-time" },
|
|
367
|
+
"deadline_at": { "type": "string", "format": "date-time" },
|
|
368
|
+
"status": { "enum": ["open", "met", "missed"] }
|
|
369
|
+
},
|
|
370
|
+
"required": ["started_at", "deadline_at"]
|
|
371
|
+
},
|
|
372
|
+
"else": {
|
|
373
|
+
"properties": { "status": { "const": "not_applicable" } }
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"additionalProperties": false
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"additionalProperties": false
|
|
381
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-ix.github.io/quoin/schemas/proof-attestation-v1.schema.json",
|
|
4
|
+
"title": "ProofAttestationV1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"record_type",
|
|
9
|
+
"attestation_id",
|
|
10
|
+
"digest",
|
|
11
|
+
"record_digest",
|
|
12
|
+
"candidate_revision",
|
|
13
|
+
"proof_id",
|
|
14
|
+
"command",
|
|
15
|
+
"tool",
|
|
16
|
+
"environment",
|
|
17
|
+
"observed_at",
|
|
18
|
+
"result",
|
|
19
|
+
"retained_output"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"schema_version": { "const": 1 },
|
|
23
|
+
"record_type": { "const": "proof_attestation" },
|
|
24
|
+
"attestation_id": { "$ref": "#/$defs/identity" },
|
|
25
|
+
"digest": { "$ref": "#/$defs/digest" },
|
|
26
|
+
"record_digest": { "$ref": "#/$defs/digest" },
|
|
27
|
+
"candidate_revision": { "type": "string", "minLength": 1 },
|
|
28
|
+
"proof_id": { "$ref": "#/$defs/identity" },
|
|
29
|
+
"command": { "$ref": "#/$defs/command" },
|
|
30
|
+
"tool": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": ["identity", "version", "configuration_digest"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"identity": { "type": "string", "minLength": 1 },
|
|
35
|
+
"version": { "$ref": "#/$defs/immutable_version" },
|
|
36
|
+
"configuration_digest": { "$ref": "#/$defs/digest" }
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
"environment": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"minProperties": 1,
|
|
43
|
+
"additionalProperties": {
|
|
44
|
+
"anyOf": [
|
|
45
|
+
{ "type": "string" },
|
|
46
|
+
{ "type": "number" },
|
|
47
|
+
{ "type": "boolean" },
|
|
48
|
+
{ "type": "null" }
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"observed_at": { "type": "string", "format": "date-time" },
|
|
53
|
+
"result": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": ["passed", "failed", "unavailable", "not_computed"]
|
|
56
|
+
},
|
|
57
|
+
"retained_output": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["media_type", "digest", "size_bytes"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"media_type": { "type": "string", "minLength": 1 },
|
|
62
|
+
"digest": { "$ref": "#/$defs/digest" },
|
|
63
|
+
"size_bytes": { "type": "integer", "minimum": 0 }
|
|
64
|
+
},
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"$defs": {
|
|
69
|
+
"identity": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$"
|
|
72
|
+
},
|
|
73
|
+
"digest": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
76
|
+
},
|
|
77
|
+
"immutable_version": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"pattern": "^(v?[0-9]+[.][0-9]+[.][0-9]+([-+][0-9A-Za-z.-]+)?|[a-f0-9]{40}|[a-f0-9]{64})$"
|
|
80
|
+
},
|
|
81
|
+
"command": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": ["argv", "working_directory"],
|
|
84
|
+
"properties": {
|
|
85
|
+
"argv": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 1,
|
|
88
|
+
"items": { "type": "string" }
|
|
89
|
+
},
|
|
90
|
+
"working_directory": { "type": "string", "minLength": 1 }
|
|
91
|
+
},
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-ix.github.io/quoin/schemas/verification-receipt-v1.schema.json",
|
|
4
|
+
"title": "VerificationReceiptV1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"record_type",
|
|
9
|
+
"digest",
|
|
10
|
+
"record_digest",
|
|
11
|
+
"candidate_revision",
|
|
12
|
+
"decision_event",
|
|
13
|
+
"parent_digests",
|
|
14
|
+
"checks",
|
|
15
|
+
"proofs",
|
|
16
|
+
"unknowns",
|
|
17
|
+
"outcome",
|
|
18
|
+
"reasons"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schema_version": { "const": 1 },
|
|
22
|
+
"record_type": { "const": "verification_receipt" },
|
|
23
|
+
"digest": { "$ref": "#/$defs/digest" },
|
|
24
|
+
"record_digest": { "$ref": "#/$defs/digest" },
|
|
25
|
+
"candidate_revision": { "type": "string", "minLength": 1 },
|
|
26
|
+
"decision_event": {
|
|
27
|
+
"anyOf": [{ "$ref": "#/$defs/decision_event" }, { "type": "null" }]
|
|
28
|
+
},
|
|
29
|
+
"parent_digests": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": { "$ref": "#/$defs/digest" }
|
|
32
|
+
},
|
|
33
|
+
"checks": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": ["record", "lineage", "review", "impact"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"record": { "$ref": "#/$defs/check" },
|
|
38
|
+
"lineage": { "$ref": "#/$defs/check" },
|
|
39
|
+
"review": { "$ref": "#/$defs/check" },
|
|
40
|
+
"impact": { "$ref": "#/$defs/check" }
|
|
41
|
+
},
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
},
|
|
44
|
+
"proofs": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": { "$ref": "#/$defs/proof_receipt" }
|
|
47
|
+
},
|
|
48
|
+
"unknowns": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": ["id", "disposition"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"id": { "$ref": "#/$defs/identity" },
|
|
55
|
+
"disposition": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"enum": ["open", "accepted", "deferred", "resolved"]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"outcome": { "$ref": "#/$defs/outcome" },
|
|
64
|
+
"reasons": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": { "$ref": "#/$defs/reason" }
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"$defs": {
|
|
70
|
+
"identity": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$"
|
|
73
|
+
},
|
|
74
|
+
"digest": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
77
|
+
},
|
|
78
|
+
"outcome": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": ["valid", "invalid", "incomplete"]
|
|
81
|
+
},
|
|
82
|
+
"reason": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": [
|
|
85
|
+
"schema_invalid",
|
|
86
|
+
"record_digest_mismatch",
|
|
87
|
+
"parent_missing",
|
|
88
|
+
"parent_invalid",
|
|
89
|
+
"parent_mismatch",
|
|
90
|
+
"revision_gap",
|
|
91
|
+
"impact_incomplete",
|
|
92
|
+
"impact_truncated",
|
|
93
|
+
"unresolved_unknown",
|
|
94
|
+
"decision_missing",
|
|
95
|
+
"event_chain_missing",
|
|
96
|
+
"event_chain_invalid",
|
|
97
|
+
"decision_mismatch",
|
|
98
|
+
"review_rejected",
|
|
99
|
+
"review_revision_requested",
|
|
100
|
+
"attestation_missing",
|
|
101
|
+
"attestation_schema_invalid",
|
|
102
|
+
"attestation_digest_mismatch",
|
|
103
|
+
"output_missing",
|
|
104
|
+
"output_digest_mismatch",
|
|
105
|
+
"record_binding_mismatch",
|
|
106
|
+
"candidate_revision_mismatch",
|
|
107
|
+
"proof_id_mismatch",
|
|
108
|
+
"command_mismatch",
|
|
109
|
+
"tool_identity_mismatch",
|
|
110
|
+
"configuration_mismatch",
|
|
111
|
+
"result_failed",
|
|
112
|
+
"result_unavailable",
|
|
113
|
+
"result_not_computed",
|
|
114
|
+
"evidence_stale",
|
|
115
|
+
"evidence_suspect",
|
|
116
|
+
"evidence_vacuous",
|
|
117
|
+
"evidence_unrelated",
|
|
118
|
+
"audit_finding",
|
|
119
|
+
"audit_not_evaluated"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"check": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"required": ["outcome", "reasons"],
|
|
125
|
+
"properties": {
|
|
126
|
+
"outcome": { "$ref": "#/$defs/outcome" },
|
|
127
|
+
"reasons": {
|
|
128
|
+
"type": "array",
|
|
129
|
+
"items": { "$ref": "#/$defs/reason" }
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"additionalProperties": false
|
|
133
|
+
},
|
|
134
|
+
"decision_event": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"required": [
|
|
137
|
+
"run_id",
|
|
138
|
+
"event_id",
|
|
139
|
+
"event_hash",
|
|
140
|
+
"chain_tail_hash",
|
|
141
|
+
"recorded_actor",
|
|
142
|
+
"decision"
|
|
143
|
+
],
|
|
144
|
+
"properties": {
|
|
145
|
+
"run_id": { "$ref": "#/$defs/identity" },
|
|
146
|
+
"event_id": { "$ref": "#/$defs/identity" },
|
|
147
|
+
"event_hash": { "$ref": "#/$defs/digest" },
|
|
148
|
+
"chain_tail_hash": { "$ref": "#/$defs/digest" },
|
|
149
|
+
"recorded_actor": { "type": "string", "minLength": 1 },
|
|
150
|
+
"decision": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"enum": ["approved", "rejected", "revise"]
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"additionalProperties": false
|
|
156
|
+
},
|
|
157
|
+
"audit_finding": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"required": ["obligation_id", "kind"],
|
|
160
|
+
"properties": {
|
|
161
|
+
"obligation_id": { "$ref": "#/$defs/identity" },
|
|
162
|
+
"kind": { "type": "string", "minLength": 1 }
|
|
163
|
+
},
|
|
164
|
+
"additionalProperties": false
|
|
165
|
+
},
|
|
166
|
+
"proof_receipt": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"required": [
|
|
169
|
+
"proof_id",
|
|
170
|
+
"obligation_ids",
|
|
171
|
+
"attestation_digest",
|
|
172
|
+
"retained_output_digest",
|
|
173
|
+
"audit_report_digest",
|
|
174
|
+
"audit_findings",
|
|
175
|
+
"outcome",
|
|
176
|
+
"reasons"
|
|
177
|
+
],
|
|
178
|
+
"properties": {
|
|
179
|
+
"proof_id": { "$ref": "#/$defs/identity" },
|
|
180
|
+
"obligation_ids": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"minItems": 1,
|
|
183
|
+
"items": { "$ref": "#/$defs/identity" }
|
|
184
|
+
},
|
|
185
|
+
"attestation_digest": {
|
|
186
|
+
"anyOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }]
|
|
187
|
+
},
|
|
188
|
+
"retained_output_digest": {
|
|
189
|
+
"anyOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }]
|
|
190
|
+
},
|
|
191
|
+
"audit_report_digest": {
|
|
192
|
+
"anyOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }]
|
|
193
|
+
},
|
|
194
|
+
"audit_findings": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": { "$ref": "#/$defs/audit_finding" }
|
|
197
|
+
},
|
|
198
|
+
"outcome": { "$ref": "#/$defs/outcome" },
|
|
199
|
+
"reasons": {
|
|
200
|
+
"type": "array",
|
|
201
|
+
"items": { "$ref": "#/$defs/reason" }
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"additionalProperties": false
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"additionalProperties": false
|
|
208
|
+
}
|