@mnstry/atelier 0.2.0-alpha.6 → 0.2.0-alpha.8

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 (374) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/README.md +59 -15
  3. package/SECURITY.md +6 -1
  4. package/contracts/atelier-adoption-policy.v1.schema.json +49 -0
  5. package/contracts/atelier-coauthor.v1.schema.json +163 -0
  6. package/contracts/atelier-decision-request.v1.schema.json +476 -0
  7. package/contracts/atelier-decision-result.v1.schema.json +500 -0
  8. package/contracts/atelier-guide.v1.schema.json +227 -0
  9. package/contracts/atelier-intake.v1.schema.json +151 -0
  10. package/contracts/atelier-migration.v2.schema.json +61 -0
  11. package/contracts/atelier-obsidian-acceptance-receipt.v1.schema.json +211 -0
  12. package/contracts/atelier-obsidian-apply-policy.v1.schema.json +298 -0
  13. package/contracts/atelier-obsidian-corpus-profile.v1.schema.json +98 -0
  14. package/contracts/atelier-obsidian-edit-operation.v1.schema.json +138 -0
  15. package/contracts/atelier-obsidian-ext-settings.v1.schema.json +287 -0
  16. package/contracts/atelier-obsidian-generation-manifest.v1.schema.json +353 -0
  17. package/contracts/atelier-obsidian-proposal-receipt.v1.schema.json +110 -0
  18. package/contracts/atelier-obsidian-publication-journal.v1.schema.json +167 -0
  19. package/contracts/atelier-obsidian-scope.v1.schema.json +264 -0
  20. package/contracts/atelier-obsidian-service-state.v1.schema.json +149 -0
  21. package/contracts/atelier-obsidian-source-snapshot.v1.schema.json +179 -0
  22. package/contracts/atelier-pane-presentation.v1.schema.json +76 -0
  23. package/contracts/atelier-presentation.v1.schema.json +1293 -0
  24. package/contracts/atelier-review.v1.schema.json +1601 -0
  25. package/contracts/atelier-skill-steward.v1.schema.json +692 -0
  26. package/contracts/atelier-upgrade-plan.v2.schema.json +398 -0
  27. package/contracts/atelier-upgrade-receipt.v1.schema.json +99 -0
  28. package/contracts/atelier-vault-publication.v1.schema.json +58 -0
  29. package/docs/assurance-controls.md +9 -1
  30. package/docs/atelier-sync.md +5 -4
  31. package/docs/blocks/claims.md +15 -10
  32. package/docs/blocks/will-not-do.md +4 -1
  33. package/docs/coauthor-session.md +57 -0
  34. package/docs/connected-composition.md +75 -0
  35. package/docs/decisions.md +167 -0
  36. package/docs/exact-upgrades.md +159 -0
  37. package/docs/extension-pack-lifecycle.md +33 -0
  38. package/docs/guided-upgrades.md +99 -0
  39. package/docs/install.md +65 -9
  40. package/docs/intake-and-guides.md +65 -0
  41. package/docs/integration-and-review-plan.md +409 -0
  42. package/docs/integration-contract-decisions.md +22 -0
  43. package/docs/local-review.md +84 -0
  44. package/docs/local-services.md +227 -0
  45. package/docs/local-state.md +107 -0
  46. package/docs/obsidian-contract.md +687 -0
  47. package/docs/obsidian.md +387 -0
  48. package/docs/portable-presentation.md +328 -0
  49. package/docs/presentation-consumer-boundaries.md +75 -0
  50. package/docs/presentation-review-disposition.md +47 -0
  51. package/docs/project-command-inventory.md +38 -0
  52. package/docs/project-options.md +53 -0
  53. package/docs/release-engineering.md +88 -0
  54. package/docs/review-portability.md +55 -0
  55. package/docs/skill-steward.md +156 -0
  56. package/docs/upgrade.md +55 -2
  57. package/docs/vault-service.md +292 -0
  58. package/fixtures/atelier-coauthor/invalid/authority.v1.json +5 -0
  59. package/fixtures/atelier-coauthor/valid/config.v1.json +12 -0
  60. package/fixtures/atelier-guide/invalid/authority.v1.json +11 -0
  61. package/fixtures/atelier-guide/valid/capability.v1.json +10 -0
  62. package/fixtures/atelier-guide/valid/consent.v1.json +11 -0
  63. package/fixtures/atelier-guide/valid/engagement.v1.json +7 -0
  64. package/fixtures/atelier-guide/valid/offer.v1.json +10 -0
  65. package/fixtures/atelier-intake/invalid/authority.v1.json +9 -0
  66. package/fixtures/atelier-intake/valid/attempt.v1.json +8 -0
  67. package/fixtures/atelier-intake/valid/completion.v1.json +9 -0
  68. package/fixtures/atelier-intake/valid/source.v1.json +7 -0
  69. package/fixtures/atelier-review/invalid/authenticated-identity.v1.json +22 -0
  70. package/fixtures/atelier-review/valid/bound.v1.json +229 -0
  71. package/fixtures/atelier-review/valid/bundle.v1.json +267 -0
  72. package/fixtures/atelier-review/valid/contribution.v1.json +22 -0
  73. package/fixtures/atelier-review/valid/lifecycle.v1.json +14 -0
  74. package/fixtures/atelier-skill-steward/audit/invalid/source-mutation.v1.json +26 -0
  75. package/fixtures/atelier-skill-steward/audit/valid/clean.v1.json +26 -0
  76. package/fixtures/atelier-skill-steward/candidates/invalid/workflow-key.v1.json +37 -0
  77. package/fixtures/atelier-skill-steward/candidates/valid/create.v1.json +37 -0
  78. package/fixtures/atelier-skill-steward/lock/invalid/bad-digest.v1.json +18 -0
  79. package/fixtures/atelier-skill-steward/lock/valid/installed.v1.json +23 -0
  80. package/fixtures/atelier-skill-steward/plan/invalid/delete-action.v1.json +33 -0
  81. package/fixtures/atelier-skill-steward/plan/valid/add.v1.json +33 -0
  82. package/fixtures/atelier-upgrade-transaction/adoption-policy/invalid/example.json +12 -0
  83. package/fixtures/atelier-upgrade-transaction/adoption-policy/valid/example.json +11 -0
  84. package/fixtures/atelier-upgrade-transaction/migration/invalid/example.json +20 -0
  85. package/fixtures/atelier-upgrade-transaction/migration/valid/example.json +19 -0
  86. package/fixtures/atelier-upgrade-transaction/upgrade-plan/invalid/example.json +58 -0
  87. package/fixtures/atelier-upgrade-transaction/upgrade-plan/valid/example.json +57 -0
  88. package/fixtures/atelier-upgrade-transaction/upgrade-receipt/invalid/example.json +15 -0
  89. package/fixtures/atelier-upgrade-transaction/upgrade-receipt/valid/example.json +14 -0
  90. package/fixtures/atelier-vault-publication/invalid/publication.json +5 -0
  91. package/fixtures/atelier-vault-publication/valid/publication.json +11 -0
  92. package/fixtures/decisions/request/invalid/unknown-authority.v1.json +61 -0
  93. package/fixtures/decisions/request/valid/triage.v1.json +60 -0
  94. package/fixtures/decisions/result/invalid/execution-authority.v1.json +50 -0
  95. package/fixtures/decisions/result/valid/abstained.v1.json +23 -0
  96. package/fixtures/decisions/result/valid/assessed.v1.json +50 -0
  97. package/fixtures/obsidian/acceptance/ap05-extra-notes.json +14 -0
  98. package/fixtures/obsidian/acceptance/receipts/G07.valid.v1.json +63 -0
  99. package/fixtures/obsidian/acceptance/receipts/G13.valid.v1.json +69 -0
  100. package/fixtures/obsidian/acceptance/receipts/G14.valid.v1.json +62 -0
  101. package/fixtures/obsidian/acceptance/receipts/G15.valid.v1.json +56 -0
  102. package/fixtures/obsidian/acceptance/receipts/G16.valid.v1.json +73 -0
  103. package/fixtures/obsidian/acceptance/receipts/G17.valid.v1.json +75 -0
  104. package/fixtures/obsidian/acceptance/receipts/G18.valid.v1.json +64 -0
  105. package/fixtures/obsidian/acceptance/service-sentinels.json +10 -0
  106. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/duplicate-evidence-name.v1.json +39 -0
  107. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/evidence-by-absolute-path.v1.json +34 -0
  108. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/missing-candidate-tree.v1.json +33 -0
  109. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/no-evidence.v1.json +28 -0
  110. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/unknown-outcome.v1.json +34 -0
  111. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/unknown-top-level-field.v1.json +35 -0
  112. package/fixtures/obsidian/contracts/acceptance-receipt/valid/node-gate.v1.json +34 -0
  113. package/fixtures/obsidian/contracts/apply-policy/invalid/automatic-without-edit-class.v1.json +27 -0
  114. package/fixtures/obsidian/contracts/apply-policy/invalid/conflict-overwrite.v1.json +29 -0
  115. package/fixtures/obsidian/contracts/apply-policy/invalid/missing-policy-digest.v1.json +28 -0
  116. package/fixtures/obsidian/contracts/apply-policy/invalid/unbounded-batch.v1.json +29 -0
  117. package/fixtures/obsidian/contracts/apply-policy/invalid/unimplemented-edit-class.v1.json +30 -0
  118. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-mode.v1.json +29 -0
  119. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-selector-operator.v1.json +22 -0
  120. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-top-level-field.v1.json +30 -0
  121. package/fixtures/obsidian/contracts/apply-policy/valid/automatic-scoped.v1.json +29 -0
  122. package/fixtures/obsidian/contracts/apply-policy/valid/manual-default.v1.json +20 -0
  123. package/fixtures/obsidian/contracts/corpus-profile/invalid/absolute-path-in-ext.v1.json +30 -0
  124. package/fixtures/obsidian/contracts/corpus-profile/invalid/absolute-repository-root.v1.json +27 -0
  125. package/fixtures/obsidian/contracts/corpus-profile/invalid/duplicate-repository-id.v1.json +27 -0
  126. package/fixtures/obsidian/contracts/corpus-profile/invalid/overlapping-managed-roots.v1.json +27 -0
  127. package/fixtures/obsidian/contracts/corpus-profile/invalid/unknown-enrollment.v1.json +27 -0
  128. package/fixtures/obsidian/contracts/corpus-profile/invalid/unknown-top-level-field.v1.json +28 -0
  129. package/fixtures/obsidian/contracts/corpus-profile/valid/three-repositories.v1.json +27 -0
  130. package/fixtures/obsidian/contracts/edit-operation/invalid/absolute-recovery-ref.v1.json +21 -0
  131. package/fixtures/obsidian/contracts/edit-operation/invalid/inline-observed-bytes.v1.json +22 -0
  132. package/fixtures/obsidian/contracts/edit-operation/invalid/missing-base-digest.v1.json +20 -0
  133. package/fixtures/obsidian/contracts/edit-operation/invalid/short-idempotency-key.v1.json +21 -0
  134. package/fixtures/obsidian/contracts/edit-operation/invalid/unknown-kind.v1.json +21 -0
  135. package/fixtures/obsidian/contracts/edit-operation/valid/pending-body-replacement.v1.json +21 -0
  136. package/fixtures/obsidian/contracts/ext-settings/invalid/absolute-path-prefix.v1.json +28 -0
  137. package/fixtures/obsidian/contracts/ext-settings/invalid/apply-policy-in-portable-settings.v1.json +30 -0
  138. package/fixtures/obsidian/contracts/ext-settings/invalid/duplicate-scope-id.v1.json +27 -0
  139. package/fixtures/obsidian/contracts/ext-settings/invalid/machine-local-vault-path.v1.json +28 -0
  140. package/fixtures/obsidian/contracts/ext-settings/invalid/service-port-in-portable-settings.v1.json +28 -0
  141. package/fixtures/obsidian/contracts/ext-settings/invalid/unknown-default-scope.v1.json +27 -0
  142. package/fixtures/obsidian/contracts/ext-settings/valid/disabled.v1.json +5 -0
  143. package/fixtures/obsidian/contracts/ext-settings/valid/enabled-with-scopes.v1.json +27 -0
  144. package/fixtures/obsidian/contracts/generation-manifest/invalid/absolute-note-path.v1.json +114 -0
  145. package/fixtures/obsidian/contracts/generation-manifest/invalid/complete-with-unwritten-notes.v1.json +114 -0
  146. package/fixtures/obsidian/contracts/generation-manifest/invalid/derived-link-claimed-declared.v1.json +114 -0
  147. package/fixtures/obsidian/contracts/generation-manifest/invalid/duplicate-note-identity.v1.json +114 -0
  148. package/fixtures/obsidian/contracts/generation-manifest/invalid/in-scope-endpoint-missing.v1.json +114 -0
  149. package/fixtures/obsidian/contracts/generation-manifest/invalid/title-only-note-path.v1.json +114 -0
  150. package/fixtures/obsidian/contracts/generation-manifest/invalid/unknown-note-field.v1.json +115 -0
  151. package/fixtures/obsidian/contracts/generation-manifest/invalid/unknown-relation-type.v1.json +114 -0
  152. package/fixtures/obsidian/contracts/generation-manifest/invalid/withheld-endpoint.v1.json +114 -0
  153. package/fixtures/obsidian/contracts/generation-manifest/valid/two-notes.v1.json +114 -0
  154. package/fixtures/obsidian/contracts/oracles/scope-cases.json +412 -0
  155. package/fixtures/obsidian/contracts/proposal-receipt/invalid/accepted-without-proposal-id.v1.json +12 -0
  156. package/fixtures/obsidian/contracts/proposal-receipt/invalid/missing-adapter-operation-id.v1.json +11 -0
  157. package/fixtures/obsidian/contracts/proposal-receipt/invalid/unknown-backpressure-outcome.v1.json +12 -0
  158. package/fixtures/obsidian/contracts/proposal-receipt/invalid/unknown-top-level-field.v1.json +13 -0
  159. package/fixtures/obsidian/contracts/proposal-receipt/valid/accepted-new.v1.json +12 -0
  160. package/fixtures/obsidian/contracts/proposal-receipt/valid/deferred.v1.json +12 -0
  161. package/fixtures/obsidian/contracts/publication-journal/invalid/absolute-recovery-ref.v1.json +47 -0
  162. package/fixtures/obsidian/contracts/publication-journal/invalid/duplicate-sequence.v1.json +47 -0
  163. package/fixtures/obsidian/contracts/publication-journal/invalid/empty-protocol-id.v1.json +47 -0
  164. package/fixtures/obsidian/contracts/publication-journal/invalid/missing-protocol-id.v1.json +46 -0
  165. package/fixtures/obsidian/contracts/publication-journal/invalid/unknown-entry-field.v1.json +48 -0
  166. package/fixtures/obsidian/contracts/publication-journal/invalid/unknown-state.v1.json +47 -0
  167. package/fixtures/obsidian/contracts/publication-journal/valid/committed.v1.json +47 -0
  168. package/fixtures/obsidian/contracts/publication-journal/valid/updating-after-restart.v1.json +22 -0
  169. package/fixtures/obsidian/contracts/scope/invalid/absolute-path-prefix.v1.json +15 -0
  170. package/fixtures/obsidian/contracts/scope/invalid/duplicate-ids.v1.json +18 -0
  171. package/fixtures/obsidian/contracts/scope/invalid/expansion-without-node-budget.v1.json +40 -0
  172. package/fixtures/obsidian/contracts/scope/invalid/full-mode-with-subset.v1.json +8 -0
  173. package/fixtures/obsidian/contracts/scope/invalid/unknown-mode.v1.json +41 -0
  174. package/fixtures/obsidian/contracts/scope/invalid/unknown-selector-key.v1.json +15 -0
  175. package/fixtures/obsidian/contracts/scope/invalid/unknown-selector-operator.v1.json +14 -0
  176. package/fixtures/obsidian/contracts/scope/invalid/unknown-top-level-field.v1.json +42 -0
  177. package/fixtures/obsidian/contracts/scope/valid/explicit-empty.v1.json +8 -0
  178. package/fixtures/obsidian/contracts/scope/valid/focus.v1.json +11 -0
  179. package/fixtures/obsidian/contracts/scope/valid/full.v1.json +8 -0
  180. package/fixtures/obsidian/contracts/scope/valid/scoped-set-expression.v1.json +41 -0
  181. package/fixtures/obsidian/contracts/service-state/invalid/hostname-instead-of-literal-loopback.v1.json +23 -0
  182. package/fixtures/obsidian/contracts/service-state/invalid/missing-consent.v1.json +18 -0
  183. package/fixtures/obsidian/contracts/service-state/invalid/privileged-port.v1.json +23 -0
  184. package/fixtures/obsidian/contracts/service-state/invalid/unknown-top-level-field.v1.json +24 -0
  185. package/fixtures/obsidian/contracts/service-state/invalid/wildcard-bind.v1.json +23 -0
  186. package/fixtures/obsidian/contracts/service-state/valid/healthy.v1.json +23 -0
  187. package/fixtures/obsidian/contracts/source-snapshot/invalid/absolute-file-path.v1.json +48 -0
  188. package/fixtures/obsidian/contracts/source-snapshot/invalid/duplicate-repository-id.v1.json +48 -0
  189. package/fixtures/obsidian/contracts/source-snapshot/invalid/mixed-read.v1.json +48 -0
  190. package/fixtures/obsidian/contracts/source-snapshot/invalid/parent-traversal-path.v1.json +48 -0
  191. package/fixtures/obsidian/contracts/source-snapshot/invalid/unknown-file-field.v1.json +49 -0
  192. package/fixtures/obsidian/contracts/source-snapshot/valid/two-repositories.v1.json +48 -0
  193. package/fixtures/obsidian/edits/workspace.json +65 -0
  194. package/fixtures/obsidian/materialization/expected-full.json +99 -0
  195. package/fixtures/obsidian/materialization/expected-scoped.json +39 -0
  196. package/fixtures/obsidian/materialization/workspace.json +54 -0
  197. package/fixtures/obsidian/proposals/expected-shapes.json +11 -0
  198. package/fixtures/ui/presentation/pane.v1.json +7 -0
  199. package/fixtures/ui/presentation/reference.v1.json +293 -0
  200. package/package.json +57 -6
  201. package/skills/claude/atelier-guided-coauthor/SKILL.md +49 -0
  202. package/skills/claude/atelier-guided-upgrade/SKILL.md +97 -0
  203. package/skills/claude/atelier-open/SKILL.md +5 -0
  204. package/skills/claude/atelier-skill-steward/SKILL.md +62 -0
  205. package/skills/claude/mnstry-readiness/SKILL.md +5 -0
  206. package/skills/codex/atelier-guided-coauthor/SKILL.md +49 -0
  207. package/skills/codex/atelier-guided-upgrade/SKILL.md +97 -0
  208. package/skills/codex/atelier-open/SKILL.md +5 -0
  209. package/skills/codex/atelier-skill-steward/SKILL.md +62 -0
  210. package/skills/codex/mnstry-readiness/SKILL.md +5 -0
  211. package/src/access/preview-enforcer.mjs +84 -0
  212. package/src/boundary/policy.mjs +57 -25
  213. package/src/cli/project-options.mjs +58 -0
  214. package/src/cli/run.mjs +43 -3
  215. package/src/coauthor/session.mjs +161 -0
  216. package/src/coauthor/store.mjs +173 -0
  217. package/src/collaboration/event-ledger.mjs +16 -33
  218. package/src/collaboration/inspection-bundle.mjs +223 -0
  219. package/src/collaboration/review-contracts.mjs +25 -0
  220. package/src/collaboration/review-store.mjs +305 -0
  221. package/src/commands/coauthor.mjs +26 -0
  222. package/src/commands/config.mjs +6 -1
  223. package/src/commands/extension-pack.mjs +15 -8
  224. package/src/commands/init.mjs +44 -5
  225. package/src/commands/obsidian.mjs +368 -0
  226. package/src/commands/review.mjs +147 -0
  227. package/src/commands/setup.mjs +51 -14
  228. package/src/commands/skills.mjs +199 -0
  229. package/src/commands/sync.mjs +8 -1
  230. package/src/composition/registry.mjs +27 -0
  231. package/src/composition/wire.mjs +122 -0
  232. package/src/contracts/corpus.mjs +29 -0
  233. package/src/decisions/contracts.d.mts +96 -0
  234. package/src/decisions/contracts.mjs +321 -0
  235. package/src/disclosure/content-scan.mjs +13 -0
  236. package/src/export/atelier-export-contract.mjs +16 -1
  237. package/src/extension-packs/lifecycle.mjs +154 -0
  238. package/src/graph/graph.mjs +64 -2
  239. package/src/graph/knowledge-graph.mjs +548 -24
  240. package/src/guides/contracts.mjs +54 -0
  241. package/src/intake/store.mjs +119 -0
  242. package/src/preview/channel.mjs +89 -0
  243. package/src/project/config.mjs +26 -27
  244. package/src/project/durable-state.mjs +161 -0
  245. package/src/project/file-class.mjs +166 -0
  246. package/src/project/private-state.mjs +11 -1
  247. package/src/projection/obsidian/contracts.mjs +571 -0
  248. package/src/projection/obsidian/edits/align.mjs +169 -0
  249. package/src/projection/obsidian/edits/apply.mjs +889 -0
  250. package/src/projection/obsidian/edits/arbitrate.mjs +414 -0
  251. package/src/projection/obsidian/edits/contribution.mjs +108 -0
  252. package/src/projection/obsidian/edits/index.mjs +19 -0
  253. package/src/projection/obsidian/edits/object-identity.mjs +61 -0
  254. package/src/projection/obsidian/edits/object-store.mjs +517 -0
  255. package/src/projection/obsidian/edits/observe.mjs +123 -0
  256. package/src/projection/obsidian/edits/policy.mjs +123 -0
  257. package/src/projection/obsidian/edits/regions.mjs +648 -0
  258. package/src/projection/obsidian/materialize/byte-lens.mjs +98 -0
  259. package/src/projection/obsidian/materialize/index.mjs +7 -0
  260. package/src/projection/obsidian/materialize/path-registry.mjs +105 -0
  261. package/src/projection/obsidian/materialize/prepare-view.mjs +746 -0
  262. package/src/projection/obsidian/materialize/settings.mjs +57 -0
  263. package/src/projection/obsidian/materialize/stage.mjs +27 -0
  264. package/src/projection/obsidian/proposals/adapter.mjs +572 -0
  265. package/src/projection/obsidian/proposals/backpressure.mjs +113 -0
  266. package/src/projection/obsidian/proposals/contribution.mjs +55 -0
  267. package/src/projection/obsidian/proposals/index.mjs +23 -0
  268. package/src/projection/obsidian/proposals/observation.mjs +216 -0
  269. package/src/projection/obsidian/proposals/queue.mjs +277 -0
  270. package/src/projection/obsidian/proposals/router.mjs +168 -0
  271. package/src/projection/obsidian/publication/bridge-script.mjs +266 -0
  272. package/src/projection/obsidian/publication/exchange.mjs +117 -0
  273. package/src/projection/obsidian/publication/index.mjs +5 -0
  274. package/src/projection/obsidian/publication/publisher.mjs +588 -0
  275. package/src/projection/obsidian/publication/test-seam.mjs +16 -0
  276. package/src/projection/obsidian/publication/transport.mjs +139 -0
  277. package/src/projection/obsidian/recovery/index.mjs +6 -0
  278. package/src/projection/obsidian/recovery/journal.mjs +134 -0
  279. package/src/projection/obsidian/recovery/late-writer.mjs +46 -0
  280. package/src/projection/obsidian/recovery/restart.mjs +316 -0
  281. package/src/projection/obsidian/recovery/store.mjs +234 -0
  282. package/src/projection/obsidian/selection-ui/conflict-view.mjs +91 -0
  283. package/src/projection/obsidian/selection-ui/contribution.mjs +141 -0
  284. package/src/projection/obsidian/selection-ui/focus.mjs +82 -0
  285. package/src/projection/obsidian/selection-ui/index.mjs +12 -0
  286. package/src/projection/obsidian/selection-ui/policy-setup.mjs +107 -0
  287. package/src/projection/obsidian/selection-ui/receipt.mjs +173 -0
  288. package/src/projection/obsidian/selection-ui/selection-state.mjs +122 -0
  289. package/src/projection/obsidian/selection-ui/selection.mjs +109 -0
  290. package/src/projection/project.mjs +28 -19
  291. package/src/readiness-protocols/evidence.mjs +282 -0
  292. package/src/readiness-protocols/runtime.mjs +4 -3
  293. package/src/readiness-protocols/source-read.mjs +39 -0
  294. package/src/runtime/obsidian/app-capability.mjs +110 -0
  295. package/src/runtime/obsidian/app-production-seams.mjs +96 -0
  296. package/src/runtime/obsidian/contributions/proposal-adapter.mjs +4 -0
  297. package/src/runtime/obsidian/contributions/selection-ui.mjs +4 -0
  298. package/src/runtime/obsidian/contributions/source-apply.mjs +4 -0
  299. package/src/runtime/obsidian/contributions.mjs +27 -0
  300. package/src/runtime/obsidian/documents.mjs +37 -0
  301. package/src/runtime/obsidian/enablement.mjs +53 -0
  302. package/src/runtime/obsidian/engine.mjs +532 -0
  303. package/src/runtime/obsidian/errors.mjs +14 -0
  304. package/src/runtime/obsidian/extension-points.mjs +103 -0
  305. package/src/runtime/obsidian/index.mjs +34 -0
  306. package/src/runtime/obsidian/lifecycle.mjs +258 -0
  307. package/src/runtime/obsidian/machine-settings.mjs +260 -0
  308. package/src/runtime/obsidian/observation.mjs +158 -0
  309. package/src/runtime/obsidian/opening.mjs +243 -0
  310. package/src/runtime/obsidian/pending-edits.mjs +141 -0
  311. package/src/runtime/obsidian/pipeline.mjs +122 -0
  312. package/src/runtime/obsidian/private-lock.mjs +156 -0
  313. package/src/runtime/obsidian/process-identity.mjs +58 -0
  314. package/src/runtime/obsidian/service-client.mjs +66 -0
  315. package/src/runtime/obsidian/service-main.mjs +89 -0
  316. package/src/runtime/obsidian/service-record.mjs +169 -0
  317. package/src/runtime/obsidian/service-server.mjs +121 -0
  318. package/src/runtime/obsidian/service.mjs +216 -0
  319. package/src/runtime/obsidian/startup-adapters.mjs +87 -0
  320. package/src/runtime/obsidian/state-store.mjs +180 -0
  321. package/src/runtime/obsidian/sync-notice.mjs +33 -0
  322. package/src/runtime/obsidian/tick-loop.mjs +84 -0
  323. package/src/runtime/obsidian/watchers.mjs +36 -0
  324. package/src/runtime/supervisor.mjs +16 -1
  325. package/src/server/local-sidecar.mjs +44 -0
  326. package/src/server/server.mjs +1 -0
  327. package/src/skills/steward.mjs +780 -0
  328. package/src/ui/presentation/browser.mjs +278 -0
  329. package/src/ui/presentation/contract.mjs +116 -0
  330. package/src/ui/presentation/index.mjs +7 -0
  331. package/src/ui/presentation/native.mjs +153 -0
  332. package/src/ui/presentation/proof.mjs +57 -0
  333. package/src/ui/presentation/schema-check.mjs +30 -0
  334. package/src/ui/presentation/schema.generated.mjs +1371 -0
  335. package/src/ui/presentation/state.mjs +43 -0
  336. package/src/ui/presentation/styles.mjs +67 -0
  337. package/src/ui/presentation/tokens.mjs +74 -0
  338. package/src/ui/presentation/web.mjs +85 -0
  339. package/src/ui/review-page.mjs +32 -0
  340. package/src/upgrade/explanation.mjs +33 -0
  341. package/src/upgrade/provenance.mjs +338 -0
  342. package/src/upgrade/transaction-files.mjs +103 -0
  343. package/src/upgrade/transaction.mjs +475 -0
  344. package/src/upgrade/upgrade.mjs +63 -28
  345. package/src/vault/hosts.mjs +21 -0
  346. package/src/vault/identity.mjs +19 -0
  347. package/src/vault/index.mjs +7 -0
  348. package/src/vault/interface.mjs +11 -0
  349. package/src/vault/metadata.mjs +31 -0
  350. package/src/vault/privacy.mjs +148 -0
  351. package/src/vault/probe.mjs +89 -0
  352. package/src/vault/service.mjs +131 -0
  353. package/src/vault/source.mjs +45 -0
  354. package/src/vault/storage.mjs +23 -0
  355. package/templates/distribution-workspace/.claude/launch.json +6 -2
  356. package/templates/distribution-workspace/gitignore +1 -0
  357. package/templates/distribution-workspace/project/README.md +2 -2
  358. package/templates/external-project-workspace/README.md +45 -0
  359. package/templates/external-project-workspace/answers.example.json +4 -0
  360. package/templates/external-project-workspace/atelier.project.json +40 -0
  361. package/templates/external-project-workspace/boundary-policy.v1.json +60 -0
  362. package/templates/external-project-workspace/gitignore +8 -0
  363. package/templates/external-project-workspace/pack-lifecycle.json +14 -0
  364. package/templates/external-project-workspace/packs/protocols/contract-gate.v1.json +109 -0
  365. package/templates/external-project-workspace/packs/sample-pack.v1.json +48 -0
  366. package/templates/external-project-workspace/repo-access.v1.json +9 -0
  367. package/templates/external-project-workspace/source/README.md +11 -0
  368. package/templates/launch.json +6 -2
  369. package/templates/private-domain-workspace/.claude/launch.json +6 -2
  370. package/templates/private-domain-workspace/domain/README.md +2 -2
  371. package/templates/private-domain-workspace/gitignore +1 -0
  372. package/templates/shared-project-workspace/.claude/launch.json +6 -2
  373. package/templates/shared-project-workspace/gitignore +1 -0
  374. package/templates/shared-project-workspace/project/README.md +2 -2
@@ -0,0 +1,1601 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mnstry.ai/schemas/atelier/atelier-review.v1.schema.json",
4
+ "title": "Local review artifacts v1",
5
+ "description": "Separate evidence, contributions and inspection artifacts. Local asserted identity carries no authenticated approval or source write authority.",
6
+ "oneOf": [
7
+ {
8
+ "$ref": "#/$defs/record"
9
+ },
10
+ {
11
+ "$ref": "#/$defs/bound"
12
+ },
13
+ {
14
+ "$ref": "#/$defs/bundle"
15
+ },
16
+ {
17
+ "$ref": "#/$defs/lifecycle"
18
+ }
19
+ ],
20
+ "$defs": {
21
+ "input": {
22
+ "oneOf": [
23
+ {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": [
27
+ "requestId",
28
+ "kind",
29
+ "targetId",
30
+ "expectedVersion",
31
+ "reviewer",
32
+ "rationale",
33
+ "runId",
34
+ "evidenceDigest",
35
+ "decision"
36
+ ],
37
+ "properties": {
38
+ "requestId": {
39
+ "type": "string",
40
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,159}$"
41
+ },
42
+ "kind": {
43
+ "const": "decision"
44
+ },
45
+ "targetId": {
46
+ "type": "string",
47
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,159}$"
48
+ },
49
+ "expectedVersion": {
50
+ "type": "integer",
51
+ "minimum": 0,
52
+ "maximum": 1000000
53
+ },
54
+ "reviewer": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "maxLength": 160
58
+ },
59
+ "rationale": {
60
+ "type": "string",
61
+ "minLength": 1,
62
+ "maxLength": 8000
63
+ },
64
+ "runId": {
65
+ "type": "string",
66
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,159}$"
67
+ },
68
+ "evidenceDigest": {
69
+ "type": "string",
70
+ "pattern": "^sha256:[a-f0-9]{64}$"
71
+ },
72
+ "decision": {
73
+ "enum": [
74
+ "accepted",
75
+ "rejected",
76
+ "revised"
77
+ ]
78
+ },
79
+ "revision": {
80
+ "type": "string",
81
+ "minLength": 1,
82
+ "maxLength": 8000
83
+ },
84
+ "ext": {
85
+ "type": "object",
86
+ "description": "Reserved extensions; no approval, source-write or execution authority."
87
+ }
88
+ },
89
+ "allOf": [
90
+ {
91
+ "if": {
92
+ "properties": {
93
+ "decision": {
94
+ "const": "revised"
95
+ }
96
+ }
97
+ },
98
+ "then": {
99
+ "required": [
100
+ "revision"
101
+ ]
102
+ }
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "type": "object",
108
+ "additionalProperties": false,
109
+ "required": [
110
+ "requestId",
111
+ "kind",
112
+ "targetId",
113
+ "expectedVersion",
114
+ "reviewer",
115
+ "repo",
116
+ "path",
117
+ "documentDigest",
118
+ "anchor",
119
+ "responseType",
120
+ "wording"
121
+ ],
122
+ "properties": {
123
+ "requestId": {
124
+ "type": "string",
125
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,159}$"
126
+ },
127
+ "kind": {
128
+ "const": "response"
129
+ },
130
+ "targetId": {
131
+ "type": "string",
132
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,159}$"
133
+ },
134
+ "expectedVersion": {
135
+ "type": "integer",
136
+ "minimum": 0,
137
+ "maximum": 1000000
138
+ },
139
+ "reviewer": {
140
+ "type": "string",
141
+ "minLength": 1,
142
+ "maxLength": 160
143
+ },
144
+ "repo": {
145
+ "type": "string",
146
+ "minLength": 1,
147
+ "maxLength": 160
148
+ },
149
+ "path": {
150
+ "type": "string",
151
+ "minLength": 1,
152
+ "maxLength": 2048
153
+ },
154
+ "documentDigest": {
155
+ "type": "string",
156
+ "pattern": "^sha256:[a-f0-9]{64}$"
157
+ },
158
+ "anchor": {
159
+ "type": "string",
160
+ "minLength": 1,
161
+ "maxLength": 8000
162
+ },
163
+ "responseType": {
164
+ "enum": [
165
+ "question",
166
+ "correction",
167
+ "discussion"
168
+ ]
169
+ },
170
+ "wording": {
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "maxLength": 16000
174
+ },
175
+ "ext": {
176
+ "type": "object",
177
+ "description": "Reserved extensions; no approval, source-write or execution authority."
178
+ }
179
+ }
180
+ },
181
+ {
182
+ "type": "object",
183
+ "additionalProperties": false,
184
+ "required": [
185
+ "requestId",
186
+ "kind",
187
+ "targetId",
188
+ "expectedVersion",
189
+ "reviewer",
190
+ "repo",
191
+ "path",
192
+ "documentDigest",
193
+ "anchor",
194
+ "position"
195
+ ],
196
+ "properties": {
197
+ "requestId": {
198
+ "type": "string",
199
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,159}$"
200
+ },
201
+ "kind": {
202
+ "const": "position"
203
+ },
204
+ "targetId": {
205
+ "type": "string",
206
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,159}$"
207
+ },
208
+ "expectedVersion": {
209
+ "type": "integer",
210
+ "minimum": 0,
211
+ "maximum": 1000000
212
+ },
213
+ "reviewer": {
214
+ "type": "string",
215
+ "minLength": 1,
216
+ "maxLength": 160
217
+ },
218
+ "repo": {
219
+ "type": "string",
220
+ "minLength": 1,
221
+ "maxLength": 160
222
+ },
223
+ "path": {
224
+ "type": "string",
225
+ "minLength": 1,
226
+ "maxLength": 2048
227
+ },
228
+ "documentDigest": {
229
+ "type": "string",
230
+ "pattern": "^sha256:[a-f0-9]{64}$"
231
+ },
232
+ "anchor": {
233
+ "type": "string",
234
+ "minLength": 1,
235
+ "maxLength": 8000
236
+ },
237
+ "position": {
238
+ "type": "integer",
239
+ "minimum": 0,
240
+ "maximum": 1048576
241
+ },
242
+ "ext": {
243
+ "type": "object",
244
+ "description": "Reserved extensions; no approval, source-write or execution authority."
245
+ }
246
+ }
247
+ }
248
+ ]
249
+ },
250
+ "record": {
251
+ "type": "object",
252
+ "additionalProperties": false,
253
+ "required": [
254
+ "schema",
255
+ "input",
256
+ "inputDigest",
257
+ "key",
258
+ "version",
259
+ "identity",
260
+ "recordedAt"
261
+ ],
262
+ "properties": {
263
+ "schema": {
264
+ "const": "atelier-contribution@v1"
265
+ },
266
+ "input": {
267
+ "$ref": "#/$defs/input"
268
+ },
269
+ "inputDigest": {
270
+ "type": "string",
271
+ "pattern": "^sha256:[a-f0-9]{64}$"
272
+ },
273
+ "key": {
274
+ "type": "string",
275
+ "pattern": "^sha256:[a-f0-9]{64}$"
276
+ },
277
+ "version": {
278
+ "type": "integer",
279
+ "minimum": 1,
280
+ "maximum": 1000001
281
+ },
282
+ "identity": {
283
+ "type": "object",
284
+ "additionalProperties": false,
285
+ "required": [
286
+ "kind",
287
+ "name"
288
+ ],
289
+ "properties": {
290
+ "kind": {
291
+ "const": "local-asserted"
292
+ },
293
+ "name": {
294
+ "type": "string",
295
+ "minLength": 1,
296
+ "maxLength": 160
297
+ },
298
+ "ext": {
299
+ "type": "object",
300
+ "description": "Reserved extensions; no approval, source-write or execution authority."
301
+ }
302
+ }
303
+ },
304
+ "recordedAt": {
305
+ "type": "string",
306
+ "format": "date-time"
307
+ },
308
+ "ext": {
309
+ "type": "object",
310
+ "description": "Reserved extensions; no approval, source-write or execution authority."
311
+ },
312
+ "contractVersion": {
313
+ "type": "string",
314
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
315
+ }
316
+ }
317
+ },
318
+ "evidence": {
319
+ "type": "object",
320
+ "additionalProperties": false,
321
+ "required": [
322
+ "schema",
323
+ "protocolId",
324
+ "protocol",
325
+ "protocolDigest",
326
+ "answers",
327
+ "answersDigest",
328
+ "configDigest",
329
+ "lifecycleDigest",
330
+ "policyDigest",
331
+ "packs",
332
+ "evaluator",
333
+ "sources",
334
+ "claimEvidence",
335
+ "limitations",
336
+ "digest"
337
+ ],
338
+ "properties": {
339
+ "schema": {
340
+ "const": "atelier-review-evidence@v1"
341
+ },
342
+ "protocolId": {
343
+ "type": "string",
344
+ "minLength": 1,
345
+ "maxLength": 160
346
+ },
347
+ "protocol": {
348
+ "$ref": "https://mnstry.ai/schemas/atelier/atelier-readiness-protocol.v1.schema.json"
349
+ },
350
+ "protocolDigest": {
351
+ "type": "string",
352
+ "pattern": "^sha256:[a-f0-9]{64}$"
353
+ },
354
+ "answers": {
355
+ "type": "object"
356
+ },
357
+ "answersDigest": {
358
+ "type": "string",
359
+ "pattern": "^sha256:[a-f0-9]{64}$"
360
+ },
361
+ "configDigest": {
362
+ "type": "string",
363
+ "pattern": "^sha256:[a-f0-9]{64}$"
364
+ },
365
+ "lifecycleDigest": {
366
+ "type": "string",
367
+ "pattern": "^sha256:[a-f0-9]{64}$"
368
+ },
369
+ "policyDigest": {
370
+ "type": "string",
371
+ "pattern": "^sha256:[a-f0-9]{64}$"
372
+ },
373
+ "packs": {
374
+ "type": "array",
375
+ "items": {
376
+ "type": "object",
377
+ "additionalProperties": false,
378
+ "required": [
379
+ "id",
380
+ "version",
381
+ "digest"
382
+ ],
383
+ "properties": {
384
+ "id": {
385
+ "type": "string",
386
+ "minLength": 1,
387
+ "maxLength": 160
388
+ },
389
+ "version": {
390
+ "type": "string",
391
+ "minLength": 1,
392
+ "maxLength": 160
393
+ },
394
+ "digest": {
395
+ "type": "string",
396
+ "pattern": "^sha256:[a-f0-9]{64}$"
397
+ },
398
+ "ext": {
399
+ "type": "object",
400
+ "description": "Reserved extensions; no approval, source-write or execution authority."
401
+ }
402
+ }
403
+ },
404
+ "maxItems": 100
405
+ },
406
+ "evaluator": {
407
+ "type": "object",
408
+ "additionalProperties": false,
409
+ "required": [
410
+ "id",
411
+ "digest"
412
+ ],
413
+ "properties": {
414
+ "id": {
415
+ "type": "string",
416
+ "minLength": 1,
417
+ "maxLength": 160
418
+ },
419
+ "digest": {
420
+ "type": "string",
421
+ "pattern": "^sha256:[a-f0-9]{64}$"
422
+ },
423
+ "ext": {
424
+ "type": "object",
425
+ "description": "Reserved extensions; no approval, source-write or execution authority."
426
+ }
427
+ }
428
+ },
429
+ "sources": {
430
+ "type": "array",
431
+ "items": {
432
+ "type": "object",
433
+ "additionalProperties": false,
434
+ "required": [
435
+ "id",
436
+ "repo",
437
+ "path",
438
+ "audience",
439
+ "digest",
440
+ "metadata"
441
+ ],
442
+ "properties": {
443
+ "id": {
444
+ "type": "string",
445
+ "minLength": 1,
446
+ "maxLength": 160
447
+ },
448
+ "repo": {
449
+ "type": "string",
450
+ "minLength": 1,
451
+ "maxLength": 160
452
+ },
453
+ "path": {
454
+ "type": "string",
455
+ "minLength": 1,
456
+ "maxLength": 2048
457
+ },
458
+ "audience": {
459
+ "type": "string",
460
+ "minLength": 1,
461
+ "maxLength": 160
462
+ },
463
+ "digest": {
464
+ "type": "string",
465
+ "pattern": "^sha256:[a-f0-9]{64}$"
466
+ },
467
+ "metadata": {
468
+ "anyOf": [
469
+ {
470
+ "type": "string",
471
+ "pattern": "^sha256:[a-f0-9]{64}$"
472
+ },
473
+ {
474
+ "type": "null"
475
+ }
476
+ ]
477
+ },
478
+ "ext": {
479
+ "type": "object",
480
+ "description": "Reserved extensions; no approval, source-write or execution authority."
481
+ }
482
+ }
483
+ },
484
+ "maxItems": 256
485
+ },
486
+ "claimEvidence": {
487
+ "type": "array",
488
+ "items": {
489
+ "type": "object",
490
+ "additionalProperties": false,
491
+ "required": [
492
+ "mappingId",
493
+ "sourceFields",
494
+ "answers",
495
+ "evidenceField",
496
+ "references",
497
+ "resolved",
498
+ "unresolved",
499
+ "status"
500
+ ],
501
+ "properties": {
502
+ "mappingId": {
503
+ "type": "string",
504
+ "minLength": 1,
505
+ "maxLength": 300
506
+ },
507
+ "sourceFields": {
508
+ "type": "array",
509
+ "items": {
510
+ "type": "string",
511
+ "minLength": 1,
512
+ "maxLength": 300
513
+ },
514
+ "maxItems": 256
515
+ },
516
+ "answers": {
517
+ "type": "object"
518
+ },
519
+ "evidenceField": {
520
+ "type": "string",
521
+ "minLength": 1,
522
+ "maxLength": 300
523
+ },
524
+ "references": {
525
+ "type": "array",
526
+ "items": {
527
+ "type": "string",
528
+ "minLength": 1,
529
+ "maxLength": 2048
530
+ },
531
+ "maxItems": 256
532
+ },
533
+ "resolved": {
534
+ "type": "array",
535
+ "items": {
536
+ "type": "object",
537
+ "additionalProperties": false,
538
+ "required": [
539
+ "id",
540
+ "repo",
541
+ "path",
542
+ "digest",
543
+ "excerpt"
544
+ ],
545
+ "properties": {
546
+ "id": {
547
+ "type": "string",
548
+ "minLength": 1,
549
+ "maxLength": 160
550
+ },
551
+ "repo": {
552
+ "type": "string",
553
+ "minLength": 1,
554
+ "maxLength": 160
555
+ },
556
+ "path": {
557
+ "type": "string",
558
+ "minLength": 1,
559
+ "maxLength": 2048
560
+ },
561
+ "digest": {
562
+ "type": "string",
563
+ "pattern": "^sha256:[a-f0-9]{64}$"
564
+ },
565
+ "excerpt": {
566
+ "type": "string",
567
+ "minLength": 1,
568
+ "maxLength": 2000
569
+ },
570
+ "ext": {
571
+ "type": "object",
572
+ "description": "Reserved extensions; no approval, source-write or execution authority."
573
+ }
574
+ }
575
+ },
576
+ "maxItems": 256
577
+ },
578
+ "unresolved": {
579
+ "type": "array",
580
+ "items": {
581
+ "type": "string",
582
+ "minLength": 1,
583
+ "maxLength": 2048
584
+ },
585
+ "maxItems": 256
586
+ },
587
+ "status": {
588
+ "enum": [
589
+ "linked-source",
590
+ "unresolved",
591
+ "missing"
592
+ ]
593
+ },
594
+ "ext": {
595
+ "type": "object",
596
+ "description": "Reserved extensions; no approval, source-write or execution authority."
597
+ }
598
+ }
599
+ },
600
+ "maxItems": 256
601
+ },
602
+ "limitations": {
603
+ "type": "array",
604
+ "items": {
605
+ "type": "string",
606
+ "minLength": 1,
607
+ "maxLength": 500
608
+ },
609
+ "maxItems": 256
610
+ },
611
+ "digest": {
612
+ "type": "string",
613
+ "pattern": "^sha256:[a-f0-9]{64}$"
614
+ },
615
+ "ext": {
616
+ "type": "object",
617
+ "description": "Reserved extensions; no approval, source-write or execution authority."
618
+ }
619
+ }
620
+ },
621
+ "bound": {
622
+ "type": "object",
623
+ "additionalProperties": false,
624
+ "required": [
625
+ "schema",
626
+ "run",
627
+ "runDigest",
628
+ "snapshot"
629
+ ],
630
+ "properties": {
631
+ "schema": {
632
+ "const": "atelier-bound-run@v1"
633
+ },
634
+ "run": {
635
+ "$ref": "https://mnstry.ai/schemas/atelier/atelier-readiness-run.v1.schema.json"
636
+ },
637
+ "runDigest": {
638
+ "type": "string",
639
+ "pattern": "^sha256:[a-f0-9]{64}$"
640
+ },
641
+ "snapshot": {
642
+ "$ref": "#/$defs/evidence"
643
+ },
644
+ "ext": {
645
+ "type": "object",
646
+ "description": "Reserved extensions; no approval, source-write or execution authority."
647
+ },
648
+ "contractVersion": {
649
+ "type": "string",
650
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
651
+ }
652
+ }
653
+ },
654
+ "bundleRun": {
655
+ "type": "object",
656
+ "additionalProperties": false,
657
+ "required": [
658
+ "schema",
659
+ "run",
660
+ "runDigest",
661
+ "snapshot",
662
+ "decisions"
663
+ ],
664
+ "properties": {
665
+ "schema": {
666
+ "const": "atelier-bound-run@v1"
667
+ },
668
+ "run": {
669
+ "$ref": "https://mnstry.ai/schemas/atelier/atelier-readiness-run.v1.schema.json"
670
+ },
671
+ "runDigest": {
672
+ "type": "string",
673
+ "pattern": "^sha256:[a-f0-9]{64}$"
674
+ },
675
+ "snapshot": {
676
+ "$ref": "#/$defs/evidence"
677
+ },
678
+ "decisions": {
679
+ "type": "array",
680
+ "items": {
681
+ "$ref": "#/$defs/record"
682
+ },
683
+ "maxItems": 2000
684
+ },
685
+ "ext": {
686
+ "type": "object",
687
+ "description": "Reserved extensions; no approval, source-write or execution authority."
688
+ }
689
+ }
690
+ },
691
+ "bundle": {
692
+ "type": "object",
693
+ "additionalProperties": false,
694
+ "required": [
695
+ "schema",
696
+ "purpose",
697
+ "classification",
698
+ "members",
699
+ "responses",
700
+ "digest"
701
+ ],
702
+ "properties": {
703
+ "schema": {
704
+ "const": "atelier-inspection-bundle@v1"
705
+ },
706
+ "purpose": {
707
+ "const": "historical-inspection-only"
708
+ },
709
+ "classification": {
710
+ "const": "owner-selected-private-review"
711
+ },
712
+ "members": {
713
+ "type": "array",
714
+ "items": {
715
+ "type": "object",
716
+ "additionalProperties": false,
717
+ "required": [
718
+ "id",
719
+ "bytes",
720
+ "digest",
721
+ "value"
722
+ ],
723
+ "properties": {
724
+ "id": {
725
+ "type": "string",
726
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9:._-]{0,159}$"
727
+ },
728
+ "bytes": {
729
+ "type": "integer",
730
+ "minimum": 1,
731
+ "maximum": 4194304
732
+ },
733
+ "digest": {
734
+ "type": "string",
735
+ "pattern": "^sha256:[a-f0-9]{64}$"
736
+ },
737
+ "value": {
738
+ "$ref": "#/$defs/bundleRun"
739
+ },
740
+ "ext": {
741
+ "type": "object",
742
+ "description": "Reserved extensions; no approval, source-write or execution authority."
743
+ }
744
+ }
745
+ },
746
+ "maxItems": 20,
747
+ "minItems": 1
748
+ },
749
+ "responses": {
750
+ "type": "array",
751
+ "items": {
752
+ "$ref": "#/$defs/record"
753
+ },
754
+ "maxItems": 2000
755
+ },
756
+ "digest": {
757
+ "type": "string",
758
+ "pattern": "^sha256:[a-f0-9]{64}$"
759
+ },
760
+ "ext": {
761
+ "type": "object",
762
+ "description": "Reserved extensions; no approval, source-write or execution authority."
763
+ },
764
+ "contractVersion": {
765
+ "type": "string",
766
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
767
+ }
768
+ }
769
+ },
770
+ "lifecycle": {
771
+ "type": "object",
772
+ "additionalProperties": false,
773
+ "required": [
774
+ "schema",
775
+ "packs"
776
+ ],
777
+ "properties": {
778
+ "schema": {
779
+ "const": "atelier-pack-lifecycle@v1"
780
+ },
781
+ "packs": {
782
+ "type": "array",
783
+ "items": {
784
+ "type": "object",
785
+ "additionalProperties": false,
786
+ "required": [
787
+ "id",
788
+ "version",
789
+ "digest",
790
+ "compatibleRootVersions",
791
+ "status"
792
+ ],
793
+ "properties": {
794
+ "id": {
795
+ "type": "string",
796
+ "minLength": 1,
797
+ "maxLength": 160
798
+ },
799
+ "version": {
800
+ "type": "string",
801
+ "pattern": "^v[0-9]+$"
802
+ },
803
+ "digest": {
804
+ "type": "string",
805
+ "pattern": "^sha256:[a-f0-9]{64}$"
806
+ },
807
+ "compatibleRootVersions": {
808
+ "type": "array",
809
+ "items": {
810
+ "type": "string",
811
+ "minLength": 1,
812
+ "maxLength": 160
813
+ },
814
+ "maxItems": 100,
815
+ "minItems": 1,
816
+ "uniqueItems": true
817
+ },
818
+ "status": {
819
+ "enum": [
820
+ "active",
821
+ "deprecated",
822
+ "retired"
823
+ ]
824
+ },
825
+ "replacement": {
826
+ "type": "string",
827
+ "minLength": 1,
828
+ "maxLength": 160
829
+ },
830
+ "migrationId": {
831
+ "type": "string",
832
+ "minLength": 1,
833
+ "maxLength": 160
834
+ },
835
+ "ext": {
836
+ "type": "object",
837
+ "description": "Reserved extensions; no approval, source-write or execution authority."
838
+ }
839
+ }
840
+ },
841
+ "maxItems": 100
842
+ },
843
+ "ext": {
844
+ "type": "object",
845
+ "description": "Reserved extensions; no approval, source-write or execution authority."
846
+ },
847
+ "contractVersion": {
848
+ "type": "string",
849
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
850
+ }
851
+ }
852
+ },
853
+ "legacyRun": {
854
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
855
+ "$id": "https://mnstry.ai/schemas/atelier/atelier-readiness-run.v1.schema.json",
856
+ "$comment": "contract revision 1.1.0 (contract-stability epoch)",
857
+ "title": "MNSTRY Atelier Readiness Run v1",
858
+ "description": "Local, ignored, claim-first result of a readiness protocol run. A run can create proposed claims and draft packets, but it never grants runtime mutation, import, telemetry, egress, send-path, direct browser-write, or canonical graph/front-matter authority.",
859
+ "type": "object",
860
+ "additionalProperties": false,
861
+ "required": [
862
+ "schema",
863
+ "runId",
864
+ "protocolId",
865
+ "createdAt",
866
+ "project",
867
+ "answers",
868
+ "status",
869
+ "score",
870
+ "blockers",
871
+ "warnings",
872
+ "claims",
873
+ "safety"
874
+ ],
875
+ "allOf": [
876
+ {
877
+ "if": {
878
+ "properties": {
879
+ "status": {
880
+ "const": "ready"
881
+ }
882
+ }
883
+ },
884
+ "then": {
885
+ "properties": {
886
+ "blockers": {
887
+ "maxItems": 0
888
+ }
889
+ }
890
+ }
891
+ }
892
+ ],
893
+ "properties": {
894
+ "schema": {
895
+ "const": "atelier-readiness-run@v1"
896
+ },
897
+ "contractVersion": {
898
+ "type": "string",
899
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
900
+ },
901
+ "runId": {
902
+ "type": "string",
903
+ "pattern": "^readiness-run-[a-f0-9]{24}$"
904
+ },
905
+ "protocolId": {
906
+ "$ref": "#/$defs/protocolId"
907
+ },
908
+ "createdAt": {
909
+ "type": "string",
910
+ "format": "date-time"
911
+ },
912
+ "project": {
913
+ "type": "string",
914
+ "minLength": 1
915
+ },
916
+ "answers": {
917
+ "type": "object"
918
+ },
919
+ "status": {
920
+ "enum": [
921
+ "missing",
922
+ "draft",
923
+ "review-needed",
924
+ "ready",
925
+ "blocked"
926
+ ]
927
+ },
928
+ "score": {
929
+ "type": "integer",
930
+ "minimum": 0,
931
+ "maximum": 100
932
+ },
933
+ "blockers": {
934
+ "$ref": "#/$defs/stringList"
935
+ },
936
+ "warnings": {
937
+ "$ref": "#/$defs/stringList"
938
+ },
939
+ "claims": {
940
+ "type": "array",
941
+ "items": {
942
+ "$ref": "#/$defs/claim"
943
+ }
944
+ },
945
+ "safety": {
946
+ "$ref": "#/$defs/safety"
947
+ },
948
+ "ext": {
949
+ "type": "object",
950
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
951
+ }
952
+ },
953
+ "$defs": {
954
+ "protocolId": {
955
+ "type": "string",
956
+ "pattern": "^[a-z][a-z0-9-]*\\.[a-z][a-z0-9-]*:[a-z][a-z0-9._-]*$"
957
+ },
958
+ "stringList": {
959
+ "type": "array",
960
+ "items": {
961
+ "type": "string",
962
+ "minLength": 1
963
+ }
964
+ },
965
+ "claim": {
966
+ "type": "object",
967
+ "additionalProperties": false,
968
+ "required": [
969
+ "schema",
970
+ "claimId",
971
+ "subject",
972
+ "predicate",
973
+ "object",
974
+ "provider",
975
+ "status",
976
+ "promoted"
977
+ ],
978
+ "properties": {
979
+ "schema": {
980
+ "const": "atelier-claim@v1"
981
+ },
982
+ "claimId": {
983
+ "type": "string",
984
+ "pattern": "^claim:[a-z0-9][a-z0-9:-]*$"
985
+ },
986
+ "subject": {
987
+ "type": "string",
988
+ "pattern": "^[a-z0-9][a-z0-9-]*:[a-z0-9][a-z0-9:-]*$"
989
+ },
990
+ "predicate": {
991
+ "enum": [
992
+ "related",
993
+ "supports",
994
+ "supersedes",
995
+ "implements",
996
+ "depends_on",
997
+ "evidences",
998
+ "contradicts",
999
+ "belongs_to"
1000
+ ]
1001
+ },
1002
+ "object": {
1003
+ "type": "string",
1004
+ "pattern": "^[a-z0-9][a-z0-9-]*:[a-z0-9][a-z0-9:-]*$"
1005
+ },
1006
+ "provider": {
1007
+ "enum": [
1008
+ "atelier-readiness",
1009
+ "codex",
1010
+ "manual",
1011
+ "analysis",
1012
+ "claude",
1013
+ "script"
1014
+ ]
1015
+ },
1016
+ "status": {
1017
+ "const": "proposed"
1018
+ },
1019
+ "promoted": {
1020
+ "const": false
1021
+ },
1022
+ "confidence": {
1023
+ "type": "number",
1024
+ "minimum": 0,
1025
+ "maximum": 1
1026
+ },
1027
+ "evidence": {
1028
+ "type": "array",
1029
+ "items": {
1030
+ "type": "string",
1031
+ "minLength": 1
1032
+ },
1033
+ "minItems": 1
1034
+ },
1035
+ "notes": {
1036
+ "$ref": "#/$defs/stringList"
1037
+ },
1038
+ "createdAt": {
1039
+ "type": "string",
1040
+ "format": "date-time"
1041
+ },
1042
+ "ext": {
1043
+ "type": "object",
1044
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1045
+ }
1046
+ }
1047
+ },
1048
+ "safety": {
1049
+ "type": "object",
1050
+ "additionalProperties": false,
1051
+ "required": [
1052
+ "runtimeMutation",
1053
+ "runtimeImport",
1054
+ "canonicalWrites",
1055
+ "claimOnly",
1056
+ "storage"
1057
+ ],
1058
+ "properties": {
1059
+ "runtimeMutation": {
1060
+ "const": false
1061
+ },
1062
+ "runtimeImport": {
1063
+ "const": false
1064
+ },
1065
+ "canonicalWrites": {
1066
+ "const": false
1067
+ },
1068
+ "claimOnly": {
1069
+ "const": true
1070
+ },
1071
+ "storage": {
1072
+ "const": "ignored-local"
1073
+ },
1074
+ "ext": {
1075
+ "type": "object",
1076
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1077
+ }
1078
+ }
1079
+ }
1080
+ }
1081
+ },
1082
+ "legacyProtocol": {
1083
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1084
+ "$id": "https://mnstry.ai/schemas/atelier/atelier-readiness-protocol.v1.schema.json",
1085
+ "$comment": "contract revision 1.1.0 (contract-stability epoch)",
1086
+ "title": "MNSTRY Atelier Readiness Protocol v1",
1087
+ "description": "Claim-first protocol contract for guided MNSTRY tenant readiness. Protocols collect local answers, generate proposed claims and draft packets, and never grant runtime mutation, import, telemetry, egress, send-path, direct browser-write, or canonical front-matter authority.",
1088
+ "type": "object",
1089
+ "additionalProperties": false,
1090
+ "required": [
1091
+ "schema",
1092
+ "id",
1093
+ "version",
1094
+ "stage",
1095
+ "title",
1096
+ "purpose",
1097
+ "questions",
1098
+ "inputFields",
1099
+ "outputs",
1100
+ "claimMappings",
1101
+ "readinessRules",
1102
+ "graphLenses",
1103
+ "exportMappings",
1104
+ "ui",
1105
+ "safety"
1106
+ ],
1107
+ "properties": {
1108
+ "schema": {
1109
+ "const": "atelier-readiness-protocol@v1"
1110
+ },
1111
+ "contractVersion": {
1112
+ "type": "string",
1113
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$"
1114
+ },
1115
+ "id": {
1116
+ "$ref": "#/$defs/protocolId"
1117
+ },
1118
+ "slug": {
1119
+ "$ref": "#/$defs/slug"
1120
+ },
1121
+ "version": {
1122
+ "type": "string",
1123
+ "pattern": "^v[0-9]+$"
1124
+ },
1125
+ "stage": {
1126
+ "type": "string",
1127
+ "minLength": 1
1128
+ },
1129
+ "title": {
1130
+ "type": "string",
1131
+ "minLength": 1
1132
+ },
1133
+ "purpose": {
1134
+ "type": "string",
1135
+ "minLength": 1
1136
+ },
1137
+ "questions": {
1138
+ "type": "array",
1139
+ "items": {
1140
+ "$ref": "#/$defs/question"
1141
+ },
1142
+ "minItems": 1
1143
+ },
1144
+ "inputFields": {
1145
+ "type": "array",
1146
+ "items": {
1147
+ "$ref": "#/$defs/inputField"
1148
+ },
1149
+ "minItems": 1
1150
+ },
1151
+ "outputHints": {
1152
+ "type": "array",
1153
+ "items": {
1154
+ "$ref": "#/$defs/outputHint"
1155
+ }
1156
+ },
1157
+ "outputs": {
1158
+ "type": "object",
1159
+ "additionalProperties": false,
1160
+ "required": [
1161
+ "runSchema",
1162
+ "artifacts"
1163
+ ],
1164
+ "properties": {
1165
+ "runSchema": {
1166
+ "const": "atelier-readiness-run@v1"
1167
+ },
1168
+ "artifacts": {
1169
+ "type": "array",
1170
+ "items": {
1171
+ "$ref": "#/$defs/outputArtifact"
1172
+ }
1173
+ },
1174
+ "ext": {
1175
+ "type": "object",
1176
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1177
+ }
1178
+ }
1179
+ },
1180
+ "claimMappings": {
1181
+ "type": "array",
1182
+ "items": {
1183
+ "$ref": "#/$defs/claimMapping"
1184
+ },
1185
+ "minItems": 1
1186
+ },
1187
+ "readinessRules": {
1188
+ "type": "array",
1189
+ "items": {
1190
+ "$ref": "#/$defs/readinessRule"
1191
+ },
1192
+ "minItems": 1
1193
+ },
1194
+ "graphLenses": {
1195
+ "type": "array",
1196
+ "items": {
1197
+ "$ref": "#/$defs/graphLens"
1198
+ },
1199
+ "minItems": 1
1200
+ },
1201
+ "exportMappings": {
1202
+ "type": "array",
1203
+ "items": {
1204
+ "$ref": "#/$defs/exportMapping"
1205
+ },
1206
+ "minItems": 1
1207
+ },
1208
+ "ui": {
1209
+ "type": "object",
1210
+ "additionalProperties": false,
1211
+ "required": [
1212
+ "section",
1213
+ "title",
1214
+ "agentPrompt"
1215
+ ],
1216
+ "properties": {
1217
+ "section": {
1218
+ "const": "readiness-journey"
1219
+ },
1220
+ "title": {
1221
+ "type": "string",
1222
+ "minLength": 1
1223
+ },
1224
+ "description": {
1225
+ "type": "string"
1226
+ },
1227
+ "agentPrompt": {
1228
+ "type": "string",
1229
+ "minLength": 1
1230
+ },
1231
+ "ext": {
1232
+ "type": "object",
1233
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1234
+ }
1235
+ }
1236
+ },
1237
+ "safety": {
1238
+ "$ref": "#/$defs/safety"
1239
+ },
1240
+ "safetyPosture": {
1241
+ "type": "object"
1242
+ },
1243
+ "ext": {
1244
+ "type": "object",
1245
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1246
+ }
1247
+ },
1248
+ "$defs": {
1249
+ "protocolId": {
1250
+ "type": "string",
1251
+ "pattern": "^[a-z][a-z0-9-]*\\.[a-z][a-z0-9-]*:[a-z][a-z0-9._-]*$"
1252
+ },
1253
+ "termId": {
1254
+ "type": "string",
1255
+ "pattern": "^[a-z][a-z0-9-]*\\.[a-z][a-z0-9-]*:[a-z][a-z0-9._-]*(\\.[a-z0-9._-]+)?$"
1256
+ },
1257
+ "slug": {
1258
+ "type": "string",
1259
+ "pattern": "^[a-z][a-z0-9._-]*$"
1260
+ },
1261
+ "stringList": {
1262
+ "type": "array",
1263
+ "items": {
1264
+ "type": "string",
1265
+ "minLength": 1
1266
+ }
1267
+ },
1268
+ "question": {
1269
+ "type": "object",
1270
+ "additionalProperties": false,
1271
+ "required": [
1272
+ "id",
1273
+ "prompt",
1274
+ "inputFields",
1275
+ "required"
1276
+ ],
1277
+ "properties": {
1278
+ "id": {
1279
+ "type": "string",
1280
+ "minLength": 1
1281
+ },
1282
+ "prompt": {
1283
+ "type": "string",
1284
+ "minLength": 1
1285
+ },
1286
+ "inputFields": {
1287
+ "$ref": "#/$defs/stringList"
1288
+ },
1289
+ "required": {
1290
+ "type": "boolean"
1291
+ },
1292
+ "ext": {
1293
+ "type": "object",
1294
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1295
+ }
1296
+ }
1297
+ },
1298
+ "inputField": {
1299
+ "type": "object",
1300
+ "additionalProperties": false,
1301
+ "required": [
1302
+ "id",
1303
+ "type",
1304
+ "required",
1305
+ "description"
1306
+ ],
1307
+ "properties": {
1308
+ "id": {
1309
+ "type": "string",
1310
+ "minLength": 1
1311
+ },
1312
+ "type": {
1313
+ "enum": [
1314
+ "array",
1315
+ "boolean",
1316
+ "enum",
1317
+ "number",
1318
+ "string",
1319
+ "text"
1320
+ ]
1321
+ },
1322
+ "required": {
1323
+ "type": "boolean"
1324
+ },
1325
+ "description": {
1326
+ "type": "string",
1327
+ "minLength": 1
1328
+ },
1329
+ "values": {
1330
+ "$ref": "#/$defs/stringList"
1331
+ },
1332
+ "ext": {
1333
+ "type": "object",
1334
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1335
+ }
1336
+ }
1337
+ },
1338
+ "outputHint": {
1339
+ "type": "object",
1340
+ "additionalProperties": false,
1341
+ "required": [
1342
+ "id",
1343
+ "text"
1344
+ ],
1345
+ "properties": {
1346
+ "id": {
1347
+ "type": "string",
1348
+ "minLength": 1
1349
+ },
1350
+ "text": {
1351
+ "type": "string",
1352
+ "minLength": 1
1353
+ },
1354
+ "schema": {
1355
+ "type": "string"
1356
+ },
1357
+ "ext": {
1358
+ "type": "object",
1359
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1360
+ }
1361
+ }
1362
+ },
1363
+ "outputArtifact": {
1364
+ "type": "object",
1365
+ "additionalProperties": false,
1366
+ "required": [
1367
+ "id",
1368
+ "kind",
1369
+ "schema",
1370
+ "description"
1371
+ ],
1372
+ "properties": {
1373
+ "id": {
1374
+ "$ref": "#/$defs/termId"
1375
+ },
1376
+ "kind": {
1377
+ "enum": [
1378
+ "claim",
1379
+ "draft",
1380
+ "packet",
1381
+ "projection"
1382
+ ]
1383
+ },
1384
+ "schema": {
1385
+ "type": "string",
1386
+ "minLength": 1
1387
+ },
1388
+ "description": {
1389
+ "type": "string",
1390
+ "minLength": 1
1391
+ },
1392
+ "ext": {
1393
+ "type": "object",
1394
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1395
+ }
1396
+ }
1397
+ },
1398
+ "claimMapping": {
1399
+ "type": "object",
1400
+ "additionalProperties": false,
1401
+ "required": [
1402
+ "id",
1403
+ "claimPredicate",
1404
+ "sourceFields",
1405
+ "target",
1406
+ "evidence"
1407
+ ],
1408
+ "properties": {
1409
+ "id": {
1410
+ "$ref": "#/$defs/termId"
1411
+ },
1412
+ "claimPredicate": {
1413
+ "enum": [
1414
+ "related",
1415
+ "supports",
1416
+ "supersedes",
1417
+ "implements",
1418
+ "depends_on",
1419
+ "evidences",
1420
+ "contradicts",
1421
+ "belongs_to"
1422
+ ]
1423
+ },
1424
+ "sourceFields": {
1425
+ "$ref": "#/$defs/stringList"
1426
+ },
1427
+ "target": {
1428
+ "const": "atelier-claim@v1"
1429
+ },
1430
+ "evidence": {
1431
+ "type": "string",
1432
+ "minLength": 1
1433
+ },
1434
+ "ext": {
1435
+ "type": "object",
1436
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1437
+ }
1438
+ }
1439
+ },
1440
+ "readinessRule": {
1441
+ "type": "object",
1442
+ "additionalProperties": false,
1443
+ "required": [
1444
+ "id",
1445
+ "severity",
1446
+ "condition",
1447
+ "remediation",
1448
+ "failClosed"
1449
+ ],
1450
+ "properties": {
1451
+ "id": {
1452
+ "$ref": "#/$defs/termId"
1453
+ },
1454
+ "severity": {
1455
+ "enum": [
1456
+ "info",
1457
+ "warning",
1458
+ "blocker"
1459
+ ]
1460
+ },
1461
+ "condition": {
1462
+ "type": "string",
1463
+ "minLength": 1
1464
+ },
1465
+ "remediation": {
1466
+ "type": "string",
1467
+ "minLength": 1
1468
+ },
1469
+ "failClosed": {
1470
+ "type": "boolean"
1471
+ },
1472
+ "ext": {
1473
+ "type": "object",
1474
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1475
+ }
1476
+ }
1477
+ },
1478
+ "graphLens": {
1479
+ "type": "object",
1480
+ "additionalProperties": false,
1481
+ "required": [
1482
+ "id",
1483
+ "title",
1484
+ "query"
1485
+ ],
1486
+ "properties": {
1487
+ "id": {
1488
+ "$ref": "#/$defs/termId"
1489
+ },
1490
+ "title": {
1491
+ "type": "string",
1492
+ "minLength": 1
1493
+ },
1494
+ "query": {
1495
+ "type": "object"
1496
+ },
1497
+ "ext": {
1498
+ "type": "object",
1499
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1500
+ }
1501
+ }
1502
+ },
1503
+ "exportMapping": {
1504
+ "type": "object",
1505
+ "additionalProperties": false,
1506
+ "required": [
1507
+ "id",
1508
+ "sourceField",
1509
+ "sourceTerm",
1510
+ "target",
1511
+ "runtimeOwner",
1512
+ "targetCollection"
1513
+ ],
1514
+ "properties": {
1515
+ "id": {
1516
+ "$ref": "#/$defs/termId"
1517
+ },
1518
+ "sourceField": {
1519
+ "type": "string",
1520
+ "minLength": 1
1521
+ },
1522
+ "sourceTerm": {
1523
+ "$ref": "#/$defs/termId"
1524
+ },
1525
+ "target": {
1526
+ "enum": [
1527
+ "content.material",
1528
+ "core.artifact",
1529
+ "core.trackable",
1530
+ "scheduling.commitment",
1531
+ "space.space",
1532
+ "space.provision"
1533
+ ]
1534
+ },
1535
+ "runtimeOwner": {
1536
+ "type": "string",
1537
+ "minLength": 1
1538
+ },
1539
+ "targetCollection": {
1540
+ "type": "string",
1541
+ "minLength": 1
1542
+ },
1543
+ "ext": {
1544
+ "type": "object",
1545
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1546
+ }
1547
+ }
1548
+ },
1549
+ "safety": {
1550
+ "type": "object",
1551
+ "additionalProperties": false,
1552
+ "required": [
1553
+ "runtimeMutation",
1554
+ "runtimeImport",
1555
+ "canonicalWrites",
1556
+ "claimOnly",
1557
+ "telemetry",
1558
+ "egress",
1559
+ "sendPath",
1560
+ "browserApply",
1561
+ "dryRunOnly"
1562
+ ],
1563
+ "properties": {
1564
+ "runtimeMutation": {
1565
+ "const": false
1566
+ },
1567
+ "runtimeImport": {
1568
+ "const": false
1569
+ },
1570
+ "canonicalWrites": {
1571
+ "const": false
1572
+ },
1573
+ "claimOnly": {
1574
+ "const": true
1575
+ },
1576
+ "telemetry": {
1577
+ "const": false
1578
+ },
1579
+ "egress": {
1580
+ "const": false
1581
+ },
1582
+ "sendPath": {
1583
+ "const": false
1584
+ },
1585
+ "browserApply": {
1586
+ "const": false
1587
+ },
1588
+ "dryRunOnly": {
1589
+ "const": true
1590
+ },
1591
+ "ext": {
1592
+ "type": "object",
1593
+ "description": "Reserved extension container. Producers MAY add namespaced members (recommend vendor-prefixed keys). Consumers MUST ignore members they do not recognize. Contents are not validated at v1 and carry no authority over first-class fields."
1594
+ }
1595
+ }
1596
+ }
1597
+ }
1598
+ }
1599
+ },
1600
+ "$comment": "contract revision 1.0.0"
1601
+ }