@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.
- package/CHANGELOG.md +372 -0
- package/README.md +402 -205
- package/SECURITY.md +6 -1
- package/contracts/atelier-adoption-policy.v1.schema.json +49 -0
- package/contracts/atelier-coauthor.v1.schema.json +163 -0
- package/contracts/atelier-decision-request.v1.schema.json +476 -0
- package/contracts/atelier-decision-result.v1.schema.json +500 -0
- package/contracts/atelier-guide.v1.schema.json +227 -0
- package/contracts/atelier-intake.v1.schema.json +151 -0
- package/contracts/atelier-migration.v2.schema.json +61 -0
- package/contracts/atelier-obsidian-acceptance-receipt.v1.schema.json +211 -0
- package/contracts/atelier-obsidian-apply-policy.v1.schema.json +298 -0
- package/contracts/atelier-obsidian-corpus-profile.v1.schema.json +98 -0
- package/contracts/atelier-obsidian-edit-operation.v1.schema.json +138 -0
- package/contracts/atelier-obsidian-ext-settings.v1.schema.json +287 -0
- package/contracts/atelier-obsidian-generation-manifest.v1.schema.json +353 -0
- package/contracts/atelier-obsidian-proposal-receipt.v1.schema.json +110 -0
- package/contracts/atelier-obsidian-publication-journal.v1.schema.json +167 -0
- package/contracts/atelier-obsidian-scope.v1.schema.json +264 -0
- package/contracts/atelier-obsidian-service-state.v1.schema.json +149 -0
- package/contracts/atelier-obsidian-source-snapshot.v1.schema.json +179 -0
- package/contracts/atelier-pane-presentation.v1.schema.json +76 -0
- package/contracts/atelier-presentation.v1.schema.json +1293 -0
- package/contracts/atelier-repository-observation.v1.schema.json +163 -0
- package/contracts/atelier-review.v1.schema.json +1601 -0
- package/contracts/atelier-skill-steward.v1.schema.json +692 -0
- package/contracts/atelier-upgrade-plan.v2.schema.json +398 -0
- package/contracts/atelier-upgrade-receipt.v1.schema.json +99 -0
- package/contracts/atelier-vault-publication.v1.schema.json +58 -0
- package/contracts/public-api-baseline.json +57 -0
- package/docs/assurance-controls.md +49 -0
- package/docs/atelier-runtime.md +28 -2
- package/docs/atelier-sync.md +172 -0
- package/docs/blocks/audience-visibility.md +9 -0
- package/docs/blocks/claims.md +61 -0
- package/docs/blocks/conformance-admission.md +15 -0
- package/docs/blocks/will-not-do.md +18 -0
- package/docs/coauthor-session.md +57 -0
- package/docs/connected-composition.md +75 -0
- package/docs/continuity.md +3 -4
- package/docs/decisions.md +167 -0
- package/docs/design.md +167 -0
- package/docs/exact-upgrades.md +159 -0
- package/docs/extension-pack-lifecycle.md +33 -0
- package/docs/guided-upgrades.md +99 -0
- package/docs/install.md +99 -16
- package/docs/intake-and-guides.md +65 -0
- package/docs/integration-and-review-plan.md +409 -0
- package/docs/integration-contract-decisions.md +22 -0
- package/docs/knowledge-graph.md +8 -4
- package/docs/local-review.md +84 -0
- package/docs/local-services.md +328 -0
- package/docs/local-state.md +107 -0
- package/docs/obsidian-contract.md +690 -0
- package/docs/obsidian.md +423 -0
- package/docs/portable-presentation.md +328 -0
- package/docs/presentation-consumer-boundaries.md +75 -0
- package/docs/presentation-review-disposition.md +47 -0
- package/docs/project-command-inventory.md +38 -0
- package/docs/project-options.md +53 -0
- package/docs/release-engineering.md +174 -12
- package/docs/repo-boundary-guard.md +12 -2
- package/docs/review-portability.md +55 -0
- package/docs/skill-steward.md +156 -0
- package/docs/upgrade.md +146 -5
- package/docs/vault-service.md +292 -0
- package/fixtures/atelier-coauthor/invalid/authority.v1.json +5 -0
- package/fixtures/atelier-coauthor/valid/config.v1.json +12 -0
- package/fixtures/atelier-guide/invalid/authority.v1.json +11 -0
- package/fixtures/atelier-guide/valid/capability.v1.json +10 -0
- package/fixtures/atelier-guide/valid/consent.v1.json +11 -0
- package/fixtures/atelier-guide/valid/engagement.v1.json +7 -0
- package/fixtures/atelier-guide/valid/offer.v1.json +10 -0
- package/fixtures/atelier-intake/invalid/authority.v1.json +9 -0
- package/fixtures/atelier-intake/valid/attempt.v1.json +8 -0
- package/fixtures/atelier-intake/valid/completion.v1.json +9 -0
- package/fixtures/atelier-intake/valid/source.v1.json +7 -0
- package/fixtures/atelier-repository-observation/invalid/complete-with-blocker.v1.json +18 -0
- package/fixtures/atelier-repository-observation/valid/complete-local.v1.json +48 -0
- package/fixtures/atelier-review/invalid/authenticated-identity.v1.json +22 -0
- package/fixtures/atelier-review/valid/bound.v1.json +229 -0
- package/fixtures/atelier-review/valid/bundle.v1.json +267 -0
- package/fixtures/atelier-review/valid/contribution.v1.json +22 -0
- package/fixtures/atelier-review/valid/lifecycle.v1.json +14 -0
- package/fixtures/atelier-skill-steward/audit/invalid/source-mutation.v1.json +26 -0
- package/fixtures/atelier-skill-steward/audit/valid/clean.v1.json +26 -0
- package/fixtures/atelier-skill-steward/candidates/invalid/workflow-key.v1.json +37 -0
- package/fixtures/atelier-skill-steward/candidates/valid/create.v1.json +37 -0
- package/fixtures/atelier-skill-steward/lock/invalid/bad-digest.v1.json +18 -0
- package/fixtures/atelier-skill-steward/lock/valid/installed.v1.json +23 -0
- package/fixtures/atelier-skill-steward/plan/invalid/delete-action.v1.json +33 -0
- package/fixtures/atelier-skill-steward/plan/valid/add.v1.json +33 -0
- package/fixtures/atelier-upgrade-transaction/adoption-policy/invalid/example.json +12 -0
- package/fixtures/atelier-upgrade-transaction/adoption-policy/valid/example.json +11 -0
- package/fixtures/atelier-upgrade-transaction/migration/invalid/example.json +20 -0
- package/fixtures/atelier-upgrade-transaction/migration/valid/example.json +19 -0
- package/fixtures/atelier-upgrade-transaction/upgrade-plan/invalid/example.json +58 -0
- package/fixtures/atelier-upgrade-transaction/upgrade-plan/valid/example.json +57 -0
- package/fixtures/atelier-upgrade-transaction/upgrade-receipt/invalid/example.json +15 -0
- package/fixtures/atelier-upgrade-transaction/upgrade-receipt/valid/example.json +14 -0
- package/fixtures/atelier-vault-publication/invalid/publication.json +5 -0
- package/fixtures/atelier-vault-publication/valid/publication.json +11 -0
- package/fixtures/decisions/request/invalid/unknown-authority.v1.json +61 -0
- package/fixtures/decisions/request/valid/triage.v1.json +60 -0
- package/fixtures/decisions/result/invalid/execution-authority.v1.json +50 -0
- package/fixtures/decisions/result/valid/abstained.v1.json +23 -0
- package/fixtures/decisions/result/valid/assessed.v1.json +50 -0
- package/fixtures/obsidian/acceptance/ap05-extra-notes.json +14 -0
- package/fixtures/obsidian/acceptance/receipts/G07.valid.v1.json +63 -0
- package/fixtures/obsidian/acceptance/receipts/G13.valid.v1.json +69 -0
- package/fixtures/obsidian/acceptance/receipts/G14.valid.v1.json +62 -0
- package/fixtures/obsidian/acceptance/receipts/G15.valid.v1.json +56 -0
- package/fixtures/obsidian/acceptance/receipts/G16.valid.v1.json +73 -0
- package/fixtures/obsidian/acceptance/receipts/G17.valid.v1.json +75 -0
- package/fixtures/obsidian/acceptance/receipts/G18.valid.v1.json +64 -0
- package/fixtures/obsidian/acceptance/service-sentinels.json +10 -0
- package/fixtures/obsidian/contracts/acceptance-receipt/invalid/duplicate-evidence-name.v1.json +39 -0
- package/fixtures/obsidian/contracts/acceptance-receipt/invalid/evidence-by-absolute-path.v1.json +34 -0
- package/fixtures/obsidian/contracts/acceptance-receipt/invalid/missing-candidate-tree.v1.json +33 -0
- package/fixtures/obsidian/contracts/acceptance-receipt/invalid/no-evidence.v1.json +28 -0
- package/fixtures/obsidian/contracts/acceptance-receipt/invalid/unknown-outcome.v1.json +34 -0
- package/fixtures/obsidian/contracts/acceptance-receipt/invalid/unknown-top-level-field.v1.json +35 -0
- package/fixtures/obsidian/contracts/acceptance-receipt/valid/node-gate.v1.json +34 -0
- package/fixtures/obsidian/contracts/apply-policy/invalid/automatic-without-edit-class.v1.json +27 -0
- package/fixtures/obsidian/contracts/apply-policy/invalid/conflict-overwrite.v1.json +29 -0
- package/fixtures/obsidian/contracts/apply-policy/invalid/missing-policy-digest.v1.json +28 -0
- package/fixtures/obsidian/contracts/apply-policy/invalid/unbounded-batch.v1.json +29 -0
- package/fixtures/obsidian/contracts/apply-policy/invalid/unimplemented-edit-class.v1.json +30 -0
- package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-mode.v1.json +29 -0
- package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-selector-operator.v1.json +22 -0
- package/fixtures/obsidian/contracts/apply-policy/invalid/unknown-top-level-field.v1.json +30 -0
- package/fixtures/obsidian/contracts/apply-policy/valid/automatic-scoped.v1.json +29 -0
- package/fixtures/obsidian/contracts/apply-policy/valid/manual-default.v1.json +20 -0
- package/fixtures/obsidian/contracts/corpus-profile/invalid/absolute-path-in-ext.v1.json +30 -0
- package/fixtures/obsidian/contracts/corpus-profile/invalid/absolute-repository-root.v1.json +27 -0
- package/fixtures/obsidian/contracts/corpus-profile/invalid/duplicate-repository-id.v1.json +27 -0
- package/fixtures/obsidian/contracts/corpus-profile/invalid/overlapping-managed-roots.v1.json +27 -0
- package/fixtures/obsidian/contracts/corpus-profile/invalid/unknown-enrollment.v1.json +27 -0
- package/fixtures/obsidian/contracts/corpus-profile/invalid/unknown-top-level-field.v1.json +28 -0
- package/fixtures/obsidian/contracts/corpus-profile/valid/three-repositories.v1.json +27 -0
- package/fixtures/obsidian/contracts/edit-operation/invalid/absolute-recovery-ref.v1.json +21 -0
- package/fixtures/obsidian/contracts/edit-operation/invalid/inline-observed-bytes.v1.json +22 -0
- package/fixtures/obsidian/contracts/edit-operation/invalid/missing-base-digest.v1.json +20 -0
- package/fixtures/obsidian/contracts/edit-operation/invalid/short-idempotency-key.v1.json +21 -0
- package/fixtures/obsidian/contracts/edit-operation/invalid/unknown-kind.v1.json +21 -0
- package/fixtures/obsidian/contracts/edit-operation/valid/pending-body-replacement.v1.json +21 -0
- package/fixtures/obsidian/contracts/ext-settings/invalid/absolute-path-prefix.v1.json +28 -0
- package/fixtures/obsidian/contracts/ext-settings/invalid/apply-policy-in-portable-settings.v1.json +30 -0
- package/fixtures/obsidian/contracts/ext-settings/invalid/duplicate-scope-id.v1.json +27 -0
- package/fixtures/obsidian/contracts/ext-settings/invalid/machine-local-vault-path.v1.json +28 -0
- package/fixtures/obsidian/contracts/ext-settings/invalid/service-port-in-portable-settings.v1.json +28 -0
- package/fixtures/obsidian/contracts/ext-settings/invalid/unknown-default-scope.v1.json +27 -0
- package/fixtures/obsidian/contracts/ext-settings/valid/disabled.v1.json +5 -0
- package/fixtures/obsidian/contracts/ext-settings/valid/enabled-with-scopes.v1.json +27 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/absolute-note-path.v1.json +114 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/complete-with-unwritten-notes.v1.json +114 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/derived-link-claimed-declared.v1.json +114 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/duplicate-note-identity.v1.json +114 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/in-scope-endpoint-missing.v1.json +114 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/title-only-note-path.v1.json +114 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/unknown-note-field.v1.json +115 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/unknown-relation-type.v1.json +114 -0
- package/fixtures/obsidian/contracts/generation-manifest/invalid/withheld-endpoint.v1.json +114 -0
- package/fixtures/obsidian/contracts/generation-manifest/valid/two-notes.v1.json +114 -0
- package/fixtures/obsidian/contracts/oracles/scope-cases.json +412 -0
- package/fixtures/obsidian/contracts/proposal-receipt/invalid/accepted-without-proposal-id.v1.json +12 -0
- package/fixtures/obsidian/contracts/proposal-receipt/invalid/missing-adapter-operation-id.v1.json +11 -0
- package/fixtures/obsidian/contracts/proposal-receipt/invalid/unknown-backpressure-outcome.v1.json +12 -0
- package/fixtures/obsidian/contracts/proposal-receipt/invalid/unknown-top-level-field.v1.json +13 -0
- package/fixtures/obsidian/contracts/proposal-receipt/valid/accepted-new.v1.json +12 -0
- package/fixtures/obsidian/contracts/proposal-receipt/valid/deferred.v1.json +12 -0
- package/fixtures/obsidian/contracts/publication-journal/invalid/absolute-recovery-ref.v1.json +47 -0
- package/fixtures/obsidian/contracts/publication-journal/invalid/duplicate-sequence.v1.json +47 -0
- package/fixtures/obsidian/contracts/publication-journal/invalid/empty-protocol-id.v1.json +47 -0
- package/fixtures/obsidian/contracts/publication-journal/invalid/missing-protocol-id.v1.json +46 -0
- package/fixtures/obsidian/contracts/publication-journal/invalid/unknown-entry-field.v1.json +48 -0
- package/fixtures/obsidian/contracts/publication-journal/invalid/unknown-state.v1.json +47 -0
- package/fixtures/obsidian/contracts/publication-journal/valid/committed.v1.json +47 -0
- package/fixtures/obsidian/contracts/publication-journal/valid/updating-after-restart.v1.json +22 -0
- package/fixtures/obsidian/contracts/scope/invalid/absolute-path-prefix.v1.json +15 -0
- package/fixtures/obsidian/contracts/scope/invalid/duplicate-ids.v1.json +18 -0
- package/fixtures/obsidian/contracts/scope/invalid/expansion-without-node-budget.v1.json +40 -0
- package/fixtures/obsidian/contracts/scope/invalid/full-mode-with-subset.v1.json +8 -0
- package/fixtures/obsidian/contracts/scope/invalid/unknown-mode.v1.json +41 -0
- package/fixtures/obsidian/contracts/scope/invalid/unknown-selector-key.v1.json +15 -0
- package/fixtures/obsidian/contracts/scope/invalid/unknown-selector-operator.v1.json +14 -0
- package/fixtures/obsidian/contracts/scope/invalid/unknown-top-level-field.v1.json +42 -0
- package/fixtures/obsidian/contracts/scope/valid/explicit-empty.v1.json +8 -0
- package/fixtures/obsidian/contracts/scope/valid/focus.v1.json +11 -0
- package/fixtures/obsidian/contracts/scope/valid/full.v1.json +8 -0
- package/fixtures/obsidian/contracts/scope/valid/scoped-set-expression.v1.json +41 -0
- package/fixtures/obsidian/contracts/service-state/invalid/hostname-instead-of-literal-loopback.v1.json +23 -0
- package/fixtures/obsidian/contracts/service-state/invalid/missing-consent.v1.json +18 -0
- package/fixtures/obsidian/contracts/service-state/invalid/privileged-port.v1.json +23 -0
- package/fixtures/obsidian/contracts/service-state/invalid/unknown-top-level-field.v1.json +24 -0
- package/fixtures/obsidian/contracts/service-state/invalid/wildcard-bind.v1.json +23 -0
- package/fixtures/obsidian/contracts/service-state/valid/healthy.v1.json +23 -0
- package/fixtures/obsidian/contracts/source-snapshot/invalid/absolute-file-path.v1.json +48 -0
- package/fixtures/obsidian/contracts/source-snapshot/invalid/duplicate-repository-id.v1.json +48 -0
- package/fixtures/obsidian/contracts/source-snapshot/invalid/mixed-read.v1.json +48 -0
- package/fixtures/obsidian/contracts/source-snapshot/invalid/parent-traversal-path.v1.json +48 -0
- package/fixtures/obsidian/contracts/source-snapshot/invalid/unknown-file-field.v1.json +49 -0
- package/fixtures/obsidian/contracts/source-snapshot/valid/two-repositories.v1.json +48 -0
- package/fixtures/obsidian/edits/workspace.json +65 -0
- package/fixtures/obsidian/materialization/expected-full.json +99 -0
- package/fixtures/obsidian/materialization/expected-scoped.json +39 -0
- package/fixtures/obsidian/materialization/workspace.json +54 -0
- package/fixtures/obsidian/proposals/expected-shapes.json +11 -0
- package/fixtures/projects/sample-workspace/content/source.html.kg.json +4 -1
- package/fixtures/projects/source-formats-workspace/content/data.json.kg.json +4 -1
- package/fixtures/projects/source-formats-workspace/content/logo.png.kg.json +4 -1
- package/fixtures/projects/source-formats-workspace/content/metrics.csv.kg.json +4 -1
- package/fixtures/projects/source-formats-workspace/content/pipeline.yaml.kg.json +4 -1
- package/fixtures/ui/presentation/pane.v1.json +7 -0
- package/fixtures/ui/presentation/reference.v1.json +293 -0
- package/package.json +86 -10
- package/skills/claude/atelier-guided-coauthor/SKILL.md +49 -0
- package/skills/claude/atelier-guided-upgrade/SKILL.md +97 -0
- package/skills/claude/atelier-local-service/SKILL.md +47 -0
- package/skills/claude/atelier-open/SKILL.md +11 -5
- package/skills/claude/atelier-public-boundary/SKILL.md +31 -0
- package/skills/claude/atelier-skill-steward/SKILL.md +62 -0
- package/skills/claude/mnstry-readiness/SKILL.md +5 -0
- package/skills/codex/atelier-guided-coauthor/SKILL.md +49 -0
- package/skills/codex/atelier-guided-upgrade/SKILL.md +97 -0
- package/skills/codex/atelier-local-service/SKILL.md +47 -0
- package/skills/codex/atelier-open/SKILL.md +11 -5
- package/skills/codex/atelier-public-boundary/SKILL.md +31 -0
- package/skills/codex/atelier-skill-steward/SKILL.md +62 -0
- package/skills/codex/mnstry-readiness/SKILL.md +5 -0
- package/src/access/preview-enforcer.mjs +84 -0
- package/src/boundary/content-rules.mjs +283 -20
- package/src/boundary/policy.mjs +213 -91
- package/src/cli/execute-command.mjs +36 -0
- package/src/cli/project-options.mjs +58 -0
- package/src/cli/run.mjs +78 -10
- package/src/coauthor/session.mjs +161 -0
- package/src/coauthor/store.mjs +173 -0
- package/src/collaboration/event-ledger.mjs +348 -0
- package/src/collaboration/index.mjs +17 -0
- package/src/collaboration/inspection-bundle.mjs +223 -0
- package/src/collaboration/proposals.mjs +265 -65
- package/src/collaboration/review-contracts.mjs +25 -0
- package/src/collaboration/review-store.mjs +305 -0
- package/src/commands/attestation.mjs +20 -6
- package/src/commands/coauthor.mjs +26 -0
- package/src/commands/config.mjs +6 -1
- package/src/commands/disclosure.mjs +133 -0
- package/src/commands/distribution.mjs +2 -1
- package/src/commands/extension-pack.mjs +17 -9
- package/src/commands/init.mjs +46 -6
- package/src/commands/obsidian.mjs +371 -0
- package/src/commands/review.mjs +147 -0
- package/src/commands/server.mjs +1 -4
- package/src/commands/setup.mjs +51 -14
- package/src/commands/skills.mjs +199 -0
- package/src/commands/sync.mjs +107 -0
- package/src/composition/registry.mjs +27 -0
- package/src/composition/wire.mjs +122 -0
- package/src/contracts/corpus.mjs +35 -0
- package/src/decisions/contracts.d.mts +96 -0
- package/src/decisions/contracts.mjs +321 -0
- package/src/disclosure/content-scan.mjs +206 -0
- package/src/egress/check.mjs +7 -38
- package/src/egress/forbidden-egress.mjs +32 -18
- package/src/export/atelier-export-contract.mjs +16 -1
- package/src/extension-packs/lifecycle.mjs +154 -0
- package/src/graph/graph.mjs +176 -316
- package/src/graph/knowledge-graph.mjs +643 -43
- package/src/guides/contracts.mjs +54 -0
- package/src/harness/context-client.mjs +9 -1
- package/src/index.mjs +41 -0
- package/src/intake/store.mjs +119 -0
- package/src/preview/channel.mjs +89 -0
- package/src/project/config.mjs +112 -52
- package/src/project/durable-state.mjs +161 -0
- package/src/project/file-class.mjs +180 -0
- package/src/project/package-root.mjs +10 -0
- package/src/project/path-match.mjs +38 -15
- package/src/project/private-state.mjs +120 -0
- package/src/projection/obsidian/contracts.mjs +571 -0
- package/src/projection/obsidian/edits/align.mjs +169 -0
- package/src/projection/obsidian/edits/apply.mjs +889 -0
- package/src/projection/obsidian/edits/arbitrate.mjs +414 -0
- package/src/projection/obsidian/edits/contribution.mjs +108 -0
- package/src/projection/obsidian/edits/index.mjs +19 -0
- package/src/projection/obsidian/edits/object-identity.mjs +61 -0
- package/src/projection/obsidian/edits/object-store.mjs +517 -0
- package/src/projection/obsidian/edits/observe.mjs +123 -0
- package/src/projection/obsidian/edits/policy.mjs +123 -0
- package/src/projection/obsidian/edits/regions.mjs +648 -0
- package/src/projection/obsidian/materialize/byte-lens.mjs +98 -0
- package/src/projection/obsidian/materialize/index.mjs +7 -0
- package/src/projection/obsidian/materialize/path-registry.mjs +105 -0
- package/src/projection/obsidian/materialize/prepare-view.mjs +746 -0
- package/src/projection/obsidian/materialize/settings.mjs +57 -0
- package/src/projection/obsidian/materialize/stage.mjs +27 -0
- package/src/projection/obsidian/proposals/adapter.mjs +572 -0
- package/src/projection/obsidian/proposals/backpressure.mjs +113 -0
- package/src/projection/obsidian/proposals/contribution.mjs +55 -0
- package/src/projection/obsidian/proposals/index.mjs +23 -0
- package/src/projection/obsidian/proposals/observation.mjs +216 -0
- package/src/projection/obsidian/proposals/queue.mjs +277 -0
- package/src/projection/obsidian/proposals/router.mjs +168 -0
- package/src/projection/obsidian/publication/bridge-script.mjs +266 -0
- package/src/projection/obsidian/publication/exchange.mjs +117 -0
- package/src/projection/obsidian/publication/index.mjs +5 -0
- package/src/projection/obsidian/publication/publisher.mjs +588 -0
- package/src/projection/obsidian/publication/test-seam.mjs +16 -0
- package/src/projection/obsidian/publication/transport.mjs +160 -0
- package/src/projection/obsidian/recovery/index.mjs +6 -0
- package/src/projection/obsidian/recovery/journal.mjs +134 -0
- package/src/projection/obsidian/recovery/late-writer.mjs +46 -0
- package/src/projection/obsidian/recovery/restart.mjs +316 -0
- package/src/projection/obsidian/recovery/store.mjs +234 -0
- package/src/projection/obsidian/selection-ui/conflict-view.mjs +91 -0
- package/src/projection/obsidian/selection-ui/contribution.mjs +141 -0
- package/src/projection/obsidian/selection-ui/focus.mjs +82 -0
- package/src/projection/obsidian/selection-ui/index.mjs +12 -0
- package/src/projection/obsidian/selection-ui/policy-setup.mjs +107 -0
- package/src/projection/obsidian/selection-ui/receipt.mjs +173 -0
- package/src/projection/obsidian/selection-ui/selection-state.mjs +122 -0
- package/src/projection/obsidian/selection-ui/selection.mjs +109 -0
- package/src/projection/project.mjs +28 -19
- package/src/readiness-protocols/evidence.mjs +282 -0
- package/src/readiness-protocols/runtime.mjs +4 -3
- package/src/readiness-protocols/source-read.mjs +39 -0
- package/src/runtime/git-adapter.mjs +189 -0
- package/src/runtime/local-state.mjs +439 -0
- package/src/runtime/obsidian/app-capability.mjs +129 -0
- package/src/runtime/obsidian/app-production-seams.mjs +105 -0
- package/src/runtime/obsidian/contributions/proposal-adapter.mjs +4 -0
- package/src/runtime/obsidian/contributions/selection-ui.mjs +4 -0
- package/src/runtime/obsidian/contributions/source-apply.mjs +4 -0
- package/src/runtime/obsidian/contributions.mjs +27 -0
- package/src/runtime/obsidian/documents.mjs +37 -0
- package/src/runtime/obsidian/enablement.mjs +53 -0
- package/src/runtime/obsidian/engine.mjs +532 -0
- package/src/runtime/obsidian/errors.mjs +14 -0
- package/src/runtime/obsidian/extension-points.mjs +103 -0
- package/src/runtime/obsidian/index.mjs +34 -0
- package/src/runtime/obsidian/lifecycle.mjs +258 -0
- package/src/runtime/obsidian/machine-settings.mjs +260 -0
- package/src/runtime/obsidian/observation.mjs +158 -0
- package/src/runtime/obsidian/opening.mjs +263 -0
- package/src/runtime/obsidian/pending-edits.mjs +141 -0
- package/src/runtime/obsidian/pipeline.mjs +122 -0
- package/src/runtime/obsidian/private-lock.mjs +156 -0
- package/src/runtime/obsidian/process-identity.mjs +58 -0
- package/src/runtime/obsidian/service-client.mjs +66 -0
- package/src/runtime/obsidian/service-entry-path.mjs +9 -0
- package/src/runtime/obsidian/service-main.mjs +91 -0
- package/src/runtime/obsidian/service-record.mjs +169 -0
- package/src/runtime/obsidian/service-server.mjs +121 -0
- package/src/runtime/obsidian/service.mjs +216 -0
- package/src/runtime/obsidian/startup-adapters.mjs +87 -0
- package/src/runtime/obsidian/state-store.mjs +180 -0
- package/src/runtime/obsidian/sync-notice.mjs +33 -0
- package/src/runtime/obsidian/tick-loop.mjs +84 -0
- package/src/runtime/obsidian/watchers.mjs +36 -0
- package/src/runtime/repository-observation.mjs +491 -0
- package/src/runtime/supervisor.mjs +803 -0
- package/src/server/local-sidecar.mjs +125 -59
- package/src/server/security.mjs +89 -4
- package/src/server/server.mjs +4 -2
- package/src/skills/steward.mjs +780 -0
- package/src/support/feedback-report.mjs +4 -3
- package/src/ui/presentation/browser.mjs +278 -0
- package/src/ui/presentation/contract.mjs +116 -0
- package/src/ui/presentation/index.mjs +7 -0
- package/src/ui/presentation/native.mjs +153 -0
- package/src/ui/presentation/proof.mjs +57 -0
- package/src/ui/presentation/schema-check.mjs +30 -0
- package/src/ui/presentation/schema.generated.mjs +1371 -0
- package/src/ui/presentation/state.mjs +43 -0
- package/src/ui/presentation/styles.mjs +67 -0
- package/src/ui/presentation/tokens.mjs +74 -0
- package/src/ui/presentation/web.mjs +85 -0
- package/src/ui/review-page.mjs +32 -0
- package/src/upgrade/explanation.mjs +33 -0
- package/src/upgrade/provenance.mjs +338 -0
- package/src/upgrade/transaction-files.mjs +103 -0
- package/src/upgrade/transaction.mjs +475 -0
- package/src/upgrade/upgrade.mjs +65 -29
- package/src/vault/hosts.mjs +21 -0
- package/src/vault/identity.mjs +19 -0
- package/src/vault/index.mjs +7 -0
- package/src/vault/interface.mjs +11 -0
- package/src/vault/metadata.mjs +31 -0
- package/src/vault/privacy.mjs +148 -0
- package/src/vault/probe.mjs +89 -0
- package/src/vault/service.mjs +131 -0
- package/src/vault/source.mjs +45 -0
- package/src/vault/storage.mjs +23 -0
- package/templates/distribution-workspace/.claude/launch.json +6 -2
- package/templates/distribution-workspace/gitignore +1 -0
- package/templates/distribution-workspace/project/README.md +2 -2
- package/templates/external-project-workspace/README.md +45 -0
- package/templates/external-project-workspace/answers.example.json +4 -0
- package/templates/external-project-workspace/atelier.project.json +40 -0
- package/templates/external-project-workspace/boundary-policy.v1.json +60 -0
- package/templates/external-project-workspace/gitignore +8 -0
- package/templates/external-project-workspace/pack-lifecycle.json +14 -0
- package/templates/external-project-workspace/packs/protocols/contract-gate.v1.json +109 -0
- package/templates/external-project-workspace/packs/sample-pack.v1.json +48 -0
- package/templates/external-project-workspace/repo-access.v1.json +9 -0
- package/templates/external-project-workspace/source/README.md +11 -0
- package/templates/launch.json +6 -2
- package/templates/private-domain-workspace/.claude/launch.json +6 -2
- package/templates/private-domain-workspace/domain/README.md +2 -2
- package/templates/private-domain-workspace/gitignore +1 -0
- package/templates/shared-project-workspace/.claude/launch.json +6 -2
- package/templates/shared-project-workspace/gitignore +1 -0
- 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
|
|
33
|
+
./node_modules/.bin/atelier dev
|
|
29
34
|
```
|
|
30
35
|
|
|
31
|
-
Use the local binary path. Do **not** run `npx atelier
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
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.
|
|
@@ -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
|
|
33
|
+
./node_modules/.bin/atelier dev
|
|
29
34
|
```
|
|
30
35
|
|
|
31
|
-
Use the local binary path. Do **not** run `npx atelier
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
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.
|
|
@@ -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
|
+
}
|