@cratis/pi 8.4.1 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +2 -1
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +5 -3
- package/package/corpus/harnesses/copilot/instructions/react.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +2 -1
- package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +6 -3
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +5 -2
- package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +131 -9
- package/package/corpus/rules/ai-distribution.md +2 -1
- package/package/corpus/rules/exit-codes-and-wrappers.md +1 -1
- package/package/corpus/rules/glossary.md +5 -3
- package/package/corpus/rules/react.md +3 -1
- package/package/corpus/rules/reactors.md +3 -1
- package/package/corpus/rules/scripting.md +2 -1
- package/package/corpus/rules/specs.csharp.md +6 -3
- package/package/corpus/rules/vertical-slices.md +5 -2
- package/package/corpus/skills/cratis-application-growth/SKILL.md +1 -2
- package/package/corpus/skills/cratis-application-growth/references/csharp.md +1 -3
- package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +1 -2
- package/package/corpus/skills/cratis-application-growth/references/rename-window.md +1 -3
- package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +3 -2
- package/package/corpus/skills/cratis-application-growth/references/stages.md +2 -2
- package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +47 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +18 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +12 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +2 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +1 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +9 -2
- package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +2 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +47 -8
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +3 -1
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +6 -3
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +38 -11
- package/package/corpus/skills/cratis-arc-declare-command/references/go.md +1 -1
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +2 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +6 -4
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +29 -7
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +9 -7
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +52 -1
- package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +4 -2
- package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +36 -10
- package/package/corpus/skills/cratis-arc-expose-query/references/go.md +2 -2
- package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +6 -3
- package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +1 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +55 -6
- package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-arc-host-application/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +54 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-deployment.md +98 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +9 -1
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +87 -4
- package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +9 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +4 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +2 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +19 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +4 -2
- package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +2 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +33 -36
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +18 -3
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +94 -19
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +29 -5
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-instant-feedback.md +81 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-localization.md +80 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-navigation.md +103 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +41 -2
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-structure.md +117 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +8 -4
- package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +27 -6
- package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +2 -2
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +23 -2
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +28 -2
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +1 -0
- package/package/corpus/skills/cratis-authproxy-configure/SKILL.md +136 -0
- package/package/corpus/skills/cratis-authproxy-configure/references/admission.md +125 -0
- package/package/corpus/skills/cratis-authproxy-configure/references/aspire.md +154 -0
- package/package/corpus/skills/cratis-authproxy-configure/references/operations.md +122 -0
- package/package/corpus/skills/cratis-authproxy-configure/references/services-and-routing.md +114 -0
- package/package/corpus/skills/cratis-authproxy-configure/references/sessions-and-logout.md +126 -0
- package/package/corpus/skills/cratis-authproxy-configure/references/sign-in-providers.md +116 -0
- package/package/corpus/skills/cratis-authproxy-configure/references/tenant-resolution.md +135 -0
- package/package/corpus/skills/cratis-choreography-run-workflow/SKILL.md +117 -0
- package/package/corpus/skills/cratis-choreography-run-workflow/references/csharp-chronicle.md +164 -0
- package/package/corpus/skills/cratis-choreography-run-workflow/references/csharp.md +354 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +11 -3
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +50 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +17 -3
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +8 -2
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +13 -2
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +12 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +2 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +10 -1
- package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +9 -2
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +35 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +1 -1
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/operations.md +70 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +6 -3
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +113 -16
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/container-and-kubernetes.md +293 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +16 -9
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +60 -7
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +124 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +36 -1
- package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +12 -0
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +15 -5
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +9 -8
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +2 -2
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +1 -1
- package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +15 -4
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +4 -1
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +5 -2
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +23 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +1 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +2 -1
- package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +3 -1
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +4 -3
- package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +3 -1
- package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +3 -1
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +41 -4
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +22 -4
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +7 -0
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +9 -1
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +8 -0
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +7 -0
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +28 -3
- package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +7 -6
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +41 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +3 -3
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/webhook-signature-wire-format.md +82 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +19 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +3 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +37 -4
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +11 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +2 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +1 -0
- package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +3 -3
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +31 -2
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +21 -4
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +20 -2
- package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +1 -1
- package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +1 -1
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +3 -0
- package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +2 -1
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +3 -1
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +10 -1
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +10 -1
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +27 -5
- package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +18 -0
- package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +21 -1
- package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +13 -0
- package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +15 -0
- package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +15 -0
- package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +16 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +1 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +4 -3
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +19 -4
- package/package/corpus/skills/cratis-code-review/SKILL.md +6 -2
- package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +28 -2
- package/package/corpus/skills/cratis-code-review/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +6 -38
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +2 -0
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +5 -4
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/workflow-inputs.md +39 -0
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +6 -8
- package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +32 -14
- package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +4 -3
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +1 -1
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +4 -2
- package/package/corpus/skills/cratis-components-choose-control/SKILL.md +13 -7
- package/package/corpus/skills/cratis-components-choose-control/references/from-primereact.md +116 -0
- package/package/corpus/skills/cratis-components-choose-control/references/menu.md +90 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +48 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +2 -2
- package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +2 -1
- package/package/corpus/skills/cratis-components-compose-toolbar/references/floating-toolbar.md +146 -0
- package/package/corpus/skills/cratis-components-diagnose-screen/SKILL.md +102 -0
- package/package/corpus/skills/cratis-components-display-list/SKILL.md +10 -10
- package/package/corpus/skills/cratis-components-display-list/references/typescript-custom-panel.md +74 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +2 -7
- package/package/corpus/skills/cratis-components-display-list/references/typescript.md +3 -2
- package/package/corpus/skills/cratis-components-submit-form/SKILL.md +6 -6
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +21 -1
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +72 -2
- package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +7 -5
- package/package/corpus/skills/cratis-components-theme-application/SKILL.md +17 -15
- package/package/corpus/skills/cratis-components-theme-application/references/localization.md +166 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +18 -14
- package/package/corpus/skills/cratis-components-theme-application/references/upgrade-from-previous-major.md +141 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +2 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-domain-philosophy.md +31 -3
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-fundamentals-helpers.md +119 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +4 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +72 -1
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +2 -1
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +3 -2
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +3 -2
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +41 -2
- package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +8 -7
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +2 -1
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +3 -3
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +8 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +3 -0
- package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +6 -4
- package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +7 -1
- package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +13 -1
- package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +6 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +6 -6
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +116 -28
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +2 -2
- package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +46 -0
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +4 -2
- package/package/corpus/skills/cratis-platform-build-application/SKILL.md +8 -0
- package/package/corpus/skills/cratis-platform-build-application/references/cratis-identity.md +71 -0
- package/package/corpus/skills/cratis-platform-build-application/references/studio-repository.md +96 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +14 -8
- package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +167 -3
- package/package/corpus/skills/cratis-platform-deliver-slice/references/eventual-consistency.md +150 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +14 -1
- package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +1 -1
- package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +8 -8
- package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +16 -2
- package/package/corpus/skills/cratis-platform-start-application/SKILL.md +21 -0
- package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +77 -3
- package/package/corpus/skills/cratis-platform-upgrade-application/SKILL.md +118 -0
- package/package/corpus/skills/cratis-platform-upgrade-application/references/csharp.md +117 -0
- package/package/corpus/skills/cratis-platform-upgrade-application/references/java.md +53 -0
- package/package/corpus/skills/cratis-platform-upgrade-application/references/kotlin.md +53 -0
- package/package/corpus/skills/cratis-platform-upgrade-application/references/typescript.md +71 -0
- package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
- package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +6 -3
- package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +34 -3
- package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +84 -3
- package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +7 -11
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +8 -4
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +2 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +29 -1
- package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +2 -1
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +1 -1
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +13 -1
- package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +1 -1
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +30 -51
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +19 -2
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/smallest-model.md +87 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/studio.md +5 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +5 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +8 -12
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/running-mcp.md +12 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +2 -2
- package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +2 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-colocated.md +101 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +4 -2
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +1 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +7 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +7 -4
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +18 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +4 -2
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +35 -2
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +2 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +4 -2
- package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +1 -1
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +10 -3
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +22 -4
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +2 -1
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +40 -0
- package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +6 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/semantic-conformance.md +64 -0
- package/package/profile-catalog.json +15 -0
- package/package.json +1 -1
package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
5
|
- Choose the upgrade shape
|
|
6
|
+
- Cross major versions
|
|
6
7
|
- Roll out a multi-node upgrade
|
|
7
8
|
- When a new node does not come up
|
|
8
9
|
- Back up and restore
|
|
@@ -38,6 +39,40 @@ Always take a restorable backup first. A starting node may migrate the storage
|
|
|
38
39
|
schema, and there is no schema downgrade: the only way back is a restore.
|
|
39
40
|
Reverting the image does not undo storage writes.
|
|
40
41
|
|
|
42
|
+
## Cross major versions
|
|
43
|
+
|
|
44
|
+
Skipping majors is allowed, but the work is every boundary in between, so
|
|
45
|
+
read each major's upgrade notes in order before starting. Compile-time changes
|
|
46
|
+
accumulate and are fixed once against the target. Stored-state changes are
|
|
47
|
+
ordered and still apply when skipped: 6 → 7 (observer keys), 10 → 11 (job
|
|
48
|
+
state) and 13 → 14 (read-model and event-type layout). Across any of them,
|
|
49
|
+
take a backup you have restored from at least once, and rehearse the whole
|
|
50
|
+
path on a copy of production data, not on an empty database.
|
|
51
|
+
|
|
52
|
+
- Crossing 10 → 11 leaves in-flight job state unreliable. Let jobs whose
|
|
53
|
+
completion matters finish first.
|
|
54
|
+
- A major can break the .NET client's binary interface while changing
|
|
55
|
+
nothing on the wire or in storage. Rebuild every .NET assembly that
|
|
56
|
+
references the client against the target release, even when its source
|
|
57
|
+
compiles unchanged. The rebuild can be the first time Chronicle's code
|
|
58
|
+
analysis rules run in the build; fix what they report.
|
|
59
|
+
- A major can change the cluster so that the target cannot share a cluster
|
|
60
|
+
with the running release. Then stop every node and start them all on the
|
|
61
|
+
target together; never roll nodes one at a time across such a boundary.
|
|
62
|
+
Clients, their wire contract and stored data are unaffected by that alone.
|
|
63
|
+
- Do not land on 14.0.0 or 17.0.0. If your target is major 14 or 17, use
|
|
64
|
+
14.0.1 or 17.0.1; they are not stops you must make on the way past.
|
|
65
|
+
- Compatibility runs one way and only within a major: the release gate checks
|
|
66
|
+
each kernel's wire contract against the first stable release of every
|
|
67
|
+
earlier minor of its major. It compares contracts; it does not run old
|
|
68
|
+
clients. A newer client against an older kernel is not checked, so upgrade
|
|
69
|
+
the kernel first or with its clients. Excluded releases are not covered: 16.x before
|
|
70
|
+
16.45.0, 17.0.0 and 18.4.0. Across a major there is no guarantee. One
|
|
71
|
+
boundary was documented as compatible (8 → 9), but do not rely on that:
|
|
72
|
+
upgrade the kernel and its clients together across a major. 16 → 17 and
|
|
73
|
+
17 → 18 change the wire contract. The TypeScript client has its own version
|
|
74
|
+
line, so test it against the kernel version you run.
|
|
75
|
+
|
|
41
76
|
## Roll out a multi-node upgrade
|
|
42
77
|
|
|
43
78
|
1. Confirm the releases can share a cluster (above); otherwise stop every node
|
|
@@ -76,7 +111,7 @@ migrated on first access, while the cluster is serving.
|
|
|
76
111
|
| `DatabaseMigrationIncomplete` | An object already exists but migrations are still pending | Restart once. If it repeats, repair the schema from a backup and verified evidence; do not delete migration history |
|
|
77
112
|
| A startup step reports exhausted retries | The node could not reach its siblings | Check the silo and gateway ports between nodes and that no other node is restarting |
|
|
78
113
|
| A startup step reports an incompatible release, or `Unable to resolve type alias` | Old and new versions cannot share a cluster | Roll the new node back, stop every node, then start the new version |
|
|
79
|
-
| Live but never ready on a single node | Another kernel holds the single-writer lease on the same storage | Stop the other kernel; do not run two single-node kernels on one store |
|
|
114
|
+
| Live but never ready on a single node | Another kernel holds the single-writer lease on the same storage | Stop the other kernel; do not run two single-node kernels on one store. If the platform starts the replacement before stopping the old instance, enable lease standby ([Start-before-stop rollouts](configuration.md#start-before-stop-rollouts-of-a-single-node)) |
|
|
80
115
|
|
|
81
116
|
## Back up and restore
|
|
82
117
|
|
|
@@ -30,6 +30,18 @@ Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Nod
|
|
|
30
30
|
- **Combine:** join ordered source properties with a separator into one target; prove a split in the other direction preserves the required meaning.
|
|
31
31
|
- **Directional value map:** translate serialized values with ordered source/target pairs. First match wins; unmapped values pass through. Missing source is not explicit null.
|
|
32
32
|
- **Bidirectional value map:** declare previous/current pairs once when reversing the same table is correct; many-to-one matches cannot restore the original distinction.
|
|
33
|
+
- **Enum members:** registration compares the values an enum declares in the schema, never the member names. Adding a value or renaming a member is accepted in the existing generation; so is removing a name whose value stays declared, such as an alias. Acceptance says nothing about deployed readers: a reader built before the change can fail on a value or name it does not know (the JVM client's decoder throws on an unknown ordinal or name). Test new values and renamed labels against the deployed readers before emitting them; when readers cannot be upgraded first, add a generation with a truthful downcast instead. Dropping a value the stored schema declares is breaking: add a generation, with a value map when the stored value must become another one. Changing which value a member has changes what stored events mean: add a generation with a value map. Only the set of values is compared, so a change that keeps or grows the set is accepted even when stored events silently change meaning. Where the schema carries the numbers you declare (C#), give every member an explicit number and never reuse one; with implicit numbers never reorder members or insert one between existing ones. Where the schema carries the declaration position (the JVM client uses the ordinal, whatever constructor values say), explicit values do not help: append new constants and never reorder, insert among or remove existing ones. In other SDKs inspect the submitted schema before relying on either rule. A non-nullable enum property added in place to an existing generation reads in .NET as the type default `0` for older events, even when no member is `0`. Prefer a new generation whose upcast supplies a truthful default; define a `0` member only when "unknown" is true of those events; a nullable property is the deliberate CHR0012 opt-in described in `references/csharp.md`, not the default path.
|
|
34
|
+
- **Why registration accepted or rejected a changed generation:** the kernel compares each submitted generation with the stored schema of the same generation; a generation that is not stored yet is not compared. The read-only check reports the worst class among the compared generations, so a registration that adds a new generation beside an unchanged one reports identical and still adds that generation. A rejection for an incomplete migration chain, an invalid migration property or an unreadable registration carries no class.
|
|
35
|
+
|
|
36
|
+
| Class | Difference from the stored schema | Outcome |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| Identical | None, or annotation keywords only, such as titles and descriptions | Accepted; no change to the compared schemas |
|
|
39
|
+
| Tolerated | A `?` marker on a `format` (not a change of the JSON `type`), a full declaration for a property the other side declared with only a default (the default must stay the same and the declaration must include a `type`; a constraint keyword outside the supported set makes it breaking), protection metadata added or its free-text details changed, enum values added or enum names changed | Accepted in every store |
|
|
40
|
+
| Additive | Properties that older payloads can omit were added (not required, or required with a `type` that includes `"null"`; a `?` on the `format` alone does not qualify; also inside existing objects); the rest differs by tolerated differences at most | Accepted in place when both the stored and the submitted event type are client-owned and the event store is not listed in the kernel's `strictEventTypeSchemaEventStores`; otherwise it needs a new generation |
|
|
41
|
+
| Subset | The submitted schema lacks properties the stored one has and old payloads could omit (optional, nullable, or required with a stored default): an older application version, or a property deleted from the type | Accepted under the same conditions as additive; the stored schema keeps those properties, so deleting a property from the type does not remove it |
|
|
42
|
+
| Breaking | Anything else: a property renamed or retyped, a required non-nullable property added, protection metadata removed or changed, an enum value removed | Rejected; add a generation with a migration |
|
|
43
|
+
|
|
44
|
+
The class describes the schemas, not the decision: an additive change is still reported as additive in a strict store that rejects it. An accepted additive change replaces the registered schema and is recorded as an `EventTypeSchemaEvolved` system event and a kernel log entry; it creates no generation, rewrites no stored event and starts no backfill. Adding protection to an existing property is accepted but does not protect events already stored. The release gate prints accepted or rejected, not the class; a rejection shows its path and keyword only when the kernel supplies them, and any returned rejection fails the check; it is undetermined when nothing was rejected but the kernel did not answer for every event type. The strict list is described in `cratis-chronicle-deploy-kernel` (`references/kernel-options.md`).
|
|
33
45
|
- **Generation validation:** enable additional registration checks where available to catch incomplete chains; also test mapping semantics against fixtures.
|
|
34
46
|
- **Generation delivery:** compatibility delivery (the default) is not a pin: a reader gets the appended generation live and the highest stored one on replay. Request pinned delivery when a reader needs one declared generation per event type. Pin scopes are separate opt-ins: client-wide for reactors, reducers and typed materialized projections; per observer; per event-store subscription; per webhook. The client-wide setting does not pin subscriptions, webhooks, or immediate, passive or wildcard projections. Upgrade every kernel node before opting in.
|
|
35
47
|
- **Pinned delivery behaviour:** live, catch-up, replay and retry all deliver the pinned generation. One reader pins one generation per event type; registration rejects conflicting or unregistered pins. A typed projection pins per clause, including joins, children, keys and removals. If the pinned representation is not stored, delivery migrates it for that delivery only, without storing a copy or supplying a durable hash. An unregistered or unreachable pin fails with `PinnedEventTypeGenerationUnavailable` rather than substituting another shape. Changing a pin or delivery mode does not trigger replay; request one when prior state must be rebuilt.
|
|
@@ -41,7 +41,7 @@ Do not combine the historical marker with `[EventType]`. For a third shape, poin
|
|
|
41
41
|
- Each directional operation takes the **target first**. Unchanged paths pass through; use an empty override body if nothing changes in that direction. `RenamedFrom` reads a source property, including a nested selector such as `s => s.Address.Zone`. Paths follow serialized member names, including `[JsonPropertyName]` overrides.
|
|
42
42
|
- `Split` takes a separator and zero-based part; `PropertySeparator.Space` is available for a single space. An integer such as `2` selects the third part. `Combine` joins sources in argument order. Reject or explicitly account for historic data with missing, extra or embedded separators.
|
|
43
43
|
- `DefaultValue` writes a constant, not a computed value or a schema default. For a new member of every existing collection element, use `p.DefaultValue(t => t.Stops.Select(stop => stop.Mode), "rail")` with `System.Linq`. Do not use a null constant: the builder inspects the value's runtime type. Test the serialized form of concepts and complex literals.
|
|
44
|
-
- For different forward and reverse tables, replace the paired `MapValues` override with directional calls inside `Properties`: `p.MapValues(t => t.State, s => s.State, m => m.Map("Q", "queued"))` on upcast, and `p.MapValues(t => t.State, s => s.State, m => m.Map("queued", "Q"))` on downcast. In a paired table, `For` takes current then previous selectors but `Map` takes previous then current values. First match wins; unmapped values pass through. Test absent separately from explicit null. Many-to-one pairs cannot recover the original value on reverse lookup.
|
|
44
|
+
- For different forward and reverse tables, replace the paired `MapValues` override with directional calls inside `Properties`: `p.MapValues(t => t.State, s => s.State, m => m.Map("Q", "queued"))` on upcast, and `p.MapValues(t => t.State, s => s.State, m => m.Map("queued", "Q"))` on downcast. In a paired table, `For` takes current then previous selectors but `Map` takes previous then current values. First match wins; unmapped values pass through. Test absent separately from explicit null. Many-to-one pairs cannot recover the original value on reverse lookup: the first pair declared for a current value supplies the previous value. Map the literal JSON value the migration reads. Enum values in a map are always written as their underlying numbers, which matches payloads under the default client serializer, so pass enum members. Keep enum properties of migrated events on that numeric serialization: if names are stored as strings, the migration sees names in some paths and numbers in others, because Chronicle converts recognized names to numbers for integer-enum properties during pinned delivery migration and for protected (for example PII) values.
|
|
45
45
|
|
|
46
46
|
## Register and validate
|
|
47
47
|
|
|
@@ -73,7 +73,7 @@ For this variant change the migration class header to `public class ParcelRoutin
|
|
|
73
73
|
- Upcast `("west/42", "express", "Q")` and assert `("west", "42", "express", "queued", "rail")`; append that current payload and assert the old reader sees the original three values. Keep constraints on their corresponding paths. For personal data, retain `[property: PII]` (`Cratis.Chronicle.Compliance.GDPR`) on both old and renamed record parameters. Test release for the original subject, not just equality of unprotected fields.
|
|
74
74
|
- Registration starts add-only historical backfill in the default namespace's event log. Check an old stored event there, and inventory other namespaces and sequences separately. Reading a transiently derived representation does not prove it was persisted.
|
|
75
75
|
- Compatibility delivery (default) is not a pin. Set `options.EventGenerationDelivery = EventGenerationDelivery.Pinned` (`Cratis.Chronicle.Observation`) for pinned delivery. Declare exactly one generation per event ID for that observer: a pinned reactor, reducer, projection or subscription that names two generations of one ID is refused with `MultipleGenerationsOfEventTypeInObserver`. To consume two generations, use two observers. For explicit event-store subscriptions use `subscription.WithGenerationDelivery(EventGenerationDelivery.Pinned).WithEventType("parcel-routed", 1)`; webhook definition builders also accept `WithGenerationDelivery`. Verify the actual generation and business values on live and catch-up delivery.
|
|
76
|
-
- The client-wide option pins reactors, reducers and typed materialized projections; a projection pins the generation each `From`, join, child, key and removal clause names, one generation per event ID across all clauses. It does not pin subscriptions, webhooks, or immediate, passive or wildcard projections. In a handler, `EventContext.EventType.Generation` is the delivered generation and `EventContext.AppendedGeneration` the original one (null when unknown). A pin that is unregistered or unreachable by migration fails with `PinnedEventTypeGenerationUnavailable`. Changing a pin or delivery mode does not replay; request a replay to rebuild prior state.
|
|
76
|
+
- The client-wide option pins reactors, reducers and typed materialized projections; a projection pins the generation each `From`, join, child, key and removal clause names, one generation per event ID across all clauses. It does not pin subscriptions, webhooks, or immediate, passive or wildcard projections. In a handler, `EventContext.EventType.Generation` is the delivered generation and `EventContext.AppendedGeneration` the original one (null when unknown). A delivery migrated to the pin at delivery time has `EventContext.Hash == EventHash.NotSet` (`Cratis.Chronicle.Events`). This happens when the pinned generation is not stored yet, or when a revised event's latest revision is at another generation, even if the original pinned representation is stored. Otherwise the delivery carries the hash stored for the selected representation, if one was recorded. Do not deduplicate retries on the hash. For reactor side-effect receipts, declare a `ReactorDelivery` handler parameter (`Cratis.Chronicle.Reactors`) and key on its `Id`; it is the same on retry and replay, so do not use that receipt to skip rebuilding state. A revision keeps the sequence number and requests a replay only for affected observers marked replayable. A pin that is unregistered or unreachable by migration fails with `PinnedEventTypeGenerationUnavailable`. Changing a pin or delivery mode does not replay; request a replay to rebuild prior state.
|
|
77
77
|
- The kernel checks pins again when a client observer, subscription or webhook is registered, and refuses it with: `ObserverPinsMultipleGenerationsOfEventType` (two generations of one ID; use two observers), `EventTypeGenerationNotRegisteredForObserver` (the exact pinned generation is not registered; register the generation and its migration first) or `EventGenerationDeliveryNotSupported` (pinned delivery asked of an observer that cannot provide it, such as a projection over all events or a graph projection; use compatibility delivery there).
|
|
78
78
|
- A pinned event store subscription must name at least one pin, or it is refused with `EventStoreSubscriptionHasNoGenerationPins`, and each pinned generation must be registered in both the source and the target store. If a generation becomes unavailable during delivery, the failure is `EventStoreSubscriptionGenerationUnavailable` and the partition is parked: register the generation in both stores, then retry the partition.
|
|
79
79
|
- `ReactorScenario` and `ReadModelScenario` exercise the handler with the type you feed them; they do not emulate kernel generation selection, migration or protected-value release. Prove pinned delivery with a real client against a kernel.
|
|
@@ -17,7 +17,7 @@ For authorized recovery, use the client reference if it covers the operation; ot
|
|
|
17
17
|
1. Start from the accepted event: record store, namespace, sequence, actual position, event type and source ID. Identify the expected observer and its partition key; do not assume that every observer partitions by source ID.
|
|
18
18
|
2. List registrations in that store and namespace. Match the observer ID **and sequence**. A successful list without the observer calls for checking scope and registration, not waiting for catch-up. A failed read does not establish absence.
|
|
19
19
|
3. Compare its **last handled** actual position to the accepted position. Ignore reserved positions, not zero. A smaller position can indicate lag; confirm the observer handles this event type. A position at or beyond the write does not establish that this partition succeeded.
|
|
20
|
-
4. Read failed partitions for that observer and match the partition. Check the attempt position and time
|
|
20
|
+
4. Read failed partitions for that observer and match the partition. Check the attempt position and time. A returned record is usually unresolved, but honor a reported resolved flag. It is usually a failure; a deferred partition (such as a webhook waiting out its target) can have no failed attempt. Chronicle normally deletes the record once the partition recovers or the observer is fast-forwarded past it, so there is no resolved history to read. An empty result means only that this lookup found no matching record, not recovery or delivery.
|
|
21
21
|
5. Report scope, observer, running state, actual positions, partition and last relevant failure category without payloads, raw messages or stacks. If progress has reached the event without a matching failure, verify the expected persisted result or external effect separately. Stop before changing state.
|
|
22
22
|
|
|
23
23
|
## Inspection catalog
|
|
@@ -28,18 +28,28 @@ For authorized recovery, use the client reference if it covers the operation; ot
|
|
|
28
28
|
- **Running state** distinguishes active, suspended, replaying, disconnected, quarantined and unknown; use the state-change time when available to correlate a transition with the incident.
|
|
29
29
|
- **Last handled, next expected and sequence tail** answer different questions: compare actual positions only within the same sequence. The next position is not a completed delivery.
|
|
30
30
|
- **Lag measurement**, where the SDK offers it, reports tail minus last handled per observer; it summarises the same positions and is no substitute for the partition check.
|
|
31
|
-
- **Handled count**
|
|
31
|
+
- **Handled count** is an approximate diagnostic, not bookkeeping: it can lag or drift from the events actually handled and can over-count after an ambiguous storage acknowledgement. The server never uses it to decide delivery, catch-up or replay; those use sequence positions. Never use it for billing or as proof of completion or delivery: judge progress from positions and failed partitions, and count business outcomes from records the application writes. **Replayability** describes policy, not whether a replay has run.
|
|
32
32
|
- **Observer-scoped failures** identify affected partitions; list failures across the namespace only to investigate an incident spanning observers.
|
|
33
|
-
- **Failure record ID, observer ID and partition** identify a failure
|
|
33
|
+
- **Failure record ID, observer ID and partition** identify a partition record: a failure or a deferral. Deferring adds no attempt, but earlier attempts remain. A reported resolved flag means the record is no longer outstanding. Partition quarantine is a separate flag; an unavailable flag does not mean false.
|
|
34
34
|
- **Attempt history** gives time, sequence position, messages and stack for private diagnosis. Where classified, handling means subscriber rejection, timeout means no timely reply, disconnected means no subscriber at delivery, and unknown supplies no cause.
|
|
35
35
|
- **Registration wait**, on the process that registers the observer, tells whether its definitions reached the server; it does not show that the observer is subscribed or caught up.
|
|
36
36
|
- **Append-completion wait**, for a write already accepted, asks the server to wait within a time budget until observers on the write's sequence reach its position or record a failed partition. The SDKs differ in what it needs (the original append result or a known accepted position), whether it narrows to the appended event types, and whether a timeout returns outstanding observers or only an error: check Append-completion wait in your language reference before relying on it. Success is also reported when no observer matches, so it proves neither registration nor handling by the expected observer; a reported failed partition can predate this write; a timeout without a recorded failure is inconclusive. Never append again to obtain a result.
|
|
37
37
|
- **Webhook definitions** show a webhook's sequence, event types, active flag and replay policy; they are store-wide definitions, not live subscriptions or delivery evidence.
|
|
38
|
-
- **Job list, individual job and steps** distinguish an actual catch-up or rebuild from a recommendation; a missing job is not proof of completion. The job's type names the operation: `CatchUpObserver` (an observer behind its sequence catching up), `ReplayObserver` (a full rebuild), `ReplayObserverPartition` (one partition rebuilt) and `RetryFailedPartition` (a failed partition retried). Jobs are scoped to an event store and namespace. Read status together with progress (total, successful, failed and stopped steps): a job has concluded only as `CompletedSuccessfully`, `CompletedWithFailures` or `Failed`, and the second still needs investigation; `Stopped` is paused and can be resumed.
|
|
38
|
+
- **Job list, individual job and steps** distinguish an actual catch-up or rebuild from a recommendation; a missing job is not proof of completion. The job's type names the operation: `CatchUpObserver` (an observer behind its sequence catching up), `ReplayObserver` (a full rebuild), `ReplayObserverPartition` (one partition rebuilt) and `RetryFailedPartition` (a failed partition retried). `CatchUpObserverPartition` catches up one partition that is behind, and `ObserverOperatorCommandJob` hands an operator's command (retry, replay, fast-forward, quarantine clearance) to the observer. For a full replay it stays open until the replay job is no longer outstanding, which still does not show that the replay succeeded: read the `ReplayObserver` job. For the other commands only its successful completion means the observer took the command, not that the work it started is done; a job that concluded with failures or failed does not show the command was taken. The other types are not observer work: `ReindexConstraints` (a constraint index rebuild), `BackfillEventTypeGenerations` and `MigrateExistingEventsForType` (stored events brought in line with a changed event type), `CopyEventSourceEvents` (one event source's events copied to another in the same sequence) and `ImportEvents` (an import validated and committed). Jobs are scoped to an event store and namespace. Read status together with progress (total, successful, failed and stopped steps): a job has concluded only as `CompletedSuccessfully`, `CompletedWithFailures` or `Failed`, and the second still needs investigation; `Stopped` is paused and can be resumed.
|
|
39
39
|
- **Open alert incidents**, where the SDK or the kernel's query API offers them, show what the kernel currently holds open for an observer: conditions such as a partition that keeps failing (`partition-failing`), one whose retries are exhausted (`partition-retries-exhausted`) or a quarantined observer (`observer-quarantined`), each with a severity. Always name the affected event store. Read the view's status first: only `Ready` makes an empty result mean no open incidents; `CatchingUp` and `Degraded` results can be partial or stale. Incidents describe current state, not a history of every failure, and the kernel sends no notification itself.
|
|
40
40
|
- **Workbench** provides the read-only alternative: select the store and namespace, inspect Observers and Failed partitions, then correlate the position in Sequences. From a terminal, `cratis-chronicle-cli-operations` covers the same reads (`failed-partitions list` and `failed-partitions show`); through an MCP connection, `cratis-chronicle-mcp-inspection` does (`list_observers`, `diagnose_observer`).
|
|
41
41
|
- **Local attempt summary**: with Node available, run `node scripts/summarize-failure.mjs <attempts.json>` from the skill directory on a JSON array of attempts with `sequenceNumber` and `kind`; use the emitted position/category pairs only on success.
|
|
42
42
|
|
|
43
|
+
## Retry budget and quarantine
|
|
44
|
+
|
|
45
|
+
Default: Chronicle retries a failed partition on its own, backing off exponentially between attempts. When the attempt limit is used up it quarantines **that partition**: its automatic retries stop. Live delivery can continue for other partitions, but a new failure during a projection's catch-up stops that catch-up, which runs as one ordered step. The limit is 10 retries unless the kernel configures another, globally or for one observer: for a partition stuck on one event, the eleventh failure quarantines it. `0` removes only this cap; other quarantine causes still apply. Option names and defaults are in `cratis-chronicle-deploy-kernel`, `references/kernel-options.md`. Webhook delivery has its own retry settings.
|
|
46
|
+
|
|
47
|
+
- **The limit counts per retry budget.** An attempt that fails at a later event than the previous one made progress and starts a new budget; so does clearing the partition's quarantine. A partition that keeps advancing therefore does not use up the limit, however many failures it records, though it can still be quarantined for another reason; one stuck on the same event uses the limit up, unless the limit is `0`. Raising the limit does not get a partition past an event its handler cannot process: fix the handler.
|
|
48
|
+
- **Attempt history outlives a budget.** Starting a new budget keeps earlier attempts, so the number of recorded attempts can exceed the limit without the partition being quarantined. The history is not complete, though: once enough attempts from earlier budgets have built up, the oldest are trimmed. Judge by the quarantine flag and by whether the attempt positions move.
|
|
49
|
+
- **Many failed partitions do not stop the observer by default, webhooks excepted.** For reactors, reducers and projections, observer-level quarantine by number or share of failed partitions happens only when the kernel configures a threshold; both are off unless set. Where a threshold is set, a partition whose last attempt is a timeout does not count toward it. Never assume this safety net exists: read the failed partitions. Webhooks have thresholds by default (5 partitions, or half of the partitions with a failure record) and count quarantined partitions, timeouts included. That share is measured against the partitions currently failed plus the resolved ones the kernel still retains, not every partition delivered to, so a single quarantined partition can trip it even after many healthy deliveries.
|
|
50
|
+
- **Observer quarantine and partition quarantine are separate fences.** Clearing one does not clear the other.
|
|
51
|
+
- **Edge case, unknown recovery position:** a quarantined partition whose failure explanation says it has no recovery position (left when the kernel refuses a partition replay job stored by an older kernel) must not simply be cleared. Keep it quarantined while an operator reconciles the stored model with the event history and establishes a safe position; neither zero nor the observer's shared position is a safe guess. Clearing quarantine neither repairs the model nor chooses a position.
|
|
52
|
+
|
|
43
53
|
## When the definition changed
|
|
44
54
|
|
|
45
55
|
Compare the deployed definition to the stored one before interpreting old read models. For projections and reducers, `observers.definitionEvolution` determines what happens to history:
|
|
@@ -54,4 +64,4 @@ Global projections receive a recommendation rather than an automatic rebuild. Fo
|
|
|
54
64
|
|
|
55
65
|
Retry, quarantine clearance, replay, fast-forward, failure deletion, observer removal and job changes are **not inspection**. Fast-forward skips work; retry or replay may repeat effects. Hand the evidence to the operator before choosing a repair.
|
|
56
66
|
|
|
57
|
-
Inspect any returned outcome: a call that completes is not a repair that happened. Stopping
|
|
67
|
+
Inspect any returned outcome: a call that completes is not a repair that happened. Stopping a job is refused when the job is not found, has failed or completed, is not running or could not be saved; a resume is refused only as not taken forward, and resuming a completed job whose record is still kept reports acceptance; the delete command refuses completed and failed jobs, but retention cleanup can still remove them. Observer removal applies to the whole event store, not one namespace. A reactor or reducer is refused while it runs or has a subscribed client in any namespace. A projection is refused while it is kernel-owned or a connected client is tracked as declaring it; an active kernel subscription alone does not block it, and older clients that send no connection identifier are not tracked. Removal deletes the observer's bookkeeping and leaves read-model data in place. Removal is not a reset: an observer registered again afterwards is treated as new and follows its initial-position policy, usually the beginning, but the tail for a reactor configured to start at the tail.
|
|
@@ -27,7 +27,7 @@ var activity = (row.Type, row.RunningState, row.RunningStateChangedAt, row.Handl
|
|
|
27
27
|
|
|
28
28
|
Don't turn a failed read into an empty list. On the registering host, `await eventStore.WaitForRegistration()` (`Cratis.Chronicle.Registrations`) waits for the local registration run: inspect its `IsSuccess`, `Failure` and `Failures` rather than treating a wait timeout as an artifact failure.
|
|
29
29
|
|
|
30
|
-
`RunningState` is `Active`, `Suspended`, `Replaying`, `Disconnected`, `Quarantined` or `Unknown`; a null transition time means unavailable. `HandledEventCount`
|
|
30
|
+
`RunningState` is `Active`, `Suspended`, `Replaying`, `Disconnected`, `Quarantined` or `Unknown`; a null transition time means unavailable. `HandledEventCount` is approximate (it can lag, drift or over-count); never bill from it or use it to prove completion. `next` is expected, not handled. Check `IsActualValue` before displaying or comparing any position: zero is real; `BeforeFirst`, `Max` and `Unavailable` are not. Even `behind == false` does not prove partition success.
|
|
31
31
|
|
|
32
32
|
## Inspect subscription and tail
|
|
33
33
|
|
|
@@ -53,7 +53,7 @@ var failures = await eventStore.FailedPartitions.GetFailedPartitionsFor(row.Id);
|
|
|
53
53
|
foreach (var failure in failures.Where(f => f.Partition.Value == key))
|
|
54
54
|
{
|
|
55
55
|
var identity = (failure.Id, failure.ObserverId, failure.Partition);
|
|
56
|
-
var
|
|
56
|
+
var quarantined = failure.IsQuarantined; // null = unknown
|
|
57
57
|
foreach (var attempt in failure.Attempts.OrderBy(a => a.Occurred))
|
|
58
58
|
{
|
|
59
59
|
var evidence = (attempt.Occurred, attempt.SequenceNumber, attempt.Kind);
|
|
@@ -62,14 +62,14 @@ foreach (var failure in failures.Where(f => f.Partition.Value == key))
|
|
|
62
62
|
}
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
`IsResolved`
|
|
65
|
+
A returned record is usually unresolved; if `IsResolved` is true, treat it as resolved. It is usually a failure, but a deferred partition (such as a webhook waiting out its target) can have empty `Attempts` or keep earlier ones. Chronicle normally deletes a record when the partition recovers or the observer is fast-forwarded past it; absence means only that the lookup found no match, not recovery. `IsQuarantined` can be null (unknown). A different partition or attempt position does not identify this write. `Kind` is `Handling`, `Timeout`, `Disconnected` or `Unknown` (default); don't infer rejection from a timeout. With no matching failure, verify the persisted result or external effect independently.
|
|
66
66
|
|
|
67
67
|
- For a cross-observer incident use `await eventStore.FailedPartitions.GetAllFailedPartitions()` in this namespace. For a known reactor or reducer use its collection's `GetFailedPartitionsFor<T>()` or `GetFailedPartitionsFor(typeof(T))`.
|
|
68
68
|
- For projections use `eventStore.Projections.GetFailedPartitionsFor<StockListingProjection>()` or `GetFailedPartitionsForModel<StockListing>()`; the latter accepts a runtime model `Type` too. `GetFailedPartitionsFor(Type)` accepts either projection or model type.
|
|
69
69
|
|
|
70
70
|
## Append-completion wait
|
|
71
71
|
|
|
72
|
-
Only the original accepted append result can wait: `var completion = await result.WaitForCompletion();` (`Cratis.Chronicle.Observation`) waits for observers
|
|
72
|
+
Only the original accepted append result can wait: `var completion = await result.WaitForCompletion();` (`Cratis.Chronicle.Observation`) waits for the observers that handle the appended event types and the observers subscribed to all events, reactors included, each through the last event in the append that it handles. An observer whose tag, event source type or event stream type filters exclude the whole append does not hold the wait, but only when the server can verify that: the observer is subscribed and the append covers a bounded range. Otherwise, as for a disconnected observer or an append range it cannot bound, the server waits through the last appended event of the observer's event types even if its filters exclude that event, so a filtered observer can hold the wait until the timeout. A kernel-owned reactor that is not subscribed in the namespace is skipped, not waited for. The wait lasts until the slowest of those observers has caught up or the time budget runs out: a reactor making a slow external call delays the caller. An observer with a failed partition is not waited for; its failure is returned without it catching up. Inspect `IsSuccess`, `TimedOut`, `OutstandingObservers` and `FailedPartitions`; timeout with no recorded failure is inconclusive. Both completion and registration waits accept a `TimeSpan`; the default is five seconds unless overridden by `CHRONICLE_TEST_TIMEOUT_SECONDS`, or infinite with a debugger attached.
|
|
73
73
|
|
|
74
74
|
## Check a reported replay or catch-up
|
|
75
75
|
|
|
@@ -91,13 +91,14 @@ These are not inspection. Run one only on an explicit, authorized request, after
|
|
|
91
91
|
|
|
92
92
|
| Call | Result to check |
|
|
93
93
|
| --- | --- |
|
|
94
|
-
| `await eventStore.Jobs.Stop(jobId)`
|
|
94
|
+
| `await eventStore.Jobs.Stop(jobId)` | `JobCommandResult`: `Accepted`, otherwise `Refusal` is `NotFound` (also reported for a `Failed` job), `JobIsCompleted`, `JobIsNotRunning` or `CouldNotPersist`. Accepted is not finished |
|
|
95
|
+
| `await eventStore.Jobs.Resume(jobId)` | `JobCommandResult`: `Accepted`, otherwise `Refusal` is always `NotResumed`, including for a missing or `Failed` job. Resuming a completed job reports `Accepted` while its record is still kept, so read its status before reporting it resumed |
|
|
95
96
|
| `await eventStore.Jobs.Delete(jobId)` | Nothing; a later `GetJob` returning null does not tell success from cleanup |
|
|
96
97
|
| `await eventStore.Observers.Remove(observerId)` | `ObserverRemovalResult`: `IsRemoved`, otherwise `Outcome` is `ObserverNotFound`, `ObserverActive` or `ObserverSubscribed`, and `BlockingNamespace` names where |
|
|
97
98
|
|
|
98
99
|
- **Job status** is `PreparingJob`, `PreparingSteps`, `StartingSteps`, `Running`, `CompletedSuccessfully`, `CompletedWithFailures`, `Stopped`, `Failed` or `Removing`.
|
|
99
|
-
- **Waiting for a job** (`Cratis.Chronicle.Jobs`): `await eventStore.Jobs.
|
|
100
|
-
- **Removing an observer** is for one whose declaring code is gone and that stays `Disconnected`. It covers every namespace of the store
|
|
100
|
+
- **Waiting for a job** (`Cratis.Chronicle.Jobs`): both waits act only on what each poll of the job list returns, and a failed job-storage read can come back as an empty list. `await eventStore.Jobs.WaitTillJobCompletesOrIsDeleted(jobId, timeout)` returns the job once a poll sees it `CompletedSuccessfully`, `CompletedWithFailures` or `Failed`, or `null` once a poll does not find it. `null` means not found, not successful: a job that succeeds is normally removed (replay included), a deleted job is gone, and a `RetryFailedPartition` job that ends `CompletedWithFailures` is removed too (one that ends `Failed` is kept until cleanup). Confirm with the observer's state and failed partitions. A stopped job does not end the wait. Don't use `WaitTillJobProgressCompleted`: it waits for the job's progress to report completed, not for a final status, and times out when the job is already gone. `WaitForJobsToDrainSuccessfully(timeout)` returns once a poll finds no jobs and throws `JobFailedWhileWaiting` (with the `Job`) when a poll sees one `Failed` or `CompletedWithFailures`; a job removed between polls goes unseen, so a drain is not proof of success or that no jobs remain. The default timeout is the same as for the append-completion wait. The timeout cancels only the delay between polls: an expired wait throws `TaskCanceledException` and is inconclusive, and a poll already in progress can still return a result after the deadline.
|
|
101
|
+
- **Removing an observer** is for one whose declaring code is gone and that stays `Disconnected`. It covers every namespace of the store. A reactor or reducer is refused while it runs or has a subscribed client in any namespace; a projection is refused while a connected client is tracked as declaring it, not merely because its kernel subscription is active. Stop the declaring application first. Read model data and sink storage are left untouched.
|
|
101
102
|
- Retry, quarantine clearance, replay and fast-forward for a reactor are in `cratis-chronicle-react-to-fact`.
|
|
102
103
|
|
|
103
104
|
## Not supported in this SDK
|
|
@@ -122,7 +123,7 @@ public static class Recovery
|
|
|
122
123
|
}
|
|
123
124
|
```
|
|
124
125
|
|
|
125
|
-
`Started` means recovery started; `Accepted` means a job was accepted. Neither proves completion. `PartitionNotFound` means no matching failure; `ObserverQuarantined` and `PartitionQuarantined` identify different fences. Treat `Unknown` and unrecognized values as inconclusive. Re-read `await store.Reactors.GetFailedPartitionsFor<T>()
|
|
126
|
+
`Started` means recovery started; `Accepted` means a job was accepted. Neither proves completion. `PartitionNotFound` means no matching failure; `ObserverQuarantined` and `PartitionQuarantined` identify different fences. Treat `Unknown` and unrecognized values as inconclusive. Re-read `await store.Reactors.GetFailedPartitionsFor<T>()`. A record for the `Partition` with `IsResolved` false means it is still unresolved: inspect `IsQuarantined` and `Attempts`. Absence only means the record is gone; fast-forward also deletes it without delivering anything. Verify the partition's persisted result or external effect before reporting recovery.
|
|
126
127
|
|
|
127
128
|
With explicit authorization, `await store.Reactors.ClearFailedPartitionQuarantineFor<T>(partition, retryImmediately: false)` requests clearance of only the partition fence, without an immediate retry; automatic retries then resume on the normal retry schedule. The default also requests an immediate retry. Read `Outcome` (`Cleared`, `NotFound`, `NotQuarantined`, `Accepted`, `Unknown`); `Accepted` does not confirm clearance. Examine `RetryOutcome` only for `Cleared` when an immediate retry was requested; it does not prove recovery completed. These extensions require an `IReactors` implementation supporting `IReactorPartitionRecovery`.
|
|
128
129
|
|
|
@@ -62,7 +62,7 @@ failures, err := obs.FailedPartitions(ctx, id)
|
|
|
62
62
|
if err != nil { return err }
|
|
63
63
|
for _, f := range failures {
|
|
64
64
|
if f.Observer() != id || f.Partition() != partition { continue }
|
|
65
|
-
fmt.Printf("record=%s resolved=%t
|
|
65
|
+
fmt.Printf("record=%s resolved=%t reportedQuarantined=%t\n", f.ID(), f.IsResolved(), f.IsQuarantined())
|
|
66
66
|
for _, a := range f.Attempts() {
|
|
67
67
|
if p := a.Position(); p.IsActualValue() {
|
|
68
68
|
fmt.Printf("position=%d at=%v kind=%d\n", p, a.Occurred(), a.Kind())
|
|
@@ -71,7 +71,7 @@ for _, f := range failures {
|
|
|
71
71
|
}
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
Attempts retain server order. Correlate their times and positions with the write, including earlier failures blocking the partition. `HandlingFailure`, `TimeoutFailure`, `DisconnectedFailure` and `UnknownFailure` distinguish handler error, timeout, disconnect and unspecified cause; preserve unrecognized numeric kinds. Reserve `a.Messages()` and `a.StackTrace()` for private diagnosis. Clearing quarantine does not imply resolution; resolved
|
|
74
|
+
Attempts retain server order. Correlate their times and positions with the write, including earlier failures blocking the partition. `HandlingFailure`, `TimeoutFailure`, `DisconnectedFailure` and `UnknownFailure` distinguish handler error, timeout, disconnect and unspecified cause; preserve unrecognized numeric kinds. Reserve `a.Messages()` and `a.StackTrace()` for private diagnosis. Clearing quarantine does not imply resolution. `IsQuarantined()` returns `false` both when the partition is not quarantined and when the server did not report the flag, so treat `false` as possibly unknown. A returned record is usually unresolved; if `IsResolved()` is true, treat it as resolved. It is usually a failure, but a deferred partition (such as a webhook waiting out its target) can have no attempts or keep earlier ones. Chronicle normally deletes a record once its partition recovers or the observer is fast-forwarded past it; absence means only that the lookup found no match, not recovery. No matching failure is not proof of delivery.
|
|
75
75
|
|
|
76
76
|
## Append-completion wait
|
|
77
77
|
|
|
@@ -155,7 +155,7 @@ Configure a server only when setup is the task; `cratis ai` does not register it
|
|
|
155
155
|
| `ModelCatalog.Roots` | none | Map aliases to read-only directories of Screenplay models (up to 16) |
|
|
156
156
|
| `ModelCatalog.Models` | none | Publish up to 64 manifests as an indexed array, each with `Name`, `Root`, `Entry` and `Files` (1–16 `.play` paths). Needs Linux with `openat2` and operator-controlled read-only roots; every audit caller can select every published name |
|
|
157
157
|
|
|
158
|
-
- `--config /absolute/path.json
|
|
158
|
+
- `--config /absolute/path.json`, or `CHRONICLE_MCP_CONFIG` set to an absolute path — select one existing, valid JSON configuration file; the flag wins if both are set. An environment variable overrides only the matching file key; lists merge by index rather than being replaced, so define each authorization list in one source. Any other server argument fails startup.
|
|
159
159
|
- `CHRONICLE_CONNECTION_STRING` — destination used when no `ConnectionString` option is set.
|
|
160
160
|
- `CHRONICLE_CONNECT_TIMEOUT_SECONDS` — connect timeout for a slow server (5 seconds unless set).
|
|
161
161
|
|
|
@@ -33,7 +33,7 @@ The server runs as the `cratis/chronicle-mcp` container image and speaks MCP ove
|
|
|
33
33
|
|
|
34
34
|
A connection string alone is not enough unless it embeds credentials. In `ReadOnly` the server starts and lists its tools without resolving the connection, so a missing destination, missing credentials or an unreadable CLI configuration file surfaces as an error on the first tool call; `Mutation` resolves the connection at startup and refuses to start when it cannot. On macOS and Windows a kernel on the host is reached from the container at `host.docker.internal`, not `localhost`. The container has its own filesystem: mount a CLI configuration file or model catalog directory read-only if the server must read it. After registering, request `tools/list` and call `get_server_version` to confirm the profile and the connection.
|
|
35
35
|
|
|
36
|
-
Configuration comes only from environment variables and, optionally, one JSON file selected by `--config /absolute/path.json` (or `CHRONICLE_MCP_CONFIG`; the argument wins).
|
|
36
|
+
Configuration comes only from environment variables and, optionally, one JSON file selected by `--config /absolute/path.json` (or `CHRONICLE_MCP_CONFIG`; the argument wins). An environment variable overrides only the matching file key; it does not replace a list, because list entries merge by index across sources. Define each authorization list in one source. A selected file must exist and contain valid JSON, or the server does not start. The only accepted argument is `--config` followed by an absolute path; any other argument, including a `--Section:Key=value` override, fails startup, so set such values in the file or in an environment variable named by the setting's full key with `__` between segments: `Cratis__Chronicle__Mcp__<Option>` for MCP options, `Logging__LogLevel__Default` for the log level. No `appsettings.json` is discovered from the working directory, relative paths are rejected, and the file is read once at startup: restart the server after changing the file, the environment or the profile.
|
|
37
37
|
|
|
38
38
|
## Target and credentials
|
|
39
39
|
|
|
@@ -33,7 +33,7 @@ A read model has exactly one builder: one projection or one reducer.
|
|
|
33
33
|
- **Persisted (default).** Instances are materialized in a sink: the document sink (MongoDB) by default, the graph sink (Neo4j) for graphs. SQL and other named sinks are set up on the kernel; a read model opts in where its SDK allows.
|
|
34
34
|
- **Passive.** No sink. Each read replays the stream whose event source id equals the requested key. The result therefore reflects revisions, redactions and erased personal data. Never combine passive with a redirected key, a join or events from other sources: a source-local fold can miss the creation or return partial state. A passive read is not a protected command decision.
|
|
35
35
|
- **Input is chosen by event type.** A projection receives every event of the types its mappings name, from every event source in its one selected sequence (the event log unless the SDK infers or you pick another; see your language reference); each event lands on the instance its key selects. Tags, event source type and stream type on an append do not narrow it: use a reducer or reactor when only a subset may count. Several event types can feed one model; a property an event does not carry is left unchanged.
|
|
36
|
-
- **Replay rebuilds from history.** The
|
|
36
|
+
- **Replay rebuilds from history.** The sequence is handled again from the start; the rebuilt state is incomplete until the replay finishes. Replay does not undo anything outside the sink.
|
|
37
37
|
- **Identity.** The projection id is a deployed identity. Keep the previous id when renaming or moving a type; a new id is a new projection.
|
|
38
38
|
- **Registration.** Clients with automatic registration submit definitions on connect. A full set retires omitted projections only for the same owner and registrant, leaving sink data intact; a partial set retires none. Check for per-projection failures and verify catch-up separately.
|
|
39
39
|
- **Version guard.** Chronicle stores each definition with the registering client's software version and compares by semantic-version precedence. A registration older than the stored one is ignored (warning logged, Workbench recommendation); an equal, missing or unparseable version replaces it, so identical versions give no protection. A version change never replays. Roll back by redeploying the old code under a higher version. Only the .NET client sends a version today (see its reference); other SDKs always replace.
|
|
@@ -66,7 +66,7 @@ Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Nod
|
|
|
66
66
|
| Event sequence | Read one other sequence instead of the event log (for example an inbox), by exactly the id the appends use. Sequences never merge: append every mapped event type there (the same type appended elsewhere never reaches it), or use one projection per sequence. |
|
|
67
67
|
| Passive | Compute on read, store nothing; event-source-id key only. |
|
|
68
68
|
| NotRewindable | Mark the definition as non-rewindable; this flag alone does not prevent observer replay. |
|
|
69
|
-
| Container name | Store under an explicit collection or table name. Changing it for an existing read model
|
|
69
|
+
| Container name | Store under an explicit collection or table name. Changing it for an existing read model, even only its casing, makes ordinary registration reject the client's whole read-model batch. To change it on purpose, update the definition with the kernel's `UpdateDefinition` operation, then deploy matching clients; no data is moved or rebuilt. |
|
|
70
70
|
| Initial values | Starting defaults, captured once in the definition, not a callback per event. Every new instance starts from them, also when child events reached it first; event mappings apply on top. Prefer them to a constant set by one creating event, which misses instances other events create. They never fill a Children collection. |
|
|
71
71
|
| AutoMap / NoAutoMap | AutoMap is on and copies same-named properties; NoAutoMap limits a scope or one property to explicit mappings. |
|
|
72
72
|
| NotProjected | The property is filled by the query, not by the projection. |
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
- Keys
|
|
8
8
|
- Property operations
|
|
9
9
|
- Dictionary entries
|
|
10
|
+
- Base event types
|
|
10
11
|
- Joins
|
|
11
12
|
- Children
|
|
12
13
|
- Nested objects
|
|
@@ -49,7 +50,7 @@ Methods on `IProjectionBuilderFor<T>` (root only):
|
|
|
49
50
|
| Method | Effect |
|
|
50
51
|
|---|---|
|
|
51
52
|
| `FromEventSequence(id)` | Read another event sequence than the event log. |
|
|
52
|
-
| `ContainerName(name)` | Store under this collection or table name instead of the naming-policy default. |
|
|
53
|
+
| `ContainerName(name)` | Store under this collection or table name instead of the naming-policy default. Every projection of the read model must use the same name. Arc's injected `IMongoCollection<T>` and `IMongoDatabase.GetCollection<T>()` still resolve the naming-policy default: get the collection by the explicit name (`database.GetCollection<T>("name")`) or read through `IReadModels`. |
|
|
53
54
|
| `Passive()` | Compute on read; store nothing. Only the stream whose event source id is the requested key is read, so never combine it with `UsingKey` or events from other sources. |
|
|
54
55
|
| `NotRewindable()` | Marks the definition non-rewindable; does not block observer replay. |
|
|
55
56
|
| `VariantOf<TIdentity>(m => m.Id)`, `EntersOn<TEvent>()` | Declare a variant; see [Variants](#variants). |
|
|
@@ -58,7 +59,7 @@ Methods available at root, in `Children` and in `Nested`:
|
|
|
58
59
|
|
|
59
60
|
| Method | Effect |
|
|
60
61
|
|---|---|
|
|
61
|
-
| `From<TEvent>(...)` | Create or update from an event. |
|
|
62
|
+
| `From<TEvent>(...)` | Create or update from an event. `TEvent` can be a base type or interface; see [base event types](#base-event-types). |
|
|
62
63
|
| `Join<TEvent>(...)` | Enrich from an event of another source. |
|
|
63
64
|
| `FromEvery(...)`, `FromAll(...)` | Map on every handled event, or on all events in the sequence. |
|
|
64
65
|
| `RemovedWith<TEvent>(...)` | Remove the instance or child. |
|
|
@@ -145,15 +146,25 @@ public class ProductSalesProjection : IProjectionFor<ProductSales>
|
|
|
145
146
|
- A key from event context or the causing identity is not checked, and a `.` in it nests the value. Key by `CausedBy.Subject`, not by a user name or email.
|
|
146
147
|
- An event property the event type does not have fails at registration.
|
|
147
148
|
|
|
149
|
+
## Base event types
|
|
150
|
+
|
|
151
|
+
`From<TBase>()` accepts a base type or an interface and registers every known event type assignable to it, each with the same mappings, key and parent key. It works at the root, in `Children` and in `Nested`.
|
|
152
|
+
|
|
153
|
+
- Add `From<TConcrete>()` for an exception. The two are combined: the concrete registration wins on conflicting properties and supplies the key and parent key, whatever the call order.
|
|
154
|
+
- Event types not assignable to `TBase` are not included; mapping every event type in the sequence is `FromAll`.
|
|
155
|
+
|
|
148
156
|
## Joins
|
|
149
157
|
|
|
150
158
|
```csharp
|
|
151
159
|
.Join<CustomerRegistered>(j => j
|
|
152
160
|
.On(m => m.CustomerId)
|
|
153
|
-
.Set(m => m.CustomerName).To(e => e.Name)
|
|
161
|
+
.Set(m => m.CustomerName).To(e => e.Name)
|
|
162
|
+
.Set(m => m.CustomerSince).ToEventContextProperty(c => c.Occurred))
|
|
154
163
|
```
|
|
155
164
|
|
|
156
|
-
|
|
165
|
+
A join maps the joined event's payload and, with `ToEventContextProperty`, its context, such as when the joined fact occurred.
|
|
166
|
+
|
|
167
|
+
`On` names the read-model member holding the match value; live joins match the joined event’s source ID by default, or its explicit `UsingKey` value; a root join falls back to the source ID when that value is null. `On` does not rename anything: map each differently named property with `Set`. A join-only event updates existing instances and never creates a root; an independent keyed `From` for the same event can create one. In a child scope, `children.Join<TEvent>()` joins on the child’s `IdentifiedBy` member and takes the same property operations; it has no `On`. Call `IdentifiedBy` before `Join`; otherwise building the projection throws `MissingIdentifiedByPropertyExpressionWhenJoiningWithEvent` at startup.
|
|
157
168
|
|
|
158
169
|
Root backfill looks up earlier joined events by source ID, not by `UsingKey`. Use source IDs for joins that must work in either event order. If the explicit key differs, create the root with its match value before appending the joined event. Backfill runs after local mappings and can overwrite them, so give each field one owner.
|
|
159
170
|
|
package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md
CHANGED
|
@@ -84,7 +84,7 @@ public record OrderBalance(
|
|
|
84
84
|
[SubtractFrom<AmountRefunded>(nameof(AmountRefunded.Amount))] decimal Charged);
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
A
|
|
87
|
+
A scalar clear (`[ClearWith]` or `[SetValue<TEvent>(null)]` on an ordinary member) needs a nullable member: `string?`, `DateTimeOffset?`. A `[ClearWith]` on a `[Nested]` member is different: it clears the whole nested object and is not subject to this check. On a non-nullable member with a scalar clear the analyzer reports CHR0048, and building the projection throws `CannotClearNonNullableMember` at startup even when CHR0048 is suppressed. A reference type compiled with nullable analysis disabled is not checked, so `#nullable disable` hides the problem for `string`; a value type that is not `Nullable<T>` (`DateTimeOffset`) always fails. Make the member nullable; do not use a placeholder such as `""` for "no value".
|
|
88
88
|
|
|
89
89
|
## Every handled event and all events
|
|
90
90
|
|
|
@@ -230,3 +230,6 @@ public record OrderStageShared([property: SetFrom<ReferenceChanged>] string Refe
|
|
|
230
230
|
## Not supported as attributes
|
|
231
231
|
|
|
232
232
|
Use the fluent builder for: dictionary entries keyed by event data, a composite key on the root instance, keys taken from event context on `FromEvent`, a child taken from an object on the event (`FromEventProperty`, `AddChild`), initial values, a container name, and excluding children from an every-event mapping.
|
|
233
|
+
|
|
234
|
+
- `[Join<TEvent>]` on a member takes a payload property of the joined event, and `[SetFromContext<TEvent>]` maps the context of a local event, not of a joined one. For the joined event's context, such as when it occurred, use a fluent join.
|
|
235
|
+
- Attributes bind to the type, not to each use of it. One type used for two members (a billing and a shipping address) cannot map differently per member: use separate fluent `Nested` scopes.
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
| `ReadModels.Materialized.GetInstances<Order>(skip, take)` | A page from the sink; default skip 0, take 50 (also for observed pages). |
|
|
20
20
|
| `ReadModels.GetSnapshotsById<Order>(key)` | `ReadModelSnapshot<Order>` per correlation group: `Instance`, `Events`, `Occurred`, `CorrelationId`. |
|
|
21
21
|
|
|
22
|
+
`key` is a `ReadModelKey`; a `string`, `Guid` or `EventSourceId` converts to it implicitly. A composite key record does not convert, and a string form of it is not a safe `GetInstanceById` key on MongoDB or SQL. Look a composite-keyed instance up by its named key parts instead: the kernel's `FindByCompositeKey` read-model lookup (gRPC service `ReadModelLookups`, also used by the Workbench) takes the read model id and each part by name as a JSON literal, for a materialized read model on either sink. It reports not found, invalid key or ambiguous legacy key rather than guessing. The C# client has no wrapper for it.
|
|
23
|
+
|
|
22
24
|
Use `ReadModelSessionId.New()` for a reusable read session: pass `sessionId` to `GetInstanceById<Order>(key, sessionId)` and finish with `await models.DehydrateSession(sessionId, typeof(Order), key)` on the same `IReadModels models`. This does not guard an append.
|
|
23
25
|
|
|
24
26
|
A source can declare a named stream with `[Cratis.Chronicle.EventSources.EventStream("Shipments")]` on its `IEventSource` definition. Scope a model to one such stream:
|
|
@@ -52,7 +54,8 @@ using var subscription = eventStore.ReadModels
|
|
|
52
54
|
});
|
|
53
55
|
```
|
|
54
56
|
|
|
55
|
-
- `Watch<T>()` emits a `ReadModelChangeset<T>` per change
|
|
57
|
+
- `Watch<T>()` emits a `ReadModelChangeset<T>` per change: `Namespace`, `ModelKey`, `ReadModel`, `Removed`, `ChangeType` (`Added`, `Modified`, `Removed`) and `ChangeContext`. `ChangeContext` is an `EventContext` built for the change, not the context of the causing event: it holds the model key as event source id together with the sequence number, correlation id and time of the causing event, and its event type and other identity fields are defaults. A changeset carries no previous state: keep the last value per key to compare. A read model from an active reducer reports changes the same way, including `Added`; for a passive reducer every non-removal is `Modified` and `ChangeContext` holds only the model key.
|
|
58
|
+
- When `RemovedWithJoin` removes a child from several parents, the change for an affected parent carries its full state after the removal, with `ChangeType` `Modified` and `Removed` false. There is no per-child change, and changes are grouped per parent: several removals handled together give at most one change for that parent. A parent that no longer exists gives none, and neither does a parent whose root has not been initialised yet, unless the projection only maps children.
|
|
56
59
|
- `Observe<T>(filter)` emits the whole collection on each change; the filter runs in the client and does not page on the server.
|
|
57
60
|
- `Materialized.ObserveInstances<T>(skip, take)` emits one stored page on each change.
|
|
58
61
|
- Subscribe before appending and keep the subscription for as long as the consumer needs updates.
|
|
@@ -92,7 +95,7 @@ Check `result.IsSuccess` before waiting and `completion.IsSuccess` before queryi
|
|
|
92
95
|
|
|
93
96
|
| Call on `IProjections` | Effect |
|
|
94
97
|
|---|---|
|
|
95
|
-
| `Replay<TProjection>()`, `Replay(projectionId)` | Rebuild from the start of the sequence; returns a job id. |
|
|
98
|
+
| `Replay<TProjection>()`, `Replay(projectionId)` | Rebuild from the start of the sequence; returns a job id. Call it from code for automation; an operator-driven replay goes through the CLI (`cratis-chronicle-cli-operations`) or the Workbench. |
|
|
96
99
|
| `FastForward<TProjection>()`, `FastForward(projectionId)` | Skip the unhandled backlog and discard failed partitions. Nothing is repaired; use only to abandon that backlog. |
|
|
97
100
|
| `GetStateFor<TProjection>()`, `GetStateForModel<TReadModel>()` | `ProjectionState`: running state, subscribed, next, last handled and tail sequence numbers. |
|
|
98
101
|
| `GetFailedPartitionsFor<TProjection>()`, `GetFailedPartitionsForModel<TReadModel>()` | Partitions that stopped on a failing event. |
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
|
+
- Designing the read model
|
|
5
6
|
- Default path
|
|
6
7
|
- Common mistakes
|
|
7
8
|
- Definition diagnostics
|
|
8
9
|
- Projection-level options
|
|
9
10
|
- Registration and identity
|
|
11
|
+
- Reads during a replay
|
|
10
12
|
- Indexes
|
|
11
13
|
- Choose a sink
|
|
12
14
|
- Not supported in this SDK
|
|
@@ -14,6 +16,16 @@
|
|
|
14
16
|
|
|
15
17
|
Names in every example (`Order`, `OrderPlaced`, `LineAdded`, `CustomerRegistered`) are illustrative; use the application's own domain language and its own value types instead of the primitives shown.
|
|
16
18
|
|
|
19
|
+
## Designing the read model
|
|
20
|
+
|
|
21
|
+
Design the read model from the read it serves, before choosing attributes or the fluent builder.
|
|
22
|
+
|
|
23
|
+
- **One read model per read task.** A list gets a flat row per item, a detail view one document with its children embedded, a dashboard pre-aggregated values. Build them as separate read models from the same events. Share one read model only when its consumers need the same fields and the same freshness.
|
|
24
|
+
- **One read model per screen that needs facts to agree.** Projections advance independently, so two stored read models need not reflect the same position in the event sequence. Do not combine two of them in a query and assume they agree: project one read model that carries everything the screen needs.
|
|
25
|
+
- **No normalising in a constructor or property initializer.** A read through `IReadModels` and a read through the storage driver (`IMongoCollection<T>`) do not construct the type the same way, and the stored value can replace an initializer's result. Put defaults in the projection (`[SetValue]`, `WithInitialValues`) and validate before the event is appended.
|
|
26
|
+
- **A missing child collection.** Creating the root never writes a child collection: the field is absent until the first child is added, and holds `[]` after the last child is removed. When no value is stored, `IReadModels` returns an empty collection for a non-nullable member of a supported collection type and null for a nullable one; a stored `[]` is returned as `[]` for both. Strings, dictionaries and custom collection types the reader cannot construct are not filled. Declare the member non-nullable unless "never had children" must differ from "now empty". Arc's MongoDB conventions give a supported non-nullable collection on a `[ReadModel]` type read through `IMongoCollection<T>` the same empty collection, unless the type opts out of that convention or the member declares its own default; a filter that runs in the sink must still match both the absent field and `[]`.
|
|
27
|
+
- **A type used only as a child or nested object has no lookup of its own.** It is part of its parent's document. Read the parent and select the child, or declare a separate read model.
|
|
28
|
+
|
|
17
29
|
## Default path
|
|
18
30
|
|
|
19
31
|
Reference `Cratis.Chronicle` in the server project and connect the host to the intended event store and namespace. Keep the event and model types visible to discovery.
|
|
@@ -69,12 +81,16 @@ Read it with `IReadModels` (`eventStore.ReadModels`): `GetInstanceById<Order>(or
|
|
|
69
81
|
| No AutoMap | `[NoAutoMap]` on the type, or on one member | `.NoAutoMap()`; `.AutoMap()` re-enables it in a nested scope |
|
|
70
82
|
| Leave a member to the query that serves the model | `[NotProjected]` on the member | not applicable: do not map it |
|
|
71
83
|
|
|
84
|
+
**Source sequence.** Without an explicit sequence a projection reads the event log, unless its source event types carry `[EventStore]`. A model-bound read model then reads the named store's inbox, or stays on the event log when the named store is the client's own. A fluent projection reads the named store's inbox in every case, also when it is the client's own store: set its sequence explicitly to keep it on the event log. An explicit sequence turns the inference off: `[EventLog]` (`Cratis.Chronicle.EventSequences`) on a model-bound read model selects the event log, and `[EventSequence]` or `FromEventSequence` selects the named sequence. While the sequence is inferred, source event types naming more than one event store are rejected with `MultipleEventStoresDefined`; with an explicit sequence that check does not run.
|
|
85
|
+
|
|
72
86
|
Label a projection or read model with `[Cratis.Chronicle.Tag("shipping")]` or `[Cratis.Chronicle.Tags("shipping", "operations")]` for discovery, not event filtering.
|
|
73
87
|
|
|
74
88
|
For an active typed projection that must handle a specific event generation, set `options.EventGenerationDelivery = Cratis.Chronicle.Observation.EventGenerationDelivery.Pinned` in the client options and map the CLR event type for that generation. All clauses must agree on one generation per event type. Compatibility delivery is the default; passive and wildcard definitions retain it.
|
|
75
89
|
|
|
76
90
|
A passive read replays only the stream whose event source id equals the requested key. Do not combine `[Passive]` with `key:`, `UsingKey`, joins or events from other sources: the read returns a default-initialised model while registration and specs still pass. Materialise such a view instead. `[Passive]` alone does not make a type a projection; it needs at least one mapping attribute. `[Projection(eventSequence: ...)]` configures fluent projections only; a model-bound read model uses `[EventSequence]`. `[Passive]` together with `[Sink]` is an analyzer error, because a passive read model has no sink.
|
|
77
91
|
|
|
92
|
+
Chronicle has no synchronous projection: an append does not wait for a stored read model to be updated, so a read made right after it may still return the earlier state, and "immediate projection" means a passive read, computed from events at read time. To decide how a caller reads its own write, see `references/eventual-consistency.md` in `cratis-platform-deliver-slice`.
|
|
93
|
+
|
|
78
94
|
## Registration and identity
|
|
79
95
|
|
|
80
96
|
- Automatic discovery submits model-bound read models and `IProjectionFor<T>` definitions on connect. A full set retires omitted projections owned by that application without deleting sink data; runtime registration and discovery batches with local build failures are partial and retire nothing.
|
|
@@ -85,6 +101,12 @@ A passive read replays only the stream whose event source id equals the requeste
|
|
|
85
101
|
- Release version: the client registers projections under `ChronicleOptions.SoftwareVersion`, which the version guard compares. It defaults to the entry assembly's informational version, so stamp each release with a real `<Version>` in the build. A project that never sets one reports `1.0.0`, which gives no protection, and the client logs a startup warning. To override, set `options.SoftwareVersion` in code or, when registered with `AddCratisChronicle`, the configuration key `Cratis:Chronicle:SoftwareVersion`, or the environment variable `Cratis__Chronicle__SoftwareVersion`. Pre-release versions sort before their release (`2.4.0-rc.1` < `2.4.0`).
|
|
86
102
|
- Check `eventStore.Registration.IsSuccess` and `IsRegistering` before relying on startup registration. Inspect `Failures` for artifacts that did not register and `Failure` for an error that stopped the run. One failed definition does not roll back successful ones; fix local build failures before retrying.
|
|
87
103
|
|
|
104
|
+
- A read model's container name is fixed once it is registered. A registration that gives the same read model another container name, also one differing only in case, is refused, and none of the read models in that registration are changed. The usual cause is a client with a different naming policy: use one naming policy and one container mapping in every client of an event store. To move a read model on purpose, coordinate every client and direct reader, update its definition explicitly (saving the read model in the Workbench does this), deploy matching clients, then rebuild. The explicit update changes routing only; it moves no data.
|
|
105
|
+
|
|
106
|
+
## Reads during a replay
|
|
107
|
+
|
|
108
|
+
On the MongoDB, SQL and in-memory sinks a replay rebuilds a materialized read model in a shadow container and promotes it when the replay completes. Until promotion a read by key returns the state from before the replay, and a key that exists only in the rebuilt state reads as missing. The rebuilt state becomes visible for all keys at promotion. Do not treat missing or older data during a replay as a failure; check the projection's state (see [reading and operating](csharp-reading.md)). On MongoDB a read that overlaps the promotion itself can still succeed. When it cannot tell a missing key from a replaced container, it is retried a few times, and only if the promotion still prevents a reliable answer does it fail with an error instead of reporting the instance as missing: retry it after the promotion. A projection that publishes to an event sequence has no shadow container: events it publishes during a replay are readable at once.
|
|
109
|
+
|
|
88
110
|
## Indexes
|
|
89
111
|
|
|
90
112
|
```csharp
|
|
@@ -133,6 +155,7 @@ Read the notices from the outbox. For a different destination put `[Cratis.Chron
|
|
|
133
155
|
- Filtering projection input by event metadata (`[FilterEventsByTag]` is for reactors and reducers) — select declared event types, or give the filtered subset its own producer.
|
|
134
156
|
- Event-target preview or enumeration as documents — consume the destination sequence instead.
|
|
135
157
|
- Per-stream materialization or collection reads of a stream-scoped model — query a specific source and stream, or design a separate materialized collection.
|
|
158
|
+
- A global (cross-namespace) projection — a projection declared with this SDK is namespace-scoped: each namespace has its own instances, and no attribute or builder method changes that. A `Global` definition already stored in an event store writes one instance shared by all namespaces; a graph target stays in the observing namespace. On the MongoDB sink the shared instance is protected against concurrent namespaces only when the read model is keyed by the event source id and maps event properties alone (a counter, a latest value); with another key, a join, children or removal, updates can be lost and the kernel logs a warning. Neither a `Global` nor a `Both` definition can be replayed from a namespace (see Replay in `SKILL.md`). Separately, when a changed `Global` definition needs a rebuild, the kernel records a replay recommendation instead of scheduling the replay; a change that needs no rebuild gives no recommendation.
|
|
136
159
|
- Model-bound equivalents of every fluent operation — use the fluent builder for the exceptions in the model-bound reference.
|
|
137
160
|
|
|
138
161
|
## Where the rest is
|
|
@@ -63,5 +63,6 @@ Use `projections: [BacklogProjection, PullRequestProjection]` for explicitly reg
|
|
|
63
63
|
- No projection tags, pinned projection delivery, custom container, per-projection sink, index declarations or query-only field annotation: use stable IDs, compatibility delivery and client sink settings; manage indexes in the sink and enrich query DTOs outside the projection.
|
|
64
64
|
- No typed projection output to an event sequence or stream-scoped passive declaration: use a reactor for intentional event emission or keep a source-keyed passive model. Stream options on a lookup do not declare a projection's stream scope.
|
|
65
65
|
- No sequence-wide wildcard macro: enumerate input types. No singleton nested scope, scalar/payload child insertion or polymorphic child discriminator DSL: map identified child fields explicitly or use a reducer.
|
|
66
|
+
- The serialized state a reducer returns must fit within a client guard, 4 MiB by default: a reducer whose state is larger reports the reduction as failed. Configure the guard with `config :cratis_chronicle, max_payload_bytes: ...`; raise it only when the kernel accepts larger messages. A projection is materialized in the kernel and its state does not pass through this guard. A child collection that can grow without bound does not belong in one document: give each child its own read model instance.
|
|
66
67
|
- No graph collection-expansion macro or typed traversal execution: feed individual relationship events and query through the graph-owning service.
|
|
67
68
|
- No public fold event-count result, external batch release helper, materialized-window reactor mode or projection replay command: use the returned position for diagnostics, SDK reads for protected values, observe a page for window updates, and to replay run `cratis chronicle observers replay <observer-id>` (the observer id is the projection id; see `cratis-chronicle-cli-operations`).
|
|
@@ -46,4 +46,5 @@ For joins, counters, keys, children and variants see [Document mappings](go-mapp
|
|
|
46
46
|
- No pinned generation delivery for projections (they use compatibility delivery). No projection event-output or per-stream model declaration: use an owning service with event-target/per-stream support, or a source-local passive model when the source alone identifies all relevant events.
|
|
47
47
|
- No composite/directional index builder: request managed sink indexes for compound query plans; `WithIndexes` does not express direction.
|
|
48
48
|
- No direct scalar-child/whole-event append or fluent multiplication expression: map identified child fields explicitly, supply a computed amount in the event, or use a reducer for a custom fold. For ad-hoc multiplication use PDL in a query.
|
|
49
|
-
- No graph
|
|
49
|
+
- No graph read API: the client declares, validates and registers graph projections, and the kernel stores the graph. Graph views are declared but not executed. Read the graph with the graph database's own tooling.
|
|
50
|
+
- No graph collection expansion builder: declare separate element events. Ordinary keyed Go reads expose optional last-handled position, not a projected-event count; use snapshots for contributing history.
|
|
@@ -46,6 +46,8 @@ ReadModelsJavaBridge.observeMaterializedInstancesPublisher(models, Bin.class, 0,
|
|
|
46
46
|
|
|
47
47
|
For a discovered materialized-change handler implement `IReadModelReactor`, e.g. `public void modified(Bin bin, ReadModelChangeset<Bin> change)`; `added` and `removed` are other handler names, and `List<Bin>` selects collection delivery. Do not use this as proof an append is visible.
|
|
48
48
|
|
|
49
|
+
This client has no observer-completion wait. To read a change just appended, use a `@Passive` read model, which is computed from the events on each read, or let the consumer observe the stored view (`watch`, `observeMaterializedInstances`). Never sleep for a fixed delay and assume the view has caught up.
|
|
50
|
+
|
|
49
51
|
Inspect `FailedPartitionsJavaBridge.getFor(failedPartitions, projectionId)` when rows lag. `ObserversJavaBridge.fastForward(observers, projectionId)` **skips** backlog; it does not rebuild missed rows. For an ad hoc declaration use `ProjectionsServiceJavaBridge.query(projections, declaration)` (optional third argument: event sequence id); handle `ProjectionQueryResult.Invalid` before consuming entries. This does not install a model. Register graphs and query the graph sink instead. In text, set `automap` or `no automap` in a join’s `with` block to override its scope.
|
|
50
52
|
|
|
51
53
|
## Graphs
|
|
@@ -58,7 +60,7 @@ Thrown while the definition is built or registered; fix the declaration.
|
|
|
58
60
|
|
|
59
61
|
| Exception | Cause |
|
|
60
62
|
| --- | --- |
|
|
61
|
-
| `InvalidPropertyForType` | A model-bound
|
|
63
|
+
| `InvalidPropertyForType` | A validated model-bound path names an event or event-context property whose first path segment (compared case-insensitively) does not exist, including a name defaulted from the annotated property (such as `@Join` without `eventPropertyName` on a Kotlin model property). Not checked: `@Join`'s `on` (a read-model property), `@SetFrom` without an event type, and the payload `property` of `@FromEvery` or `@FromAll` |
|
|
62
64
|
| `UnknownReadModelProperty` | A builder call names a property the target type does not have |
|
|
63
65
|
| `ChildrenOrderingAlreadyDefined`, `ConflictingChildrenOrdering` | A child collection given more than one ordering |
|
|
64
66
|
| `VariantMustDeclareEntersOnEvent` | A variant without the event that activates it |
|