@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.
Files changed (244) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/default-modules.yaml +18 -2
  4. package/dist/{advisor-BiKhR9Yp.js → advisor-B0rESCx1.js} +1 -1
  5. package/dist/auditor/audit.d.ts +23 -18
  6. package/dist/auditor/audit.d.ts.map +1 -1
  7. package/dist/auditor/index.d.ts +2 -1
  8. package/dist/auditor/index.d.ts.map +1 -1
  9. package/dist/{auditor-ww0MC62a.js → auditor-Dd3i9Aqx.js} +82 -65
  10. package/dist/{base-W7vrLi5E.js → base-gAClyCNd.js} +1 -1
  11. package/dist/change-assurance/attestations.d.ts +7 -0
  12. package/dist/change-assurance/attestations.d.ts.map +1 -0
  13. package/dist/change-assurance/index.d.ts +14 -0
  14. package/dist/change-assurance/index.d.ts.map +1 -0
  15. package/dist/change-assurance/integrity.d.ts +11 -0
  16. package/dist/change-assurance/integrity.d.ts.map +1 -0
  17. package/dist/change-assurance/records.d.ts +22 -0
  18. package/dist/change-assurance/records.d.ts.map +1 -0
  19. package/dist/change-assurance/schema-assets.d.ts +8 -0
  20. package/dist/change-assurance/schema-assets.d.ts.map +1 -0
  21. package/dist/change-assurance/store.d.ts +18 -0
  22. package/dist/change-assurance/store.d.ts.map +1 -0
  23. package/dist/change-assurance/types.d.ts +180 -0
  24. package/dist/change-assurance/types.d.ts.map +1 -0
  25. package/dist/change-assurance/verify.d.ts +4 -0
  26. package/dist/change-assurance/verify.d.ts.map +1 -0
  27. package/dist/change-assurance-CyKLPeKa.js +1236 -0
  28. package/dist/cli.js +1 -1
  29. package/dist/commands/advise.js +27 -26
  30. package/dist/commands/assurance.d.ts.map +1 -1
  31. package/dist/commands/assurance.js +84 -61
  32. package/dist/commands/catalog/list.js +2 -2
  33. package/dist/commands/catalog/methods.js +3 -3
  34. package/dist/commands/catalog/show.js +2 -2
  35. package/dist/commands/catalog/validate.js +2 -2
  36. package/dist/commands/change-assurance/common.d.ts +37 -0
  37. package/dist/commands/change-assurance/common.d.ts.map +1 -0
  38. package/dist/commands/change-assurance/index.d.ts +8 -0
  39. package/dist/commands/change-assurance/index.d.ts.map +1 -0
  40. package/dist/commands/change-assurance/index.js +12 -0
  41. package/dist/commands/change-assurance/intake.d.ts +15 -0
  42. package/dist/commands/change-assurance/intake.d.ts.map +1 -0
  43. package/dist/commands/change-assurance/intake.js +53 -0
  44. package/dist/commands/change-assurance/receipt.d.ts +21 -0
  45. package/dist/commands/change-assurance/receipt.d.ts.map +1 -0
  46. package/dist/commands/change-assurance/receipt.js +99 -0
  47. package/dist/commands/change-assurance/recover.d.ts +13 -0
  48. package/dist/commands/change-assurance/recover.d.ts.map +1 -0
  49. package/dist/commands/change-assurance/recover.js +29 -0
  50. package/dist/commands/change-assurance/schema.d.ts +13 -0
  51. package/dist/commands/change-assurance/schema.d.ts.map +1 -0
  52. package/dist/commands/change-assurance/schema.js +40 -0
  53. package/dist/commands/change-assurance/seal-attestation.d.ts +15 -0
  54. package/dist/commands/change-assurance/seal-attestation.d.ts.map +1 -0
  55. package/dist/commands/change-assurance/seal-attestation.js +58 -0
  56. package/dist/commands/change-assurance/seal-record.d.ts +14 -0
  57. package/dist/commands/change-assurance/seal-record.d.ts.map +1 -0
  58. package/dist/commands/change-assurance/seal-record.js +53 -0
  59. package/dist/commands/change-assurance/verify-receipt.d.ts +13 -0
  60. package/dist/commands/change-assurance/verify-receipt.d.ts.map +1 -0
  61. package/dist/commands/change-assurance/verify-receipt.js +41 -0
  62. package/dist/commands/completeness.js +2 -2
  63. package/dist/commands/config/doctor.d.ts.map +1 -1
  64. package/dist/commands/config/doctor.js +3 -3
  65. package/dist/commands/config/edit.d.ts.map +1 -1
  66. package/dist/commands/config/edit.js +3 -3
  67. package/dist/commands/config/get.js +1 -1
  68. package/dist/commands/config/set.js +1 -1
  69. package/dist/commands/evidence/affirm.js +17 -16
  70. package/dist/commands/evidence/audit.d.ts.map +1 -1
  71. package/dist/commands/evidence/audit.js +55 -43
  72. package/dist/commands/evidence/baseline.d.ts.map +1 -1
  73. package/dist/commands/evidence/baseline.js +50 -40
  74. package/dist/commands/evidence/gc.js +3 -2
  75. package/dist/commands/evidence/index.js +1 -1
  76. package/dist/commands/evidence/inspect-mocks.d.ts +16 -0
  77. package/dist/commands/evidence/inspect-mocks.d.ts.map +1 -0
  78. package/dist/commands/evidence/inspect-mocks.js +49 -0
  79. package/dist/commands/evidence/record.d.ts +1 -0
  80. package/dist/commands/evidence/record.d.ts.map +1 -1
  81. package/dist/commands/evidence/record.js +48 -33
  82. package/dist/commands/graph/change-impact.d.ts +16 -0
  83. package/dist/commands/graph/change-impact.d.ts.map +1 -0
  84. package/dist/commands/graph/change-impact.js +29 -0
  85. package/dist/commands/graph/churn.d.ts +14 -0
  86. package/dist/commands/graph/churn.d.ts.map +1 -0
  87. package/dist/commands/graph/churn.js +15 -0
  88. package/dist/commands/graph/common.d.ts +16 -0
  89. package/dist/commands/graph/common.d.ts.map +1 -0
  90. package/dist/commands/graph/fan-out.d.ts +14 -0
  91. package/dist/commands/graph/fan-out.d.ts.map +1 -0
  92. package/dist/commands/graph/fan-out.js +15 -0
  93. package/dist/commands/graph/index.d.ts +8 -0
  94. package/dist/commands/graph/index.d.ts.map +1 -0
  95. package/dist/commands/graph/index.js +12 -0
  96. package/dist/commands/matrix.js +1 -1
  97. package/dist/commands/measurement/index.d.ts +7 -0
  98. package/dist/commands/measurement/index.d.ts.map +1 -0
  99. package/dist/commands/measurement/index.js +11 -0
  100. package/dist/commands/measurement/intervention.d.ts +11 -0
  101. package/dist/commands/measurement/intervention.d.ts.map +1 -0
  102. package/dist/commands/measurement/intervention.js +31 -0
  103. package/dist/commands/measurement/operational-release.d.ts +11 -0
  104. package/dist/commands/measurement/operational-release.d.ts.map +1 -0
  105. package/dist/commands/measurement/operational-release.js +31 -0
  106. package/dist/commands/measurement/record.d.ts +10 -0
  107. package/dist/commands/measurement/record.d.ts.map +1 -0
  108. package/dist/commands/measurement/record.js +36 -0
  109. package/dist/commands/module/ensure-defaults.js +3 -3
  110. package/dist/commands/module/install.js +2 -2
  111. package/dist/commands/module/list.js +2 -2
  112. package/dist/commands/module/remove.js +2 -2
  113. package/dist/commands/report.d.ts +19 -0
  114. package/dist/commands/report.d.ts.map +1 -0
  115. package/dist/commands/report.js +96 -0
  116. package/dist/commands/review.js +1 -1
  117. package/dist/commands/to-plan.js +1 -1
  118. package/dist/commands/update.js +2 -2
  119. package/dist/commands/validate.d.ts +13 -0
  120. package/dist/commands/validate.d.ts.map +1 -0
  121. package/dist/commands/validate.js +123 -0
  122. package/dist/commands/write.js +3 -3
  123. package/dist/common-B1ZJ8CSO.js +36 -0
  124. package/dist/common-DTrmnvL-.js +35 -0
  125. package/dist/{completeness-BQDxME0a.js → completeness-BzBuNq6w.js} +1 -1
  126. package/dist/evidence/adapters/contract-conformance.d.ts +16 -0
  127. package/dist/evidence/adapters/contract-conformance.d.ts.map +1 -0
  128. package/dist/evidence/adapters/differential-report.d.ts +18 -0
  129. package/dist/evidence/adapters/differential-report.d.ts.map +1 -0
  130. package/dist/evidence/adapters/registry.d.ts.map +1 -1
  131. package/dist/evidence/adapters/types.d.ts +31 -0
  132. package/dist/evidence/adapters/types.d.ts.map +1 -1
  133. package/dist/evidence/index.d.ts +7 -3
  134. package/dist/evidence/index.d.ts.map +1 -1
  135. package/dist/evidence/mock-inspection.d.ts +16 -0
  136. package/dist/evidence/mock-inspection.d.ts.map +1 -0
  137. package/dist/evidence/store.d.ts +11 -1
  138. package/dist/evidence/store.d.ts.map +1 -1
  139. package/dist/evidence/types.d.ts +31 -0
  140. package/dist/evidence/types.d.ts.map +1 -1
  141. package/dist/evidence-OyqpqHLS.js +614 -0
  142. package/dist/{flow-command-C_dUJNm-.js → flow-command-CCRTE5Oe.js} +7 -7
  143. package/dist/graph-analysis/analysis.d.ts +106 -0
  144. package/dist/graph-analysis/analysis.d.ts.map +1 -0
  145. package/dist/graph-analysis/index.d.ts +6 -0
  146. package/dist/graph-analysis/index.d.ts.map +1 -0
  147. package/dist/graph-analysis/input.d.ts +33 -0
  148. package/dist/graph-analysis/input.d.ts.map +1 -0
  149. package/dist/graph-analysis/load.d.ts +21 -0
  150. package/dist/graph-analysis/load.d.ts.map +1 -0
  151. package/dist/graph-analysis/render.d.ts +4 -0
  152. package/dist/graph-analysis/render.d.ts.map +1 -0
  153. package/dist/graph-analysis-IWaoJJSN.js +657 -0
  154. package/dist/index.d.ts +2 -0
  155. package/dist/index.d.ts.map +1 -1
  156. package/dist/index.js +11 -8
  157. package/dist/measurement/agent-eval-intervention.d.ts +6 -0
  158. package/dist/measurement/agent-eval-intervention.d.ts.map +1 -0
  159. package/dist/measurement/atomic-file.d.ts +5 -0
  160. package/dist/measurement/atomic-file.d.ts.map +1 -0
  161. package/dist/measurement/compare.d.ts +4 -0
  162. package/dist/measurement/compare.d.ts.map +1 -0
  163. package/dist/measurement/date-time.d.ts +3 -0
  164. package/dist/measurement/date-time.d.ts.map +1 -0
  165. package/dist/measurement/github-release-operational.d.ts +7 -0
  166. package/dist/measurement/github-release-operational.d.ts.map +1 -0
  167. package/dist/measurement/graph-adapters.d.ts +304 -0
  168. package/dist/measurement/graph-adapters.d.ts.map +1 -0
  169. package/dist/measurement/graph-portfolio-load.d.ts +3 -0
  170. package/dist/measurement/graph-portfolio-load.d.ts.map +1 -0
  171. package/dist/measurement/graph-portfolio.d.ts +158 -0
  172. package/dist/measurement/graph-portfolio.d.ts.map +1 -0
  173. package/dist/measurement/index.d.ts +22 -0
  174. package/dist/measurement/index.d.ts.map +1 -0
  175. package/dist/measurement/intervention-report.d.ts +24 -0
  176. package/dist/measurement/intervention-report.d.ts.map +1 -0
  177. package/dist/measurement/intervention-schema.d.ts +144 -0
  178. package/dist/measurement/intervention-schema.d.ts.map +1 -0
  179. package/dist/measurement/intervention-types.d.ts +105 -0
  180. package/dist/measurement/intervention-types.d.ts.map +1 -0
  181. package/dist/measurement/intervention.d.ts +16 -0
  182. package/dist/measurement/intervention.d.ts.map +1 -0
  183. package/dist/measurement/operational-report.d.ts +17 -0
  184. package/dist/measurement/operational-report.d.ts.map +1 -0
  185. package/dist/measurement/operational-schema.d.ts +461 -0
  186. package/dist/measurement/operational-schema.d.ts.map +1 -0
  187. package/dist/measurement/operational-types.d.ts +121 -0
  188. package/dist/measurement/operational-types.d.ts.map +1 -0
  189. package/dist/measurement/operational.d.ts +13 -0
  190. package/dist/measurement/operational.d.ts.map +1 -0
  191. package/dist/measurement/plans.d.ts +6 -0
  192. package/dist/measurement/plans.d.ts.map +1 -0
  193. package/dist/measurement/portfolio.d.ts +54 -0
  194. package/dist/measurement/portfolio.d.ts.map +1 -0
  195. package/dist/measurement/profiles.d.ts +9 -0
  196. package/dist/measurement/profiles.d.ts.map +1 -0
  197. package/dist/measurement/report.d.ts +48 -0
  198. package/dist/measurement/report.d.ts.map +1 -0
  199. package/dist/measurement/schemas/operational-evidence-v1.schema.json.d.ts +384 -0
  200. package/dist/measurement/store.d.ts +14 -0
  201. package/dist/measurement/store.d.ts.map +1 -0
  202. package/dist/measurement/types.d.ts +85 -0
  203. package/dist/measurement/types.d.ts.map +1 -0
  204. package/dist/measurement/validate.d.ts +9 -0
  205. package/dist/measurement/validate.d.ts.map +1 -0
  206. package/dist/measurement-j8sDSqx5.js +2980 -0
  207. package/dist/{modules-Cn9Htfp0.js → modules-DDQkKC4l.js} +2 -2
  208. package/dist/{plugins-Byi1bWLD.js → plugins-CHpYhpEI.js} +1 -1
  209. package/dist/quire/assurance.d.ts +109 -0
  210. package/dist/quire/assurance.d.ts.map +1 -0
  211. package/dist/quire/contract.d.ts +12 -12
  212. package/dist/quire/contract.d.ts.map +1 -1
  213. package/dist/quire/exec.d.ts +10 -0
  214. package/dist/quire/exec.d.ts.map +1 -1
  215. package/dist/quire/index.d.ts +4 -3
  216. package/dist/quire/index.d.ts.map +1 -1
  217. package/dist/quire/types.d.ts +119 -1
  218. package/dist/quire/types.d.ts.map +1 -1
  219. package/dist/quire/validate.d.ts +5 -0
  220. package/dist/quire/validate.d.ts.map +1 -1
  221. package/dist/{quire-UzoK3Azf.js → quire-BsVj1xIR.js} +533 -499
  222. package/dist/schema-assets-HZWo_iFN.js +233 -0
  223. package/dist/schemas/assurance-v1.schema.json +225 -0
  224. package/dist/schemas/change-assurance-record-v1.schema.json +234 -0
  225. package/dist/schemas/coverage-v1.schema.json +919 -105
  226. package/dist/schemas/operational-evidence-v1.schema.json +381 -0
  227. package/dist/schemas/proof-attestation-v1.schema.json +96 -0
  228. package/dist/schemas/properties-v1.schema.json +25 -0
  229. package/dist/schemas/verification-receipt-v1.schema.json +208 -0
  230. package/dist/validators/gates.d.ts +18 -0
  231. package/dist/validators/gates.d.ts.map +1 -0
  232. package/dist/validators/index.d.ts +2 -0
  233. package/dist/validators/index.d.ts.map +1 -0
  234. package/dist/{version-BMXhyIie.js → version-CMxMIh5g.js} +1 -1
  235. package/dist/{write-BDxILTLC.js → write-CGTI0dRO.js} +1 -1
  236. package/package.json +26 -16
  237. package/skills/assurance-status-report/SKILL.md +135 -0
  238. package/skills/assurance-status-report/references/report-contract.md +110 -0
  239. package/skills/gap-analysis/references/step-4-underspecified-code.md +36 -7
  240. package/skills/gap-analysis/references/step-5-semantic-review.md +2 -2
  241. package/skills/gap-analysis/references/step-6-specreview-artifact.md +6 -5
  242. package/skills/spec-architecture-evaluation/SKILL.md +30 -0
  243. package/skills/spec-fuzz/SKILL.md +7 -6
  244. package/dist/evidence-BA5vyZJk.js +0 -603
@@ -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
+ }
@@ -10,9 +10,34 @@
10
10
  "documents": {
11
11
  "type": "array",
12
12
  "items": { "$ref": "#/$defs/Document" }
13
+ },
14
+ "engine": {
15
+ "$ref": "#/$defs/EngineProvenance"
13
16
  }
14
17
  },
15
18
  "$defs": {
19
+ "EngineProvenance": {
20
+ "type": "object",
21
+ "additionalProperties": false,
22
+ "required": ["cli", "engine", "capabilities"],
23
+ "description": "Which instrument produced this payload (agent-ix/quire-cli#68, CR-104). Identical in shape and meaning to the definition in `coverage-v1.schema.json`; both are hand-authored per FR-055-CON-1, so the duplication is two artifacts stating one contract rather than one deriving from the other. NOT the contract version — that stays in the `$id` and the filename (FR-055-CON-2). This is provenance of the MEASUREMENT.",
24
+ "properties": {
25
+ "cli": {
26
+ "type": "string",
27
+ "description": "The `quire-cli` crate version."
28
+ },
29
+ "engine": {
30
+ "type": "string",
31
+ "description": "The resolved `quire-rs` version actually linked, read from the `?tag=` / `?rev=` / `?branch=` locator of the consuming crate's lockfile entry, or the commit sha where the locator is absent — not that entry's `version` field, which for a git dependency is the dependency's own stale manifest constant. A `-<n>-g<sha>` suffix, a bare rev, or a branch name is carried VERBATIM and never rounded to the nearest tag."
32
+ },
33
+ "capabilities": {
34
+ "type": "array",
35
+ "uniqueItems": true,
36
+ "description": "What this build can emit, as tokens. Deliberately open, and deliberately not version arithmetic.",
37
+ "items": { "type": "string" }
38
+ }
39
+ }
40
+ },
16
41
  "Document": {
17
42
  "type": "object",
18
43
  "additionalProperties": false,