@cratis/pi 7.50.0 → 7.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +93 -0
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +4 -0
- package/package/corpus/prompts/review-skill.prompt.md +6 -8
- package/package/corpus/rules/authoring-skills.md +92 -0
- package/package/corpus/rules/general.md +1 -0
- package/package/corpus/rules/profiles.md +4 -0
- package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +8 -7
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +23 -29
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +7 -7
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +34 -32
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authproxy.md +1 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +2 -2
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/local-development.md +3 -3
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +8 -6
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/tenancy.md +3 -3
- package/package/corpus/skills/cratis-arc-command/SKILL.md +23 -25
- package/package/corpus/skills/cratis-arc-command/references/command-result.md +1 -1
- package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +9 -9
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +11 -12
- package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +4 -4
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +1 -3
- package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +11 -14
- package/package/corpus/skills/cratis-arc-command-execution/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +17 -19
- package/package/corpus/skills/cratis-arc-command-kotlin/SKILL.md +8 -7
- package/package/corpus/skills/cratis-arc-command-kotlin/references/read-model-naming.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +7 -8
- package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +14 -11
- package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +7 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/command-operations.md +4 -4
- package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +11 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/identity-and-introspection.md +4 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/observability-and-host-scopes.md +2 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +1 -1
- package/package/corpus/skills/cratis-arc-command-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-ef-core-migration/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-ef-core-migration/SKILL.md +9 -10
- package/package/corpus/skills/cratis-arc-go/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-go/references/queries.md +2 -2
- package/package/corpus/skills/cratis-arc-hosting/SKILL.md +8 -8
- package/package/corpus/skills/cratis-arc-hosting/references/integrations-and-publish.md +11 -11
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +13 -13
- package/package/corpus/skills/cratis-arc-observable-query-http/verification.json +1 -1
- package/package/corpus/skills/cratis-arc-query-kotlin/SKILL.md +2 -3
- package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -14
- package/package/corpus/skills/cratis-arc-query-typescript/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-query-typescript/references/storage-observation-and-compliance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
- package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +1 -2
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +19 -22
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +36 -36
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/client-construction.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +13 -13
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/pinned-generation-delivery.md +7 -5
- package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +59 -64
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +17 -17
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/compliance.md +5 -3
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/connections.md +15 -11
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/event-sources.md +3 -1
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/pitfalls.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/projections.md +8 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/upgrading.md +19 -19
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +3 -8
- package/package/corpus/skills/cratis-chronicle-client-elixir/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-client-go/SKILL.md +16 -18
- package/package/corpus/skills/cratis-chronicle-client-go/references/projections.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +61 -58
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +9 -10
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +6 -6
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/event-sources.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/options.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +24 -24
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +6 -5
- package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -20
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/testing.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +4 -3
- package/package/corpus/skills/cratis-chronicle-client-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +11 -10
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/admission-and-ownership.md +1 -1
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +5 -6
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-event-constraints/references/closing-streams.md +1 -1
- package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +12 -10
- package/package/corpus/skills/cratis-chronicle-event-type-migration/references/pinned-generations.md +2 -3
- package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -10
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +29 -29
- package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -14
- package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +3 -5
- package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +2 -4
- package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +1 -3
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +16 -15
- package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +8 -8
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +14 -13
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +11 -12
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +6 -6
- package/package/corpus/skills/cratis-code-review/SKILL.md +13 -17
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +3 -3
- package/package/corpus/skills/cratis-components-common-controls/SKILL.md +15 -15
- package/package/corpus/skills/cratis-components-data-surfaces/SKILL.md +29 -29
- package/package/corpus/skills/cratis-components-schema-editor/SKILL.md +4 -4
- package/package/corpus/skills/cratis-components-schema-editor/references/tree-layout.md +1 -1
- package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +6 -6
- package/package/corpus/skills/cratis-components-styling/LICENSE +6 -0
- package/package/corpus/skills/cratis-components-styling/SKILL.md +5 -4
- package/package/corpus/skills/cratis-components-toolbar/SKILL.md +5 -5
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +2 -2
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +3 -3
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +1 -1
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +4 -4
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +19 -24
- package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-concepts.md +8 -8
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +10 -11
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +18 -18
- package/package/corpus/skills/cratis-fundamentals-telemetry/verification.json +1 -1
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +4 -4
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +19 -19
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +27 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +12 -12
- package/package/corpus/skills/cratis-performance-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
- package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
- package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
- package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
- package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
- package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +12 -14
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
- package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
- package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
- package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
- package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
- package/package/corpus/skills/cratis-security-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +18 -16
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +1 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +26 -29
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +8 -8
- package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +2 -2
- package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +6 -4
- package/package/corpus/skills/cratis-specifications-csharp/references/shared-lifecycle.md +6 -2
- package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +2 -2
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -4
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +1 -1
- package/package/corpus/skills/guiding-refactoring-with-code-health/SKILL.md +1 -1
- package/package/corpus/skills/prioritizing-technical-debt/SKILL.md +1 -1
- package/package/corpus/skills/risk-based-testing-with-code-health/SKILL.md +3 -3
- package/package/corpus/skills/safeguarding-ai-generated-code/SKILL.md +1 -1
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
|
@@ -15,34 +15,30 @@ to yours, and everything after that is ordinary OTP.
|
|
|
15
15
|
|
|
16
16
|
## Verified product sources
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
Source paths below are relative to `Source/chronicle/` at that tag.
|
|
18
|
+
Source: `Cratis/Chronicle.Elixir` (Hex package `cratis_chronicle`). Source paths below are relative to `Source/chronicle/`.
|
|
20
19
|
|
|
21
|
-
Read [references/upgrading.md](references/upgrading.md) when
|
|
20
|
+
Read [references/upgrading.md](references/upgrading.md) when moving an application from an older client; wire compatibility and corrected behavior both matter.
|
|
22
21
|
|
|
23
22
|
| Fact | Value | Source |
|
|
24
23
|
| --- | --- | --- |
|
|
25
|
-
| OTP app / Hex package | `:cratis_chronicle` | `Source/chronicle/mix.exs
|
|
26
|
-
| Published versions |
|
|
24
|
+
| OTP app / Hex package | `:cratis_chronicle` | `Source/chronicle/mix.exs` |
|
|
25
|
+
| Published versions | Select the intended release from hex.pm; not every git tag is published to Hex | hex.pm |
|
|
27
26
|
| Elixir requirement | `~> 1.18` | `Source/chronicle/mix.exs` |
|
|
28
|
-
| Contracts dependency | `cratis_chronicle_contracts` resolved
|
|
27
|
+
| Contracts dependency | `cratis_chronicle_contracts` as resolved in `mix.lock`; pair it with a compatible kernel | `Source/chronicle/mix.lock` |
|
|
29
28
|
|
|
30
|
-
> **
|
|
31
|
-
> fetch it. What it introduced — notably the `Chronicle.Concept` macro
|
|
29
|
+
> **A git tag is not a Hex release.** `mix deps.get` fetches only published versions. The `Chronicle.Concept` macro
|
|
32
30
|
> (`use Chronicle.Concept, type: :string`, a single-value concept that carries its
|
|
33
|
-
> `pii` classification once, mirroring `ConceptAs<T>`)
|
|
34
|
-
>
|
|
35
|
-
> classify a personal value.
|
|
31
|
+
> `pii` classification once, mirroring `ConceptAs<T>`) is the preferred way to
|
|
32
|
+
> classify a personal value; a client without it annotates fields with `pii/1,2`.
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
> placeholder** overwritten by the publish workflow. Never quote it.
|
|
34
|
+
Requires `cratis_chronicle` 3.0.0 for `Chronicle.Concept`.
|
|
39
35
|
|
|
40
|
-
>
|
|
41
|
-
|
|
36
|
+
> **The repository's `VERSION` file is a build-time placeholder** overwritten by the publish workflow. Never quote it.
|
|
37
|
+
|
|
38
|
+
> Use namespaced modules (`Chronicle.Events.EventType`, not `Chronicle.EventType`); older READMEs got this wrong. Maintained
|
|
42
39
|
> snippets live in `Documentation/client-snippets/`.
|
|
43
40
|
|
|
44
|
-
|
|
45
|
-
published version from hex.pm rather than treating a guide's range as a pin.
|
|
41
|
+
Select the published version from hex.pm rather than treating a guide's range as a pin.
|
|
46
42
|
|
|
47
43
|
## Adding it
|
|
48
44
|
|
|
@@ -61,8 +57,8 @@ The library declares `extra_applications: [:logger, :inets, :ssl]` and **no
|
|
|
61
57
|
|
|
62
58
|
## Starting the client
|
|
63
59
|
|
|
64
|
-
`Chronicle.Client` is a `Supervisor` (`lib/chronicle/client.ex
|
|
65
|
-
`start_link(opts \\ [])
|
|
60
|
+
`Chronicle.Client` is a `Supervisor` (`lib/chronicle/client.ex`) with
|
|
61
|
+
`start_link(opts \\ [])`. Put it in your application's tree — this is
|
|
66
62
|
the CI-validated snippet from
|
|
67
63
|
`Documentation/client-snippets/get-started/console/connect.md`:
|
|
68
64
|
|
|
@@ -89,33 +85,33 @@ end
|
|
|
89
85
|
Pass **child-spec keyword options**. The client reads no application env;
|
|
90
86
|
your app must read its own configuration and pass it in (`lib/chronicle/client.ex`).
|
|
91
87
|
|
|
92
|
-
| Option | Default |
|
|
93
|
-
| --- | --- |
|
|
94
|
-
| `:name` | `Chronicle.Client` |
|
|
95
|
-
| `:connection_string` | `ConnectionString.default/0` |
|
|
96
|
-
| `:event_store` | `"default"` |
|
|
97
|
-
| `:namespace` | `"Default"` — capital D |
|
|
98
|
-
| `:discover` | `true` |
|
|
99
|
-
| `:otp_app` | none; falls back to scanning loaded modules |
|
|
100
|
-
| `:event_types`, `:event_sources`, `:migrations`, `:reactors`, `:reducers`, `:read_models`, `:projections`, `:seeders`, `:webhooks`, `:event_store_subscriptions`, `:global_handlers` | `[]`, merged with discovered |
|
|
101
|
-
| `:default_sink_type_id` | `:mongodb`; accepts `:mongodb`, `:sql`, `:in_memory`, `:none` or a raw string |
|
|
102
|
-
| `:server_address` | alternative `"host:port"` address
|
|
88
|
+
| Option | Default |
|
|
89
|
+
| --- | --- |
|
|
90
|
+
| `:name` | `Chronicle.Client` |
|
|
91
|
+
| `:connection_string` | `ConnectionString.default/0` |
|
|
92
|
+
| `:event_store` | `"default"` |
|
|
93
|
+
| `:namespace` | `"Default"` — capital D |
|
|
94
|
+
| `:discover` | `true` |
|
|
95
|
+
| `:otp_app` | none; falls back to scanning loaded modules |
|
|
96
|
+
| `:event_types`, `:event_sources`, `:migrations`, `:reactors`, `:reducers`, `:read_models`, `:projections`, `:seeders`, `:webhooks`, `:event_store_subscriptions`, `:global_handlers` | `[]`, merged with discovered |
|
|
97
|
+
| `:default_sink_type_id` | `:mongodb`; accepts `:mongodb`, `:sql`, `:in_memory`, `:none` or a raw string |
|
|
98
|
+
| `:server_address` | alternative `"host:port"` address (connection option) |
|
|
103
99
|
| `:skip_tls_validation`, `:load_balancer`, `:grpc_options`, `:reconnect_base_delay`, `:reconnect_max_delay` | forwarded to the connection | — |
|
|
104
|
-
| `:retry_attempts` | accepted for compatibility, **ignored** |
|
|
100
|
+
| `:retry_attempts` | accepted for compatibility, **ignored** |
|
|
105
101
|
|
|
106
|
-
> The moduledoc
|
|
107
|
-
> The code
|
|
102
|
+
> The moduledoc in `client.ex` says the namespace defaults to `"default"`.
|
|
103
|
+
> The code uses `"Default"`. **Trust the code.**
|
|
108
104
|
|
|
109
105
|
**Set `:otp_app`.** With it, discovery is scoped to your application's modules;
|
|
110
106
|
without it the client falls back to scanning every loaded module.
|
|
111
107
|
|
|
112
108
|
Configuration is stashed in `:persistent_term` and read back with
|
|
113
|
-
`Chronicle.Client.config/1` (`client.ex
|
|
114
|
-
but not `read_models`, `projections`, or `migrations
|
|
109
|
+
`Chronicle.Client.config/1` (`client.ex`). Its subset includes `event_sources`,
|
|
110
|
+
but not `read_models`, `projections`, or `migrations`.
|
|
115
111
|
|
|
116
112
|
### The supervision tree
|
|
117
113
|
|
|
118
|
-
`Supervisor.init(children, strategy: :rest_for_one)` — `client.ex
|
|
114
|
+
`Supervisor.init(children, strategy: :rest_for_one)` — `client.ex`.
|
|
119
115
|
The lifecycle hub is the root dependency; restarting it restarts its subscribers.
|
|
120
116
|
The connection, session and registration precede observers.
|
|
121
117
|
|
|
@@ -128,7 +124,7 @@ function takes a `:client` option.
|
|
|
128
124
|
|
|
129
125
|
The client connects in the background. `Chronicle.Connections.Lifecycle`
|
|
130
126
|
broadcasts `{:chronicle_lifecycle, phase, connection_id}` with three phases
|
|
131
|
-
(`lib/chronicle/connections/lifecycle.ex
|
|
127
|
+
(`lib/chronicle/connections/lifecycle.ex`):
|
|
132
128
|
|
|
133
129
|
| Phase | Meaning |
|
|
134
130
|
| --- | --- |
|
|
@@ -137,7 +133,7 @@ broadcasts `{:chronicle_lifecycle, phase, connection_id}` with three phases
|
|
|
137
133
|
| `:registered` | the registration coordinator registered the base artifacts |
|
|
138
134
|
|
|
139
135
|
**Wait for `:registered`, never merely `:connected`** — the module's own docs say
|
|
140
|
-
so
|
|
136
|
+
so, because reducers and reactors are not attached until registration
|
|
141
137
|
finishes.
|
|
142
138
|
|
|
143
139
|
```elixir
|
|
@@ -149,9 +145,9 @@ case Lifecycle.wait_until(Lifecycle.name_for(Chronicle.Client), :registered, 30_
|
|
|
149
145
|
end
|
|
150
146
|
```
|
|
151
147
|
|
|
152
|
-
`wait_until(lifecycle, target_phase, timeout \\ 30_000)` is
|
|
153
|
-
`subscribe/1`
|
|
154
|
-
which closes the subscribe-after-transition race; `phase/1`
|
|
148
|
+
`wait_until(lifecycle, target_phase, timeout \\ 30_000)` is the blocking wait.
|
|
149
|
+
`subscribe/1` returns `{:ok, phase, connection_id}` **and** sends it as a message,
|
|
150
|
+
which closes the subscribe-after-transition race; `phase/1` is the plain
|
|
155
151
|
read.
|
|
156
152
|
|
|
157
153
|
Reconnect never gives up: exponential backoff starts at 1000 ms and caps at
|
|
@@ -190,17 +186,16 @@ end
|
|
|
190
186
|
```
|
|
191
187
|
|
|
192
188
|
`use Chronicle.Events.EventType` takes `:id` through `Keyword.fetch!`
|
|
193
|
-
(`lib/chronicle/events/event_type.ex
|
|
189
|
+
(`lib/chronicle/events/event_type.ex`) — **the id is required**, unlike the
|
|
194
190
|
.NET, Kotlin, and TypeScript clients where it defaults to the type name. Give it
|
|
195
|
-
a stable, kebab-case string and never change it. `:generation` defaults to `1
|
|
196
|
-
(`:72`).
|
|
191
|
+
a stable, kebab-case string and never change it. `:generation` defaults to `1`.
|
|
197
192
|
|
|
198
193
|
**Use typed defaults on events and read models.** Schemas come from struct
|
|
199
194
|
defaults: `nil` registers as string, numbers as number, booleans as boolean;
|
|
200
195
|
list element schemas use the first default element. Nested structs and concepts
|
|
201
|
-
are descended into (`schemas/json_schema_generator.ex
|
|
196
|
+
are descended into (`schemas/json_schema_generator.ex`).
|
|
202
197
|
|
|
203
|
-
The macro imports constraint macros into your module
|
|
198
|
+
The macro imports constraint macros into your module:
|
|
204
199
|
`unique/1`, `unique/2`, `unique_event_type/0`, `unique_event_type/1`,
|
|
205
200
|
`remove_constraint/1`, plus `Chronicle.Compliance.pii/1,2` and
|
|
206
201
|
`Chronicle.Confidentiality.encrypted/1,2,3`. The
|
|
@@ -208,7 +203,7 @@ equivalent accumulating module attributes `@unique`, `@unique_event_type`,
|
|
|
208
203
|
`@remove_constraint` also work.
|
|
209
204
|
|
|
210
205
|
**Only top-level event keys are camelCased.** `encode_event/1` transforms them
|
|
211
|
-
before `Jason.encode!` (`event_sequences/event_log.ex
|
|
206
|
+
before `Jason.encode!` (`event_sequences/event_log.ex`); nested keys are
|
|
212
207
|
not transformed. Event structs get no `Jason.Encoder` implementation;
|
|
213
208
|
`Chronicle.Concept` does, encoding its wrapped value rather than a wrapper.
|
|
214
209
|
|
|
@@ -230,7 +225,7 @@ end
|
|
|
230
225
|
```
|
|
231
226
|
|
|
232
227
|
`Chronicle.append/3` delegates to `Chronicle.EventSequences.EventLog`
|
|
233
|
-
(`lib/chronicle.ex
|
|
228
|
+
(`lib/chronicle.ex`):
|
|
234
229
|
|
|
235
230
|
```elixir
|
|
236
231
|
@spec append(String.t(), struct(), keyword()) :: :ok | {:error, term()}
|
|
@@ -243,8 +238,9 @@ the outcome.
|
|
|
243
238
|
|
|
244
239
|
Read [references/append-api.md](references/append-api.md) when you need an append variant, a read-back function, or an append option such as `:event_stream_type`, `:concurrency_scope` or `:tags`.
|
|
245
240
|
|
|
246
|
-
|
|
247
|
-
|
|
241
|
+
Requires `cratis_chronicle` 3.2.0 for rejected appends to return `{:error, reason}`; an older client could report a rejection as `:ok`.
|
|
242
|
+
|
|
243
|
+
Failed appends return `{:error, reason}`. Reasons include `{:constraint_violations, violations}`,
|
|
248
244
|
`{:concurrency_violations, violations}`, `{:append_errors, errors}`,
|
|
249
245
|
`:not_connected`, and `{:incompatible_server, response}` from the first append's
|
|
250
246
|
compatibility preflight per channel. Pair the kernel and installed contracts;
|
|
@@ -254,7 +250,7 @@ do not blindly retry a timed-out write.
|
|
|
254
250
|
a constraint violation, which is a fine choice in a script and the wrong one in a
|
|
255
251
|
GenServer.
|
|
256
252
|
|
|
257
|
-
Read [references/event-sources.md](references/event-sources.md) when declaring named event sources/streams, deriving concurrency scopes or routing mixed-source batches; definitions
|
|
253
|
+
Read [references/event-sources.md](references/event-sources.md) when declaring named event sources/streams, deriving concurrency scopes or routing mixed-source batches; definitions have client and kernel requirements stated there.
|
|
258
254
|
|
|
259
255
|
A unit of work is a process: `Chronicle.begin_unit_of_work/1` starts an `Agent`,
|
|
260
256
|
and while one is current for the calling process `append`/`append_many` buffer
|
|
@@ -300,11 +296,11 @@ This follows `Documentation/client-snippets/get-started/common/reactor.md`.
|
|
|
300
296
|
|
|
301
297
|
**The reactor context has six keys**: `event_source_id`, `sequence_number`,
|
|
302
298
|
`occurred`, `event_source`, `event_store`, `namespace`
|
|
303
|
-
(`lib/chronicle/reactors/handler.ex
|
|
299
|
+
(`lib/chronicle/reactors/handler.ex`). `event_source` is the registered
|
|
304
300
|
source name or `nil` for legacy appends. The moduledoc mentions `:correlation_id`,
|
|
305
301
|
but **it is not in the map**. Reducer context differs: `event_source_id`,
|
|
306
302
|
`sequence_number`, `occurred`, `event_source`, `observation_state`
|
|
307
|
-
(`reducers/handler.ex
|
|
303
|
+
(`reducers/handler.ex`).
|
|
308
304
|
|
|
309
305
|
### Read models and projections
|
|
310
306
|
|
|
@@ -329,7 +325,7 @@ The DSL macros are `from/1`, `from/2`, `join/2`, `removed_with/2`, `from_every/1
|
|
|
329
325
|
Read [references/projections.md](references/projections.md) when choosing `passive`, `not_rewindable`, `event_sequence`, `no_auto_map`, composite/event-context keys or dictionary counters. Snake_case field atoms now map correctly; no camelCase-string workaround is needed.
|
|
330
326
|
|
|
331
327
|
> **The read model id sent to the kernel is the last module segment** —
|
|
332
|
-
> `Module.split() |> List.last()` at `lib/chronicle/read_models/read_model.ex
|
|
328
|
+
> `Module.split() |> List.last()` at `lib/chronicle/read_models/read_model.ex`.
|
|
333
329
|
> `MyApp.ReadModels.Account` registers as `"Account"`, so two read models with the
|
|
334
330
|
> same final segment collide. Pass `id:` to disambiguate.
|
|
335
331
|
|
|
@@ -341,7 +337,7 @@ process**, so the reduction is Elixir code you own.
|
|
|
341
337
|
|
|
342
338
|
#### Variants — mutually exclusive read models for one entity's lifecycle
|
|
343
339
|
|
|
344
|
-
Requires `cratis_chronicle` `3.4.0` or later
|
|
340
|
+
Requires `cratis_chronicle` `3.4.0` or later. `variant_of/2` requires `:key`; a variant with no `enters_on` raises `Chronicle.Projections.VariantMustDeclareEntersOnEvent` at registration.
|
|
345
341
|
|
|
346
342
|
Read [references/variants.md](references/variants.md) when an entity has mutually exclusive lifecycle shapes (for example a backlog entry that becomes a pull request) and you need variant read models or a `GlobalHandler`.
|
|
347
343
|
|
|
@@ -352,20 +348,19 @@ Querying (`lib/chronicle/read_models.ex`):
|
|
|
352
348
|
{:ok, account} = Chronicle.read_model(MyApp.ReadModels.AccountBalance, "account-1")
|
|
353
349
|
```
|
|
354
350
|
|
|
355
|
-
`Chronicle.read_model/3` delegates to `ReadModels.get/3` (`lib/chronicle.ex
|
|
356
|
-
`read_models.ex
|
|
351
|
+
`Chronicle.read_model/3` delegates to `ReadModels.get/3` (`lib/chronicle.ex`,
|
|
352
|
+
`read_models.ex`), returning `{:ok, struct() | nil} | {:error, term()}`.
|
|
357
353
|
`Chronicle.all/2` delegates to `ReadModels.all/2`
|
|
358
|
-
(`lib/chronicle.ex
|
|
354
|
+
(`lib/chronicle.ex`, `read_models.ex`).
|
|
359
355
|
|
|
360
356
|
Use `Chronicle.ReadModels.query(MyApp.ReadModels.AccountBalance, page: 0)` for paging:
|
|
361
357
|
`:page` is zero-based (default `0`), `:page_size` defaults to `50`, and
|
|
362
|
-
`:occurrence` selects a replay container.
|
|
363
|
-
the default was 1; **page 1 now means the second page**. `ReadModels.snapshots/3`,
|
|
358
|
+
`:occurrence` selects a replay container. **Page 1 is the second page**. `ReadModels.snapshots/3`,
|
|
364
359
|
`occurrences/2`, and `definitions/1` expose history, replay containers, and
|
|
365
360
|
registered definitions.
|
|
366
361
|
|
|
367
362
|
**Live updates arrive as messages, not as a stream.** `ReadModels.watch/2`
|
|
368
|
-
(`read_models.ex
|
|
363
|
+
(`read_models.ex`) sends
|
|
369
364
|
`{:chronicle_read_model_changed, module, %Changeset{}}` and
|
|
370
365
|
`{:chronicle_read_model_watch_error, module, reason}` to the calling process. The receiving process needs a `handle_info` for both.
|
|
371
366
|
|
|
@@ -373,7 +368,7 @@ registered definitions.
|
|
|
373
368
|
|
|
374
369
|
`Chronicle.Observers.get_all/1` lists namespace observers; `remove/2` removes an
|
|
375
370
|
orphaned observer across the store, refuses running/subscribed observers in any
|
|
376
|
-
namespace, and leaves read model data intact (`observers.ex
|
|
371
|
+
namespace, and leaves read model data intact (`observers.ex`). Obtain
|
|
377
372
|
explicit authority before removal and inspect `RemovalResult.outcome` —
|
|
378
373
|
`{:ok, result}` alone does not mean removed. `Chronicle.FailedPartitions` and
|
|
379
374
|
`Chronicle.Jobs` provide failure/job inspection; `Jobs.get/2` lists then finds
|
|
@@ -407,8 +402,8 @@ Read [references/pitfalls.md](references/pitfalls.md) when troubleshooting disco
|
|
|
407
402
|
|
|
408
403
|
## Verify
|
|
409
404
|
|
|
410
|
-
- Elixir 1.18+ and `mix deps.get` resolve the intended
|
|
411
|
-
and kernel are compatible (event source definitions
|
|
405
|
+
- Elixir 1.18+ and `mix deps.get` resolve the intended published client; contracts
|
|
406
|
+
and kernel are compatible (event source definitions have their own client and kernel requirements; see the event sources reference).
|
|
412
407
|
- Local development uses `ConnectionString.development()` or explicit credentials.
|
|
413
408
|
- `Chronicle.Client` is in the supervision tree with an explicit `:otp_app`, and
|
|
414
409
|
the tree starts clean.
|
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
# Append API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Chronicle.Elixir`; paths below are under `Source/chronicle/lib/chronicle/`.
|
|
7
7
|
|
|
8
8
|
## Append functions and readers
|
|
9
9
|
|
|
10
10
|
| Function on `Chronicle.EventSequences.EventLog` | Arguments / result | Line in `event_log.ex` |
|
|
11
11
|
| --- | --- | --- |
|
|
12
|
-
| `append/3` | `(event_source_id, event, opts)` → `:ok \| {:error, reason}` |
|
|
13
|
-
| `append_many/3` | `(event_source_id, events, opts)` → `:ok \| {:error, reason}` |
|
|
14
|
-
| `append_many_for_event_sources/2` | `(EventForEventSourceId entries, opts)` → `:ok \| {:error, reason}` |
|
|
15
|
-
| `append_and_wait_for_completion/3` | `(event_source_id, event, opts)` → `{:ok, %{success: _, failed_partitions: _}} \| {:error, reason}` |
|
|
16
|
-
| `get_for_event_source/2` | `(event_source_id, opts)` |
|
|
17
|
-
| `get_from_sequence_number/2` | `(sequence_number, opts)` |
|
|
18
|
-
| `get_tail_sequence_number/2` | `(event_source_id_or_nil, opts)` |
|
|
19
|
-
| `get_next_sequence_number/2` | `(event_source_id_or_nil, opts)` |
|
|
20
|
-
| `get_tail_sequence_number_for_observer/2` | `(observer_module, opts)` |
|
|
21
|
-
| `complete_stream/3` | `(event_stream_type, event_stream_id, opts)` |
|
|
22
|
-
| `redact/3` | `(sequence_number, reason, opts)` |
|
|
23
|
-
| `redact_for_event_source/4` | `(event_source_id, reason, event_types, opts)` |
|
|
24
|
-
| `has_events_for?/2` | `(event_source_id, opts)` |
|
|
12
|
+
| `append/3` | `(event_source_id, event, opts)` → `:ok \| {:error, reason}` | |
|
|
13
|
+
| `append_many/3` | `(event_source_id, events, opts)` → `:ok \| {:error, reason}` | |
|
|
14
|
+
| `append_many_for_event_sources/2` | `(EventForEventSourceId entries, opts)` → `:ok \| {:error, reason}` | |
|
|
15
|
+
| `append_and_wait_for_completion/3` | `(event_source_id, event, opts)` → `{:ok, %{success: _, failed_partitions: _}} \| {:error, reason}` | |
|
|
16
|
+
| `get_for_event_source/2` | `(event_source_id, opts)` | |
|
|
17
|
+
| `get_from_sequence_number/2` | `(sequence_number, opts)` | |
|
|
18
|
+
| `get_tail_sequence_number/2` | `(event_source_id_or_nil, opts)` | |
|
|
19
|
+
| `get_next_sequence_number/2` | `(event_source_id_or_nil, opts)` | |
|
|
20
|
+
| `get_tail_sequence_number_for_observer/2` | `(observer_module, opts)` | |
|
|
21
|
+
| `complete_stream/3` | `(event_stream_type, event_stream_id, opts)` | |
|
|
22
|
+
| `redact/3` | `(sequence_number, reason, opts)` | |
|
|
23
|
+
| `redact_for_event_source/4` | `(event_source_id, reason, event_types, opts)` | |
|
|
24
|
+
| `has_events_for?/2` | `(event_source_id, opts)` | |
|
|
25
25
|
|
|
26
26
|
Read operations observe state; completion and redaction mutate it and require authority for the specific target. `append_many` variants are atomic batches. The cross-source variant uses entries for per-event routing/metadata and accepts batch `:client`, `:namespace`, `:event_sequence_id` and source/stream defaults.
|
|
27
27
|
|
|
28
28
|
## Options
|
|
29
29
|
|
|
30
|
-
Append options (`event_log.ex
|
|
30
|
+
Append options (`event_log.ex`): `:client`, `:namespace`, `:event_sequence_id` (default `"event-log"`), `:event_source_type`, `:event_stream_type`, `:event_stream_id`, `:event_source`, `:event_stream`, `:tags`, `:subject`, `:correlation_id`, `:identity`, `:causation`, `:concurrency_scope`, `:occurred`.
|
|
31
31
|
|
|
32
32
|
Omitted, `nil`, or empty routing types/ids travel as empty strings; the **kernel**, not client-side defaults, resolves them to `"Default"` / `"All"` / `"Default"`. Nonempty values are exact. Concurrency filters remain independent of routing.
|
|
33
33
|
|
|
@@ -35,6 +35,6 @@ Read [event-sources.md](event-sources.md) for definitions, stream routing and de
|
|
|
35
35
|
|
|
36
36
|
## Errors and completion
|
|
37
37
|
|
|
38
|
-
`append_response.ex
|
|
38
|
+
`append_response.ex` returns `{:error, {:constraint_violations, violations}}`, `{:error, {:concurrency_violations, violations}}` or `{:error, {:append_errors, errors}}` on rejection. Channel/preflight errors include `{:error, :not_connected}` and `{:error, {:incompatible_server, response}}`. A transport timeout does not prove that no event was stored.
|
|
39
39
|
|
|
40
|
-
`append_and_wait_for_completion/3` has **no many-event variant**. `{:ok, result}` does not imply every observer succeeded: inspect `result.success` and `failed_partitions`. Its wait happens **after** the append (`event_log.ex
|
|
40
|
+
`append_and_wait_for_completion/3` has **no many-event variant**. `{:ok, result}` does not imply every observer succeeded: inspect `result.success` and `failed_partitions`. Its wait happens **after** the append (`event_log.ex`), so `{:error, reason}` can follow a stored event if waiting fails. Do not retry the write blindly; reconcile the stored outcome first.
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
# Personal data, concepts and operational secrets
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Chronicle.Elixir`: `Source/chronicle/lib/chronicle/{concept,compliance,confidentiality}.ex`, `events/event_type.ex`, and `read_models/read_model.ex`.
|
|
7
7
|
|
|
8
|
-
`pii/1,2` marks personal data for compliance encryption and right-to-erasure. `encrypted/1,2,3`
|
|
8
|
+
`pii/1,2` marks personal data for compliance encryption and right-to-erasure. `encrypted/1,2,3` marks non-personal operational secrets for separate confidentiality encryption with no compliance erasure operation. Its scopes are `:subject` (default), `:namespace`, `:global`. They are not interchangeable.
|
|
9
|
+
|
|
10
|
+
Requires `cratis_chronicle` 3.5.0 for `encrypted/1,2,3`.
|
|
9
11
|
|
|
10
12
|
```elixir
|
|
11
13
|
# Copyright (c) Cratis. All rights reserved.
|
|
@@ -25,7 +27,7 @@ defmodule MyApp.Events.PartnerIntegrationConfigured do
|
|
|
25
27
|
end
|
|
26
28
|
```
|
|
27
29
|
|
|
28
|
-
`Chronicle.Concept`
|
|
30
|
+
`Chronicle.Concept` is published on Hex; on a client without it, annotate fields with `pii/1,2`. `type:` is required: `:string`, `:integer`, `:float`, `:boolean`, `:uuid`. Typed concept defaults let the schema generator carry the wrapped type and classification onto every leaf that uses it. The concept's `Jason.Encoder` serializes only its wrapped value.
|
|
29
31
|
|
|
30
32
|
On a concept use `pii/0,1` to classify its sole value, not the field-oriented `Chronicle.Compliance.pii/1,2`. Concept `encrypted/0,1,2` similarly marks that value. Neither classification is allowed on a concept with `event_source_id: true`; use a non-sensitive surrogate stream identity instead. Both classifications on one schema leaf raise `Chronicle.Confidentiality.PiiAndEncryptedCombinedNotSupported`.
|
|
31
33
|
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
# Connections, trust and resilience
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Chronicle.Elixir`: `Source/chronicle/lib/chronicle/connections/{connection_string,connection,keep_alive,client_certificate,transport}.ex`, `registration/coordinator.ex`, and `Documentation/connections/{connection-strings,resilience,crash-reports}.md`.
|
|
7
7
|
|
|
8
8
|
## Connection strings and authentication
|
|
9
9
|
|
|
10
|
-
`Chronicle.Connections.ConnectionString` accepts `chronicle://` and `chronicle+srv://`; the default port is `35000`. Multiple comma-separated hosts are resolved again on reconnect; SRV accepts only one host (`connection_string.ex
|
|
10
|
+
`Chronicle.Connections.ConnectionString` accepts `chronicle://` and `chronicle+srv://`; the default port is `35000`. Multiple comma-separated hosts are resolved again on reconnect; SRV accepts only one host (`connection_string.ex`).
|
|
11
11
|
|
|
12
12
|
| Function | Line in `connection_string.ex` |
|
|
13
13
|
| --- | --- |
|
|
14
|
-
| `default/0` — localhost, **no credentials** |
|
|
15
|
-
| `development/0` — well-known local development credentials |
|
|
16
|
-
| `parse/1` |
|
|
14
|
+
| `default/0` — localhost, **no credentials** | |
|
|
15
|
+
| `development/0` — well-known local development credentials | |
|
|
16
|
+
| `parse/1` | |
|
|
17
17
|
|
|
18
18
|
Use `development/0` only for a local kernel configured to accept the well-known credentials, never for a shared or production kernel. A bare default connection does not substitute credentials; an authentication-required development kernel drops its session (`:stream_ended`) and it never registers.
|
|
19
19
|
|
|
@@ -23,9 +23,11 @@ Query parameters: `apiKey`, `disableTls`, `skipTlsValidation`, `certificatePath`
|
|
|
23
23
|
|
|
24
24
|
## Server trust and client certificates
|
|
25
25
|
|
|
26
|
-
`skip_tls_validation` defaults to **true** in both the struct and parser (`connection_string.ex
|
|
26
|
+
`skip_tls_validation` defaults to **true** in both the struct and parser (`connection_string.ex`). TLS encrypts traffic but does not authenticate the server with that default. Set `skipTlsValidation=false` outside local development. `disableTls` is only for a TLS-terminating proxy; the kernel itself serves TLS.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Requires `cratis_chronicle` 3.7.0 for client certificates.
|
|
29
|
+
|
|
30
|
+
`certificatePath` accepts PKCS#12 (`.p12`/`.pfx`) or PEM containing a certificate and matching private key. `certificatePassword` unlocks protected files. The identity is presented to both gRPC and the OAuth token endpoint; invalid files, wrong passwords or mismatched keys fail startup. PKCS#12 loading needs `openssl`. Client certificates cannot be combined with `disableTls=true`.
|
|
29
31
|
|
|
30
32
|
**A client certificate does not trust the server.** With a client certificate, put custom server-verification options on `GRPC.Credential` passed as `:cred` through `:grpc_options`, not in adapter-level `:transport_opts`. For example, this option excerpt assumes `trusted_der` is an approved DER-encoded CA certificate:
|
|
31
33
|
|
|
@@ -37,20 +39,22 @@ grpc_options: [
|
|
|
37
39
|
|
|
38
40
|
This credential configures the **gRPC channel only**; OAuth server verification still follows `skipTlsValidation` and the system trust store. Install the CA in that trust store when client credentials need it. Conflicting identity or adapter-level verification overrides are rejected at startup.
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
Requires `cratis_chronicle` 3.8.0 for the client-owned transport.
|
|
43
|
+
|
|
44
|
+
The client uses grpc 1.x and Mint 1.11+, owns its transport, and needs no `GRPC.Client.Supervisor`. If the application calls `GRPC.Stub.connect/2` independently, specify `adapter: GRPC.Client.Adapters.Mint` there too (or explicitly depend on Gun). Application-level Mint `client_settings` must retain `enable_push: false`; grpc replaces rather than merges those settings and the client rejects unsafe overrides.
|
|
41
45
|
|
|
42
46
|
## Credential-safe logging is still necessary
|
|
43
47
|
|
|
44
|
-
Chronicle's own process status redacts credentials, but dependency crash reports can expose gRPC headers, bearer tokens, API keys and Mint HPACK tables. Before starting the client, install the primary Logger filter from the
|
|
48
|
+
Chronicle's own process status redacts credentials, but dependency crash reports can expose gRPC headers, bearer tokens, API keys and Mint HPACK tables. Before starting the client, install the primary Logger filter from the [client crash-report guide](https://github.com/Cratis/Chronicle.Elixir/blob/main/Documentation/connections/crash-reports.md). It matches `Elixir.GRPC.Client`, `Elixir.GRPC.Channel`, and `Elixir.Mint.` report content and replaces reports with a notice.
|
|
45
49
|
|
|
46
50
|
Keep `handle_sasl_reports: false`. This is a safety net, not a guarantee: plain warning strings carrying exit reasons are not covered, and filters do not survive a Logger restart. Restrict production log access and rotate any credential already exposed. Never log connection strings.
|
|
47
51
|
|
|
48
52
|
## Keepalive and readiness
|
|
49
53
|
|
|
50
|
-
The kernel sends keepalive once a second; the client answers via a separate unary RPC (`keep_alive.ex
|
|
54
|
+
The kernel sends keepalive once a second; the client answers via a separate unary RPC (`keep_alive.ex`). Merely consuming the stream is insufficient. Kernel eviction after five seconds without an answer can silence reactors/reducers while appends continue working. Diagnose the connection when observers go quiet rather than assuming there are no events.
|
|
51
55
|
|
|
52
56
|
`:connected` means the first keepalive acknowledged the connection id, not that artifacts registered. Failed registration logs `Chronicle registration failed`, stays `:connected`, and retries every five seconds. Wait for `:registered` before claiming readiness.
|
|
53
57
|
|
|
54
58
|
Reconnect uses exponential backoff (1000 ms base, 10000 ms cap); `:retry_attempts` is accepted but ignored. Appends do not wait or queue during an outage: before a channel exists they return `{:error, :not_connected}`. Read model queries wait up to 30 seconds for registration. Transport failures return `{:error, %GRPC.RPCError{}}`; a timeout does not prove a write was not stored.
|
|
55
59
|
|
|
56
|
-
Seeders run after `:registered`, again on reconnect, and skip an event source with existing events (`seeding/runner.ex`, `seeding.ex`).
|
|
60
|
+
Seeders run after `:registered`, again on reconnect, and skip an event source with existing events (`seeding/runner.ex`, `seeding.ex`). This avoids startup duplicates; it does not remove duplicates already stored.
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
# Event sources and streams
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Chronicle.Elixir`: `Source/chronicle/lib/chronicle/event_sources/event_source.ex`, `event_sources/routing.ex`, `event_sequences/definition_routing.ex`, and `Documentation/event-sources.md`.
|
|
7
|
+
|
|
8
|
+
Requires `cratis_chronicle` 3.10.0 and Chronicle kernel 19.30.0 for definitions.
|
|
7
9
|
|
|
8
10
|
An event source definition gives appends a stable name, optional streams and default concurrency dimensions. It belongs to the append, not the event type; the same event type can go through different definitions. Appends without a definition keep their existing routing and have no registered-source metadata.
|
|
9
11
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
# Common pitfalls
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Chronicle.Elixir`.
|
|
7
7
|
|
|
8
8
|
| Pitfall | Why it bites |
|
|
9
9
|
| --- | --- |
|
|
10
|
-
| Copying
|
|
11
|
-
| Using `Chronicle.Concept` on
|
|
10
|
+
| Copying an older root README | Its module names may not exist; use namespaced `Chronicle.*` modules |
|
|
11
|
+
| Using `Chronicle.Concept` on a client that lacks it | Annotate fields with `pii/1,2` instead |
|
|
12
12
|
| Combining `pii` and `encrypted` | The same leaf raises `PiiAndEncryptedCombinedNotSupported`; neither is allowed on an `event_source_id: true` concept |
|
|
13
|
-
| Quoting the `VERSION` file | It is a
|
|
13
|
+
| Quoting the `VERSION` file | It is a build-time placeholder |
|
|
14
14
|
| Putting options only in `config.exs` | The client reads no application env; your app must pass child-spec keyword options |
|
|
15
15
|
| Omitting `:otp_app` | Discovery falls back to scanning every loaded module |
|
|
16
16
|
| Assuming the namespace default is `"default"` | It is `"Default"`; the moduledoc is wrong |
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
# Projection options and keys
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Chronicle.Elixir`: `Source/chronicle/lib/chronicle/read_models/read_model.ex`, `projections/projection.ex`, and `registration/coordinator.ex`.
|
|
7
7
|
|
|
8
8
|
`use Chronicle.ReadModels.ReadModel` accepts `id:`, `passive: true`, `not_rewindable: true`, and `event_sequence: "sequence-name"`. Defaults are the last module segment as id, active, rewindable, and `"event-log"`. Standalone `Chronicle.Projections.Projection` also accepts sequence/rewindability options and requires `model:`.
|
|
9
9
|
|
|
10
10
|
AutoMap maps matching event/model properties by default. `no_auto_map()` disables it for the whole projection; `no_auto_map([:balance, :status])` excludes only those properties so explicit mappings can own them.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Multi-word atom references are encoded as camelCase correctly: `set: [owner_name: :owner_name]` is the supported shape. AutoMap also handles shared multi-word names; boolean/float constants work without a string workaround. `join/2` requires `:on`. `:count` increments the named field once per occurrence.
|
|
13
13
|
|
|
14
|
-
## Composite keys and event context
|
|
14
|
+
## Composite keys and event context
|
|
15
|
+
|
|
16
|
+
Requires `cratis_chronicle` 3.9.0.
|
|
15
17
|
|
|
16
18
|
This module excerpt assumes a registered `MyApp.Events.AccountOpened` event. The key names and part order are preserved:
|
|
17
19
|
|
|
@@ -37,7 +39,9 @@ Composite parts accept event-field atoms, explicit expression strings and litera
|
|
|
37
39
|
|
|
38
40
|
**`Occurred.Year` is the calendar year, not the ISO week-year.** Do not assume that pairing it with `Occurred.Week` gives an ISO week identity at a year boundary; settle the required business key first.
|
|
39
41
|
|
|
40
|
-
## Dictionary counters
|
|
42
|
+
## Dictionary counters
|
|
43
|
+
|
|
44
|
+
Requires `cratis_chronicle` 3.1.0.
|
|
41
45
|
|
|
42
46
|
On a read model with `defstruct event_counts: %{}`, this excerpt increments one entry per event type:
|
|
43
47
|
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
2
2
|
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
3
3
|
|
|
4
|
-
# Upgrading
|
|
4
|
+
# Upgrading from older clients
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Source: `Cratis/Chronicle.Elixir` (`Source/chronicle/mix.exs`, `mix.lock`, `lib/chronicle/wire_result.ex`, `jobs.ex`, `event_sequences/event_log.ex`, `read_models.ex`, `seeding.ex`).
|
|
7
7
|
|
|
8
8
|
## Dependencies and wire compatibility
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
The wire contracts target the current Chronicle kernel generations, with renamed RPCs and unwrapped response envelopes. No public Elixir API was removed, but unauthorized or excepted command responses return `{:error, reason}` rather than looking successful. `Jobs.get/2` lists jobs then finds the id client-side; `append_many_for_event_sources/2` uses its dedicated RPC rather than the single-source path.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
- grpc **1.x** and Mint **1.11+** are direct dependencies; do not carry a mandatory `GRPC.Client.Supervisor` child forward from an older grpc setup.
|
|
16
|
-
- Contracts resolve to **19.30.0** in this tag's lockfile. Pair the kernel with the installed contracts descriptor; named event source definitions require **Chronicle 19.30.0+**.
|
|
12
|
+
- Use the `~>` requirement for the published release you intend (`{:cratis_chronicle, "~> 3.10"}` style) and the Elixir version `mix.exs` declares.
|
|
13
|
+
- grpc 1.x and Mint are direct dependencies; do not carry a mandatory `GRPC.Client.Supervisor` child forward from an older grpc setup.
|
|
14
|
+
- Contracts resolve from the lockfile. Pair the kernel with the installed contracts descriptor; named event source definitions need a kernel that supports them (see below).
|
|
17
15
|
- The first append on each channel runs a compatibility check, shared until reconnect. `{:error, {:incompatible_server, response}}` is a version/descriptor problem, not a transient append rejection. Update kernel and contracts as a compatible pair; do not bypass the preflight. Failed transport calls return `{:error, %GRPC.RPCError{}}`.
|
|
18
16
|
|
|
19
|
-
##
|
|
17
|
+
## Behavior to review in an older application
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
An application written against an older client may have relied on behavior that is now corrected:
|
|
22
20
|
|
|
23
|
-
|
|
|
21
|
+
| Behavior | Review |
|
|
24
22
|
| --- | --- |
|
|
25
|
-
| Reducers register successfully and process from the log start | Old events
|
|
26
|
-
| Multi-word projection fields and AutoMap
|
|
27
|
-
| `unique(:owner_email)` and `remove_constraint` registration work | Uniqueness is
|
|
28
|
-
| `ReadModels.query/2` is zero-based, default page 0 | Change first-page callers to `page: 0`; `page: 1` is
|
|
29
|
-
| Seeding skips an event source with existing events |
|
|
30
|
-
| Tail/next sequence lookups
|
|
23
|
+
| Reducers register successfully and process from the log start | Old events reach reducers that previously failed registration |
|
|
24
|
+
| Multi-word projection fields and AutoMap populate | Remove camelCase-string workarounds; inspect fields that were formerly empty |
|
|
25
|
+
| `unique(:owner_email)` and `remove_constraint` registration work | Uniqueness is enforced and release events can remove constraints |
|
|
26
|
+
| `ReadModels.query/2` is zero-based, default page 0 | Change first-page callers to `page: 0`; `page: 1` is the second page |
|
|
27
|
+
| Seeding skips an event source with existing events | Already-stored duplicates are not removed |
|
|
28
|
+
| Tail/next sequence lookups do not narrow implicitly to `"Default"` | Audit callers that depended on implicit routing narrowing |
|
|
29
|
+
|
|
30
|
+
Rejected appends (including concurrency/constraint failures) return `{:error, reason}`, never `:ok`; batch append metadata survives the rich append RPC. Handle errors on single, batch and transactional paths.
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Declared `unique(..., message: ...)` violation messages are preserved on single, batch and transactional appends. Retain the constraint name and diagnostics when handling violations rather than assuming every message came from the kernel.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Requires `cratis_chronicle` 3.10.0 and Chronicle kernel 19.30.0 for named event source definitions.
|
|
@@ -5,14 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
## Variants — mutually exclusive read models for one entity's lifecycle
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
>
|
|
12
|
-
> The 3.4.0 release reported a kernel `$eventSourceId` property-mapping limitation
|
|
13
|
-
> (Cratis/Chronicle#3924). This client-source verification does not establish
|
|
14
|
-
> whether kernel 19.x fixed it; verify the full variant transition against your
|
|
15
|
-
> kernel before claiming end-to-end support.
|
|
8
|
+
Requires `cratis_chronicle` 3.4.0 or later.
|
|
9
|
+
|
|
10
|
+
The client source does not establish whether the kernel maps `$eventSourceId` properties for variants; verify the full variant transition against your kernel before claiming end-to-end support.
|
|
16
11
|
|
|
17
12
|
Some entities do not have one shape for their whole lifetime — a work item is a
|
|
18
13
|
backlog entry until a pull request exists for it, then it is a pull request
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"input": "Connect an Elixir application, append through a registered event source, and query the first page of its read model.",
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
|
-
{ "kind": "skill-contains", "value": "
|
|
6
|
+
{ "kind": "skill-contains", "value": "`Cratis/Chronicle.Elixir`" },
|
|
7
7
|
{ "kind": "skill-contains", "value": "{:cratis_chronicle, \"~> 3.10\"}" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "ConnectionString.development()" },
|
|
9
9
|
{ "kind": "skill-contains", "value": "`~> 1.18`" },
|
|
10
10
|
{ "kind": "skill-contains", "value": "`nil` registers as string" },
|
|
11
11
|
{ "kind": "skill-contains", "value": "**The reactor context has six keys**" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "`sequence_number`, `occurred`, `event_source`, `observation_state`" },
|
|
13
|
-
{ "kind": "skill-contains", "value": "**
|
|
13
|
+
{ "kind": "skill-contains", "value": "**Page 1 is the second page**" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "`:retry_attempts` is accepted but ignored", "file": "references/connections.md" },
|
|
15
15
|
{ "kind": "skill-contains", "value": "Client certificates cannot be combined with `disableTls=true`", "file": "references/connections.md" },
|
|
16
16
|
{ "kind": "skill-contains", "value": "registered-source metadata", "file": "references/event-sources.md" },
|