@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
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
# Chronicle MCP deployment and denials
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
[configuration](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
8
|
-
[deployment profiles](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
9
|
-
[ToolCatalog.cs](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
10
|
-
and [Program.cs](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
6
|
+
Source: `Cratis/Chronicle.Mcp`:
|
|
7
|
+
[configuration](https://github.com/Cratis/Chronicle.Mcp/blob/main/Documentation/configuration.md),
|
|
8
|
+
[deployment profiles](https://github.com/Cratis/Chronicle.Mcp/blob/main/Documentation/deployment-profiles.md),
|
|
9
|
+
[ToolCatalog.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Authorization/ToolCatalog.cs)
|
|
10
|
+
and [Program.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Program.cs).
|
|
11
11
|
|
|
12
12
|
## Registration and target
|
|
13
13
|
|
|
@@ -15,12 +15,11 @@ The product documents Docker/stdio launch using `docker run -i --rm`, passing
|
|
|
15
15
|
`Cratis__Chronicle__Mcp__ConnectionString` into the container. Use a verified
|
|
16
16
|
image/version and your harness's stdio registration shape, only when setup is
|
|
17
17
|
requested. The registry identity is `io.github.Cratis/chronicle-mcp`, but
|
|
18
|
-
`server.json`
|
|
19
|
-
manifest as a v2.0.0 image pin. The [tagged README](https://github.com/Cratis/Chronicle.Mcp/blob/v2.0.0/README.md)
|
|
18
|
+
the checked-in `server.json` can lag the release; do not treat its version/image as an image pin. The [README](https://github.com/Cratis/Chronicle.Mcp/blob/main/README.md)
|
|
20
19
|
documents transport setup.
|
|
21
20
|
|
|
22
|
-
`cratis ai`
|
|
23
|
-
Studio ([AiMcpHarnesses.cs](https://github.com/Cratis/cli/blob/
|
|
21
|
+
`cratis ai` only writes the Screenplay descriptor, not Chronicle or
|
|
22
|
+
Studio ([AiMcpHarnesses.cs](https://github.com/Cratis/cli/blob/main/Source/Cli/Commands/Ai/AiMcpHarnesses.cs)).
|
|
24
23
|
Do not add an unsupported descriptor to the corpus catalog.
|
|
25
24
|
|
|
26
25
|
For unset connection values: explicit options → `CHRONICLE_CONNECTION_STRING`
|
|
@@ -73,5 +72,5 @@ text block, for example:
|
|
|
73
72
|
Mutation checks run in table order through `not_authorized`, first failure wins;
|
|
74
73
|
`chronicle_denied` occurs only after reaching Chronicle. The envelope/log omits
|
|
75
74
|
scope, target, principal, credentials and exception text. These codes are
|
|
76
|
-
verified in [DenialCodes.cs](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
75
|
+
verified in [DenialCodes.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Authorization/DenialCodes.cs).
|
|
77
76
|
Never turn a denial into success or widen policy automatically.
|
package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md
CHANGED
|
@@ -3,46 +3,46 @@
|
|
|
3
3
|
|
|
4
4
|
# Observational Chronicle MCP tools
|
|
5
5
|
|
|
6
|
-
Hand-maintained classification
|
|
6
|
+
Hand-maintained classification of `Cratis/Chronicle.Mcp`.
|
|
7
7
|
Disposition: `passive-allowed` only for an authorized, bounded read with an
|
|
8
8
|
appropriate output/redaction review. Read-only does not mean public data.
|
|
9
9
|
All 24 tools below declare `ReadOnly=true`, `OpenWorld=false`; their bodies read
|
|
10
10
|
Chronicle or transform the returned data without writing store state.
|
|
11
11
|
|
|
12
12
|
Paths below are relative to
|
|
13
|
-
[Source/Tools
|
|
14
|
-
|
|
13
|
+
[Source/Tools](https://github.com/Cratis/Chronicle.Mcp/tree/main/Source/Tools).
|
|
14
|
+
Read a tool's method body for effect evidence.
|
|
15
15
|
|
|
16
|
-
| Tool | Source
|
|
16
|
+
| Tool | Source | Output and narrowing |
|
|
17
17
|
| --- | --- | --- |
|
|
18
|
-
| `list_event_stores` | [EventStoreTools.cs
|
|
19
|
-
| `list_namespaces` | [EventStoreTools.cs
|
|
20
|
-
| `list_event_types` | [EventTypeTools.cs
|
|
21
|
-
| `describe_event_type` | [Design/SchemaTools.cs
|
|
22
|
-
| `list_observers` | [ObserverTools.cs
|
|
23
|
-
| `get_observer` | [ObserverTools.cs
|
|
24
|
-
| `list_failed_partitions` | [FailedPartitionTools.cs
|
|
25
|
-
| `list_projections` | [ProjectionTools.cs
|
|
26
|
-
| `list_read_models` | [ReadModelTools.cs
|
|
27
|
-
| `get_read_model_instances` | [ReadModelTools.cs
|
|
28
|
-
| `get_events` | [EventTools.cs
|
|
29
|
-
| `get_tail_sequence_number` | [EventTools.cs
|
|
30
|
-
| `list_recommendations` | [RecommendationTools.cs
|
|
31
|
-
| `get_server_version` | [ServerTools.cs
|
|
32
|
-
| `list_jobs` | [Jobs/JobTools.cs
|
|
33
|
-
| `get_job` | [Jobs/JobTools.cs
|
|
34
|
-
| `get_job_steps` | [Jobs/JobTools.cs
|
|
35
|
-
| `generate_event_catalog` | [Design/EventCatalogTools.cs
|
|
36
|
-
| `audit_unconsumed_event_types` | [Design/EventTypeAuditTools.cs
|
|
37
|
-
| `scaffold_read_model` | [Design/ReadModelDesignTools.cs
|
|
38
|
-
| `explain_causal_trace` | [Design/CausalTraceTools.cs
|
|
39
|
-
| `describe_system` | [Design/SystemDescriptionTools.cs
|
|
40
|
-
| `suggest_next_event_types` | [Design/SystemEvolutionTools.cs
|
|
41
|
-
| `run_ad_hoc_projection` | [Design/AdHocProjectionTools.cs
|
|
18
|
+
| `list_event_stores` | [EventStoreTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventStoreTools.cs) | store identifiers |
|
|
19
|
+
| `list_namespaces` | [EventStoreTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventStoreTools.cs) | namespace identifiers in one store |
|
|
20
|
+
| `list_event_types` | [EventTypeTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventTypeTools.cs) | registered types/schemas |
|
|
21
|
+
| `describe_event_type` | [Design/SchemaTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/SchemaTools.cs) | one registered schema |
|
|
22
|
+
| `list_observers` | [ObserverTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ObserverTools.cs) | metadata; type filter `reactor`, `reducer`, `projection`, `all` |
|
|
23
|
+
| `get_observer` | [ObserverTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ObserverTools.cs) | one observer's state |
|
|
24
|
+
| `list_failed_partitions` | [FailedPartitionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/FailedPartitionTools.cs) | failure reasons; redact errors/identifiers |
|
|
25
|
+
| `list_projections` | [ProjectionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ProjectionTools.cs) | projection definitions |
|
|
26
|
+
| `list_read_models` | [ReadModelTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ReadModelTools.cs) | definitions, `queryable` flag |
|
|
27
|
+
| `get_read_model_instances` | [ReadModelTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ReadModelTools.cs) | payload data; `page`, `pageSize` (default 20) |
|
|
28
|
+
| `get_events` | [EventTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventTools.cs) | payloads; `from`, `to`, `eventSourceId`, `eventType`; no row limit |
|
|
29
|
+
| `get_tail_sequence_number` | [EventTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventTools.cs) | highest sequence number, not a count |
|
|
30
|
+
| `list_recommendations` | [RecommendationTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/RecommendationTools.cs) | recommendations, not their execution |
|
|
31
|
+
| `get_server_version` | [ServerTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ServerTools.cs) | server version |
|
|
32
|
+
| `list_jobs` | [Jobs/JobTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Jobs/JobTools.cs) | metadata/progress; optional status filter |
|
|
33
|
+
| `get_job` | [Jobs/JobTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Jobs/JobTools.cs) | one job's metadata/progress |
|
|
34
|
+
| `get_job_steps` | [Jobs/JobTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Jobs/JobTools.cs) | step metadata/progress |
|
|
35
|
+
| `generate_event_catalog` | [Design/EventCatalogTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/EventCatalogTools.cs) | catalog text; no file write |
|
|
36
|
+
| `audit_unconsumed_event_types` | [Design/EventTypeAuditTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/EventTypeAuditTools.cs) | registered types without consumers |
|
|
37
|
+
| `scaffold_read_model` | [Design/ReadModelDesignTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/ReadModelDesignTools.cs) | code text; no file write or registration |
|
|
38
|
+
| `explain_causal_trace` | [Design/CausalTraceTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/CausalTraceTools.cs) | payloads and identities; redact both |
|
|
39
|
+
| `describe_system` | [Design/SystemDescriptionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/SystemDescriptionTools.cs) | schema/relationship metadata |
|
|
40
|
+
| `suggest_next_event_types` | [Design/SystemEvolutionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/SystemEvolutionTools.cs) | candidates, not accepted domain decisions |
|
|
41
|
+
| `run_ad_hoc_projection` | [Design/AdHocProjectionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/AdHocProjectionTools.cs) | folded payload data; `limit=100` bounds returned instances only, not event reads; no persistence |
|
|
42
42
|
|
|
43
43
|
Three prompts return workflow text without calling tools themselves:
|
|
44
44
|
`describe_system`, `suggest_next_event_types`, `query_system`
|
|
45
|
-
([Design/SystemPrompts.cs
|
|
45
|
+
([Design/SystemPrompts.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/SystemPrompts.cs)).
|
|
46
46
|
Prompt text and returned guidance are not authority to chain tool calls.
|
|
47
47
|
|
|
48
48
|
Even metadata may identify people or confidential business structure. Confirm
|
|
@@ -19,12 +19,12 @@ survives a second tenant is not.
|
|
|
19
19
|
|
|
20
20
|
## Verified product sources
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Sources:
|
|
23
23
|
|
|
24
|
-
| Package |
|
|
25
|
-
| --- | --- |
|
|
26
|
-
| `Cratis.Chronicle` | `
|
|
27
|
-
| `Cratis.Chronicle.AspNetCore` |
|
|
24
|
+
| Package | Purpose |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `Cratis.Chronicle` | `EventStoreNamespaceName`, `IEventStoreNamespaceResolver`, `IChronicleClient.GetEventStore` |
|
|
27
|
+
| `Cratis.Chronicle.AspNetCore` | the header and subdomain namespace resolvers |
|
|
28
28
|
|
|
29
29
|
Reverify product sources before claiming support for another version.
|
|
30
30
|
|
|
@@ -39,17 +39,17 @@ Reverify product sources before claiming support for another version.
|
|
|
39
39
|
implicit conversion from `string`, a `Default` value of `"Default"`, and a
|
|
40
40
|
`NotSet` value.
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
In Arc .NET there is no tenant-required configuration switch.
|
|
43
43
|
An unresolved header/query tenant is `TenantId.NotSet`; Arc's
|
|
44
44
|
`TenantNamespaceResolver` maps `IsDefault` (`NotSet` or `Default`) to Chronicle's
|
|
45
45
|
default namespace. Refuse unresolved tenants in application authorization where
|
|
46
|
-
required, not through an invented switch. Sources
|
|
46
|
+
required, not through an invented switch. Sources:
|
|
47
47
|
`Source/DotNET/Arc.Core/Tenancy/TenancyOptions.cs` and
|
|
48
48
|
`Source/DotNET/Chronicle/Tenancy/TenantNamespaceResolver.cs`.
|
|
49
49
|
|
|
50
50
|
## What a namespace actually isolates
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
Derived from the storage naming and the grain keys, not inferred:
|
|
53
53
|
|
|
54
54
|
**Per namespace:**
|
|
55
55
|
|
|
@@ -96,7 +96,7 @@ When the namespace is omitted, the registered **namespace resolver** supplies it
|
|
|
96
96
|
`IEventStore` exposes the namespace it was resolved for, and
|
|
97
97
|
`IEventStore.GetNamespaces(...)` lists them.
|
|
98
98
|
|
|
99
|
-
Behind Cratis AuthProxy
|
|
99
|
+
Behind Cratis AuthProxy the tenant reaches the backend on
|
|
100
100
|
`x-cratis-tenant-id`, from the proxy's own resolver (host, claim, route,
|
|
101
101
|
subdomain, selection page or fixed), and Arc resolves it per request. Map that
|
|
102
102
|
tenant to the Chronicle namespace through the resolver; the proxy does not
|
|
@@ -17,12 +17,11 @@ class. See [reducers](../cratis-chronicle-reducer/SKILL.md) for that contract.
|
|
|
17
17
|
|
|
18
18
|
## Verified product sources
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Sources:
|
|
21
21
|
|
|
22
|
-
| Package |
|
|
23
|
-
| --- | --- |
|
|
24
|
-
| `Cratis.Chronicle` | `
|
|
25
|
-
| `Cratis.Chronicle` | `19.59.4` | Self-model builder conflicts: `Source/Clients/DotNET/ReadModels/ReadModelBuilderOwnership.cs`, `Reducers/SelfReducerMethods.cs` at tag `v19.59.4` |
|
|
22
|
+
| Package | Purpose |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `Cratis.Chronicle` | `Cratis.Chronicle.Projections`, `Cratis.Chronicle.Projections.ModelBound`, `Cratis.Chronicle.Keys`, `Cratis.Chronicle.EventSequences`; self-model builder conflicts (`Source/Clients/DotNET/ReadModels/ReadModelBuilderOwnership.cs`, `Reducers/SelfReducerMethods.cs`) |
|
|
26
25
|
|
|
27
26
|
Reverify product sources before claiming support for another version.
|
|
28
27
|
|
|
@@ -105,7 +104,7 @@ They live on the per-event builder that `From<TEvent>` hands to your callback.
|
|
|
105
104
|
## Choose a bounded projection shape
|
|
106
105
|
|
|
107
106
|
Project the fields a consumer needs, rather than building a universal entity
|
|
108
|
-
with every detail and
|
|
107
|
+
with every detail and past entry. Children are useful for bounded related
|
|
109
108
|
state, not an invitation to embed an unbounded timeline. Give growing histories
|
|
110
109
|
their own paged read model. A slim summary may combine event facts without
|
|
111
110
|
query-time joins, but there is no framework requirement that a query read only
|
|
@@ -153,7 +152,7 @@ variants only when the shapes genuinely diverge; a single read model with a
|
|
|
153
152
|
`Status` flag is still right when every stage shares almost all its
|
|
154
153
|
properties.
|
|
155
154
|
|
|
156
|
-
|
|
155
|
+
Requires `Cratis.Chronicle` 19.1.0 or later for variants.
|
|
157
156
|
|
|
158
157
|
Both approaches use the identity type only to anchor the group — it does not
|
|
159
158
|
need to be a read model itself, and does not need a common CLR base type with
|
|
@@ -249,9 +248,9 @@ or a reactor rather than annotating the projection.
|
|
|
249
248
|
event types are excluded). It is for audit/log models; pair it with
|
|
250
249
|
`[NotRewindable]`. It targets a **property only**, not a positional parameter.
|
|
251
250
|
Fluent `.FromAll()` can count into dictionaries using a per-event context key.
|
|
252
|
-
- `[FromEvery]` captures across events the model **already** consumes, including
|
|
251
|
+
- `[FromEvery]` (Requires Chronicle 19.49.0 for child-only events) captures across events the model **already** consumes, including
|
|
253
252
|
events handled **only by child or nested-child collections**, updating the
|
|
254
|
-
owning parent
|
|
253
|
+
owning parent. It subscribes to nothing new. Model-bound always
|
|
255
254
|
includes children; fluent `IFromEveryBuilder.ExcludeChildProjections()` opts
|
|
256
255
|
out (PDL: `exclude children`).
|
|
257
256
|
|
|
@@ -260,24 +259,24 @@ property)]` and `[FromEvery(property, contextProperty)]`. Name them.
|
|
|
260
259
|
|
|
261
260
|
## Definition changes replay
|
|
262
261
|
|
|
263
|
-
|
|
262
|
+
Per `Documentation/hosting/configuration/observers.md`, the kernel
|
|
264
263
|
classifies a changed definition as no action, partial replay, or full replay.
|
|
265
264
|
`observers.definitionEvolution` defaults to `Automatic`; `PartialOnly` applies
|
|
266
265
|
partial/no-action plans but recommends full replay; `Manual` recommends both
|
|
267
266
|
replay kinds. Mapping, key, filter, join and child changes require full replay
|
|
268
267
|
when independence cannot be proved. Counters and joins are repaired by replay,
|
|
269
|
-
not by deploying corrected mappings:
|
|
270
|
-
|
|
268
|
+
not by deploying corrected mappings: earlier double-counts remain until rebuilt.
|
|
269
|
+
A `FromAll` subscription change redefines existing projections.
|
|
271
270
|
|
|
272
271
|
Projection replay and catch-up each walk the sequence in **one globally ordered
|
|
273
272
|
job step**, not parallel per-source steps. A new failure during catch-up stops
|
|
274
273
|
that ordered step even if other sources are healthy. Full replay keeps the
|
|
275
274
|
observer inactive; completion routes to catch-up/live unless quarantined.
|
|
276
|
-
|
|
275
|
+
A next-event storage error leaves the cursor unchanged and waits for
|
|
277
276
|
retry; only `NotFound` proves absence. It does not certify previously skipped
|
|
278
277
|
history. Sources: `Documentation/projections/registration-lifecycle.md`,
|
|
279
278
|
`Documentation/concepts/observers.mdx`, `Observation/Jobs/{CatchUpObserver,ReplayObserver}.cs`
|
|
280
|
-
and `Observation/States/Routing.cs` (under `Source/Kernel/Core/`)
|
|
279
|
+
and `Observation/States/Routing.cs` (under `Source/Kernel/Core/`).
|
|
281
280
|
|
|
282
281
|
Closing a stream does not erase its events or prevent a projection replay.
|
|
283
282
|
Keep the closing fact as history; see **cratis-chronicle-event-constraints**.
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
- When the fluent form is the only option
|
|
11
11
|
- AutoMap default
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
`Cratis.Chronicle.Projections`.
|
|
13
|
+
Namespace: `Cratis.Chronicle.Projections`.
|
|
15
14
|
|
|
16
15
|
## The interfaces
|
|
17
16
|
|
|
@@ -42,8 +41,7 @@ IProjectionBuilderFor<TReadModel> VariantOf<TIdentity>(Expression<Func<TReadMode
|
|
|
42
41
|
IProjectionBuilderFor<TReadModel> EntersOn<TEvent>();
|
|
43
42
|
```
|
|
44
43
|
|
|
45
|
-
`VariantOf<TIdentity>` and `EntersOn<TEvent
|
|
46
|
-
`19.1.0` or later — newer than this file's `18.3.0` baseline. See
|
|
44
|
+
Requires `Cratis.Chronicle` 19.1.0 or later for `VariantOf<TIdentity>` and `EntersOn<TEvent>`. See
|
|
47
45
|
[variants.md](variants.md) for the full mechanics: the identity type anchors a
|
|
48
46
|
group of mutually exclusive read models, only the event named in `EntersOn`
|
|
49
47
|
can create or resurrect the variant, and every other `.From<TEvent>()` on the
|
|
@@ -51,7 +49,7 @@ same builder is automatically reclassified into an update-only join. There is
|
|
|
51
49
|
no fluent equivalent of the model-bound `[GlobalFor<T>]` shared handler — a
|
|
52
50
|
mapping shared across variants is repeated on each variant's builder.
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
`FromEvery` also maps child-only events onto
|
|
55
53
|
the owning parent. `IFromEveryBuilder.ExcludeChildProjections()` opts out;
|
|
56
54
|
model-bound `[FromEvery]` has no opt-out. `FromAll` can count into dictionary
|
|
57
55
|
properties with a per-event context key (`Projections/FromEveryBuilder.cs`,
|
package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md
CHANGED
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
- What makes a type a model-bound projection
|
|
14
14
|
- AutoMap
|
|
15
15
|
|
|
16
|
-
Verified against `Cratis.Chronicle` `18.3.0`.
|
|
17
|
-
|
|
18
16
|
Unless noted, every attribute below lives in
|
|
19
17
|
`Cratis.Chronicle.Projections.ModelBound`. Generic arity is stated exactly:
|
|
20
18
|
`<T>` means one generic parameter naming the event type; "non-generic" means the
|
|
@@ -54,7 +52,7 @@ attribute takes no generic parameter at all.
|
|
|
54
52
|
Note that `[FromAll]` and `[FromEvery]` take their two optional arguments in
|
|
55
53
|
**opposite order**. Always pass them by name.
|
|
56
54
|
|
|
57
|
-
|
|
55
|
+
`[FromEvery]` includes child-only and nested-child
|
|
58
56
|
contributing events in the owning parent's mappings (no attribute opt-out).
|
|
59
57
|
`[FromAll]` subscribes to every sequence event type except join-only types;
|
|
60
58
|
pair it with `[NotRewindable]`. `[NotProjected]` excludes a query-assembled member
|
|
@@ -99,7 +97,7 @@ that key. That is a different mechanism from the fluent builder's
|
|
|
99
97
|
| `[EntersOn<T>]` | `<T>` | `(string? key = default)` | class, struct; repeatable |
|
|
100
98
|
| `[GlobalFor<TIdentity>]` | `<TIdentity>` | none | class, struct; single |
|
|
101
99
|
|
|
102
|
-
Requires `Cratis.Chronicle`
|
|
100
|
+
Requires `Cratis.Chronicle` 19.1.0 or later for variants. See
|
|
103
101
|
[variants.md](variants.md) for the full mechanics, the update-only
|
|
104
102
|
reclassification of non-entering events, and the `VariantMustDeclareEntersOnEvent`
|
|
105
103
|
startup trap.
|
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
- Startup-crash trap
|
|
10
10
|
- Best practices
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
feature; the skill's own baseline in `SKILL.md` is `18.3.0` — variants need at
|
|
14
|
-
least `19.1.0`).
|
|
12
|
+
Requires `Cratis.Chronicle` 19.1.0 or later.
|
|
15
13
|
|
|
16
14
|
Reach for variants when a single logical entity has genuinely different shapes
|
|
17
15
|
across its lifecycle — a work item that is a backlog entry, then a pull
|
|
@@ -25,26 +25,21 @@ effects. If the answer is "populate a queryable model", it is not a reactor.
|
|
|
25
25
|
> `.cratis/ai.json`; master definition in `cratis-screenplay-modeling-lifecycle`), the automation is
|
|
26
26
|
> a modeled slice: find it (`Automation` or `Translate`), treat its `produces` /
|
|
27
27
|
> `invokes`, conditions and fields as the contract, and write the reactor only as
|
|
28
|
-
> gap-fill for what the model leaves to code (Stage
|
|
28
|
+
> gap-fill for what the model leaves to code (Stage renders supported event-triggered Automation;
|
|
29
29
|
> Translate/captures and refused reactions remain gap-fill; Stage skill `references/admission.md`). Use `cratis-screenplay-automations-and-translations` to
|
|
30
30
|
> change the model; never change the model to fit the reactor, and never leave a
|
|
31
31
|
> modeled rule living only in the reactor. If the repository is not opted in
|
|
32
32
|
> (an empty directory, install output, a `.play` file outside the root or an untracked or uncommitted draft is not consent), stay code-first here
|
|
33
33
|
> (`cratis-chronicle-event-modeling` for a new, unsettled flow); if the Screenplay skills are not installed, say so and do not author `.play` from memory.
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Product sources
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
| `Cratis.Chronicle` | `19.50.1` | `Cratis.Chronicle.Reactors`, `Cratis.Chronicle.Reactors.SideEffects`, `Cratis.Chronicle.EventSequences`, `Cratis.Chronicle.Events` |
|
|
42
|
-
| `Cratis.Chronicle.CodeAnalysis` | `19.50.1` | handler, side-effect and filter diagnostics, including CHR0054–CHR0056 |
|
|
43
|
-
|
|
44
|
-
Scenario guards began in **19.46.0**, reverified at **19.50.0**;
|
|
45
|
-
see [specifications](references/specifications.md).
|
|
37
|
+
| Package | Purpose |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| `Cratis.Chronicle` | `Cratis.Chronicle.Reactors`, `Cratis.Chronicle.Reactors.SideEffects`, `Cratis.Chronicle.EventSequences`, `Cratis.Chronicle.Events` |
|
|
40
|
+
| `Cratis.Chronicle.CodeAnalysis` | handler, side-effect and filter diagnostics, including CHR0054–CHR0056 |
|
|
46
41
|
|
|
47
|
-
|
|
42
|
+
Scenario guards: see [specifications](references/specifications.md).
|
|
48
43
|
|
|
49
44
|
> **There is no `ReactorSideEffect` type.** Use the supported return types below;
|
|
50
45
|
> `EventForEventSourceId` supplies per-event metadata.
|
|
@@ -136,7 +131,7 @@ synchronous returns. Custom `IReactorSideEffectHandler` implementations can
|
|
|
136
131
|
claim synchronous types through `CanHandleReturnType(Type)`; they are not
|
|
137
132
|
restricted to `Task<T>`. An unclaimed return value **fails the partition** with
|
|
138
133
|
`UnhandledReactorReturnValue`, naming its type. CHR0054 flags an unsupported
|
|
139
|
-
return type at build time. Source
|
|
134
|
+
return type at build time. Source: `Reactors/EventHandlerMethods.cs`,
|
|
140
135
|
`Reactors/SideEffects/IReactorSideEffectHandler.cs`, `Reactors/UnhandledReactorReturnValue.cs`.
|
|
141
136
|
|
|
142
137
|
### Returning events instead of injecting `IEventLog`
|
|
@@ -160,8 +155,7 @@ public Task<IEnumerable<object>> <MethodName>(<EventName> @event, EventContext c
|
|
|
160
155
|
causation)` is the cross-stream wrapper. Its init members include `Subject`,
|
|
161
156
|
`Occurred`, `Tags`, `EventSource` (`Type?`) and `EventStream` (`string?`). Routing
|
|
162
157
|
defaults are `EventStreamType.All`, `EventStreamId.Default` and
|
|
163
|
-
`EventSourceType.Default`. Source: `EventSequences/EventForEventSourceId.cs
|
|
164
|
-
at v19.50.0.
|
|
158
|
+
`EventSourceType.Default`. Source: `EventSequences/EventForEventSourceId.cs`.
|
|
165
159
|
|
|
166
160
|
```csharp
|
|
167
161
|
public Task<IEnumerable<EventForEventSourceId>> <MethodName>(<EventName> @event, EventContext context) =>
|
|
@@ -200,7 +194,7 @@ a method** and means **replay exclusion**:
|
|
|
200
194
|
starts;
|
|
201
195
|
- on a method, that handler is skipped while the delivery is a replay.
|
|
202
196
|
|
|
203
|
-
**`[OnceOnly]` is not per-event-source deduplication.** There is no
|
|
197
|
+
**`[OnceOnly]` is not per-event-source deduplication.** There is no record of
|
|
204
198
|
which events a handler has already seen. Recovering a failed partition
|
|
205
199
|
re-delivers the event as an ordinary observation, and a `[OnceOnly]` handler runs
|
|
206
200
|
again. Catch-up and crash redelivery are not replay either; every ordinary
|
|
@@ -235,12 +229,14 @@ public sealed class ReactorAttribute(string id = "", string? eventSequence = def
|
|
|
235
229
|
**There is no `isActive` argument** — that belongs to `[Reducer]`. Without an
|
|
236
230
|
explicit `id`, the reactor's identity is its full type name.
|
|
237
231
|
|
|
238
|
-
Give side-effecting reactors a **stable explicit id**.
|
|
232
|
+
Give side-effecting reactors a **stable explicit id**. Discovery
|
|
239
233
|
warns on likely renames/moves: a new id catches up from the start and repeats
|
|
240
234
|
side effects; `[OnceOnly]` does not prevent that. `ArtifactIdentityDrift = Fail`
|
|
241
235
|
rejects Warning-level reactor/event-type findings with
|
|
242
236
|
`ArtifactIdentityDriftDetected`; projection/reducer drift is Information.
|
|
243
|
-
Inspect `RegistrationOutcome.IdentityDrift`.
|
|
237
|
+
Inspect `RegistrationOutcome.IdentityDrift`.
|
|
238
|
+
|
|
239
|
+
Requires Chronicle 19.47.0 or later for identity-drift warnings and `ArtifactIdentityDrift`. After stopping all subscriptions,
|
|
244
240
|
`IEventStore.Observers.Remove` can remove an orphaned observer; it refuses while
|
|
245
241
|
running or subscribed anywhere. This is an authorized operator action, not a
|
|
246
242
|
rename cleanup to perform automatically.
|
|
@@ -320,7 +316,7 @@ application observer that is when the client connects again, for example after a
|
|
|
320
316
|
redeploy; Kernel-owned reactors subscribe again at startup; automatic event-store
|
|
321
317
|
subscription reconciliation does not end quarantine. Read
|
|
322
318
|
[recovery](../cratis-chronicle-hosting/references/operations.md) for the
|
|
323
|
-
|
|
319
|
+
fail-closed lookup and observer-kind-specific quarantine rules.
|
|
324
320
|
|
|
325
321
|
Do not throw to reject a malformed inbound event. A reactor is not a data-quality
|
|
326
322
|
gate; invalid payloads belong at the command or append site. When a malformed
|
|
@@ -26,4 +26,4 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
|
|
|
26
26
|
| `.claude/skills/build-automation/SKILL.md`: reactor checklist: output fields traced to a stated source, skip conditions stated in the contract, repeated-input cases | `SKILL.md` "Specifications" and "Verify" | idea; our own wording kept |
|
|
27
27
|
| `.claude/skills/build-automation/SKILL.md`: read the slice definition first as the source of truth, build the command handler before the processor, single / conditional / multiple-command processor patterns, no route for an automation, closing checklist (no invented mappings, no invented filters, no guessed fields, idempotency of the command) | `references/slice-delivery-checklist.md` | Adapted closely as an `IReactor` delivery checklist: processors became reactor handlers returning commands or events, the storyline-derived test note became a separate reactor mapping specification. Not adopted: the Emmett reactor, `processor.ts`, processor id, lock and retry configuration, the dead-letter store, `schema.migrate()`, Postgres event store bootstrap, and "no dedicated reactor test" (the field mapping is the contract here) |
|
|
28
28
|
|
|
29
|
-
The `WithStrictEventSubscription()` scope statement and the scenario sequence-number behavior are verified against Chronicle
|
|
29
|
+
The `WithStrictEventSubscription()` scope statement and the scenario sequence-number behavior are verified against the Chronicle source (`Source/Clients/Testing/ReadModels/ReadModelScenario.cs`, `Source/Clients/Testing/Reactors/ReactorScenario.cs`).
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
5
|
- Specifications
|
|
6
|
-
- Routing and produced events
|
|
7
|
-
- Read-model setup
|
|
8
|
-
- Exceptions and occurrence time
|
|
6
|
+
- Routing and produced events
|
|
7
|
+
- Read-model setup
|
|
8
|
+
- Exceptions and occurrence time
|
|
9
9
|
- Contract coverage
|
|
10
10
|
|
|
11
11
|
## Specifications
|
|
@@ -19,7 +19,7 @@ non-event side effects; for handlers that return events, assert the resulting
|
|
|
19
19
|
appends through the scenario's event store. Cover the replay path separately
|
|
20
20
|
when the reactor has `[OnceOnly]` or `[Replay]` handlers.
|
|
21
21
|
|
|
22
|
-
## Routing and produced events
|
|
22
|
+
## Routing and produced events
|
|
23
23
|
|
|
24
24
|
Scenarios implement `IDisposable`; dispose in `Destroy()`.
|
|
25
25
|
`Given.ForEventSource(id).OnStream(eventSourceType, eventStreamType, eventStreamId).Events(...)`
|
|
@@ -35,9 +35,11 @@ is part of the contract. Per-run `Defaults(clientArtifactsProvider, serviceProvi
|
|
|
35
35
|
options)` supports `InMemoryClientArtifactsProvider` and `ExplicitArtifacts`;
|
|
36
36
|
non-generic `ReactorScenario(reactorId, defaults)` exercises a runtime/fluent reactor.
|
|
37
37
|
Sources: `Source/Clients/Testing/Reactors/` and `Source/Clients/Testing/Defaults.cs`
|
|
38
|
-
at **v19.50.0**.
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
|
|
40
|
+
## Read-model setup
|
|
41
|
+
|
|
42
|
+
Requires Chronicle 19.46.0 or later for class-based reactor read-model seeding, scenario exception unwrapping and the UTC `EventContext.From` default.
|
|
41
43
|
|
|
42
44
|
Class-based `ReactorScenario<TReactor>` does not build read models from `Given`
|
|
43
45
|
events, **including passive models**. Seed a pre-built instance in `Establish()`:
|
|
@@ -82,7 +84,7 @@ guard applies only when the scenario uses `EventStoreForTesting` (including an
|
|
|
82
84
|
explicit instance); an explicitly supplied store of another type and production
|
|
83
85
|
read-model resolution are unchanged.
|
|
84
86
|
|
|
85
|
-
## Exceptions and occurrence time
|
|
87
|
+
## Exceptions and occurrence time
|
|
86
88
|
|
|
87
89
|
`Events(...)` rethrows a synchronously throwing handler's **own exception**,
|
|
88
90
|
unwrapping the `TargetInvocationException` previously surfaced by reflection,
|
|
@@ -97,7 +99,7 @@ their supplied offset; the positional constructor does not default `Occurred`.
|
|
|
97
99
|
For deterministic time-dependent plain-call specs, supply a fixed occurrence
|
|
98
100
|
time rather than asserting an exact current instant.
|
|
99
101
|
|
|
100
|
-
|
|
102
|
+
Sources:
|
|
101
103
|
|
|
102
104
|
- `Source/Clients/Testing/Reactors/ReactorSourceGivenBuilder.cs` and
|
|
103
105
|
`ReactorScenarioGivenBuilder.cs`: seeding, absence and builder signatures.
|
|
@@ -19,14 +19,13 @@ all.
|
|
|
19
19
|
|
|
20
20
|
## Verified product sources
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Sources:
|
|
23
23
|
|
|
24
|
-
| Package |
|
|
25
|
-
| --- | --- |
|
|
26
|
-
| `Cratis.Chronicle` | `
|
|
27
|
-
| `Cratis.
|
|
28
|
-
| `Cratis.Arc.
|
|
29
|
-
| `Cratis.Arc.MongoDB` | `22.75.0` | the `Observe` family of `IMongoCollection<T>` extensions |
|
|
24
|
+
| Package | Purpose |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `Cratis.Chronicle` | `Cratis.Chronicle.Events`, `Cratis.Chronicle.Keys`, `Cratis.Chronicle.ReadModels`; style and discovery (`Source/Clients/DotNET/Reducers/{SelfReducerMethods,RegisteredReducerReadModel}.cs`, `ReadModels/ReadModelBuilderOwnership.cs`, `DefaultClientArtifactsProvider.cs`) |
|
|
27
|
+
| `Cratis.Arc.Core` | `Cratis.Arc.Queries.ModelBound.ReadModelAttribute` and `PathAttribute` |
|
|
28
|
+
| `Cratis.Arc.MongoDB` | the `Observe` family of `IMongoCollection<T>` extensions |
|
|
30
29
|
|
|
31
30
|
Reverify product sources before claiming support for another version. Confirm
|
|
32
31
|
the exact Arc package version in the consuming project before citing one.
|
|
@@ -82,7 +81,7 @@ public record <ReadModelName>(
|
|
|
82
81
|
|
|
83
82
|
Prefer a slim, purpose-built projection over assembling a screen by repeatedly
|
|
84
83
|
joining broad collections at query time. A summary needs summary fields, not
|
|
85
|
-
every detail and
|
|
84
|
+
every detail and past entry. This is a design convention, **not a
|
|
86
85
|
one-collection framework requirement**: bounded query composition remains valid,
|
|
87
86
|
including when separate security or compliance boundaries must be preserved.
|
|
88
87
|
|
|
@@ -114,8 +113,10 @@ For application code, work down this ladder:
|
|
|
114
113
|
|
|
115
114
|
**PDL** is for definitions authored outside application code (Workbench,
|
|
116
115
|
Screenplay, ad-hoc queries), not the code-first default. This ladder does not
|
|
117
|
-
claim Stage renders static self reducers. The self form is .NET-only
|
|
118
|
-
|
|
116
|
+
claim Stage renders static self reducers. The self form is .NET-only;
|
|
117
|
+
other SDKs keep their own reducer contracts.
|
|
118
|
+
|
|
119
|
+
Requires Chronicle 19.58.0 for self-reducing read models.
|
|
119
120
|
|
|
120
121
|
Default discovery finds projections, interface reducers and complete self shapes.
|
|
121
122
|
Explicit registration remains available, and plain instance reducers require
|
|
@@ -135,9 +136,9 @@ are source-keyed, have no native joins and are refused by decision reads.
|
|
|
135
136
|
Queries are **static** methods on the read-model record, discovered by Arc.
|
|
136
137
|
Marking the record with `[ReadModel]` from `Cratis.Arc.Queries.ModelBound` is
|
|
137
138
|
what gives it that surface. For a self-reducing model, put its `Reduce` methods
|
|
138
|
-
and queries on this same record.
|
|
139
|
+
and queries on this same record. On an Arc older than 22.90.0, use
|
|
139
140
|
`[ReadModel(RequireQueryAttribute = true)]` plus `[Query]` on intended queries to
|
|
140
|
-
avoid exposing folds.
|
|
141
|
+
avoid exposing folds. Requires Arc 22.90.0 for the automatic behavior: Arc excludes methods taking the
|
|
141
142
|
model itself from query discovery, and Arc.Chronicle claims self models for
|
|
142
143
|
command injection. See the existing
|
|
143
144
|
[explicit query-discovery guidance](references/queries.md#discovery-rules).
|
|
@@ -226,9 +227,9 @@ history length, invocation frequency, and the consistency/security requirement;
|
|
|
226
227
|
repeated reconstruction of large histories on a hot path is the concern.
|
|
227
228
|
Passivity does not itself authorize access or encrypt secrets.
|
|
228
229
|
|
|
229
|
-
This access distinction
|
|
230
|
-
([passive projections](https://github.com/Cratis/Chronicle/blob/
|
|
231
|
-
[passive reducers](https://github.com/Cratis/Chronicle/blob/
|
|
230
|
+
This access distinction is described in
|
|
231
|
+
([passive projections](https://github.com/Cratis/Chronicle/blob/main/Documentation/projections/declarative/passive.mdx),
|
|
232
|
+
[passive reducers](https://github.com/Cratis/Chronicle/blob/main/Documentation/reducers/passive-reducers.mdx)).
|
|
232
233
|
|
|
233
234
|
`[Passive]` on its own does **not** make a read model a projection. It is
|
|
234
235
|
deliberately excluded from the annotations that do; it changes how an existing
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- Custom routes
|
|
12
12
|
- Reading without a query surface
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Sources: `Cratis.Arc.Core` and `Cratis.Arc.MongoDB`.
|
|
15
15
|
Chronicle projection behavior is owned by the Chronicle guidance.
|
|
16
16
|
|
|
17
17
|
## Where the pieces live
|
|
@@ -40,8 +40,8 @@ query declarations; ARCCHR0019 warns about fold-like statics exposed by conventi
|
|
|
40
40
|
A `CancellationToken` parameter is supplied by Arc, not a query argument/proxy
|
|
41
41
|
input. Concept parameters are always caller-supplied, never DI. Invalid bool,
|
|
42
42
|
overflow, concept or collection-element GET/QUERY arguments return HTTP 400.
|
|
43
|
-
Minimal-API concepts serialize as primitives
|
|
44
|
-
Sources
|
|
43
|
+
Minimal-API concepts serialize as primitives.
|
|
44
|
+
Sources: `Arc.Core/Queries/ModelBound/ReadModelAttribute.cs`,
|
|
45
45
|
`QueryAttribute.cs`, and `Documentation/backend/csharp/chronicle/code-analysis/ARCCHR0019.md`.
|
|
46
46
|
|
|
47
47
|
The declared return type is validated after unwrapping at most one `Task<>`:
|
|
@@ -149,9 +149,9 @@ Guard React `result.hasData` and `result.isReady` before dereferencing data.
|
|
|
149
149
|
|
|
150
150
|
## Cost and composition
|
|
151
151
|
|
|
152
|
-
The behavior below
|
|
153
|
-
([collection observation](https://github.com/Cratis/Arc/blob/
|
|
154
|
-
[implementation](https://github.com/Cratis/Arc/blob/
|
|
152
|
+
The behavior below is described in
|
|
153
|
+
([collection observation](https://github.com/Cratis/Arc/blob/main/Documentation/backend/csharp/mongodb/observing-collections.md),
|
|
154
|
+
[implementation](https://github.com/Cratis/Arc/blob/main/Source/DotNET/MongoDB/MongoCollectionExtensions.cs)).
|
|
155
155
|
Do not generalize it to every provider or custom observable.
|
|
156
156
|
|
|
157
157
|
- Per-collection `Observe` reads an initial filtered set, retains it in memory,
|
|
@@ -177,9 +177,9 @@ Do not generalize it to every provider or custom observable.
|
|
|
177
177
|
- Prefer a purpose-built projected summary for frequently recomputed joins.
|
|
178
178
|
Query-time composition is supported, not forbidden. Bound each input and define
|
|
179
179
|
count, paging, missing-related-data, and subscription-disposal behavior.
|
|
180
|
-
|
|
180
|
+
MongoDB and EF auxiliary observations can use `ignoreQueryContext: true` so client
|
|
181
181
|
paging/counts belong to the primary source. That option reads **all matching
|
|
182
|
-
auxiliary rows**; it is not a performance limit. Confirm
|
|
182
|
+
auxiliary rows**; it is not a performance limit. Confirm the installed Arc supports it before
|
|
183
183
|
using it, and keep an explicit narrow filter.
|
|
184
184
|
|
|
185
185
|
Use the **cratis-arc-query-paging** skill for source-side paging. Paging an
|
|
@@ -19,15 +19,15 @@ event dispatch, filtering, metadata or read-model wiring contribute proof.
|
|
|
19
19
|
For a read-model scenario specification the **`Given` *is* the act**. There
|
|
20
20
|
is no separate `When`: seeding the events is what makes the projection run.
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Product sources
|
|
23
23
|
|
|
24
|
-
| Package |
|
|
25
|
-
| --- | --- |
|
|
26
|
-
| `Cratis.Chronicle.Testing` | `
|
|
27
|
-
| `Cratis.Chronicle` | `
|
|
28
|
-
| `Cratis.Specifications.XUnit` |
|
|
24
|
+
| Package | Purpose |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `Cratis.Chronicle.Testing` | `Source/Clients/Testing/ReadModels/ReadModelScenario.cs`: scenario selection, self and nominated reducers |
|
|
27
|
+
| `Cratis.Chronicle` | `Source/Clients/DotNET/Reducers/{SelfReducerMethods,RegisteredReducerReadModel}.cs`, `ReadModels/ReadModelBuilderOwnership.cs`: supported forms and ownership |
|
|
28
|
+
| `Cratis.Specifications.XUnit` | The `Specification` base and the `ShouldXxx` assertions |
|
|
29
29
|
|
|
30
|
-
Source: `Source/Clients/Testing/ReadModels/`
|
|
30
|
+
Source: `Source/Clients/Testing/ReadModels/` in `Cratis/Chronicle`.
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
dotnet add package Cratis.Chronicle.Testing
|