@cratis/pi 8.0.2 → 8.2.0
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/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +9 -102
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +3 -5
- package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +8 -49
- package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -84
- package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +6 -51
- package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -81
- package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -54
- package/package/corpus/harnesses/copilot/instructions/components.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +5 -22
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +7 -315
- package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +3 -25
- package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +5 -151
- package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +5 -104
- package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +5 -63
- package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +8 -55
- package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +3 -33
- package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +6 -79
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +4 -27
- package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +4 -6
- package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +0 -2
- package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +0 -1
- package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +7 -138
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +19 -19
- package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +1 -4
- package/package/corpus/harnesses/copilot/instructions/go.instructions.md +2 -7
- package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +5 -6
- package/package/corpus/harnesses/copilot/instructions/java.instructions.md +7 -129
- package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +8 -165
- package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +4 -1
- package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +5 -98
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +9 -63
- package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +8 -148
- package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +4 -37
- package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +7 -70
- package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -98
- package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +3 -47
- package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +3 -65
- package/package/corpus/hooks/README.md +16 -8
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +109 -6
- package/package/corpus/hooks/scripts/cratis-guard-shell-writes.sh +1 -1
- package/package/corpus/hooks/scripts/quality-gates.json +3 -5
- package/package/corpus/rules/ai-distribution.md +9 -102
- package/package/corpus/rules/authoring-skills.md +3 -5
- package/package/corpus/rules/browser.md +8 -49
- package/package/corpus/rules/code-health-policy.txt +4 -24
- package/package/corpus/rules/code-health.md +1 -1
- package/package/corpus/rules/code-quality.csharp.md +3 -84
- package/package/corpus/rules/code-quality.md +6 -51
- package/package/corpus/rules/code-quality.typescript.md +4 -81
- package/package/corpus/rules/codescene.md +5 -54
- package/package/corpus/rules/components.md +1 -1
- package/package/corpus/rules/cratis-folder-is-configuration.md +5 -22
- package/package/corpus/rules/csharp.md +7 -315
- package/package/corpus/rules/dialogs.md +1 -1
- package/package/corpus/rules/discoverability.md +3 -25
- package/package/corpus/rules/documentation-structure-and-formatting.md +5 -151
- package/package/corpus/rules/documentation.md +5 -104
- package/package/corpus/rules/editing-cratis-docs.md +5 -63
- package/package/corpus/rules/efcore.md +8 -55
- package/package/corpus/rules/efcore.specs.md +3 -33
- package/package/corpus/rules/elixir.md +6 -79
- package/package/corpus/rules/exit-codes-and-wrappers.md +4 -27
- package/package/corpus/rules/framework-dotnet.md +4 -6
- package/package/corpus/rules/framework.md +0 -2
- package/package/corpus/rules/frontend-quality.md +0 -1
- package/package/corpus/rules/frontend-testing.md +1 -1
- package/package/corpus/rules/general.md +2 -2
- package/package/corpus/rules/github-actions.md +7 -138
- package/package/corpus/rules/glossary.md +19 -19
- package/package/corpus/rules/go-engineering.md +1 -4
- package/package/corpus/rules/go.md +2 -7
- package/package/corpus/rules/guards-and-fuses.md +5 -6
- package/package/corpus/rules/java.md +7 -129
- package/package/corpus/rules/kotlin.md +8 -165
- package/package/corpus/rules/local-work-artifacts.md +4 -1
- package/package/corpus/rules/orleans.md +5 -98
- package/package/corpus/rules/profiles.md +9 -63
- package/package/corpus/rules/scripting.md +1 -1
- package/package/corpus/rules/specs.csharp.md +8 -148
- package/package/corpus/rules/specs.elixir.md +4 -37
- package/package/corpus/rules/specs.typescript.md +3 -1
- package/package/corpus/rules/storybook.md +7 -70
- package/package/corpus/rules/typescript.md +8 -98
- package/package/corpus/rules/writing-correct-examples.md +3 -47
- package/package/corpus/rules/writing-cratis-docs.md +3 -65
- package/package/corpus/skills/cratis-application-growth/SKILL.md +7 -54
- package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +49 -0
- package/package/corpus/skills/cratis-application-growth/references/rename-window.md +12 -14
- package/package/corpus/skills/cratis-application-growth/references/stages.md +2 -2
- package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +3 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +2 -2
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +10 -43
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +40 -0
- package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-arc-declare-command/references/go.md +1 -1
- package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +6 -7
- package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +2 -8
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +6 -12
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +4 -0
- package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +11 -4
- package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +19 -2
- package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +1 -2
- package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +2 -2
- package/package/corpus/skills/cratis-arc-host-application/references/go.md +5 -1
- package/package/corpus/skills/cratis-arc-host-application/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +4 -7
- package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +4 -2
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +6 -6
- package/package/corpus/skills/cratis-arc-page-query/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +10 -6
- package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +2 -2
- package/package/corpus/skills/cratis-arc-page-query/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +7 -3
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +1 -1
- package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +2 -4
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +2 -2
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +2 -2
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +1 -3
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +13 -51
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +9 -1
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +40 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +19 -64
- package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +62 -0
- package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +24 -55
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +49 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +13 -31
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +25 -0
- package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +24 -62
- package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +51 -0
- package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +4 -4
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +10 -12
- package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +16 -3
- package/package/corpus/skills/cratis-arc-validate-command/references/go.md +19 -2
- package/package/corpus/skills/cratis-arc-validate-command/references/java.md +20 -7
- package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +22 -2
- package/package/corpus/skills/cratis-arc-validate-command/references/python.md +8 -2
- package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +22 -2
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +22 -248
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +55 -0
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +72 -0
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +86 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +27 -275
- package/package/corpus/skills/cratis-arc-validation-typescript/references/models-and-queries.md +63 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +46 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/server-decisions.md +114 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +15 -255
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +13 -6
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +75 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +78 -13
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +16 -14
- package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +10 -6
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +8 -8
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +10 -8
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +8 -4
- package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +21 -8
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +5 -7
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +3 -3
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +10 -80
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +2 -2
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -24
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +10 -0
- package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +7 -6
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +2 -2
- package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +6 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +6 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +6 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +11 -5
- package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +2 -2
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +3 -1
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +51 -40
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/{occurrences.md → csharp-occurrences.md} +2 -2
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +5 -6
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +21 -19
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +3 -3
- package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +1 -1
- package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +3 -4
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +3 -4
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +2 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +7 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +3 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +2 -6
- package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +2 -2
- package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +1 -1
- package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +1 -5
- package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +3 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +2 -2
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +12 -201
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +67 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +88 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +8 -4
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +13 -11
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +2 -2
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -4
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +20 -61
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +1 -1
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +15 -26
- package/package/corpus/skills/cratis-code-review/SKILL.md +7 -6
- package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +1 -1
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +1 -1
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +14 -206
- package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +29 -0
- package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +8 -0
- package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +7 -7
- package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +1 -1
- package/package/corpus/skills/cratis-components-choose-control/SKILL.md +7 -8
- package/package/corpus/skills/cratis-components-choose-control/references/collections.md +2 -2
- package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +1 -1
- package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +22 -27
- package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +5 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +19 -25
- package/package/corpus/skills/cratis-components-display-list/SKILL.md +26 -19
- package/package/corpus/skills/cratis-components-display-list/references/server-query.md +3 -3
- package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +15 -12
- package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +3 -3
- package/package/corpus/skills/cratis-components-explore-data/SKILL.md +7 -7
- package/package/corpus/skills/cratis-components-host-chat/SKILL.md +7 -7
- package/package/corpus/skills/cratis-components-submit-form/SKILL.md +9 -15
- package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +5 -5
- package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +3 -3
- package/package/corpus/skills/cratis-components-theme-application/SKILL.md +7 -51
- package/package/corpus/skills/cratis-components-theme-application/references/palette.md +49 -0
- package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +4 -2
- package/package/corpus/skills/cratis-content-length/SKILL.md +34 -46
- package/package/corpus/skills/cratis-content-length/references/length-evidence.md +26 -127
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +15 -27
- package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +3 -19
- package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +29 -224
- package/package/corpus/skills/cratis-discoverability/SKILL.md +11 -4
- package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +2 -2
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +4 -3
- package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +13 -129
- package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +132 -0
- package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +11 -100
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +55 -40
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +68 -0
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +38 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +14 -65
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +40 -174
- package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +8 -52
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +29 -0
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +20 -0
- package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +3 -4
- package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +7 -12
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +5 -4
- package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +6 -40
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +18 -151
- package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +5 -21
- package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +19 -0
- package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +3 -66
- package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +68 -0
- package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +2 -84
- package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +87 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +15 -263
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +3 -3
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +28 -6
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dotnet-nuget.md +18 -14
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +231 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/other-environments.md +2 -3
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +62 -77
- package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +6 -39
- package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +36 -0
- package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +4 -4
- package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +8 -134
- package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +139 -0
- package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +3 -100
- package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +109 -0
- package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +1 -5
- package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +1 -3
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +11 -116
- package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +93 -0
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +4 -15
- package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +8 -8
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +1 -1
- package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +5 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +15 -2
- package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +1 -1
- package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +10 -27
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +16 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +26 -188
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +14 -0
- package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +7 -5
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +23 -157
- package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +139 -0
- package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +7 -5
- package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +2 -4
- package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +7 -0
- package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +2 -2
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +1 -1
- package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +2 -2
- package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +2 -2
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +5 -23
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +20 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +3 -3
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +8 -63
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +52 -0
- package/package/corpus/skills/cratis-observability/SKILL.md +1 -1
- package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +9 -23
- package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +3 -14
- package/package/corpus/skills/cratis-observability/references/csharp.md +4 -6
- package/package/corpus/skills/cratis-observability/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-observability/references/troubleshooting.md +4 -5
- package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +1 -4
- package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +0 -3
- package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +0 -4
- package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +7 -49
- package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +22 -0
- package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +4 -4
- package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +1 -1
- package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +12 -0
- package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +12 -0
- package/package/corpus/skills/cratis-orchestration-lanes/references/worktrees.md +11 -0
- package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +14 -13
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +51 -26
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +8 -14
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +9 -65
- package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +5 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +11 -7
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +1 -1
- package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +27 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +35 -0
- package/package/corpus/skills/cratis-performance-review/SKILL.md +6 -76
- package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +79 -0
- package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +19 -16
- package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +2 -2
- package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +5 -5
- package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +1 -1
- package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +2 -3
- package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +2 -2
- package/package/corpus/skills/cratis-platform-start-application/SKILL.md +10 -8
- package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +6 -6
- package/package/corpus/skills/cratis-platform-start-application/references/java.md +4 -4
- package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +4 -4
- package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +3 -3
- package/package/corpus/skills/cratis-release-notes/SKILL.md +9 -133
- package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -0
- package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +64 -0
- package/package/corpus/skills/cratis-rtk/SKILL.md +12 -18
- package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-accept-model/references/capability-consumption.md +1 -1
- package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +1 -1
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +25 -59
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +11 -10
- package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +9 -6
- package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +3 -3
- package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +8 -0
- package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +20 -167
- package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +23 -47
- package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +9 -10
- package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +26 -23
- package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +6 -14
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +2 -2
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/read-identity.md +1 -1
- package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +7 -9
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +10 -14
- package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +6 -31
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +22 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +5 -5
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +5 -5
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +4 -4
- package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +4 -75
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -2
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +85 -1
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +15 -133
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +4 -12
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +28 -57
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +4 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +13 -20
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +3 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +2 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +5 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +82 -71
- package/package/corpus/skills/cratis-security-review/SKILL.md +4 -73
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +24 -13
- package/package/corpus/skills/cratis-security-review/references/review-checklist.md +74 -0
- package/package/corpus/skills/cratis-session-handoff/SKILL.md +7 -32
- package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +2 -2
- package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +20 -0
- package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +9 -17
- package/package/corpus/skills/cratis-showrunner-herald/references/options.md +2 -2
- package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +16 -10
- package/package/corpus/skills/cratis-social-feed-post/SKILL.md +9 -162
- package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +37 -0
- package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +40 -0
- package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +39 -150
- package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +24 -0
- package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +23 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +5 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +2 -2
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +13 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +7 -4
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +20 -4
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +2 -2
- package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +5 -5
- package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +2 -2
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +2 -2
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +2 -2
- package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +10 -9
- package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +3 -3
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +7 -6
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -6
- package/package/corpus/skills/cratis-technical-examples/SKILL.md +10 -106
- package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +1 -1
- package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +42 -0
- package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +2 -2
- package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +37 -0
- package/package/corpus/skills/cratis-ux-review/SKILL.md +8 -40
- package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +24 -0
- package/package/corpus/skills/cratis-ux-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-ux-review/references/report-template.md +2 -1
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +19 -132
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +24 -97
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +23 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +25 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +17 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +23 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +8 -29
- package/package.json +1 -1
- /package/package/corpus/skills/cratis-chronicle-protect-decision/references/{standalone.md → csharp-standalone.md} +0 -0
- /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/silent-backup-failure.md → silent-backup-failure.md} +0 -0
- /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/unintended-release-regression.md → unintended-release-regression.md} +0 -0
|
@@ -6,25 +6,23 @@ compatibility: Requires the Screenplay CLI. Typed proposals and interrupted-writ
|
|
|
6
6
|
|
|
7
7
|
# Review and apply a command input rename
|
|
8
8
|
|
|
9
|
-
For a new declaration with unambiguous ownership, [author the slice](../cratis-screenplay-declare-slice/SKILL.md) directly. For a command property rename, use the
|
|
9
|
+
For a new declaration with unambiguous ownership, [author the slice](../cratis-screenplay-declare-slice/SKILL.md) directly. For a command property rename, use the `screenplay` MCP server to preserve the property's identity. Discover its tools and input shapes via the client's tool listing.
|
|
10
10
|
|
|
11
11
|
Edit the application's actual model root; rehearse on a copy only when requested. The example assumes the requested change is `RegisterAuthor.name` to `authorName`. The requesting user approves writes unless they name another owner.
|
|
12
12
|
|
|
13
|
-
**Without MCP:** Edit the owning `.play` declaration and its bound references in place. Run `screenplay model` and `screenplay test model --format json`, then review the diff. These are one-off edit checks, not proof of identity continuity. If a rename must preserve identity, do not substitute a text rename for a typed proposal; leave that operation pending until the typed tooling is available.
|
|
14
|
-
|
|
15
|
-
**With MCP:**
|
|
16
|
-
|
|
17
13
|
1. Connect the MCP client to the application's model root and call `open-workspace`. Save the returned revision and catalog revision. Call `read-ast` with `expectedRevision` for that workspace, `kind: "PropertySyntax"` and `name: "name"`. From `page.items` take the `handle` of the item whose `handle.path` contains `/commands/`, not the `AuthorRegistered` payload or `Author` read-model property. The AST `address` contains `kind` and `parts`; it is not a dotted string.
|
|
18
14
|
2. Call `propose-property` with this handle as `target`, `action: "rename"`, `expectedName: "name"`, `newName: "authorName"`, `validation: "Executable"`, `expectedRevision` and `expectedCatalogRevision`.
|
|
19
|
-
3. Call `read-proposal` with its `proposalId` and `view: "changes"`, then `view: "diagnostics"`. If `droppedCommentCount` is not zero, also read `view: "dropped-comments"`. Check both sides of `name = name`: the event member remains `name`, the command reference becomes `authorName`. Review each input assignment changed in the example; a string literal is not a property reference. Check `stateChange` for identity continuity as well as references and dropped comments. If unsure whether a replacement is intended, stop at the proposal.
|
|
15
|
+
3. Call `read-proposal` with its `proposalId` and `view: "changes"`, then `view: "diagnostics"` and `view: "executable-diagnostics"`. Read the exact changed documents with `view: "after"` and each `documentId`. If `droppedCommentCount` is not zero, also read `view: "dropped-comments"`. Check both sides of `name = name`: the event member remains `name`, the command reference becomes `authorName`. Review each input assignment changed in the example; a string literal is not a property reference. Check `stateChange` for identity continuity as well as references and dropped comments. If unsure whether a replacement is intended, stop at the proposal.
|
|
20
16
|
4. Obtain approval for this change set at the reviewed workspace and catalog revisions. Call `apply` with its `proposalId`, `expectedRevision` and `expectedCatalogRevision`.
|
|
21
|
-
5. Call `open-workspace` again and run
|
|
17
|
+
5. Call `open-workspace` again, compile the model and run the model specifications. Verify the event member and stored name did not change.
|
|
18
|
+
|
|
19
|
+
Choose a direct source edit only when identity continuity is not required and MCP is unavailable. Review the diff, compile and run the model specifications; those checks cannot prove continuity.
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
Choose the standalone CLI when renaming a whole **declaration** by address and the edit has already been approved. From the model root run `screenplay rename <address> <new-name>`. Pass a model folder as the third argument when running elsewhere. Add `--kind` when the address names more than one declaration. It is a write, not a preview. Confirm the address, kind, references, stored event name and authority first. On success a renamed event's stored name is pinned and `.screenplay/identities.json` is updated. Exit `0` means renamed; `1` is a refused proposal and `2` is an invocation or address-resolution failure. This declaration operation is not a substitute for the property proposal above.
|
|
24
22
|
|
|
25
23
|
Compare the approved before and after folders with `screenplay diff before/model after/model --format json`. Exit 0 means a comparison ran, **not** that there were no breaking changes; 2 means it could not run. Check the reported matching mode: a move matched by persisted identity is different from removal plus addition matched by address. `screenplay export` returns 0 for an emitted artifact, 1 for a model or requested export that cannot be emitted and 2 for an invocation or input error. If identities disagree with the sources, preserve both, restore the reviewed names and redo the intended rename through identity-aware tooling; do not delete identity state to produce a clean export.
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
Prefer a targeted repair over rewriting a file with dropped comments. Keep presentation layout, story order and executable behavior in separate reviewed changes. A valid proposal may still change the wrong thing.
|
|
28
26
|
|
|
29
27
|
## When it goes off the usual path
|
|
30
28
|
|
|
@@ -13,7 +13,7 @@ Read the workspace and call `list-model-notes` on the `screenplay` MCP server. T
|
|
|
13
13
|
}
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Inspect `read-proposal` with `view: "notes"` and verify the resolved anchor. If the server reports a substitution, do not apply it silently: fix the target or seek review of the new anchor. With permission call `apply` with the reviewed `proposalId`, `expectedRevision` and `expectedCatalogRevision`; reread and repropose on stale state. Use `reanchor` with the note `id` and a verified stable anchor when a note legitimately moves. Resolve a note only with
|
|
16
|
+
Inspect `read-proposal` with `view: "notes"` and verify the resolved anchor. If the server reports a substitution, do not apply it silently: fix the target or seek review of the new anchor. With permission call `apply` with the reviewed `proposalId`, `expectedRevision` and `expectedCatalogRevision`; reread and repropose on stale state. Use `reanchor` with the note `id` and a verified stable anchor when a note legitimately moves. Resolve a note only with a stable witness: use `resolve` with the note `id` and a `resolution` containing `by: "specification"`, the witness `semanticId`, explanatory `text` and `author`. Do not put secrets or personal data in note content, references, authors or resolutions.
|
|
17
17
|
|
|
18
18
|
At the anchored withdrawal action, the owner saw “Delete” and asked for “Withdraw.” Confirm whether only the label should change or withdrawn invoices should now be closed to edits. Record the intended outcome before proposing either; applying it needs separate permission.
|
|
19
19
|
|
|
@@ -4,18 +4,18 @@ description: Use when a modeler needs to hand an accepted Screenplay slice, scop
|
|
|
4
4
|
compatibility: Requires the Screenplay CLI.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Hand off
|
|
7
|
+
# Hand off an accepted slice
|
|
8
8
|
|
|
9
|
-
1. Start
|
|
10
|
-
2. Export the full model and the registration-only excerpt, then copy the top-level `revision` field from each JSON file. Label the values **full model** (`library.json`) and **registration excerpt** (`registration.json`). If
|
|
9
|
+
1. Start at the application root. Confirm [acceptance](../cratis-screenplay-accept-model/SKILL.md) of this revision and identify the target. The example hands off Library author registration.
|
|
10
|
+
2. Export the full model and the registration-only excerpt, then copy the top-level `revision` field from each JSON file. Label the values **full model** (`library.json`) and **registration excerpt** (`registration.json`). If an export is unavailable, leave its revision pending:
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
13
|
screenplay export model --output library.json
|
|
14
14
|
screenplay export model --scope Library.Authors.RegisterAuthor --output registration.json
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
3. For a slice-only handoff, give the reader `registration.json`, the accepted full-model revision, the excerpt revision and the accepted example addresses and outcomes. Check the excerpt for the definitions it references. An export keeps application-level declarations but does not bring in other slices; supply any needed definitions from separate scoped exports. Name cross-slice checks such as `Library.Authors.ListAuthors` separately from the registration contract.
|
|
18
|
-
4.
|
|
17
|
+
3. For a slice-only handoff, give the reader `registration.json`, the accepted full-model revision, the excerpt revision and the accepted example addresses and outcomes. Check the excerpt for the definitions it references. An export keeps application-level declarations but does not bring in other slices; supply any needed definitions from separate scoped exports. Name cross-slice checks such as `Library.Authors.ListAuthors` separately from the registration contract. For a source renderer, supply the accepted sources and identity state, not just the excerpt. For extensions, include `screenplay.lock` and restore from it (see `cratis-screenplay-author-extension`). For consumers that preserve unfamiliar semantic-model additions without executing them, use [unknown-preserving admission](references/unknown-preserving-reader.md).
|
|
18
|
+
4. For a screen consumer, run `screenplay export model --format ui --output screens.json`. Use the full UI contract because `AddAuthor` navigates to `Authors` in the separate `ListAuthors` slice. Check both screens, the registration action’s destination, and the expected identities and routes. UI export can exit successfully without identities or routes when the model does not bind. Add the HTTP contract below for a client integrating over HTTP.
|
|
19
19
|
5. List the target checks for the implementer: Aster appears in the open list under the agreed ID; a blank name produces `Name is required` and no new row. Map each check to its accepted example. Leave execution pending.
|
|
20
20
|
|
|
21
21
|
Order implementation by [dependency waves](references/ordering.md). Where an upstream change crosses services, include the receiver's local acceptance witness, not just a producer trace.
|
|
@@ -26,23 +26,19 @@ For a registration-only client, run `screenplay export model --scope Library.Aut
|
|
|
26
26
|
|
|
27
27
|
With the default model conventions, the execution operation is `POST /api/library/authors/register-author` with ID `Library.Authors.RegisterAuthor.RegisterAuthor`. Validation appends `/validate` to that path and `.Validate` to that ID; both share the command's `x-screenplay-id`. A separate listing contract includes `GET /api/library/authors/list-authors/all-authors` with ID `Library.Authors.ListAuthors.AllAuthors` and its own artifact ID; it is not in the registration-only export. Copy the artifact IDs from the export. If it is unavailable, identify the fields to extract and leave their values pending.
|
|
28
28
|
|
|
29
|
-
Treat
|
|
29
|
+
The OpenAPI `x-screenplay-observable` marker identifies a live model query. Treat the exported IDs as model metadata. Arc's generated OpenAPI uses the host's endpoint names as `operationId` (for example, `ExecuteLibrary.Features.Authors.Registration.RegisterAuthor`), not the Screenplay operation IDs. Get `x-screenplay-id` from the Screenplay export, not Arc. Confirm the target host's method, path and operation ID against its own OpenAPI before writing client requests.
|
|
30
30
|
|
|
31
31
|
| Arc client intent | Request on the confirmed host route | Expected result |
|
|
32
32
|
|---|---|---|
|
|
33
33
|
| Validate `RegisterAuthor` | `POST <command-route>/validate` with the command JSON | Runs authorization and validation, not the handler; no registration is recorded, even for valid input. |
|
|
34
34
|
| Execute `RegisterAuthor` | `POST <command-route>` with the same JSON | Runs the handler when authorized and valid. Check the command result and the registration outcome. |
|
|
35
|
-
| Read one `AllAuthors` snapshot | `GET <query-route>?waitForFirstResult=true` without a stream header or upgrade | One JSON query result, not a subscription.
|
|
35
|
+
| Read one `AllAuthors` snapshot | `GET <query-route>?waitForFirstResult=true` without a stream header or upgrade | One JSON query result, not a subscription. For MongoDB `Observe()`, do not omit `waitForFirstResult=true`: a no-wait GET returns 202 with `isReady: false` and can leave a watcher running. |
|
|
36
36
|
| Follow `AllAuthors` live | `GET <query-route>` with `Accept: text/event-stream` | Keep the connection open for later results; the first streamed result alone does not verify live delivery. |
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
On the target, check that validation adds no row and execution puts the agreed ID in both the snapshot and open stream.
|
|
39
39
|
|
|
40
40
|
## When it goes off the usual path
|
|
41
41
|
|
|
42
|
-
- **The compiler accepts a feature that the renderer cannot deliver:** record the
|
|
42
|
+
- **The compiler accepts a feature that the renderer cannot deliver:** record the selected target and its specific admission diagnostic or behavior gap. Assign one owner and one target check per unrendered behavior. Don't weaken the accepted outcome or edit renderer-managed files to make the handoff look complete.
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- [Declare the model slice](../cratis-screenplay-declare-slice/SKILL.md) for its qualified name.
|
|
47
|
-
- Render the accepted slice (`cratis-stage-render-slice` skill in `cratis/stage`) to preview generated changes and assign target gaps before publication.
|
|
48
|
-
- Deliver the slice (`cratis-platform-deliver-slice` skill in `cratis/application`) for the running application check.
|
|
44
|
+
Use `cratis-stage-render-slice` in `cratis/stage` for rendering, and `cratis-platform-deliver-slice` in `cratis/application` to verify delivery.
|
|
@@ -16,7 +16,7 @@ Choose a schedule when the clock determines when to act: `every 15 minutes` for
|
|
|
16
16
|
|
|
17
17
|
## Example: request one welcome per directory author
|
|
18
18
|
|
|
19
|
-
Use `AuthorId` from [Declare the slice](../cratis-screenplay-declare-slice/SKILL.md) and `DirectoryAuthorSeen` from the directory translation. Here the directory row ID is already the Library's `AuthorId`. The Library system requests a welcome, not delivery of the message.
|
|
19
|
+
Use `AuthorId` from [Declare the slice](../cratis-screenplay-declare-slice/SKILL.md) and `DirectoryAuthorSeen` from the directory translation. Here the directory row ID is already the Library's `AuthorId`. The Library system requests a welcome, not delivery of the message. Use `for id` to address the production; omitting `for` on plain `produces` does not select the identifier. It can record only one request per author; acknowledge just that constraint refusal on redelivery.
|
|
20
20
|
|
|
21
21
|
```play
|
|
22
22
|
module Library
|
package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md
CHANGED
|
@@ -6,7 +6,7 @@ Start with one occurrence. An event reaction sees a recorded fact; its command m
|
|
|
6
6
|
|
|
7
7
|
**Whose authority?** Declare `runs as system` once directly on the reaction, not on an individual trigger. Its declared roles apply to the commands it invokes across triggers. It does not supply arbitrary user claims, change the original caller or turn a direct `produces` into an authorized command. Without the declaration the invocation has no caller in the reference evaluator. If two triggers need different privileges, separate their responsibilities rather than giving both the union of roles.
|
|
8
8
|
|
|
9
|
-
**Whose decision?** If creating a welcome depends on whether an author is still eligible, pass the addressed author to the command and let the command protect its own decision read. Declaring a trigger `reads` does not make direct production from a stale read safe. An invocation-only reaction cannot map a read alias as a portable trigger value. Hiding the read in an opaque body does not establish protection either. For an event trigger, `$eventSourceId` identifies the triggering
|
|
9
|
+
**Whose decision?** If creating a welcome depends on whether an author is still eligible, pass the addressed author to the command and let the command protect its own decision read. Declaring a trigger `reads` does not make direct production from a stale read safe. An invocation-only reaction cannot map a read alias as a portable trigger value. Hiding the read in an opaque body does not establish protection either. For an event trigger, `$eventSourceId` identifies the triggering fact’s event source, not its stream ID or caller; use it only when that is the desired command target.
|
|
10
10
|
|
|
11
11
|
**Which effects commit together?** At the application root, `reaction batches atomic` groups the direct productions of one trigger occurrence. Each invoked command decides independently. A selected refusal branch that produces facts has its own batch. Do not promise to undo an earlier accepted command when a later invocation refuses. Name the business refusal (authorization, validation or the intended constraint) that a branch may handle. A concurrency conflict or an unavailable store is not a business denial: leave it visible for retry or investigation rather than acknowledging it.
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-screenplay-model-interaction
|
|
3
|
-
description: Use when a modeler needs to bind a Screenplay form or screen to an operation, navigation destination or performer-specific action. Not for React
|
|
3
|
+
description: Use when a modeler needs to bind a Screenplay form or screen to an operation, navigation destination or performer-specific action. Not for wiring an accepted interaction in React (use cratis-arc-react-bind-slice).
|
|
4
4
|
compatibility: Requires the Screenplay CLI.
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ module Library
|
|
|
33
33
|
|
|
34
34
|
From the directory containing `model`, run `screenplay export model --format ui --output screens.json`. In `screens.json`, verify the Authors screen title, the toolbar item's `AddAuthor` destination, the Add action's `RegisterAuthor` command and `Authors` destination, and the live `AllAuthors` data binding. Check the form separately in `registration.play`: `form AddAuthorForm for RegisterAuthor` binds the editable name; a screen export alone need not contain the form declaration.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Choose a row gesture when the action is to inspect a specific record. Bind the screen's collection with `data Author[] via query AllAuthors`. Put the interaction on the table displaying that collection, not at screen level. With an existing `AuthorDetails` screen whose input is `authorId`, pass the activated row's key explicitly:
|
|
37
37
|
|
|
38
38
|
```play
|
|
39
39
|
screen Authors
|
|
@@ -45,39 +45,19 @@ screen Authors
|
|
|
45
45
|
with authorId from item.id
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Keep Add as `action RegisterAuthor for screen`: it needs no selected row. The inspection gesture above passes `item.id` directly rather than making the user enter it in a form.
|
|
49
|
-
|
|
50
48
|
For an action `for item`, explicit bindings win, then compatible case-sensitive field names. A required non-generated scalar identifier may use a single key of the same nominal concept. Two UUIDs are not interchangeable just because they share a primitive. Where several collections could supply the subject, narrow to one displayed table or bind explicitly. Never choose the first row to resolve ambiguity.
|
|
51
49
|
|
|
52
50
|
If the command returns `registeredAuthorId`, pass it to the destination with `with authorId from registeredAuthorId` under the `navigate to AuthorDetails` action. Put the navigation in the form's `on submit` block. If the interaction issues the command directly with `execute <Command>`, put the navigation in its `on success` block. Use the bare returned name, not `$response.registeredAuthorId`, and check that the target renderer binds it. A failed submission has no returned value; do not read an old selection as a substitute.
|
|
53
51
|
|
|
54
52
|
For conditional actions, the first matching `when` wins. An `otherwise` branch is not a way to run a row action with no row. A change handler should act on the changed item, not the previous selection. A visibility guard is never the command's authorization policy.
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
For a template, a performer-backed query or a renderer discrepancy, [check composition and provider boundaries](references/shell-and-data.md). For a C# attachment, see [snapshot and live performer bodies](references/csharp-performers.md).
|
|
57
55
|
|
|
58
56
|
For a decision that generates an identifier, attaches code, or compares time-sensitive inputs, [choose the command contract](references/decision-inputs.md) before you bind the form.
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Leave the [acceptance walkthrough](../cratis-screenplay-accept-model/SKILL.md) ungated. If the entire Library module is a preview, declare this audience at the model root:
|
|
58
|
+
Choose a shared [module gate](references/shell-and-data.md#gate-a-module-preview) when the feature is a preview. Keep permissions separate.
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
audience LibraryPreview
|
|
66
|
-
description "Callers with the Library preview"
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Add the shared gate under the existing `module Library`, alongside `form AddAuthorForm`:
|
|
70
|
-
|
|
71
|
-
```play
|
|
72
|
-
module Library
|
|
73
|
-
available for LibraryPreview
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
The form inherits the module gate, not a screen gate. Gating only `AddAuthor` and `RegisterAuthor` leaves the form able to invoke an unavailable command (`PLAY1139`). The module gate also covers the Authors screen, `AllAuthors`, and other screens, commands and queries in Library; it does not stop events or projections.
|
|
77
|
-
|
|
78
|
-
Hide gated screens and actions when the gate is closed or unresolved. Keep any existing command permission check; availability doesn't grant permission. Model specifications assume availability. On the target, check that a caller outside the audience cannot open Add, run the command or read the list, and that a caller inside the audience without permission is still denied.
|
|
79
|
-
|
|
80
|
-
If the same screen renders differently across profiles, [trace the shell and data provision](references/shell-and-data.md) before editing the component or adding a second command. For locale-dependent text, [write companion strings](references/localized-strings.md).
|
|
60
|
+
For locale-dependent text, [write companion strings](references/localized-strings.md).
|
|
81
61
|
|
|
82
62
|
For an opt-in Scene web form that collects query arguments, [wire the TypeScript host](references/typescript.md). The component is not portable Screenplay form syntax; on other targets bind the actual query through the host's own form.
|
|
83
63
|
|
|
@@ -86,9 +66,4 @@ For an opt-in Scene web form that collects query arguments, [wire the TypeScript
|
|
|
86
66
|
- **Submission is refused:** keep the registration screen open and show the command's outcome. Navigate to Authors only on success.
|
|
87
67
|
- **A gesture is in the UI export but does nothing:** check renderer support and record the gap. An exported interaction is not a working target interaction.
|
|
88
68
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
- [Model automation](../cratis-screenplay-model-automation/SKILL.md) for system-triggered work on a local fact rather than a librarian's action.
|
|
92
|
-
- [Model translation](../cratis-screenplay-model-translation/SKILL.md) when an outside observation must first become a local fact.
|
|
93
|
-
- [Declare the slice](../cratis-screenplay-declare-slice/SKILL.md) to define the operation inputs and results.
|
|
94
|
-
- Use the `cratis-arc-react-bind-slice` skill (installed by the `cratis/arc/react` profile) to implement the accepted interaction.
|
|
69
|
+
Use `cratis-arc-react-bind-slice` (in `cratis/arc/react`) to implement the accepted interaction.
|
package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Explain a screen in its actual shell
|
|
2
2
|
|
|
3
|
+
A template with typed slots declares shared structure. Supply data and actions on the implementing screen, respecting slot cardinality. A performer-backed query declares an interface, not a second portable implementation. Preserve its inputs, result cardinality and policy; verify the provider’s parameters rather than inferring them from the screen.
|
|
4
|
+
|
|
3
5
|
1. Identify the active UI profile and its root template. The layout owns shell outlets; a module's navigation contributes to them. A navigation item chooses a route; a toolbar button opening a State Change task does not declare a second command or change the primary routed screen. Keep the application identity distinct from a localized navigation title, field label or action verb.
|
|
4
6
|
2. Resolve the component in the active package chain before creating a replacement. Later libraries can shadow earlier ones; a qualified component name selects that package, while `core` provides the fallback. Check which package supplies the stable component identifier and whether the target platform realizes it. If the visual result differs, check the profile's theme override before changing a shared design-system token. A text key refers to localized content, not to a style value.
|
|
5
7
|
3. For a reusable free screen, describe the data shape it needs. A slice adopts it with `uses screen` and supplies its query. When two lists have the same shape, alias each need and provide it separately, for example open invoices and overdue invoices. Check cardinality, fields, types and arguments. An unadopted screen is design-only. It neither executes a query nor proves a route exists. An adopted screen with an unmet need can warn at source and fail executable screen admission.
|
|
@@ -14,3 +16,23 @@ When a Scene Design canvas is available, read its active catalogue and current s
|
|
|
14
16
|
On refusal, say what was refused and choose the nearest catalogue alternative that fits the intent. Retry only that valid operation against the current revision. Don't simulate free styling or off-system values through labels, markup or another property. If the catalogue lacks what the user needs, propose it to the design-system draft; the current screen keeps its approved design until the draft is reviewed and activated.
|
|
15
17
|
|
|
16
18
|
For text that varies by locale, use [companion strings](localized-strings.md).
|
|
19
|
+
|
|
20
|
+
## Gate a module preview
|
|
21
|
+
|
|
22
|
+
Leave the [acceptance walkthrough](../../cratis-screenplay-accept-model/SKILL.md) ungated. If the entire Library module is a preview, declare this audience at the model root:
|
|
23
|
+
|
|
24
|
+
```play
|
|
25
|
+
audience LibraryPreview
|
|
26
|
+
description "Callers with the Library preview"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Add the shared gate under the existing `module Library`, alongside `form AddAuthorForm`:
|
|
30
|
+
|
|
31
|
+
```play
|
|
32
|
+
module Library
|
|
33
|
+
available for LibraryPreview
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The form inherits the module gate, not a screen gate. Gating only `AddAuthor` and `RegisterAuthor` leaves the form able to invoke an unavailable command (`PLAY1139`). The module gate also covers the Authors screen, `AllAuthors`, and other screens, commands and queries in Library; it does not stop events or projections.
|
|
37
|
+
|
|
38
|
+
Hide gated screens and actions when the gate is closed or unresolved. Keep any existing command permission check; availability doesn't grant permission. Model specifications assume availability. On the target, check that a caller outside the audience cannot open Add, run the command or read the list, and that a caller inside the audience without permission is still denied.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-screenplay-model-translation
|
|
3
|
-
description: Use when a modeler needs to translate external observations into local facts or private events into a public contract.
|
|
3
|
+
description: Use when a modeler needs to translate external observations into local facts or private events into a public contract. Not for reacting to a local fact (use cratis-screenplay-model-automation).
|
|
4
4
|
compatibility: Requires the Screenplay CLI.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Translate across a boundary
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Default to an inbound API capture when the provider exposes snapshots for polling. Translate outside data into a private local fact.
|
|
10
10
|
|
|
11
11
|
For an inbound capture, name the private local fact, choose a stable key and map only the fields that fact needs. If the local fact triggers more work, [model a separate automation](../cratis-screenplay-model-automation/SKILL.md) that observes it.
|
|
12
12
|
|
|
@@ -58,7 +58,7 @@ Check the configured source adapter's actual options; a non-event source can acc
|
|
|
58
58
|
|
|
59
59
|
Distinguish a fresh snapshot from a foreign event's partial update. In a `source events` capture the first observation is added; later observations overlay remembered state for that key. An unchanged overlay produces nothing. Absence from a single event is not evidence that the root disappeared. For a collection in a snapshot, compare children by their declared identity, not their position. Test a reorder separately from a deletion. Keep the raw payload and private fields out of the local fact unless its consumer needs them.
|
|
60
60
|
|
|
61
|
-
##
|
|
61
|
+
## Choose event capture when the provider publishes facts
|
|
62
62
|
|
|
63
63
|
Declare the public event's origin and name it under `source events`. Key the append from the incoming payload; it need not be the incoming event's own history address. Use `when append`, not `when capture`, to stimulate an event capture.
|
|
64
64
|
|
|
@@ -89,7 +89,7 @@ module Library
|
|
|
89
89
|
name = "Aster"
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
##
|
|
92
|
+
## Choose outbound translation when the Library owns the fact
|
|
93
93
|
|
|
94
94
|
Use `direction outbound`. Declare `public event AuthorPublished` without a foreign origin. Project private facts into that one public event; expose only its contract fields. This example uses `AuthorRegistered` from [Declare the slice](../cratis-screenplay-declare-slice/SKILL.md).
|
|
95
95
|
|
|
@@ -116,7 +116,7 @@ module Library
|
|
|
116
116
|
|
|
117
117
|
Transport the public event (`cratis-chronicle-publish-contract` skill in `cratis/chronicle`) through the outbox and inbox. Test delivery separately; these model specifications don't run polling or transport.
|
|
118
118
|
|
|
119
|
-
If the outside system needs a new reusable provider package rather than just a boundary mapping, author the extension (`cratis-screenplay-author-extension` skill in `cratis/
|
|
119
|
+
If the outside system needs a new reusable provider package rather than just a boundary mapping, author the extension (`cratis-screenplay-author-extension` skill in `cratis/screenplay`) separately. Declaring a translation does not install or activate a backend.
|
|
120
120
|
|
|
121
121
|
## When it goes off the usual path
|
|
122
122
|
|
|
@@ -8,9 +8,9 @@ compatibility: Requires the Screenplay CLI. A stdio MCP client is optional for p
|
|
|
8
8
|
|
|
9
9
|
Locate the configured or existing application model root first; reuse it rather than creating a second model. For a new Library model, use the empty `model/` directory under the application root if the owner has not chosen another root. Substitute the actual model root in the examples below. Keep unrelated models and comparison copies outside it: folder compilation combines all `.play` files beneath the root.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
If `screenplay` is not installed, use `dotnet tool install --global Cratis.Screenplay.Tool` with the .NET 11 SDK. Use `screenplay` to author and test. For Stage delivery, verify the same sources with `cratis render`: its bundled compiler and renderer have separate admission checks.
|
|
12
12
|
|
|
13
|
-
**CLI only:** In an empty workspace, create `model/application.play` with these two lines, then run `screenplay model` from its parent:
|
|
13
|
+
**Default — CLI only:** In an empty workspace, create `model/application.play` with these two lines, then run `screenplay model` from its parent:
|
|
14
14
|
|
|
15
15
|
```play
|
|
16
16
|
reaction batches atomic
|
|
@@ -19,7 +19,7 @@ command reads protected
|
|
|
19
19
|
|
|
20
20
|
Do not overwrite existing source or change existing modes. Continue with the [first slice](../cratis-screenplay-declare-slice/SKILL.md). Folder compilation is a one-off setup check, not a business spec.
|
|
21
21
|
|
|
22
|
-
**
|
|
22
|
+
**Choose MCP when** a client is already available and you want to review a proposal before writing. Create the empty model directory first; ordinary MCP startup does not create it.
|
|
23
23
|
|
|
24
24
|
1. Configure the client's stdio command as `screenplay` with arguments `mcp` and the **absolute path to `model/`**. Keep approval enabled for writes and recovery.
|
|
25
25
|
2. Call `open-workspace` with `applicationName: "Library"`. Confirm the root and retain `revision` and `catalogRevision`. If the workspace already contains documents, inspect its saved identity and documents instead of initializing another application. Opening a workspace is not permission to change it.
|
|
@@ -30,7 +30,7 @@ Do not overwrite existing source or change existing modes. Continue with the [fi
|
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
The root preamble selects atomic reaction batches and protected command reads. Don't change an existing application's modes as part of connecting a client. Put each declaration in one owning document; for example, put registration in `model/Authors/registration.play`, restating its module and feature headers there. The directory name alone doesn't establish its model address.
|
|
33
|
-
4. Inspect `read-proposal` changes and diagnostics. With read-only access, return the proposal and stop. With explicit approval for the reviewed changes from the requesting user or their named owner, call `apply` with the proposal ID and both expected revisions. If either revision is stale, reopen and review again; don't retry with substituted revisions.
|
|
33
|
+
4. Inspect the `read-proposal` changes and diagnostics. With read-only access, return the proposal and stop. With explicit approval for the reviewed changes from the requesting user or their named owner, call `apply` with the proposal ID and both expected revisions. If either revision is stale, reopen and review again; don't retry with substituted revisions.
|
|
34
34
|
5. Reopen, read the document inventory, and check it includes `application.play`. From the application directory, `screenplay model` must compile the composed folder. This proves the workspace can load, not that a business outcome exists. [Declare the first slice](../cratis-screenplay-declare-slice/SKILL.md) from the agreed timeline.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
If the compiler flags retired slot, outlet, navigation or toolbar forms, [migrate the whole model](references/version-migration.md) before making the requested edit.
|
package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# Migrate retired
|
|
1
|
+
# Migrate retired slot and outlet forms
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use this when the compiler names `screenplay migrate` or reports `PLAY0890`–`PLAY0896`. The `--from` value selects the migration for these source forms. Use the actual whole model root (here `model`); don't hand-translate individual files of a split model because outlets and references can cross files.
|
|
4
4
|
|
|
5
5
|
1. Start from a clean model tree. Create the local report directory, then preview:
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
screenplay migrate model --from 5 --
|
|
8
|
+
screenplay migrate model --from 5 --dry-run --report reports/migrate.json
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
2. Review the preview, then run the same command without `--dry-run` on the whole root. Exit 0 means migration completed, 2 means items need review, and 1 means it could not run. Read the report and resolve each review item with the owner; do not treat exit 2 as completion.
|
|
12
|
-
3. Review the diff for unrelated changes, run `screenplay model --warnaserror` and `screenplay test model
|
|
12
|
+
3. Review the diff for unrelated changes, run `screenplay model --warnaserror` and `screenplay test model` from the model’s parent directory, and commit the verified migration separately before making the requested edit.
|
|
@@ -8,7 +8,7 @@ compatibility: Requires the Screenplay CLI.
|
|
|
8
8
|
|
|
9
9
|
1. Record the application, screen, caller and frame range. List the actions exercised; leave any other entry point outside the recording's coverage.
|
|
10
10
|
2. Separate **observed** results, **inferred** explanations and **unresolved** decisions. A displayed result can support an inference about storage but does not prove it.
|
|
11
|
-
3. In a separate comparison workspace, compile the existing Library [registration and listing model](../cratis-screenplay-declare-slice/SKILL.md) with `screenplay model`. Compare the screen behavior with `Library.Authors.ListAuthors`. Do not add another declaration of `AuthorId` or `ListAuthors` to the application model. With captured requests or shipped artifacts, use
|
|
11
|
+
3. In a separate comparison workspace, compile the existing Library [registration and listing model](../cratis-screenplay-declare-slice/SKILL.md) with `screenplay model`. Compare the screen behavior with `Library.Authors.ListAuthors`. Do not add another declaration of `AuthorId` or `ListAuthors` to the application model. With captured requests or shipped artifacts, use the black-box intake and rebuild replay in [trace the existing behavior](../cratis-modeling-trace-existing-behavior/SKILL.md). If comparing recovery runs against known truth, use the [recovery benchmark](references/ground-truth-benchmark.md).
|
|
12
12
|
4. Record the open branch, its evidence and the domain owner who can settle it. Run [model acceptance](../cratis-screenplay-accept-model/SKILL.md) only after that decision; a matching recording isn't approval. To check a storage inference in a Chronicle-backed system, record the store, namespace, first sequence number and event-source ID. Have an authorized operator compare only the addressed history within the recording's time or sequence bounds. Report whether a matching fact exists, not its private payload. For recovery from a trusted project or captured traces rather than frames, [trace the existing behavior](../cratis-modeling-trace-existing-behavior/SKILL.md); do not treat a generated draft as owner acceptance.
|
|
13
13
|
|
|
14
14
|
## Example: the Authors screen after submission
|
|
@@ -21,7 +21,7 @@ compatibility: Requires the Screenplay CLI.
|
|
|
21
21
|
|
|
22
22
|
For a draft generated from Arc source, [interpret C# generation losses](references/csharp.md) before replacing the original acceptance or privacy rules.
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Choose a bounded walk when there is no recording
|
|
25
25
|
|
|
26
26
|
For a live application rather than an existing recording, follow the [bounded walk and fidelity check](references/running-system.md). Obtain authority before collecting evidence; a matching draft does not authorize execution.
|
|
27
27
|
|
|
@@ -6,6 +6,6 @@ Read the generator diagnostics together with the source member they name. A warn
|
|
|
6
6
|
| --- | --- |
|
|
7
7
|
| `SP0056` | Inspect severity and the named binding failure. The generator can withhold binding-invalid productions and leave them in the handler, then verify the returned document again. A draft that now binds does not contain the omitted decision. An unexpected remaining binder error is a generator defect, not permission to change the business rule. |
|
|
8
8
|
| `SP0059`, `SP0062`, `SP0063` | Inspect the original marking, affected type or member and identifier use. A marking on a primitive member may not fit a language that classifies concepts. Do not treat an unmarked output as a decision to disclose the value. |
|
|
9
|
-
| `[Encrypted]` | At-rest encryption alone does not recover Screenplay `secret`. Look for audit suppression on the actual concept. `[Encrypted]` plus `[NotAudited]` recovers `secret`; `[PII(OperationalSecret = true)]` plus `[NotAudited]` recovers `pii secret`. Do not guess purpose, subject or retention from any of these. |
|
|
9
|
+
| `SP0058`, `[Encrypted]` | At-rest encryption or audit suppression alone does not recover Screenplay `secret`. Look for audit suppression on the actual concept. `[Encrypted]` plus `[NotAudited]` recovers `secret`; `[PII(OperationalSecret = true)]` plus `[NotAudited]` recovers `pii secret`. Do not guess purpose, subject or retention from any of these. |
|
|
10
10
|
|
|
11
|
-
If a protected concept appears as a stream address, stop before exporting a workaround. Changing it to an unclassified string can put private information into metadata used outside the payload. Ask the owner for a safe address and verify lookup and subject erasure separately. Keep the original source protection until the model and target realization agree.
|
|
11
|
+
If a protected concept appears as a stream address, stop before exporting a workaround. Changing it to an unclassified string can put private information into metadata used outside the payload. Ask the owner for a safe address and verify lookup and subject erasure separately. Keep the original source protection until the model and target realization agree. When reviewing recovered `secret`, verify its scope: executable output can omit Namespace or Global scope (`SP0061`). Do not infer subject-scoped storage from that output. To state the source scope in a design draft, enable `ScreenplayOptions.AuthoringOnlyConstructs`, then verify that the emitted scope matches the application.
|
package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
|
|
3
3
|
1. Pin a known implementation and accepted model revision. Freeze the authorized, sanitized intake packet, a ground-truth behavior ledger (actor, fixture state, input, result and effect), and a structural inventory keyed by full address and kind. Give each run the same packet and scope but withhold the answer key until scoring. Use separate empty comparison workspaces.
|
|
4
4
|
2. For each run, align recovered elements to truth one-to-one. Record exact matches, owner-confirmed renames (same meaning and identity), partial matches and missing elements; count unmatched recovered elements as invented. Publish counts and the denominator (all in-scope truth elements), for example `8 exact + 1 rename / 12`, plus partial, missing and invented counts. Use the same matching rules across runs.
|
|
5
|
-
3. Replay the same behavior ledger against each rebuilt target using the
|
|
5
|
+
3. Replay the same behavior ledger against each rebuilt target using the black-box replay in [Trace existing behavior](../../cratis-modeling-trace-existing-behavior/SKILL.md). Report passed / all expected behavior rows and executed / all expected rows, with failed and untested counts. An unexecuted or partly checked row stays open, never in the passed numerator. Keep behavior and structural coverage separate; a renamed match is not evidence of execution.
|
|
6
6
|
4. Keep the dated comparison outputs with their revisions, input digest, run conditions and row-level decisions so another reviewer can reproduce the comparison. Don't change the denominator to fit the reconstruction.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-screenplay-specify-outcome
|
|
3
|
-
description: Use when a modeler needs Given/When/Then examples for success or refusal in a Screenplay .play slice. Not for exercising a running backend.
|
|
3
|
+
description: Use when a modeler needs Given/When/Then examples for success or refusal in a Screenplay .play slice. Not for exercising a running backend (use cratis-specifications-exercise-backend).
|
|
4
4
|
compatibility: Requires the Screenplay CLI.
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -38,80 +38,9 @@ Start with a concrete case. In `model/Authors/registration.play`, use the same f
|
|
|
38
38
|
|
|
39
39
|
If a fixture passes but the reported outcome is wrong, [choose the observable result](references/observable-result.md) before adding more givens.
|
|
40
40
|
|
|
41
|
-
##
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
```play
|
|
46
|
-
command reads protected
|
|
47
|
-
concept BookId : Uuid
|
|
48
|
-
|
|
49
|
-
policy CanLend
|
|
50
|
-
require role "Librarian"
|
|
51
|
-
|
|
52
|
-
module Library
|
|
53
|
-
feature Lending
|
|
54
|
-
slice StateChange LendCopies
|
|
55
|
-
command LendCopies
|
|
56
|
-
bookId BookId identifier
|
|
57
|
-
copies Int
|
|
58
|
-
reads LoanStock as stock by bookId
|
|
59
|
-
authorize CanLend
|
|
60
|
-
validate
|
|
61
|
-
require copies > 0
|
|
62
|
-
message "Enter a positive quantity"
|
|
63
|
-
require copies <= stock.available
|
|
64
|
-
message "Not enough copies"
|
|
65
|
-
produces CopiesLent
|
|
66
|
-
for bookId
|
|
67
|
-
copies = copies
|
|
68
|
-
|
|
69
|
-
event CopiesLent
|
|
70
|
-
copies Int
|
|
71
|
-
|
|
72
|
-
example LendOne : LendCopies
|
|
73
|
-
bookId = "22222222-2222-4222-8222-222222222222"
|
|
74
|
-
copies = 1
|
|
75
|
-
|
|
76
|
-
specification LendingTheLastCopy
|
|
77
|
-
given readmodel OneCopy
|
|
78
|
-
given caller
|
|
79
|
-
authenticated
|
|
80
|
-
role "Librarian"
|
|
81
|
-
when LendOne
|
|
82
|
-
then CopiesLent
|
|
83
|
-
for "22222222-2222-4222-8222-222222222222"
|
|
84
|
-
copies = 1
|
|
85
|
-
|
|
86
|
-
specification RefusingTwoCopies
|
|
87
|
-
given readmodel OneCopy
|
|
88
|
-
given caller
|
|
89
|
-
authenticated
|
|
90
|
-
role "Librarian"
|
|
91
|
-
when LendOne copies = 2
|
|
92
|
-
then error "Not enough copies"
|
|
93
|
-
|
|
94
|
-
slice StateView ShowLoanStock
|
|
95
|
-
event LoanStockSet
|
|
96
|
-
available Int
|
|
97
|
-
event BookWithdrawn
|
|
98
|
-
|
|
99
|
-
readmodel LoanStock
|
|
100
|
-
bookId BookId key
|
|
101
|
-
available Int
|
|
102
|
-
|
|
103
|
-
projection ProjectLoanStock => LoanStock
|
|
104
|
-
from LoanStockSet
|
|
105
|
-
bookId = $eventSourceId
|
|
106
|
-
available = available
|
|
107
|
-
from CopiesLent
|
|
108
|
-
subtract available by copies
|
|
109
|
-
remove with BookWithdrawn
|
|
110
|
-
|
|
111
|
-
example OneCopy : LoanStock
|
|
112
|
-
bookId = "22222222-2222-4222-8222-222222222222"
|
|
113
|
-
available = 1
|
|
114
|
-
```
|
|
41
|
+
## Choose a state fixture when the command depends on prior state
|
|
42
|
+
|
|
43
|
+
For a protected command, replay seed facts at the source the command reads. The [Lending example](references/observable-result.md#stateful-or-authorized-command) shows how to set the caller and when the reference runner can seed the view directly instead.
|
|
115
44
|
|
|
116
45
|
Resolve the fixture, input names, ID and refusal from the existing model. Use one `when`, overriding an actual input when needed. Expect the same concrete ID in `for`. Use `then denied` for an authorization refusal.
|
|
117
46
|
|
package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md
CHANGED
|
@@ -8,5 +8,3 @@ Standalone `screenplay` supplies no body provider. A reached opaque rule, `valid
|
|
|
8
8
|
- An admitted handler fault raises `SemanticCommandBodyFaultException` with a typed kind. Cancellation requested through the run token propagates `OperationCanceledException`; an unrequested cancellation is a typed handler fault. Neither is a domain rejection or denial.
|
|
9
9
|
|
|
10
10
|
Screenplay ships no C# executor. The host owns API admission, process isolation and resource limits; `pure` is not a sandbox. Use the supplied body context, not invented reads or host services.
|
|
11
|
-
|
|
12
|
-
Version floors: Screenplay 4.256.0 for policy and v1 handler bodies; 4.257.0 for the v2 provider seam; 5.4.0 for authoring `may produce` in Screenplay (ESM v35).
|
package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Choose the observable result
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Assert graph state independently from query rows
|
|
6
|
+
- Stateful or authorized command
|
|
7
|
+
|
|
3
8
|
Arrange the prerequisite for **one** decision. Givens establish history, not a second action whose reactions run. A view seed can isolate a decision from replay; it cannot prove that the projection reached the seeded state. For a fixture expanded from an example, fill every top-level event property and nongenerated command input, including an optional top-level input. The binder checks the expanded step; omittable members of a nested value and partial expected view properties are different cases. Keep the caller separate from command inputs and fixtures.
|
|
4
9
|
|
|
5
10
|
| Question | What to compare |
|
|
@@ -11,7 +16,7 @@ Arrange the prerequisite for **one** decision. Givens establish history, not a s
|
|
|
11
16
|
|
|
12
17
|
To test a generated response, put `for` under the command action to pin its generated identifier and `generated <name> = <value>` there to pin a nonidentifier generated field. Neither is an ordinary request parameter. Use `then returns` for the declared scalar or named response fields. Check the appended fact separately if the owner depends on it.
|
|
13
18
|
|
|
14
|
-
When routing depends on tags, assert the expected tags (including order) or `no tags`; omission leaves them unchecked. Test `not empty` against whitespace when blank input can arrive without being the empty string. For a schedule, use explicit UTC instants: occurrences after `given clock` up to and including `when clock` are due. A trace of one accepted clock tick does not establish how a deployed scheduler handles downtime. For a public contract, assert the foreign input and addressed private fact in the inbound translation, and the published shape from a private fact in the outbound translation. A given foreign event is not a delivered outbound message.
|
|
19
|
+
When routing depends on tags, assert the expected tags (including order) or `no tags`; omission leaves them unchecked. Escape a structured payload property named `tag` as `@tag`; for example, `@tag none` asserts an empty payload list, not an event tag. Test `not empty` against whitespace when blank input can arrive without being the empty string. For a schedule, use explicit UTC instants: occurrences after `given clock` up to and including `when clock` are due. A trace of one accepted clock tick does not establish how a deployed scheduler handles downtime. For a public contract, assert the foreign input and addressed private fact in the inbound translation, and the published shape from a private fact in the outbound translation. A given foreign event is not a delivered outbound message.
|
|
15
20
|
|
|
16
21
|
For an ability call, supply deterministic answers in call order: a returned value, a named outcome or a failure. Check the branch and the invocation inputs. For an attached body, [run the resolved implementation with a matching host provider](host-body-execution.md). An omitted expected route leaves it unchecked; use `no stream` when absence is part of the promise. For `given Event for …` use its explicit route or unique producer, or an eligible root projection keyed by event source that establishes a unique type. Do not invent a command to silence an ambiguous given. An unsupported or skipped scenario is not a passing one. `given caller as Persona` supplies a deterministic witness for the modeled policy, not a sample of all users. For a named external signal, use `when trigger <Trigger>` rather than advancing a clock to simulate it. For each disputed rule, record a concrete input, expected observation and the evidence still missing. Try absence, repetition, reversal, collision and a boundary value only when the expected decision changes. Keep the evaluator result separate from real adapter delivery, concurrent appends and browser interaction; prove those at the target that owns them.
|
|
17
22
|
|
|
@@ -37,3 +42,82 @@ specification RemovingMembershipKeepsItsNodes
|
|
|
37
42
|
```
|
|
38
43
|
|
|
39
44
|
Use `given clock "<instant>"` when asserting values mapped from `$eventContext.occurred`. Use `then query <Name>` and `result` to witness the graph query's returned rows separately. A missing row alone can't prove this edge was removed.
|
|
45
|
+
|
|
46
|
+
## Stateful or authorized command
|
|
47
|
+
|
|
48
|
+
Seed decision history with `given <EventOrEventExample>` and `for` the owning source. The Lending cases replay `LoanStockSet` on the book's source before evaluating the command. For an authorized command, use `given caller` with nested `authenticated` and the required roles or claims. Choose `given caller as <Persona>` only if a declared persona already satisfies the policy.
|
|
49
|
+
|
|
50
|
+
Declare `command reads protected` once at the application root when a command uses `reads`. Use `id` for the view key so Chronicle can guard the read in a rendered Stage application. The lookup can omit `by` because `bookId` is the command's identifier. Acquisition and withdrawal would produce `LoanStockSet` and `BookWithdrawn`; those producers are omitted here.
|
|
51
|
+
|
|
52
|
+
Choose direct view seeding only to isolate this protected decision in the Screenplay reference runner: replace the event fixture with `given readmodel LoanStock` and supply `id` and `available`. Stage refuses specifications that seed a command read directly (`STAGE-ESM-011`), even when it can render the command itself.
|
|
53
|
+
|
|
54
|
+
```play
|
|
55
|
+
command reads protected
|
|
56
|
+
concept BookId : Uuid
|
|
57
|
+
|
|
58
|
+
policy CanLend
|
|
59
|
+
require role "Librarian"
|
|
60
|
+
|
|
61
|
+
module Library
|
|
62
|
+
feature Lending
|
|
63
|
+
slice StateChange LendCopies
|
|
64
|
+
command LendCopies
|
|
65
|
+
bookId BookId identifier
|
|
66
|
+
copies Int
|
|
67
|
+
reads LoanStock as stock
|
|
68
|
+
authorize CanLend
|
|
69
|
+
validate
|
|
70
|
+
require copies > 0
|
|
71
|
+
message "Enter a positive quantity"
|
|
72
|
+
require copies <= stock.available
|
|
73
|
+
message "Not enough copies"
|
|
74
|
+
produces CopiesLent
|
|
75
|
+
for bookId
|
|
76
|
+
copies = copies
|
|
77
|
+
|
|
78
|
+
event CopiesLent
|
|
79
|
+
copies Int
|
|
80
|
+
|
|
81
|
+
example LendOne : LendCopies
|
|
82
|
+
bookId = "22222222-2222-4222-8222-222222222222"
|
|
83
|
+
copies = 1
|
|
84
|
+
|
|
85
|
+
specification LendingTheLastCopy
|
|
86
|
+
given LoanStockSet
|
|
87
|
+
for "22222222-2222-4222-8222-222222222222"
|
|
88
|
+
available = 1
|
|
89
|
+
given caller
|
|
90
|
+
authenticated
|
|
91
|
+
role "Librarian"
|
|
92
|
+
when LendOne
|
|
93
|
+
then CopiesLent
|
|
94
|
+
for "22222222-2222-4222-8222-222222222222"
|
|
95
|
+
copies = 1
|
|
96
|
+
|
|
97
|
+
specification RefusingTwoCopies
|
|
98
|
+
given LoanStockSet
|
|
99
|
+
for "22222222-2222-4222-8222-222222222222"
|
|
100
|
+
available = 1
|
|
101
|
+
given caller
|
|
102
|
+
authenticated
|
|
103
|
+
role "Librarian"
|
|
104
|
+
when LendOne copies = 2
|
|
105
|
+
then error "Not enough copies"
|
|
106
|
+
|
|
107
|
+
slice StateView ShowLoanStock
|
|
108
|
+
event LoanStockSet
|
|
109
|
+
available Int
|
|
110
|
+
event BookWithdrawn
|
|
111
|
+
|
|
112
|
+
readmodel LoanStock
|
|
113
|
+
id BookId key
|
|
114
|
+
available Int
|
|
115
|
+
|
|
116
|
+
projection ProjectLoanStock => LoanStock
|
|
117
|
+
from LoanStockSet
|
|
118
|
+
id = $eventSourceId
|
|
119
|
+
available = available
|
|
120
|
+
from CopiesLent
|
|
121
|
+
subtract available by copies
|
|
122
|
+
remove with BookWithdrawn
|
|
123
|
+
```
|