@mnstry/atelier 0.2.0-alpha.1 → 0.2.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/CHANGELOG.md +372 -0
  2. package/README.md +402 -205
  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-repository-observation.v1.schema.json +163 -0
  25. package/contracts/atelier-review.v1.schema.json +1601 -0
  26. package/contracts/atelier-skill-steward.v1.schema.json +692 -0
  27. package/contracts/atelier-upgrade-plan.v2.schema.json +398 -0
  28. package/contracts/atelier-upgrade-receipt.v1.schema.json +99 -0
  29. package/contracts/atelier-vault-publication.v1.schema.json +58 -0
  30. package/contracts/public-api-baseline.json +57 -0
  31. package/docs/assurance-controls.md +49 -0
  32. package/docs/atelier-runtime.md +28 -2
  33. package/docs/atelier-sync.md +172 -0
  34. package/docs/blocks/audience-visibility.md +9 -0
  35. package/docs/blocks/claims.md +61 -0
  36. package/docs/blocks/conformance-admission.md +15 -0
  37. package/docs/blocks/will-not-do.md +18 -0
  38. package/docs/coauthor-session.md +57 -0
  39. package/docs/connected-composition.md +75 -0
  40. package/docs/continuity.md +3 -4
  41. package/docs/decisions.md +167 -0
  42. package/docs/design.md +167 -0
  43. package/docs/exact-upgrades.md +159 -0
  44. package/docs/extension-pack-lifecycle.md +33 -0
  45. package/docs/guided-upgrades.md +99 -0
  46. package/docs/install.md +99 -16
  47. package/docs/intake-and-guides.md +65 -0
  48. package/docs/integration-and-review-plan.md +409 -0
  49. package/docs/integration-contract-decisions.md +22 -0
  50. package/docs/knowledge-graph.md +8 -4
  51. package/docs/local-review.md +84 -0
  52. package/docs/local-services.md +328 -0
  53. package/docs/local-state.md +107 -0
  54. package/docs/obsidian-contract.md +690 -0
  55. package/docs/obsidian.md +423 -0
  56. package/docs/portable-presentation.md +328 -0
  57. package/docs/presentation-consumer-boundaries.md +75 -0
  58. package/docs/presentation-review-disposition.md +47 -0
  59. package/docs/project-command-inventory.md +38 -0
  60. package/docs/project-options.md +53 -0
  61. package/docs/release-engineering.md +174 -12
  62. package/docs/repo-boundary-guard.md +12 -2
  63. package/docs/review-portability.md +55 -0
  64. package/docs/skill-steward.md +156 -0
  65. package/docs/upgrade.md +146 -5
  66. package/docs/vault-service.md +292 -0
  67. package/fixtures/atelier-coauthor/invalid/authority.v1.json +5 -0
  68. package/fixtures/atelier-coauthor/valid/config.v1.json +12 -0
  69. package/fixtures/atelier-guide/invalid/authority.v1.json +11 -0
  70. package/fixtures/atelier-guide/valid/capability.v1.json +10 -0
  71. package/fixtures/atelier-guide/valid/consent.v1.json +11 -0
  72. package/fixtures/atelier-guide/valid/engagement.v1.json +7 -0
  73. package/fixtures/atelier-guide/valid/offer.v1.json +10 -0
  74. package/fixtures/atelier-intake/invalid/authority.v1.json +9 -0
  75. package/fixtures/atelier-intake/valid/attempt.v1.json +8 -0
  76. package/fixtures/atelier-intake/valid/completion.v1.json +9 -0
  77. package/fixtures/atelier-intake/valid/source.v1.json +7 -0
  78. package/fixtures/atelier-repository-observation/invalid/complete-with-blocker.v1.json +18 -0
  79. package/fixtures/atelier-repository-observation/valid/complete-local.v1.json +48 -0
  80. package/fixtures/atelier-review/invalid/authenticated-identity.v1.json +22 -0
  81. package/fixtures/atelier-review/valid/bound.v1.json +229 -0
  82. package/fixtures/atelier-review/valid/bundle.v1.json +267 -0
  83. package/fixtures/atelier-review/valid/contribution.v1.json +22 -0
  84. package/fixtures/atelier-review/valid/lifecycle.v1.json +14 -0
  85. package/fixtures/atelier-skill-steward/audit/invalid/source-mutation.v1.json +26 -0
  86. package/fixtures/atelier-skill-steward/audit/valid/clean.v1.json +26 -0
  87. package/fixtures/atelier-skill-steward/candidates/invalid/workflow-key.v1.json +37 -0
  88. package/fixtures/atelier-skill-steward/candidates/valid/create.v1.json +37 -0
  89. package/fixtures/atelier-skill-steward/lock/invalid/bad-digest.v1.json +18 -0
  90. package/fixtures/atelier-skill-steward/lock/valid/installed.v1.json +23 -0
  91. package/fixtures/atelier-skill-steward/plan/invalid/delete-action.v1.json +33 -0
  92. package/fixtures/atelier-skill-steward/plan/valid/add.v1.json +33 -0
  93. package/fixtures/atelier-upgrade-transaction/adoption-policy/invalid/example.json +12 -0
  94. package/fixtures/atelier-upgrade-transaction/adoption-policy/valid/example.json +11 -0
  95. package/fixtures/atelier-upgrade-transaction/migration/invalid/example.json +20 -0
  96. package/fixtures/atelier-upgrade-transaction/migration/valid/example.json +19 -0
  97. package/fixtures/atelier-upgrade-transaction/upgrade-plan/invalid/example.json +58 -0
  98. package/fixtures/atelier-upgrade-transaction/upgrade-plan/valid/example.json +57 -0
  99. package/fixtures/atelier-upgrade-transaction/upgrade-receipt/invalid/example.json +15 -0
  100. package/fixtures/atelier-upgrade-transaction/upgrade-receipt/valid/example.json +14 -0
  101. package/fixtures/atelier-vault-publication/invalid/publication.json +5 -0
  102. package/fixtures/atelier-vault-publication/valid/publication.json +11 -0
  103. package/fixtures/decisions/request/invalid/unknown-authority.v1.json +61 -0
  104. package/fixtures/decisions/request/valid/triage.v1.json +60 -0
  105. package/fixtures/decisions/result/invalid/execution-authority.v1.json +50 -0
  106. package/fixtures/decisions/result/valid/abstained.v1.json +23 -0
  107. package/fixtures/decisions/result/valid/assessed.v1.json +50 -0
  108. package/fixtures/obsidian/acceptance/ap05-extra-notes.json +14 -0
  109. package/fixtures/obsidian/acceptance/receipts/G07.valid.v1.json +63 -0
  110. package/fixtures/obsidian/acceptance/receipts/G13.valid.v1.json +69 -0
  111. package/fixtures/obsidian/acceptance/receipts/G14.valid.v1.json +62 -0
  112. package/fixtures/obsidian/acceptance/receipts/G15.valid.v1.json +56 -0
  113. package/fixtures/obsidian/acceptance/receipts/G16.valid.v1.json +73 -0
  114. package/fixtures/obsidian/acceptance/receipts/G17.valid.v1.json +75 -0
  115. package/fixtures/obsidian/acceptance/receipts/G18.valid.v1.json +64 -0
  116. package/fixtures/obsidian/acceptance/service-sentinels.json +10 -0
  117. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/duplicate-evidence-name.v1.json +39 -0
  118. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/evidence-by-absolute-path.v1.json +34 -0
  119. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/missing-candidate-tree.v1.json +33 -0
  120. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/no-evidence.v1.json +28 -0
  121. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/unknown-outcome.v1.json +34 -0
  122. package/fixtures/obsidian/contracts/acceptance-receipt/invalid/unknown-top-level-field.v1.json +35 -0
  123. package/fixtures/obsidian/contracts/acceptance-receipt/valid/node-gate.v1.json +34 -0
  124. package/fixtures/obsidian/contracts/apply-policy/invalid/automatic-without-edit-class.v1.json +27 -0
  125. package/fixtures/obsidian/contracts/apply-policy/invalid/conflict-overwrite.v1.json +29 -0
  126. package/fixtures/obsidian/contracts/apply-policy/invalid/missing-policy-digest.v1.json +28 -0
  127. package/fixtures/obsidian/contracts/apply-policy/invalid/unbounded-batch.v1.json +29 -0
  128. package/fixtures/obsidian/contracts/apply-policy/invalid/unimplemented-edit-class.v1.json +30 -0
  129. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-mode.v1.json +29 -0
  130. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-selector-operator.v1.json +22 -0
  131. package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-top-level-field.v1.json +30 -0
  132. package/fixtures/obsidian/contracts/apply-policy/valid/automatic-scoped.v1.json +29 -0
  133. package/fixtures/obsidian/contracts/apply-policy/valid/manual-default.v1.json +20 -0
  134. package/fixtures/obsidian/contracts/corpus-profile/invalid/absolute-path-in-ext.v1.json +30 -0
  135. package/fixtures/obsidian/contracts/corpus-profile/invalid/absolute-repository-root.v1.json +27 -0
  136. package/fixtures/obsidian/contracts/corpus-profile/invalid/duplicate-repository-id.v1.json +27 -0
  137. package/fixtures/obsidian/contracts/corpus-profile/invalid/overlapping-managed-roots.v1.json +27 -0
  138. package/fixtures/obsidian/contracts/corpus-profile/invalid/unknown-enrollment.v1.json +27 -0
  139. package/fixtures/obsidian/contracts/corpus-profile/invalid/unknown-top-level-field.v1.json +28 -0
  140. package/fixtures/obsidian/contracts/corpus-profile/valid/three-repositories.v1.json +27 -0
  141. package/fixtures/obsidian/contracts/edit-operation/invalid/absolute-recovery-ref.v1.json +21 -0
  142. package/fixtures/obsidian/contracts/edit-operation/invalid/inline-observed-bytes.v1.json +22 -0
  143. package/fixtures/obsidian/contracts/edit-operation/invalid/missing-base-digest.v1.json +20 -0
  144. package/fixtures/obsidian/contracts/edit-operation/invalid/short-idempotency-key.v1.json +21 -0
  145. package/fixtures/obsidian/contracts/edit-operation/invalid/unknown-kind.v1.json +21 -0
  146. package/fixtures/obsidian/contracts/edit-operation/valid/pending-body-replacement.v1.json +21 -0
  147. package/fixtures/obsidian/contracts/ext-settings/invalid/absolute-path-prefix.v1.json +28 -0
  148. package/fixtures/obsidian/contracts/ext-settings/invalid/apply-policy-in-portable-settings.v1.json +30 -0
  149. package/fixtures/obsidian/contracts/ext-settings/invalid/duplicate-scope-id.v1.json +27 -0
  150. package/fixtures/obsidian/contracts/ext-settings/invalid/machine-local-vault-path.v1.json +28 -0
  151. package/fixtures/obsidian/contracts/ext-settings/invalid/service-port-in-portable-settings.v1.json +28 -0
  152. package/fixtures/obsidian/contracts/ext-settings/invalid/unknown-default-scope.v1.json +27 -0
  153. package/fixtures/obsidian/contracts/ext-settings/valid/disabled.v1.json +5 -0
  154. package/fixtures/obsidian/contracts/ext-settings/valid/enabled-with-scopes.v1.json +27 -0
  155. package/fixtures/obsidian/contracts/generation-manifest/invalid/absolute-note-path.v1.json +114 -0
  156. package/fixtures/obsidian/contracts/generation-manifest/invalid/complete-with-unwritten-notes.v1.json +114 -0
  157. package/fixtures/obsidian/contracts/generation-manifest/invalid/derived-link-claimed-declared.v1.json +114 -0
  158. package/fixtures/obsidian/contracts/generation-manifest/invalid/duplicate-note-identity.v1.json +114 -0
  159. package/fixtures/obsidian/contracts/generation-manifest/invalid/in-scope-endpoint-missing.v1.json +114 -0
  160. package/fixtures/obsidian/contracts/generation-manifest/invalid/title-only-note-path.v1.json +114 -0
  161. package/fixtures/obsidian/contracts/generation-manifest/invalid/unknown-note-field.v1.json +115 -0
  162. package/fixtures/obsidian/contracts/generation-manifest/invalid/unknown-relation-type.v1.json +114 -0
  163. package/fixtures/obsidian/contracts/generation-manifest/invalid/withheld-endpoint.v1.json +114 -0
  164. package/fixtures/obsidian/contracts/generation-manifest/valid/two-notes.v1.json +114 -0
  165. package/fixtures/obsidian/contracts/oracles/scope-cases.json +412 -0
  166. package/fixtures/obsidian/contracts/proposal-receipt/invalid/accepted-without-proposal-id.v1.json +12 -0
  167. package/fixtures/obsidian/contracts/proposal-receipt/invalid/missing-adapter-operation-id.v1.json +11 -0
  168. package/fixtures/obsidian/contracts/proposal-receipt/invalid/unknown-backpressure-outcome.v1.json +12 -0
  169. package/fixtures/obsidian/contracts/proposal-receipt/invalid/unknown-top-level-field.v1.json +13 -0
  170. package/fixtures/obsidian/contracts/proposal-receipt/valid/accepted-new.v1.json +12 -0
  171. package/fixtures/obsidian/contracts/proposal-receipt/valid/deferred.v1.json +12 -0
  172. package/fixtures/obsidian/contracts/publication-journal/invalid/absolute-recovery-ref.v1.json +47 -0
  173. package/fixtures/obsidian/contracts/publication-journal/invalid/duplicate-sequence.v1.json +47 -0
  174. package/fixtures/obsidian/contracts/publication-journal/invalid/empty-protocol-id.v1.json +47 -0
  175. package/fixtures/obsidian/contracts/publication-journal/invalid/missing-protocol-id.v1.json +46 -0
  176. package/fixtures/obsidian/contracts/publication-journal/invalid/unknown-entry-field.v1.json +48 -0
  177. package/fixtures/obsidian/contracts/publication-journal/invalid/unknown-state.v1.json +47 -0
  178. package/fixtures/obsidian/contracts/publication-journal/valid/committed.v1.json +47 -0
  179. package/fixtures/obsidian/contracts/publication-journal/valid/updating-after-restart.v1.json +22 -0
  180. package/fixtures/obsidian/contracts/scope/invalid/absolute-path-prefix.v1.json +15 -0
  181. package/fixtures/obsidian/contracts/scope/invalid/duplicate-ids.v1.json +18 -0
  182. package/fixtures/obsidian/contracts/scope/invalid/expansion-without-node-budget.v1.json +40 -0
  183. package/fixtures/obsidian/contracts/scope/invalid/full-mode-with-subset.v1.json +8 -0
  184. package/fixtures/obsidian/contracts/scope/invalid/unknown-mode.v1.json +41 -0
  185. package/fixtures/obsidian/contracts/scope/invalid/unknown-selector-key.v1.json +15 -0
  186. package/fixtures/obsidian/contracts/scope/invalid/unknown-selector-operator.v1.json +14 -0
  187. package/fixtures/obsidian/contracts/scope/invalid/unknown-top-level-field.v1.json +42 -0
  188. package/fixtures/obsidian/contracts/scope/valid/explicit-empty.v1.json +8 -0
  189. package/fixtures/obsidian/contracts/scope/valid/focus.v1.json +11 -0
  190. package/fixtures/obsidian/contracts/scope/valid/full.v1.json +8 -0
  191. package/fixtures/obsidian/contracts/scope/valid/scoped-set-expression.v1.json +41 -0
  192. package/fixtures/obsidian/contracts/service-state/invalid/hostname-instead-of-literal-loopback.v1.json +23 -0
  193. package/fixtures/obsidian/contracts/service-state/invalid/missing-consent.v1.json +18 -0
  194. package/fixtures/obsidian/contracts/service-state/invalid/privileged-port.v1.json +23 -0
  195. package/fixtures/obsidian/contracts/service-state/invalid/unknown-top-level-field.v1.json +24 -0
  196. package/fixtures/obsidian/contracts/service-state/invalid/wildcard-bind.v1.json +23 -0
  197. package/fixtures/obsidian/contracts/service-state/valid/healthy.v1.json +23 -0
  198. package/fixtures/obsidian/contracts/source-snapshot/invalid/absolute-file-path.v1.json +48 -0
  199. package/fixtures/obsidian/contracts/source-snapshot/invalid/duplicate-repository-id.v1.json +48 -0
  200. package/fixtures/obsidian/contracts/source-snapshot/invalid/mixed-read.v1.json +48 -0
  201. package/fixtures/obsidian/contracts/source-snapshot/invalid/parent-traversal-path.v1.json +48 -0
  202. package/fixtures/obsidian/contracts/source-snapshot/invalid/unknown-file-field.v1.json +49 -0
  203. package/fixtures/obsidian/contracts/source-snapshot/valid/two-repositories.v1.json +48 -0
  204. package/fixtures/obsidian/edits/workspace.json +65 -0
  205. package/fixtures/obsidian/materialization/expected-full.json +99 -0
  206. package/fixtures/obsidian/materialization/expected-scoped.json +39 -0
  207. package/fixtures/obsidian/materialization/workspace.json +54 -0
  208. package/fixtures/obsidian/proposals/expected-shapes.json +11 -0
  209. package/fixtures/projects/sample-workspace/content/source.html.kg.json +4 -1
  210. package/fixtures/projects/source-formats-workspace/content/data.json.kg.json +4 -1
  211. package/fixtures/projects/source-formats-workspace/content/logo.png.kg.json +4 -1
  212. package/fixtures/projects/source-formats-workspace/content/metrics.csv.kg.json +4 -1
  213. package/fixtures/projects/source-formats-workspace/content/pipeline.yaml.kg.json +4 -1
  214. package/fixtures/ui/presentation/pane.v1.json +7 -0
  215. package/fixtures/ui/presentation/reference.v1.json +293 -0
  216. package/package.json +86 -10
  217. package/skills/claude/atelier-guided-coauthor/SKILL.md +49 -0
  218. package/skills/claude/atelier-guided-upgrade/SKILL.md +97 -0
  219. package/skills/claude/atelier-local-service/SKILL.md +47 -0
  220. package/skills/claude/atelier-open/SKILL.md +11 -5
  221. package/skills/claude/atelier-public-boundary/SKILL.md +31 -0
  222. package/skills/claude/atelier-skill-steward/SKILL.md +62 -0
  223. package/skills/claude/mnstry-readiness/SKILL.md +5 -0
  224. package/skills/codex/atelier-guided-coauthor/SKILL.md +49 -0
  225. package/skills/codex/atelier-guided-upgrade/SKILL.md +97 -0
  226. package/skills/codex/atelier-local-service/SKILL.md +47 -0
  227. package/skills/codex/atelier-open/SKILL.md +11 -5
  228. package/skills/codex/atelier-public-boundary/SKILL.md +31 -0
  229. package/skills/codex/atelier-skill-steward/SKILL.md +62 -0
  230. package/skills/codex/mnstry-readiness/SKILL.md +5 -0
  231. package/src/access/preview-enforcer.mjs +84 -0
  232. package/src/boundary/content-rules.mjs +283 -20
  233. package/src/boundary/policy.mjs +213 -91
  234. package/src/cli/execute-command.mjs +36 -0
  235. package/src/cli/project-options.mjs +58 -0
  236. package/src/cli/run.mjs +78 -10
  237. package/src/coauthor/session.mjs +161 -0
  238. package/src/coauthor/store.mjs +173 -0
  239. package/src/collaboration/event-ledger.mjs +348 -0
  240. package/src/collaboration/index.mjs +17 -0
  241. package/src/collaboration/inspection-bundle.mjs +223 -0
  242. package/src/collaboration/proposals.mjs +265 -65
  243. package/src/collaboration/review-contracts.mjs +25 -0
  244. package/src/collaboration/review-store.mjs +305 -0
  245. package/src/commands/attestation.mjs +20 -6
  246. package/src/commands/coauthor.mjs +26 -0
  247. package/src/commands/config.mjs +6 -1
  248. package/src/commands/disclosure.mjs +133 -0
  249. package/src/commands/distribution.mjs +2 -1
  250. package/src/commands/extension-pack.mjs +17 -9
  251. package/src/commands/init.mjs +46 -6
  252. package/src/commands/obsidian.mjs +371 -0
  253. package/src/commands/review.mjs +147 -0
  254. package/src/commands/server.mjs +1 -4
  255. package/src/commands/setup.mjs +51 -14
  256. package/src/commands/skills.mjs +199 -0
  257. package/src/commands/sync.mjs +107 -0
  258. package/src/composition/registry.mjs +27 -0
  259. package/src/composition/wire.mjs +122 -0
  260. package/src/contracts/corpus.mjs +35 -0
  261. package/src/decisions/contracts.d.mts +96 -0
  262. package/src/decisions/contracts.mjs +321 -0
  263. package/src/disclosure/content-scan.mjs +206 -0
  264. package/src/egress/check.mjs +7 -38
  265. package/src/egress/forbidden-egress.mjs +32 -18
  266. package/src/export/atelier-export-contract.mjs +16 -1
  267. package/src/extension-packs/lifecycle.mjs +154 -0
  268. package/src/graph/graph.mjs +176 -316
  269. package/src/graph/knowledge-graph.mjs +643 -43
  270. package/src/guides/contracts.mjs +54 -0
  271. package/src/harness/context-client.mjs +9 -1
  272. package/src/index.mjs +41 -0
  273. package/src/intake/store.mjs +119 -0
  274. package/src/preview/channel.mjs +89 -0
  275. package/src/project/config.mjs +112 -52
  276. package/src/project/durable-state.mjs +161 -0
  277. package/src/project/file-class.mjs +180 -0
  278. package/src/project/package-root.mjs +10 -0
  279. package/src/project/path-match.mjs +38 -15
  280. package/src/project/private-state.mjs +120 -0
  281. package/src/projection/obsidian/contracts.mjs +571 -0
  282. package/src/projection/obsidian/edits/align.mjs +169 -0
  283. package/src/projection/obsidian/edits/apply.mjs +889 -0
  284. package/src/projection/obsidian/edits/arbitrate.mjs +414 -0
  285. package/src/projection/obsidian/edits/contribution.mjs +108 -0
  286. package/src/projection/obsidian/edits/index.mjs +19 -0
  287. package/src/projection/obsidian/edits/object-identity.mjs +61 -0
  288. package/src/projection/obsidian/edits/object-store.mjs +517 -0
  289. package/src/projection/obsidian/edits/observe.mjs +123 -0
  290. package/src/projection/obsidian/edits/policy.mjs +123 -0
  291. package/src/projection/obsidian/edits/regions.mjs +648 -0
  292. package/src/projection/obsidian/materialize/byte-lens.mjs +98 -0
  293. package/src/projection/obsidian/materialize/index.mjs +7 -0
  294. package/src/projection/obsidian/materialize/path-registry.mjs +105 -0
  295. package/src/projection/obsidian/materialize/prepare-view.mjs +746 -0
  296. package/src/projection/obsidian/materialize/settings.mjs +57 -0
  297. package/src/projection/obsidian/materialize/stage.mjs +27 -0
  298. package/src/projection/obsidian/proposals/adapter.mjs +572 -0
  299. package/src/projection/obsidian/proposals/backpressure.mjs +113 -0
  300. package/src/projection/obsidian/proposals/contribution.mjs +55 -0
  301. package/src/projection/obsidian/proposals/index.mjs +23 -0
  302. package/src/projection/obsidian/proposals/observation.mjs +216 -0
  303. package/src/projection/obsidian/proposals/queue.mjs +277 -0
  304. package/src/projection/obsidian/proposals/router.mjs +168 -0
  305. package/src/projection/obsidian/publication/bridge-script.mjs +266 -0
  306. package/src/projection/obsidian/publication/exchange.mjs +117 -0
  307. package/src/projection/obsidian/publication/index.mjs +5 -0
  308. package/src/projection/obsidian/publication/publisher.mjs +588 -0
  309. package/src/projection/obsidian/publication/test-seam.mjs +16 -0
  310. package/src/projection/obsidian/publication/transport.mjs +160 -0
  311. package/src/projection/obsidian/recovery/index.mjs +6 -0
  312. package/src/projection/obsidian/recovery/journal.mjs +134 -0
  313. package/src/projection/obsidian/recovery/late-writer.mjs +46 -0
  314. package/src/projection/obsidian/recovery/restart.mjs +316 -0
  315. package/src/projection/obsidian/recovery/store.mjs +234 -0
  316. package/src/projection/obsidian/selection-ui/conflict-view.mjs +91 -0
  317. package/src/projection/obsidian/selection-ui/contribution.mjs +141 -0
  318. package/src/projection/obsidian/selection-ui/focus.mjs +82 -0
  319. package/src/projection/obsidian/selection-ui/index.mjs +12 -0
  320. package/src/projection/obsidian/selection-ui/policy-setup.mjs +107 -0
  321. package/src/projection/obsidian/selection-ui/receipt.mjs +173 -0
  322. package/src/projection/obsidian/selection-ui/selection-state.mjs +122 -0
  323. package/src/projection/obsidian/selection-ui/selection.mjs +109 -0
  324. package/src/projection/project.mjs +28 -19
  325. package/src/readiness-protocols/evidence.mjs +282 -0
  326. package/src/readiness-protocols/runtime.mjs +4 -3
  327. package/src/readiness-protocols/source-read.mjs +39 -0
  328. package/src/runtime/git-adapter.mjs +189 -0
  329. package/src/runtime/local-state.mjs +439 -0
  330. package/src/runtime/obsidian/app-capability.mjs +129 -0
  331. package/src/runtime/obsidian/app-production-seams.mjs +105 -0
  332. package/src/runtime/obsidian/contributions/proposal-adapter.mjs +4 -0
  333. package/src/runtime/obsidian/contributions/selection-ui.mjs +4 -0
  334. package/src/runtime/obsidian/contributions/source-apply.mjs +4 -0
  335. package/src/runtime/obsidian/contributions.mjs +27 -0
  336. package/src/runtime/obsidian/documents.mjs +37 -0
  337. package/src/runtime/obsidian/enablement.mjs +53 -0
  338. package/src/runtime/obsidian/engine.mjs +532 -0
  339. package/src/runtime/obsidian/errors.mjs +14 -0
  340. package/src/runtime/obsidian/extension-points.mjs +103 -0
  341. package/src/runtime/obsidian/index.mjs +34 -0
  342. package/src/runtime/obsidian/lifecycle.mjs +258 -0
  343. package/src/runtime/obsidian/machine-settings.mjs +260 -0
  344. package/src/runtime/obsidian/observation.mjs +158 -0
  345. package/src/runtime/obsidian/opening.mjs +263 -0
  346. package/src/runtime/obsidian/pending-edits.mjs +141 -0
  347. package/src/runtime/obsidian/pipeline.mjs +122 -0
  348. package/src/runtime/obsidian/private-lock.mjs +156 -0
  349. package/src/runtime/obsidian/process-identity.mjs +58 -0
  350. package/src/runtime/obsidian/service-client.mjs +66 -0
  351. package/src/runtime/obsidian/service-entry-path.mjs +9 -0
  352. package/src/runtime/obsidian/service-main.mjs +91 -0
  353. package/src/runtime/obsidian/service-record.mjs +169 -0
  354. package/src/runtime/obsidian/service-server.mjs +121 -0
  355. package/src/runtime/obsidian/service.mjs +216 -0
  356. package/src/runtime/obsidian/startup-adapters.mjs +87 -0
  357. package/src/runtime/obsidian/state-store.mjs +180 -0
  358. package/src/runtime/obsidian/sync-notice.mjs +33 -0
  359. package/src/runtime/obsidian/tick-loop.mjs +84 -0
  360. package/src/runtime/obsidian/watchers.mjs +36 -0
  361. package/src/runtime/repository-observation.mjs +491 -0
  362. package/src/runtime/supervisor.mjs +803 -0
  363. package/src/server/local-sidecar.mjs +125 -59
  364. package/src/server/security.mjs +89 -4
  365. package/src/server/server.mjs +4 -2
  366. package/src/skills/steward.mjs +780 -0
  367. package/src/support/feedback-report.mjs +4 -3
  368. package/src/ui/presentation/browser.mjs +278 -0
  369. package/src/ui/presentation/contract.mjs +116 -0
  370. package/src/ui/presentation/index.mjs +7 -0
  371. package/src/ui/presentation/native.mjs +153 -0
  372. package/src/ui/presentation/proof.mjs +57 -0
  373. package/src/ui/presentation/schema-check.mjs +30 -0
  374. package/src/ui/presentation/schema.generated.mjs +1371 -0
  375. package/src/ui/presentation/state.mjs +43 -0
  376. package/src/ui/presentation/styles.mjs +67 -0
  377. package/src/ui/presentation/tokens.mjs +74 -0
  378. package/src/ui/presentation/web.mjs +85 -0
  379. package/src/ui/review-page.mjs +32 -0
  380. package/src/upgrade/explanation.mjs +33 -0
  381. package/src/upgrade/provenance.mjs +338 -0
  382. package/src/upgrade/transaction-files.mjs +103 -0
  383. package/src/upgrade/transaction.mjs +475 -0
  384. package/src/upgrade/upgrade.mjs +65 -29
  385. package/src/vault/hosts.mjs +21 -0
  386. package/src/vault/identity.mjs +19 -0
  387. package/src/vault/index.mjs +7 -0
  388. package/src/vault/interface.mjs +11 -0
  389. package/src/vault/metadata.mjs +31 -0
  390. package/src/vault/privacy.mjs +148 -0
  391. package/src/vault/probe.mjs +89 -0
  392. package/src/vault/service.mjs +131 -0
  393. package/src/vault/source.mjs +45 -0
  394. package/src/vault/storage.mjs +23 -0
  395. package/templates/distribution-workspace/.claude/launch.json +6 -2
  396. package/templates/distribution-workspace/gitignore +1 -0
  397. package/templates/distribution-workspace/project/README.md +2 -2
  398. package/templates/external-project-workspace/README.md +45 -0
  399. package/templates/external-project-workspace/answers.example.json +4 -0
  400. package/templates/external-project-workspace/atelier.project.json +40 -0
  401. package/templates/external-project-workspace/boundary-policy.v1.json +60 -0
  402. package/templates/external-project-workspace/gitignore +8 -0
  403. package/templates/external-project-workspace/pack-lifecycle.json +14 -0
  404. package/templates/external-project-workspace/packs/protocols/contract-gate.v1.json +109 -0
  405. package/templates/external-project-workspace/packs/sample-pack.v1.json +48 -0
  406. package/templates/external-project-workspace/repo-access.v1.json +9 -0
  407. package/templates/external-project-workspace/source/README.md +11 -0
  408. package/templates/launch.json +6 -2
  409. package/templates/private-domain-workspace/.claude/launch.json +6 -2
  410. package/templates/private-domain-workspace/domain/README.md +2 -2
  411. package/templates/private-domain-workspace/gitignore +1 -0
  412. package/templates/shared-project-workspace/.claude/launch.json +6 -2
  413. package/templates/shared-project-workspace/gitignore +1 -0
  414. package/templates/shared-project-workspace/project/README.md +2 -2
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: atelier-open
3
+ description: Open the local Atelier preview in the current client when asked to show the portal or current page.
4
+ ---
5
+
1
6
  # Open the Atelier
2
7
 
3
8
  Use this skill when someone says "open the atelier", "pull up the atelier",
@@ -25,14 +30,15 @@ name (`atelier`) and use the port the harness returns. The equivalent manual
25
30
  command is:
26
31
 
27
32
  ```
28
- ./node_modules/.bin/atelier server
33
+ ./node_modules/.bin/atelier dev
29
34
  ```
30
35
 
31
- Use the local binary path. Do **not** run `npx atelier` — this package is not
32
- yet published to npm, and the unscoped name `atelier` belongs to an unrelated
33
- third-party package that `npx` would download and execute.
36
+ Use the local binary path. Do **not** run unscoped `npx atelier`: the unscoped
37
+ name belongs to an unrelated third-party package that `npx` would download and
38
+ execute. From outside an installed workspace, install `@mnstry/atelier` first
39
+ and use the branded `npx mnstry-atelier` command.
34
40
 
35
- `atelier server` resolves its port as **argv > `PORT` env > 8137**, so a
41
+ `atelier dev` resolves its port as **argv > `PORT` env > 8137**, so a
36
42
  supervisor can hand it a free port without a config edit.
37
43
 
38
44
  ## Do not fight for the canonical port
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: atelier-public-boundary
3
+ description: Generalize a lesson from a private or tenant implementation into the public Atelier repository without carrying proprietary material across the trust boundary.
4
+ ---
5
+
6
+ # Atelier public boundary
7
+
8
+ Use this skill whenever a public Atelier change is informed by work in a
9
+ private, client, tenant, or internal repository.
10
+
11
+ ## Extract the invariant, not the source
12
+
13
+ 1. State the reusable failure mode or contract without client vocabulary.
14
+ 2. Identify every source-specific name, path, port, field, content structure,
15
+ example, and operational fact. Keep those in the source repository.
16
+ 3. Re-derive the public mechanism against an invented fixture. Neutral wording
17
+ is not enough if the fixture still reproduces a proprietary structure.
18
+ 4. Keep private disclosure patterns in the ignored denylist or CI secret. Do
19
+ not place them in code, tests, docs, branch names, or commit messages.
20
+ 5. Add a regression test for the general control and run an evidence-backed
21
+ defensive review when a guard changes.
22
+
23
+ ## Required gates
24
+
25
+ Before staging, run the repository's disclosure check. After staging, scan the
26
+ staged index with the private denylist, then inspect the exact diff and release
27
+ tarball. A structural-only pass is useful on an untrusted fork but is not a
28
+ complete maintainer verdict.
29
+
30
+ If the private denylist is unavailable, stop short of claiming the public
31
+ boundary is green. Do not replace it with remembered client names.
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: atelier-skill-steward
3
+ description: Audit, create, improve, reconcile, retire, or update an Atelier-backed agent skill catalog using evidence thresholds, behavioral checks, and reversible managed projections.
4
+ ---
5
+
6
+ # Atelier skill steward
7
+
8
+ Use this skill when a repository should maintain its agent skills as a coherent,
9
+ self-improving catalog. Do not use it to turn a one-off preference into a skill,
10
+ capture prompts or transcripts, or grant a skill new authority implicitly.
11
+
12
+ ## Route the work
13
+
14
+ - Audit the current catalog with `atelier skills audit --json`.
15
+ - Record only a content-free signal with `atelier skills observe`; use a stable
16
+ workflow key, enumerated signal, optional skill name, and outcome. Never put a
17
+ summary, prompt, source excerpt, person, client, or private method in the key.
18
+ - Find evidence-thresholded work with `atelier skills candidates --json`.
19
+ - Create or improve an authored skill only when the candidate evidence and the
20
+ current task establish a repeatable input, workflow, and success condition.
21
+ - Update a repo-scoped deployed catalog with `atelier skills sync`. Review the
22
+ plan, then repeat its exact digest with `--apply --confirm`. Never manufacture
23
+ confirmation before inspecting blockers and actions.
24
+
25
+ ## Authoring boundary
26
+
27
+ Keep each skill focused. Give `SKILL.md` lowercase kebab-case `name` and a
28
+ discriminating `description`; put only decision-changing guidance in the body.
29
+ Add scripts or references only when deterministic reuse or progressive
30
+ disclosure justifies them. Test direct triggers, indirect triggers, incomplete
31
+ inputs, non-triggers, and risky edge cases.
32
+
33
+ In the public Atelier repository, read `AGENTS.md`, `CONTRIBUTING.md`, and
34
+ `docs/release-engineering.md` before editing. Re-derive private lessons as
35
+ generic invariants with invented fixtures. Keep Codex and Claude bundles
36
+ byte-identical and run the repository disclosure and release gates required by
37
+ those documents.
38
+
39
+ ## Promotion policy
40
+
41
+ An instruction-only change that retains the same tools, data boundary, and
42
+ external authority may advance after its behavioral checks and catalog audit
43
+ pass. New scripts, tool dependencies, network access, filesystem scope,
44
+ external messages, spending, destructive operations, credential handling, or
45
+ audience changes require explicit human authorization immediately before that
46
+ authority is introduced.
47
+
48
+ Do not treat an audit pass as proof of behavioral quality. Compare the candidate
49
+ against representative positive and negative requests. Reject it when it only
50
+ memorizes one incident, broadens its trigger, weakens a refusal, or cannot name
51
+ observable improvement.
52
+
53
+ ## Retirement and updates
54
+
55
+ Remove obsolete skills from active discovery only after checking dependents and
56
+ supersession. Preserve recovery through Git or the sync quarantine; never
57
+ permanently delete a managed deployed bundle during sync. A locally drifted or
58
+ unmanaged target is a blocker, not permission to overwrite it.
59
+
60
+ The steward has no model provider, telemetry, send path, browser apply endpoint,
61
+ or hidden source-mutation authority. Scheduling may invoke this workflow, but a
62
+ schedule does not widen its permissions or lower its evidence gates.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: mnstry-readiness
3
+ description: Prepare or review Atelier readiness outputs for a project workspace using its readiness protocols.
4
+ ---
5
+
1
6
  # MNSTRY Readiness
2
7
 
3
8
  Use this skill when preparing or reviewing MNSTRY Atelier readiness outputs for
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: atelier-guided-coauthor
3
+ description: Guide an author through a selected packet in Codex, retaining private source-bound draft answers and resuming through the local Atelier coauthor CLI.
4
+ ---
5
+
6
+ # Guided coauthor
7
+
8
+ Use the installed `atelier coauthor` command, not a browser conversation service.
9
+ The author chooses the packet and may read it normally without this workflow.
10
+
11
+ Check the repository's instructions and local package first. Run
12
+ `./node_modules/.bin/atelier coauthor --help` from the intended repository.
13
+ Do not download another package if the command is unavailable. Explain that the
14
+ installed version needs the coauthor capability and preserve ordinary packet review.
15
+
16
+ ## Start or resume
17
+
18
+ - Require an existing Git workspace with ignored, untracked `.atelier-local/`.
19
+ Do not change global skills, sibling repositories, credentials or remote access.
20
+ - Read the selected packet. Use consumer-owned field ids and workspace-relative
21
+ source references. Compute SHA-256 over each source file's exact UTF-8 bytes.
22
+ Send a `start` request containing `config: {id, fields}`; each field has
23
+ `id` and `source: {ref, digest}`. Packet structure stays in the consumer.
24
+ - Requests are JSON on stdin; responses are JSON. Use an ignored request file
25
+ when needed, not shell interpolation of the author's text. Read the returned
26
+ state and revision. `read` takes `sessionId` and resumes retained history.
27
+ - Ask one useful question at a time. Record the author's exact answer with an
28
+ `answer` event; events carry a unique `id`, `expectedRevision` and `type`.
29
+ Do not infer an answer or approval from silence.
30
+ - If proposing edited wording, use `propose` and show the change. Wait for the
31
+ author's explicit confirmation before `confirm`. `reject` restores the
32
+ original. Even apparently stylistic rewrites need confirmation.
33
+ - Send `save` only for the agreed draft. Say “saved as a private draft” only
34
+ after the command returns a saved receipt. The source packet is never edited.
35
+ `continueAfterSave: true` on an answer retains the author's advance intent;
36
+ otherwise `advance` is explicit.
37
+ - `pause` and `resume` preserve the current phase. On restart, a `saving`
38
+ state may use `recover` to reconcile the pending private write. A
39
+ `recovery` state requires explicit `retry`, with one retry available.
40
+ Stop retrying when exhausted and retain all artifacts for inspection.
41
+
42
+ ## Boundaries
43
+
44
+ Never submit store-owned receipt/failure events or fabricate persistence evidence.
45
+ A stale source or revision is a visible conflict, not permission to overwrite it.
46
+ Keep the old history and obtain a newly bound session for revised sources.
47
+ Saved answers are proposals for later owner review, not publication, canonical
48
+ acceptance, guide access, or a completed packet. No saved-answer undo is provided;
49
+ do not erase history to simulate it. Summarize unresolved questions for the meeting.
@@ -0,0 +1,97 @@
1
+ ---
2
+ name: atelier-guided-upgrade
3
+ description: Prepare and explain an Atelier package upgrade in an isolated candidate, retain the owner decision, and apply only the approved effects. Use for owners asking to update an existing Atelier.
4
+ ---
5
+
6
+ # Guided Atelier upgrade
7
+
8
+ The default outcome is a reviewable candidate and an owner decision. Preserve the
9
+ owner's actual request and existing scoped authority; no per-command approval
10
+ loop is needed for actions already authorized. Preparation alone never authorizes
11
+ changing the working installation, merging, publishing or restarting a service.
12
+
13
+ ## Establish the source and workspace
14
+
15
+ Read the selected repository's instructions and upgrade procedure. Identify its
16
+ actual installed scoped package, package-manager lock, Atelier lock, Git state,
17
+ project roots, packs, overlays and running-service ownership. Resolve the package
18
+ from that workspace (including a parent install); never use global Atelier,
19
+ unscoped registry fallback or the first sibling checkout found on disk.
20
+ Read `docs/guided-upgrades.md` and `docs/exact-upgrades.md` from the selected
21
+ installed package when present. If an old install lacks this skill or commands,
22
+ use the owner-selected new package's documentation only after verifying its
23
+ source. Repository instructions and owner authority still govern.
24
+
25
+ Select an exact release through a source already trusted by the owner. Record
26
+ version, source commit when verified, artifact URL/integrity and the dependency
27
+ lock. Mutable dist-tags are discovery hints, not final pins. A declaration in a
28
+ lock or a digest supplied beside a download does not authenticate a publisher.
29
+ An unpublished candidate must be labeled as such; use it only in an expressly
30
+ selected rehearsal. Never invent a release or replace a pinned install with main.
31
+
32
+ ## Prepare without disturbing authoring
33
+
34
+ Use a separate candidate with an identified base. Preserve dirty source and
35
+ private answers; do not stash, reset, clean, stop services or commit another
36
+ writer's edits to create eligibility. If using a snapshot of current edits,
37
+ record and recheck its exact manifest; it is a snapshot, not an adopted commit.
38
+ Ignored answers, browser storage and runtime credentials are not in a Git clone.
39
+ Record that gap without importing them into a public report or projection.
40
+
41
+ Stage the selected package using the owner's package manager and lock procedure,
42
+ with lifecycle scripts disabled; investigate any required scripts before execution.
43
+ Verify the resolved identity and inventory before running its commands. Inspect
44
+ migration/compatibility effects before rewriting the old Atelier lock. Retain the
45
+ old lock and all lineage. Keep installation changes distinct from generated files.
46
+
47
+ Check exact-plan eligibility: Linux/macOS, one managed repository at `.`, config
48
+ and workspace at its root, linked candidate worktree, clean state and supported
49
+ Git settings. Packs, overlays and other unsupported participants require the
50
+ repository's explicit operator procedure. Do not broaden graph roots, remove
51
+ policies or disable filters/hooks to force eligibility. Never silently fall back
52
+ to legacy `upgrade --apply`; it has different guarantees.
53
+
54
+ For an eligible candidate, prepare `upgrade plan --save`, then use
55
+ `upgrade explain --plan SAVED_PLAN_PATH` (JSON) and `--format markdown` (owner
56
+ view). Invoke the verified installed binary with the explicit project path.
57
+ Inspect `bindingsCurrent` and blockers even when the explanation exits zero.
58
+ Keep source/pin/policy installation commits and the saved projection plan separate.
59
+ For an operator procedure, retain an exact before/after file manifest and named
60
+ commands instead; do not call it an exact-plan transaction or invent its digest.
61
+
62
+ ## Explain and retain consent
63
+
64
+ Present the local benefit, exact target, changed files, preserved customizations,
65
+ checks, known limits, recovery coverage and proposed effects. Show installation,
66
+ local commit, merge, publication and activation separately. Ask one concrete
67
+ question covering the effects that still need authority. A permission to prepare
68
+ or a generic earlier “go” does not approve a newly introduced material effect.
69
+ A prior explicit approval of this same current plan and effects remains valid.
70
+
71
+ Retain a new decision record in ignored, untracked
72
+ `.atelier-local/guided-upgrades/` (or a private sibling evidence directory):
73
+ `kind: owner-decision`, report and plan/manifest SHA-256, candidate base, target
74
+ identity, exact owner words, conversation reference, observation time, decision
75
+ (approve/defer/decline), allowed effects, and
76
+ `humanApprovalAuthenticated: false`, `recordedBy: agent`.
77
+ Do not invent identity, words, references or approvals; missing provenance is a
78
+ reported gap. This is an agent-attested record, not an authenticated signature or
79
+ an execution grant. Keep existing records immutable. Silence conveys no consent.
80
+
81
+ ## Apply, validate and close
82
+
83
+ After actual approval, use the saved path and exact confirmation digest literally.
84
+ Recheck bindings; changed or expired plans require a fresh explanation and any
85
+ newly necessary decision. A consumed plan is inspected, never replayed.
86
+ Run the repository's documented acceptance checks and inspect the actual diff.
87
+ Only a verified terminal transaction receipt means a candidate commit completed.
88
+ Honor existing hooks and keep source/answer files within their ownership boundary.
89
+ An operator procedure has its own validation evidence, not a transaction receipt.
90
+
91
+ Continue authorized merge/activation steps only when included in the owner's
92
+ scope. Report prepared, installed-in-candidate, committed, merged and running as
93
+ separate observed states. A local preview passing is not recipient acceptance.
94
+ On failure, preserve the candidate, backups and receipts; explain what changed
95
+ and the next safe action. Recovery inspection does not automatically restore
96
+ files or reset Git. Do not publish source, restart an existing service or advance
97
+ an author's workflow phase merely because upgrade checks passed.
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: atelier-local-service
3
+ description: Build or repair a durable loopback-only authoring, review, or preview service in an Atelier-backed repository when local state must survive agent commands and fail safely.
4
+ ---
5
+
6
+ # Atelier local service
7
+
8
+ Use this skill for a consumer-owned service that persists repository-backed
9
+ local state. Do not use it to change `atelier dev` itself or to install an
10
+ operating-system service without explicit authorization.
11
+
12
+ Read `docs/local-services.md` from the installed Atelier package or source
13
+ checkout before changing lifecycle code.
14
+
15
+ ## Boundary first
16
+
17
+ Separate the portable mechanism from the consumer adapter before editing:
18
+
19
+ - Atelier invariants: loopback binding, proven ownership, exact stop, ignored
20
+ mode-0600 state, atomic writes, recoverable browser failure, and tests.
21
+ - Consumer details: service identity, port, commands, paths, schema, content,
22
+ and user-facing language.
23
+
24
+ Never promote consumer names, content, structures, examples, or local paths
25
+ into Atelier. Public tests use invented fixtures.
26
+
27
+ ## Workflow
28
+
29
+ 1. Inspect the existing server, process owner, port, persistence file,
30
+ `.gitignore`, health route, save handler, and tests. Preserve the live draft
31
+ before restarting anything.
32
+ 2. Expose repository-owned `start`, `status`, and `stop` commands. Start may
33
+ detach only because the user needs continuity beyond the launching command.
34
+ 3. Bind to loopback. Pair a random runtime identifier with the PID in both the
35
+ private runtime record and health response. Refuse unowned listeners.
36
+ 4. Keep drafts, runtime metadata, and operational logs ignored and owner-only.
37
+ Do not commit live authoring state.
38
+ 5. Make the UI retain the draft when the service disappears. Show the exact
39
+ restart command, snapshot export, and Retry path instead of a generic error.
40
+ 6. Serialize writes without permanently rejecting the queue after one failed
41
+ operation. Keep conflicts and invalid state fail-closed.
42
+ 7. Prove lifecycle ownership, server-loss recovery, later-save recovery,
43
+ permissions, ignore coverage, and fresh-checkout discoverability.
44
+
45
+ Do not claim durability from a passing request alone. Report separately:
46
+ saved file truth, managed-process truth, browser recovery truth, and the
47
+ remaining OS-restart boundary.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: atelier-open
3
+ description: Open the local Atelier preview in the current client when asked to show the portal or current page.
4
+ ---
5
+
1
6
  # Open the Atelier
2
7
 
3
8
  Use this skill when someone says "open the atelier", "pull up the atelier",
@@ -25,14 +30,15 @@ name (`atelier`) and use the port the harness returns. The equivalent manual
25
30
  command is:
26
31
 
27
32
  ```
28
- ./node_modules/.bin/atelier server
33
+ ./node_modules/.bin/atelier dev
29
34
  ```
30
35
 
31
- Use the local binary path. Do **not** run `npx atelier` — this package is not
32
- yet published to npm, and the unscoped name `atelier` belongs to an unrelated
33
- third-party package that `npx` would download and execute.
36
+ Use the local binary path. Do **not** run unscoped `npx atelier`: the unscoped
37
+ name belongs to an unrelated third-party package that `npx` would download and
38
+ execute. From outside an installed workspace, install `@mnstry/atelier` first
39
+ and use the branded `npx mnstry-atelier` command.
34
40
 
35
- `atelier server` resolves its port as **argv > `PORT` env > 8137**, so a
41
+ `atelier dev` resolves its port as **argv > `PORT` env > 8137**, so a
36
42
  supervisor can hand it a free port without a config edit.
37
43
 
38
44
  ## Do not fight for the canonical port
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: atelier-public-boundary
3
+ description: Generalize a lesson from a private or tenant implementation into the public Atelier repository without carrying proprietary material across the trust boundary.
4
+ ---
5
+
6
+ # Atelier public boundary
7
+
8
+ Use this skill whenever a public Atelier change is informed by work in a
9
+ private, client, tenant, or internal repository.
10
+
11
+ ## Extract the invariant, not the source
12
+
13
+ 1. State the reusable failure mode or contract without client vocabulary.
14
+ 2. Identify every source-specific name, path, port, field, content structure,
15
+ example, and operational fact. Keep those in the source repository.
16
+ 3. Re-derive the public mechanism against an invented fixture. Neutral wording
17
+ is not enough if the fixture still reproduces a proprietary structure.
18
+ 4. Keep private disclosure patterns in the ignored denylist or CI secret. Do
19
+ not place them in code, tests, docs, branch names, or commit messages.
20
+ 5. Add a regression test for the general control and run an evidence-backed
21
+ defensive review when a guard changes.
22
+
23
+ ## Required gates
24
+
25
+ Before staging, run the repository's disclosure check. After staging, scan the
26
+ staged index with the private denylist, then inspect the exact diff and release
27
+ tarball. A structural-only pass is useful on an untrusted fork but is not a
28
+ complete maintainer verdict.
29
+
30
+ If the private denylist is unavailable, stop short of claiming the public
31
+ boundary is green. Do not replace it with remembered client names.
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: atelier-skill-steward
3
+ description: Audit, create, improve, reconcile, retire, or update an Atelier-backed agent skill catalog using evidence thresholds, behavioral checks, and reversible managed projections.
4
+ ---
5
+
6
+ # Atelier skill steward
7
+
8
+ Use this skill when a repository should maintain its agent skills as a coherent,
9
+ self-improving catalog. Do not use it to turn a one-off preference into a skill,
10
+ capture prompts or transcripts, or grant a skill new authority implicitly.
11
+
12
+ ## Route the work
13
+
14
+ - Audit the current catalog with `atelier skills audit --json`.
15
+ - Record only a content-free signal with `atelier skills observe`; use a stable
16
+ workflow key, enumerated signal, optional skill name, and outcome. Never put a
17
+ summary, prompt, source excerpt, person, client, or private method in the key.
18
+ - Find evidence-thresholded work with `atelier skills candidates --json`.
19
+ - Create or improve an authored skill only when the candidate evidence and the
20
+ current task establish a repeatable input, workflow, and success condition.
21
+ - Update a repo-scoped deployed catalog with `atelier skills sync`. Review the
22
+ plan, then repeat its exact digest with `--apply --confirm`. Never manufacture
23
+ confirmation before inspecting blockers and actions.
24
+
25
+ ## Authoring boundary
26
+
27
+ Keep each skill focused. Give `SKILL.md` lowercase kebab-case `name` and a
28
+ discriminating `description`; put only decision-changing guidance in the body.
29
+ Add scripts or references only when deterministic reuse or progressive
30
+ disclosure justifies them. Test direct triggers, indirect triggers, incomplete
31
+ inputs, non-triggers, and risky edge cases.
32
+
33
+ In the public Atelier repository, read `AGENTS.md`, `CONTRIBUTING.md`, and
34
+ `docs/release-engineering.md` before editing. Re-derive private lessons as
35
+ generic invariants with invented fixtures. Keep Codex and Claude bundles
36
+ byte-identical and run the repository disclosure and release gates required by
37
+ those documents.
38
+
39
+ ## Promotion policy
40
+
41
+ An instruction-only change that retains the same tools, data boundary, and
42
+ external authority may advance after its behavioral checks and catalog audit
43
+ pass. New scripts, tool dependencies, network access, filesystem scope,
44
+ external messages, spending, destructive operations, credential handling, or
45
+ audience changes require explicit human authorization immediately before that
46
+ authority is introduced.
47
+
48
+ Do not treat an audit pass as proof of behavioral quality. Compare the candidate
49
+ against representative positive and negative requests. Reject it when it only
50
+ memorizes one incident, broadens its trigger, weakens a refusal, or cannot name
51
+ observable improvement.
52
+
53
+ ## Retirement and updates
54
+
55
+ Remove obsolete skills from active discovery only after checking dependents and
56
+ supersession. Preserve recovery through Git or the sync quarantine; never
57
+ permanently delete a managed deployed bundle during sync. A locally drifted or
58
+ unmanaged target is a blocker, not permission to overwrite it.
59
+
60
+ The steward has no model provider, telemetry, send path, browser apply endpoint,
61
+ or hidden source-mutation authority. Scheduling may invoke this workflow, but a
62
+ schedule does not widen its permissions or lower its evidence gates.
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: mnstry-readiness
3
+ description: Prepare or review Atelier readiness outputs for a project workspace using its readiness protocols.
4
+ ---
5
+
1
6
  # MNSTRY Readiness
2
7
 
3
8
  Use this skill when preparing or reviewing MNSTRY Atelier readiness outputs for
@@ -0,0 +1,84 @@
1
+ import { parseRequest, parseBoundedJSON, need, isRef, isDigest, canonical, deepFreeze, MODES } from '../composition/wire.mjs';
2
+ import { digestBytes } from '../composition/registry.mjs';
3
+
4
+ const messages = Object.freeze({ loading: 'Checking access.', ready: 'Preview ready.', unauthenticated: 'Sign in to preview.',
5
+ forbidden: 'Preview is not permitted.', expired: 'Session expired.', unavailable: 'Preview unavailable.', stale: 'Preview changed. Refresh to continue.' });
6
+ export class PreviewRefusal extends Error {
7
+ constructor(state) { super('Preview refused'); need(Object.hasOwn(messages, state) && !['ready', 'loading'].includes(state)); this.state = state; }
8
+ }
9
+ function principal(p) { need(p && isRef(p.issuer) && isRef(p.subject) && ['human', 'agent', 'service', 'local-owner'].includes(p.kind)); }
10
+ function sessionCheck(s, now) {
11
+ need(s && Number.isSafeInteger(s.generation) && s.generation >= 0 && Number.isFinite(s.expiresAt));
12
+ for (const k of ['sessionRef', 'workspaceRef', 'audienceRef', 'policyRevision']) need(isRef(s[k]));
13
+ need(s.tenantRef === null || isRef(s.tenantRef));
14
+ // This prototype deliberately cannot admit production or implicit public access.
15
+ need(s.plane === 'preview');
16
+ if (!s.principal) throw new PreviewRefusal('unauthenticated');
17
+ principal(s.principal); principal(s.representedPrincipal);
18
+ if (s.expiresAt <= now) throw new PreviewRefusal('expired');
19
+ }
20
+ function checkDelegation(s, request, target, now) {
21
+ const d = s.delegation;
22
+ if (!d) {
23
+ need(s.principal.kind !== 'agent' && canonical(s.principal) === canonical(s.representedPrincipal)); return;
24
+ }
25
+ need(s.principal.kind === 'agent' && d.active === true && d.redelegationAllowed === false && isRef(d.ref) && isRef(d.revision));
26
+ need(Number.isFinite(d.expiresAt) && d.expiresAt > now && d.expiresAt <= s.expiresAt);
27
+ need(canonical(d.actor) === canonical(s.principal) && canonical(d.representedPrincipal) === canonical(s.representedPrincipal));
28
+ for (const key of ['sessionRef', 'generation', 'tenantRef', 'workspaceRef', 'audienceRef', 'plane']) need(d[key] === s[key]);
29
+ for (const key of ['modes', 'operationRefs', 'resourceRefs']) need(Array.isArray(d[key]) && d[key].length <= 64 && new Set(d[key]).size === d[key].length);
30
+ need(d.modes.every(m => MODES.includes(m)) && d.operationRefs.every(isRef) && d.resourceRefs.every(isRef));
31
+ if (!d.modes.includes(request.mode) || !d.operationRefs.includes(target.operationRef) || !d.resourceRefs.includes(target.resourceRef)) throw new PreviewRefusal('forbidden');
32
+ }
33
+ export function createPreviewEnforcer(ports, { now = Date.now } = {}) {
34
+ for (const key of ['authenticate', 'resolveTarget', 'authorize', 'revalidate', 'perform', 'projectResult', 'audit']) need(typeof ports?.[key] === 'function');
35
+ return Object.freeze({ async handle(channel, bytes, signal) {
36
+ let request, binding, phase = 'parse', performed = false;
37
+ const generation = Number.isSafeInteger(channel?.generation) && channel.generation >= 0 ? channel.generation : 0;
38
+ const state = (name, projectedData) => deepFreeze({ state: {
39
+ schema: 'atelier-preview-state/proposal-v1', requestId: request?.requestId || 'invalid', placementId: request?.placementId || 'invalid',
40
+ sourceDigest: request?.sourceDigest || '0'.repeat(64), mode: request?.mode || 'synthetic', state: name,
41
+ sessionGeneration: generation, publicMessage: messages[name],
42
+ }, ...(name === 'ready' ? { projectedData } : {}) });
43
+ const live = () => { if (signal?.aborted) throw new PreviewRefusal('stale'); if (binding && binding.expiresAt <= now()) throw new PreviewRefusal('expired'); };
44
+ const fresh = async () => { live(); if (await ports.revalidate(binding, signal) !== true) throw new PreviewRefusal('stale'); live(); };
45
+ const audit = (stage, outcome) => ports.audit(deepFreeze({ binding, phase: stage, outcome }));
46
+ try {
47
+ request = deepFreeze(parseRequest(bytes)); live(); phase = 'authenticate';
48
+ const s = deepFreeze(structuredClone(await ports.authenticate(channel, signal)));
49
+ sessionCheck(s, now()); live(); phase = 'resolve';
50
+ const t = deepFreeze(structuredClone(await ports.resolveTarget(s, request, signal)));
51
+ for (const key of ['resourceRef', 'operationRef', 'serviceRef', 'sourceRef', 'placementRef', 'registryRevision']) need(isRef(t?.[key]));
52
+ for (const key of ['sourceDigest', 'descriptorDigest', 'rendererDigest']) need(isDigest(t[key]));
53
+ need(t.sourceDigest === request.sourceDigest && t.placementRef === request.placementId);
54
+ checkDelegation(s, request, t, now());
55
+ binding = deepFreeze({ sessionRef: s.sessionRef, generation: s.generation, principal: s.principal, representedPrincipal: s.representedPrincipal,
56
+ delegationRef: s.delegation?.ref || null, delegationRevision: s.delegation?.revision || null,
57
+ tenantRef: s.tenantRef, workspaceRef: s.workspaceRef, plane: s.plane, mode: request.mode, audienceRef: s.audienceRef,
58
+ target: t, requestRef: request.requestId, requestDigest: digestBytes(canonical(request)), policyRevision: s.policyRevision,
59
+ expiresAt: Math.min(s.expiresAt, s.delegation?.expiresAt ?? Infinity) });
60
+ phase = 'authorize'; live(); await audit('requested', 'pending');
61
+ const decision = deepFreeze(structuredClone(await ports.authorize(binding, signal))); live();
62
+ need(canonical(decision?.binding) === canonical(binding));
63
+ if (decision.outcome !== 'allow') throw new PreviewRefusal(decision.outcome === 'deny' ? 'forbidden' : decision.outcome === 'reauth-required' ? 'expired' : 'unavailable');
64
+ await audit('authorized', 'allowed'); await fresh(); phase = 'perform'; performed = true;
65
+ const raw = await ports.perform(s, request, decision, signal);
66
+ await fresh(); phase = 'project';
67
+ const projected = await ports.projectResult(binding, raw, signal);
68
+ // Trusted projector owns the field allowlist. Root still enforces JSON,
69
+ // byte/depth bounds and cannot accidentally serialize result metadata.
70
+ const data = parseBoundedJSON(JSON.stringify(projected));
71
+ // Preparation is not a browser delivery acknowledgement. Keep the last
72
+ // asynchronous audit inside the revalidation boundary before returning.
73
+ await fresh(); await audit('settled', 'prepared'); await fresh();
74
+ return state('ready', data);
75
+ } catch (error) {
76
+ const name = error instanceof PreviewRefusal ? error.state : 'unavailable';
77
+ if (binding) {
78
+ try { await audit('settled', performed ? 'uncertain' : name === 'stale' ? 'stale' : phase === 'authorize' ? 'denied' : 'failed'); }
79
+ catch { /* No output or automatic effect retry if audit storage fails. */ }
80
+ }
81
+ return state(name);
82
+ }
83
+ } });
84
+ }