@aiwg/cli 2026.10.5 → 2026.10.7

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 (263) hide show
  1. package/agentic/code/addons/composition-engine/lib/runtime.mjs +1401 -0
  2. package/agentic/code/addons/composition-engine/lib/validator.mjs +513 -0
  3. package/agentic/code/addons/composition-engine/schemas/flow-graph.schema.json +372 -0
  4. package/agentic/code/providers/model-capabilities.v1.json +74 -50
  5. package/bin/aiwg.mjs +7 -3
  6. package/dist/src/a2a/agent-card.js +11 -0
  7. package/dist/src/api/index.d.ts +1 -0
  8. package/dist/src/api/index.js +1 -0
  9. package/dist/src/artifacts/browser-export.js +1 -0
  10. package/dist/src/artifacts/citation-parser.js +8 -1
  11. package/dist/src/artifacts/cli.js +57 -6
  12. package/dist/src/artifacts/fortemi-core-query-adapter.js +2 -0
  13. package/dist/src/artifacts/fortemi-core-sync.js +26 -8
  14. package/dist/src/artifacts/fortemi-shard-contract/2.2.0/contract.json +103 -0
  15. package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-embedding-config.schema.json +212 -0
  16. package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-embedding-set.schema.json +240 -0
  17. package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-manifest.schema.json +451 -0
  18. package/dist/src/artifacts/fortemi-shard-export.js +284 -0
  19. package/dist/src/artifacts/graph-query.js +18 -8
  20. package/dist/src/artifacts/index-adapters.js +339 -0
  21. package/dist/src/artifacts/index-builder.js +143 -14
  22. package/dist/src/artifacts/index-files.js +15 -4
  23. package/dist/src/artifacts/index-preparation.js +2 -0
  24. package/dist/src/artifacts/index-reader.js +44 -0
  25. package/dist/src/artifacts/index-refresh.js +114 -55
  26. package/dist/src/artifacts/index-status.js +20 -5
  27. package/dist/src/artifacts/memory-maintenance.js +503 -0
  28. package/dist/src/artifacts/prebuilt-relations.js +3 -1
  29. package/dist/src/artifacts/query-engine.js +263 -108
  30. package/dist/src/artifacts/relations-builder.js +2 -2
  31. package/dist/src/artifacts/source-graph.js +2 -2
  32. package/dist/src/artifacts/types.js +9 -1
  33. package/dist/src/auth/client.js +5 -1
  34. package/dist/src/auth/credential-store.js +5 -1
  35. package/dist/src/auth/sensitive-input.js +151 -0
  36. package/dist/src/channel/manager.mjs +3 -0
  37. package/dist/src/cli/handlers/agentcard.js +47 -25
  38. package/dist/src/cli/handlers/auth.js +22 -2
  39. package/dist/src/cli/handlers/decision.js +22 -3
  40. package/dist/src/cli/handlers/effect.js +4 -84
  41. package/dist/src/cli/handlers/guided-setup.js +470 -0
  42. package/dist/src/cli/handlers/help.js +2 -2
  43. package/dist/src/cli/handlers/housekeeper.js +1110 -0
  44. package/dist/src/cli/handlers/index.js +4 -2
  45. package/dist/src/cli/handlers/init.js +41 -6
  46. package/dist/src/cli/handlers/install.js +6 -0
  47. package/dist/src/cli/handlers/local-executor.js +5 -3
  48. package/dist/src/cli/handlers/marketplace.js +15 -4
  49. package/dist/src/cli/handlers/mc.js +509 -53
  50. package/dist/src/cli/handlers/models.js +32 -2
  51. package/dist/src/cli/handlers/ralph-launcher.js +76 -4
  52. package/dist/src/cli/handlers/rules.js +1 -1
  53. package/dist/src/cli/handlers/script-runner.js +73 -2
  54. package/dist/src/cli/handlers/serve.js +5 -3
  55. package/dist/src/cli/handlers/sessions.js +1 -0
  56. package/dist/src/cli/handlers/setup.js +432 -1
  57. package/dist/src/cli/handlers/skill-lint.js +1 -1
  58. package/dist/src/cli/handlers/subcommands.js +118 -8
  59. package/dist/src/cli/handlers/use.js +335 -107
  60. package/dist/src/cli/handlers/workspace.js +3 -1
  61. package/dist/src/cli/prompt-utils.js +81 -0
  62. package/dist/src/cli/router.js +16 -1
  63. package/dist/src/config/aiwg-config.js +42 -0
  64. package/dist/src/config/cli.js +7 -3
  65. package/dist/src/config/decision-config.js +14 -1
  66. package/dist/src/config/gitignore.js +4 -0
  67. package/dist/src/config/native-sandbox-warnings.js +25 -0
  68. package/dist/src/config/workspace.js +2 -1
  69. package/dist/src/contributors/validation.js +6 -5
  70. package/dist/src/decision/adapters/jev.js +20 -31
  71. package/dist/src/decision/admission.js +7 -3
  72. package/dist/src/decision/ask.js +6 -1
  73. package/dist/src/decision/benchmark.js +482 -0
  74. package/dist/src/decision/ledger.js +22 -3
  75. package/dist/src/decision/pricing.js +147 -0
  76. package/dist/src/decision/qualification/gate-evidence.js +23 -18
  77. package/dist/src/decision/qualification/load-staged.js +576 -0
  78. package/dist/src/decision/qualification/load.js +109 -33
  79. package/dist/src/decision/qualification/runner.js +12 -5
  80. package/dist/src/decision/review/service.js +6 -4
  81. package/dist/src/decision/review/validate.js +23 -2
  82. package/dist/src/decision/savings.js +8 -3
  83. package/dist/src/discovery/index.js +492 -0
  84. package/dist/src/discovery/interview.js +238 -0
  85. package/dist/src/discovery/plan-apply.js +567 -0
  86. package/dist/src/discovery/plan-store.js +171 -0
  87. package/dist/src/discovery/plan-types.js +2 -0
  88. package/dist/src/discovery/plan-validation.js +139 -0
  89. package/dist/src/discovery/types.js +2 -0
  90. package/dist/src/effects/host.js +91 -0
  91. package/dist/src/extensions/commands/definitions.js +49 -9
  92. package/dist/src/extensions/manifest.js +71 -44
  93. package/dist/src/extensions/project-local-discovery.js +1 -1
  94. package/dist/src/extensions/project-local-gitignore.js +2 -0
  95. package/dist/src/extensions/project-quickref.js +18 -17
  96. package/dist/src/extensions/validation.js +32 -29
  97. package/dist/src/housekeeper/daemon-config.js +148 -0
  98. package/dist/src/housekeeper/ipc.js +84 -0
  99. package/dist/src/housekeeper/lifecycle.js +148 -0
  100. package/dist/src/housekeeper/platform.js +35 -0
  101. package/dist/src/housekeeper/status.js +70 -0
  102. package/dist/src/housekeeper/units.js +114 -0
  103. package/dist/src/issues/cli.js +16 -5
  104. package/dist/src/issues/live.js +44 -12
  105. package/dist/src/jobs/flow.js +22 -21
  106. package/dist/src/lint/rule-activation.js +20 -5
  107. package/dist/src/lint/runner.js +1 -1
  108. package/dist/src/marketplace/exchange.js +18 -6
  109. package/dist/src/marketplace/provenance.js +3 -2
  110. package/dist/src/mcp/adapters/codex-runtime.js +46 -76
  111. package/dist/src/mcp/cli.mjs +22 -96
  112. package/dist/src/mcp/config-file.mjs +6 -2
  113. package/dist/src/mcp/config-layers.mjs +23 -7
  114. package/dist/src/mcp/grok-build-config.mjs +2 -1
  115. package/dist/src/mcp/muse-native-config.mjs +2 -1
  116. package/dist/src/mcp/profiles.js +18 -31
  117. package/dist/src/mcp/profiles.mjs +18 -32
  118. package/dist/src/mcp/registry.js +7 -27
  119. package/dist/src/mcp/registry.mjs +7 -28
  120. package/dist/src/mcp/server.mjs +34 -1
  121. package/dist/src/mcp/tools/agentic-sandbox.mjs +8 -7
  122. package/dist/src/mcp/tools/command-run.mjs +3 -2
  123. package/dist/src/mcp/tools/decision.mjs +49 -48
  124. package/dist/src/mcp/tools/discovery.mjs +46 -21
  125. package/dist/src/mcp/tools/orchestration.mjs +22 -22
  126. package/dist/src/mcp/tools/subsystems.mjs +9 -8
  127. package/dist/src/mcp/tools/worker-invoke.mjs +30 -6
  128. package/dist/src/mcp/tools/writer-profiles.mjs +1 -1
  129. package/dist/src/memory/audit.js +719 -0
  130. package/dist/src/memory/canonical-context.js +392 -13
  131. package/dist/src/memory/canonical-maintenance.js +95 -0
  132. package/dist/src/memory/cli-result.js +22 -0
  133. package/dist/src/memory/cli.js +176 -0
  134. package/dist/src/memory/context-pack.js +57 -6
  135. package/dist/src/memory/cost.js +512 -0
  136. package/dist/src/memory/firewall-classification.d.mts +7 -0
  137. package/dist/src/memory/firewall-classification.mjs +32 -0
  138. package/dist/src/memory/index.js +8 -0
  139. package/dist/src/memory/line-maintenance.js +68 -0
  140. package/dist/src/memory/maintenance-cli.js +286 -0
  141. package/dist/src/memory/maintenance-contract.js +136 -0
  142. package/dist/src/memory/maintenance-index.js +18 -0
  143. package/dist/src/memory/maintenance-owner.js +2 -0
  144. package/dist/src/memory/maintenance-record.js +138 -0
  145. package/dist/src/memory/maintenance.js +254 -0
  146. package/dist/src/memory/project-registry.js +2 -1
  147. package/dist/src/memory/provider-memory-adapter.js +154 -0
  148. package/dist/src/memory/recommend-cli.js +83 -0
  149. package/dist/src/memory/recommend.js +269 -0
  150. package/dist/src/memory/scheduled.js +81 -0
  151. package/dist/src/memory/taxonomy.js +44 -0
  152. package/dist/src/mission-protocol/codecs.js +19 -9
  153. package/dist/src/mission-protocol/worker-status.js +91 -1
  154. package/dist/src/models/config-loader.js +11 -1
  155. package/dist/src/models/model-capabilities.v1.json +74 -50
  156. package/dist/src/models/provider-policy.js +125 -62
  157. package/dist/src/models/resolver.js +45 -8
  158. package/dist/src/models/worker-installation.d.mts +8 -1
  159. package/dist/src/models/worker-installation.mjs +231 -38
  160. package/dist/src/models/wrapper-route.js +1 -1
  161. package/dist/src/output-modes/registry.js +8 -7
  162. package/dist/src/packages/adapters/git.js +99 -23
  163. package/dist/src/packages/adapters/gitea.js +8 -27
  164. package/dist/src/packages/adapters/github.js +7 -25
  165. package/dist/src/packages/registry.js +4 -4
  166. package/dist/src/plugin/metadata-validator.js +1 -1
  167. package/dist/src/process/cli-command.d.mts +5 -0
  168. package/dist/src/process/cli-command.mjs +42 -0
  169. package/dist/src/providers/deploy-version.d.mts +1 -0
  170. package/dist/src/providers/deploy-version.mjs +17 -0
  171. package/dist/src/providers/provider-definitions.js +19 -16
  172. package/dist/src/providers/skill-ownership.d.mts +11 -2
  173. package/dist/src/providers/skill-ownership.mjs +35 -17
  174. package/dist/src/rules/activation.d.mts +11 -2
  175. package/dist/src/rules/activation.mjs +82 -6
  176. package/dist/src/rules/inventory.js +1 -1
  177. package/dist/src/rules/rule-frontmatter.schema.json +2 -0
  178. package/dist/src/schema/zod-validation.d.mts +6 -0
  179. package/dist/src/schema/zod-validation.mjs +50 -0
  180. package/dist/src/serve/executor-registry.js +297 -20
  181. package/dist/src/serve/executor-token.d.mts +1 -0
  182. package/dist/src/serve/executor-token.mjs +8 -0
  183. package/dist/src/serve/shared-host-scheduler.js +1102 -31
  184. package/dist/src/serve/worker-invocation.js +124 -15
  185. package/dist/src/sessions/adapters/claude.js +19 -18
  186. package/dist/src/sessions/adapters/codex.js +10 -9
  187. package/dist/src/sessions/adapters/copilot.js +14 -13
  188. package/dist/src/sessions/adapters/cursor.js +19 -18
  189. package/dist/src/sessions/adapters/deepseek-harness.js +9 -8
  190. package/dist/src/sessions/adapters/factory.js +11 -10
  191. package/dist/src/sessions/adapters/generic.js +32 -23
  192. package/dist/src/sessions/adapters/grokbot.js +35 -35
  193. package/dist/src/sessions/adapters/hermes.js +20 -19
  194. package/dist/src/sessions/adapters/muse.js +50 -49
  195. package/dist/src/sessions/adapters/omp.js +5 -4
  196. package/dist/src/sessions/adapters/openclaw.js +30 -29
  197. package/dist/src/sessions/adapters/opencode.js +26 -26
  198. package/dist/src/sessions/adapters/openhuman.js +24 -23
  199. package/dist/src/sessions/adapters/pi.js +5 -4
  200. package/dist/src/sessions/adapters/windsurf.js +8 -8
  201. package/dist/src/sessions/analytics.js +10 -9
  202. package/dist/src/sessions/candidates.js +7 -6
  203. package/dist/src/sessions/contracts.js +63 -53
  204. package/dist/src/sessions/output-registration.js +11 -10
  205. package/dist/src/sessions/workspace-discovery.js +3 -4
  206. package/dist/src/smiths/context-pipeline/aiwg-md.js +18 -1
  207. package/dist/src/smiths/context-pipeline/claude-hook.js +46 -10
  208. package/dist/src/smiths/context-pipeline/context-file-safety.js +330 -9
  209. package/dist/src/smiths/context-pipeline/finalization.js +3 -2
  210. package/dist/src/smiths/context-pipeline/generator.js +7 -19
  211. package/dist/src/smiths/context-pipeline/legacy-inject.js +3 -10
  212. package/dist/src/smiths/context-pipeline/managed-hook.js +5 -5
  213. package/dist/src/smiths/context-pipeline/parallelism-section.js +72 -5
  214. package/dist/src/smiths/context-pipeline/workspace-context.js +110 -22
  215. package/dist/src/tracker/project-inputs.js +2 -0
  216. package/dist/src/update/checker.d.mts +4 -0
  217. package/dist/src/update/checker.mjs +14 -0
  218. package/dist/src/update/notifier.mjs +2 -4
  219. package/dist/src/writing/exemplar-selection.js +6 -6
  220. package/dist/src/writing/voice-evaluation.js +24 -23
  221. package/dist/src/writing/writer-migration.js +14 -13
  222. package/dist/src/writing/writer-profile.js +19 -18
  223. package/dist/src/writing/writing-brief.js +18 -17
  224. package/dist/src/writing/writing-receipt.js +47 -46
  225. package/package.json +5 -2
  226. package/schemas/decision/DecisionReview.schema.json +78 -1
  227. package/schemas/mission-v1.schema.json +3 -0
  228. package/tools/agents/deploy-agents.mjs +67 -39
  229. package/tools/agents/providers/antigravity.mjs +6 -1
  230. package/tools/agents/providers/base.mjs +24 -14
  231. package/tools/agents/providers/claude.mjs +6 -3
  232. package/tools/agents/providers/codex.mjs +54 -57
  233. package/tools/agents/providers/context-write.mjs +28 -0
  234. package/tools/agents/providers/copilot.mjs +13 -4
  235. package/tools/agents/providers/cursor.mjs +1 -1
  236. package/tools/agents/providers/deepseek-harness.mjs +1 -1
  237. package/tools/agents/providers/factory.mjs +7 -1
  238. package/tools/agents/providers/grok-build.mjs +18 -2
  239. package/tools/agents/providers/grokbot.mjs +1 -1
  240. package/tools/agents/providers/hermes.mjs +12 -15
  241. package/tools/agents/providers/muse-hooks.mjs +21 -14
  242. package/tools/agents/providers/muse.mjs +7 -2
  243. package/tools/agents/providers/omp.mjs +31 -5
  244. package/tools/agents/providers/opencode.mjs +14 -5
  245. package/tools/agents/providers/openhuman.mjs +1 -1
  246. package/tools/agents/providers/pi.mjs +1 -1
  247. package/tools/agents/providers/provider-prepare-coordinator.mjs +29 -9
  248. package/tools/agents/providers/rule-delivery.mjs +289 -80
  249. package/tools/agents/providers/warp.mjs +4 -1
  250. package/tools/agents/providers/windsurf.mjs +13 -3
  251. package/tools/cli/workspace-status.mjs +5 -0
  252. package/tools/commands/deploy-prompts-codex.mjs +11 -8
  253. package/tools/ralph-external/lib/codex-adapter.mjs +6 -2
  254. package/tools/ralph-external/lib/consecutive-failure-circuit-breaker.mjs +26 -0
  255. package/tools/ralph-external/lib/launcher-recovery-evidence.mjs +7 -1
  256. package/tools/ralph-external/lib/muse-adapter.mjs +12 -2
  257. package/tools/ralph-external/lib/recovery-probe.mjs +14 -4
  258. package/tools/ralph-external/lib/worker-health.mjs +1 -1
  259. package/tools/ralph-external/lib/worker-isolation.mjs +65 -9
  260. package/tools/ralph-external/process-monitor.mjs +49 -8
  261. package/tools/ralph-external/session-launcher.mjs +405 -35
  262. package/tools/skills/deploy-skills-codex.mjs +11 -7
  263. package/vscode-extension/schemas/aiwg.config.v1.json +11 -1
@@ -0,0 +1,240 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.fortemi.dev/knowledge-shard/2.2.0/full-v1/embedding-set.schema.json",
4
+ "title": "Fortemi Knowledge Shard full-v1 candidate embedding set record",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "id",
9
+ "name",
10
+ "slug",
11
+ "description",
12
+ "purpose",
13
+ "usage_hints",
14
+ "keywords",
15
+ "set_type",
16
+ "mode",
17
+ "criteria",
18
+ "embedding_config_id",
19
+ "truncate_dim",
20
+ "auto_embed_rules",
21
+ "index_status",
22
+ "index_type",
23
+ "last_indexed_at",
24
+ "document_count",
25
+ "embedding_count",
26
+ "embeddings_current",
27
+ "index_size_bytes",
28
+ "is_system",
29
+ "is_active",
30
+ "auto_refresh",
31
+ "refresh_interval",
32
+ "last_refresh_at",
33
+ "agent_metadata",
34
+ "created_at",
35
+ "updated_at",
36
+ "created_by"
37
+ ],
38
+ "properties": {
39
+ "id": {
40
+ "$ref": "#/$defs/uuid"
41
+ },
42
+ "name": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "slug": {
47
+ "type": "string",
48
+ "minLength": 1
49
+ },
50
+ "description": {
51
+ "$ref": "#/$defs/nullableString"
52
+ },
53
+ "purpose": {
54
+ "$ref": "#/$defs/nullableString"
55
+ },
56
+ "usage_hints": {
57
+ "$ref": "#/$defs/nullableString"
58
+ },
59
+ "keywords": {
60
+ "$ref": "#/$defs/nullableStringArray"
61
+ },
62
+ "set_type": {
63
+ "enum": [
64
+ "filter",
65
+ "full"
66
+ ]
67
+ },
68
+ "mode": {
69
+ "enum": [
70
+ "auto",
71
+ "manual",
72
+ "mixed"
73
+ ]
74
+ },
75
+ "criteria": {
76
+ "type": [
77
+ "object",
78
+ "null"
79
+ ]
80
+ },
81
+ "embedding_config_id": {
82
+ "$ref": "#/$defs/nullableUuid"
83
+ },
84
+ "truncate_dim": {
85
+ "$ref": "#/$defs/nullablePositiveInteger"
86
+ },
87
+ "auto_embed_rules": {
88
+ "type": [
89
+ "object",
90
+ "null"
91
+ ]
92
+ },
93
+ "index_status": {
94
+ "enum": [
95
+ "empty",
96
+ "pending",
97
+ "building",
98
+ "ready",
99
+ "stale",
100
+ "disabled"
101
+ ]
102
+ },
103
+ "index_type": {
104
+ "$ref": "#/$defs/nullableString"
105
+ },
106
+ "last_indexed_at": {
107
+ "$ref": "#/$defs/nullableDateTime"
108
+ },
109
+ "document_count": {
110
+ "$ref": "#/$defs/nullableNonNegativeInteger"
111
+ },
112
+ "embedding_count": {
113
+ "$ref": "#/$defs/nullableNonNegativeInteger"
114
+ },
115
+ "embeddings_current": {
116
+ "$ref": "#/$defs/nullableBoolean"
117
+ },
118
+ "index_size_bytes": {
119
+ "$ref": "#/$defs/nullableNonNegativeInteger"
120
+ },
121
+ "is_system": {
122
+ "$ref": "#/$defs/nullableBoolean"
123
+ },
124
+ "is_active": {
125
+ "$ref": "#/$defs/nullableBoolean"
126
+ },
127
+ "auto_refresh": {
128
+ "$ref": "#/$defs/nullableBoolean"
129
+ },
130
+ "refresh_interval": {
131
+ "$ref": "#/$defs/nullableString"
132
+ },
133
+ "last_refresh_at": {
134
+ "$ref": "#/$defs/nullableDateTime"
135
+ },
136
+ "agent_metadata": {
137
+ "type": [
138
+ "object",
139
+ "null"
140
+ ]
141
+ },
142
+ "created_at": {
143
+ "$ref": "#/$defs/dateTime"
144
+ },
145
+ "updated_at": {
146
+ "$ref": "#/$defs/dateTime"
147
+ },
148
+ "created_by": {
149
+ "$ref": "#/$defs/nullableString"
150
+ },
151
+ "query_template": {
152
+ "type": [
153
+ "string",
154
+ "null"
155
+ ],
156
+ "maxLength": 2048,
157
+ "pattern": "^(?:(?!\\{text\\})[\\s\\S])*\\{text\\}(?:(?!\\{text\\})[\\s\\S])*$"
158
+ },
159
+ "vector_source": {
160
+ "type": [
161
+ "string",
162
+ "null"
163
+ ],
164
+ "enum": [
165
+ "internal",
166
+ "external",
167
+ null
168
+ ]
169
+ }
170
+ },
171
+ "$defs": {
172
+ "uuid": {
173
+ "type": "string",
174
+ "format": "uuid"
175
+ },
176
+ "dateTime": {
177
+ "type": "string",
178
+ "format": "date-time"
179
+ },
180
+ "nullableUuid": {
181
+ "oneOf": [
182
+ {
183
+ "$ref": "#/$defs/uuid"
184
+ },
185
+ {
186
+ "type": "null"
187
+ }
188
+ ]
189
+ },
190
+ "nullableDateTime": {
191
+ "oneOf": [
192
+ {
193
+ "$ref": "#/$defs/dateTime"
194
+ },
195
+ {
196
+ "type": "null"
197
+ }
198
+ ]
199
+ },
200
+ "nullableString": {
201
+ "type": [
202
+ "string",
203
+ "null"
204
+ ]
205
+ },
206
+ "nullableBoolean": {
207
+ "type": [
208
+ "boolean",
209
+ "null"
210
+ ]
211
+ },
212
+ "nullableNonNegativeInteger": {
213
+ "type": [
214
+ "integer",
215
+ "null"
216
+ ],
217
+ "minimum": 0
218
+ },
219
+ "nullablePositiveInteger": {
220
+ "type": [
221
+ "integer",
222
+ "null"
223
+ ],
224
+ "minimum": 1
225
+ },
226
+ "nullableStringArray": {
227
+ "oneOf": [
228
+ {
229
+ "type": "array",
230
+ "items": {
231
+ "type": "string"
232
+ }
233
+ },
234
+ {
235
+ "type": "null"
236
+ }
237
+ ]
238
+ }
239
+ }
240
+ }
@@ -0,0 +1,451 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.fortemi.dev/knowledge-shard/2.2.0/full-v1/manifest.schema.json",
4
+ "title": "Fortemi Knowledge Shard full-v1 candidate manifest",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "version",
9
+ "profile",
10
+ "producer",
11
+ "format",
12
+ "created_at",
13
+ "components",
14
+ "counts",
15
+ "checksums",
16
+ "min_reader_version"
17
+ ],
18
+ "properties": {
19
+ "version": {
20
+ "const": "2.2.0"
21
+ },
22
+ "profile": {
23
+ "const": "full-v1"
24
+ },
25
+ "producer": {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "required": [
29
+ "name",
30
+ "version"
31
+ ],
32
+ "properties": {
33
+ "name": {
34
+ "type": "string",
35
+ "minLength": 1
36
+ },
37
+ "version": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "revision": {
42
+ "type": "string",
43
+ "minLength": 1
44
+ }
45
+ }
46
+ },
47
+ "matric_version": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "deprecated": true
51
+ },
52
+ "format": {
53
+ "const": "matric-shard"
54
+ },
55
+ "created_at": {
56
+ "type": "string",
57
+ "format": "date-time"
58
+ },
59
+ "components": {
60
+ "type": "array",
61
+ "minItems": 33,
62
+ "maxItems": 33,
63
+ "uniqueItems": true,
64
+ "items": {
65
+ "enum": [
66
+ "notes",
67
+ "collections",
68
+ "tags",
69
+ "templates",
70
+ "links",
71
+ "note_originals",
72
+ "note_original_history",
73
+ "note_revised_current",
74
+ "note_revisions",
75
+ "embedding_configs",
76
+ "embedding_sets",
77
+ "embedding_set_members",
78
+ "embeddings",
79
+ "provenance_edges",
80
+ "provenance_activities",
81
+ "named_locations",
82
+ "provenance_locations",
83
+ "provenance_devices",
84
+ "provenance_records",
85
+ "skos_schemes",
86
+ "skos_concepts",
87
+ "skos_labels",
88
+ "skos_notes",
89
+ "skos_relations",
90
+ "skos_mapping_relations",
91
+ "skos_scheme_memberships",
92
+ "note_skos_tags",
93
+ "skos_collections",
94
+ "skos_collection_members",
95
+ "graph_sources",
96
+ "graph_edges",
97
+ "communities",
98
+ "community_assignments"
99
+ ]
100
+ }
101
+ },
102
+ "counts": {
103
+ "$ref": "#/$defs/counts"
104
+ },
105
+ "checksums": {
106
+ "$ref": "#/$defs/checksums"
107
+ },
108
+ "min_reader_version": {
109
+ "const": "2.2.0"
110
+ },
111
+ "migrated_from": {
112
+ "$ref": "#/$defs/strictSemVer"
113
+ },
114
+ "migration_history": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "required": [
120
+ "from_version",
121
+ "to_version",
122
+ "migrated_at",
123
+ "migrated_by",
124
+ "changes"
125
+ ],
126
+ "properties": {
127
+ "from_version": {
128
+ "$ref": "#/$defs/strictSemVer"
129
+ },
130
+ "to_version": {
131
+ "$ref": "#/$defs/strictSemVer"
132
+ },
133
+ "migrated_at": {
134
+ "type": "string",
135
+ "format": "date-time"
136
+ },
137
+ "migrated_by": {
138
+ "type": "string",
139
+ "minLength": 1
140
+ },
141
+ "changes": {
142
+ "type": "array",
143
+ "minItems": 1,
144
+ "items": {
145
+ "type": "string",
146
+ "minLength": 1
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ },
153
+ "$defs": {
154
+ "strictSemVer": {
155
+ "type": "string",
156
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
157
+ },
158
+ "sha256": {
159
+ "type": "string",
160
+ "pattern": "^[0-9a-f]{64}$"
161
+ },
162
+ "count": {
163
+ "type": "integer",
164
+ "minimum": 0
165
+ },
166
+ "counts": {
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "required": [
170
+ "notes",
171
+ "collections",
172
+ "tags",
173
+ "templates",
174
+ "links",
175
+ "note_originals",
176
+ "note_original_history",
177
+ "note_revised_current",
178
+ "note_revisions",
179
+ "embedding_configs",
180
+ "embedding_sets",
181
+ "embedding_set_members",
182
+ "embeddings",
183
+ "provenance_edges",
184
+ "provenance_activities",
185
+ "named_locations",
186
+ "provenance_locations",
187
+ "provenance_devices",
188
+ "provenance_records",
189
+ "skos_schemes",
190
+ "skos_concepts",
191
+ "skos_labels",
192
+ "skos_notes",
193
+ "skos_relations",
194
+ "skos_mapping_relations",
195
+ "skos_scheme_memberships",
196
+ "note_skos_tags",
197
+ "skos_collections",
198
+ "skos_collection_members",
199
+ "graph_sources",
200
+ "graph_edges",
201
+ "community_sets",
202
+ "communities",
203
+ "community_assignments"
204
+ ],
205
+ "properties": {
206
+ "notes": {
207
+ "$ref": "#/$defs/count"
208
+ },
209
+ "collections": {
210
+ "$ref": "#/$defs/count"
211
+ },
212
+ "tags": {
213
+ "$ref": "#/$defs/count"
214
+ },
215
+ "templates": {
216
+ "$ref": "#/$defs/count"
217
+ },
218
+ "links": {
219
+ "$ref": "#/$defs/count"
220
+ },
221
+ "note_originals": {
222
+ "$ref": "#/$defs/count"
223
+ },
224
+ "note_original_history": {
225
+ "$ref": "#/$defs/count"
226
+ },
227
+ "note_revised_current": {
228
+ "$ref": "#/$defs/count"
229
+ },
230
+ "note_revisions": {
231
+ "$ref": "#/$defs/count"
232
+ },
233
+ "embedding_configs": {
234
+ "$ref": "#/$defs/count"
235
+ },
236
+ "embedding_sets": {
237
+ "$ref": "#/$defs/count"
238
+ },
239
+ "embedding_set_members": {
240
+ "$ref": "#/$defs/count"
241
+ },
242
+ "embeddings": {
243
+ "$ref": "#/$defs/count"
244
+ },
245
+ "provenance_edges": {
246
+ "$ref": "#/$defs/count"
247
+ },
248
+ "provenance_activities": {
249
+ "$ref": "#/$defs/count"
250
+ },
251
+ "named_locations": {
252
+ "$ref": "#/$defs/count"
253
+ },
254
+ "provenance_locations": {
255
+ "$ref": "#/$defs/count"
256
+ },
257
+ "provenance_devices": {
258
+ "$ref": "#/$defs/count"
259
+ },
260
+ "provenance_records": {
261
+ "$ref": "#/$defs/count"
262
+ },
263
+ "skos_schemes": {
264
+ "$ref": "#/$defs/count"
265
+ },
266
+ "skos_concepts": {
267
+ "$ref": "#/$defs/count"
268
+ },
269
+ "skos_labels": {
270
+ "$ref": "#/$defs/count"
271
+ },
272
+ "skos_notes": {
273
+ "$ref": "#/$defs/count"
274
+ },
275
+ "skos_relations": {
276
+ "$ref": "#/$defs/count"
277
+ },
278
+ "skos_mapping_relations": {
279
+ "$ref": "#/$defs/count"
280
+ },
281
+ "skos_scheme_memberships": {
282
+ "$ref": "#/$defs/count"
283
+ },
284
+ "note_skos_tags": {
285
+ "$ref": "#/$defs/count"
286
+ },
287
+ "skos_collections": {
288
+ "$ref": "#/$defs/count"
289
+ },
290
+ "skos_collection_members": {
291
+ "$ref": "#/$defs/count"
292
+ },
293
+ "graph_sources": {
294
+ "$ref": "#/$defs/count"
295
+ },
296
+ "graph_edges": {
297
+ "$ref": "#/$defs/count"
298
+ },
299
+ "community_sets": {
300
+ "$ref": "#/$defs/count"
301
+ },
302
+ "communities": {
303
+ "$ref": "#/$defs/count"
304
+ },
305
+ "community_assignments": {
306
+ "$ref": "#/$defs/count"
307
+ }
308
+ }
309
+ },
310
+ "checksums": {
311
+ "type": "object",
312
+ "additionalProperties": false,
313
+ "required": [
314
+ "notes.jsonl",
315
+ "collections.json",
316
+ "tags.json",
317
+ "templates.json",
318
+ "links.jsonl",
319
+ "note_originals.jsonl",
320
+ "note_original_history.jsonl",
321
+ "note_revised_current.jsonl",
322
+ "note_revisions.jsonl",
323
+ "embedding_configs.json",
324
+ "embedding_sets.json",
325
+ "embedding_set_members.jsonl",
326
+ "embeddings.jsonl",
327
+ "provenance_edges.jsonl",
328
+ "provenance_activities.jsonl",
329
+ "named_locations.jsonl",
330
+ "provenance_locations.jsonl",
331
+ "provenance_devices.jsonl",
332
+ "provenance_records.jsonl",
333
+ "skos_schemes.json",
334
+ "skos_concepts.json",
335
+ "skos_labels.jsonl",
336
+ "skos_notes.jsonl",
337
+ "skos_relations.jsonl",
338
+ "skos_mapping_relations.jsonl",
339
+ "skos_scheme_memberships.jsonl",
340
+ "note_skos_tags.jsonl",
341
+ "skos_collections.json",
342
+ "skos_collection_members.jsonl",
343
+ "graph_sources.json",
344
+ "graph_edges.jsonl",
345
+ "communities.json",
346
+ "community_assignments.jsonl"
347
+ ],
348
+ "properties": {
349
+ "notes.jsonl": {
350
+ "$ref": "#/$defs/sha256"
351
+ },
352
+ "collections.json": {
353
+ "$ref": "#/$defs/sha256"
354
+ },
355
+ "tags.json": {
356
+ "$ref": "#/$defs/sha256"
357
+ },
358
+ "templates.json": {
359
+ "$ref": "#/$defs/sha256"
360
+ },
361
+ "links.jsonl": {
362
+ "$ref": "#/$defs/sha256"
363
+ },
364
+ "note_originals.jsonl": {
365
+ "$ref": "#/$defs/sha256"
366
+ },
367
+ "note_original_history.jsonl": {
368
+ "$ref": "#/$defs/sha256"
369
+ },
370
+ "note_revised_current.jsonl": {
371
+ "$ref": "#/$defs/sha256"
372
+ },
373
+ "note_revisions.jsonl": {
374
+ "$ref": "#/$defs/sha256"
375
+ },
376
+ "embedding_configs.json": {
377
+ "$ref": "#/$defs/sha256"
378
+ },
379
+ "embedding_sets.json": {
380
+ "$ref": "#/$defs/sha256"
381
+ },
382
+ "embedding_set_members.jsonl": {
383
+ "$ref": "#/$defs/sha256"
384
+ },
385
+ "embeddings.jsonl": {
386
+ "$ref": "#/$defs/sha256"
387
+ },
388
+ "provenance_edges.jsonl": {
389
+ "$ref": "#/$defs/sha256"
390
+ },
391
+ "provenance_activities.jsonl": {
392
+ "$ref": "#/$defs/sha256"
393
+ },
394
+ "named_locations.jsonl": {
395
+ "$ref": "#/$defs/sha256"
396
+ },
397
+ "provenance_locations.jsonl": {
398
+ "$ref": "#/$defs/sha256"
399
+ },
400
+ "provenance_devices.jsonl": {
401
+ "$ref": "#/$defs/sha256"
402
+ },
403
+ "provenance_records.jsonl": {
404
+ "$ref": "#/$defs/sha256"
405
+ },
406
+ "skos_schemes.json": {
407
+ "$ref": "#/$defs/sha256"
408
+ },
409
+ "skos_concepts.json": {
410
+ "$ref": "#/$defs/sha256"
411
+ },
412
+ "skos_labels.jsonl": {
413
+ "$ref": "#/$defs/sha256"
414
+ },
415
+ "skos_notes.jsonl": {
416
+ "$ref": "#/$defs/sha256"
417
+ },
418
+ "skos_relations.jsonl": {
419
+ "$ref": "#/$defs/sha256"
420
+ },
421
+ "skos_mapping_relations.jsonl": {
422
+ "$ref": "#/$defs/sha256"
423
+ },
424
+ "skos_scheme_memberships.jsonl": {
425
+ "$ref": "#/$defs/sha256"
426
+ },
427
+ "note_skos_tags.jsonl": {
428
+ "$ref": "#/$defs/sha256"
429
+ },
430
+ "skos_collections.json": {
431
+ "$ref": "#/$defs/sha256"
432
+ },
433
+ "skos_collection_members.jsonl": {
434
+ "$ref": "#/$defs/sha256"
435
+ },
436
+ "graph_sources.json": {
437
+ "$ref": "#/$defs/sha256"
438
+ },
439
+ "graph_edges.jsonl": {
440
+ "$ref": "#/$defs/sha256"
441
+ },
442
+ "communities.json": {
443
+ "$ref": "#/$defs/sha256"
444
+ },
445
+ "community_assignments.jsonl": {
446
+ "$ref": "#/$defs/sha256"
447
+ }
448
+ }
449
+ }
450
+ }
451
+ }