@sentropic/h2a 0.98.6 → 0.98.7-rc.10

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 (253) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +2 -1
  3. package/dist/bin-routing.d.ts.map +1 -1
  4. package/dist/bin-routing.js +23 -3
  5. package/dist/bin-routing.js.map +1 -1
  6. package/dist/bin.js +51 -4
  7. package/dist/bin.js.map +1 -1
  8. package/dist/cli-command-map.d.ts.map +1 -1
  9. package/dist/cli-command-map.js +1 -0
  10. package/dist/cli-command-map.js.map +1 -1
  11. package/dist/cli-contract.js +2 -2
  12. package/dist/cli-contract.js.map +1 -1
  13. package/dist/cli.d.ts.map +1 -1
  14. package/dist/cli.js +270 -45
  15. package/dist/cli.js.map +1 -1
  16. package/dist/focus-build.d.ts +10 -0
  17. package/dist/focus-build.d.ts.map +1 -0
  18. package/dist/focus-build.js +202 -0
  19. package/dist/focus-build.js.map +1 -0
  20. package/dist/focus-feedback.d.ts +30 -0
  21. package/dist/focus-feedback.d.ts.map +1 -0
  22. package/dist/focus-feedback.js +133 -0
  23. package/dist/focus-feedback.js.map +1 -0
  24. package/dist/hosts/agy.js +1 -1
  25. package/dist/hosts/agy.js.map +1 -1
  26. package/dist/hosts/installation-doctor.d.ts +1 -0
  27. package/dist/hosts/installation-doctor.d.ts.map +1 -1
  28. package/dist/hosts/installation-doctor.js +1 -1
  29. package/dist/hosts/installation-doctor.js.map +1 -1
  30. package/dist/hosts/muse.d.ts.map +1 -1
  31. package/dist/hosts/muse.js +2 -4
  32. package/dist/hosts/muse.js.map +1 -1
  33. package/dist/hosts/native-artifacts.d.ts +33 -0
  34. package/dist/hosts/native-artifacts.d.ts.map +1 -0
  35. package/dist/hosts/native-artifacts.js +104 -0
  36. package/dist/hosts/native-artifacts.js.map +1 -0
  37. package/dist/hosts/native-catalog.d.ts +19 -0
  38. package/dist/hosts/native-catalog.d.ts.map +1 -0
  39. package/dist/hosts/native-catalog.js +14 -0
  40. package/dist/hosts/native-catalog.js.map +1 -0
  41. package/dist/hosts/native-convergence.d.ts +169 -0
  42. package/dist/hosts/native-convergence.d.ts.map +1 -0
  43. package/dist/hosts/native-convergence.js +152 -0
  44. package/dist/hosts/native-convergence.js.map +1 -0
  45. package/dist/hosts/native-files.d.ts +46 -0
  46. package/dist/hosts/native-files.d.ts.map +1 -0
  47. package/dist/hosts/native-files.js +136 -0
  48. package/dist/hosts/native-files.js.map +1 -0
  49. package/dist/hosts/native-inspection.d.ts +31 -0
  50. package/dist/hosts/native-inspection.d.ts.map +1 -0
  51. package/dist/hosts/native-inspection.js +79 -0
  52. package/dist/hosts/native-inspection.js.map +1 -0
  53. package/dist/hosts/native-paths.d.ts +11 -0
  54. package/dist/hosts/native-paths.d.ts.map +1 -0
  55. package/dist/hosts/native-paths.js +21 -0
  56. package/dist/hosts/native-paths.js.map +1 -0
  57. package/dist/hosts/native-proof.d.ts +32 -0
  58. package/dist/hosts/native-proof.d.ts.map +1 -0
  59. package/dist/hosts/native-proof.js +31 -0
  60. package/dist/hosts/native-proof.js.map +1 -0
  61. package/dist/hosts/native-questions.d.ts +2 -0
  62. package/dist/hosts/native-questions.d.ts.map +1 -0
  63. package/dist/hosts/native-questions.js +22 -0
  64. package/dist/hosts/native-questions.js.map +1 -0
  65. package/dist/hosts/native-runtime-record.d.ts +3 -0
  66. package/dist/hosts/native-runtime-record.d.ts.map +1 -0
  67. package/dist/hosts/native-runtime-record.js +60 -0
  68. package/dist/hosts/native-runtime-record.js.map +1 -0
  69. package/dist/hosts/native-skills.d.ts +24 -0
  70. package/dist/hosts/native-skills.d.ts.map +1 -0
  71. package/dist/hosts/native-skills.js +56 -0
  72. package/dist/hosts/native-skills.js.map +1 -0
  73. package/dist/hosts/native-toml.d.ts +18 -0
  74. package/dist/hosts/native-toml.d.ts.map +1 -0
  75. package/dist/hosts/native-toml.js +93 -0
  76. package/dist/hosts/native-toml.js.map +1 -0
  77. package/dist/hosts/operator-notices.d.ts +3 -0
  78. package/dist/hosts/operator-notices.d.ts.map +1 -0
  79. package/dist/hosts/operator-notices.js +31 -0
  80. package/dist/hosts/operator-notices.js.map +1 -0
  81. package/dist/hosts/plugin.d.ts +30 -0
  82. package/dist/hosts/plugin.d.ts.map +1 -1
  83. package/dist/hosts/plugin.js +56 -4
  84. package/dist/hosts/plugin.js.map +1 -1
  85. package/dist/hosts/upgrade-equipment.d.ts +42 -0
  86. package/dist/hosts/upgrade-equipment.d.ts.map +1 -0
  87. package/dist/hosts/upgrade-equipment.js +26 -0
  88. package/dist/hosts/upgrade-equipment.js.map +1 -0
  89. package/dist/hosts/vibe-discovery.d.ts +12 -0
  90. package/dist/hosts/vibe-discovery.d.ts.map +1 -0
  91. package/dist/hosts/vibe-discovery.js +33 -0
  92. package/dist/hosts/vibe-discovery.js.map +1 -0
  93. package/dist/hosts/vibe-equipment.d.ts +73 -0
  94. package/dist/hosts/vibe-equipment.d.ts.map +1 -0
  95. package/dist/hosts/vibe-equipment.js +179 -0
  96. package/dist/hosts/vibe-equipment.js.map +1 -0
  97. package/dist/hosts/vibe-mcp.d.ts +32 -0
  98. package/dist/hosts/vibe-mcp.d.ts.map +1 -0
  99. package/dist/hosts/vibe-mcp.js +210 -0
  100. package/dist/hosts/vibe-mcp.js.map +1 -0
  101. package/dist/hosts/vibe.d.ts +12 -3
  102. package/dist/hosts/vibe.d.ts.map +1 -1
  103. package/dist/hosts/vibe.js +15 -7
  104. package/dist/hosts/vibe.js.map +1 -1
  105. package/dist/identity-operator-break.d.ts +31 -0
  106. package/dist/identity-operator-break.d.ts.map +1 -0
  107. package/dist/identity-operator-break.js +77 -0
  108. package/dist/identity-operator-break.js.map +1 -0
  109. package/dist/index.d.ts +1 -1
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +1 -1
  112. package/dist/index.js.map +1 -1
  113. package/dist/runtime/agy-claude.d.ts +42 -0
  114. package/dist/runtime/agy-claude.d.ts.map +1 -0
  115. package/dist/runtime/agy-claude.js +140 -0
  116. package/dist/runtime/agy-claude.js.map +1 -0
  117. package/dist/runtime/focus/edit-receipts.d.ts +22 -0
  118. package/dist/runtime/focus/edit-receipts.d.ts.map +1 -0
  119. package/dist/runtime/focus/edit-receipts.js +46 -0
  120. package/dist/runtime/focus/edit-receipts.js.map +1 -0
  121. package/dist/runtime/live/contracts.d.ts +55 -0
  122. package/dist/runtime/live/contracts.d.ts.map +1 -0
  123. package/dist/runtime/live/contracts.js +59 -0
  124. package/dist/runtime/live/contracts.js.map +1 -0
  125. package/dist/runtime/local-files/identity-fence.d.ts.map +1 -1
  126. package/dist/runtime/local-files/identity-fence.js +2 -0
  127. package/dist/runtime/local-files/identity-fence.js.map +1 -1
  128. package/dist/runtime/local-files/orphan-gc.d.ts +3 -0
  129. package/dist/runtime/local-files/orphan-gc.d.ts.map +1 -0
  130. package/dist/runtime/local-files/orphan-gc.js +69 -0
  131. package/dist/runtime/local-files/orphan-gc.js.map +1 -0
  132. package/dist/runtime/local-files/presence.d.ts +5 -2
  133. package/dist/runtime/local-files/presence.d.ts.map +1 -1
  134. package/dist/runtime/local-files/presence.js +32 -29
  135. package/dist/runtime/local-files/presence.js.map +1 -1
  136. package/dist/runtime/local-files/recipient-hints.d.ts +10 -0
  137. package/dist/runtime/local-files/recipient-hints.d.ts.map +1 -0
  138. package/dist/runtime/local-files/recipient-hints.js +156 -0
  139. package/dist/runtime/local-files/recipient-hints.js.map +1 -0
  140. package/dist/runtime/local-files/store.d.ts.map +1 -1
  141. package/dist/runtime/local-files/store.js +22 -2
  142. package/dist/runtime/local-files/store.js.map +1 -1
  143. package/dist/runtime/loop/engine/adapters.d.ts.map +1 -1
  144. package/dist/runtime/loop/engine/adapters.js +7 -1
  145. package/dist/runtime/loop/engine/adapters.js.map +1 -1
  146. package/dist/runtime/mcp/agent-launch.d.ts +3 -0
  147. package/dist/runtime/mcp/agent-launch.d.ts.map +1 -1
  148. package/dist/runtime/mcp/agent-launch.js +93 -8
  149. package/dist/runtime/mcp/agent-launch.js.map +1 -1
  150. package/dist/runtime/mcp/handlers.d.ts +1 -0
  151. package/dist/runtime/mcp/handlers.d.ts.map +1 -1
  152. package/dist/runtime/mcp/handlers.js +7 -4
  153. package/dist/runtime/mcp/handlers.js.map +1 -1
  154. package/dist/runtime/mcp/notifications.d.ts +2 -1
  155. package/dist/runtime/mcp/notifications.d.ts.map +1 -1
  156. package/dist/runtime/mcp/notifications.js +16 -2
  157. package/dist/runtime/mcp/notifications.js.map +1 -1
  158. package/dist/runtime/mcp/server.d.ts +3 -0
  159. package/dist/runtime/mcp/server.d.ts.map +1 -1
  160. package/dist/runtime/mcp/server.js +19 -6
  161. package/dist/runtime/mcp/server.js.map +1 -1
  162. package/dist/runtime/mcp/sessions.d.ts +6 -6
  163. package/dist/runtime/mcp/sessions.d.ts.map +1 -1
  164. package/dist/runtime/mcp/sessions.js +18 -6
  165. package/dist/runtime/mcp/sessions.js.map +1 -1
  166. package/dist/runtime/mcp/stdio.d.ts.map +1 -1
  167. package/dist/runtime/mcp/stdio.js +11 -0
  168. package/dist/runtime/mcp/stdio.js.map +1 -1
  169. package/dist/runtime/mcp/tools.d.ts.map +1 -1
  170. package/dist/runtime/mcp/tools.js +11 -7
  171. package/dist/runtime/mcp/tools.js.map +1 -1
  172. package/dist/runtime/send.d.ts +10 -0
  173. package/dist/runtime/send.d.ts.map +1 -1
  174. package/dist/runtime/send.js +80 -5
  175. package/dist/runtime/send.js.map +1 -1
  176. package/dist/runtime/upgrade/index.d.ts +1 -0
  177. package/dist/runtime/upgrade/index.d.ts.map +1 -1
  178. package/dist/runtime/upgrade/index.js +1 -0
  179. package/dist/runtime/upgrade/index.js.map +1 -1
  180. package/dist/vendor/engram-live/contracts.d.ts +825 -0
  181. package/dist/vendor/engram-live/contracts.js +1734 -0
  182. package/fixtures/native-host-catalog.json +1 -0
  183. package/fixtures/native-host-history.json +1261 -0
  184. package/fixtures/native-host-renderers.json +1 -0
  185. package/focus-app/client/_app/immutable/chunks/{unQroC_0.js → BXS4ok-I.js} +2 -2
  186. package/focus-app/client/_app/immutable/chunks/BXS4ok-I.js.br +0 -0
  187. package/focus-app/client/_app/immutable/chunks/BXS4ok-I.js.gz +0 -0
  188. package/focus-app/client/_app/immutable/entry/{app.75Uzo4oj.js → app.BJwKYx8S.js} +2 -2
  189. package/focus-app/client/_app/immutable/entry/app.BJwKYx8S.js.br +0 -0
  190. package/focus-app/client/_app/immutable/entry/app.BJwKYx8S.js.gz +0 -0
  191. package/focus-app/client/_app/immutable/entry/start.to_m_bSO.js +1 -0
  192. package/focus-app/client/_app/immutable/entry/start.to_m_bSO.js.br +2 -0
  193. package/focus-app/client/_app/immutable/entry/start.to_m_bSO.js.gz +0 -0
  194. package/focus-app/client/_app/immutable/nodes/{1.hqfmE-jM.js → 1.CvN150m3.js} +1 -1
  195. package/focus-app/client/_app/immutable/nodes/1.CvN150m3.js.br +3 -0
  196. package/focus-app/client/_app/immutable/nodes/1.CvN150m3.js.gz +0 -0
  197. package/focus-app/client/_app/version.json +1 -1
  198. package/focus-app/client/_app/version.json.br +0 -0
  199. package/focus-app/client/_app/version.json.gz +0 -0
  200. package/focus-app/h2a-focus.json +29 -29
  201. package/focus-app/handler.js +4 -4
  202. package/focus-app/index.js +4 -4
  203. package/focus-app/server/chunks/chunks/{internal.js-vq85iWAx.js → internal.js-BORbEOh-.js} +2 -2
  204. package/focus-app/server/chunks/chunks/{internal.js-vq85iWAx.js.map → internal.js-BORbEOh-.js.map} +1 -1
  205. package/focus-app/server/chunks/{handler-f-0S9j72.js → handler-Ccwb0eyC.js} +3 -3
  206. package/focus-app/server/chunks/{handler-f-0S9j72.js.map → handler-Ccwb0eyC.js.map} +1 -1
  207. package/focus-app/server/chunks/{index.js-DlbaFcic.js → index.js-CzPOZLjV.js} +2 -2
  208. package/focus-app/server/chunks/{index.js-DlbaFcic.js.map → index.js-CzPOZLjV.js.map} +1 -1
  209. package/focus-app/server/chunks/{manifest.js-CxrShg-z.js → manifest.js-E-BEcOes.js} +3 -3
  210. package/focus-app/server/chunks/{manifest.js-CxrShg-z.js.map → manifest.js-E-BEcOes.js.map} +1 -1
  211. package/focus-app/server/chunks/nodes/{1.js-O2SZgyXK.js → 1.js-BJ_PpMI-.js} +2 -2
  212. package/focus-app/server/chunks/nodes/{1.js-O2SZgyXK.js.map → 1.js-BJ_PpMI-.js.map} +1 -1
  213. package/focus-kit/dossier.evidence.template.json +206 -0
  214. package/focus-kit/dossier.schema.json +193 -0
  215. package/focus-kit/dossier.template.json +39 -0
  216. package/focus-kit/dossier.v2.schema.json +925 -0
  217. package/focus-kit/ecosystem.json +853 -0
  218. package/focus-kit/renderer-manifest.json +48 -0
  219. package/focus-kit/renderer.html +278 -0
  220. package/focus-kit/validator.mjs +1128 -0
  221. package/hooks/deny-manual-h2a-cli.mjs +38 -0
  222. package/hooks/hooks.json +17 -0
  223. package/hooks/vibe-post-agent.mjs +29 -0
  224. package/hooks/vibe-pre-tool.mjs +40 -0
  225. package/hooks/workspace-scope-grant.mjs +22 -0
  226. package/hooks/workspace-scope-guard.mjs +277 -0
  227. package/hooks/workspace-scope-shell.mjs +564 -0
  228. package/hooks/workspace-scope-state.mjs +71 -0
  229. package/hooks/workspace-scope.opt-in.json +17 -0
  230. package/package.json +24 -8
  231. package/scripts/qualification-budget.mjs +56 -0
  232. package/scripts/qualification-cleanup.mjs +15 -0
  233. package/scripts/qualification-oracles.mjs +44 -0
  234. package/scripts/qualification-patch.mjs +21 -0
  235. package/scripts/qualification-poll-hosts.mjs +19 -0
  236. package/scripts/qualification-probe.mjs +63 -0
  237. package/scripts/qualification-rpc.mjs +59 -0
  238. package/scripts/qualification-vibe.mjs +159 -0
  239. package/scripts/qualify-host.mjs +143 -0
  240. package/skills/h2a/SKILL.md +25 -2
  241. package/skills/h2a-run/SKILL.md +20 -1
  242. package/skills/harness/SKILL.md +19 -0
  243. package/skills/harness/track-report/SKILL.md +78 -5
  244. package/skills/harness/using-harness/SKILL.md +19 -0
  245. package/focus-app/client/_app/immutable/chunks/unQroC_0.js.br +0 -0
  246. package/focus-app/client/_app/immutable/chunks/unQroC_0.js.gz +0 -0
  247. package/focus-app/client/_app/immutable/entry/app.75Uzo4oj.js.br +0 -0
  248. package/focus-app/client/_app/immutable/entry/app.75Uzo4oj.js.gz +0 -0
  249. package/focus-app/client/_app/immutable/entry/start.BmwiFFoe.js +0 -1
  250. package/focus-app/client/_app/immutable/entry/start.BmwiFFoe.js.br +0 -2
  251. package/focus-app/client/_app/immutable/entry/start.BmwiFFoe.js.gz +0 -0
  252. package/focus-app/client/_app/immutable/nodes/1.hqfmE-jM.js.br +0 -3
  253. package/focus-app/client/_app/immutable/nodes/1.hqfmE-jM.js.gz +0 -0
@@ -0,0 +1,925 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:sentropic:focus:DecisionDossierDocument:2.0.0",
4
+ "title": "DecisionDossierDocument v2 — embedded evidence",
5
+ "description": "Breaking evidence envelope. Original bytes, digests, line ranges and reference integrity are additionally checked by the exported runtime validator. Absence of schemaVersion selects unchanged legacy v1.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "ref",
10
+ "subject",
11
+ "title",
12
+ "hash",
13
+ "cursor",
14
+ "sections",
15
+ "interactions",
16
+ "provenance",
17
+ "amendmentTrace",
18
+ "schemaVersion",
19
+ "sources",
20
+ "citations",
21
+ "evidenceGroups",
22
+ "annexes"
23
+ ],
24
+ "properties": {
25
+ "ref": {
26
+ "type": "string"
27
+ },
28
+ "subject": {
29
+ "type": "string"
30
+ },
31
+ "title": {
32
+ "type": "string"
33
+ },
34
+ "hash": {
35
+ "type": "string"
36
+ },
37
+ "cursor": {
38
+ "type": "string"
39
+ },
40
+ "sections": {
41
+ "type": "array",
42
+ "items": {
43
+ "$ref": "#/$defs/section"
44
+ }
45
+ },
46
+ "interactions": {
47
+ "type": "array",
48
+ "items": {
49
+ "$ref": "#/$defs/interaction"
50
+ }
51
+ },
52
+ "provenance": {
53
+ "$ref": "#/$defs/provenance"
54
+ },
55
+ "amendmentTrace": {
56
+ "type": "array",
57
+ "items": {
58
+ "$ref": "#/$defs/amendmentStep"
59
+ }
60
+ },
61
+ "readability": {
62
+ "$ref": "#/$defs/readability"
63
+ },
64
+ "schemaVersion": {
65
+ "const": 2
66
+ },
67
+ "sources": {
68
+ "type": "array",
69
+ "items": {
70
+ "$ref": "#/$defs/evidenceSource"
71
+ }
72
+ },
73
+ "citations": {
74
+ "type": "array",
75
+ "items": {
76
+ "$ref": "#/$defs/evidenceCitation"
77
+ }
78
+ },
79
+ "evidenceGroups": {
80
+ "type": "array",
81
+ "items": {
82
+ "$ref": "#/$defs/evidenceGroup"
83
+ }
84
+ },
85
+ "annexes": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "#/$defs/evidenceAnnex"
89
+ }
90
+ }
91
+ },
92
+ "$defs": {
93
+ "readability": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "properties": {
97
+ "ownerRequestQuote": {
98
+ "type": "string"
99
+ },
100
+ "noOwnerRequest": {
101
+ "type": "boolean"
102
+ },
103
+ "stakes": {
104
+ "type": "string"
105
+ },
106
+ "stakesLevel": {
107
+ "enum": [
108
+ "low",
109
+ "medium",
110
+ "high"
111
+ ]
112
+ },
113
+ "readingBudgetMinutes": {
114
+ "type": "number"
115
+ },
116
+ "glossary": {
117
+ "type": "array",
118
+ "items": {
119
+ "$ref": "#/$defs/glossaryEntry"
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "glossaryEntry": {
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": [
128
+ "term",
129
+ "definition"
130
+ ],
131
+ "properties": {
132
+ "term": {
133
+ "type": "string"
134
+ },
135
+ "definition": {
136
+ "type": "string"
137
+ }
138
+ }
139
+ },
140
+ "section": {
141
+ "oneOf": [
142
+ {
143
+ "$ref": "#/$defs/proseNode"
144
+ },
145
+ {
146
+ "$ref": "#/$defs/questionNode"
147
+ },
148
+ {
149
+ "$ref": "#/$defs/optionSetNode"
150
+ },
151
+ {
152
+ "$ref": "#/$defs/outcomeNode"
153
+ },
154
+ {
155
+ "$ref": "#/$defs/amendmentTraceNode"
156
+ },
157
+ {
158
+ "$ref": "#/$defs/diagramNode"
159
+ }
160
+ ]
161
+ },
162
+ "proseNode": {
163
+ "type": "object",
164
+ "additionalProperties": false,
165
+ "required": [
166
+ "kind",
167
+ "id",
168
+ "targetRef",
169
+ "markdown"
170
+ ],
171
+ "properties": {
172
+ "kind": {
173
+ "const": "prose"
174
+ },
175
+ "id": {
176
+ "type": "string"
177
+ },
178
+ "targetRef": {
179
+ "type": "string"
180
+ },
181
+ "markdown": {
182
+ "type": "string"
183
+ },
184
+ "questionId": {
185
+ "type": "string"
186
+ },
187
+ "citationRefs": {
188
+ "type": "array",
189
+ "items": {
190
+ "type": "string",
191
+ "minLength": 1
192
+ }
193
+ }
194
+ }
195
+ },
196
+ "questionNode": {
197
+ "type": "object",
198
+ "additionalProperties": false,
199
+ "required": [
200
+ "kind",
201
+ "id",
202
+ "targetRef",
203
+ "question",
204
+ "state"
205
+ ],
206
+ "properties": {
207
+ "kind": {
208
+ "const": "question"
209
+ },
210
+ "id": {
211
+ "type": "string"
212
+ },
213
+ "targetRef": {
214
+ "type": "string"
215
+ },
216
+ "question": {
217
+ "type": "string"
218
+ },
219
+ "recommendedAnswer": {
220
+ "type": "string"
221
+ },
222
+ "answer": {
223
+ "type": "string"
224
+ },
225
+ "state": {
226
+ "enum": [
227
+ "open",
228
+ "answered",
229
+ "validated"
230
+ ]
231
+ },
232
+ "context": {
233
+ "type": "string"
234
+ },
235
+ "readingTimeMinutes": {
236
+ "type": "number"
237
+ },
238
+ "recommendedOptionId": {
239
+ "type": "string"
240
+ },
241
+ "citationRefs": {
242
+ "type": "array",
243
+ "items": {
244
+ "type": "string",
245
+ "minLength": 1
246
+ }
247
+ }
248
+ }
249
+ },
250
+ "optionNode": {
251
+ "type": "object",
252
+ "additionalProperties": false,
253
+ "required": [
254
+ "kind",
255
+ "id",
256
+ "targetRef",
257
+ "label",
258
+ "annotation"
259
+ ],
260
+ "properties": {
261
+ "kind": {
262
+ "const": "option"
263
+ },
264
+ "id": {
265
+ "type": "string"
266
+ },
267
+ "targetRef": {
268
+ "type": "string"
269
+ },
270
+ "label": {
271
+ "type": "string"
272
+ },
273
+ "body": {
274
+ "type": "string"
275
+ },
276
+ "annotation": {
277
+ "enum": [
278
+ "none",
279
+ "accept",
280
+ "reject",
281
+ "comment"
282
+ ]
283
+ },
284
+ "annotationComment": {
285
+ "type": "string"
286
+ },
287
+ "consequence": {
288
+ "type": "string"
289
+ },
290
+ "citationRefs": {
291
+ "type": "array",
292
+ "items": {
293
+ "type": "string",
294
+ "minLength": 1
295
+ }
296
+ }
297
+ }
298
+ },
299
+ "optionSetNode": {
300
+ "type": "object",
301
+ "additionalProperties": false,
302
+ "required": [
303
+ "kind",
304
+ "id",
305
+ "targetRef",
306
+ "options"
307
+ ],
308
+ "properties": {
309
+ "kind": {
310
+ "const": "optionSet"
311
+ },
312
+ "id": {
313
+ "type": "string"
314
+ },
315
+ "targetRef": {
316
+ "type": "string"
317
+ },
318
+ "title": {
319
+ "type": "string"
320
+ },
321
+ "options": {
322
+ "type": "array",
323
+ "items": {
324
+ "$ref": "#/$defs/optionNode"
325
+ }
326
+ },
327
+ "questionId": {
328
+ "type": "string"
329
+ },
330
+ "citationRefs": {
331
+ "type": "array",
332
+ "items": {
333
+ "type": "string",
334
+ "minLength": 1
335
+ }
336
+ }
337
+ }
338
+ },
339
+ "outcomeNode": {
340
+ "type": "object",
341
+ "additionalProperties": false,
342
+ "required": [
343
+ "kind",
344
+ "id",
345
+ "targetRef",
346
+ "modality",
347
+ "statement"
348
+ ],
349
+ "properties": {
350
+ "kind": {
351
+ "const": "outcome"
352
+ },
353
+ "id": {
354
+ "type": "string"
355
+ },
356
+ "targetRef": {
357
+ "type": "string"
358
+ },
359
+ "modality": {
360
+ "enum": [
361
+ "decision",
362
+ "orientation",
363
+ "amendment",
364
+ "comment"
365
+ ]
366
+ },
367
+ "statement": {
368
+ "type": "string"
369
+ },
370
+ "questionId": {
371
+ "type": "string"
372
+ },
373
+ "citationRefs": {
374
+ "type": "array",
375
+ "items": {
376
+ "type": "string",
377
+ "minLength": 1
378
+ }
379
+ }
380
+ }
381
+ },
382
+ "amendmentTraceNode": {
383
+ "type": "object",
384
+ "additionalProperties": false,
385
+ "required": [
386
+ "kind",
387
+ "id",
388
+ "targetRef",
389
+ "steps"
390
+ ],
391
+ "properties": {
392
+ "kind": {
393
+ "const": "amendmentTrace"
394
+ },
395
+ "id": {
396
+ "type": "string"
397
+ },
398
+ "targetRef": {
399
+ "type": "string"
400
+ },
401
+ "steps": {
402
+ "type": "array",
403
+ "items": {
404
+ "$ref": "#/$defs/amendmentStep"
405
+ }
406
+ },
407
+ "citationRefs": {
408
+ "type": "array",
409
+ "items": {
410
+ "type": "string",
411
+ "minLength": 1
412
+ }
413
+ }
414
+ }
415
+ },
416
+ "diagramNode": {
417
+ "type": "object",
418
+ "additionalProperties": false,
419
+ "required": [
420
+ "kind",
421
+ "id",
422
+ "targetRef",
423
+ "syntax",
424
+ "source",
425
+ "alt"
426
+ ],
427
+ "properties": {
428
+ "kind": {
429
+ "const": "diagram"
430
+ },
431
+ "id": {
432
+ "type": "string"
433
+ },
434
+ "targetRef": {
435
+ "type": "string"
436
+ },
437
+ "syntax": {
438
+ "enum": [
439
+ "mermaid",
440
+ "plantuml"
441
+ ]
442
+ },
443
+ "source": {
444
+ "type": "string"
445
+ },
446
+ "alt": {
447
+ "type": "string"
448
+ },
449
+ "scene": {
450
+ "type": "object",
451
+ "description": "diagram-core SemanticDocument, profile generic@1, without views, geometry or layout hints. Opaque JSON until the design-system publishes its authoritative schema; no Focus-specific scene model."
452
+ },
453
+ "citationRefs": {
454
+ "type": "array",
455
+ "items": {
456
+ "type": "string",
457
+ "minLength": 1
458
+ }
459
+ }
460
+ }
461
+ },
462
+ "interaction": {
463
+ "type": "object",
464
+ "additionalProperties": false,
465
+ "required": [
466
+ "name",
467
+ "targetRef",
468
+ "label",
469
+ "enabled"
470
+ ],
471
+ "properties": {
472
+ "name": {
473
+ "type": "string"
474
+ },
475
+ "targetRef": {
476
+ "type": "string"
477
+ },
478
+ "label": {
479
+ "type": "string"
480
+ },
481
+ "enabled": {
482
+ "const": false
483
+ }
484
+ }
485
+ },
486
+ "comprehensionEvidence": {
487
+ "type": "object",
488
+ "additionalProperties": false,
489
+ "required": [
490
+ "subject",
491
+ "dossierHash"
492
+ ],
493
+ "properties": {
494
+ "subject": {
495
+ "type": "string"
496
+ },
497
+ "dossierHash": {
498
+ "type": "string"
499
+ },
500
+ "signature": {
501
+ "type": "string"
502
+ }
503
+ }
504
+ },
505
+ "provenance": {
506
+ "type": "object",
507
+ "additionalProperties": false,
508
+ "required": [
509
+ "source",
510
+ "readAt"
511
+ ],
512
+ "properties": {
513
+ "source": {
514
+ "type": "string"
515
+ },
516
+ "readAt": {
517
+ "type": "string"
518
+ },
519
+ "comprehensionEvidence": {
520
+ "$ref": "#/$defs/comprehensionEvidence"
521
+ }
522
+ }
523
+ },
524
+ "amendmentStep": {
525
+ "type": "object",
526
+ "additionalProperties": false,
527
+ "required": [
528
+ "at",
529
+ "author",
530
+ "summary"
531
+ ],
532
+ "properties": {
533
+ "at": {
534
+ "type": "string"
535
+ },
536
+ "author": {
537
+ "type": "string"
538
+ },
539
+ "summary": {
540
+ "type": "string"
541
+ }
542
+ }
543
+ },
544
+ "evidenceSource": {
545
+ "type": "object",
546
+ "additionalProperties": false,
547
+ "required": [
548
+ "id",
549
+ "title",
550
+ "origin",
551
+ "mediaType",
552
+ "encoding",
553
+ "data",
554
+ "sha256",
555
+ "size"
556
+ ],
557
+ "properties": {
558
+ "id": {
559
+ "type": "string",
560
+ "minLength": 1
561
+ },
562
+ "title": {
563
+ "type": "string",
564
+ "minLength": 1
565
+ },
566
+ "origin": {
567
+ "oneOf": [
568
+ {
569
+ "type": "object",
570
+ "additionalProperties": false,
571
+ "required": [
572
+ "uri"
573
+ ],
574
+ "properties": {
575
+ "uri": {
576
+ "type": "string",
577
+ "minLength": 1
578
+ }
579
+ }
580
+ },
581
+ {
582
+ "type": "object",
583
+ "additionalProperties": false,
584
+ "required": [
585
+ "repo",
586
+ "revision",
587
+ "path"
588
+ ],
589
+ "properties": {
590
+ "repo": {
591
+ "type": "string",
592
+ "minLength": 1
593
+ },
594
+ "revision": {
595
+ "type": "string",
596
+ "minLength": 1
597
+ },
598
+ "path": {
599
+ "type": "string",
600
+ "minLength": 1
601
+ }
602
+ }
603
+ }
604
+ ]
605
+ },
606
+ "mediaType": {
607
+ "anyOf": [
608
+ {
609
+ "type": "string",
610
+ "pattern": "^text/[a-z0-9.+-]+$"
611
+ },
612
+ {
613
+ "enum": [
614
+ "application/json",
615
+ "application/yaml",
616
+ "application/x-yaml",
617
+ "application/x-ndjson",
618
+ "image/png",
619
+ "image/jpeg"
620
+ ]
621
+ }
622
+ ]
623
+ },
624
+ "encoding": {
625
+ "const": "base64"
626
+ },
627
+ "data": {
628
+ "type": "string"
629
+ },
630
+ "sha256": {
631
+ "type": "string",
632
+ "pattern": "^[a-f0-9]{64}$"
633
+ },
634
+ "size": {
635
+ "type": "integer",
636
+ "minimum": 0
637
+ },
638
+ "width": {
639
+ "type": "integer",
640
+ "minimum": 1
641
+ },
642
+ "height": {
643
+ "type": "integer",
644
+ "minimum": 1
645
+ },
646
+ "alt": {
647
+ "type": "string",
648
+ "minLength": 1
649
+ }
650
+ },
651
+ "allOf": [
652
+ {
653
+ "if": {
654
+ "properties": {
655
+ "mediaType": {
656
+ "enum": [
657
+ "image/png",
658
+ "image/jpeg"
659
+ ]
660
+ }
661
+ },
662
+ "required": [
663
+ "mediaType"
664
+ ]
665
+ },
666
+ "then": {
667
+ "required": [
668
+ "width",
669
+ "height",
670
+ "alt"
671
+ ]
672
+ },
673
+ "else": {
674
+ "not": {
675
+ "anyOf": [
676
+ {
677
+ "required": [
678
+ "width"
679
+ ]
680
+ },
681
+ {
682
+ "required": [
683
+ "height"
684
+ ]
685
+ },
686
+ {
687
+ "required": [
688
+ "alt"
689
+ ]
690
+ }
691
+ ]
692
+ }
693
+ }
694
+ }
695
+ ]
696
+ },
697
+ "evidenceCitation": {
698
+ "type": "object",
699
+ "additionalProperties": false,
700
+ "required": [
701
+ "id",
702
+ "sourceId",
703
+ "label",
704
+ "locator"
705
+ ],
706
+ "properties": {
707
+ "id": {
708
+ "type": "string",
709
+ "minLength": 1
710
+ },
711
+ "sourceId": {
712
+ "type": "string",
713
+ "minLength": 1
714
+ },
715
+ "label": {
716
+ "type": "string",
717
+ "minLength": 1
718
+ },
719
+ "locator": {
720
+ "oneOf": [
721
+ {
722
+ "type": "object",
723
+ "additionalProperties": false,
724
+ "required": [
725
+ "kind",
726
+ "start",
727
+ "end"
728
+ ],
729
+ "properties": {
730
+ "kind": {
731
+ "const": "lines"
732
+ },
733
+ "start": {
734
+ "type": "integer",
735
+ "minimum": 1
736
+ },
737
+ "end": {
738
+ "type": "integer",
739
+ "minimum": 1
740
+ }
741
+ }
742
+ },
743
+ {
744
+ "type": "object",
745
+ "additionalProperties": false,
746
+ "required": [
747
+ "kind",
748
+ "caption"
749
+ ],
750
+ "properties": {
751
+ "kind": {
752
+ "const": "image"
753
+ },
754
+ "caption": {
755
+ "type": "string",
756
+ "minLength": 1
757
+ }
758
+ }
759
+ }
760
+ ]
761
+ }
762
+ }
763
+ },
764
+ "evidenceGroup": {
765
+ "type": "object",
766
+ "additionalProperties": false,
767
+ "required": [
768
+ "id",
769
+ "summary",
770
+ "citationRefs",
771
+ "sourceRefs"
772
+ ],
773
+ "properties": {
774
+ "id": {
775
+ "type": "string",
776
+ "minLength": 1
777
+ },
778
+ "summary": {
779
+ "type": "string",
780
+ "minLength": 1
781
+ },
782
+ "citationRefs": {
783
+ "type": "array",
784
+ "items": {
785
+ "type": "string",
786
+ "minLength": 1
787
+ }
788
+ },
789
+ "sourceRefs": {
790
+ "type": "array",
791
+ "items": {
792
+ "type": "string",
793
+ "minLength": 1
794
+ }
795
+ }
796
+ }
797
+ },
798
+ "evidenceAnnex": {
799
+ "type": "object",
800
+ "additionalProperties": false,
801
+ "required": [
802
+ "id",
803
+ "title",
804
+ "summary",
805
+ "backRefs",
806
+ "blocks"
807
+ ],
808
+ "properties": {
809
+ "id": {
810
+ "type": "string",
811
+ "minLength": 1
812
+ },
813
+ "title": {
814
+ "type": "string",
815
+ "minLength": 1
816
+ },
817
+ "summary": {
818
+ "type": "string",
819
+ "minLength": 1
820
+ },
821
+ "backRefs": {
822
+ "type": "array",
823
+ "items": {
824
+ "type": "string",
825
+ "minLength": 1
826
+ }
827
+ },
828
+ "blocks": {
829
+ "type": "array",
830
+ "items": {
831
+ "oneOf": [
832
+ {
833
+ "type": "object",
834
+ "additionalProperties": false,
835
+ "required": [
836
+ "kind",
837
+ "text"
838
+ ],
839
+ "properties": {
840
+ "kind": {
841
+ "const": "text"
842
+ },
843
+ "text": {
844
+ "type": "string"
845
+ }
846
+ }
847
+ },
848
+ {
849
+ "type": "object",
850
+ "additionalProperties": false,
851
+ "required": [
852
+ "kind",
853
+ "text"
854
+ ],
855
+ "properties": {
856
+ "kind": {
857
+ "const": "code"
858
+ },
859
+ "text": {
860
+ "type": "string"
861
+ },
862
+ "language": {
863
+ "type": "string",
864
+ "minLength": 1
865
+ }
866
+ }
867
+ },
868
+ {
869
+ "type": "object",
870
+ "additionalProperties": false,
871
+ "required": [
872
+ "kind",
873
+ "columns",
874
+ "rows"
875
+ ],
876
+ "properties": {
877
+ "kind": {
878
+ "const": "table"
879
+ },
880
+ "columns": {
881
+ "type": "array",
882
+ "items": {
883
+ "type": "string",
884
+ "minLength": 1
885
+ },
886
+ "minItems": 1
887
+ },
888
+ "rows": {
889
+ "type": "array",
890
+ "items": {
891
+ "type": "array",
892
+ "items": {
893
+ "type": "string"
894
+ }
895
+ }
896
+ }
897
+ }
898
+ },
899
+ {
900
+ "type": "object",
901
+ "additionalProperties": false,
902
+ "required": [
903
+ "kind",
904
+ "citationRefs"
905
+ ],
906
+ "properties": {
907
+ "kind": {
908
+ "const": "references"
909
+ },
910
+ "citationRefs": {
911
+ "type": "array",
912
+ "items": {
913
+ "type": "string",
914
+ "minLength": 1
915
+ }
916
+ }
917
+ }
918
+ }
919
+ ]
920
+ }
921
+ }
922
+ }
923
+ }
924
+ }
925
+ }