@cratis/pi 8.2.2 → 8.4.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 +7 -9
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +25 -55
- package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +10 -7
- package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +8 -1
- package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -2
- package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +5 -5
- package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -3
- package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -4
- package/package/corpus/harnesses/copilot/instructions/components.instructions.md +6 -8
- package/package/corpus/harnesses/copilot/instructions/concepts.instructions.md +15 -2
- package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -5
- package/package/corpus/harnesses/copilot/instructions/criticality-tiers.instructions.md +7 -35
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +13 -6
- package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +8 -3
- package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +8 -2
- package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +12 -6
- package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +12 -7
- package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +8 -6
- package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +13 -9
- package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +9 -5
- package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +12 -8
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -4
- package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +12 -6
- package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +11 -7
- package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +8 -7
- package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +5 -3
- package/package/corpus/harnesses/copilot/instructions/general.instructions.md +2 -2
- package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +11 -6
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +13 -13
- package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +13 -39
- package/package/corpus/harnesses/copilot/instructions/go.instructions.md +18 -139
- package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +14 -60
- package/package/corpus/harnesses/copilot/instructions/issue-assignment.instructions.md +6 -9
- package/package/corpus/harnesses/copilot/instructions/java.instructions.md +8 -6
- package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +12 -7
- package/package/corpus/harnesses/copilot/instructions/local-verification-and-delivery.instructions.md +8 -5
- package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +11 -64
- package/package/corpus/harnesses/copilot/instructions/new-repository-intake.instructions.md +7 -28
- package/package/corpus/harnesses/copilot/instructions/operational-safety.instructions.md +26 -41
- package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +27 -5
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +8 -11
- package/package/corpus/harnesses/copilot/instructions/published-contracts.instructions.md +6 -25
- package/package/corpus/harnesses/copilot/instructions/react.instructions.md +9 -2
- package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +17 -5
- package/package/corpus/harnesses/copilot/instructions/review-reports.instructions.md +12 -94
- package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +5 -5
- package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +11 -8
- package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +9 -4
- package/package/corpus/harnesses/copilot/instructions/specs.instructions.md +7 -4
- package/package/corpus/harnesses/copilot/instructions/specs.scenarios.csharp.instructions.md +11 -2
- package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +8 -11
- package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +4 -7
- package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -8
- package/package/corpus/harnesses/copilot/instructions/verification-discipline.instructions.md +6 -9
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +29 -5
- package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +12 -3
- package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +11 -3
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +36 -24
- package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
- package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
- package/package/corpus/rules/ai-distribution.md +7 -9
- package/package/corpus/rules/authoring-skills.md +25 -55
- package/package/corpus/rules/browser.md +10 -7
- package/package/corpus/rules/code-health-policy.txt +3 -3
- package/package/corpus/rules/code-health.md +8 -1
- package/package/corpus/rules/code-quality.csharp.md +3 -2
- package/package/corpus/rules/code-quality.md +5 -5
- package/package/corpus/rules/code-quality.typescript.md +4 -3
- package/package/corpus/rules/codescene-reference.txt +34 -0
- package/package/corpus/rules/codescene.md +5 -4
- package/package/corpus/rules/components.md +6 -8
- package/package/corpus/rules/concepts.md +15 -2
- package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
- package/package/corpus/rules/criticality-tiers.md +7 -35
- package/package/corpus/rules/csharp.md +13 -6
- package/package/corpus/rules/dialogs.md +8 -3
- package/package/corpus/rules/discoverability.md +8 -2
- package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
- package/package/corpus/rules/documentation.md +12 -7
- package/package/corpus/rules/editing-cratis-docs.md +8 -6
- package/package/corpus/rules/efcore.md +13 -9
- package/package/corpus/rules/efcore.specs.md +9 -5
- package/package/corpus/rules/elixir.md +12 -8
- package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
- package/package/corpus/rules/framework-dotnet.md +12 -6
- package/package/corpus/rules/framework.md +11 -7
- package/package/corpus/rules/frontend-quality.md +8 -7
- package/package/corpus/rules/frontend-testing.md +5 -3
- package/package/corpus/rules/general.md +8 -10
- package/package/corpus/rules/github-actions.md +11 -6
- package/package/corpus/rules/glossary.md +13 -13
- package/package/corpus/rules/go-engineering.md +13 -39
- package/package/corpus/rules/go.md +18 -139
- package/package/corpus/rules/guards-and-fuses.md +14 -60
- package/package/corpus/rules/issue-assignment.md +6 -9
- package/package/corpus/rules/java.md +8 -6
- package/package/corpus/rules/kotlin.md +12 -7
- package/package/corpus/rules/local-verification-and-delivery.md +8 -5
- package/package/corpus/rules/local-work-artifacts.md +11 -64
- package/package/corpus/rules/new-repository-intake.md +7 -28
- package/package/corpus/rules/operational-safety.md +26 -41
- package/package/corpus/rules/orleans.md +27 -5
- package/package/corpus/rules/profiles.md +8 -11
- package/package/corpus/rules/published-contracts.md +6 -25
- package/package/corpus/rules/react.md +9 -2
- package/package/corpus/rules/reactors.md +17 -5
- package/package/corpus/rules/review-reports.md +12 -94
- package/package/corpus/rules/scripting.md +5 -5
- package/package/corpus/rules/specs.csharp.md +11 -8
- package/package/corpus/rules/specs.elixir.md +9 -4
- package/package/corpus/rules/specs.md +7 -4
- package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
- package/package/corpus/rules/specs.typescript.md +8 -11
- package/package/corpus/rules/storybook.md +4 -7
- package/package/corpus/rules/typescript.md +8 -8
- package/package/corpus/rules/verification-discipline.md +6 -9
- package/package/corpus/rules/vertical-slices.md +29 -5
- package/package/corpus/rules/writing-correct-examples.md +12 -3
- package/package/corpus/rules/writing-cratis-docs.md +11 -3
- package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
- package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
- package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
- package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
- package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
- package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
- package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
- package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
- package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
- package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
- package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
- package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
- package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
- package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +96 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
- package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
- package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
- package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
- package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
- package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
- package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
- package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
- package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +282 -55
- package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
- package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
- package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
- package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
- package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
- package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
- package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
- package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
- package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
- package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
- package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +381 -31
- package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
- package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
- package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
- package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
- package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
- package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
- package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
- package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
- package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
- package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
- package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
- package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
- package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
- package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
- package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
- package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
- package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
- package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
- package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
- package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
- package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
- package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
- package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
- package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
- package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
- package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
- package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
- package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
- package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
- package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
- package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
- package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
- package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
- package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
- package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
- package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
- package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
- package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
- package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
- package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
- package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
- package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
- package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
- package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +94 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
- package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +188 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +60 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
- package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +59 -41
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
- package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
- package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +112 -43
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
- package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
- package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
- package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
- package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
- package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +66 -52
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
- package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
- package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
- package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
- package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
- package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
- package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
- package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
- package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
- package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
- package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
- package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
- package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
- package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
- package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
- package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
- package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
- package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
- package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
- package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
- package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
- package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
- package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
- package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
- package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
- package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
- package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
- package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
- package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
- package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
- package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
- package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
- package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
- package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
- package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
- package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
- package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
- package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
- package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
- package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
- package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
- package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
- package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
- package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
- package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
- package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
- package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
- package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
- package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
- package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
- package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
- package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
- package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
- package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
- package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
- package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
- package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
- package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
- package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
- package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
- package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
- package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
- package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
- package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
- package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
- package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
- package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
- package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
- package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
- package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
- package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
- package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
- package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
- package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
- package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
- package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
- package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
- package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
- package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
- package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
- package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
- package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
- package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
- package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
- package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
- package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
- package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
- package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
- package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
- package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
- package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
- package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
- package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
- package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
- package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
- package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
- package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
- package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
- package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
- package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
- package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
- package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
- package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
- package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
- package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
- package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
- package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
- package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
- package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
- package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
- package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
- package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
- package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
- package/package/corpus/skills/cratis-observability/references/go.md +292 -0
- package/package/corpus/skills/cratis-observability/references/java.md +236 -0
- package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
- package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
- package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
- package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
- package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
- package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
- package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
- package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
- package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
- package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
- package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
- package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
- package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
- package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
- package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
- package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
- package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
- package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
- package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
- package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
- package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
- package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
- package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
- package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
- package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
- package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
- package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
- package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
- package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
- package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
- package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
- package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
- package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
- package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
- package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
- package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
- package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
- package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
- package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
- package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
- package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
- package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
- package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
- package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
- package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
- package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
- package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
- package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
- package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
- package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
- package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
- package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
- package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
- package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
- package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
- package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
- package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
- package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
- package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
- package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
- package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
- package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
- package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
- package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
- package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
- package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
- package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
- 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 +6 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
- package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
- package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
- package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
- package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
- package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
- package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
- package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
- package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
- package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
- package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
- package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
- package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
- package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
- package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
- package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
- package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
- package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
- package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
- package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
- package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
- package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
- package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
- package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
- package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
- package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
- package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
- package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
- package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
- package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
- package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
- package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
- package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
- package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
- package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
- package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
- package/package/profile-catalog.json +34 -2
- package/package.json +1 -1
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
- package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
- package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
- package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
- package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
- package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
- package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
- package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
- package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
- package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
- package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
- package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
- package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
- package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
- package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
- package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
- package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
- package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
- package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
- package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
- package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
- package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
- package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
- package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
- package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
- package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
- package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
- package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
- package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
- package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
- package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
- package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
- package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
- package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
- package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
- package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
- package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
- package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
- package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
- package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
|
@@ -1,124 +1,85 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Record events with the C# client
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
- Read back the accepted registration
|
|
6
|
-
- Read when an existing author registered
|
|
7
|
-
- Choose a create-only append for an unused source
|
|
8
|
-
- Related skills
|
|
9
|
-
- Decide whether another append is safe
|
|
10
|
-
- Observation commands
|
|
11
|
-
|
|
12
|
-
Declare the fact in the registration feature. This is all the event declaration needs:
|
|
13
|
-
|
|
14
|
-
```csharp
|
|
15
|
-
using Cratis.Chronicle.Events;
|
|
16
|
-
|
|
17
|
-
namespace Library.Features.Authors.Registration;
|
|
18
|
-
|
|
19
|
-
[EventType] public record AuthorRegistered(string Name);
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
1. For a writer, import `AuthorId` and `AuthorName` from Name a domain value (`cratis-fundamentals-name-value` skill in `cratis/fundamentals`). Reference `Cratis.Chronicle` in the backend. Keep the registration code in `Features/Authors/Registration/`.
|
|
23
|
-
2. Mark the event `[EventType]`. The event-type ID is a plain string naming the schema, not the author. It defaults to the type name; if you rename the type later, retain its old ID with `[EventType("AuthorRegistered")]`.
|
|
24
|
-
3. Inside Arc, return the fact from the handler (`cratis-arc-declare-command` skill in `cratis/arc/csharp`). For a standalone writer, append to `IEventLog`. Use the caller's `AuthorId` as the event source ID and return the append result.
|
|
25
|
-
|
|
26
|
-
**Standalone writer only:**
|
|
3
|
+
Add `Cratis.Chronicle` to the writer project and connect to a running kernel. Names are illustrative. For local development:
|
|
27
4
|
|
|
28
5
|
```csharp
|
|
29
|
-
|
|
6
|
+
using System;
|
|
7
|
+
using Cratis.Chronicle;
|
|
8
|
+
using Cratis.Chronicle.Connections;
|
|
30
9
|
using Cratis.Chronicle.Events;
|
|
31
10
|
using Cratis.Chronicle.EventSequences;
|
|
32
|
-
using Library.Features.Authors;
|
|
33
|
-
|
|
34
|
-
namespace Library.Features.Authors.Registration;
|
|
35
11
|
|
|
36
|
-
|
|
12
|
+
using var client = new ChronicleClient(ChronicleConnectionString.Development);
|
|
13
|
+
var store = await client.GetEventStore("Dispatch", "depot-east");
|
|
14
|
+
var eventLog = store.EventLog;
|
|
15
|
+
var shipmentId = new ShipmentId(Guid.NewGuid()); // keep this ID for later facts about the same shipment
|
|
16
|
+
var result = await eventLog.Append(shipmentId, new ShipmentPacked(3));
|
|
17
|
+
if (!result.IsSuccess)
|
|
37
18
|
{
|
|
38
|
-
|
|
39
|
-
|
|
19
|
+
// Return a refusal: inspect ConstraintViolations, ConcurrencyViolation and Errors.
|
|
20
|
+
return;
|
|
40
21
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
## Read back the accepted registration
|
|
44
|
-
|
|
45
|
-
One-off wiring check in a disposable namespace, not a committed spec of append or readback. For an uncovered command outcome, use the backend scenario (`cratis-specifications-exercise-backend` skill in `cratis/application`).
|
|
22
|
+
var position = result.SequenceNumber;
|
|
46
23
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
var registrations = await eventLog.GetForEventSourceIdAndEventTypes(
|
|
51
|
-
authorId, [typeof(AuthorRegistered).GetEventType()]);
|
|
52
|
-
var stored = registrations.Single(e => e.Context.SequenceNumber == result.SequenceNumber);
|
|
53
|
-
var name = ((AuthorRegistered)stored.Content).Name;
|
|
54
|
-
var registeredAt = stored.Context.Occurred;
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Read when an existing author registered
|
|
58
|
-
|
|
59
|
-
For a read-only lookup by `authorId`, query `IEventLog` for that author and the `AuthorRegistered` event type. Do not call `Register` to obtain a sequence number. If the slice allows one registration per author ID, add this method to `AuthorRegistry`. It returns the stored occurrence time or no timestamp when the author has not registered:
|
|
60
|
-
|
|
61
|
-
```csharp
|
|
62
|
-
public async Task<DateTimeOffset?> GetRegistrationTime(AuthorId authorId)
|
|
63
|
-
{
|
|
64
|
-
var registrations = await eventLog.GetForEventSourceIdAndEventTypes(
|
|
65
|
-
authorId, [typeof(AuthorRegistered).GetEventType()]);
|
|
66
|
-
var stored = registrations.SingleOrDefault();
|
|
67
|
-
return stored?.Context.Occurred;
|
|
68
|
-
}
|
|
24
|
+
public record ShipmentId(Guid Value) : EventSourceId<Guid>(Value);
|
|
25
|
+
[EventType]
|
|
26
|
+
public record ShipmentPacked(int Cartons);
|
|
69
27
|
```
|
|
70
28
|
|
|
71
|
-
|
|
29
|
+
## Common mistakes
|
|
72
30
|
|
|
73
|
-
|
|
31
|
+
- Await the append and inspect `IsSuccess`; returning a result does not mean the fact was accepted.
|
|
32
|
+
- For related facts reuse the source ID, not a new GUID per append.
|
|
74
33
|
|
|
75
|
-
|
|
34
|
+
In a configured host inject `IEventLog` for the intended store/namespace; select a different sequence only deliberately (`store.GetEventSequence(id)`). The client discovers event types in its configured assemblies. The parameterless `[EventType]` is the default: the ID is the type name, at the first generation. Pin an explicit ID such as `[EventType("shipment-packed")]` only to keep a stored ID stable across a type rename, to resolve a name collision, or to match an ID another system publishes. For an incompatible shape pin the same ID with `generation: 2` and supply the migration (`cratis-chronicle-evolve-event`). `[Tombstone]` marks terminal meaning; it does not enforce closure. The Chronicle analyzer warns on a nullable property of an event type: record an optional fact as a separate event type instead.
|
|
76
35
|
|
|
77
|
-
|
|
78
|
-
var unused = new ConcurrencyScopeBuilder()
|
|
79
|
-
.ExpectingNoMatchingEvent()
|
|
80
|
-
.WithEventSourceId(authorId)
|
|
81
|
-
.Build();
|
|
82
|
-
return eventLog.Append(authorId, new AuthorRegistered(name.Value), concurrencyScope: unused);
|
|
83
|
-
```
|
|
36
|
+
`IsSuccess` is true only when none of these holds. Branch on the cause rather than reporting one generic failure:
|
|
84
37
|
|
|
85
|
-
|
|
38
|
+
| Check | Meaning | Response |
|
|
39
|
+
| --- | --- | --- |
|
|
40
|
+
| `HasConstraintViolations` (`ConstraintViolations`) | An append constraint refused the fact, or the content does not match the type's registered schema (for example a missing required property) | Business refusal; report the named rule, do not retry. A schema refusal has `ConstraintType` `ConstraintType.Schema` (`Cratis.Chronicle.Events.Constraints`) and the failing JSON path in `Details["path"]`; `Errors` stays empty. Report the path and fix the producer of the content: the same payload is refused again |
|
|
41
|
+
| `HasConcurrencyViolations` (`ConcurrencyViolation`) | A competing write moved the guarded history | Read again, decide again, then append |
|
|
42
|
+
| `HasErrors` (`Errors`) | The kernel could not record it | With `IsRetryable`, retry unchanged after `RetryAfter`. A keyed append whose error starts with `IdempotencyKeyUnsettled` is also retryable although `IsRetryable` is false ([keyed appends](csharp-coordination.md)). Otherwise surface the failure |
|
|
86
43
|
|
|
87
|
-
|
|
44
|
+
A refused append records nothing; use `SequenceNumber` only after success. `WasAlreadyAppended` on a successful result means the same idempotency key was already recorded: nothing new was written.
|
|
88
45
|
|
|
89
|
-
|
|
46
|
+
## Property types in events
|
|
90
47
|
|
|
91
|
-
|
|
92
|
-
- [Protect personal data](../../cratis-chronicle-protect-personal-data/SKILL.md) before recording identifying member details.
|
|
48
|
+
Chronicle describes each event type with a schema derived from the record, and uses it to read stored content back. Read models follow the same rules.
|
|
93
49
|
|
|
94
|
-
-
|
|
95
|
-
- [
|
|
50
|
+
- **Default:** primitives, enums, nested records, collections, and `ConceptAs<T>` value types (`using Cratis.Concepts;`) (stored as their underlying primitive).
|
|
51
|
+
- **Location, route or area:** `Point` (longitude first, then latitude), `LineString` and `Polygon` from `Cratis.Geospatial`, e.g. `new Point(10.456, 42.123)` or `new Polygon(Shell: new LinearRing(points), Holes: [])`. A ring's first and last point are the same. Projections copy them with auto-mapping; never split a geometry into coordinate properties.
|
|
52
|
+
- **A type with its own JSON converter (edge case):** when the converter writes a different shape than the type's members, declare that shape with `[JsonSchemaType(typeof(string))]` (`Cratis.Chronicle.Schemas`) beside `[JsonConverter]`. It changes only the schema, not serialization, and keeps `[PII]` and nullability.
|
|
96
53
|
|
|
97
|
-
##
|
|
54
|
+
## Route one decision
|
|
98
55
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
For a lost batch reply, retain the prepared route, metadata, ordered payloads and stable operation key. Reissue the same call only to reconcile the uncertain attempt:
|
|
56
|
+
Use `Cratis.Chronicle.EventSources` to declare a route shared by writers:
|
|
102
57
|
|
|
103
58
|
```csharp
|
|
104
|
-
|
|
105
|
-
|
|
59
|
+
[EventSource("Shipment", Description = "Depot shipment", Concurrency = ConcurrencyDimensions.EventSourceId)]
|
|
60
|
+
[EventStream("Packing")]
|
|
61
|
+
public class Shipment : IEventSource;
|
|
106
62
|
```
|
|
107
63
|
|
|
108
|
-
`
|
|
109
|
-
|
|
110
|
-
To preserve distinct guards for one source, pass ordered pairs instead of a dictionary:
|
|
64
|
+
`store.EventSources.All` lists definitions; `GetFor(typeof(Shipment))` or `GetFor("Shipment")` resolves one. A stream declaration can also specify `Description` and `Concurrency`. Supply the stream **instance**; unknown names or contradictory explicit metadata are refused.
|
|
111
65
|
|
|
112
66
|
```csharp
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var
|
|
67
|
+
var routed = await eventLog.AppendThroughEventSource(typeof(Shipment), shipmentId, packed,
|
|
68
|
+
eventStream: "Packing", eventStreamId: packingRunId);
|
|
69
|
+
var batch = await eventLog.AppendMany(shipmentId, new object[] { packed, sealedCarton });
|
|
70
|
+
var mixed = await eventLog.AppendMany([
|
|
71
|
+
new EventForEventSourceId(shipmentId, packed) { EventSource = typeof(Shipment), EventStream = "Packing", EventStreamId = packingRunId },
|
|
72
|
+
new EventForEventSourceId(depotId, spaceReleased, cause) { Occurred = releaseTime }
|
|
73
|
+
]);
|
|
116
74
|
```
|
|
117
75
|
|
|
118
|
-
|
|
76
|
+
These are alternatives. `AppendManyThroughEventSource` routes one source's batch through a definition. A definition route is checked before anything is sent: `UnknownEventSource` (the definition is not registered in this store), `EventStreamDoesNotBelongToEventSource` (the named stream is not declared on it) and `EventRoutingContradictsEventSource` (an explicit `eventSourceType` or `eventStreamType` differs from the definition) are thrown, not returned in the result. Fix the route; do not drop the definition to make the append pass. Check `IsSuccess` before consuming `SequenceNumbers`. For a free-form route use `eventSourceType`, `eventStreamType`, `eventStreamId`; absent overrides use the default source type, all-stream type and default stream ID. Use `occurred:` for historical time (otherwise approximately append time), `correlationId:` for the operation, `subject:` to override the subject derived from a `[property: Subject]` member. Ordinary append records the current identity, not an import entry's `CausedBy`.
|
|
77
|
+
|
|
78
|
+
The default optimistic strategy isn't a guard for an earlier decision read (first append into an empty scope isn't checked by default). Pass `concurrencyScope: new ConcurrencyScope(observedTail, EventSourceId: shipmentId)` from `Cratis.Chronicle.EventSequences.Concurrency`, or `concurrencyScopes:` keyed by source for mixed entries. Re-decide after a conflict; see `cratis-chronicle-protect-decision`.
|
|
119
79
|
|
|
120
|
-
|
|
80
|
+
## Choose a conditional path
|
|
121
81
|
|
|
122
|
-
|
|
82
|
+
- [Append coordination](csharp-coordination.md): tags, enrichment, operation builders, keyed retries, prepared content, transactional completion and observer progress.
|
|
83
|
+
- [History and bootstrap](csharp-history.md): reads, correction, closure, copy, redaction, import sessions and seeds.
|
|
123
84
|
|
|
124
|
-
|
|
85
|
+
**Not supported in this SDK:** a public prepared-batch append (use atomic `AppendMany` for a batch or `Prepare` for a single serialized snapshot); manual reopening on `IEventSequence` (use an authorized administrative workflow, not a different stream ID); a named-tag predicate on `EventSequenceFilter` or any other typed named-tag query (look events up through `IEventSequences.QueryEventsWithNamedTags` in the `Cratis.Chronicle.Contracts` gRPC contract; an event store subscription's `WithNamedTag(name, value)` filters what the subscription forwards and is not a lookup).
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Elixir: audit context, units of work and append errors
|
|
2
|
+
|
|
3
|
+
Names below are illustrative. `Cratis.Chronicle` delegates the functions shown here.
|
|
4
|
+
|
|
5
|
+
## Who, why and which operation
|
|
6
|
+
|
|
7
|
+
Every stored event carries an identity (who), a causation chain (what led to it) and a correlation ID (which operation). All three are **process-scoped**: set them once where a request or job enters, and every append from that process carries them. They are not inherited by spawned processes.
|
|
8
|
+
|
|
9
|
+
```elixir
|
|
10
|
+
alias Cratis.Chronicle.{Auditing.CausationManager, Correlation.CorrelationId, Identity}
|
|
11
|
+
|
|
12
|
+
Cratis.Chronicle.set_correlation_id(CorrelationId.create())
|
|
13
|
+
Cratis.Chronicle.set_identity(Identity.new(operator.id, operator.name, operator.user_name))
|
|
14
|
+
CausationManager.clear()
|
|
15
|
+
CausationManager.define_root(%{request_id: request_id})
|
|
16
|
+
CausationManager.add("Access.OpenGate", %{gate_id: gate_id})
|
|
17
|
+
|
|
18
|
+
try do
|
|
19
|
+
EventLog.append(gate_id, %GateOpened{opening_width: 120})
|
|
20
|
+
after
|
|
21
|
+
Cratis.Chronicle.clear_correlation_id()
|
|
22
|
+
Cratis.Chronicle.clear_identity()
|
|
23
|
+
CausationManager.clear()
|
|
24
|
+
end
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Always reset in `after`: a server may reuse one process for several requests, and leftover context leaks into the next one.
|
|
28
|
+
|
|
29
|
+
| Context | Set, read, reset | When nothing is set |
|
|
30
|
+
| --- | --- | --- |
|
|
31
|
+
| Identity | `set_identity(identity)`, `current_identity()`, `clear_identity()` | The event records `Identity.system()`, so a person's action looks like a system action |
|
|
32
|
+
| Correlation | `set_correlation_id(id_or_string)`, `current_correlation_id()`, `clear_correlation_id()` | Each append gets a new random ID; two appends share one only if you set it. `clear_correlation_id()` stores a fresh ID rather than removing it |
|
|
33
|
+
| Causation | `CausationManager.define_root(properties)`, `add(type, properties)`, `get_current_chain()`, `clear()` | Only an empty root entry and the client's own append entry are recorded |
|
|
34
|
+
|
|
35
|
+
- **Identity:** `Identity.new(subject, name, user_name \\ "", on_behalf_of \\ nil)`. Pass the person as `on_behalf_of` when a system actor acts for them; the whole chain is stored. `Identity.without_duplicates(identity)` drops repeated subjects from a long chain. Well-known values: `Identity.system()`, `Identity.not_set()`, `Identity.unknown()`.
|
|
36
|
+
- **Correlation:** `CorrelationId.create()` makes a new ID; `CorrelationId.new(string)` wraps one received from a caller.
|
|
37
|
+
- **Causation:** the `type` names the step, typically the command's full name. Properties are stored permanently with every event: no secrets or personal data.
|
|
38
|
+
- **One call only:** `identity:`, `correlation_id:` and `causation:` (a list of `Cratis.Chronicle.Auditing.CausationEntry.new(type, properties)`) on an append override the process context for that call.
|
|
39
|
+
- **Another process:** read `current_correlation_id()` and `current_identity()` before spawning and set them again inside the task; give the task its own causation root.
|
|
40
|
+
|
|
41
|
+
## Unit of work
|
|
42
|
+
|
|
43
|
+
`Cratis.Chronicle.decide/2` is the default (see the main reference). Alternatives:
|
|
44
|
+
|
|
45
|
+
| Form | Behaviour |
|
|
46
|
+
| --- | --- |
|
|
47
|
+
| `Cratis.Chronicle.with_unit_of_work(fn unit -> ... end)` | Commits whatever the function returns, including an error tuple, and returns that value. **Raises** when the commit is refused (`Cratis.Chronicle.ReadModels.DecisionConflict` for a stale decision read, otherwise `RuntimeError`) and rolls back when the function raises. Use `decide/2` when a refusal must be a value |
|
|
48
|
+
| `unit = Cratis.Chronicle.begin_unit_of_work()` | You own it: `UnitOfWork.commit(unit)` returns `:ok` or `{:error, reason}`; `UnitOfWork.rollback(unit)` discards. After a failed commit the unit stays current until you retry or roll back. Stop it with `Agent.stop(unit)` when done |
|
|
49
|
+
|
|
50
|
+
`UnitOfWork` is `Cratis.Chronicle.Transactions.UnitOfWork`. While a unit is current in the process, plain `append` and `append_many` buffer into it instead of writing. Inspect with `Cratis.Chronicle.current_unit_of_work()`, `UnitOfWork.has_current?()`, `UnitOfWork.get_events(unit)`, `UnitOfWork.is_completed?(unit)`, `UnitOfWork.is_success?(unit)` and `UnitOfWork.last_committed_sequence_number(unit)`. `UnitOfWork.on_completed(unit, fn unit -> ... end)` runs a callback after commit or rollback. A unit is current only in the process that began it: in another process, `UnitOfWork.set_current(unit)` adopts it, and `UnitOfWork.try_get_for(correlation_id)` finds one by its correlation ID (`{:ok, unit}` or `:error`).
|
|
51
|
+
|
|
52
|
+
A unit targets one namespace and one event sequence; buffering for another raises `ArgumentError`. Exceptions that signal a programming error, not a business outcome: `NoUnitOfWorkStarted` (asked for the current unit when none exists), `UnitOfWorkIsAlreadyCommitted`, `UnitOfWorkIsAlreadyRolledBack` (all in `Cratis.Chronicle.Transactions`).
|
|
53
|
+
|
|
54
|
+
## Errors to react to
|
|
55
|
+
|
|
56
|
+
Plain `append` and `append_many` return `:ok` or one of these. The `*_with_result` forms return the refusal as `{:error, %AppendResult{}}` instead of the first three rows; every other row is the same.
|
|
57
|
+
|
|
58
|
+
| `{:error, reason}` | Meaning | Reaction |
|
|
59
|
+
| --- | --- | --- |
|
|
60
|
+
| `{:constraint_violations, violations}` | A constraint or the event schema refused the event | Business outcome: report it. `violations` are raw kernel maps here; use `append_with_result` for the named `constraint_name` and `message` |
|
|
61
|
+
| `{:concurrency_violations, violations}` | The guarded tail moved | Re-read and re-decide. On an `AppendResult` each violation names `event_source_id`, `expected_sequence_number` and `actual_sequence_number` |
|
|
62
|
+
| `{:append_errors, errors}` | The kernel rejected the append for another reason | Report; do not retry unchanged |
|
|
63
|
+
| `:not_connected` | No channel yet, or reconnecting | Wait for readiness or fail the request |
|
|
64
|
+
| `{:incompatible_server, response}` | Client contracts and kernel do not match | Deployment mismatch; align them, do not retry |
|
|
65
|
+
| `{:unknown_event_type, module}` | The struct does not `use Cratis.Chronicle.Events.EventType` | Fix the code |
|
|
66
|
+
| `{:payload_too_large, size, limit}` | Serialized payload above the limit (4 MiB by default), refused before sending | Split the batch or shrink the event. `config :cratis_chronicle, max_payload_bytes: bytes` raises the limit only if the kernel accepts it; `:infinity` disables the guard |
|
|
67
|
+
| `{:unknown_event_source, source}`, `{:event_stream_does_not_belong_to_event_source, source, stream}`, `{:event_routing_contradicts_event_source, source, dimension, expected, actual}`, `{:event_stream_without_event_source, stream}` | The declared route does not resolve; nothing was sent | Fix the route options |
|
|
68
|
+
| `{:duplicate_concurrency_scope, source_id}`, `{:incompatible_concurrency_scopes, source_id, keys}` | One batch or unit holds unequal guards for one source ID | Use one guard per source ID per batch |
|
|
69
|
+
| `:prepared_event_belongs_to_another_sequence` | A prepared event was appended with another client, namespace or sequence | Prepare it with the same options |
|
|
70
|
+
| `{:too_many_event_locators, 500}` | `Streams.get_metadata/2` was given more than 500 positions | Read in pages |
|
|
71
|
+
|
|
72
|
+
A call naming a client that was never started raises `ArgumentError` ("no persistent term stored with this key"): fix the `:client` option or the supervision order.
|
|
73
|
+
|
|
74
|
+
A transport error after sending does not prove the event was not stored. Reconcile by reading before appending again.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Import and seed in Elixir
|
|
2
|
+
|
|
3
|
+
## Import existing history
|
|
4
|
+
|
|
5
|
+
Use `Cratis.Chronicle.EventSequences.EventForEventSourceId` entries, not raw event structs. Import stages and validates before commit, preserves order within the import and assigns new positions. Ordinary writes can continue. Imports run outside an active unit of work.
|
|
6
|
+
|
|
7
|
+
```elixir
|
|
8
|
+
alias Cratis.Chronicle.EventSequences.{EventForEventSourceId, EventSequence}
|
|
9
|
+
alias Cratis.Chronicle.Imports
|
|
10
|
+
sequence = EventSequence.new("event-log", namespace: "terminal-west")
|
|
11
|
+
entries = Stream.map(rows, fn row ->
|
|
12
|
+
%EventForEventSourceId{event_source_id: row.gate_id, event: row.event,
|
|
13
|
+
occurred: row.opened_at, source_sequence_number: row.position,
|
|
14
|
+
idempotency_key: row.external_id, named_tags: %{"facility" => row.site}}
|
|
15
|
+
end)
|
|
16
|
+
EventSequence.import(sequence, entries, progress: self())
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Carry original route, subject, tags, correlation UUID, causation chain, identity and generation on entries when known. Source position is lineage, not a requested target position. `EventSequence.import_async(sequence, entries)` returns a task. Inspect the import result, not just successful upload. The default `:on_invalid` is `:reject` (commit nothing on invalid data); choose `:skip` only when partial acceptance is intended. `wait_for_commit: false` returns without waiting for final commit.
|
|
20
|
+
|
|
21
|
+
For independently produced batches:
|
|
22
|
+
|
|
23
|
+
```elixir
|
|
24
|
+
with {:ok, session} <- EventSequence.begin_import(sequence, import_id: import_uuid),
|
|
25
|
+
{:ok, session} <- Imports.add(session, entries) do
|
|
26
|
+
Imports.complete(session)
|
|
27
|
+
end
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Retain the session returned by each `add`. `Imports.abandon(session)` discards staging. `Imports.reattach(import_uuid, opts)` reconnects in the same history; continue after `session.events_acknowledged`. Alternatively `EventSequence.import(sequence, original_entries, resume: import_uuid)` skips acknowledged entries; supply the same ordered input. `Imports.get(import_uuid, opts)` reads status; `Imports.observe(import_uuid, opts)` returns `{:ok, pid}` for progress messages to the caller (`:to` overrides recipient); `Imports.unobserve(pid)` stops it. With the enumerable helper use `progress: self()`.
|
|
31
|
+
|
|
32
|
+
Limit upload concurrency with `:max_chunks_in_flight` (4 by default), chunk size with `:max_events_per_chunk` below kernel limits, connection retries with `:max_chunk_attempts` (5 attempts), and delay with `retry_delay: fn attempt -> attempt * 100 end`. `:poll_interval` defaults to 500 ms while waiting for commit; `:timeout` defaults to 60 seconds per RPC. Resending an acknowledged chunk does not duplicate its events.
|
|
33
|
+
|
|
34
|
+
## Seed repeatable startup facts
|
|
35
|
+
|
|
36
|
+
Register the module in the client's `seeders: [GateSeeds]` and register the event types. Return the updated builder:
|
|
37
|
+
|
|
38
|
+
```elixir
|
|
39
|
+
defmodule GateSeeds do
|
|
40
|
+
use Cratis.Chronicle.Seeding.Seeder
|
|
41
|
+
alias Cratis.Chronicle.Seeding
|
|
42
|
+
|
|
43
|
+
def seed(builder) do
|
|
44
|
+
Seeding.for_namespace(builder, "terminal-west", fn scoped ->
|
|
45
|
+
Seeding.for_event_source(scoped, "west-gate", [%GateOpened{opening_width: 120}])
|
|
46
|
+
end)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Use `Seeding.for(builder, GateOpened, gate_id, facts)` for a homogeneous list; `for_event_source` also accepts mixed types. Outside `for_namespace`, declarations are global. For explicit bootstrap use `Seeding.discover(builder, [GateSeeds])` with the configured builder and pass the returned builder to `Seeding.register/1`. Keep intended occurrences stable across startup; removing a declaration is not a deletion request.
|
|
@@ -1,33 +1,61 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Record events in Elixir
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Names here are illustrative. With `:cratis_chronicle` in the Mix dependencies, define the fact and give struct fields typed defaults: the SDK derives the schema from them and serializes snake_case keys as camelCase.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
```elixir
|
|
6
|
+
defmodule GateOpened do
|
|
7
|
+
use Cratis.Chronicle.Events.EventType, id: "gate-opened", tags: ["access"]
|
|
8
|
+
defstruct opening_width: 0
|
|
9
|
+
end
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
defmodule GateSource do
|
|
12
|
+
use Cratis.Chronicle.EventSources.EventSource, name: "Gate", description: "Access gate"
|
|
13
|
+
stream "Shift", concurrency: [:event_source_id, :event_stream_id]
|
|
14
|
+
end
|
|
15
|
+
```
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
Supervise `{Cratis.Chronicle.Client, event_store: "access", event_types: [GateOpened], event_sources: [GateSource]}` with the connection configured for the target kernel. Register other event modules used by the writer too. A source ID is a binary instance key. Use the event log unless targeting another sequence; `:client`, `:namespace` and `:event_sequence_id` select the history (defaults: `Cratis.Chronicle.Client`, configured namespace, `"event-log"`).
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
## Declare and append
|
|
14
20
|
|
|
15
21
|
```elixir
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
alias Cratis.Chronicle.EventSequences.{AppendResult, EventForEventSourceId, EventLog, EventSequence, Streams}
|
|
23
|
+
event = %GateOpened{opening_width: 120}
|
|
24
|
+
opts = [namespace: "terminal-west"]
|
|
25
|
+
case EventLog.append_with_result(gate_id, event, opts) do
|
|
26
|
+
{:ok, result} -> {:ok, result.sequence_number}
|
|
27
|
+
{:error, %AppendResult{} = r} -> {:error, {r.constraint_violations, r.concurrency_violations, r.errors}}
|
|
28
|
+
{:error, reason} -> {:error, reason}
|
|
19
29
|
end
|
|
20
30
|
```
|
|
21
31
|
|
|
22
|
-
|
|
32
|
+
- Keep `:id` stable. Generation defaults to 1. Set `generation: 2` on the current shape and `generation_for: GateOpened, generation: 1` on a historical module for that same ID; see `cratis-chronicle-evolve-event`. Use `:types` for nested type hints. `public: true` exposes the type to other stores, not the event itself.
|
|
33
|
+
- Declare `tombstone: true` on a terminal type, `compensation_for: GateOpened` on its compensating type. Use `subject: :operator_id` on an event with that subject field. An explicit append `:subject` wins; otherwise the kernel falls back to the source ID when no subject is supplied.
|
|
34
|
+
- For a declared route, `EventLog.append(gate_id, event, opts ++ [event_source: GateSource, event_stream: "Shift", event_stream_id: shift_id])`. Source and stream accept descriptions and default concurrency dimensions (source ID/type and stream ID/type). Inspect `Cratis.Chronicle.EventSources.describe!([GateSource])`. A bad route returns an error before anything is sent: `{:error, {:unknown_event_source, reference}}`, `{:error, {:event_stream_does_not_belong_to_event_source, source, stream}}` or `{:error, {:event_routing_contradicts_event_source, source, dimension, expected, actual}}`. For free-form routing supply `:event_source_type`, `:event_stream_type`, `:event_stream_id`; omission leaves routing to the kernel.
|
|
35
|
+
- Override `occurred: occurred_at` with a `DateTime` for historical occurrence; otherwise the kernel timestamps. `tags: ["inspection"]` merges plain tags with type tags. Propagate `correlation_id: workflow_uuid`, `causation: entries` (list of `Cratis.Chronicle.Auditing.CausationEntry`) and `identity: actor` (`Cratis.Chronicle.Identity`) for workflow, causes and actor respectively. Neither identity nor correlation is the subject.
|
|
36
|
+
- For a state-dependent write, `concurrency_scope: [sequence_number: tail, event_source_id: gate_id]` overrides definition dimensions. Narrow by `:event_source_type`, `:event_stream_type`, `:event_stream_id`, `:event_types` as needed. Without configured guards plain append doesn't protect a previous read. Re-decide on conflict; do not blindly retry after transport failure.
|
|
37
|
+
- `EventLog.append_many_with_result(gate_id, facts, opts)` returns the assigned `sequence_numbers` on success. Use `append_many` when only success/error is needed. For a mixed-source atomic batch build an ordered list of `%EventForEventSourceId{event_source_id: gate_id, event: event, event_source: GateSource, event_stream: "Shift", event_stream_id: shift_id}` and call `EventLog.append_many_for_event_sources(entries, opts)`. Put routing and concurrency on entries; first declared scope per source wins. Tags, occurrence and subject can vary per entry; identity and causation are batch-level, not independent per event.
|
|
23
38
|
|
|
24
|
-
|
|
25
|
-
alias Cratis.Chronicle.EventSequences.{EventForEventSourceId, EventLog}
|
|
39
|
+
## Prepare, commit and wait
|
|
26
40
|
|
|
27
|
-
EventLog.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
41
|
+
- `{:ok, prepared} = EventLog.prepare(event, opts)` captures serialized content. `EventLog.append_prepared(gate_id, prepared, opts)` requires the owning client, namespace and sequence. `Streams.verify_content(position, prepared, opts)` distinguishes `:equal`, `:different`, `:unavailable`; unavailable evidence does not justify another append.
|
|
42
|
+
- `Cratis.Chronicle.decide(fn _unit -> EventLog.append(gate_id, event, opts) end)` buffers on the current unit. Propagate errors: an error tuple rolls back, other returns request commit. Report success only on outer `{:ok, value}`. For explicit ownership use `Cratis.Chronicle.Transactions.UnitOfWork.begin()`, `commit(unit)` or `rollback(unit)` on that module. `EventSequence.transactional(sequence)` exposes a transactional wrapper for `TransactionalEventSequence.append/4` and `append_many/4` in `Cratis.Chronicle.EventSequences`. Do not use the immediate `*_with_result` or append-and-wait helpers to stage writes.
|
|
43
|
+
- `EventLog.append_and_wait_for_completion(gate_id, event, opts)` waits for observer progress. Check `completion.success` on `{:ok, completion}`. `EventLog.wait_for_sequence_number(position, opts)` waits separately for an accepted position (default wait timeout 5 seconds). A timeout does not undo acceptance.
|
|
44
|
+
|
|
45
|
+
## Inspect and maintain history
|
|
46
|
+
|
|
47
|
+
- `EventLog.get_for_event_source(gate_id, opts ++ [event_types: [GateOpened], decode: true])` returns matching decoded events instead of raw wire events. Add source type or stream type/ID filters as needed. `EventLog.get_from_sequence_number(position, opts ++ [event_source_id: gate_id])` reads forward, optionally filtering types. Verify the assigned position and content in the writer's exact history.
|
|
48
|
+
- `Streams.get_metadata_at(position, opts)` or `Streams.get_metadata(positions, opts)` retrieves envelopes without payloads. `EventLog.has_events_for?(gate_id, opts)` checks existence. `EventLog.get_tail_sequence_number(gate_id, opts)` finds a scoped tail; `EventLog.get_next_sequence_number(nil, opts)` returns sequence-wide tail plus one (0 if empty), not a reservation. `EventLog.get_tail_sequence_number_for_observer(GateReactor, opts)` narrows to handled event types.
|
|
49
|
+
- Normally append a corrective fact to the same source. `EventLog.compensate(position, correction, opts)` links a declared compensation and inherits original routing and subject; check the append result.
|
|
50
|
+
- `EventLog.complete_stream("Shift", shift_id, opts)` closes a named stream. For a narrower scope, `scope = opts ++ [event_source_id: gate_id, event_stream_id: shift_id]`; `Streams.complete_scope(scope ++ [expected_tail_sequence_number: tail])` refuses a changed tail. Inspect `Streams.scope_completed?(scope)` or `Streams.closed(opts)`; each closed entry's `origin` is `:complete_stream` (manual) or `:closing_event`.
|
|
51
|
+
- `Streams.reopen_scope(reason, scope)` reopens only a manual completion with exactly those dimensions. `{:error, :closed_by_event}` means a closing event owns the closure: append its configured reopening event instead (`cratis-chronicle-constrain-append`). `{:error, :not_completed}` means no exact manual closure exists; a broader covering closure is not reopened by a narrower scope.
|
|
52
|
+
- `EventLog.redact(position, reason, opts)` targets one position; `EventLog.redact_for_event_source(gate_id, reason, types, opts)` targets a source. `EventLog.copy(gate_id, replacement_id, types, opts)` requests a copy; `types = []` means all types. Redaction is not a business correction.
|
|
53
|
+
|
|
54
|
+
For historical ingestion and startup fixtures see [Import and seed](elixir-history.md). For identity, causation and correlation, owning a unit of work yourself, and the table of append errors with the reaction to each, see [Audit context, units of work and errors](elixir-context.md).
|
|
55
|
+
|
|
56
|
+
## Not supported in this SDK
|
|
32
57
|
|
|
33
|
-
|
|
58
|
+
- No typed source-ID requirement or operation builder: validate the binary key at your boundary and build an ordered entry list. No public prepared-batch helper: use an ordinary atomic batch, not a loop of prepared appends.
|
|
59
|
+
- No ordinary keyed append, named-tag append, ambient named-tag enrichers or audience declarations. Reconcile uncertain writes before retrying; use plain tags for classification and enforce authorization separately. Import-only metadata is not an ordinary append option. No serialization-time payload provider: construct the complete event before preparing or appending.
|
|
60
|
+
- No automatic HTTP response completion or append notification feed: finish the owned decision before responding; instrument the result locally or register a durable reactor.
|
|
61
|
+
- No in-place revision, erased-properties read, paged/latest query or routed seed-entry builder: append corrective facts, use ordinary forward reads or a dedicated read model, and use explicit import entries for routed historical data.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Go: event and read-model field shapes
|
|
2
|
+
|
|
3
|
+
One compiled plan gives both the stored JSON and the registered schema, so a type either works for both or fails registration. A value the type allows but the plan cannot store, such as a nil entry in a collection, fails later, when it is encoded. Read models follow the same rules except for binary fields. Names below are illustrative.
|
|
4
|
+
|
|
5
|
+
## Field shapes
|
|
6
|
+
|
|
7
|
+
| Go field | Stored as |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| Untagged exported field | Property with the Go spelling (`URLValue` stays `URLValue`); the client naming policy can change this |
|
|
10
|
+
| `json:"name"` | That exact property name; wins over any naming policy. Use it for every contract shared with another language |
|
|
11
|
+
| `string`, numbers, `bool` and named types over them | JSON scalar; zero and `false` are stored |
|
|
12
|
+
| `time.Time` | RFC 3339 string |
|
|
13
|
+
| `uuid.UUID` (`github.com/google/uuid`) | Lowercase dashed UUID string |
|
|
14
|
+
| `[]byte` or a named byte slice | Base64 string; placement rules below |
|
|
15
|
+
| Nested struct | Nested object under the same rules |
|
|
16
|
+
| Embedded struct or pointer to struct | Its fields are promoted into the enclosing object, in the order and with the name-conflict rules of `encoding/json`. Fields under a nil embedded pointer are omitted |
|
|
17
|
+
| Slice, array, `map[string]T` | Array or object; a nil slice or map is omitted, an empty one is stored |
|
|
18
|
+
| Pointer | Nullable; nil is omitted and differs from a present zero |
|
|
19
|
+
| `json:"-"`, `omitempty`, `omitzero` | Excluded, or omitted as in `encoding/json` |
|
|
20
|
+
|
|
21
|
+
Refused at registration: interface fields without a derived codec, custom JSON or text marshalers, maps with non-string keys, a `json` tag option other than `omitempty` or `omitzero`, and two direct fields of one struct that store under the same property name. Embed exported struct types: an embedded pointer to an unexported struct type registers but cannot be decoded.
|
|
22
|
+
|
|
23
|
+
Refused at encoding, so the append or read-model write returns an error and nothing is sent: a nil element in a slice or array, and a nil value in a map. The type registers; only the offending value fails.
|
|
24
|
+
|
|
25
|
+
Binary (`[]byte`) placement:
|
|
26
|
+
|
|
27
|
+
| Placement | Event | Read model |
|
|
28
|
+
| --- | --- | --- |
|
|
29
|
+
| Direct field of the root struct, `[]byte` or `*[]byte`, including one promoted from an embedded struct | Yes | Yes |
|
|
30
|
+
| Inside a nested struct | Yes | Refused at registration |
|
|
31
|
+
| Element of a slice or array, value of a map, inside an interface value, or on a protected, indexed, unique, subject or key field | Refused at registration | Refused at registration |
|
|
32
|
+
|
|
33
|
+
A type that holds binary anywhere must also use plain ASCII property names that are unique ignoring case; a nested struct in it cannot have a property named `id`, and the struct holding the bytes cannot have one named `value`.
|
|
34
|
+
|
|
35
|
+
Value types from `github.com/cratis/fundamentals.go/concepts` are supported: `concepts.UUID`, `concepts.DateOnly` (`"2026-01-02"`), `concepts.TimeOnly`, `concepts.TimeSpan`, and domain concepts implementing `concepts.Concept[T]`. An invalid concept fails with an error matching `concepts.ErrInvalidConcept`.
|
|
36
|
+
|
|
37
|
+
## Enums by name and value (opt-in)
|
|
38
|
+
|
|
39
|
+
A named integer is stored as a plain number. Declare a member table only when another client needs the enum's names too:
|
|
40
|
+
|
|
41
|
+
```go
|
|
42
|
+
type DockStatus int32
|
|
43
|
+
const (
|
|
44
|
+
Free DockStatus = 0
|
|
45
|
+
Occupied DockStatus = 1
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
codecs, err := serialization.NewCodecs(serialization.Enum(
|
|
49
|
+
serialization.EnumMember[DockStatus]{Name: "Free", Value: Free},
|
|
50
|
+
serialization.EnumMember[DockStatus]{Name: "Occupied", Value: Occupied},
|
|
51
|
+
))
|
|
52
|
+
if err != nil { return err }
|
|
53
|
+
_, err = chronicle.RegisterEvent[DockStatusChanged](registry, events.WithCodecs(codecs))
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Import `github.com/cratis/chronicle.go/serialization`. Pass the same set to a read model with `readmodels.WithCodecs(codecs)`.
|
|
57
|
+
|
|
58
|
+
- The type must be your own named type over `int32`. Writes store the number and accept declared values only; reads accept the number or the name, case-insensitively.
|
|
59
|
+
- `serialization.Flags(members...)` declares a flags enum; declare every allowed combination as a member.
|
|
60
|
+
- Allowed placements are a direct field `T`, `*T` or `[]T`. Enums inside maps or nested collections, and enums on protected fields, are refused.
|
|
61
|
+
|
|
62
|
+
## Interface fields with a closed set of types (opt-in)
|
|
63
|
+
|
|
64
|
+
```go
|
|
65
|
+
codecs, err := serialization.NewCodecs(
|
|
66
|
+
serialization.Derived[Carrier, *Courier]("courier"),
|
|
67
|
+
serialization.Derived[Carrier, Locker]("locker"),
|
|
68
|
+
)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Pass the set with `events.WithCodecs` and `readmodels.WithCodecs` on every event and model that holds a `Carrier`.
|
|
72
|
+
|
|
73
|
+
- The first type argument is the interface; the second is a named struct or pointer to one. The **exact** dynamic type is matched: registering `*Courier` does not admit `Courier`.
|
|
74
|
+
- Each value is stored with a `_derivedTypeId` property holding the discriminator. Keep discriminators stable; changing one is a contract change.
|
|
75
|
+
- Inside a derived value, untagged field names are camel-cased (`Name` becomes `name`) whatever the client naming policy. Tag the fields when the names are shared.
|
|
76
|
+
- Not available for protected (personal-data) fields.
|
|
77
|
+
|
|
78
|
+
## Errors
|
|
79
|
+
|
|
80
|
+
Registering a shape the SDK cannot store returns an error matching `chronicle.ErrUnsupported`; an invalid declaration matches `chronicle.ErrInvalidConfiguration`. Use `errors.As` with `*declarations.DeclarationError` (package `github.com/cratis/chronicle.go/declarations`) for a malformed `chronicle:"..."` field tag. A value that cannot be encoded, such as an undeclared enum value or an unregistered concrete type behind an interface, fails the append before anything is sent.
|
|
@@ -1,3 +1,79 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Record an event with Go
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use `github.com/cratis/chronicle.go` (import as `chronicle`) and its named subpackages. Connect to a running kernel. Names are illustrative. Keep the source ID outside the payload.
|
|
4
|
+
|
|
5
|
+
## Record and confirm
|
|
6
|
+
|
|
7
|
+
```go
|
|
8
|
+
type DockAssigned struct {
|
|
9
|
+
Dock string `json:"dock"`
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
registry := chronicle.NewRegistry()
|
|
13
|
+
assigned, err := chronicle.RegisterEvent[DockAssigned](registry)
|
|
14
|
+
if err != nil { return err }
|
|
15
|
+
// Local development only; use deployment credentials and TLS settings in production.
|
|
16
|
+
client, err := chronicle.Dial(ctx, chronicle.WithConnectionString(endpoint), chronicle.WithDevelopmentDefaults(), chronicle.WithRegistry(registry))
|
|
17
|
+
if err != nil { return err }
|
|
18
|
+
defer client.Close()
|
|
19
|
+
store, err := client.EventStore(ctx, "dispatch", chronicle.WithNamespace("north"))
|
|
20
|
+
if err != nil { return err }
|
|
21
|
+
seq := store.EventLog()
|
|
22
|
+
source := events.SourceID("delivery-37")
|
|
23
|
+
fact := DockAssigned{Dock: "A2"}
|
|
24
|
+
r, err := seq.Append(ctx, source, fact)
|
|
25
|
+
if err != nil { return err }
|
|
26
|
+
if err := r.Err(); err != nil { return err }
|
|
27
|
+
position := *r.Position
|
|
28
|
+
rows, err := seq.ReadSource(ctx, source, eventsequences.SourceFilter{EventTypes: []events.TypeRef{assigned.Ref()}})
|
|
29
|
+
if err != nil { return err }
|
|
30
|
+
// Match row.Context.SequenceNumber to position and check row.Content and row.Context.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Positions start at zero across the sequence. For another sequence use `seq, err := store.EventSequence(id)`. On error inspect the result **as well as** the error: `Committed` is durable even if a requested check was unsupported; `Rejected` with violations stored nothing. Use `errors.As` on `r.Err()` for `*eventsequences.ConstraintError` and `*eventsequences.ConcurrencyError` and retain `Errors` and both violation lists. A transport failure or `*eventsequences.OutcomeUnknownError` after dispatch is not a confirmed rejection: reconcile in the original history; do not blindly retry.
|
|
34
|
+
|
|
35
|
+
## Declare and route
|
|
36
|
+
|
|
37
|
+
- Registration defaults to the Go type name and generation 1. Pass `events.WithID("dock-assigned")` only to keep a stored ID stable across a type rename, to resolve a name collision, or to match an ID another system publishes. Pass `events.WithGeneration(2)` with a migration for incompatible changes (`cratis-chronicle-evolve-event`). Use `events.WithTags("dispatch")` for type-level classification; `events.WithTombstone()` for a terminal fact, not erasure or a closure guard. Register the compensating type with `events.WithCompensationFor(assigned)`.
|
|
38
|
+
- `store.EventSources().Register(ctx, eventsources.Definition{Name: "Delivery", Concurrency: eventsources.EventSourceID, Streams: []eventsources.Stream{{Name: "Transit"}}})` returns an error. Both definition and stream accept `Description` and a `Concurrency` bitmask (source ID/type, stream type/ID). These flags don't select the client's append scope.
|
|
39
|
+
- Pass `eventsequences.WithEventSource("Delivery")` and `eventsequences.WithRoute(eventsequences.Route{StreamType: "Transit", StreamID: "leg-3"})` to `Append` or `AppendMany`. Named source must agree with any non-default route source type, and non-`All` stream type must be declared. For free-form routes set `Route.SourceType` directly. Defaults are `Default` / `All` / `Default`; stream ID is not inferred.
|
|
40
|
+
- `eventsequences.WithSubject(subject)` overrides a type-level `events.WithSubjectResolver(func(e DockAssigned) (events.Subject, bool) { ... })` or a scalar field tagged `chronicle:"subject"`. A resolver returning false goes straight to the source ID, bypassing the field. Without resolver or explicit subject the tagged field wins if present, otherwise the source ID.
|
|
41
|
+
- `eventsequences.WithOccurred(occurred)` overrides kernel append time without changing order. `WithTags("urgent")` and `WithNamedTags(events.NamedTag{Name: "zone", Value: "west"})` add envelope labels. Exact named pairs coalesce; name cannot be blank.
|
|
42
|
+
- Set audit context with `metadata.WithIdentity(ctx, actor)`, `metadata.WithCausation(ctx, cause)` or `metadata.WithCausationChain(ctx, chain)`, and `metadata.WithCorrelation(ctx, id)`; pass each returned context onward. `eventsequences.WithCorrelation(id)` explicitly selects the operation UUID. Client options `chronicle.WithIdentityProvider`, `WithCorrelationProvider`, `WithCausationProvider` and `WithRootCausation` supply per-call policy; without providers, context supplies audit values, missing identity becomes NotSet, missing correlation gets a UUID, and there is no implicit root.
|
|
43
|
+
- For shared **payload** properties pass `chronicle.WithEventEnrichers(func(ctx context.Context, ref events.TypeRef, c *events.EventContent) error { if ref != assigned.Ref() { return nil }; return c.Set("dock", resolvedDock(ctx)) })` at construction. Callbacks run in order on declared serialized properties, not the original struct. `Get` reads raw JSON; `Remove` requires an omittable field. Subject selection precedes enrichment.
|
|
44
|
+
|
|
45
|
+
For which Go field types a payload may hold, how they are stored, and opt-in enum and interface codecs, read [field shapes](go-payloads.md).
|
|
46
|
+
|
|
47
|
+
## Coordinate writes
|
|
48
|
+
|
|
49
|
+
- `seq.AppendMany(ctx, source, []any{arrival, fact})` writes an ordered atomic single-source batch. For mixed sources use `entries := []eventsequences.Entry{{Source: source, Event: fact}, {Source: other, Event: arrival}}` then `seq.AppendBatch(ctx, entries)`. Each entry can specify `Route`, `EventSource`, `Subject`, `Occurred`, `Tags`, `NamedTags`. Batch-wide options: `WithBatchCorrelation(id)`, `WithBatchTags("dispatch")`, `WithBatchNamedTags(pair)` in `eventsequences`. Check operation error and `result.Err()`; positions follow input order.
|
|
50
|
+
- When a decision depends on earlier state, use `history, err := seq.ReadHistory(ctx, source, filter)`; after checking the error decide from `history.Events` and append with `eventsequences.WithScope(history.Scope())`. For mixed sources use `eventsequences.WithScopes(eventsequences.LabeledScope{Label: "delivery", Scope: history.Scope()})`; independent protected scopes can check a decision with no output events. `seq.ResolveScope(ctx, dimensions)` resolves policy now, not at the time of a previous read. See `cratis-chronicle-protect-decision`.
|
|
51
|
+
- Freeze serialized entries with `snapshot, err := seq.PrepareBatch(ctx, entries)` then `seq.AppendPreparedBatch(ctx, snapshot)` after checking preparation. This preserves bytes; it does not verify a stored event.
|
|
52
|
+
- `unit, owner, err := transactions.Begin(ctx, seq)` creates a unit tied to one sequence. Propagate `ctx = transactions.WithUnitOfWork(ctx, unit)`; participants retrieve it with `transactions.FromContext(ctx)` and call `unit.Stage(ctx, entries)` (optional labeled scopes). Check staging errors; snapshots aren't persisted until `owner.Commit(ctx)`. Inspect commit error and batch result **before writing an HTTP response**. Only the owner commits or calls `owner.Rollback()`; neither rollback nor an unknown commit outcome justifies repeating an immediate append. `unit.State()` is `transactions.Open`, `Completing`, `Committed`, `Rejected`, `OutcomeUnknown` or `RolledBack`; after completion read `unit.Result()`, `IsSuccess()`, `GetConstraintViolations()`, `GetConcurrencyViolations()`, `GetAppendErrors()` and `TryGetLastCommittedEventSequenceNumber()`. `unit.OnCompleted(callback)` runs once at completion. Staging on a finished unit returns `transactions.ErrCompleted` (or `ErrCompleting` during commit): begin a new unit, never reuse one.
|
|
53
|
+
- Subscribe locally with `off := seq.OnAppend(func(n eventsequences.AppendNotification) { ... }); defer off()`. For process-local attribution use `eventsequences.WithOrigin(ctx, eventsequences.NewOrigin())`; not durable metadata. Use a reactor for durable processing.
|
|
54
|
+
- `op, err := seq.AppendWithMetadata(ctx, source, fact)` (or `AppendManyWithMetadata` / `AppendBatchWithMetadata`). After checking `err` and `op.Result().Err()`, inspect both the completion result and error from `op.WaitForCompletion(ctx, store.Observers(), timeout)`. Timeout doesn't undo acceptance.
|
|
55
|
+
|
|
56
|
+
## Correct and inspect history
|
|
57
|
+
|
|
58
|
+
Prefer `seq.Append(ctx, source, correction)` for a later decision. `seq.Compensate(ctx, position, withdrawal)` appends a declared compensation linked to the original; don't override its source, stream or subject. Check both append outcomes as above. For content recorded wrongly, `seq.Revise(ctx, position, replacement)` takes a value of the same registered event type as the original (same type ID) and keeps the original and earlier revisions. It has no reason field: set the approving actor with `metadata.WithIdentity(ctx, actor)` and add a non-sensitive reason or approval reference with `metadata.WithCausation(ctx, metadata.Causation{Occurred: ..., Type: ..., Properties: map[string]string{...}})` before the call. A nil error means accepted, not applied: report the correction as pending, or wait under a bounded deadline until the event's `Revisions` show it; an unchanged read right after the call is not a refusal. A repeated `Revise` adds another revision. `seq.CompleteStream(ctx, "Transit", "leg-3")` returns the completion position and error; it returns `eventsequences.StreamAlreadyCompleted` or `DefaultStreamCannotBeCompleted` (match with `errors.Is`) when refused. `*eventsequences.MutationOutcomeUnknownError` (match with `errors.As`) from `Revise`, a redaction, `Copy` or `CompleteStream` means the change may have been applied: read the history before deciding, never repeat blindly.
|
|
59
|
+
|
|
60
|
+
Erase with `seq.Redact(ctx, position, reason)` or `seq.RedactForEventSource(ctx, source, reason, assigned.Ref().ID)` (omit type IDs for the whole source). `seq.Copy(ctx, source, target, assigned.Ref().ID)` submits a job, not a completed copy; omit type IDs for all types.
|
|
61
|
+
|
|
62
|
+
`ReadSource` also accepts `SourceType`, `StreamType`, `StreamID`; empty or default route sentinels don't narrow. `seq.ReadFrom(ctx, position, eventsequences.FromFilter{SourceID: &source})` starts inclusively; optional `EventTypes` matches IDs across generations. Rows expose context, JSON, original and generational content and revisions when available. `seq.HasEvents(ctx, source)` tests existence. `seq.Next(ctx)` doesn't reserve a position. `seq.Tail(ctx, eventsequences.TailFilter{})` and `seq.TailForObserver(ctx, []events.TypeRef{assigned.Ref()})` return position, presence and error; absence isn't position zero.
|
|
63
|
+
|
|
64
|
+
## Import and seed
|
|
65
|
+
|
|
66
|
+
- One-shot historical import: `result, err := seq.Import(ctx, eventsequences.ImportEntries(entries))` or supply a lazy `iter.Seq2[eventsequences.Entry, error]`. Entries can carry `Generation`, `SourceSequenceNumber`, `Occurred`, `CorrelationID`, `Causation`, `CausedBy` and a stable `IdempotencyKey`; new positions are assigned. Check `State`, `EventsStaged`, `EventsCommitted`, `AlreadyAppended`, `FirstSequenceNumber`, `LastSequenceNumber`, `RejectedCount`, indexed `Rejections` and `FailureReason` as well as `err`.
|
|
67
|
+
- Pass `eventsequences.WithOnInvalid(eventsequences.SkipInvalidEvents)` only when partial acceptance is intended (default rejects invalid input without committing). `WithMaxEventsPerChunk(n)` caps the kernel limit; `WithMaxChunksInFlight(n)` defaults to four; `WithMaxChunkAttempts(n)` defaults to five. `WithImportProgress(report)` provides best-effort one-shot progress. `WithoutWaitingForCommit()` returns after submission rather than final commit.
|
|
68
|
+
- `s, err := seq.BeginImport(ctx)` (or supply `eventsequences.WithImportID(id)` with an ID from `eventsequences.NewImportID()`); persist `s.ID()` as text and restore it with `eventsequences.ParseImportID(text)`. Check `s.Add(ctx, iterator)` before `s.Complete(ctx)`; a partial chunk may remain buffered until completion. `s.Progress(ctx)` polls; `s.ObserveProgress(ctx, report)` watches; `s.Abandon(ctx)` stops rather than completes. After interruption, `s, err := seq.ReattachImport(ctx, id)` and resume input **after** `s.EventsAcknowledged()` contiguous entries. `*eventsequences.ImportCouldNotBeginError` reports a refused begin or reattach (`errors.Is(err, eventsequences.ErrImportNotFound)` for an unknown ID); `*eventsequences.ImportChunkRefusedError` names the refused `ChunkIndex` and `Reason`; `eventsequences.ErrImportAbandoned` follows `Add` or `Complete` after `Abandon`. `State` is `ImportOpen`, `ImportStaging`, `ImportValidating`, `ImportCommitting`, `ImportCompleted`, `ImportFailed` or `ImportAbandoned`; `state.IsTerminal()` tells whether it can still change.
|
|
69
|
+
- Before connecting register `chronicle.RegisterSeederFunc(registry, func(b *seeding.Builder) error { seeding.For(b.ForNamespace("demo"), "delivery-37", DockAssigned{Dock: "A2"}); return nil })` and check the registration error. `RegisterSeeder(registry, seeds)` accepts a type implementing `Seed(*seeding.Builder) error`; `RegisterSeederFactory` supports scoped construction. No I/O or retained builders. `seeding.For(b, source, facts...)` takes homogeneous facts; `b.WithStream("Transit", "leg-3").ForEventSource(source, arrival, fact)` mixes registered types. Root builder is global, not scoped to the handle's namespace. Keep occurrences and routing stable across startups: matching seeds aren't appended again, removing declarations doesn't erase history.
|
|
70
|
+
- Explicit bootstrap: `batch, err := store.PrepareSeeds(seeding.Func(seed))`, then `batch.Register(ctx)` after checking preparation. Failure retains pending entries; success consumes them, without rerunning the callback.
|
|
71
|
+
|
|
72
|
+
## Not supported in this SDK
|
|
73
|
+
|
|
74
|
+
- No ordinary keyed single/batch append, single-event preparation or stored-content comparison. Reconcile in the same history; neither correlation nor an import key makes ordinary writes retry-safe.
|
|
75
|
+
- No grouped operation builder: accumulate, inspect or clear a slice of entries before `AppendBatch`. No automatic request-response completion: own the commit boundary explicitly.
|
|
76
|
+
- No ambient named-tag scopes/enrichers, audience declarations or field-derived routing: validate audience in application code, pass named tags and routes explicitly, and authorize independently.
|
|
77
|
+
- No source-definition lookup/watch (`Observe` returns unsupported): share the writer's registered definition rather than discovering routes at runtime.
|
|
78
|
+
- No expected-tail closure overload, closed-scope query/list or manual reopen: use a service supporting the required closure operation, not an unchecked close after a separate read.
|
|
79
|
+
- No metadata-only lookup, erased-properties read, paged/tag-filtered or latest-first browse: inspect context from scoped full reads where authorized; use an appropriate read model for bounded queries or an owning service for restricted content.
|