@cratis/pi 8.2.2 → 8.3.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 +7 -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 +22 -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 +7 -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 +22 -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 +92 -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 +281 -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 +379 -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 +80 -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 +161 -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 +57 -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 +57 -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 +105 -45
- 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 +57 -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
package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Query behavior patterns from the Node client
|
|
2
|
+
|
|
3
|
+
`store.patterns` reads behavior the kernel has already mined from recorded events, scoped to the store and namespace of the handle. It never mines on demand. An empty array means nothing clears the thresholds, not a failed request; authorization, validation, server and transport failures reject the promise. Names are illustrative.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { FacetName, TimeBucket, DayOfWeek, type FacetSet } from '@cratis/chronicle';
|
|
7
|
+
|
|
8
|
+
const usualNow = await store.patterns.getPatternsAt(userId); // default: what is usual right now
|
|
9
|
+
const action = usualNow[0]?.facets[FacetName.CommandType];
|
|
10
|
+
|
|
11
|
+
const context: FacetSet = { [FacetName.Day]: DayOfWeek.Monday, [FacetName.TimeBucket]: TimeBucket.Morning };
|
|
12
|
+
const usual = await store.patterns.getUsualActions(userId, context);
|
|
13
|
+
const isNormal = await store.patterns.getPatterns(userId,
|
|
14
|
+
{ ...context, [FacetName.CommandType]: 'RegisterInvoice' }, { minimumConfidence: 0.8, maximumResults: 10 });
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
| Method | Answers |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| `getPatternsAt(scope, moment?, options?)` | Usual actions at a moment (default now, local system offset); derives `Day` and `TimeBucket` |
|
|
20
|
+
| `getUsualActions(scope, context, options?)` | "What is usually done here?" Ranked by confidence, at most one per action |
|
|
21
|
+
| `getPatterns(scope, context, options?)` | "Is this known action normal?" Every facet of a match must appear in the context; ranked by specificity, then confidence |
|
|
22
|
+
| `getPatternsForScope(scope)` | Every established pattern for the scope, without limits |
|
|
23
|
+
| `getScopes()` | Grouping keys that hold established patterns |
|
|
24
|
+
|
|
25
|
+
- **Scope** is the grouping key, normally a user ID.
|
|
26
|
+
- **Options:** `minimumConfidence` (0–1) and `maximumResults`; omitting either selects the server default. `getPatternsAt` also takes `alsoConstraining: FacetSet`; pass `undefined` as the moment to keep "now". The derived `Day` and `TimeBucket` override those keys in `alsoConstraining`.
|
|
27
|
+
- **Moment:** `{ instant: Date, offsetMinutes }`, minutes east of UTC, an integer from -840 to 840. Do not add the offset to the `Date` yourself; an invalid date or offset rejects with `RangeError` before any query.
|
|
28
|
+
- **Facets:** `FacetName` has `CommandType`, `InitiatorType`, `InitiatorId`, `OnBehalfOf`, `CausedByCommand`, `CorrelationRootId`, `AggregateType`, `Year`, `Month`, `Day`, `TimeBucket`. The kernel ignores facets it does not mine instead of returning nothing, so an unmined facet silently widens the answer. `{}` constrains nothing; empty values are dropped.
|
|
29
|
+
- **Time buckets** (start inclusive, end exclusive, at the moment's offset): `EarlyMorning` 05–08, `Morning` 08–11, `Midday` 11–14, `Afternoon` 14–17, `Evening` 17–22, `Night` 22–05. `toTimeBucket(moment)` and `toDayOfWeek(moment)` apply the same rule; days are the English names `Sunday`–`Saturday`.
|
|
30
|
+
- **Result:** each `BehaviorPattern` has `id`, `groupingKey`, `facets`, `confidence`, `support`, `occurrences` (bigint), `weight`, `specificity`, `firstSeen` and `lastSeen` (`Date` or `undefined`).
|
|
31
|
+
|
|
32
|
+
A pattern is a statistical hint for suggestions or anomaly review. Never use it as authorization or as proof that something happened.
|
|
@@ -1,11 +1,80 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Connect a Node server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Install `@cratis/chronicle`, its `@cratis/fundamentals` peer and `reflect-metadata`. Load `reflect-metadata` before decorated modules. Use standard decorators and an ES2022 target; only enable `experimentalDecorators` and `emitDecoratorMetadata` together for a legacy decorator build. Declare field types explicitly rather than relying on the transpiler to emit runtime metadata. Names below are illustrative.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Open the store and verify registration
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```ts
|
|
8
|
+
import 'reflect-metadata';
|
|
9
|
+
import { randomUUID } from 'node:crypto';
|
|
10
|
+
import assert from 'node:assert/strict';
|
|
11
|
+
import { field } from '@cratis/fundamentals';
|
|
12
|
+
import { ChronicleClient, ChronicleOptions, eventType } from '@cratis/chronicle';
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
@eventType()
|
|
15
|
+
class BerthReserved {
|
|
16
|
+
@field(String) berth = 'A7';
|
|
17
|
+
}
|
|
10
18
|
|
|
11
|
-
|
|
19
|
+
// Inject a credential-bearing URI with skipTlsValidation=false; never log it.
|
|
20
|
+
const uri = process.env.CHRONICLE_URI;
|
|
21
|
+
if (!uri) throw new Error('Configure CHRONICLE_URI');
|
|
22
|
+
const client = new ChronicleClient(ChronicleOptions.fromConnectionString(uri));
|
|
23
|
+
try {
|
|
24
|
+
const store = await client.getEventStore('harbor', 'wiring-test');
|
|
25
|
+
const result = store.registrationResult;
|
|
26
|
+
if (result?.state !== 'successful') throw new Error(`Registration: ${result?.state}`);
|
|
27
|
+
|
|
28
|
+
// Disposable integration test only, not a production readiness probe.
|
|
29
|
+
const id = randomUUID();
|
|
30
|
+
assert.ok((await store.eventLog.append(id, new BerthReserved())).isSuccess);
|
|
31
|
+
const read = (ns: typeof store) => ns.eventLog.getForEventSourceIdAndEventTypes(id, [BerthReserved]);
|
|
32
|
+
assert.equal((await read(store)).length, 1);
|
|
33
|
+
assert.equal((await read(await client.getEventStore('harbor', 'isolation-test'))).length, 0);
|
|
34
|
+
} finally {
|
|
35
|
+
client.dispose();
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
In a server, keep the client until shutdown, not just until the request completes. A new store lookup ensures the store exists and registers artifacts inline; handles are cached by store and namespace. On reconnect the client registers cached stores again. Handle lookup rejection as well as unsuccessful registration. Inspect `attemptId`, `reason`, `state` (`not-run`, `in-progress`, `successful`, `partially-failed`, `failed`), `projections`, `failures` and `error`; fix invalid definitions rather than repeatedly opening the store. `observerLiveness` is `unknown`: registration does not establish catch-up. Use `await client.getEventStores()` and `await store.getNamespaces()` for inventory (entries expose `.value`).
|
|
40
|
+
|
|
41
|
+
Pass the authorized namespace explicitly. Alternatively set `namespaceResolver: () => authorizedRequestContext().namespace` in the factory options, then omit the second lookup argument. The resolver may be async and must return a nonblank name. An explicit namespace wins; without either, the namespace is `Default`.
|
|
42
|
+
|
|
43
|
+
## Transport and credentials
|
|
44
|
+
|
|
45
|
+
- `ChronicleOptions.development()` supplies local client credentials at localhost:35000 with TLS verification skipped. Omitting credentials from another URI also selects development credentials, **not** anonymous access.
|
|
46
|
+
- Supply `chronicle://<encoded-client-id>:<encoded-secret>@kernel.example?skipTlsValidation=false` or use `?apiKey=<encoded-key>&skipTlsValidation=false`, not both. `auth=none` overrides credentials; use only with an intentionally unauthenticated endpoint. Reject startup on `RejectedChronicleCredentials`; correct the deployed secret.
|
|
47
|
+
- TLS is on but verification defaults off. Set `skipTlsValidation=false`; for a private CA add `caCertificatePath=/run/trust/ca.pem`. For mutual TLS add `certificatePath=/run/identity/client.p12` (PKCS#12 or PEM chain plus private key) and `certificatePassword` if protected. URL-encode query values. `disableTls=true` instead removes encryption; do not send production credentials over plaintext.
|
|
48
|
+
- Direct hosts default to port 35000; use a comma-separated authority such as `kernel-a:35000,kernel-b:35001` for several candidates. Alternatively `chronicle+srv://<credentials>@cluster.example?skipTlsValidation=false` resolves `_chronicle._tcp.cluster.example` each connect/reconnect. SRV takes one host; `srvNameServer=10.0.0.53:5353` overrides system DNS (default resolver port 53).
|
|
49
|
+
- `loadBalancer=round-robin` cycles candidates from a random starting point; `random` samples each attempt; the default `least-connections` probes current counts and randomizes ties.
|
|
50
|
+
- `connectTimeout: 15000` in factory options bounds each compatibility probe in milliseconds (default 10000, whole number 1–4294967295), not all startup retries or registration. Correct an `IncompatibleChronicleServer` mismatch; use URI `skipCompatibilityCheck=true` only after independent verification. A `chronicle+srv://` host without `_chronicle._tcp` SRV records rejects with `ChronicleSrvResolutionError`; fix the DNS zone or use a `chronicle://` host list.
|
|
51
|
+
- A management call the kernel refuses (definitions, jobs, observers, identities, namespaces) rejects with an `Error` named `ChronicleCallFailed`; its message joins the authorization reason, validation messages and server errors. Test `error.name`, the class is not exported. Appends report through their result instead.
|
|
52
|
+
- Keep session monitoring on for services. For an append-only job, factory option `skipKeepAlive: true` or URI `skipKeepAlive=true` suppresses it; either enables skipping. Hosting reactors or reducers this way fails with `ClientObserversRequireKeepAlive`.
|
|
53
|
+
- For larger payloads set `maxReceiveMessageSize: 160 * 1024 ** 2` or `maxSendMessageSize` independently in factory options (bytes; each defaults to 100 MiB). `null` defers to gRPC, not necessarily unlimited.
|
|
54
|
+
|
|
55
|
+
## Application options
|
|
56
|
+
|
|
57
|
+
Pass these as the second argument of `ChronicleOptions.fromConnectionString(uri, options)` or the argument of `development(options)`. Callback and service names below stand for application implementations.
|
|
58
|
+
|
|
59
|
+
- **Selection:** import decorated modules before constructing the client or use `discoveryPatterns: ['dist/domain/**/*.js']` for emitted modules. Plain JS has no default scan; a TS process scans `.ts`/`.tsx`, excluding declarations, specs, tests, dependencies and build output. `[]` turns scanning off. A matched file that fails to import rejects `getEventStore(...)` with `Could not import discovered file '<path>'` and the cause attached. With standard decorators, a read model whose mappings are only on properties is not registered by importing it: add a class-level mapping decorator or match its module with a discovery pattern. Inspect `getEventTypeJsonSchemaFor(BerthReserved)` from `@cratis/chronicle/events` in the built process if a field is missing. Supply `clientArtifactsProvider: deployedCatalog` to replace the default discovery-backed provider.
|
|
60
|
+
- **Activation:** `artifactActivator: (type, context) => container.activate(type, context)` supplies an activation with `instance` and optional `run`, `complete`, `dispose` hooks. `readModelReactorActivator` accepts the read-model-specific activation context for that pipeline. `complete` runs after the handler, also when it failed, then `dispose`. A rejecting `complete` fails that delivery with `ArtifactCompletionFailed` (`completionError`, `processingError`), so the partition fails.
|
|
61
|
+
- **Observation:** `multiplexObservation: false` opts out of shared observation streams; multiplexing is on by default.
|
|
62
|
+
- **Storage:** `defaultSinkTypeId: 'SQL'` selects the read-model sink (default `MongoDB`; `InMemory` for volatile data or `None` for no sink). `defaultGraphSinkTypeId: 'InMemoryGraph'` selects volatile graph storage instead of `Neo4j`. Neither changes the event log.
|
|
63
|
+
- **Naming:** `readModelNamingPolicy: identifier => identifier.toLowerCase()` changes read-model names, not event field serialization; the callback also receives the optional model type.
|
|
64
|
+
- **Concurrency:** `concurrencyScopeStrategy: ConcurrencyScopeStrategies.none` (enum from `@cratis/chronicle`) disables the default optimistic scope. Alternatively supply a sync/async callback returning a scope or `undefined` for no check. Explicit scopes bypass it; callback failure prevents the append.
|
|
65
|
+
- **Enrichment:** `eventEnrichmentProviders: [(content, ctx) => { content.partition = ctx.namespace; }]` sets a declared cross-cutting field on serialized content, not on `ctx.event`. Providers may be async; the default list is empty.
|
|
66
|
+
- **Reactor results:** `reactorResultHandler: (result, ctx, type, storeName, ns) => handleEffect(result, ctx, type, storeName, ns)` returns true only for a fully handled result; throw on failure. `readModelReactorResultHandler` receives `(result, changeset, type, store, ns)` instead. Set `readModelReactorOnError: (error, changeset, type) => reportFailure(error, changeset, type)` for non-terminal activation, handler or effect failures; reporting does not retry.
|
|
67
|
+
- **Diagnostics:** `logger: { log: entry => applicationLog(entry) }` receives sanitized diagnostics; the sink should not throw. Built-in telemetry uses convention span names; `telemetry.spanNames` accepts `legacy`/`convention` but neither changes naming. Source IDs are omitted by default; `telemetry: { eventSourceId: { mode: 'hmac', key: deploymentKey } }` uses SHA-256 with a nonempty `Uint8Array`. Select `raw` only if exposing identifiers is intended.
|
|
68
|
+
|
|
69
|
+
## Behavior patterns
|
|
70
|
+
|
|
71
|
+
`store.patterns` queries behavior the kernel has mined from recorded events; read [behavior patterns](typescript-patterns.md) only when asked for that.
|
|
72
|
+
|
|
73
|
+
## Not supported in this SDK
|
|
74
|
+
|
|
75
|
+
- No public namespace ensure/remove or cache eviction on the store/client interfaces. Use authorized administrative tooling for namespace management; replace the owned client for a fresh cache.
|
|
76
|
+
- No borrowed gRPC channel or automatic web middleware: configure transport on the owned client and authenticate/authorize in the host before resolving the namespace.
|
|
77
|
+
- No separate timed registration wait, event-types-only/deployment registration policy, configurable registration retry schedule or serverless preset. Gate traffic on inline registration, impose an outer startup budget in the host, and keep observers in a long-lived service.
|
|
78
|
+
- No client options for drift/default-ID or generation validation, delivery generation, or observer concurrency. Assign stable identities and test schema/generation compatibility before deployment; size observer workloads separately.
|
|
79
|
+
- No process-wide unit-of-work lifecycle, serializer options, named sink defaults or factory overrides for identity/causation/correlation providers. Manage transaction and request context at the application boundary, declare fields explicitly, and select sink types rather than connection names.
|
|
80
|
+
- No public factory overrides for `programIdentifier`, `softwareVersion`, `softwareCommit` (read-only placeholder defaults) or connection lifecycle callbacks. Attach build metadata to host diagnostics and monitor client logs.
|
|
@@ -1,19 +1,50 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-chronicle-constrain-append
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when reserving or releasing a unique value, limiting an event to one occurrence per lifecycle, or closing and reopening a stream scope with domain events. Not for protecting a decision over previously read state (use cratis-chronicle-protect-decision) or manually completing or reopening a stream (use cratis-chronicle-record-event).
|
|
4
4
|
compatibility: A supported application client and access to the intended kernel.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Enforce
|
|
7
|
+
# Enforce a rule during append
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
A lookup can tell a writer that a value is free; it cannot reserve it. A registered constraint makes the kernel check the append regardless of which client sends it. Claims are independent in each namespace and event sequence. A constraint cannot count events, compare a balance or enforce a rule across those boundaries.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
- Node server (`package.json`): [define the Node constraint](references/typescript.md).
|
|
13
|
-
- Kotlin (`.kt`): [define the Kotlin rule](references/kotlin.md).
|
|
14
|
-
- Java (`.java`): [name the Java properties explicitly](references/java.md).
|
|
15
|
-
- Go (`go.mod`): [build and register the Go constraint](references/go.md).
|
|
16
|
-
- Elixir (`mix.exs`): [declare the Elixir constraint module](references/elixir.md).
|
|
17
|
-
- Python has no released application client: [keep the claim in the owning service](references/python.md).
|
|
11
|
+
Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Node server `package.json` → typescript, `*.kt` → kotlin, `*.java` → java, `go.mod` → go, `mix.exs` → elixir); only the project's languages are installed.
|
|
18
12
|
|
|
19
|
-
|
|
13
|
+
## Default: reserve one property for one source
|
|
14
|
+
|
|
15
|
+
Names here are illustrative. Suppose a locker claims a pickup code until the locker is emptied.
|
|
16
|
+
|
|
17
|
+
1. Declare a named unique property on the code-assignment event. The locker identifier is the event source, **not** part of the unique value: different lockers must compete for the same code.
|
|
18
|
+
2. Declare the locker-emptied event as a remover of that name. Include both event types and their declarations in store registration before accepting writes.
|
|
19
|
+
3. In a disposable namespace, assign a code to one locker, then assign it to a second. Expect a named constraint violation on the second append and no new event for that locker. If both succeed, check registration, property mapping, sequence, namespace and scope before changing the rule.
|
|
20
|
+
4. Empty the first locker, then repeat the second assignment. It should succeed. Test contention against the actual storage provider, not just the happy path against an empty store.
|
|
21
|
+
|
|
22
|
+
## Capability catalog
|
|
23
|
+
|
|
24
|
+
- **Model-bound declaration:** keep a single field claim, once-only event or close marker with the event it governs when the model expresses the whole rule.
|
|
25
|
+
- **Dedicated definition:** use the builder when multiple event types participate or comparison, scope or message logic does not belong on the model.
|
|
26
|
+
- **Constraint name:** give related declarations one stable identity for grouping, release and diagnostics; keep unrelated rules separately named. Claims are indexed under this name, so renaming a rule starts a new, empty index until it is rebuilt.
|
|
27
|
+
- **Ordered composite key:** select multiple properties together when only the tuple must be unique; map other claiming events to the same tuple in the same order.
|
|
28
|
+
- **Multiple claiming events:** include every event that introduces or changes the value, even when its field has a different name. An event with no constrained properties present does not replace a claim.
|
|
29
|
+
- **Case comparison:** opt into ignoring case when differently cased strings denote one value; use the same comparison for release.
|
|
30
|
+
- **One value per source:** by default reclaiming one's current value succeeds; replacing it frees the previous value.
|
|
31
|
+
- **Retain per value:** when a source owns multiple identifiers, keep each until released. The owner can reclaim its own identifiers.
|
|
32
|
+
- **Source-wide removal:** declare each lifecycle event that should release the owner's claims in the matching scope. One removal event can release multiple named rules.
|
|
33
|
+
- **Value-specific removal:** map removal fields in tuple order when a retained identifier, rather than all the owner's identifiers, becomes free.
|
|
34
|
+
- **Unique event type:** when a fact may occur only once per source and scope, constrain its type instead of a field. A removal opens the next cycle.
|
|
35
|
+
- **Mutually exclusive event types:** group alternatives under one occurrence rule when any one of them must exclude the others until release.
|
|
36
|
+
- **Source type:** partition by the appending source's type when different types may reuse a value or start independent cycles.
|
|
37
|
+
- **Stream type:** partition by stream type when the same claim may coexist in distinct kinds of stream.
|
|
38
|
+
- **Stream ID:** partition by stream identifier when each stream instance owns its own claim space; combine dimensions only if each should separate claims.
|
|
39
|
+
- **Sequence selection:** limit enforcement to named sequences, or just the event log, when other sequences must not check the rule. Unrestricted means every sequence, not one shared index. Merged selections form a union; an unrestricted declaration wins.
|
|
40
|
+
- **Static violation message:** use a template when callers need a domain-specific explanation; substitute violation detail keys rather than parsing the kernel's prose.
|
|
41
|
+
- **Message provider:** use a callback when the message must be computed. Check the SDK's callback timing and arguments before relying on violation details.
|
|
42
|
+
- **Closing event:** when *all* subsequent writes in a scope should stop, close it by event. Reads and replay remain available. Registration alone does not apply historical closures.
|
|
43
|
+
- **Closure dimensions:** default to source ID, stream type and stream ID together; select source ID, source type, stream type or stream ID in combination to match the intended write boundary. Every closing and reopening append must supply each selected dimension, and a scope that resolves only to the default stream is refused.
|
|
44
|
+
- **Payload stream ID:** when the closing event names a different stream, take its ID from a required nonempty property; reopening events must carry the same property.
|
|
45
|
+
- **Reopening events:** allow named event types to lift this rule's closure for the exact scope; they cannot clear a manual closure or another rule's closure. To reopen, append a configured reopening event addressing the same scope. A manual scope reopen refuses a closure owned by a closing event (closed by event). Without reopening events, no append or manual reopen lifts it.
|
|
46
|
+
- **Shared close owner:** name several closing declarations alike to share a closure; their dimensions and stream-ID mapping must agree.
|
|
47
|
+
- **Registration and inspection:** discover or explicitly register definitions at store setup. Inspect the registered identity where available; prove enforcement with an append, not just a successful startup.
|
|
48
|
+
- **Violation result:** branch on constraint kind and name; use event type, sequence number and structured details for diagnosis. Property values may be sensitive. In a batch, occurrence and release follow call order; failed constraint validation rejects the whole append.
|
|
49
|
+
- **Unavailable index:** this refusal is not a business collision: none of the attempted new events were written. Back off and retry the unchanged request, preserving idempotency keys. The event and claim-index update are not crash-atomic, and renumbering after a duplicate sequence number does not revalidate the constraint.
|
|
50
|
+
- **Operator rebuild:** when an index needs repair, request reindexing for the intended store, namespace, sequence and constraint names; an empty selection means all applicable indexed rules. Follow the job to completion. Rebuilding closure rules, unlike registering them, applies closing and reopening history. Verify contention afterward; duplicate values already in the index make storage fall back to a non-unique index, with only a logged warning, despite successful startup.
|
|
@@ -1,47 +1,89 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Append constraints in C#
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Reserve and release a property
|
|
4
|
+
|
|
5
|
+
Reference `Cratis.Chronicle`. Names are illustrative. With a connected `IEventStore store`, include both event types in the store's registered artifacts. For a positional record, target the **property**, not the constructor parameter:
|
|
4
6
|
|
|
5
7
|
```csharp
|
|
6
|
-
|
|
8
|
+
using Cratis.Chronicle.Events;
|
|
9
|
+
using Cratis.Chronicle.Events.Constraints;
|
|
10
|
+
|
|
11
|
+
[EventType]
|
|
12
|
+
public record PickupCodeAssigned([property: Unique("PickupCode", "Code already assigned")] string Code);
|
|
13
|
+
|
|
14
|
+
[EventType, RemoveConstraint("PickupCode")]
|
|
15
|
+
public record LockerEmptied;
|
|
7
16
|
```
|
|
8
17
|
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
In a disposable namespace, append `await store.EventLog.Append("locker-1", new PickupCodeAssigned("A7"))`, then the same event to `"locker-2"`. Only the first result should have `IsSuccess`. Append `new LockerEmptied()` to `"locker-1"`; the second assignment should now succeed. If both initial appends succeed, check store registration, event sequence and namespace before relying on the rule. `store.Constraints.HasFor("PickupCode")` checks local discovery, not kernel enforcement.
|
|
19
|
+
|
|
20
|
+
By default the comparison is case-sensitive and `PerEventSource` replaces the owner's previous claim. Assigning the current value again succeeds for that owner. For multiple simultaneous codes, declare `[property: Unique("PickupCode", Mode = UniqueConstraintMode.PerValue)]`. To drop just one, put `[RemoveConstraint("PickupCode", Properties = new[] { nameof(CodeReleased.Code) })]` on a `CodeReleased(string Code)` event. No properties means release all for that owner in scope. Repeat the attribute for different rules, or use it on several ending events. Use a stable explicit name for shared declarations and removers; otherwise the attribute derives identity from the annotated member. Shared property declarations must agree on retention mode.
|
|
21
|
+
|
|
22
|
+
## Map tuples and alternative claims
|
|
23
|
+
|
|
24
|
+
Replace the property attributes with a dedicated definition when multiple fields, comparison or scope need to be explicit. Here each event carries the two indicated string properties; use registered event records for every type.
|
|
11
25
|
|
|
12
26
|
```csharp
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
27
|
+
public class DepotCodeRule : IConstraint
|
|
28
|
+
{
|
|
29
|
+
public void Define(IConstraintBuilder builder) => builder
|
|
30
|
+
.ForEventLog()
|
|
31
|
+
.PerEventStreamType()
|
|
32
|
+
.Unique(u => u.WithName("DepotCode")
|
|
33
|
+
.On<CodeIssued>(e => e.Depot, e => e.Code)
|
|
34
|
+
.On<CodeImported>(e => e.Site, e => e.ExternalCode)
|
|
35
|
+
.IgnoreCasing()
|
|
36
|
+
.WithMode(UniqueConstraintMode.PerValue)
|
|
37
|
+
.RemovedWith<CodeWithdrawn>(e => e.Depot, e => e.Code)
|
|
38
|
+
.RemovedWith<LockerEmptied>()
|
|
39
|
+
.WithMessage("{PropertyName} is already reserved"));
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Specify each claiming type once, selecting property paths (not computed expressions) in tuple order. Map the same order on a value-specific remover. No constrained properties present means no replacement. Runtime type mappings can use `u.On(eventType, new[] { "Depot", "Code" })`, `u.RemovedWith(removalType, new[] { "Site", "ExternalCode" })` or `u.RemovedWith(removalType)` with registered `EventType` values. Missing paths fail definition. A dedicated property definition without `WithName` uses its owner identity; without an owner supply the name.
|
|
44
|
+
|
|
45
|
+
Select `.PerEventSourceType()`, `.PerEventStreamType()` or `.PerEventStreamId()` **before** declaring a unique rule; each partitions by one more dimension. Otherwise all sources compete for the tuple in that namespace and sequence. `.ForEventLog()` is `.ForEventSequences(EventSequenceId.Log)` (`Cratis.Chronicle.EventSequences`); e.g. `.ForEventSequences(new EventSequenceId("dispatch"))` selects another sequence. Sequence selection applies to the builder's built definitions. Attribute equivalent on `Unique` or `ClosesStream`: `EventSequences = new[] { "event-log" }`. Empty means all sequences independently; merged selections union, with unrestricted winning.
|
|
16
46
|
|
|
17
|
-
|
|
47
|
+
## Occurrence rather than property
|
|
18
48
|
|
|
19
|
-
[EventType,
|
|
20
|
-
|
|
49
|
+
`[EventType, Unique("DispatchDecision")]` on an event record limits it to once per source; the same named `RemoveConstraint` starts another cycle. Or in `Define`, group mutually exclusive facts and union their removers:
|
|
50
|
+
|
|
51
|
+
```csharp
|
|
52
|
+
builder.Unique<DispatchAccepted>(v => $"Decision already recorded for {v.ConstraintName}", name: "DispatchDecision")
|
|
53
|
+
.Unique<DispatchDeclined>(name: "DispatchDecision")
|
|
54
|
+
.RemovedWith<DispatchReset>();
|
|
21
55
|
```
|
|
22
56
|
|
|
23
|
-
|
|
57
|
+
`RemovedWith<T>()` on the outer builder attaches to the last occurrence declaration. A grouped rule uses one message callback (the first), so put the desired message on the first declaration. A standalone `Unique<T>()` uses the event type ID as name. Supply `message: "Decision already recorded"` for a fixed template. For a computed property-rule message use `u.WithMessage(v => $"Reservation conflict: {v.ConstraintName}")`. Unlike a definition-time factory these delegates receive the actual violation at client message resolution; `{DetailKey}` substitutions follow. Empty output retains the kernel message.
|
|
24
58
|
|
|
25
|
-
##
|
|
59
|
+
## Close and reopen a write scope
|
|
26
60
|
|
|
27
|
-
|
|
61
|
+
```csharp
|
|
62
|
+
using Cratis.Chronicle.EventSequences;
|
|
28
63
|
|
|
29
|
-
|
|
64
|
+
[EventType, ClosesStream(Name = "RouteClosure", Dimensions = ClosedStreamDimensions.EventStreamId,
|
|
65
|
+
EventStreamIdFrom = nameof(RouteClosed.RouteId), ReopenedBy = new[] { typeof(RouteReopened) })]
|
|
66
|
+
public record RouteClosed(string RouteId);
|
|
67
|
+
[EventType] public record RouteReopened(string RouteId);
|
|
68
|
+
```
|
|
30
69
|
|
|
31
|
-
|
|
70
|
+
Equivalent in `Define`: `builder.ClosesStreamOn<RouteClosed>(c => c.PerEventStreamId().EventStreamIdFrom(e => e.RouteId).ReopenedBy<RouteReopened>(), name: "RouteClosure");`. Register either form. Without a property the ID comes from append metadata. A property adds the stream-ID dimension and must exist on every closing/reopening type and supply a nonempty ID. Without explicit dimensions the key combines source ID, stream type and stream ID. To replace this default, combine `ClosedStreamDimensions.EventSourceId`, `EventSourceType`, `EventStreamType`, `EventStreamId` flags or call the corresponding `PerEventSourceId()`, `PerEventSourceType()`, `PerEventStreamType()`, `PerEventStreamId()` on the **closing** builder. Omitted dimensions do not restrict the closure. Repeat `ReopenedBy<T>()` for other reopening facts. Without reopeners, ordinary appends cannot lift the closure. Same-name closing declarations must agree on dimensions and property; reopening clears only that owner's exact closure, not another rule or a manual closure. Reads still work.
|
|
32
71
|
|
|
33
|
-
|
|
34
|
-
- **Choose a class-level rule when the same source must not record an event type twice.** Put `[Unique]` directly on that event record, not on a property. Append two occurrences for one source and check the second is refused. Keep the property rule if names must also be unique across sources.
|
|
72
|
+
## Registration, failures and repair
|
|
35
73
|
|
|
36
|
-
|
|
74
|
+
Let store startup discover and register artifacts before serving writes. With explicit artifacts, call `artifacts.RegisterEventType<PickupCodeAssigned>().RegisterEventType<LockerEmptied>()`; for a dedicated rule also register its event types and `artifacts.RegisterConstraint<DepotCodeRule>()` (or `RegisterConstraint(typeof(DepotCodeRule))`). When managing discovery explicitly, `await store.Constraints.Discover()` collects provider declarations and `await store.Constraints.Register()` sends the store's prepared definitions. Inspect with `GetFor(name)` after `HasFor(name)`. For provider integrations, `ICanProvideConstraints.Provide()` returns an immutable list of definitions; `builder.AddConstraint(definition)` adds a prepared one and `builder.Build()` returns the built list. The inner unique builder's `Build()` produces one definition; ordinary `Unique(callback)` already calls it.
|
|
37
75
|
|
|
38
|
-
|
|
76
|
+
A declaration that cannot be built throws while constraints are discovered, before any append. Fix the declaration:
|
|
39
77
|
|
|
40
|
-
|
|
41
|
-
|
|
78
|
+
| Failure | Cause |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| `PropertyDoesNotExistOnEventType` | A unique rule, or a closing or reopening declaration, names a property the event type does not have |
|
|
81
|
+
| `NoEventTypesAddedToUniqueConstraint` | A unique rule was built without any `On<TEvent>(...)` |
|
|
82
|
+
| `MissingNameForUniqueConstraint` | A unique rule has no explicit name and no owning constraint type to derive one from |
|
|
83
|
+
| `NoUniqueEventTypeConstraintToRemove` | `RemovedWith<T>()` on the outer builder has no preceding occurrence rule (`Unique<TEvent>()`) to attach to |
|
|
42
84
|
|
|
43
|
-
|
|
85
|
+
For an unsuccessful append, distinguish `result.IsRetryable` (transient refusal, no new events written; honor `result.RetryAfter` or back off and retry unchanged, preserving idempotency keys) from `result.ConstraintViolations`. For example, `result.ConstraintViolations.Any(v => v.ConstraintType == ConstraintType.Unique && v.ConstraintName.Value == "PickupCode")` identifies the domain conflict. Do not convert other failures into “code taken.” `UniqueEventType` is an occurrence violation; `StreamClosed` is a closed-scope refusal: every one is the violation named `closed-stream`, whatever `Name` the closing declaration has. That `Name` identifies the closure owner, reported in `Details[WellKnownConstraintDetailKeys.ClosedBy]` and as `ClosedBy` from `GetClosedStreams()` (empty or null for a manual closure); match the refusal on `closed-stream` and use `ClosedBy` only to tell owners apart. Inspect `EventTypeId`, `SequenceNumber`, `Message` and `Details`; `WellKnownConstraintDetailKeys` includes `PropertyName`, `PropertyValue`, `ClosedBy` and `ClosedAtSequenceNumber`. Avoid logging sensitive values. `store.Constraints.ResolveMessageFor(v)` resolves a known local rule's callback/template, leaving unknown rules alone. Ordered batch validation includes earlier claims/releases in the batch; rejection writes none of the batch.
|
|
44
86
|
|
|
45
|
-
|
|
87
|
+
For repair, on an authorized operator connection use `await services.ConstraintIndexes.ReindexConstraints(new ReindexConstraintsRequest { EventStore = "dispatch", Namespace = "default", EventSequenceId = "event-log", ConstraintNames = new[] { "PickupCode" } })` (`Cratis.Chronicle.Contracts.Events.Constraints.Operator`). An empty list selects all applicable indexed rules. Check command success before using `Response` as a job ID; follow that ID in Jobs until `CompletedSuccessfully`, then verify contention. Reindexing closures, unlike registration, applies history; redacted payload IDs may prevent reconstruction without a matching snapshot. Index updates and event writes are not crash-atomic. Do not treat startup or job acceptance as proof the storage index enforces uniqueness.
|
|
46
88
|
|
|
47
|
-
|
|
89
|
+
**Not supported in this SDK:** no append constraint for cross-namespace/sequence uniqueness, arbitrary counts or balance predicates. Route competing claims to one authoritative scope; for decisions over previously read events use `cratis-chronicle-protect-decision`, not a preflight lookup.
|
|
@@ -1,5 +1,92 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Constrain an append in Elixir
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Reserve and release a field
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Names are illustrative. Keep a single-field reservation on the event struct. Use the locker ID as the append source, not as a constrained field.
|
|
6
|
+
|
|
7
|
+
```elixir
|
|
8
|
+
defmodule CodeAssigned do
|
|
9
|
+
use Cratis.Chronicle.Events.EventType, id: "code-assigned"
|
|
10
|
+
defstruct [:code]
|
|
11
|
+
unique(:code, name: "pickup-code", message: "Pickup code already assigned")
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
defmodule LockerEmptied do
|
|
15
|
+
use Cratis.Chronicle.Events.EventType, id: "locker-emptied"
|
|
16
|
+
defstruct []
|
|
17
|
+
remove_constraint("pickup-code")
|
|
18
|
+
end
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Supervise `{Cratis.Chronicle.Client, connection_string: "chronicle://localhost:35000", event_store: "lockers", event_types: [CodeAssigned, LockerEmptied]}`. Alternatively use application discovery (`otp_app: :my_app`) or loaded-module discovery. Include removal and reopening events too. With a standalone definition, include `constraints: [LockerRules]` for explicit registration.
|
|
22
|
+
|
|
23
|
+
The default `:per_event_source` mode replaces that owner's previous claim; reclaiming its value succeeds. Comparison is case-sensitive, with no extra scope dimensions. Without `:name`, a field rule takes its first field's name; a type rule takes the event type ID. Prefer the macros over the equivalent accumulating attributes (`@unique`, `@unique_event_type`, `@remove_constraint`, `@closes_stream`) for option checks.
|
|
24
|
+
|
|
25
|
+
## Shared tuples, retained values and lifecycle rules
|
|
26
|
+
|
|
27
|
+
Use a dedicated module **instead of** the simple rule above when several events claim the same tuple. Each participating module is a registered event struct with the indicated fields.
|
|
28
|
+
|
|
29
|
+
```elixir
|
|
30
|
+
defmodule LockerRules do
|
|
31
|
+
use Cratis.Chronicle.Events.Constraint
|
|
32
|
+
alias Cratis.Chronicle.Events.ConstraintViolation
|
|
33
|
+
|
|
34
|
+
unique name: "depot-code", mode: :per_value, ignore_casing: true,
|
|
35
|
+
scope: [:per_event_source_type, :per_event_stream_id],
|
|
36
|
+
event_sequences: ["event-log"], message: {__MODULE__, :taken} do
|
|
37
|
+
on(CodeIssued, [:depot, :code])
|
|
38
|
+
on(CodeImported, [:site, :token])
|
|
39
|
+
removed_with(CodeRevoked, properties: [:site, :token])
|
|
40
|
+
removed_with(LockerEmptied)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
unique_event_type(PickupCompleted, name: "pickup-outcome")
|
|
44
|
+
unique_event_type(PickupCancelled, name: "pickup-outcome")
|
|
45
|
+
removed_with(LockerRefilled)
|
|
46
|
+
|
|
47
|
+
def taken(violation) do
|
|
48
|
+
field = ConstraintViolation.details(violation)[:property_name]
|
|
49
|
+
"Already reserved: #{field}"
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
- `on/2` accepts one field or an ordered list; specify each event once per block. Field atoms map to camelCase payload keys. Model-bound equivalent: `unique([:depot, :code], name: "depot-code", mode: :per_value)`. Align tuple positions even when names differ.
|
|
55
|
+
- In `:per_value` mode the owner retains each claim. `removed_with/2` inside the block releases just the carried tuple; omitted or empty properties release all for the source in scope. On a removal event use `remove_constraint("depot-code", properties: [:site, :token])`; repeat declarations for different named rules. Declare each applicable remover.
|
|
56
|
+
- `unique_event_type()` on an event limits it to once per source and scope. Sharing `name: "pickup-outcome"` makes the alternatives mutually exclusive. In a dedicated module `name:` is required; top-level `removed_with/1` follows the occurrence declaration, without properties. Release permits a new cycle.
|
|
57
|
+
- On value or occurrence rules `scope:` accepts one dimension or a list: `:per_event_source_type`, `:per_event_stream_type`, `:per_event_stream_id`. Each selected dimension must match for a conflict. `event_sequences: ["event-log"]` restricts enforcement to the log; list other sequence IDs when needed. Omit for all sequences (independent claims).
|
|
58
|
+
- A string `message:` replaces the message literally. For dynamic text use an exported one-argument callback as above; the client calls it with the raw violation when resolving the append response. Don't rely on string-template interpolation.
|
|
59
|
+
|
|
60
|
+
## Close a write scope
|
|
61
|
+
|
|
62
|
+
Inside a closing event struct with a `:route` field:
|
|
63
|
+
|
|
64
|
+
```elixir
|
|
65
|
+
closes_stream(name: "route-retired", dimensions: [:event_source_type, :event_stream_id],
|
|
66
|
+
event_stream_id_from: :route, reopened_by: [RouteRestored], event_sequences: ["event-log"])
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`closes_stream()` instead closes by append source ID, stream type and stream ID together. Choose any combination of `:event_source_id`, `:event_source_type`, `:event_stream_type`, `:event_stream_id`. A payload stream ID implies the stream-ID dimension; supply a nonempty ID on the closer and every reopener. The owner name defaults to the closing event type ID; share a name only with identical dimensions and payload mapping. Reopeners lift only this owner's closure in the matching scope. Registration doesn't close historical scopes.
|
|
70
|
+
|
|
71
|
+
To reopen, append a `reopened_by` event (here `RouteRestored`, carrying the same `:route`) to the same scope. `Cratis.Chronicle.EventSequences.Streams.closed/1` lists closures; `origin: :closing_event` marks one owned by a closing event. `Streams.reopen_scope/2` lifts only a manual completion (`Streams.complete_scope/1` or `EventLog.complete_stream/3`); for this rule's closure it returns `{:error, :closed_by_event}`.
|
|
72
|
+
|
|
73
|
+
## Inspect and prove enforcement
|
|
74
|
+
|
|
75
|
+
`Cratis.Chronicle.Events.Constraints.from_event_types([CodeAssigned, LockerEmptied])` and `from_constraint_modules([LockerRules])` build local definition lists; inspect `definition.name`. `Constraints.register(channel, store, definitions)` sends definitions on an established channel; prefer client setup. Local metadata isn't proof of enforcement.
|
|
76
|
+
|
|
77
|
+
```elixir
|
|
78
|
+
alias Cratis.Chronicle.EventSequences.EventLog
|
|
79
|
+
:ok = EventLog.append("locker-a", %CodeAssigned{code: "P9"})
|
|
80
|
+
{:error, %{constraint_violations: [%{constraint_name: "pickup-code"} = violation]}} =
|
|
81
|
+
EventLog.append_with_result("locker-b", %CodeAssigned{code: "P9"})
|
|
82
|
+
:ok = EventLog.append("locker-a", %LockerEmptied{})
|
|
83
|
+
:ok = EventLog.append("locker-b", %CodeAssigned{code: "P9"})
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Run this check in an empty test namespace. In application code handle other errors separately. `append_many_with_result/3` gives the same structured outcome for a single-source batch; rejection doesn't commit a prefix. Inspect `violation.event_type_id`, `sequence_number`, `message` and `details`. `ConstraintViolation.details/1` normalizes `:property_name`, `:property_value`, `:closed_by`, `:closed_at_sequence_number`, retaining other string keys. Don't expose sensitive values.
|
|
87
|
+
|
|
88
|
+
## Not supported in this SDK
|
|
89
|
+
|
|
90
|
+
- No constraint-kind or retry-after field on normalized append results. Match the named business rule within `constraint_violations`; keep `concurrency_violations`, `errors` and transport failures separate. Don't infer a collision from generic failure. For confirmed index unavailability, back off and preserve the request's idempotency identity.
|
|
91
|
+
- No standalone closing-event builder: put `closes_stream/1` on the closing event. No event-log shortcut on constraint declarations: specify `event_sequences: ["event-log"]`.
|
|
92
|
+
- No high-level constraint reindex call: have an authorized operator POST `/api/events/constraints/operator/reindex-constraints` with `eventStore`, `namespace`, `eventSequenceId` and `constraintNames` (empty means all applicable). Check command success and follow the returned `response` job ID in Workbench to completion before retesting contention.
|
|
@@ -1,5 +1,85 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Enforce an append constraint in Go
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Reserve and release a code
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Import `github.com/cratis/chronicle.go` as `chronicle` and use its `events`, `constraints` and `eventsequences` packages. Names are illustrative. Put the claim on the event and register the remover against its stable name:
|
|
6
|
+
|
|
7
|
+
```go
|
|
8
|
+
type CodeAssigned struct {
|
|
9
|
+
Code string `json:"code" chronicle:"unique(name=\"PickupCode\")"`
|
|
10
|
+
}
|
|
11
|
+
type LockerEmptied struct{}
|
|
12
|
+
|
|
13
|
+
func lockerRegistry() (*chronicle.Registry, error) {
|
|
14
|
+
r := chronicle.NewRegistry()
|
|
15
|
+
_, err := chronicle.RegisterEvent[CodeAssigned](r, events.WithID("code-assigned"))
|
|
16
|
+
if err != nil { return nil, err }
|
|
17
|
+
_, err = chronicle.RegisterEvent[LockerEmptied](r, events.WithID("locker-emptied"),
|
|
18
|
+
events.WithRemoveConstraints("PickupCode"))
|
|
19
|
+
if err != nil { return nil, err }
|
|
20
|
+
return r, nil
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Pass `chronicle.WithRegistry(r)` alongside your connection options to `chronicle.Dial`; then obtain `client.EventStore(ctx, chronicle.StoreName("lockers"))`, checking both errors. Only registered events are scanned. A store-specific `WithRegistryForStore` replaces the default registry. Client construction freezes the declarations; the store registers event types then constraints and waits for acknowledgement. Reconnection repeats registration.
|
|
25
|
+
|
|
26
|
+
- Bare `chronicle:"unique"` names the rule after the Go field, not its JSON name. Tag top-level fields with the same explicit name to build a tuple in field order; use that name on another event to join the same rule. Optional directive arguments include `message=\"Code in use\"` and `sequences=[\"event-log\"]` inside the tag. The first nonempty property message wins. Sequence lists merge; any unrestricted declaration wins.
|
|
27
|
+
- For an occurrence instead, add `events.WithUnique(events.Unique{Name: "Handover", Message: "Already handed over", EventSequences: []events.SequenceID{events.EventLog}})` at event registration. Without `Name`, this uses the Go type name. Give alternatives the same name; the violating type's message takes precedence over the group's first nonempty message. Don't mix occurrence and property declarations under one name.
|
|
28
|
+
- `events.WithRemoveConstraints("PickupCode", "Handover")` can release both declared rules. Multiple remover events can name the same rule. Unknown names fail client preparation. To extend a derived claim, check the error from `r.ConfigureDeclaredConstraint("PickupCode", func(b *constraints.Builder) { b.IgnoreCasing() })`; don't rename it, mutate the registry, do I/O in the callback, or `AddConstraint` the same name.
|
|
29
|
+
|
|
30
|
+
## Define a composite or scoped rule explicitly
|
|
31
|
+
|
|
32
|
+
Instead of tags, register plain event types first and use their handles from **this registry**. Suppose codes are unique only within a depot, may change through either of two events, and one locker can retain several codes:
|
|
33
|
+
|
|
34
|
+
```go
|
|
35
|
+
rule, err := constraints.UniqueValues("DepotCode").
|
|
36
|
+
On(assigned.Descriptor(), "depot", "code").
|
|
37
|
+
On(relabelled.Descriptor(), "station", "newCode").
|
|
38
|
+
WithMode(constraints.PerValue).
|
|
39
|
+
IgnoreCasing().
|
|
40
|
+
RemovedWith(emptied.Descriptor(), retired.Descriptor()).
|
|
41
|
+
ForEventLog().
|
|
42
|
+
WithMessage("Already reserved: {PropertyName}").Build()
|
|
43
|
+
if err != nil { return err }
|
|
44
|
+
if err := r.AddConstraint(rule); err != nil { return err }
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
- Use one `On` per event ID, with the exact serialized paths in corresponding tuple order (e.g. `"depot.id"` for a nested object). Bad paths fail `Build`. Default comparison is case-sensitive; ignoring case doesn't trim whitespace.
|
|
48
|
+
- Default `PerEventSource` replaces the owner's previous tuple; `PerValue` retains them all. Either permits the owner to reclaim its own tuple. `RemovedWith` accumulates remover types and releases **all** that source's claims in the matching sequence and scope.
|
|
49
|
+
- For a lifecycle instead, build `constraints.UniqueEventTypes(collected.Descriptor(), discarded.Descriptor()).WithName("Disposition").RemovedWith(restocked.Descriptor())`. Either occurrence excludes both until restock. A single descriptor enforces once-only. Default builder name is the first descriptor's persisted type ID. `On`, `WithMode` and `IgnoreCasing` are for value rules only.
|
|
50
|
+
- Add `b.PerEventSourceType()`, `b.PerEventStreamType()` or `b.PerEventStreamID()` only for dimensions that should separate otherwise competing claims. They combine on either kind; by default none are added. Source ID identifies ownership. No sequence selection means every sequence independently. `b.ForEventSequences(events.EventLog, events.Outbox)` adds specific sequences; repeated selections, including `ForEventLog`, form a union.
|
|
51
|
+
- Instead of static text, use `b.WithMessageProvider(func(v constraints.Violation) string { if v.Type == constraints.Unique { return "Reserved: {PropertyName}" }; return "" })`. The client invokes it per returned violation, possibly concurrently, then substitutes `{DetailKey}`. Empty preserves the kernel message; last message setter wins.
|
|
52
|
+
|
|
53
|
+
## Prepare and inspect definitions
|
|
54
|
+
|
|
55
|
+
Use `chronicle.RegisterConstraintFactory(r, []string{"DepotCode"}, factory, define)` only for dependency-based preparation: `define` takes a context and constructed dependency and returns `([]constraints.Definition, error)`. Declare the output identities up front, use the registry's own descriptors and check registration errors. Temporary factory output cannot retain a runtime message provider; use static text instead.
|
|
56
|
+
|
|
57
|
+
Inspect `store.Constraints()` for the store's prepared definitions, not as proof of kernel enforcement. For each definition, `Name()` and `Kind()` identify the rule; `Fields()`, `EventTypes()` and `RemovalTypes()` give its mappings; `Scope()`, `EventSequences()`, `Mode()` and `IgnoresCasing()` expose policy. `HasMessageProvider()` distinguishes callbacks from static text; `ResolveMessage(v)` renders a matching diagnostic. For tooling, `constraints.CompileDeclarations(catalog)` compiles without I/O, `rule.ToBuilder()` permits detached composition and `rule.Rebind(catalog)` maps declared fields into the same events' compiled naming policy. Ordinary client setup handles this automatically.
|
|
58
|
+
|
|
59
|
+
## Check the append, not just registration
|
|
60
|
+
|
|
61
|
+
In a disposable namespace append `CodeAssigned{Code: "A7"}` first to `"locker-1"`, then to `"locker-2"` on `store.EventLog()`. Require success on the first operation **and** its result. For the competing append:
|
|
62
|
+
|
|
63
|
+
```go
|
|
64
|
+
result, err := store.EventLog().Append(ctx, "locker-2", CodeAssigned{Code: "A7"})
|
|
65
|
+
if err != nil { return err } // Transport failure is not proof of rejection.
|
|
66
|
+
var collision *eventsequences.ConstraintError
|
|
67
|
+
if errors.As(result.Err(), &collision) {
|
|
68
|
+
for _, v := range collision.Violations {
|
|
69
|
+
if v.Type == constraints.Unique && v.ConstraintName == "PickupCode" {
|
|
70
|
+
return errCodeAlreadyAssigned // application domain error
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return result.Err()
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Require the named rejection and no new history for the competitor. Append `LockerEmptied{}` to the **owner**, then verify the competitor succeeds. A rejected atomic batch writes none of its events. For diagnostics, `result.ConstraintViolations` includes `EventTypeID`, `SequenceNumber`, `Type`, `ConstraintName`, `Message`, `Details`; don't expose `Details[constraints.PropertyValue]`. `constraints.PropertyName` identifies the path. Preserve unfamiliar kinds rather than treating all rejections as duplicates.
|
|
78
|
+
|
|
79
|
+
Check `result.Errors` separately: when `result.Disposition == eventsequences.Rejected` and the only refusal is `eventsequences.ConstraintIndexUnavailable` (`errors.Is(result.Err(), eventsequences.ConstraintIndexUnavailable)`), back off and retry the unchanged request. Don't infer a safe retry from one recognized code among unknown diagnostics.
|
|
80
|
+
|
|
81
|
+
## Not supported in this SDK
|
|
82
|
+
|
|
83
|
+
- Value-specific removal: `RemovedWith` accepts event descriptors, not paths. If releasing all the owner's tuples is incorrect, have a supporting SDK own the definition.
|
|
84
|
+
- Event-driven closure (including closure dimensions, payload-derived stream ID, shared close owner and reopening events): register the rule through a supporting SDK. Go writers can receive `constraints.StreamClosed`; a unique event type is not a stream closure.
|
|
85
|
+
- Application-level constraint reindex operation: have an operator request and monitor the rebuild for the correct store, namespace, sequence and rules. Re-registering the registry is not a rebuild.
|