@cratis/pi 7.50.0 → 7.51.1
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/authoring-skills.instructions.md +93 -0
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +4 -0
- package/package/corpus/prompts/review-skill.prompt.md +6 -8
- package/package/corpus/rules/authoring-skills.md +92 -0
- package/package/corpus/rules/general.md +1 -0
- package/package/corpus/rules/profiles.md +4 -0
- package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +8 -7
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +23 -29
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +7 -7
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +34 -32
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authproxy.md +1 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +2 -2
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/local-development.md +3 -3
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +8 -6
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/tenancy.md +3 -3
- package/package/corpus/skills/cratis-arc-command/SKILL.md +23 -25
- package/package/corpus/skills/cratis-arc-command/references/command-result.md +1 -1
- package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +9 -9
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +11 -12
- package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +4 -4
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +1 -3
- package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +11 -14
- package/package/corpus/skills/cratis-arc-command-execution/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +17 -19
- package/package/corpus/skills/cratis-arc-command-kotlin/SKILL.md +8 -7
- package/package/corpus/skills/cratis-arc-command-kotlin/references/read-model-naming.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +7 -8
- package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +14 -11
- package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +7 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/command-operations.md +4 -4
- package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +11 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/identity-and-introspection.md +4 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/observability-and-host-scopes.md +2 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +1 -1
- package/package/corpus/skills/cratis-arc-command-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-ef-core-migration/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-ef-core-migration/SKILL.md +9 -10
- package/package/corpus/skills/cratis-arc-go/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-go/references/queries.md +2 -2
- package/package/corpus/skills/cratis-arc-hosting/SKILL.md +8 -8
- package/package/corpus/skills/cratis-arc-hosting/references/integrations-and-publish.md +11 -11
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +13 -13
- package/package/corpus/skills/cratis-arc-observable-query-http/verification.json +1 -1
- package/package/corpus/skills/cratis-arc-query-kotlin/SKILL.md +2 -3
- package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -14
- package/package/corpus/skills/cratis-arc-query-typescript/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-query-typescript/references/storage-observation-and-compliance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
- package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +1 -2
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +19 -22
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +36 -36
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/client-construction.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +13 -13
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/pinned-generation-delivery.md +7 -5
- package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +59 -64
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +17 -17
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/compliance.md +5 -3
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/connections.md +15 -11
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/event-sources.md +3 -1
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/pitfalls.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/projections.md +8 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/upgrading.md +19 -19
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +3 -8
- package/package/corpus/skills/cratis-chronicle-client-elixir/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-client-go/SKILL.md +16 -18
- package/package/corpus/skills/cratis-chronicle-client-go/references/projections.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +61 -58
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +9 -10
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +6 -6
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/event-sources.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/options.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +24 -24
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +6 -5
- package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -20
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/testing.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +4 -3
- package/package/corpus/skills/cratis-chronicle-client-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +11 -10
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/admission-and-ownership.md +1 -1
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +5 -6
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-event-constraints/references/closing-streams.md +1 -1
- package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +12 -10
- package/package/corpus/skills/cratis-chronicle-event-type-migration/references/pinned-generations.md +2 -3
- package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -10
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +29 -29
- package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -14
- package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +3 -5
- package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +2 -4
- package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +1 -3
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +16 -15
- package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +8 -8
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +14 -13
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +11 -12
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +6 -6
- package/package/corpus/skills/cratis-code-review/SKILL.md +13 -17
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +3 -3
- package/package/corpus/skills/cratis-components-common-controls/SKILL.md +15 -15
- package/package/corpus/skills/cratis-components-data-surfaces/SKILL.md +29 -29
- package/package/corpus/skills/cratis-components-schema-editor/SKILL.md +4 -4
- package/package/corpus/skills/cratis-components-schema-editor/references/tree-layout.md +1 -1
- package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +6 -6
- package/package/corpus/skills/cratis-components-styling/LICENSE +6 -0
- package/package/corpus/skills/cratis-components-styling/SKILL.md +5 -4
- package/package/corpus/skills/cratis-components-toolbar/SKILL.md +5 -5
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +2 -2
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +3 -3
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +1 -1
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +4 -4
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +19 -24
- package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-concepts.md +8 -8
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +10 -11
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +18 -18
- package/package/corpus/skills/cratis-fundamentals-telemetry/verification.json +1 -1
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +4 -4
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +19 -19
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +27 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +12 -12
- package/package/corpus/skills/cratis-performance-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
- package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
- package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
- package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
- package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
- package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +12 -14
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
- package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
- package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
- package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
- package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
- package/package/corpus/skills/cratis-security-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +18 -16
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +1 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +26 -29
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +8 -8
- package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +2 -2
- package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +6 -4
- package/package/corpus/skills/cratis-specifications-csharp/references/shared-lifecycle.md +6 -2
- package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +2 -2
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -4
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +1 -1
- package/package/corpus/skills/guiding-refactoring-with-code-health/SKILL.md +1 -1
- package/package/corpus/skills/prioritizing-technical-debt/SKILL.md +1 -1
- package/package/corpus/skills/risk-based-testing-with-code-health/SKILL.md +3 -3
- package/package/corpus/skills/safeguarding-ai-generated-code/SKILL.md +1 -1
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Translation patterns
|
|
2
2
|
|
|
3
|
-
Complete compiled example: `translate-example.md` (binds
|
|
4
|
-
|
|
3
|
+
Complete compiled example: `translate-example.md` (binds as ESM v6; a compiler that stops before v6
|
|
4
|
+
compiles it but rejects the slice at binding).
|
|
5
5
|
|
|
6
6
|
## 1. Where outside facts may enter
|
|
7
7
|
Only two routes, both in a `Translate` slice:
|
|
@@ -19,22 +19,23 @@ root. Never put a model under `.cratis/` or hand-copy it between repositories.
|
|
|
19
19
|
`cratis ai install` manages `.cratis/ai/`, never model files. Keep explanatory
|
|
20
20
|
Markdown in project documentation; `.play` is the single flow model.
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Product sources
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
`
|
|
24
|
+
Language claims follow Screenplay `reactions.md`, `triggers.md`, `captures.md` and
|
|
25
|
+
`specifications.md` under `Documentation/screenplay/`; renderer claims follow Stage
|
|
26
|
+
`Documentation/reference/reaction-rendering.md`. Tool versions are covered in toolchain
|
|
27
|
+
`SKILL.md`; run the examples at the pinned standalone tool before relying on them.
|
|
27
28
|
|
|
28
29
|
⚠️ **Which tool admits them depends on its Screenplay version.** The ESM level
|
|
29
30
|
decides, not the slice type:
|
|
30
31
|
|
|
31
|
-
- **
|
|
32
|
+
- **A compiler that admits ESM v6 and v7:** `Automation` and
|
|
32
33
|
`Translate` slices, reactions, declared triggers and captures bind, and the
|
|
33
|
-
reference runner executes them.
|
|
34
|
+
reference runner executes them. The complete example below is
|
|
34
35
|
`executableReady` over `screenplay mcp`.
|
|
35
|
-
- **
|
|
36
|
-
|
|
37
|
-
- **CLI
|
|
36
|
+
- **A compiler that stops before ESM v6** refuses them and falsely reports PLAY0285
|
|
37
|
+
(toolchain `references/diagnostics.md`).
|
|
38
|
+
- **The CLI and Stage** render supported event-triggered Automation, not
|
|
38
39
|
Translate/captures, non-event triggers or opaque bodies (`-024`). Role/authenticated `runs as`
|
|
39
40
|
and semantic `from` render; claim/opaque gates, mixed effects and unsupported mappings remain refused;
|
|
40
41
|
cascade specs remain `-011`. Keep refused scope as gap-fill. Full boundary and source
|
|
@@ -63,15 +64,17 @@ Read [references/specifying-triggers-and-clock.md](references/specifying-trigger
|
|
|
63
64
|
## Caller-less invokes and unprotected reads
|
|
64
65
|
|
|
65
66
|
**Who is the caller of an `invokes`?** Without a declared actor, nobody.
|
|
66
|
-
|
|
67
|
+
Reactions support reaction-level `runs as system role "<Role>"`
|
|
67
68
|
(optional roles, joined with `and role`). It selects ESM v10 and supplies the
|
|
68
69
|
reference invocation's authenticated system principal with exactly those roles;
|
|
69
70
|
`given caller` does not supply it. Keep gates and declare the least-privilege actor.
|
|
70
71
|
Read [invocation identity](references/invocation-identity.md) for the checked
|
|
71
72
|
scenario, claim/unknown semantics and PLAY0647–0652/0557 diagnostics.
|
|
72
73
|
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
Requires Screenplay 4.125.0 or later (`screenplay --version`) for reaction `runs as system role` (ESM v10).
|
|
75
|
+
|
|
76
|
+
A compiler that stops before v10 rejects this source with PLAY0137, and a renderer that stops
|
|
77
|
+
before v10 refuses it (CLI-RENDER-004); the CLI/Stage pair (toolchain
|
|
75
78
|
`references/renderable-subset.md`) renders supported identity, refusing claim-reading/opaque gates (STAGE-ESM-034).
|
|
76
79
|
Stage emits Arc `[ExecuteCommandsAsSystem]`; refused scope uses authorized gap-fill. The attribute is for returned commands. Without that attribute
|
|
77
80
|
Arc supplies no principal and `[Authorize]`/`[Roles]` deny. Each invoked command
|
|
@@ -82,16 +85,16 @@ ESM v6 the binder refuses to treat it as one: a trigger with `reads` that **prod
|
|
|
82
85
|
directly**, or whose effect is an opaque body (`file` or an inline block), fails
|
|
83
86
|
binding, because its decision dependency cannot be protected. A reaction that only
|
|
84
87
|
`invokes` a command binds, and the decision, and any protection, belong to that
|
|
85
|
-
command's own reads. Command `reads` give none yet either (`PLAY0271
|
|
86
|
-
|
|
88
|
+
command's own reads. Command `reads` give none yet either (`PLAY0271`).
|
|
89
|
+
`where` over read paths out of scope, and `where` needs
|
|
87
90
|
every operand to resolve from the trigger's declared scalar occurrence shape (listed in
|
|
88
91
|
the input selection or not; nested paths and read aliases fail binding): keep the logic that uses the state in
|
|
89
|
-
the invoked command or the implementation.
|
|
90
|
-
|
|
92
|
+
the invoked command or the implementation. A compiler that stops before ESM v6 binds none of this
|
|
93
|
+
(`PLAY0268`).
|
|
91
94
|
|
|
92
95
|
## Refusals and recovery redelivery
|
|
93
96
|
|
|
94
|
-
|
|
97
|
+
Invocation refusal selectors, `$refusal` branch values,
|
|
95
98
|
`acknowledge`, `when redelivered ... to ...` and `then no events` are valid
|
|
96
99
|
authoring intent but refuse binding with PLAY0268. Read
|
|
97
100
|
[refusals and redelivery](references/refusals-and-redelivery.md) for first-match
|
|
@@ -334,11 +337,10 @@ something is reported. `Startup` and `Shutdown` are registered the second way.
|
|
|
334
337
|
## Verify
|
|
335
338
|
|
|
336
339
|
- [ ] `screenplay <model> --warnaserror` reports zero errors and zero warnings
|
|
337
|
-
(standalone
|
|
340
|
+
(standalone, or a `cratis` whose compiler admits ESM v6). Under an older compiler expect
|
|
338
341
|
`PLAY0268` at binding and a false `PLAY0285` on cascade specifications, and report them
|
|
339
342
|
as tool skew.
|
|
340
|
-
- [ ] The tool that bound the model is named (
|
|
341
|
-
`cratis` 3.28.2 or later, for ESM v6 constructs); reference scenarios use
|
|
343
|
+
- [ ] The tool that bound the model is named (standalone, or a `cratis` whose compiler admits ESM v6, for ESM v6 constructs); reference scenarios use
|
|
342
344
|
`screenplay test`/MCP. Unadmitted refusal/redelivery is not executed evidence.
|
|
343
345
|
- [ ] Each automation has all four components — occurrence, state consulted,
|
|
344
346
|
conditional logic, resulting command or event. If it always fires
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
Each document below is complete and compiles with the standalone `screenplay` 4.68.0
|
|
12
12
|
(`--warnaserror`). The SKILL.md excerpts show the reaction, capture or trigger part of
|
|
13
13
|
these documents. Documents marked ESM v6 need Screenplay 4.61 or later: the standalone tool and `cratis` 3.28.2
|
|
14
|
-
|
|
14
|
+
validate and bind them (probed); `cratis` 3.27.1 reported
|
|
15
15
|
`PLAY0268` when it bound them.
|
|
16
16
|
|
|
17
17
|
## Capture with `source`, `map`, `append` and `children`
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
## Trusted system identity
|
|
13
13
|
|
|
14
|
-
Screenplay
|
|
14
|
+
Screenplay supports one reaction-level line
|
|
15
15
|
`runs as system [role "<Role>" and role "<Role>"]`. Roles are optional, nonempty,
|
|
16
16
|
distinct quoted literals; personas and expressions are not accepted. Put it
|
|
17
17
|
under the reaction, not its trigger or invocation. The declaration selects
|
|
@@ -30,7 +30,7 @@ ungated command substituted to make the scenario pass.
|
|
|
30
30
|
## Checked example
|
|
31
31
|
|
|
32
32
|
This complete model compiled with warnings as errors and its reference scenario
|
|
33
|
-
|
|
33
|
+
passes on the standalone compiler:
|
|
34
34
|
|
|
35
35
|
```screenplay
|
|
36
36
|
policy Worker
|
|
@@ -69,19 +69,18 @@ module Work
|
|
|
69
69
|
denial; opaque/unknown cases are not guessed. `--check privilege` (PLAY0652)
|
|
70
70
|
reviews whether event producers require every elevated role, not runtime safety.
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
An older CLI-bundled compiler does not parse `runs as`:
|
|
73
73
|
the example's `cratis screenplay validate --executable --warnings-as-errors`
|
|
74
|
-
|
|
74
|
+
returns PLAY0137, exit 5. The CLI/Stage pair
|
|
75
75
|
(`cratis-screenplay-toolchain/references/renderable-subset.md`) renders role-only/authenticated-only reaction invocation gates with `[ExecuteCommandsAsSystem]`;
|
|
76
76
|
claim-reading or opaque gates still refuse STAGE-ESM-034 (including claim reads under `not`/`or`).
|
|
77
|
-
Source: Stage `
|
|
78
|
-
`Documentation/reference/reaction-rendering.md
|
|
79
|
-
|
|
77
|
+
Source: Stage `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.ReactionIdentity.cs`;
|
|
78
|
+
`Documentation/reference/reaction-rendering.md`. A renderer that stops at v7 audits
|
|
79
|
+
through v7 only (toolchain `references/renderable-subset.md`).
|
|
80
80
|
Clock/application-trigger identities have no Stage Arc realization either.
|
|
81
81
|
Use authorized gap-fill with the model as contract; returned-command Arc identity
|
|
82
82
|
uses `[ExecuteCommandsAsSystem]`, never permission inferred from a model header.
|
|
83
83
|
Refusal/redelivery syntax remains unadmitted even when identity itself runs.
|
|
84
84
|
|
|
85
|
-
Authority: Screenplay
|
|
86
|
-
`ReactionRefusalValidator.cs`, `SemanticModelBinder.cs`;
|
|
87
|
-
`RenderedSemanticVersions.cs`; Stage v4.51.3 `SemanticCratisAdmission.cs`.
|
|
85
|
+
Authority: Screenplay `reactions.md`, `ReactionIdentityParser.cs`,
|
|
86
|
+
`ReactionRefusalValidator.cs`, `SemanticModelBinder.cs`; Stage `SemanticCratisAdmission.cs`.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
## Select a refusal
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
These forms are authoring-only: binding refuses the whole
|
|
16
16
|
model with PLAY0268, even when the source is valid. Do not execute them as append
|
|
17
17
|
scenarios or silently drop branches. Sources: released `reactions.md`,
|
|
18
18
|
`specifications.md`, decision 0030.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Specifying triggers and the clock
|
|
2
2
|
|
|
3
|
-
**Specify what sets them off** (
|
|
4
|
-
`3baf4a4`; execution from ESM v6, checked at `v4.66.0`): `when clock "<instant>"`
|
|
3
|
+
**Specify what sets them off** (execution from ESM v6): `when clock "<instant>"`
|
|
5
4
|
for a reaction on `every` or `at`, `when trigger <Trigger>` with its values for one
|
|
6
5
|
on an application trigger, and `given capture` / `when capture <Capture>` with the
|
|
7
6
|
source record's fields for a capture, then the events that should follow.
|
|
@@ -17,8 +16,8 @@ specification IssuingTheWeeklyDigest
|
|
|
17
16
|
issuedAt = "2026-10-05T07:30:00Z"
|
|
18
17
|
```
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
but
|
|
19
|
+
A compiler that stops before ESM v6 parses these actions and checks them against the application
|
|
20
|
+
but binds them to nothing (`PLAY0268` names ESM v6).
|
|
22
21
|
The standalone tool (toolchain `SKILL.md`) executes admitted scenarios through `screenplay test`
|
|
23
22
|
or MCP `run-specifications`; source compilation alone is authored evidence.
|
|
24
23
|
Clock rules: the clock is UTC and exact; an
|
|
@@ -6,10 +6,6 @@
|
|
|
6
6
|
{ "kind": "skill-contains", "value": "unrouted facts never match" },
|
|
7
7
|
{ "kind": "skill-contains", "value": "source events" },
|
|
8
8
|
{ "kind": "play-compiles" },
|
|
9
|
-
{
|
|
10
|
-
"kind": "skill-contains",
|
|
11
|
-
"value": "main `fd18129`", "file": "references/product-sources.md"
|
|
12
|
-
},
|
|
13
9
|
{
|
|
14
10
|
"kind": "skill-contains",
|
|
15
11
|
"value": "command-only (`PLAY0474` in a reaction)"
|
|
@@ -20,16 +20,15 @@ root. Never put a model under `.cratis/` or hand-copy it between repositories.
|
|
|
20
20
|
`cratis ai install` manages `.cratis/ai/`, never model files. Keep explanatory
|
|
21
21
|
Markdown in project documentation; `.play` is the single flow model.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Product sources
|
|
24
24
|
|
|
25
25
|
Tool versions: toolchain `SKILL.md`; sources below. Compilation is not execution.
|
|
26
26
|
|
|
27
|
-
-
|
|
28
|
-
- `
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
- `4.148.0`: v15 generation strategies/strict fixtures/freshness; Stage `4.89.1` realization: `references/generated-values-and-responses.md`; shop: `references/shop-generation.md`.
|
|
27
|
+
- Examples and executable boundaries; inline events, repairs, canonical `optional`.
|
|
28
|
+
- `handler`, code attachments, `persona` and compliance binding (`Semantics/SemanticModelBinder*.cs`, `Diagnostics/DiagnosticCodes.cs`).
|
|
29
|
+
- Generated-value and response rules (ESM v7).
|
|
30
|
+
- Identity and compliance syntax (`identity.md`, `context.md`, `concepts.md`, `purposes.md`, `events.md`, `diagnostics.md`); v13 compliance admission: `references/compliance.md`.
|
|
31
|
+
- v15 generation strategies, strict fixtures and freshness; Stage realization: `references/generated-values-and-responses.md`; shop: `references/shop-generation.md`.
|
|
33
32
|
|
|
34
33
|
"Parses" and "runs" are different claims. The executable profile, and what
|
|
35
34
|
each construct binds to, is in the `cratis-screenplay-model-authoring` language
|
|
@@ -154,9 +153,9 @@ view name when that view is read once.
|
|
|
154
153
|
arrow of the event model; nothing checks at append time that the state is still
|
|
155
154
|
current. The executable model rejects every `reads` and `concurrency` with
|
|
156
155
|
`PLAY0271`, and `require` over a read-model path with `PLAY0268`, until
|
|
157
|
-
decision-consistent reads exist
|
|
158
|
-
`concurrency` block does not fix this: its scope is not the read's watermark, and
|
|
159
|
-
|
|
156
|
+
decision-consistent reads exist. Adding a
|
|
157
|
+
`concurrency` block does not fix this: its scope is not the read's watermark, and the
|
|
158
|
+
combination is planned to become an error once protected reads ship.
|
|
160
159
|
When a rule depends on state:
|
|
161
160
|
|
|
162
161
|
- if it is uniqueness, declare a `unique` constraint (below);
|
|
@@ -164,7 +163,7 @@ When a rule depends on state:
|
|
|
164
163
|
must enforce it consistently. Do not claim the model guarantees it.
|
|
165
164
|
|
|
166
165
|
Do not use `reads` to fetch data the caller could supply. A composite-key view's `by` block is
|
|
167
|
-
`PLAY0268` (
|
|
166
|
+
`PLAY0268` (read-surface `references/named-keys.md`).
|
|
168
167
|
|
|
169
168
|
## `validate`
|
|
170
169
|
|
|
@@ -209,7 +208,7 @@ A continuation line extends the clause.
|
|
|
209
208
|
`A and B`. Write the operator explicitly so the reader does not have to know this.
|
|
210
209
|
|
|
211
210
|
- Several `authorize` lines on one command or query combine with AND, in authored
|
|
212
|
-
order.
|
|
211
|
+
order.
|
|
213
212
|
- `authorize` on an enclosing `module` or `feature` is ANDed with the command's
|
|
214
213
|
own gate; an `or` inside one gate never bypasses another gate.
|
|
215
214
|
- Evaluation short-circuits left to right, module → feature → command. If it
|
|
@@ -246,7 +245,7 @@ choosing or omitting `for` on a production, or fixing `PLAY0469`-`PLAY0478`.
|
|
|
246
245
|
Conditions over command properties and constants bind; each is evaluated
|
|
247
246
|
independently, and when all are false the command is accepted with no events.
|
|
248
247
|
Compare an enumeration with a member bare (`status == sent`) or quoted
|
|
249
|
-
(`status == "sent"`); the bare form binds
|
|
248
|
+
(`status == "sent"`); the bare form binds, so quote it when a model
|
|
250
249
|
must bind on an older version.
|
|
251
250
|
Excerpt:
|
|
252
251
|
|
|
@@ -261,7 +260,7 @@ produces when isProForma == true
|
|
|
261
260
|
Routes bind as ESM v8; production `stream Source.Stream` overrides
|
|
262
261
|
select v10. Read toolchain [routes](../cratis-screenplay-toolchain/references/production-routes-and-filters.md)
|
|
263
262
|
and [source/stream declarations](../cratis-screenplay-toolchain/references/sources-and-streams.md).
|
|
264
|
-
|
|
263
|
+
A stored stream `All` / `id "All"` refuses PLAY0273;
|
|
265
264
|
rename and history-migration guidance is in that reference.
|
|
266
265
|
`public event X` is a local export; `event X from "store"` is a locally declared,
|
|
267
266
|
unverified foreign shape. Commands never produce public events. Read
|
|
@@ -298,9 +297,11 @@ to the routed scope. This does not make command `reads` protected.
|
|
|
298
297
|
UUID generation/responses bind as v7; serialized concept `generate` selects v15:
|
|
299
298
|
UUIDv7/ULID/TypeID/NanoID/bytes, strict fixtures and whole-source freshness.
|
|
300
299
|
Reuse rejects Concurrency, no append/retry. Generated rules/secrets and pattern/random/rule
|
|
301
|
-
remain refused.
|
|
300
|
+
remain refused.
|
|
302
301
|
Read [references/generated-values-and-responses.md](references/generated-values-and-responses.md)
|
|
303
302
|
for `generated`, `generate`, `returns`, strict fixtures/freshness and renderer limits.
|
|
303
|
+
|
|
304
|
+
Requires Screenplay 4.147.0 or later (`screenplay --version`) for concept generation strategies (ESM v15), 4.150.0 or later for the stored stream `All` refusal, 4.141.0 or later for compliance (ESM v13) and 4.139.0 or later for non-positional enum numbers (ESM v12).
|
|
304
305
|
Complete example: `cratis-screenplay-toolchain/references/generated-responses-example.md`.
|
|
305
306
|
Routes and realization: `cratis-screenplay-toolchain/references/sources-and-streams.md`.
|
|
306
307
|
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
## Contents
|
|
7
7
|
|
|
8
8
|
- Classify the value on its concept
|
|
9
|
-
- Recover classification from C#
|
|
9
|
+
- Recover classification from C#
|
|
10
10
|
- Declare the use separately
|
|
11
11
|
- Identify the person, not the stream
|
|
12
12
|
|
|
13
|
-
Authority: Screenplay
|
|
13
|
+
Authority: Screenplay `concepts.md`, `events.md`,
|
|
14
14
|
`Semantics/SemanticModelBinder.Compliance.cs` and `SemanticModelValidator.Compliance.cs`;
|
|
15
|
-
processing-purpose guidance
|
|
15
|
+
processing-purpose guidance in `purposes.md`. These declarations do not establish lawful
|
|
16
16
|
processing or enforce retention. Check provider support separately.
|
|
17
17
|
|
|
18
18
|
## Classify the value on its concept
|
|
@@ -61,8 +61,8 @@ new event generation.
|
|
|
61
61
|
|
|
62
62
|
C# provider mapping: `pii` → `[PII]`; `secret` → `[Encrypted]` + `[NotAudited]`;
|
|
63
63
|
`pii secret` → `[PII]` only (Chronicle refuses `[PII]` with `[Encrypted]`, CHR0053).
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
Screenplay binds optional concept `compliance` as ESM v13,
|
|
65
|
+
carrying markers, qualifiers and scopes. It applies
|
|
66
66
|
through command, event, read-model,
|
|
67
67
|
composite and response type references, including collection elements. Bare `pii`
|
|
68
68
|
writes `{"personal":{}}`; `secret scope namespace` writes
|
|
@@ -71,7 +71,7 @@ wins and no secret scope is stored; reasons stay report-only PLAY0270.
|
|
|
71
71
|
Unmarked models keep their exact executable bytes and revision. The reference
|
|
72
72
|
evaluator runs marked models with unchanged outcomes but tests neither encryption
|
|
73
73
|
nor erasure. Consumers must explicitly admit v13 and realize the protection;
|
|
74
|
-
CLI
|
|
74
|
+
A CLI whose compiler and Stage admit v13 render protection. Stage
|
|
75
75
|
renders `[PII]` or `[Encrypted]` + `[NotAudited]` on the concept, honoring secret
|
|
76
76
|
namespace/global scope; personal classification wins. Every protected command input,
|
|
77
77
|
including personal data and nested/collection uses, also gets property-level
|
|
@@ -81,9 +81,8 @@ already refuses the enum/identity shapes below). Non-text `secret` concepts (Int
|
|
|
81
81
|
refuse `STAGE-ESM-041`; `pii secret` uses PII and is exempt. No explicit subject lineage renders.
|
|
82
82
|
The semantic Host now protects values at rest and releases them on read, but existing stores keep
|
|
83
83
|
earlier plaintext events. Reference/specification success does not prove storage protection.
|
|
84
|
-
Never remove protection to fit a tool. Sources:
|
|
85
|
-
`
|
|
86
|
-
`Documentation/reference/compliance-rendering.md:16-70`.
|
|
84
|
+
Never remove protection to fit a tool. Sources: Stage
|
|
85
|
+
`Documentation/reference/compliance-rendering.md`.
|
|
87
86
|
|
|
88
87
|
Enum and identity concepts still refuse PLAY0268 at binding only (identity means
|
|
89
88
|
event-source/stream identity); source validation alone cannot report this binder diagnostic.
|
|
@@ -93,15 +92,17 @@ including nested composite and collection uses: subject lineage is not admitted.
|
|
|
93
92
|
In v13 the personal-data subject is the event source. Remove a mark only when that
|
|
94
93
|
source truly is the intended subject, not merely to pass binding.
|
|
95
94
|
|
|
96
|
-
## Recover classification from C#
|
|
95
|
+
## Recover classification from C#
|
|
97
96
|
|
|
98
97
|
Reverse generation is not the C# provider mapping above. Source authority: Arc
|
|
99
|
-
`
|
|
98
|
+
`Documentation/backend/csharp/generating-a-screenplay.md` (Operational
|
|
100
99
|
secrets), `Source/DotNET/Screenplay/Emission/Concepts/ConceptSyntaxBuilder.cs`
|
|
101
100
|
and `Source/DotNET/Screenplay/Analysis/Types/PersonalDataMarkings.cs`.
|
|
102
|
-
SP0058 to SP0060
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
SP0058 to SP0060 report partial or member-specific markings; SP0061 to SP0063 report the unstated
|
|
102
|
+
scope and related cases. A CLI-bundled Arc.Screenplay can predate SP0061 to SP0063, in which
|
|
103
|
+
case the CLI shows none of them; check the generator package actually loaded.
|
|
104
|
+
|
|
105
|
+
Requires Arc.Screenplay 22.70.0 or later for SP0061 to SP0063.
|
|
105
106
|
|
|
106
107
|
- Both `[Encrypted]` and `[NotAudited]` must be on the concept to recover
|
|
107
108
|
`secret`. Partial or member-specific markings report SP0058 (Information),
|
|
@@ -112,9 +113,8 @@ none of SP0061 to SP0063, so the CLI shows none of them; check the generator pac
|
|
|
112
113
|
Set `ScreenplayOptions.AuthoringOnlyConstructs = true` (CLI adapter flag
|
|
113
114
|
`--authoring-only-constructs`) to state `secret scope namespace` or
|
|
114
115
|
`secret scope global` in the concept body. Subject stays implicit. Scope
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
or the CLI bundle.
|
|
116
|
+
is syntax-only on the generator's compiler. Protected concepts instead select ESM v13
|
|
117
|
+
in Screenplay; this does not upgrade the generator or the CLI bundle.
|
|
118
118
|
`pii secret` gets no scope because the providers ignore it.
|
|
119
119
|
- A property or positional constructor parameter marked `[PII]` on a non-concept
|
|
120
120
|
type reports SP0062 (Information); the marking is not stated and no concept
|
|
@@ -51,14 +51,14 @@ time: `CommandAs<T>()`, `ArgumentsAs<T>()`, `ArtifactAs<T>()`, `ValueAs<T>()`, a
|
|
|
51
51
|
`StateAs<T>()`/`EventAs<T>()` on the reducer context. A payload of another type
|
|
52
52
|
throws `ContextPayloadTypeMismatch`.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Typed contexts before generation (`CommandValidation`,
|
|
55
55
|
`ConceptValidation`, `RulePredicate`, `PolicyPredicate`) expose **input properties
|
|
56
56
|
only**. Generated values exist only after authorization/validation, so they are
|
|
57
57
|
absent from those shapes. A generated identifier's policy subject is `unavailable`,
|
|
58
58
|
not the eventual id; never authorize against it. The handler CommandContext retains
|
|
59
59
|
the full command shape, including generated properties. Sidecars belong to the same
|
|
60
60
|
compilation/revision as their requirements, not a shape borrowed from another model.
|
|
61
|
-
Source: `
|
|
61
|
+
Source: `Documentation/screenplay/context.md`.
|
|
62
62
|
|
|
63
63
|
## The values they carry
|
|
64
64
|
|
|
@@ -100,18 +100,18 @@ An unknown `$context.` path is reported, so a typo does not silently become null
|
|
|
100
100
|
|
|
101
101
|
## Caller paths and identity details
|
|
102
102
|
|
|
103
|
-
Checked
|
|
103
|
+
Checked: `$identity.<property>` is the same caller value as
|
|
104
104
|
`$context.identity.<property>`. Prefer `$identity` in new mappings; the older root
|
|
105
|
-
is supported, not deprecated.
|
|
106
|
-
|
|
107
|
-
`$identity.<property>` mapping as a raw expression (`PLAY0268`). Those checks used standalone 4.127.0;
|
|
108
|
-
they are not current parser claims; compiler versions are covered in toolchain `SKILL.md`. Check current renderer
|
|
105
|
+
is supported, not deprecated. An older CLI-bundled compiler can reject a top-level `identity` block (`PLAY0001`) and read a
|
|
106
|
+
`$identity.<property>` mapping as a raw expression (`PLAY0268`); compiler versions are covered in toolchain `SKILL.md`. Check current renderer
|
|
109
107
|
admission separately before choosing caller mappings. Built-ins are `id`, `name`, `userName`,
|
|
110
108
|
`isAuthenticated`, `roles`, `claims.<name>` (everything after `claims.` is opaque).
|
|
111
109
|
Bare `$identity` reports PLAY0152; unknown properties report PLAY0155. Only
|
|
112
110
|
`$identity.id`/`.name`/`.userName` bind in portable `produces` mappings, exactly
|
|
113
111
|
like the older forms; roles, authentication status and claims still report PLAY0268.
|
|
114
112
|
|
|
113
|
+
Requires Screenplay 4.121.0 or later (`screenplay --version`) for `$identity`; before it use `$context.identity`.
|
|
114
|
+
|
|
115
115
|
A top-level `identity` block declares additional typed caller details:
|
|
116
116
|
|
|
117
117
|
```screenplay
|
|
@@ -143,7 +143,7 @@ Declarations alone do not block executable readiness. Executable reads of
|
|
|
143
143
|
`$identity.<detail>` report PLAY0268; `$context.identity` stays built-ins only.
|
|
144
144
|
`scoped to` is an opaque scope name, not a detail reference. PLAY0633–0646 diagnose
|
|
145
145
|
source/header/type/cardinality errors; there are no automatic identity repairs.
|
|
146
|
-
Authority:
|
|
146
|
+
Authority: `identity.md`, `context.md`, `diagnostics.md`.
|
|
147
147
|
|
|
148
148
|
## Production metadata is not a context expression
|
|
149
149
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
# Explicit enum member numbers
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Non-positional executable numbers bind
|
|
7
|
+
as ESM v12 (Requires Screenplay 4.139.0 or later; authoring of numbers needs 4.137.0 or later). The model owns member identity, not the renderer.
|
|
8
8
|
|
|
9
9
|
```screenplay
|
|
10
10
|
domain EnumNumbers
|
|
@@ -77,17 +77,13 @@ length mismatch, duplicates, non-int32 entries or a positional array (non-canoni
|
|
|
77
77
|
Programmatic validation enforces the same contract. Specifications still compare
|
|
78
78
|
names; numbers are neither alternative fixture values nor flags.
|
|
79
79
|
|
|
80
|
-
Consumers must **explicitly admit v12**.
|
|
81
|
-
|
|
82
|
-
and negative, `-0` as 0; unnumbered enums keep declaration order). Stage first
|
|
83
|
-
admitted v12 in 4.76.0. Do not remove enum pins to fit an older consumer;
|
|
80
|
+
Consumers must **explicitly admit v12**. A renderer that admits v12 renders explicit numbers as `Member = N` (sparse
|
|
81
|
+
and negative, `-0` as 0; unnumbered enums keep declaration order). Do not remove enum pins to fit an older consumer;
|
|
84
82
|
report its admission gap. See toolchain `references/renderable-subset.md`.
|
|
85
83
|
|
|
86
|
-
Sources
|
|
87
|
-
`interoperability.md`, `diagnostics.md`, `mcp/authoring-tools.md`,
|
|
84
|
+
Sources: `Documentation/screenplay/concepts.md`,
|
|
85
|
+
`interoperability.md`, `diagnostics.md`, `mcp/authoring-tools.md`,
|
|
88
86
|
`Semantics/Versions.cs`, `SemanticModelValidator.EnumMemberNumbers.cs` and the
|
|
89
87
|
source-backed `EnumMemberNumbersCorpus.V12` (under `Source/DotNET/`). Consumer
|
|
90
|
-
|
|
91
|
-
`
|
|
92
|
-
`Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:100`,
|
|
93
|
-
`SemanticEnumMembers.cs:15-26`, `SemanticCommonArtifactRenderer.cs:56-65`.
|
|
88
|
+
admission: Stage `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs`,
|
|
89
|
+
`SemanticEnumMembers.cs`, `SemanticCommonArtifactRenderer.cs`.
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
- Inspect and edit generation through MCP
|
|
9
9
|
- Version and freshness
|
|
10
10
|
- Responses and pre-generation boundaries
|
|
11
|
-
- What CLI
|
|
12
|
-
|
|
13
|
-
`generated` properties and `returns` bind/reference-execute
|
|
14
|
-
Concept generation strategies and whole-source freshness
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Sources: Cratis/Screenplay `
|
|
21
|
-
`generated-values/strategies.md
|
|
22
|
-
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Generation.cs
|
|
23
|
-
Cratis/
|
|
24
|
-
`
|
|
25
|
-
|
|
11
|
+
- What the CLI and Stage realize
|
|
12
|
+
|
|
13
|
+
`generated` properties and `returns` bind/reference-execute (ESM v7).
|
|
14
|
+
Concept generation strategies and whole-source freshness bind as ESM v15. The CLI and Stage
|
|
15
|
+
render the supported strategies, scalar/named responses, fixtures and `then returns` when their
|
|
16
|
+
bundled compiler and renderer admit v15. Binding is not rendering.
|
|
17
|
+
|
|
18
|
+
Requires Screenplay 4.147.0 or later (`screenplay --version`) for concept generation strategies and whole-source freshness (ESM v15).
|
|
19
|
+
|
|
20
|
+
Sources: Cratis/Screenplay `Documentation/screenplay/generated-values.md`,
|
|
21
|
+
`generated-values/strategies.md`,
|
|
22
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Generation.cs`;
|
|
23
|
+
Cratis/Stage
|
|
24
|
+
`Documentation/reference/generated-values-rendering.md`.
|
|
25
|
+
Only the released generation phase is taught here.
|
|
26
26
|
|
|
27
27
|
## Choosing a strategy
|
|
28
28
|
|
|
@@ -77,7 +77,7 @@ remove classification or pretend a random String is a credential contract.
|
|
|
77
77
|
|
|
78
78
|
## Inspect and edit generation through MCP
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
A concept `generation` summary and entropy repairs are available.
|
|
81
81
|
Use `screenplay_declaration_details` with `kind: "Concept"`, `view: "summary"`:
|
|
82
82
|
only authored `generate` gets a block, with strategy, set modifiers,
|
|
83
83
|
preview-only arguments, `entropyBits`, `entropyUnknownReason` when null,
|
|
@@ -102,12 +102,14 @@ exactly one production maps it to exactly one event property. Both require
|
|
|
102
102
|
individual review and `CanonicalizeTouchedDocuments`, with no pinned evidence.
|
|
103
103
|
Length changes affect all concept uses; uniqueness changes append-time behavior.
|
|
104
104
|
Derived regex, matches/checksum repairs and rule-proof status are not shipped.
|
|
105
|
-
CLI
|
|
106
|
-
supports existing typed concept proposals.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
A CLI-bundled MCP can lack this summary and these repairs; it still
|
|
106
|
+
supports existing typed concept proposals.
|
|
107
|
+
|
|
108
|
+
Requires Screenplay 4.149.0 or later (`screenplay --version`) for the concept `generation` summary and entropy repairs. Full fields, mapping limits and tagged
|
|
109
|
+
source evidence: [MCP generation guide](../../cratis-screenplay-model-authoring/references/mcp-tools.md#concept-generation).
|
|
110
|
+
Sources: Cratis/Screenplay `Documentation/screenplay/generated-values.md`,
|
|
111
|
+
`Source/DotNET/Screenplay.Mcp/McpGenerationDetails.cs`,
|
|
112
|
+
`Source/DotNET/Screenplay/Workspaces/WorkspaceGenerationRepairs.cs`.
|
|
111
113
|
|
|
112
114
|
## Version and freshness
|
|
113
115
|
|
|
@@ -151,20 +153,20 @@ and [generation strategies](../../cratis-screenplay-toolchain/references/generat
|
|
|
151
153
|
- A generated identifier is the implicit inline production destination; a plain
|
|
152
154
|
destination-less `produces` retains a separate allocation channel. A fixture
|
|
153
155
|
never satisfies that channel.
|
|
154
|
-
- Screenplay
|
|
155
|
-
continuations without changing ESM.
|
|
156
|
-
resolution, and Stage
|
|
157
|
-
binding. See UI composition [response continuations](../../cratis-screenplay-ui-composition/references/response-continuations.md).
|
|
156
|
+
- Screenplay resolves response names in form submit and execute-success
|
|
157
|
+
continuations without changing ESM. An older CLI compiler lacks that
|
|
158
|
+
resolution, and Stage does not provide Scene runtime continuation
|
|
159
|
+
binding. Requires Screenplay 4.148.0 or later (`screenplay --version`) for the resolution. See UI composition [response continuations](../../cratis-screenplay-ui-composition/references/response-continuations.md).
|
|
158
160
|
|
|
159
|
-
## What CLI
|
|
161
|
+
## What the CLI and Stage realize
|
|
160
162
|
|
|
161
163
|
Stage emits strategy-specific `IGeneratable<T>.New()` factories over Fundamentals
|
|
162
|
-
7.24.0 (via the Arc scaffold pin in Stage's `references/rendered-application.md`). v15 generated destinations use explicit
|
|
164
|
+
7.24.0 or later (via the Arc scaffold pin in Stage's `references/rendered-application.md`). v15 generated destinations use explicit
|
|
163
165
|
`EventsWithConcurrencyScopes` with `BeforeFirst` whole-source scopes; Chronicle
|
|
164
166
|
checks atomically at append: a batch's scopes are checked once against the state before
|
|
165
167
|
the batch, all or nothing, and a storage retry that renumbers the append checks them again. Generated rejection specs assert
|
|
166
168
|
`ValidationResultReason.ConcurrencyViolation`, not Arc's message text. This is
|
|
167
|
-
Stage's explicit realization, not a claim that Arc
|
|
169
|
+
Stage's explicit realization, not a claim that Arc delivers the same guard.
|
|
168
170
|
Time-based factories use wall clock, not command-receipt timestamps.
|
|
169
171
|
|
|
170
172
|
| Refusal | Still unsupported |
|
|
@@ -7,7 +7,7 @@ Cratis prefers inline `produces event <Name>` for a generation-1 event owned by
|
|
|
7
7
|
one command. Keep a standalone `event` when several commands or reactions share
|
|
8
8
|
it, and use plain `produces <Name>` with explicit `for <identifier>` on commands.
|
|
9
9
|
Reactions cannot declare inline events. This is a corpus convention, not a
|
|
10
|
-
compiler requirement. Screenplay
|
|
10
|
+
compiler requirement. Screenplay `Documentation/screenplay/commands.md`
|
|
11
11
|
documents the destination defaults and calls plain omission legacy omission behavior.
|
|
12
12
|
|
|
13
13
|
This complete example declares its payload and mappings together:
|
|
@@ -51,12 +51,12 @@ in event context. Extract an inline declaration when another producer needs it;
|
|
|
51
51
|
read-only consumers alone do not require extraction. Preserve a shipped contract
|
|
52
52
|
rather than mechanically removing an existing identity field.
|
|
53
53
|
|
|
54
|
-
**Stage caveat:** rendered Arc commands ignore production `for` (
|
|
55
|
-
|
|
54
|
+
**Stage caveat:** rendered Arc commands ignore production `for` (see Screenplay
|
|
55
|
+
`commands.md`). Verify target routing separately.
|
|
56
56
|
|
|
57
57
|
Keep conditional `produces when` events standalone: its next line must be a
|
|
58
|
-
plain event name, not `event <Name>` (Screenplay
|
|
59
|
-
`Source/DotNET/Screenplay/Parsing/ProducesParser.cs
|
|
58
|
+
plain event name, not `event <Name>` (Screenplay
|
|
59
|
+
`Source/DotNET/Screenplay/Parsing/ProducesParser.cs`). Also retain plain
|
|
60
60
|
production when a site-specific tag must not become an event-type tag.
|
|
61
61
|
|
|
62
62
|
Inline declarations are slice-owned contracts, usable by other consumers.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
A top-level `system` names an external business system. A slice-owned `operation`
|
|
15
15
|
declares exactly one `uses <System>`, typed inputs, optional description and
|
|
16
16
|
execute/compensate phases. Operations and their specification steps are
|
|
17
|
-
**authoring-only
|
|
17
|
+
**authoring-only**: compile acceptance is not execution;
|
|
18
18
|
binding refuses the whole model with PLAY0268. Source: released `operations.md`.
|
|
19
19
|
|
|
20
20
|
`produces operation <Name>` declares an inline slice-owned operation with typed
|
|
@@ -43,7 +43,7 @@ must preserve its production sequence, mappings, comments and attachment paths.
|
|
|
43
43
|
|
|
44
44
|
## Specification intent
|
|
45
45
|
|
|
46
|
-
This complete authoring-only model compiles with `--warnaserror
|
|
46
|
+
This complete authoring-only model compiles with `--warnaserror`.
|
|
47
47
|
`screenplay test` intentionally returns exit 3/unbound with PLAY0268; it proves
|
|
48
48
|
no failure/compensation behavior today:
|
|
49
49
|
|