@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
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
{ "kind": "skill-contains", "value": "screenplay baseline check", "file": "references/evolution.md" },
|
|
9
9
|
{ "kind": "play-compiles" },
|
|
10
10
|
{ "kind": "skill-contains", "value": "stream name exactly `All`" },
|
|
11
|
-
{ "kind": "skill-contains", "value": "
|
|
11
|
+
{ "kind": "skill-contains", "value": "compatibility `eventPinWarnings` array is empty", "file": "references/evolution.md" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "duplicate stored names across the application", "file": "references/evolution.md" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "An equal-name pin is a no-op", "file": "references/evolution.md" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "Consumers must explicitly admit v16 and preserve `storedName`", "file": "references/evolution.md" },
|
|
15
15
|
{ "kind": "skill-contains", "value": "never arrives leaves the child absent", "file": "references/consistency-and-concurrency.md" },
|
|
16
16
|
{ "kind": "skill-contains", "value": "one business identity per stream" },
|
|
17
17
|
{ "kind": "skill-contains", "value": "NOT enforced in the model today" },
|
|
18
|
-
{ "kind": "skill-contains", "value": "
|
|
18
|
+
{ "kind": "skill-contains", "value": "do not settle unique claims" },
|
|
19
19
|
{ "kind": "skill-contains", "value": "`[ProtectedDecision]`" },
|
|
20
20
|
{ "kind": "skill-contains", "value": "ownership interview" },
|
|
21
21
|
{ "kind": "skill-contains", "value": "retry identity" },
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
{ "kind": "skill-contains", "value": "No calculated events" },
|
|
24
24
|
{ "kind": "skill-contains", "value": "decision tree and red flags" },
|
|
25
25
|
{ "kind": "skill-contains", "value": "bind and reference-execute as ESM v8" },
|
|
26
|
-
{ "kind": "skill-contains", "value": "STAGE-ESM-026" },
|
|
27
26
|
{ "kind": "skill-contains", "value": "generated values give no\n idempotency, retry or deduplication guarantee" },
|
|
28
27
|
{ "kind": "skill-contains", "value": "Stage construct checks through v15" }
|
|
29
28
|
]
|
|
@@ -132,6 +132,8 @@ read-surface [equality filters](../../cratis-screenplay-read-surface/references/
|
|
|
132
132
|
|
|
133
133
|
Requires Screenplay 4.143.0 or later (`screenplay --version`) for equality filters; earlier compilers refuse them.
|
|
134
134
|
|
|
135
|
+
Requires Screenplay 4.105.0 or later (`screenplay --version`) for list queries (unfiltered, or narrowed by one `by` key); earlier compilers refuse them with PLAY0268.
|
|
136
|
+
|
|
135
137
|
## Time, reactions and captures (ESM v6)
|
|
136
138
|
|
|
137
139
|
- `slice Automation` with `reaction`: `when <Event>` (with values) then `produces` (no
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Projection (PDL) example
|
|
2
2
|
|
|
3
|
-
Projection forms that compile warning-free, bind on both tools and run in the reference runner without Unsupported results (`PlacingAnOrder`, `CancellingAnOrder`, `Depositing` and `RejectingAnEmptyCode` pass). The specifications exercise every, from, `set`, increment, remove with, all + count, add/subtract by, `clear` and the concept rules; `PlacingAnOrder` also runs the `children lines` block (through `LineAdded`) without asserting it; join, nested and variant groups bind but no specification drives them. Forms in this example: every, join, children, nested, clear with, remove with, increment/decrement, all + count, add/subtract by, set to, clear, no automap, literal mapping, variant group (no `=> RM`), concept rules not empty/max/length ==. `lineCount` is initialized in `OrderPlaced` and `shipping` is optional, because the reference runner requires every non-optional read-model property to be set after each fact. Rejected by the binder: more than one every/all block on one level (PLAY0268); `$eventContext.occurred.Week` (PLAY0273, derived value). Not in this example because they block the whole execution plan in the reference runner
|
|
3
|
+
Projection forms that compile warning-free, bind on both tools and run in the reference runner without Unsupported results (`PlacingAnOrder`, `CancellingAnOrder`, `Depositing` and `RejectingAnEmptyCode` pass). The specifications exercise every, from, `set`, increment, remove with, all + count, add/subtract by, `clear` and the concept rules; `PlacingAnOrder` also runs the `children lines` block (through `LineAdded`) without asserting it; join, nested and variant groups bind but no specification drives them. Forms in this example: every, join, children, nested, clear with, remove with, increment/decrement, all + count, add/subtract by, set to, clear, no automap, literal mapping, variant group (no `=> RM`), concept rules not empty/max/length ==. `lineCount` is initialized in `OrderPlaced` and `shipping` is optional, because the reference runner requires every non-optional read-model property to be set after each fact. Rejected by the binder: more than one every/all block on one level (PLAY0268); `$eventContext.occurred.Week` (PLAY0273, derived value). Not in this example because they block the whole execution plan in the reference runner: a `remove via join` on a projection's own (root) level (`UnsupportedProjectionBlock`; it binds, but on Chronicle v19.32.0 it creates no removal subscription, so `CustomerDeleted` would not remove an `OrderView`), and any event-context value other than the event source identity in a projection, such as `$eventContext.occurred` (`UnsupportedEventContext`). Quick reference: [cheat-sheet.md](cheat-sheet.md). The `every` block here maps a literal to show the form. Carry a timestamp on the event with `$context.occurred` in the producing command when a view must show it.
|
|
4
4
|
|
|
5
5
|
```screenplay
|
|
6
6
|
// PDL forms that bind executable on both tools.
|
|
@@ -20,34 +20,6 @@
|
|
|
20
20
|
"value": "--no-color",
|
|
21
21
|
"reason": "Negative option guidance, not a command recommendation: `screenplay test` rejects the option. Remove with the warning."
|
|
22
22
|
},
|
|
23
|
-
{
|
|
24
|
-
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/mcp-loop.md",
|
|
25
|
-
"text": "4.63.1. Cratis CLI 3.28.2 bundles Screenplay 4.66.0 (probed: 29 tools and the same views);",
|
|
26
|
-
"kind": "toolCount",
|
|
27
|
-
"value": "29",
|
|
28
|
-
"reason": "Historical Screenplay 4.66.0 probe. Remove when this older probe is removed or replaced by a current-release probe."
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/provenance.md",
|
|
32
|
-
"text": "| Connection facts (29/30 tools, `notifications/initialized`, 16 connection-local proposals, fixed root) | Screenplay `v4.66.0` `Source/DotNET/Screenplay.Mcp/McpToolCatalog.cs`, `McpConnection.cs`, `McpWorkspaces.cs`, `Documentation/screenplay/mcp/reference.md`, `install.md` | Read at the tag and probed against the standalone 4.66.0 tool (4.63.1 for the roots behavior) |",
|
|
33
|
-
"kind": "toolCount",
|
|
34
|
-
"value": "29",
|
|
35
|
-
"reason": "Historical 4.66.0 catalog without visualization. Remove when this provenance statement is removed or replaced."
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/provenance.md",
|
|
39
|
-
"text": "| Connection facts (29/30 tools, `notifications/initialized`, 16 connection-local proposals, fixed root) | Screenplay `v4.66.0` `Source/DotNET/Screenplay.Mcp/McpToolCatalog.cs`, `McpConnection.cs`, `McpWorkspaces.cs`, `Documentation/screenplay/mcp/reference.md`, `install.md` | Read at the tag and probed against the standalone 4.66.0 tool (4.63.1 for the roots behavior) |",
|
|
40
|
-
"kind": "toolCount",
|
|
41
|
-
"value": "30",
|
|
42
|
-
"reason": "Historical 4.66.0 catalog with visualization. Remove when this provenance statement is removed or replaced."
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"file": ".cratis/ai/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md",
|
|
46
|
-
"text": " remains on disk. On CLI 3.43.0: 9 requests and 9 responses, 37 tools,",
|
|
47
|
-
"kind": "toolCount",
|
|
48
|
-
"value": "37",
|
|
49
|
-
"reason": "Measured historical CLI 3.43.0 transcript, whose bundled Screenplay 4.127.0 exposes 37 tools. Current compiler and bundle versions are in Documentation/compatibility.md; this count describes only that transcript. Remove when the transcript is removed or replaced."
|
|
50
|
-
},
|
|
51
23
|
{
|
|
52
24
|
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
53
25
|
"text": "| PLAY0686 | Retired | Differing event pins travel as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission is separate: a renderer that does not admit v16 must refuse the model rather than render it under the new name. |",
|
|
@@ -25,23 +25,14 @@ root. Never put a model under `.cratis/` or hand-copy it between repositories.
|
|
|
25
25
|
`cratis ai install` manages `.cratis/ai/`, never model files. Keep explanatory
|
|
26
26
|
Markdown in project documentation; `.play` is the single flow model.
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Product sources
|
|
29
29
|
|
|
30
|
-
Tool versions: toolchain `SKILL.md
|
|
31
|
-
|
|
32
|
-
`
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
The update follows `commands.md`, `events.md`, `queries.md` and decision 0023
|
|
37
|
-
at that main commit (after v4.52.0). It does not verify UI rendering.
|
|
38
|
-
|
|
39
|
-
Checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`):
|
|
40
|
-
`Documentation/screenplay/{templates,layout-arrangement,forms,contributions,interactions,ui-profile,theme,internationalization,file-references}.md`.
|
|
41
|
-
Those checks established the original baseline. The changed cancellation
|
|
42
|
-
example uses the newer main commit above, not the old tag.
|
|
43
|
-
|
|
44
|
-
Read `SKILL.md` in `cratis-screenplay-toolchain` when reading installed tool versions for these examples.
|
|
30
|
+
Tool versions: toolchain `SKILL.md`. UI statements come from Screenplay
|
|
31
|
+
`screens.md`, `contributions.md`, `forms.md`, `templates.md`, `ui-profile.md`,
|
|
32
|
+
`fixtures/screen-release-ui.play`, `layout-arrangement.md`, `interactions.md`, `theme.md`,
|
|
33
|
+
`internationalization.md` and `file-references.md` under `Documentation/screenplay/`. Scene
|
|
34
|
+
runtime sources: scaffold Scene tag, `Source/JavaScript/**`. This guidance does not verify
|
|
35
|
+
UI rendering.
|
|
45
36
|
|
|
46
37
|
Every construct on this page is deferred from the executable model with
|
|
47
38
|
information `PLAY0269`: it never blocks binding, and it is not evidence that a
|
|
@@ -55,8 +46,8 @@ installed shape through MCP `syntax-schema`; details:
|
|
|
55
46
|
`references/screen-composition-contract.md`.
|
|
56
47
|
|
|
57
48
|
These constructs went unhighlighted and uncompleted by the Monaco and VS Code
|
|
58
|
-
language service until
|
|
59
|
-
dispatches on a keyword entry. On an older language-service version they still
|
|
49
|
+
language service until every construct the parser
|
|
50
|
+
dispatches on had a keyword entry. On an older language-service version they still
|
|
60
51
|
look unrecognized — **check `screenplay`, not the editor**, because absent
|
|
61
52
|
highlighting was never evidence that a construct is wrong.
|
|
62
53
|
|
|
@@ -218,13 +209,17 @@ module-level.
|
|
|
218
209
|
`navigate to <Screen> by <param>` is **not** string interpolation; it reuses the
|
|
219
210
|
same typed navigate binding a screen action uses.
|
|
220
211
|
|
|
221
|
-
⚠️
|
|
212
|
+
⚠️ A navigation contribution also carries `id`, `icon`, `presentation`, `group` and
|
|
222
213
|
`destination outlet <name> | dialog <DialogTemplate> | external "<route>"`; its `navigate to` takes
|
|
223
214
|
`route`, `outlet` and `parameter` lines, and an undeclared outlet or dialog target is `PLAY0654`
|
|
224
|
-
(`contributions.md`).
|
|
215
|
+
(`contributions.md`).
|
|
216
|
+
|
|
217
|
+
Requires Screenplay 4.133.0 or later (`screenplay --version`) for `PLAY0654` on an undeclared outlet or dialog target.
|
|
218
|
+
|
|
219
|
+
An explicit override for when nearest-enclosing is not the point you mean is
|
|
225
220
|
not in the language. The screens-release vector
|
|
226
|
-
(canonical `ScreenComposition` corpus v1) adds typed screen composition;
|
|
227
|
-
|
|
221
|
+
(canonical `ScreenComposition` corpus v1) adds typed screen composition; a
|
|
222
|
+
renderer that admits it renders it and passes the browser run. Report a refused form as a
|
|
228
223
|
capability gap, never a flat-list fallback; Studio production proof is separate.
|
|
229
224
|
|
|
230
225
|
## Interactions — what a click does
|
|
@@ -282,9 +277,9 @@ module Invoicing
|
|
|
282
277
|
```
|
|
283
278
|
|
|
284
279
|
The inline event targets `invoiceId`; the projection gets it from event context.
|
|
285
|
-
Scalar/named `returns` bind and reference-execute
|
|
280
|
+
Scalar/named `returns` bind and reference-execute (ESM v7).
|
|
286
281
|
Renderer generation/response limits: command-surface `references/generated-values-and-responses.md`.
|
|
287
|
-
Screenplay
|
|
282
|
+
Screenplay resolves response names in form submit and execute success (Requires Screenplay 4.148.0 or later);
|
|
288
283
|
own failure use is PLAY0685. No ESM change; Scene runtime binding remains downstream.
|
|
289
284
|
An existing success continuation does not imply a response contract.
|
|
290
285
|
Read [response continuations](references/response-continuations.md) for precedence,
|
|
@@ -390,8 +385,8 @@ The rules:
|
|
|
390
385
|
## Verify
|
|
391
386
|
|
|
392
387
|
- [ ] `screenplay <model> --warnaserror` (standalone) reports zero errors and zero
|
|
393
|
-
warnings; `cratis screenplay validate --warnings-as-errors` says the same
|
|
394
|
-
|
|
388
|
+
warnings; `cratis screenplay validate --warnings-as-errors` says the same when its bundled
|
|
389
|
+
compiler matches (versions: `cratis-screenplay-toolchain`
|
|
395
390
|
`SKILL.md`).
|
|
396
391
|
- [ ] Every screen in the flow has Level 1 reviewed before any layout, and every
|
|
397
392
|
form field and screen field traces to a command or read-model property.
|
package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md
CHANGED
|
@@ -11,7 +11,7 @@ At least one `when` and a nonempty action list in every branch are required.
|
|
|
11
11
|
Do not mix alternatives with plain actions or `where`; a one-line
|
|
12
12
|
`when … execute …` belongs to labeled actions, not interactions.
|
|
13
13
|
|
|
14
|
-
This complete model validates on standalone
|
|
14
|
+
This complete model validates on the standalone compiler:
|
|
15
15
|
|
|
16
16
|
```screenplay
|
|
17
17
|
module Billing
|
|
@@ -67,5 +67,5 @@ UI is deferred from backend ESM (PLAY0269), not executable gesture proof. The
|
|
|
67
67
|
board draws a static prototype; renderers must explicitly admit alternatives or
|
|
68
68
|
report unsupported, never flatten them into plain actions.
|
|
69
69
|
|
|
70
|
-
Authority: Screenplay
|
|
71
|
-
`mcp/authoring-tools.md
|
|
70
|
+
Authority: Screenplay `interactions.md`, `diagnostics.md`,
|
|
71
|
+
`mcp/authoring-tools.md`.
|
|
@@ -4,7 +4,7 @@ No TrogonStack text is adapted in this skill. Nebulit material is credited in th
|
|
|
4
4
|
|
|
5
5
|
| Item | Source | Licence | Treatment | Where in this skill |
|
|
6
6
|
|---|---|---|---|---|
|
|
7
|
-
| Language constructs, rules and Verify list | Cratis/Screenplay
|
|
7
|
+
| Language constructs, rules and Verify list | Cratis/Screenplay documentation | MIT | original | SKILL.md |
|
|
8
8
|
|
|
9
9
|
## Adapted closely (Martin Dilger and Nebulit GmbH)
|
|
10
10
|
|
package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Success scope
|
|
11
11
|
|
|
12
|
-
Screenplay
|
|
12
|
+
Screenplay resolves returned names outside the ESM (Requires Screenplay 4.148.0 or later). A scalar
|
|
13
13
|
`returns invoiceId` exposes `invoiceId`; a `returns` block exposes its field
|
|
14
14
|
names. The form's block `on submit` and one-line
|
|
15
15
|
`on submit navigate to <Screen> by <name>` have the form command's response
|
|
@@ -38,22 +38,22 @@ Returned values still cannot supply another command's generated input
|
|
|
38
38
|
Monaco/VS Code complete returned names after `from` and form `by`; hover shows
|
|
39
39
|
the field type. Editor resolution is not runtime execution.
|
|
40
40
|
|
|
41
|
-
Sources: Cratis/Screenplay `
|
|
42
|
-
`Source/DotNET/Screenplay/Parsing/SpecificationResponseValidator.cs
|
|
43
|
-
`Source/DotNET/Screenplay/for_ScreenplayCompiler/when_validating_response_continuations.cs
|
|
41
|
+
Sources: Cratis/Screenplay `Documentation/screenplay/interactions.md`,
|
|
42
|
+
`Source/DotNET/Screenplay/Parsing/SpecificationResponseValidator.cs`,
|
|
43
|
+
`Source/DotNET/Screenplay/for_ScreenplayCompiler/when_validating_response_continuations.cs`.
|
|
44
44
|
|
|
45
45
|
## Renderer boundary
|
|
46
46
|
|
|
47
|
-
CLI
|
|
47
|
+
A CLI-bundled compiler can predate this resolution. Stage
|
|
48
48
|
returns scalar/named responses through generated TypeScript proxies and passes
|
|
49
49
|
accepted responses to Scene's `CommandOutcome.response`, but form response
|
|
50
|
-
binding/navigation remains blocked
|
|
50
|
+
binding/navigation remains blocked in Scene. Do not infer runtime
|
|
51
51
|
continuation support from successful source validation, an unchanged ESM, a
|
|
52
|
-
response proxy, or an existing `on success`.
|
|
53
|
-
follow-up, not a capability
|
|
52
|
+
response proxy, or an existing `on success`. Runtime binding remains a renderer
|
|
53
|
+
follow-up, not a capability the compiler supplies.
|
|
54
54
|
|
|
55
|
-
Sources: Cratis/cli `
|
|
56
|
-
`
|
|
55
|
+
Sources: Cratis/cli `Directory.Packages.props`; Cratis/Stage
|
|
56
|
+
`Documentation/reference/generated-values-rendering.md`.
|
|
57
57
|
|
|
58
58
|
## Compiled example
|
|
59
59
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
This reference is the authoring checklist for the screens-release UI surface. It
|
|
19
19
|
records the contract an agent must look for in the installed Screenplay tool and
|
|
20
20
|
in peer runtime/render contracts; it is not a second language definition. The syntax
|
|
21
|
-
below was re-read
|
|
21
|
+
below was re-read (`screens.md`, `forms.md`, `templates.md`,
|
|
22
22
|
`contributions.md`, `ui-profile.md` and `fixtures/screen-release-ui.play`); the shapes are released, not proposed. When a
|
|
23
23
|
syntax form below is not present in `syntax-schema` or does not compile with the
|
|
24
24
|
project's selected Screenplay version, report the support level instead of
|
|
@@ -34,38 +34,31 @@ hand-writing an alternate shape.
|
|
|
34
34
|
without dropping it, silently falling back or replacing it with a default.
|
|
35
35
|
|
|
36
36
|
Keep those three lines separate in reports. Correct an old limitation only when
|
|
37
|
-
the package/version you are using proves the new level.
|
|
38
|
-
CLI
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
re-label the historical execution result. Tool versions:
|
|
44
|
-
`cratis-screenplay-toolchain/SKILL.md`.
|
|
45
|
-
All three levels hold for the canonical `ScreenComposition` corpus on the historical vector:
|
|
37
|
+
the package/version you are using proves the new level. The canonical `ScreenComposition`
|
|
38
|
+
corpus was executed through the public CLI with its default Stage and Scene runtime. Scene
|
|
39
|
+
runtime capabilities below were source-checked at the current scaffold's Scene tag. Tool
|
|
40
|
+
versions: `cratis-screenplay-toolchain/SKILL.md`.
|
|
41
|
+
|
|
42
|
+
All three levels hold for the canonical `ScreenComposition` corpus:
|
|
46
43
|
|
|
47
44
|
- authoring and executable admission: MCP opens it with `sourceSuccess true`,
|
|
48
45
|
`semanticSuccess true`, `executableReady true`, and the stdio MCP harness sends
|
|
49
46
|
real proposal/apply requests, rejects a stale revision and preserves an
|
|
50
47
|
authored comment on disk;
|
|
51
|
-
- runtime: render publishes, and the browser acceptance run
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Guarded Close and double-click: Stage refused both with `STAGE-SCENE-ACTION-001` and
|
|
58
|
-
`STAGE-SCENE-INTERACTION-001` from Stage 4.51 through 4.57. Since Stage 4.65 they render and
|
|
59
|
-
run (public CLI 3.53.1 with `cratis/stage:4.73.1`, Cratis/Screenplay#671); the codes remain the
|
|
48
|
+
- runtime: render publishes, and the browser acceptance run passes with none blocked or pending
|
|
49
|
+
- native command forms, required fields, scoped comments, deep links, stale-response handling
|
|
50
|
+
and theme included. An agent-edited column was rendered, run and seen in the browser.
|
|
51
|
+
|
|
52
|
+
Guarded Close and double-click: an older Stage refuses both with `STAGE-SCENE-ACTION-001` and
|
|
53
|
+
`STAGE-SCENE-INTERACTION-001`; a current Stage renders and runs them, and the codes remain the
|
|
60
54
|
refusal for a guard Stage cannot evaluate, which is never emulated. Studio production Play
|
|
61
|
-
proof is a separate vector
|
|
62
|
-
profile and
|
|
63
|
-
|
|
64
|
-
(CLI 3.53.1) renders navigation contributions and toolbars, and `CLI-RENDER-015`, which refused them, is retired.)
|
|
55
|
+
proof is a separate vector. A renderer refuses an unresolvable UI
|
|
56
|
+
profile and recovers a rendered application. A current Stage renders navigation contributions
|
|
57
|
+
and toolbars; `CLI-RENDER-015`, which refused them, is retired.
|
|
65
58
|
|
|
66
|
-
|
|
59
|
+
The browser run also passes a module-level navigation contribution, an unlisted
|
|
67
60
|
screen reached through the hierarchy, and a toolbar item that opens a dialog with its `presentation` (icon-only, hint)
|
|
68
|
-
honoured
|
|
61
|
+
honoured.
|
|
69
62
|
|
|
70
63
|
## Data context and component bindings
|
|
71
64
|
|
|
@@ -128,9 +121,9 @@ presentation offers, never access control. Downstream runtime support is separat
|
|
|
128
121
|
from parsing; do not publish an empty plain action as equivalent behavior.
|
|
129
122
|
The complete checked model and conditions are in
|
|
130
123
|
`cratis-screenplay-read-surface` `references/guarded-actions.md`, grounded in
|
|
131
|
-
Screenplay
|
|
132
|
-
unsupported screen actions with STAGE-SCENE-ACTION-001;
|
|
133
|
-
`item.<field>` compared with a literal
|
|
124
|
+
Screenplay `screens.md`. An older Stage reports
|
|
125
|
+
unsupported screen actions with STAGE-SCENE-ACTION-001; a current Stage evaluates a guard of the form
|
|
126
|
+
`item.<field>` compared with a literal at runtime.
|
|
134
127
|
|
|
135
128
|
## Exposed template configuration
|
|
136
129
|
|
|
@@ -245,8 +238,8 @@ when a single screen owns the button. A parameter that reads a selection is a ty
|
|
|
245
238
|
data-context path). A dialog destination must state every input with a typed `with`/`parameter`
|
|
246
239
|
binding; a runtime default is not an authored contract.
|
|
247
240
|
|
|
248
|
-
Scene
|
|
249
|
-
run
|
|
241
|
+
Scene runtime capabilities (source-checked, not a browser
|
|
242
|
+
run). Authoring acceptance, executable
|
|
250
243
|
admission and runtime support stay separate — a Scene release is not a Stage
|
|
251
244
|
release. The current Stage scaffold pins a newer Scene release (Stage skill
|
|
252
245
|
`references/rendered-application.md`); never upgrade managed files by hand:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Worked flow: marina berth bookings
|
|
2
2
|
|
|
3
3
|
Complete document. It compiles and binds (screens, forms and descriptions are informational
|
|
4
|
-
PLAY0269/0270; the `ListBerths` list query binds
|
|
4
|
+
PLAY0269/0270; the `ListBerths` list query binds (Screenplay 4.105.0 or later), and Stage would render only
|
|
5
5
|
an `observable` list). Used by `SKILL.md`, *Compose in this order*. Opening an input screen is a
|
|
6
6
|
click (`section ... on click navigate to`); the input screen's `action` carries the destination
|
|
7
7
|
**after success**.
|
|
@@ -63,12 +63,11 @@ payload field the event never declares, so the event payload line matters.
|
|
|
63
63
|
- `identifier` marks which property names the event source. It neither generates the value nor
|
|
64
64
|
fills it. Here the user supplies the berth. Other sources are a prefill (`populate via query`
|
|
65
65
|
or `populate from item` when the user chose a berth on the previous screen) or a modeled
|
|
66
|
-
selection. `generated identifier` is ESM v7: it binds on
|
|
67
|
-
cratis bundle (`PLAY0268` on the 4.66.0 bundled in `cratis` 3.28.x); CLI 3.57.0 / Stage 4.89.1 render supported UUID/String-concept generated
|
|
66
|
+
selection. `generated identifier` is ESM v7: it binds on a compiler that admits v7 (`PLAY0268` on an older one); Stage renders supported UUID/String-concept generated
|
|
68
67
|
identifiers; unsupported generated/result combinations remain refused (command-surface
|
|
69
68
|
`references/generated-values-and-responses.md`).
|
|
70
69
|
- The form is found through the input screen's `action BookBerth`; neither screen names it. A click
|
|
71
70
|
opens `BookBerthScreen` before the command runs; the action's `navigate to` is where the user
|
|
72
71
|
lands after success, never a route to the command's own input screen (Screenplay `screens.md`).
|
|
73
|
-
-
|
|
74
|
-
reports it valid
|
|
72
|
+
- Compiles with `screenplay --warnaserror`; `cratis screenplay validate --executable`
|
|
73
|
+
reports it valid.
|
|
@@ -7,12 +7,8 @@
|
|
|
7
7
|
{ "kind": "skill-contains", "value": "PLAY0485", "file": "references/response-continuations.md" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "Form fields and behavior parameters\nwin", "file": "references/response-continuations.md" },
|
|
9
9
|
{ "kind": "skill-contains", "value": "outer successful response remains available", "file": "references/response-continuations.md" },
|
|
10
|
-
{ "kind": "skill-contains", "value": "binding/navigation remains blocked
|
|
10
|
+
{ "kind": "skill-contains", "value": "binding/navigation remains blocked in Scene", "file": "references/response-continuations.md" },
|
|
11
11
|
{ "kind": "play-compiles" },
|
|
12
|
-
{
|
|
13
|
-
"kind": "skill-contains",
|
|
14
|
-
"value": "main `fd18129`"
|
|
15
|
-
},
|
|
16
12
|
{
|
|
17
13
|
"kind": "skill-contains",
|
|
18
14
|
"value": "produces event InvoiceCancelled"
|
|
@@ -14,16 +14,14 @@ first.
|
|
|
14
14
|
|
|
15
15
|
## Verified product sources
|
|
16
16
|
|
|
17
|
-
| Package |
|
|
18
|
-
| --- | --- |
|
|
19
|
-
| `Cratis.Arc.Chronicle` | `
|
|
20
|
-
| `Cratis.Chronicle` | `
|
|
21
|
-
| `Cratis.Chronicle` | `
|
|
22
|
-
| `Cratis.Arc.Core` |
|
|
17
|
+
| Package | Purpose |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| `Cratis.Arc.Chronicle` | `[NotAudited]` in `Cratis.Arc.Chronicle.Commands`; the `ARCCHR0009` analyzer |
|
|
20
|
+
| `Cratis.Chronicle` | `[PII]`, `[Subject]`, redaction, namespace isolation |
|
|
21
|
+
| `Cratis.Chronicle` | `[Encrypted]` in `Cratis.Chronicle.ProtectedValues`; analyzers `CHR0052`, `CHR0053` |
|
|
22
|
+
| `Cratis.Arc.Core` | Authorization filters, `CommandResult.Unauthorized` |
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
> references/arc-boundaries.md. Arc depends on Chronicle 19.39.1; separately
|
|
26
|
-
> version-qualified Chronicle security claims retain their original verification.
|
|
24
|
+
Every Arc check is cited in references/arc-boundaries.md.
|
|
27
25
|
|
|
28
26
|
Reverify against the owning product repository before asserting a framework
|
|
29
27
|
guarantee this file does not already state.
|
|
@@ -101,7 +99,7 @@ command's properties as well as grepping them.
|
|
|
101
99
|
reviewer reading logs for 401s will miss authorization failures.
|
|
102
100
|
- Review [Arc-specific security boundaries](references/arc-boundaries.md) when
|
|
103
101
|
the diff touches hosting, identity, policies, discovery, streams or system actors.
|
|
104
|
-
It
|
|
102
|
+
It ties the checks to Arc source; do not assume a clean analyzer run proves
|
|
105
103
|
those deployment boundaries.
|
|
106
104
|
|
|
107
105
|
## Step 4 — Data exposure
|
|
@@ -3,57 +3,59 @@
|
|
|
3
3
|
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
4
4
|
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: Arc. Each source below is a path in the Arc repository.
|
|
7
7
|
|
|
8
8
|
- Enable `TrustForwardedIdentityHeaders` only behind an authenticating ingress
|
|
9
9
|
that strips caller identity headers, replaces them and prevents direct backend
|
|
10
10
|
access. Headers are unsigned, not proof of identity. Without the explicit
|
|
11
11
|
host-wide opt-in Arc ignores them. Custom handlers must honor the same flag.
|
|
12
|
-
[Secure defaults](https://github.com/Cratis/Arc/blob/
|
|
12
|
+
[Secure defaults](https://github.com/Cratis/Arc/blob/main/Documentation/upgrading/secure-defaults.mdx).
|
|
13
13
|
- Application code must not read `.cratis-identity`. The backend derives identity
|
|
14
14
|
from the authenticated principal; the JS client only falls back to the legacy
|
|
15
15
|
cookie on 404, never on 401/403. Use `clearCache()` on logout. Browser identity
|
|
16
16
|
remains display state, not server authorization.
|
|
17
|
-
[Backend provider](https://github.com/Cratis/Arc/blob/
|
|
18
|
-
[JS provider](https://github.com/Cratis/Arc/blob/
|
|
17
|
+
[Backend provider](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/Identity/IdentityProvider.cs),
|
|
18
|
+
[JS provider](https://github.com/Cratis/Arc/blob/main/Source/JavaScript/Arc/identity/IdentityProvider.ts).
|
|
19
19
|
- Test all discovery routes outside Development. Default access is authenticated
|
|
20
20
|
there, or 404 when the host cannot authenticate. Explicit
|
|
21
21
|
`RequireAuthentication=false` opens discovery in every environment;
|
|
22
22
|
`Enabled=false` removes catalogs, not identity discovery. Disable both switches
|
|
23
23
|
when neither is needed. `[ExcludeFromDiscovery]` hides documentation/catalogs,
|
|
24
24
|
not invocation or authorization.
|
|
25
|
-
[Introspection](https://github.com/Cratis/Arc/blob/
|
|
25
|
+
[Introspection](https://github.com/Cratis/Arc/blob/main/Documentation/backend/csharp/introspection/index.md).
|
|
26
26
|
- Check ARC0019/0020/0021: conflicting declarations, Microsoft attributes without
|
|
27
27
|
the ASP.NET integration, and schemes on the standalone host. Microsoft
|
|
28
28
|
`[Authorize]` is enforced only by the ASP.NET host; policies/schemes fail closed
|
|
29
29
|
on supported hosts. A method declaration **replaces** the type declaration.
|
|
30
30
|
Guest access requires every policy in the declaration to opt in
|
|
31
|
-
(`evaluatesAnonymous`), without roles/schemes.
|
|
31
|
+
(`evaluatesAnonymous`), without roles/schemes.
|
|
32
|
+
Requires Arc 22.44.2 for guest endpoints to be
|
|
32
33
|
reachable through HTTP even with an authenticated fallback policy. Keep an
|
|
33
34
|
intentional `IFallbackAuthorizationEvaluator` baseline; it is separate from
|
|
34
35
|
ASP.NET's `FallbackPolicy`.
|
|
35
|
-
[Authorization descriptors](https://github.com/Cratis/Arc/blob/
|
|
36
|
-
[guest endpoint specs](https://github.com/Cratis/Arc/tree/
|
|
36
|
+
[Authorization descriptors](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core.CodeAnalysis/DiagnosticDescriptors.cs),
|
|
37
|
+
[guest endpoint specs](https://github.com/Cratis/Arc/tree/main/Source/DotNET).
|
|
37
38
|
- The embedded `/.cratis/event-model` viewer defaults to Debug **and** Development.
|
|
38
39
|
Explicit `Enabled=true` overrides that default: check that deployed hosts have
|
|
39
40
|
not enabled it, rather than claiming Production can never map it.
|
|
40
|
-
[Exposure implementation](https://github.com/Cratis/Arc/blob/
|
|
41
|
+
[Exposure implementation](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Screenplay.Embedded/Hosting/EventModelViewerExposure.cs).
|
|
41
42
|
- Generated identifiers are not secrets, authorization proofs or idempotency
|
|
42
|
-
keys. [Generated values](https://github.com/Cratis/Arc/blob/
|
|
43
|
+
keys. [Generated values](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/Commands/ModelBound/GeneratedValueAttribute.cs).
|
|
43
44
|
- Arc telemetry records type/name/outcome metadata and correlation/tenant ids,
|
|
44
45
|
not command/query/event payload values or validation/exception messages. Do not
|
|
45
46
|
widen it with sensitive payloads or mistake this for a promise of no ids.
|
|
46
|
-
[Telemetry names](https://github.com/Cratis/Arc/blob/
|
|
47
|
+
[Telemetry names](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/WellKnownTelemetryNames.cs).
|
|
47
48
|
- Returned reactor commands marked `[ExecuteCommandsAsSystem]` use a narrow
|
|
48
|
-
disposed system scope.
|
|
49
|
+
disposed system scope.
|
|
50
|
+
Requires Arc 22.72.0 so the system scope never carries the caller principal (earlier versions leaked it);
|
|
49
51
|
manually executing commands still needs explicit actor ownership.
|
|
50
|
-
[Executor](https://github.com/Cratis/Arc/blob/
|
|
52
|
+
[Executor](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Chronicle/Reactors/CommandSideEffectExecutor.cs).
|
|
51
53
|
- Revocable observable data needs `IGuardObservableQueryEmission`; it applies to
|
|
52
54
|
plain HTTP snapshots/waits/long polls too. Suppression withholds data; denial
|
|
53
55
|
terminates/returns unauthorized. Never read the producer's ambient principal.
|
|
54
|
-
[HTTP processing](https://github.com/Cratis/Arc/blob/
|
|
56
|
+
[HTTP processing](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/Queries/ObservableQueryHttp.cs).
|
|
55
57
|
- Query health remains explicitly anonymous and returns connection health. Audit
|
|
56
58
|
exposure of connection user ids (tracked by Arc#2873), not just catalogs:
|
|
57
59
|
discovery restrictions are not blanket protection of `/.cratis/*`.
|
|
58
|
-
[QueryHealth](https://github.com/Cratis/Arc/blob/
|
|
59
|
-
[subscription client UserId](https://github.com/Cratis/Arc/blob/
|
|
60
|
+
[QueryHealth](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/Queries/QueryHealth.cs),
|
|
61
|
+
[subscription client UserId](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/Queries/QuerySubscriptionClientInfo.cs).
|
|
@@ -39,7 +39,7 @@ In a language without those analyzers the same rules hold; the reviewer enforces
|
|
|
39
39
|
them instead of the compiler. Reverify against the owning product repository
|
|
40
40
|
before claiming behavior for another version.
|
|
41
41
|
|
|
42
|
-
The `Cratis.Synopsis.Tool` dotnet tool (verified
|
|
42
|
+
The `Cratis.Synopsis.Tool` dotnet tool (verified) reads these
|
|
43
43
|
names statically, never running code, and writes one HTML or JSON behavior
|
|
44
44
|
document from C#, TypeScript, Gherkin and Screenplay specifications:
|
|
45
45
|
`dotnet tool install --global Cratis.Synopsis.Tool`, then `synopsis . --open`
|
|
@@ -20,29 +20,27 @@ MongoDB observations still need real infrastructure.
|
|
|
20
20
|
|
|
21
21
|
## Verified product sources
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| Package |
|
|
26
|
-
| --- | --- |
|
|
27
|
-
| `Cratis.Specifications.XUnit` | `
|
|
28
|
-
| `Cratis.Specifications` | `
|
|
29
|
-
| `Cratis.Arc.Testing` | `
|
|
30
|
-
| `Cratis.Chronicle.Testing` | `
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`EventContext.From` UTC default
|
|
34
|
-
and require **19.46.0+**; see the ReactorScenario section in
|
|
23
|
+
Sources:
|
|
24
|
+
|
|
25
|
+
| Package | Purpose |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| `Cratis.Specifications.XUnit` | `Specification` base, lifecycle discovery, `ShouldXxx` assertions, optional shared lifecycle |
|
|
28
|
+
| `Cratis.Specifications` | `Catch.Exception`, `SpecificationMethods` (dependency of the XUnit package) |
|
|
29
|
+
| `Cratis.Arc.Testing` | `CommandScenario<TCommand>` preserves explicit principal/override/policy services; see application-scenarios |
|
|
30
|
+
| `Cratis.Chronicle.Testing` | `EventScenario`, `ReadModelScenario<T>`, `ReactorScenario<T>` |
|
|
31
|
+
|
|
32
|
+
Requires Chronicle 19.46.0 for reactor read-model seeding/absence, synchronous handler exceptions and the
|
|
33
|
+
`EventContext.From` UTC default; see the ReactorScenario section in
|
|
35
34
|
[application-scenarios.md](references/application-scenarios.md).
|
|
36
35
|
|
|
37
|
-
Per-context in-process MongoDB host isolation is
|
|
38
|
-
`Cratis.Chronicle.XUnit.Integration`
|
|
36
|
+
Per-context in-process MongoDB host isolation is in
|
|
37
|
+
`Cratis.Chronicle.XUnit.Integration` (`ChronicleFixture.cs`,
|
|
39
38
|
`ChronicleClientFixture.cs`, `MongoDBContextStorage.cs`); it is opt-in and does
|
|
40
39
|
not isolate out-of-process/remote kernels. See [integration-specs.md](references/integration-specs.md).
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
`Cratis.Arc.Testing` **22.75.0** (introduced in **22.67.0**).
|
|
41
|
+
Requires `Cratis.Arc.Testing` 22.67.0 for generated-value scenario pinning.
|
|
44
42
|
|
|
45
|
-
|
|
43
|
+
Check the owning product repository before claiming support for
|
|
46
44
|
another version. Never translate an assertion or helper name from memory.
|
|
47
45
|
|
|
48
46
|
## Route near misses
|
|
@@ -89,18 +87,13 @@ one. Out-of-process integration specifications are an advanced case reserved for
|
|
|
89
87
|
boundaries the scenario helpers cannot reach — see
|
|
90
88
|
[integration-specs.md](references/integration-specs.md).
|
|
91
89
|
|
|
92
|
-
> **Historical validator-state order-sensitivity:** observed at 22.16-era Arc.
|
|
93
|
-
> Process-wide provider replacement was fixed in 22.23.2; later releases isolated
|
|
94
|
-
> scenario stores/services. Reproduce at 22.75.0 before applying the old
|
|
95
|
-
> direct-validator/small `[Collection]` workaround; it is not verified here.
|
|
96
|
-
|
|
97
90
|
⚠️ `EventScenario` wires a strategy that always answers `ConcurrencyScope.None`,
|
|
98
91
|
which the validator skips, so an append that lets the strategy choose the scope
|
|
99
92
|
never produces a concurrency violation. `ShouldHaveConcurrencyViolations()`
|
|
100
93
|
cannot pass for such an append and its negation passes vacuously — specify concurrency against the
|
|
101
94
|
real kernel with an out-of-process integration specification instead.
|
|
102
95
|
|
|
103
|
-
For a class-based `ReactorScenario<TReactor>` on
|
|
96
|
+
For a class-based `ReactorScenario<TReactor>` on a recent Chronicle (Requires Chronicle 19.46.0), seed each
|
|
104
97
|
handler read-model parameter with `Given.ForEventSourceId(id).ReadModel(instance)`
|
|
105
98
|
or declare intentional absence with `.NoReadModel<T>()`; `Given` events do not
|
|
106
99
|
build it, even if passive. Missing setup throws
|
|
@@ -109,16 +102,18 @@ resolved read-model key. See the ReactorScenario reference for diagnostics,
|
|
|
109
102
|
exception capture and UTC occurrence-time defaults.
|
|
110
103
|
|
|
111
104
|
Specification projects are named `<Source>.Specs`. Add a `PackageReference` to
|
|
112
|
-
`Cratis.Specifications.XUnit
|
|
105
|
+
`Cratis.Specifications.XUnit`, not just `Cratis.Specifications`; the C#
|
|
113
106
|
namespace stays `Cratis.Specifications`. The house runner is xUnit **2.x**
|
|
114
|
-
|
|
115
|
-
net48 was dropped
|
|
116
|
-
`Cratis.Specifications.NUnit`
|
|
107
|
+
not xUnit v3. Supported targets are net8.0/net9.0/net10.0;
|
|
108
|
+
net48 was dropped (retain 3.x for that target).
|
|
109
|
+
`Cratis.Specifications.NUnit` is an alternative with the same base pattern,
|
|
117
110
|
`[Test]` instead of `[Fact]`, and **public** test methods.
|
|
118
111
|
|
|
119
112
|
### Pin server-generated Handle values
|
|
120
113
|
|
|
121
|
-
|
|
114
|
+
Requires Arc 22.67.0 for generated-value pinning.
|
|
115
|
+
|
|
116
|
+
`CommandScenario<TCommand>` defaults to strict generation:
|
|
122
117
|
without a named pin or `AllowGeneration()`, `Execute` returns a command result
|
|
123
118
|
with `GeneratedValueNotPinned`, rather than throwing it. Import
|
|
124
119
|
`Cratis.Arc.Testing.Commands`; configure `PinGeneratedValue(name, concept)`
|
|
@@ -296,8 +291,10 @@ between collaborators. That is where defects hide.
|
|
|
296
291
|
|
|
297
292
|
## Verify
|
|
298
293
|
|
|
294
|
+
Requires `Cratis.Specifications` 4.0.0 for the analyzers.
|
|
295
|
+
|
|
299
296
|
CRSPEC0001–CRSPEC0007 ship as **warnings** in `Cratis.Specifications`, `.XUnit`,
|
|
300
|
-
and `.NUnit
|
|
297
|
+
and `.NUnit`. A warnings-as-errors build enforces them: `should_` names,
|
|
301
298
|
one specification per file (given contexts exempt), no facts on given contexts,
|
|
302
299
|
test attributes on `should_` methods, no explicit base lifecycle calls, public
|
|
303
300
|
specification classes, and no `Because` on given contexts. See
|