@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
|
@@ -1,7 +1,116 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React to a committed fact in Kotlin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Contents
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Register and deliver one notice
|
|
6
|
+
- Select inputs and replay behavior
|
|
7
|
+
- Resolve arguments and wrap invocations
|
|
8
|
+
- Return derived facts
|
|
9
|
+
- Process a page instead
|
|
10
|
+
- Inspect progress or react to view changes
|
|
11
|
+
- Definition errors
|
|
12
|
+
- Not supported in this SDK
|
|
6
13
|
|
|
7
|
-
|
|
14
|
+
## Register and deliver one notice
|
|
15
|
+
|
|
16
|
+
Use the connected `IEventStore` for the owning store and namespace. Names are illustrative. Here `Carrier` is an application dependency whose `notifyOnce` records a structured key atomically with issuing the notice.
|
|
17
|
+
|
|
18
|
+
```kotlin
|
|
19
|
+
import io.cratis.chronicle.events.EventContext
|
|
20
|
+
import io.cratis.chronicle.events.EventType
|
|
21
|
+
import io.cratis.chronicle.observation.*
|
|
22
|
+
|
|
23
|
+
@EventType
|
|
24
|
+
data class ParcelDispatched(val trackingCode: String)
|
|
25
|
+
|
|
26
|
+
@Reactor(id = "carrier-notices")
|
|
27
|
+
@StartAtTail
|
|
28
|
+
@OnceOnly
|
|
29
|
+
class CarrierNotices(private val carrier: Carrier) {
|
|
30
|
+
suspend fun dispatched(event: ParcelDispatched, context: EventContext) {
|
|
31
|
+
val key = listOf("carrier-notices", context.eventStore, context.namespace,
|
|
32
|
+
"event-log", context.eventSourceId, context.sequenceNumber.toString(), "notice")
|
|
33
|
+
carrier.notifyOnce(key, event.trackingCode)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Use the host's artifact registration/activator to supply the dependency. If registering explicitly instead, call `store.eventTypes.register(ParcelDispatched::class)` followed by `store.reactors.register(CarrierNotices(carrier))` in suspending startup code. Do not register a discovered reactor again. Registration returns a long-lived `Job`, not a readiness signal. Keep the service alive. Confirm the subscription is running before a live-only test append; use a bounded wait. Interrupt acknowledgement after acceptance and verify one notice on retry. Let errors and cancellation escape.
|
|
39
|
+
|
|
40
|
+
A public plain or suspending method binds by its first `@EventType` argument, not its name. The optional `EventContext` carries routing, position, timestamp, causation and correlation. The registered instance is reused. The ID defaults to the simple class name; pin its deployed value before renaming. `@StartAtTail` skips history only for a new checkpoint; without it the reactor catches up. `@OnceOnly` excludes explicit replay, not retries; omit both annotations for a replayable historical consumer.
|
|
41
|
+
|
|
42
|
+
## Select inputs and replay behavior
|
|
43
|
+
|
|
44
|
+
- The default sequence is the event log. Use `@Reactor(eventSequence = "dispatch-feed")` for a named sequence; a nonempty class-level `@EventSequence("dispatch-feed")` takes precedence. Forwarded facts arrive in `inbox-<source store>`: select it explicitly (`@Reactor(eventSequence = "inbox-dispatch")`), because this SDK neither infers it nor provisions forwarding. Register exactly one forwarding subscription with a stable ID for that source, and the producer must publish to its outbox (see `cratis-chronicle-publish-contract`). Include that sequence rather than `"event-log"` in the receipt key.
|
|
45
|
+
- `@Tag("operations", "delivery")` labels the observer for inspection (`@Tag` is repeatable; `@Tags` is its container). To filter inputs instead, repeat `@FilterEventsByTag("priority")` for each accepted tag (any match). Combine with `@EventSourceType("parcel")` and/or `@EventStreamType("dispatch")` when those dimensions must also match. Without filters, all matching event types qualify.
|
|
46
|
+
- On a replayable reactor, mark just a live method `@OnceOnly` to skip it on replay. Alternatively declare `@Replay fun rebuild(event: ParcelDispatched) { index.restore(event) }`: it replaces the normal method for this type during replay, or binds a replay-only type. Without an override the ordinary non-excluded method runs.
|
|
47
|
+
- Implement `ICanBeNotifiedAboutReplay` and declare `fun replayBegan(context: ReplayContext) { index.begin(context.partition) }` and/or `fun replayEnded() { index.flush() }`. Both may suspend and either may take `ReplayContext` (observer, partition, sequence number). Notifications bracket flagged deliveries; no events means no notifications.
|
|
48
|
+
|
|
49
|
+
## Resolve arguments and wrap invocations
|
|
50
|
+
|
|
51
|
+
For a registered `@ReadModel` type, `fun dispatched(event: ParcelDispatched, parcel: ParcelView?)` uses the built-in `ReadModelArgument` to fetch by `context.eventSourceId`. Allow missing or lagging state. For a different key available only in the payload, look up the model in the handler. For context-derived arguments, supply a discoverable `IReactorMethodArgumentResolver`; for example implement `canResolve(parameter: KParameter) = parameter.type.classifier == Depot::class` and `suspend fun resolve(parameter: KParameter, context: EventContext): Any? = depots.forSource(context.eventSourceId)`. Custom resolvers precede the model fallback.
|
|
52
|
+
|
|
53
|
+
For tracing, supply a discoverable `IReactorMiddleware` with `override suspend fun beforeInvoke(context: EventContext, event: Any) { trace.start(context) }` and `override suspend fun afterInvoke(context: EventContext, event: Any) { trace.finish(context) }`. Entered middleware unwinds in reverse order even on failure; do not rely on thread affinity across suspension.
|
|
54
|
+
|
|
55
|
+
## Return derived facts
|
|
56
|
+
|
|
57
|
+
Register every output event type just as for inputs. A bare registered event targets the triggering source on the event log. For multiple outputs return a `List` in stable order; use `io.cratis.chronicle.eventSequences.EventForEventSourceId` to change routing:
|
|
58
|
+
|
|
59
|
+
```kotlin
|
|
60
|
+
fun dispatched(event: ParcelDispatched, context: EventContext) = listOf(
|
|
61
|
+
TrackingActivated(event.trackingCode),
|
|
62
|
+
EventForEventSourceId("carrier-audit", DispatchLogged(context.eventSourceId),
|
|
63
|
+
eventSourceType = "carrier", eventStreamType = "audit",
|
|
64
|
+
eventStreamId = "dispatch", subject = context.subject)
|
|
65
|
+
)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
The wrapper also accepts tags, occurrence time, causation and event source/stream descriptors. No reactor-level output-stream default is needed: set output routing on each wrapper. `Unit` or `null` means no append. Null elements and values without `@EventType` are ignored, not dispatched as commands. Multiple surviving events use one `appendMany`; rejected appends fail handling. This operation cannot commit a carrier request atomically.
|
|
69
|
+
|
|
70
|
+
## Process a page instead
|
|
71
|
+
|
|
72
|
+
```kotlin
|
|
73
|
+
@Observes(ParcelDispatched::class)
|
|
74
|
+
@Observes(ParcelDelayed::class)
|
|
75
|
+
fun update(batch: EventBatch, page: BatchContext) {
|
|
76
|
+
for ((event, context) in batch) {
|
|
77
|
+
if (context.eventSourceId in batch.deferred || context.eventSourceId in batch.failed) continue
|
|
78
|
+
when {
|
|
79
|
+
index.busy(context.eventSourceId) -> batch.defer(context, java.time.Duration.ofSeconds(5))
|
|
80
|
+
!index.accepts(event) -> batch.fail(context, IllegalStateException("invalid input"))
|
|
81
|
+
else -> index.applyOnce(event, context, page.origin)
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Bind each batched type to exactly one method, not also a per-event handler. Return `Unit`; use `page.isReplay`, not `@Replay`. `EventBatch` is the matching entries in sequence order; `batch.partitions` is their distinct source IDs. Optional `BatchContext` describes the whole page: observer/store/namespace/sequence, partitions, event count, first/last sequence numbers, optional deadline and origin (`Live`, `CatchUp`, `Replay`, `Retry`, or `Unknown`). Don't assume the page contains only one source.
|
|
88
|
+
|
|
89
|
+
`fail`/`defer` with a source ID instead of a context restarts at that source's first entry in the batch. The earliest reported position per partition wins. Negative delays become zero; when deferral is unavailable the report is a failure. Throwing from the method fails the participating partitions; make partial work safe to repeat.
|
|
90
|
+
|
|
91
|
+
## Inspect progress or react to view changes
|
|
92
|
+
|
|
93
|
+
Use `store.observers.getAll()` to inspect IDs, running state and last/next positions. Inspect `store.failedPartitions.getFor(CarrierNotices::class)` before `store.failedPartitions.retry(CarrierNotices::class, partition)` after repair. `store.observers.fastForward(CarrierNotices::class)` deliberately abandons pending work. ID-based retry and fast-forward take an optional sequence ID; supply it outside the event log.
|
|
94
|
+
|
|
95
|
+
If the trigger is a view change, implement `IReadModelReactor`, for example `fun removed(parcel: ParcelView?, change: ReadModelChangeset<ParcelView>) { cache.remove(change.modelKey) }`. Register via `ReadModelReactors(store.readModels, store.eventLog).register(reactor)`. Methods named `added`, `modified` or `removed` take the model or list and optionally the changeset. Removal carries no instance. Returned events target the changed key. This watch is not durable event delivery.
|
|
96
|
+
|
|
97
|
+
## Definition errors
|
|
98
|
+
|
|
99
|
+
Registration rejects a mis-shaped reactor; fix the class instead of catching.
|
|
100
|
+
|
|
101
|
+
| Exception | Cause |
|
|
102
|
+
| --- | --- |
|
|
103
|
+
| `ObserverHasNoHandlers` | No handler found: usually a missing `@EventType` on the event or a non-public method |
|
|
104
|
+
| `InvalidHandlerSignature` | First parameter is an event, but another parameter is one the client cannot supply |
|
|
105
|
+
| `EventTypeObservedByMoreThanOneMethod` | An event type reaches two methods (two batch methods, or batch plus per-event) |
|
|
106
|
+
| `ObservesOnlyOnBatchMethods`, `BatchContextOnlyForBatchMethods` | `@Observes` or `BatchContext` on a per-event handler |
|
|
107
|
+
| `BatchMethodObservesNothing`, `BatchMethodObservesUnknownEventType` | A batch method without `@Observes`, or naming a class without `@EventType` |
|
|
108
|
+
| `InvalidBatchMethod` | A batch method with an unsupported parameter or return type |
|
|
109
|
+
| `PartitionNotInBatch` | `fail`/`defer` called for a source the batch holds no events for (thrown while handling) |
|
|
110
|
+
|
|
111
|
+
## Not supported in this SDK
|
|
112
|
+
|
|
113
|
+
- No generation-pinning reactor option, automatic external-store selection, dynamic callback builder or raw delegate registration: register compatible typed methods on the intended sequence; cancel the registration job to stop listening.
|
|
114
|
+
- No per-event activation switch, per-reactor page limits or partition parallelism setting: keep instances stateless and bound downstream work. No dedicated readiness await: inspect observer state with a timeout.
|
|
115
|
+
- No built-in receiver delivery key, automatic output epoch, guarded multi-target reactor return or custom return interpreter: deduplicate at the receiver, version effects deliberately, and move guarded decisions into an explicit write workflow. For operational work without a fact use an application-owned durable queue with receipts rather than returning an arbitrary object.
|
|
116
|
+
- No reactor replay-request or quarantine-clear operation on these services: use the owning operator tooling after diagnosis (`cratis-chronicle-inspect-observer`). Fast-forward is not a substitute. For durable materialized-change processing use an event reactor on the underlying facts rather than relying on a view watch.
|
|
@@ -1,16 +1,130 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React to a fact in a Node server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Contents
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- Bind one handler
|
|
6
|
+
- Select input and control replay
|
|
7
|
+
- Define callbacks at runtime
|
|
8
|
+
- Produce a result from a per-event class method
|
|
9
|
+
- Process a page and recover
|
|
10
|
+
- Not supported in this SDK
|
|
11
|
+
|
|
12
|
+
## Bind one handler
|
|
13
|
+
|
|
14
|
+
Use `@cratis/chronicle` on a long-lived Node client with keepalive enabled. Import the decorated event and reactor modules before artifact discovery. The owning store discovers and registers artifacts on connection and reconnection; don't call `register()` again to wait for readiness. Names here are illustrative; `carrier` is an application gateway that records a receipt atomically with issuing the notice.
|
|
6
15
|
|
|
7
16
|
```ts
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
import { eventType, handles, onceOnly, reactor, startAtTail,
|
|
18
|
+
type EventContext, type ReactorDelivery, type ReactorServices } from '@cratis/chronicle';
|
|
19
|
+
|
|
20
|
+
@eventType()
|
|
21
|
+
class ParcelDispatched {}
|
|
22
|
+
|
|
23
|
+
@reactor('carrier-notices')
|
|
24
|
+
@startAtTail()
|
|
25
|
+
class CarrierNotices {
|
|
26
|
+
@handles(ParcelDispatched)
|
|
27
|
+
@onceOnly()
|
|
28
|
+
async notify(_: ParcelDispatched, context: EventContext, services: ReactorServices, delivery: ReactorDelivery) {
|
|
29
|
+
await carrier.notify(context.eventSourceId, `${delivery.id}:issue-notice`, services.signal);
|
|
30
|
+
}
|
|
11
31
|
}
|
|
12
32
|
```
|
|
13
33
|
|
|
14
|
-
|
|
34
|
+
With a configured `ChronicleClient`, `const store = await client.getEventStore('shipping', 'operations')`; then `await store.reactors.waitTillSubscribed('carrier-notices')` before appending a live test event. Verify one notice, including after failure between gateway success and acknowledgement. `delivery.id` includes reactor, store, namespace, sequence, partition and sequence number. Don't use a fresh request ID on retry. Services also expose `eventStore` and `readModels`; for example `await services.readModels.findInstanceById(ParcelStatus, context.eventSourceId)` returns null if absent. Choose the key explicitly if it differs; stored state may lag.
|
|
35
|
+
|
|
36
|
+
Without an explicit ID the class name becomes the ID. Without `@handles`, the method name must match the event class name with only the first character lowercased. Type annotations alone do not bind a method. The event argument is parsed JSON typed as the class, not an instance: read fields only; methods, getters and `instanceof` do not work, and a date field arrives as its serialized string. Without an `artifactActivator` the SDK constructs the reactor with no arguments and reuses it on the observation. For scoped dependencies configure the client's `artifactActivator`, e.g. `type => ({ instance: container.resolve(type) })`; activation for event processing covers the page, not each entry.
|
|
37
|
+
|
|
38
|
+
## Select input and control replay
|
|
39
|
+
|
|
40
|
+
- The default sequence is `event-log`, with compatibility generation delivery. To pin a contract on another sequence use `@reactor('carrier-notices', sequenceId, EventGenerationDelivery.Pinned)`. External facts arrive in `inbox-<source store>` (e.g. `@reactor('carrier-notices', 'inbox-dispatch')`); this SDK does not provision forwarding, so register exactly one subscription with a stable ID for that source, and the producer must publish to its outbox (see `cratis-chronicle-publish-contract`).
|
|
41
|
+
- Label the observer with `@tag('dispatch')` or `@tags('dispatch', 'operations')`. To restrict input, stack `@filterEventsByTag('urgent')` and `@filterEventsByTag('priority')` (either tag); add `@eventSourceType('Parcel')` and/or `@eventStreamType('Outbound')` for additional required matches. Labels alone never select input.
|
|
42
|
+
- Omit `@startAtTail()` for initial catch-up. Tail only skips existing history for a new checkpoint. Omit `@onceOnly()` when the normal method should run on replay; place it on the class instead to make the entire subscription non-replayable. Neither decorator prevents retry.
|
|
43
|
+
- On a replayable reactor use a separate `@replay(ParcelDispatched) async rebuild(event: ParcelDispatched) { await rebuildIndex(event); }` to replace the normal method during replay or handle that type only during replay. `@replay()` infers the type from `replayParcelDispatched`. Do not combine it with `@handles` on one method.
|
|
44
|
+
- For auxiliary state implement both `async beginReplay()` and `async endReplay()` (`ICanBeNotifiedWhenReplay`), or both `async beginReplayPartition(partition: string)` and `async endReplayPartition(partition: string)` (`ICanBeNotifiedWhenPartitionReplayed`). Keep durable progress outside the instance.
|
|
45
|
+
|
|
46
|
+
## Define callbacks at runtime
|
|
47
|
+
|
|
48
|
+
Use alternatives to class registration, not additional registrations of the same ID. Event types must already be known. For manual class discovery the operations are `await store.reactors.discover()` then `await store.reactors.register()`.
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
const r = store.reactors;
|
|
52
|
+
const definition = r.define('dispatch-index', b => b.on(ParcelDispatched,
|
|
53
|
+
async (event, context) => { await indexParcel(event, context.eventSourceId); }));
|
|
54
|
+
await r.register(definition);
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Alternatively `register(id, builderCallback)` defines and starts in one call. `b.subscribe((content, context) => audit(content, context))` binds all known types, after any matching typed callbacks. Chain `.onEventSequence(sequenceId)`, `.withEventGenerationDelivery(EventGenerationDelivery.Pinned)` or `.notReplayable()` only when needed. For untyped content and cancellation: `await r.register('dispatch-export', b => b.withEventType(ParcelDispatched), async ({ content, context }, signal) => { await exportParcel(content, context, signal); })`. Runtime callbacks complete work themselves and return void; `await r.unregister('dispatch-export')` stops the subscription.
|
|
58
|
+
|
|
59
|
+
## Produce a result from a per-event class method
|
|
60
|
+
|
|
61
|
+
Return a registered event instance (directly or via a promise) to append it to the event log. Bare results inherit the triggering source, stream type and stream ID; subject defaults to the triggering source. A declared reactor source type or stream type supplies the corresponding output type. For a different destination return an `EventForEventSourceId` object. Mix both forms in an ordered array for one `appendMany`:
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
return [new ParcelIndexed(), { eventSourceId: sortingHub, event: new HubNotified(),
|
|
65
|
+
subject: context.eventSourceId, eventStreamId: shiftId, eventStreamType: 'Shift', eventSourceType: 'Hub' }];
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Wrappers pass through rather than merging bare-event defaults. Return nothing for no append; unrecognized objects are ignored. Append failure fails processing. For an application contract configure `reactorResultHandler` in client options, e.g. `async (result, context) => { if (!(result instanceof IssueNotice)) return false; await issueNotice(result, context); return true; }`. It runs before event interpretation and claims the **whole** result; it can also receive reactor type, store and namespace. For command decisions use the integration in `cratis-arc-invoke-command` rather than treating commands as facts.
|
|
69
|
+
|
|
70
|
+
## Process a page and recover
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
@reactor('parcel-index')
|
|
74
|
+
@batchSize({ maxEvents: 100, maxBytes: 262144 })
|
|
75
|
+
class ParcelIndex {
|
|
76
|
+
@observes(ParcelDispatched)
|
|
77
|
+
async update(batch: EventBatch, page: BatchContext) {
|
|
78
|
+
const stopped = new Set<string>();
|
|
79
|
+
for (const entry of batch.ofType(ParcelDispatched)) {
|
|
80
|
+
if (stopped.has(entry.context.eventSourceId)) continue;
|
|
81
|
+
try { await indexParcel(entry.event, entry.context.eventSourceId); }
|
|
82
|
+
catch (error) {
|
|
83
|
+
if (isTemporary(error) && page.canDefer) batch.defer(entry.context, 2000);
|
|
84
|
+
else batch.fail(entry.context, error);
|
|
85
|
+
stopped.add(entry.context.eventSourceId);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Stack `@observes` for more types on one method; never bind a type to two methods. Iterate the filtered `EventBatch` or inspect `events`, `length`, `partitions`, `ofType(Type)`. Return void. `BatchContext` describes the full page: `observerId`, `eventStore`, `namespace`, `eventSequenceId`, `origin` (live/catch-up/replay/retry), `isReplay`, `partitions`, `eventCount`, `firstSequenceNumber`, `lastSequenceNumber`, `deadline`, `signal`, `canDefer`. For partial progress record an outcome without throwing, skip later entries for that partition, and continue independent partitions. Pass a source ID instead of context to fail/defer from its first matching entry. Unsupported deferral becomes failure. Throwing fails participating partitions; expect duplicates on retry. Kernel bounds apply if unspecified; an oversized entry travels alone. `maxDelayMilliseconds` is a hint, not a live-page fill timer.
|
|
93
|
+
|
|
94
|
+
For readiness `waitTillSubscribed(id, { timeout: 10000, signal })` times out in milliseconds (default 5000); subscription does not prove catch-up. Inspect `await r.getStateFor(CarrierNotices)` and `await r.getFailedPartitionsFor(CarrierNotices)`. Fix the cause, then inspect the outcome of `await r.retryFailedPartition(CarrierNotices, partition)`. `await r.replay(CarrierNotices)` requests replay; these operations also accept an ID. Only to intentionally abandon work use `await store.observers.fastForward('carrier-notices')`, not retry.
|
|
95
|
+
|
|
96
|
+
These are authorized operator actions, never automatic recovery. Read each outcome; an accepted request finishes in the background, so re-read the state afterwards.
|
|
97
|
+
|
|
98
|
+
| Call | Result |
|
|
99
|
+
| --- | --- |
|
|
100
|
+
| `retryFailedPartition(...)` | `PartitionRetryOutcome`: `Started` or `Accepted` proceed; `PartitionNotFound` means nothing is failed for that key; `ObserverQuarantined` and `PartitionQuarantined` need the quarantine cleared by an operator first; `Unknown` is inconclusive |
|
|
101
|
+
| `replay(...)` | `{ started, jobId? }`; follow the job with `store.jobs.getJob(jobId)` |
|
|
102
|
+
| `store.observers.fastForward(id)` | `outcome` (`FastForwarded`, `AlreadyAtTail`, `Accepted`, or the refusals `Replaying` and `NotAvailable`; `Unknown` is inconclusive) with `previousNextEventSequenceNumber` and `nextEventSequenceNumber`. Skipped events are never delivered |
|
|
103
|
+
| `store.observers.remove(id)` | `isRemoved`, `outcome` (`Removed`, `ObserverNotFound`, or the refusals `ObserverActive` and `ObserverSubscribed`) and `blockingNamespace`. Removes an observer whose code is gone from **every** namespace of the store; read-model data stays. There is no override: stop the declaring application first |
|
|
104
|
+
| `store.jobs.stop(jobId)`, `resume(jobId)`, `delete(jobId)` | Pause, continue or remove a kernel job such as a replay; the ID is a `JobId`, `Guid` or GUID string. A refusal rejects the promise |
|
|
105
|
+
|
|
106
|
+
For best-effort view changes instead, `@readModelReactor(ParcelStatus, 'parcel-view-watch')` on a class with `async modified(model: ParcelStatus) { await refreshDisplay(model); }` watches modifications. Implement `added` and/or `removed` when needed; each accepts the model and optional second changeset argument. On removal the model may be empty; identify the instance by the changeset's `key`. Use a fact reactor for durable work.
|
|
107
|
+
|
|
108
|
+
- **Changeset:** `namespace`, `key`, `readModel`, `removed`, `changeType` (`ReadModelChangeType.Added`, `Modified` or `Removed`) and optional `changeContext` (`eventStore`, `namespace`, `sequenceNumber`, `correlationId`, `occurred`); the change context is not an `EventContext`.
|
|
109
|
+
- **Registration:** import the class before obtaining the store. The watched model must be a registered root read model with its own projection or reducer. The ID defaults to the class name. Keepalive is required.
|
|
110
|
+
- **Results:** return nothing, or `EventForEventSourceId` wrappers (appended as one batch to the event log of the changeset's namespace). A bare event fails that change before any append, because a read-model key is not necessarily an event source ID.
|
|
111
|
+
- **Delivery:** one serial consumer per class. There is no initial snapshot, checkpoint, replay or retry; changes during an outage are missed and a change can arrive twice. A failing change is logged, passed to `readModelReactorOnError` and skipped.
|
|
112
|
+
- **Shutdown:** `store.readModelReactors.stop()` or disposing the client stops dispatch; then `await store.readModelReactors.completion` to drain in-flight handlers. `completion` rejects when a watcher fails terminally, so supervise it in a long-running service.
|
|
113
|
+
|
|
114
|
+
Batch declaration mistakes fail registration; outcome mistakes fail the page:
|
|
115
|
+
|
|
116
|
+
| Error | Cause |
|
|
117
|
+
| --- | --- |
|
|
118
|
+
| `EventTypeObservedByMoreThanOneMethod` | One event type is bound to two methods of the class |
|
|
119
|
+
| `InvalidBatchMethod` | A batch method also carries `@handles`, `@replay` or `@onceOnly`, or observes an unregistered event class |
|
|
120
|
+
| `BatchMethodReturnedAValue` | A reactor batch method returned something; append explicitly instead |
|
|
121
|
+
| `PartitionNotInBatch` | `fail`/`defer` named a source the page holds no events for |
|
|
122
|
+
| `ReducerMixesBatchAndPerEventMethods` | A reducer declares both per-event methods and a batch method |
|
|
123
|
+
|
|
124
|
+
## Not supported in this SDK
|
|
15
125
|
|
|
16
|
-
|
|
126
|
+
- Automatic source-store/inbox selection, class-wide output stream ID or event metadata-provider interfaces: explicitly select the receiving sequence and return routed wrappers.
|
|
127
|
+
- Injected read-model arguments/key resolvers, reactor invocation middleware or per-event activation switch: use services, an explicit lookup and an application wrapper; keep per-event state local.
|
|
128
|
+
- Guarded ordered reactor returns, effect epochs, occurrence handlers with receipted effects: use an owning decision service for concurrency, or a durable application work queue with atomic receipts; never assume an automatic cross-system transaction.
|
|
129
|
+
- Reactor partition concurrency knob (`batchSize.maxConcurrency` is not one): bound downstream work within your handler. No reactor quarantine-clear or wait-for-position helper: inspect observer state and use the operator recovery path.
|
|
130
|
+
- Materialized change-window declaration on a read-model reactor: use explicit snapshot comparison if needed, or observe the underlying facts.
|
|
@@ -1,21 +1,91 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-chronicle-record-event
|
|
3
|
-
description: Use when declaring a Chronicle event,
|
|
4
|
-
compatibility: A supported application client and access to the intended kernel.
|
|
3
|
+
description: Use when declaring a Chronicle event type, recording facts directly, checking append outcomes, reading a sequence, seeding history, or correcting, compensating, redacting, copying or importing stored events, or when a registered event schema does not match the JSON a type is serialized as. Not for returning events from an Arc command or designing concurrency guards.
|
|
5
4
|
---
|
|
6
5
|
|
|
7
|
-
#
|
|
6
|
+
# Record a fact in its intended history
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
An event says what happened. Its **type ID and generation** identify the registered schema; its **source ID** identifies the instance it happened to. Its **sequence number** is its position across all sources in one sequence, store and namespace, not the instance's revision. The kernel records the serialized content together with its context. Observers process accepted events independently of the writer.
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
If an Arc command returns events, let Arc append them; do not append them again (`cratis-arc-declare-command`). For publishing a contract to another store, use `cratis-chronicle-publish-contract`; writing to the event log does not publish to the outbox.
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
- Node server (`package.json`): [append a registered Node event](references/typescript.md).
|
|
15
|
-
- Kotlin (`.kt`): [append from a Kotlin coroutine](references/kotlin.md).
|
|
16
|
-
- Java (`.java`): [append through the Java facade](references/java.md).
|
|
17
|
-
- Go (`go.mod`): [register and append the Go value](references/go.md).
|
|
18
|
-
- Elixir (`mix.exs`): [inspect the detailed Elixir result](references/elixir.md).
|
|
19
|
-
- Python has no released application client: [submit an intent from Python](references/python.md).
|
|
12
|
+
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.
|
|
20
13
|
|
|
21
|
-
|
|
14
|
+
Python has no usable Chronicle client: a Python program sends the intent through the HTTP API of the service that owns the history, and that service records the fact.
|
|
15
|
+
|
|
16
|
+
## Default path
|
|
17
|
+
|
|
18
|
+
1. Declare one immutable, past-tense fact with just the data it carries; model an optional fact as its own event type rather than an optional member. Register its type in the writer's store. Start at the first generation; keep the type ID stable across renames.
|
|
19
|
+
2. Select the intended namespace and its event log. Append the fact with the stable, non-personal source ID of the affected instance, not a newly generated ID for each write.
|
|
20
|
+
3. Inspect the outcome. On acceptance, retain the assigned position. On refusal, distinguish schema or constraint violations, concurrency conflicts and other errors; do not report success. The kernel validates content against the type's registered schema and reports a mismatch as a schema constraint violation naming the failing path, not as an error; nothing is appended. If the decision depended on state that changed, decide again rather than resubmitting the stale fact.
|
|
21
|
+
4. A lost response is **not a refusal**. Reconcile the original attempt in the same history or retry with its original idempotency key if it was a keyed append. Correlation alone does not deduplicate. Observer timeout does not undo storage.
|
|
22
|
+
|
|
23
|
+
## Capability catalog
|
|
24
|
+
|
|
25
|
+
Not every SDK exposes every entry; your language reference states what is not supported and what to do instead. Entries marked C# only exist in no other SDK.
|
|
26
|
+
|
|
27
|
+
**Declaration and routing**
|
|
28
|
+
|
|
29
|
+
- **Event identity:** register a schema under its type ID; pin the ID explicitly for shared contracts, collisions or renames.
|
|
30
|
+
- **Payload shapes:** each SDK defines which field types an event may hold and how identifiers, dates, enums, geospatial and polymorphic values are stored. Use the SDK's typed values rather than strings or hand-written equivalents; an unsupported shape fails at registration, not at append. Treat an existing enum's member order and values as part of the contract: add new members at the end. The registered schema is generated from a type's members, not from its serializer: a type whose own serializer writes a different shape (such as a single string) must declare the shape it writes (C#, Kotlin and Java; Go refuses a type with its own JSON or text marshaler at registration, and TypeScript and Elixir have no declaration; see your language reference). The declaration changes only the schema, not serialization, and keeps personal-data marking and nullability; keep the serializer.
|
|
31
|
+
- **Generation:** retain compatible changes within a generation; pair incompatible shapes with migrations (`cratis-chronicle-evolve-event`).
|
|
32
|
+
- **Source ID:** use a typed identifier where available to keep instance keys distinct from stream IDs, subjects and type names.
|
|
33
|
+
- **Declared source:** register a named source definition with optional description and concurrency dimensions; inspect definitions when resolving a route dynamically.
|
|
34
|
+
- **Declared streams:** name streams within the source; use the declared-source append to validate the stream name and derive the route. The stream instance ID still comes from the caller.
|
|
35
|
+
- **Free-form route:** supply source type, stream type and stream ID directly only when the writer already owns the routing convention.
|
|
36
|
+
- **Omitted route:** an append with no route value, or an empty one, is stored under source type `Default`, stream type `All` and stream ID `Default`. The stream ID is never derived from the event source ID, and an empty string does not select any other route. Earlier TypeScript and JVM client releases instead wrote stream type `Default` with the event source ID as stream ID; upgrading does not move or rewrite stored events. To keep extending such a history, pass all three route values on every append and every batch entry. Reads narrow only by the route values you pass, so a reader filtered on the old route does not see events written to the default route: read back with the reader's own filter, or widen it.
|
|
37
|
+
- **Tombstone:** mark terminal meaning where the consumer recognizes it; this is neither a write prohibition nor personal-data erasure.
|
|
38
|
+
- **Compensation declaration:** identify the original event type a corrective type can compensate before writing a linked compensation.
|
|
39
|
+
- **Subject:** derive the person the fact concerns from its content or supply the subject when appending; not the actor (`cratis-chronicle-protect-personal-data`).
|
|
40
|
+
- **Serialization-time enrichment:** use a registered payload-information provider for shared content that belongs in the serialized event rather than its envelope.
|
|
41
|
+
|
|
42
|
+
**Append and coordinate**
|
|
43
|
+
|
|
44
|
+
- **Single append:** record one registered event at the next available position; the event log is the normal sequence.
|
|
45
|
+
- **Single-source batch:** append several facts from one decision in order, atomically; inspect the batch outcome and assigned positions.
|
|
46
|
+
- **Mixed-source batch:** provide an ordered entry per event with its own source and routing metadata when one decision affects several histories in the same sequence.
|
|
47
|
+
- **Operation builder:** accumulate writes grouped by source, inspect or clear the pending entries, then perform the batch when its membership is known.
|
|
48
|
+
- **Occurred time:** override recording-time defaults for a fact known to have happened earlier; timestamp does not determine position.
|
|
49
|
+
- **Correlation, causation and identity:** every stored event records which operation it belongs to (correlation ID), why it happened (causation chain) and who caused it (identity, with an on-behalf-of chain for delegation). Set them once where a request or background job enters; the client attaches them to every append in that context, and work that leaves that context (a new thread, process or independent task, depending on the runtime) must carry them explicitly. With no identity supplied the client records its predefined default, not a person. They are metadata, not authorization: keep them separate from business payload, retry keys and the personal-data subject. When the kernel authenticates the caller as a signed-in user, that user is recorded and a supplied identity is ignored. The API is in this skill's language reference or in the language reference of `cratis-chronicle-connect-application`.
|
|
50
|
+
- **Static or supplied tags:** classify a type once or label a particular event or batch at append time for plain-tag selection.
|
|
51
|
+
- **Named tags:** attach a name with a value (for example a runtime identifier); never put secrets or erasable personal data in tags. Names and values match exactly and case-sensitively.
|
|
52
|
+
- **Query by named tag (server operation only):** no SDK has a typed query for it. The server's event-sequence gRPC service pages matching events (`QueryEventsWithNamedTags`) or counts them over time (`SequenceHistogramWithNamedTags`). Each criterion is a name only (any value), a name and one value, or a name and a set of values (any of them). An event matches if it meets any criterion; an event without the name, or with another value, does not. The criteria then combine with the other filters (source, types, plain tags, dates). An empty criterion list or an empty value set is rejected, never widened to all events.
|
|
53
|
+
- **Tag enrichment (C# only):** use ambient scopes or registered enrichers for additive cross-cutting named tags, not payload mutation. Applied on every append path (including batches and units of work, resolved when staged) and merged without duplicates; enrichers are pure, synchronous and additive.
|
|
54
|
+
- **Audience (C# only):** mark the event type to make an audience mandatory (a missing audience fails the append); mark a member to supply the value; an ambient audience reaches only outbox appends and types that require an audience; an audience filter is not authorization.
|
|
55
|
+
- **Concurrency guards:** supply the expected history scope (per source for a batch) when an append depends on an earlier read; do not assume plain append protects that read (`cratis-chronicle-protect-decision`).
|
|
56
|
+
- **Keyed append (C# only):** supply a stable operation key for one event or an ordered batch; retain the same key, content and order on retry. Distinguish already accepted from an idempotency conflict, including unverifiable content.
|
|
57
|
+
- **Prepare:** capture serialization once for subsequent append; use a prepared batch when the exact enrolled entries must be preserved.
|
|
58
|
+
- **Verify stored content:** compare a prepared payload at the suspected position; unavailable evidence after revision or erasure is neither equality nor proof of absence.
|
|
59
|
+
- **Unit of work:** stage through the transactional sequence, then have one owner commit and check the final outcome or roll back before completion. Staging is not persistence; an immediate append is not rolled back with the unit.
|
|
60
|
+
- **Request completion:** when the response promises persistence, complete the owned unit before starting the response, not after the handler returns.
|
|
61
|
+
- **Append notifications:** subscribe to client append operations/results for local instrumentation; use a reactor instead for durable processing.
|
|
62
|
+
- **Wait for completion:** wait for observer progress only when the next action depends on it; check the completion outcome independently of acceptance.
|
|
63
|
+
|
|
64
|
+
**Correct, close or transfer history**
|
|
65
|
+
|
|
66
|
+
- **Correct a recorded fact:** if something new happened in the business (a later decision, change or reversal), append a new fact or a declared compensation. If nothing new happened and the content was recorded wrongly (a bug or data-entry error), revise that position instead where the SDK supports revision (otherwise append a correcting fact). The replacement must have the same event type ID; the original content and revision history are kept, and affected replayable observers replay. The kernel applies a revision asynchronously, so a successful call means accepted, not applied: confirm by reading the event's revisions. Revision is not idempotent: after an unknown outcome read the revisions first, never repeat the call blindly.
|
|
67
|
+
- **Compensate a position:** append a declared compensation linked to the original; the kernel refuses a type not declared for the original's type and gives the compensation the original's source, stream and subject. Observers implement the business effect; the original is unchanged.
|
|
68
|
+
- **Complete a stream:** close the selected stream or closure scope to later ordinary writes; use an expected tail when closure must be conditional. Use `cratis-chronicle-constrain-append` for event-triggered closure/reopening.
|
|
69
|
+
- **Inspect or reopen closure:** query one scope or list closed scopes (each shows whether an operator or a closing event closed it) before administrative action. Where explicit reopening is available it takes a reason and reopens only a manual completion with exactly the same dimensions; a closure owned by a closing event reopens only through its configured reopening event.
|
|
70
|
+
- **Redact:** replace the content of one position, or of a source's events in this sequence (optionally narrowed by type), with a redaction marker holding the reason and the original type; keep personal data out of the reason. Position, routing identifiers, tags and subject remain; the marker keeps the original Occurred, CorrelationId and CausedBy (not causation property values) and the event's own context records the redaction. So redaction is neither deletion nor anonymisation, and it selects by source, not every event that mentions a person. The kernel applies it asynchronously: a successful call means accepted. It does not reach earlier copies (outbox/inbox forwards, exports, backups) or erase derived read models by itself: replayable observers of the affected types replay, and an observer that also handles the marker (where the SDK supports it) cleans up what it derived; verify each before reporting an erasure complete. Not a reversible correction.
|
|
71
|
+
- **Copy:** submit a job to copy a source's history to a different source, optionally filtering types; job submission is not completion.
|
|
72
|
+
- **Import:** stream ordered historical entries with original occurrence and provenance; select rejection or skipping of invalid input and inspect counts, ranges and indexed failures. The kernel holds each chunk in staging, not in the event log, and records the chunk's rejected entries as it stages it. Validation of the whole import, constraints included, finishes only after the import is completed, in the order the entries were added; a commit job then appends the staged entries in order, a chunk at a time, each at a new position. Before completion nothing is in the log and no observer sees it, so an interrupted staging run left no events behind. With the default reject policy, one entry found invalid at validation means nothing is committed; an entry that loses a uniqueness race to another writer after validation is rejected alone and the rest commits. Once committing has started, committed chunks stay committed and become visible chunk by chunk: wait for the `Completed` state before treating the import as whole.
|
|
73
|
+
- **Import session:** give the import a stable ID and record it durably before adding anything, or begin without one and record the ID the session returns. After an interruption, reattach with that ID and continue the same ordered input after the acknowledged count; never restart from the beginning or under a new ID, which starts an empty staging. Abandon works only while the import is still staging and discards the staged entries; to give up a commit, stop and remove its commit job.
|
|
74
|
+
- **Staging retention:** the kernel abandons an import left open without activity for its import staging retention (24 hours by default) and discards its staging. Reattach within that window, or raise the kernel's `imports.stagingRetention` before a planned long pause (`cratis-chronicle-deploy-kernel`).
|
|
75
|
+
- **Import controls:** tune events per chunk, concurrent chunks and retry budget for load; distinguish waiting for commit from submission and use stable entry keys for repeat imports.
|
|
76
|
+
|
|
77
|
+
**Inspect and bootstrap**
|
|
78
|
+
|
|
79
|
+
- **Read by source:** retrieve the instance's events narrowed to relevant event types and route when reconstructing or verifying history.
|
|
80
|
+
- **Read from position:** scan from a sequence number with optional source/type filters; the erased-properties read for that representation is C# only.
|
|
81
|
+
- **Read metadata:** fetch context by one position or several without reading payloads; useful for reconciliation after an uncertain response.
|
|
82
|
+
- **Existence:** ask whether the source has events rather than materializing its history.
|
|
83
|
+
- **Sequence bounds:** read the next number for sequence state or the tail, optionally narrowed to a history; neither reserves a position.
|
|
84
|
+
- **Observer-specific tail:** find the tail relevant to an observer rather than comparing it to unrelated events.
|
|
85
|
+
- **Page or read latest (C# only):** bound a browse request, choose direction and filter by source, stream, types or tags before limiting results. A page holds at most 1000 events and larger requests are rejected, so traverse with the returned continuation.
|
|
86
|
+
- **Seeder:** declare repeatable startup facts by source, using homogeneous events, mixed events or routed entries. Register globally or for a particular namespace; use explicit registration when the application controls bootstrap. Unscoped (global) seeds reach every existing namespace and every namespace created later, in every environment; scope sample or demo data to a namespace and gate it by configuration, because seeding has no notion of development versus production.
|
|
87
|
+
- **Seed reconciliation:** an occurrence already seeded with the same source, type, route, content and tags is not appended again, so keep those and the intended multiplicity stable; a changed entry is appended as a new fact. Removing a seed declaration does not remove history. Seeds are appended as the event type's first generation, so seed content must fit generation one. Registering seeds acknowledges the declaration, not each entry: a seed refused by a constraint is only reported in kernel diagnostics, so read back the data the application depends on. Seeding is not a user action or a history migration.
|
|
88
|
+
|
|
89
|
+
## Verify the write
|
|
90
|
+
|
|
91
|
+
In a disposable namespace, append once and check acceptance. Read the same sequence for that source and type; match the assigned position, route and content. If no match appears, check store, namespace, sequence, source ID, type registration and any read filter before attempting another write.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Coordinate C# writes
|
|
2
|
+
|
|
3
|
+
## Scope causation around a direct append
|
|
4
|
+
|
|
5
|
+
In a configured ASP.NET Core host inject `ICausationManager` (`Cratis.Chronicle.Auditing`). The ordinary append uses its ambient chain; dispose the scope to restore the previous chain.
|
|
6
|
+
|
|
7
|
+
```csharp
|
|
8
|
+
using (causationManager.BeginScope("packing", new System.Collections.Generic.Dictionary<string, string> { ["step"] = "confirm" }))
|
|
9
|
+
{
|
|
10
|
+
var result = await eventLog.Append(shipmentId, new ShipmentPacked(3));
|
|
11
|
+
if (!result.IsSuccess) return;
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Classify or enrich
|
|
16
|
+
|
|
17
|
+
```csharp
|
|
18
|
+
[EventType, Tag("dispatch", "audit")] // TagsAttribute is equivalent
|
|
19
|
+
public record ParcelAssigned([property: Audience] string Region);
|
|
20
|
+
|
|
21
|
+
using var scope = EventTags.Scope("channel", "counter");
|
|
22
|
+
var result = await eventLog.AppendWithNamedTags(parcelId, assigned,
|
|
23
|
+
[new NamedTag("service", "express")], tags: ["priority"]);
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Named tags are additive exact pairs, not replacements for plain `tags`. Use `AppendManyWithNamedTags` for a common batch label or `EventForEventSourceId.NamedTags` / `Tags` per entry. `[Audience]` has two roles. On the event type it makes an audience mandatory: appending that type without an `audience` tag, by any path (`Append`, `AppendMany`, outbox, unit of work), throws `MissingAudience` (`Cratis.Chronicle`); in a unit of work it throws when the event is added, not at commit. On a member (`[property: Audience]`) it only supplies the value from the payload and does not make an audience required. Use both when every event of the type must carry the value it holds. `using var audience = EventTags.Audience(region);` supplies the audience for appends inside the scope. Do not use audience selection as authorization.
|
|
27
|
+
|
|
28
|
+
Chronicle resolves each event's named tags in one step used by every append path (`Append`, `AppendMany`, unit-of-work staging), in this order: named tags already on the event (including call-site named tags), the ambient `EventTags.Scope` and an `[Audience]` property, then your `IEventTagEnricher`s; merged without duplicate name/value pairs. An ambient audience (`EventTags.Audience`, which is an `EventTags.Scope` for the audience tag) is stamped only on outbox appends and `[Audience]` types; other ambient pairs reach every event. Static `[Tag]` strings are plain tags: they are joined with call-site plain `tags` and de-duplicated separately, and enrichers neither see nor produce them. In a unit of work tags resolve when the event is added, not at commit. Enrichers are discovered automatically, resolved through dependency injection, all run for every event, and must be pure, synchronous and additive: they add tags and never remove or change existing ones. `EventTags.Scope(name, value)` flows with the async execution context until disposed, and nested scopes add up; open it with `using` where a request or background job starts. To change serialized content instead, provide additional event information:
|
|
29
|
+
|
|
30
|
+
```csharp
|
|
31
|
+
public class WriterTags : IEventTagEnricher
|
|
32
|
+
{
|
|
33
|
+
public IEnumerable<NamedTag> GetTags(EventTagContext context) => [new NamedTag("writer", "dispatch")];
|
|
34
|
+
}
|
|
35
|
+
public class WriterInformation : ICanProvideAdditionalEventInformation
|
|
36
|
+
{
|
|
37
|
+
public Task ProvideFor(System.Text.Json.Nodes.JsonObject payload)
|
|
38
|
+
{
|
|
39
|
+
payload["originSystem"] = "dispatch";
|
|
40
|
+
return Task.CompletedTask;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Build, retry or verify
|
|
46
|
+
|
|
47
|
+
```csharp
|
|
48
|
+
using Cratis.Chronicle.Auditing;
|
|
49
|
+
using Cratis.Chronicle.EventSequences.Operations;
|
|
50
|
+
|
|
51
|
+
var cause = new Causation(System.DateTimeOffset.UtcNow, "packing",
|
|
52
|
+
new System.Collections.Generic.Dictionary<string, string> { ["step"] = "confirm" });
|
|
53
|
+
var operations = eventLog.ForEventSourceId(parcelId, source => source.Append(assigned))
|
|
54
|
+
.ForEventSourceId(depotId, source => source.WithConcurrencyScope(depotScope).Append(spaceReleased))
|
|
55
|
+
.WithCausation(cause);
|
|
56
|
+
var entries = operations.GetEventsToAppend(); // GetAppendedEvents() for payloads only
|
|
57
|
+
var batch = await operations.Perform(); // Clear() instead to discard pending membership
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For a replayable operation, persist a nonempty `IdempotencyKey` (up to 512 characters). If `SupportsIdempotentAppends` is false, don't downgrade silently. On retry reuse the same route, key and content; for `AppendManyOnce(source, events, key)` preserve order because keys derive from indexes. Mixed-source `AppendMany` takes `IdempotencyKey` on each entry; unkeyed entries are not deduplicated. `AppendOnceWithNamedTags` and `AppendManyOnceWithNamedTags` take the tags after the key.
|
|
61
|
+
|
|
62
|
+
```csharp
|
|
63
|
+
var once = await eventLog.AppendOnce(parcelId, assigned, new IdempotencyKey(operationId));
|
|
64
|
+
if (once.HasIdempotencyConflicts || !once.IsSuccess) return; // each IdempotencyConflicts entry has Key, ExistingSequenceNumber, StoredEventType, RequestedGeneration and Reason (Content, Generation, Unverifiable): surface them, do not acknowledge or re-key
|
|
65
|
+
var outcome = once.Outcome; // Appended, AlreadyAppended, AlreadyAppendedAfterErasure
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
A content, generation or unverifiable conflict is not a successful replay. Do not mint a replacement key. One keyed refusal is transient by design: an entry in `Errors` whose text starts with `IdempotencyKeyUnsettled` means another append with the same key was still in progress, or the key protecting its values changed during the append. Nothing was written and `IsRetryable` stays false, so detect it by that prefix and retry a bounded number of times with the same key, route and content; surface it if it persists. To serialize once, `var snapshot = await eventLog.Prepare(assigned);` then `await eventLog.AppendPrepared(parcelId, snapshot)` on the same sequence, or `AppendPreparedThroughEventSource(typeof(Shipment), shipmentId, snapshot, eventStream: "Packing")`. `await eventLog.VerifyContent(position, snapshot, parcelId)` yields `Equal`, `Different` or `Unavailable`; do not turn unavailable evidence into permission to retry.
|
|
69
|
+
|
|
70
|
+
## Stage and complete
|
|
71
|
+
|
|
72
|
+
```csharp
|
|
73
|
+
using var unit = store.UnitOfWorkManager.Begin(CorrelationId.New());
|
|
74
|
+
await eventLog.Transactional.Append(parcelId, assigned);
|
|
75
|
+
await eventLog.Transactional.AppendMany(depotId, depotEvents);
|
|
76
|
+
await unit.Commit(); // or await unit.Rollback() before completion
|
|
77
|
+
if (!unit.IsSuccess) return; // inspect GetConstraintViolations(), GetConcurrencyViolations(), GetAppendErrors()
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Staging is not storage. `Transactional.AppendWithNamedTags` and `AppendManyWithNamedTags` retain batch labels. Ordinary `eventLog.Append` is not rolled back. Do not start or commit a second unit when the host owns one.
|
|
81
|
+
|
|
82
|
+
With Chronicle ASP.NET Core unit-of-work middleware enabled, use `app.MapPost("/parcels", handler).WithUnitOfWork()` to commit before the minimal API result is returned. For MVC/Razor Pages set `ChronicleAspNetCoreOptions.UnitOfWork.ReportFailuresBeforeResponseStarts` to true (default false). For custom result handling, obtain `IUnitOfWorkCompletionFeature` from `HttpContext.Features`, await `CommitAsync()` before starting the response and inspect the returned unit. Require the feature if persistence is promised.
|
|
83
|
+
|
|
84
|
+
## Observe the outcome
|
|
85
|
+
|
|
86
|
+
`using var subscription = eventLog.AppendOperations.Subscribe(observer);` takes an observer of batches of `AppendedEventWithResult` for local instrumentation. For durable handling use a reactor. After acceptance, with `Cratis.Chronicle.Observation`, `var wait = await result.WaitForCompletion(TimeSpan.FromSeconds(5));` checks observer progress. On `!wait.IsSuccess` inspect `TimedOut`, `OutstandingObservers` and `FailedPartitions`; don't append again.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Inspect, correct and bootstrap C# history
|
|
2
|
+
|
|
3
|
+
## Read without mutating
|
|
4
|
+
|
|
5
|
+
```csharp
|
|
6
|
+
var packedType = store.EventTypes.GetEventTypeFor(typeof(ShipmentPacked));
|
|
7
|
+
var history = await eventLog.GetForEventSourceIdAndEventTypes(shipmentId, [packedType]);
|
|
8
|
+
var later = await eventLog.GetFromSequenceNumber(position, shipmentId, [packedType]);
|
|
9
|
+
var erased = await eventLog.GetFromSequenceNumberWithErasedProperties(position, shipmentId);
|
|
10
|
+
var metadata = await eventLog.GetMetadataAt(position); // null if absent
|
|
11
|
+
var found = await eventLog.GetMetadataAt(positions); // dictionary by position
|
|
12
|
+
var any = await eventLog.HasEventsFor(shipmentId);
|
|
13
|
+
var next = await eventLog.GetNextSequenceNumber(); // not reserved
|
|
14
|
+
var tail = await eventLog.GetTailSequenceNumber(shipmentId);
|
|
15
|
+
var relevant = await eventLog.GetTailSequenceNumberForObserver(typeof(PackingReactor));
|
|
16
|
+
var filter = new EventSequenceFilter(EventSourceId: shipmentId, EventTypes: [packedType]);
|
|
17
|
+
var page = await eventLog.GetPage(EventSequencePageRequest.Forward(null, 50, filter), cancellationToken);
|
|
18
|
+
var latest = await eventLog.GetLatest(20, filter);
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Source/type history accepts stream type, stream ID and source type. Tail reads also accept those dimensions and event types; `GetTailSequenceNumberWithCancellation(cancellationToken, shipmentId)` supports cancellation. On a paged read consume `page.Events`; while `page.HasMore`, use `page.Next` with the same direction and filter. The request's count is the page size and must be 1–1000: a larger value throws `ArgumentOutOfRangeException` and is not clamped. To read more, including a full export, loop on `page.Next` while `page.HasMore`, keeping the same direction, filter and `Until` bound. Use `Backward` for reverse navigation, `Until` on the request for an end bound. Filter by source ID/type, stream ID/type, event types and plain tags. For a missing event check the sequence and namespace as well as every filter before writing again.
|
|
22
|
+
|
|
23
|
+
## Correct, close or copy
|
|
24
|
+
|
|
25
|
+
Normally append a new business fact. To link a reversal to an original without replacing it, declare `[EventType, CompensationFor<ShipmentPacked>] public record PackingCancelled(string Reason);` and check the `AppendResult`:
|
|
26
|
+
|
|
27
|
+
```csharp
|
|
28
|
+
var reversal = await eventLog.Compensate(position, new PackingCancelled("Shipment cancelled"));
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Pass no event source: the compensation takes the original's source, stream and subject, and the original is never changed. Check `reversal.IsSuccess`; a rejected compensation reports `AppendError.CompensatedEventNotFound` (no event at that position) or `AppendError.EventTypeDoesNotCompensateEventType` (the type is not declared for the original's type) in `reversal.Errors`. `correlationId`, `tags` and `occurred` can describe the correction. Observers and reducers receive the compensation as an ordinary event and read the original's position from `context.CompensationFor` (`EventSequenceNumber?`, null for other events); never copy the sequence number into the payload. Appending a compensation changes no read model and reverses no external action by itself: handle the compensating type in every projection, reducer or reactor that must apply the reversal. For mistaken recorded content rather than a later decision use `await eventLog.Revise(position, new ShipmentPacked(correctCount));`.
|
|
32
|
+
|
|
33
|
+
```csharp
|
|
34
|
+
var scope = ClosedStreamScope.ForEventSource(shipmentId);
|
|
35
|
+
var closure = await eventLog.CompleteStream(scope, expectedTailSequenceNumber: observedTail);
|
|
36
|
+
var closed = await eventLog.IsStreamCompleted(scope);
|
|
37
|
+
var closures = await eventLog.GetClosedStreams(scope);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Inspect the closure result (`Result<EventSequenceNumber, CompleteStreamError>`): `ExpectedTailMismatch` means the position you passed does not match the scope's current tail, so re-read and decide again, never retry blindly; `AlreadyCompleted` means it was closed earlier (still closed, but not by this call); `EmptyScope` means the scope names no dimension; `DefaultStreamCannotBeCompleted` refuses closing the catch-all stream, which would block every later append. Construct a scope from nonempty source ID/type and/or stream type/ID to choose closure dimensions. `CompleteStream(streamType, streamId)` and `IsStreamCompleted(streamType, streamId)` target a stream; omit the scope on `GetClosedStreams()` for all. A tombstone is not this guard.
|
|
41
|
+
|
|
42
|
+
```csharp
|
|
43
|
+
await eventLog.Redact(position, new RedactionReason(reason));
|
|
44
|
+
await eventLog.Redact(shipmentId, new RedactionReason(reason), typeof(ShipmentPacked));
|
|
45
|
+
Guid copyJob = await eventLog.Copy(shipmentId, targetId, typeof(ShipmentPacked));
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Redact by position **or** source; omit the type list for the entire source. Redaction keeps the position and replaces the content with an `EventRedacted` marker (`Cratis.Chronicle.Events`: `Reason`, `OriginalEventType`, `Occurred`, `CorrelationId`, `Causation`, `CausedBy`). Routing identifiers, tags and subject values remain on the event; the marker keeps the causation types, not their property values. Redaction does not reach earlier copies (backups, exports, events forwarded through an outbox) or derived read models by itself, and receiving the marker does not prove downstream cleanup succeeded, so confirm it before reporting an erasure complete. A reactor or reducer that already handles the original event type may add an `EventRedacted` handler to clean up what it derived: a reducer returns the sanitized model or `null` to remove it, a reactor asks the downstream system to delete its copy. Such an observer receives the marker only when the redacted event was of a type it handles, when it reads that position. That filter needs at least one ordinary event type: an observer handling nothing but `EventRedacted` receives the marker for every redaction in the sequence, whatever the original type, so check `OriginalEventType` there. Replayable observers of the affected events are also asked to replay, so review their external effects first. Copy optionally filters types too. Track the returned job, not just its submission.
|
|
49
|
+
|
|
50
|
+
## Import historical entries
|
|
51
|
+
|
|
52
|
+
Use `Cratis.Chronicle.Imports`. For a finite input call `await eventLog.Import(entries, cancellationToken: token)` with an enumerable or async enumerable. Supply original metadata on each `EventForEventSourceId`, not in its payload:
|
|
53
|
+
|
|
54
|
+
```csharp
|
|
55
|
+
var entry = new EventForEventSourceId(shipmentId, packed, originalCause) {
|
|
56
|
+
Occurred = occurred, CorrelationId = originalCorrelation, CausedBy = originalIdentity,
|
|
57
|
+
Generation = originalGeneration, SourceSequenceNumber = originalPosition,
|
|
58
|
+
IdempotencyKey = new IdempotencyKey(externalRecordKey)
|
|
59
|
+
};
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The target assigns new positions; the original position is provenance. Use stable entry keys across repeat imports. `ImportOptions` defaults to rejecting invalid input without committing, waiting for commit, four chunks in flight, five chunk attempts, a generated import ID and the server chunk limit. Set `OnInvalid = OnInvalidEvent.Skip` only for an explicitly partial import. `MaxEventsPerChunk` caps chunk size (server limit still applies); tune `MaxChunksInFlight` and `MaxChunkAttempts` for load and connection failures. With `WaitForCommit = false` do not equate submission with commit. Pass an `IProgress<ImportProgress>` to `Import` to track staged vs committed counts.
|
|
63
|
+
|
|
64
|
+
```csharp
|
|
65
|
+
await using var session = await eventLog.BeginImport(importId, cancellationToken: token);
|
|
66
|
+
// Open the SAME ordered input at session.EventsAcknowledged; don't resend that prefix.
|
|
67
|
+
await session.Add(ReadEntriesFrom(session.EventsAcknowledged), token);
|
|
68
|
+
var imported = await session.Complete(token);
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Nothing reaches the event log before `Complete`. Begin with `eventLog.BeginImport(options)` and store `session.ImportId` durably before the first `Add`, or set `ImportOptions.ImportId` (beginning with an ID that already exists returns that import). On restart, `eventLog.BeginImport(importId)` reattaches; `EventsAcknowledged` (a `long`) counts the entries the kernel already holds, in order and without a gap, so skip that many of the same ordered input and continue. `Complete` waits for every chunk to be acknowledged, closes staging and, unless `WaitForCommit = false`, waits for the commit. `Abandon` discards everything staged and commits nothing. Disposing an incomplete session leaves it open on the kernel for reattachment until its staging retention runs out. A plain `Import(...)` call with a generated ID cannot be resumed after the process dies, so use the session form, or a fixed `ImportOptions.ImportId`, for long-running imports. Subscribe to `session.Progress` while adding. Inspect `State`, `IsSuccess`, `EventsStaged`, `EventsCommitted`, `AlreadyAppended`, `FirstSequenceNumber`, `LastSequenceNumber`, `FailureReason`, `RejectedCount` and `Rejections` (index/type/reasons). Successful completion under skip policy still requires reconciling rejected entries.
|
|
72
|
+
|
|
73
|
+
## Seed repeatable startup history
|
|
74
|
+
|
|
75
|
+
```csharp
|
|
76
|
+
using Cratis.Chronicle.Seeding;
|
|
77
|
+
|
|
78
|
+
public class PackingSeed : ICanSeedEvents
|
|
79
|
+
{
|
|
80
|
+
public void Seed(IEventSeedingBuilder builder) => builder
|
|
81
|
+
.For("demo-parcel", new[] { new ShipmentPacked(2) })
|
|
82
|
+
.ForNamespace("training").ForEventSource("training-parcel", [new ShipmentPacked(1)]);
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Discovered seeders declare globals or namespace-specific entries. `For<TEvent>` groups homogeneous events; `ForEventSource` accepts mixed types. Both accept `(id, streamType, streamId, events, eventSourceType?)`. `ForEvents(entries)` takes individual routes. Preserve membership, multiplicity and routing for idempotent reconciliation. For explicit bootstrap use `var seeds = store.CreateEventSeeding(); seeds.ForEvents(entries); await seeds.Register();`. Unscoped `For`/`ForEventSource`/`ForEvents` entries are global: the kernel applies them to every existing namespace and every namespace created later. Chronicle does not distinguish development from production seeds, so gate sample data by build or runtime configuration and scope it with `ForNamespace(...)`. The globals from discovered seeders are the program's declaration, owned by `ChronicleOptions.ProgramIdentifier` (the entry assembly name when unset). Each startup replaces the stored declaration, even with an empty set, so removing or scoping a global seeder stops it reaching namespaces created afterwards; if a discovered seeder fails to activate or seed, the previous declaration stays and the next registration retries. Give each program sharing a store a distinct, stable `ProgramIdentifier`. Globals added explicitly through `eventStore.Seeding` or a `CreateEventSeeding()` buffer are append-only and stay stored. Neither path retracts events already appended to existing namespaces; those need separate, deliberate remediation. Verify the history even on successful registration: check server logs for a rejected seed batch and re-register corrected entries with a fresh buffer.
|