@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,23 +1,71 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Guard an append with the history used by a Kotlin decision
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use the connected store's `eventLog` (or the same `IEventSequence` for both operations) from a suspending command. Register the event types in that store. Names are illustrative.
|
|
4
|
+
|
|
5
|
+
## Default: read, decide, append with an explicit predicate
|
|
6
|
+
|
|
7
|
+
```kotlin
|
|
8
|
+
import io.cratis.chronicle.eventSequences.*
|
|
9
|
+
import io.cratis.chronicle.eventSequences.concurrency.*
|
|
10
|
+
import io.cratis.chronicle.events.EventType
|
|
11
|
+
import io.cratis.chronicle.events.EventTypeDescriptor
|
|
12
|
+
|
|
13
|
+
@EventType(id = "BayClaimed") data class BayClaimed(val van: String)
|
|
14
|
+
@EventType(id = "BayReleased") data class BayReleased(val van: String)
|
|
15
|
+
|
|
16
|
+
suspend fun claim(sequence: IEventSequence, bay: String, van: String): AppendResult {
|
|
17
|
+
val history = sequence.getForEventSourceIdAndEventTypes(
|
|
18
|
+
bay, listOf(BayClaimed::class, BayReleased::class)
|
|
19
|
+
)
|
|
20
|
+
val latest = history.maxByOrNull { it.context.sequenceNumber }
|
|
21
|
+
val claimed = EventTypeDescriptor.parse("BayClaimed")
|
|
22
|
+
require(latest == null || latest.context.eventType.id != claimed.id) { "Bay occupied" }
|
|
23
|
+
val guard = ConcurrencyScopeBuilder().apply {
|
|
24
|
+
withEventSourceId()
|
|
25
|
+
withEventType(claimed)
|
|
26
|
+
withEventTypes(listOf(EventTypeDescriptor.parse("BayReleased")))
|
|
27
|
+
if (latest == null) withExpectsNoMatchingEvent()
|
|
28
|
+
else withSequenceNumber(EventSequenceNumber(latest.context.sequenceNumber))
|
|
29
|
+
}.build()
|
|
30
|
+
return sequence.append(bay, BayClaimed(van), AppendOptions(concurrencyScope = guard))
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The latest transition decides occupancy here. For a more complex rule, fold **all** its inputs and fail closed if the fold cannot complete. A successful empty read is distinct from an exception. Never fetch a newer tail after the decision. `getTailSequenceNumber(bay)` reads a source tail, not a snapshot of a previously read model.
|
|
35
|
+
|
|
36
|
+
`ConcurrencyScope(position, eventSourceId = true)` checks all event types on the append's source for events after `position`. The builder starts with an unavailable position, no source-ID restriction, no type/stream restrictions and no expected-empty assertion. `withEventType` and `withEventTypes` accumulate descriptors. Empty event types means unrestricted. To assert absence directly use `ConcurrencyScope(EventSequenceNumber.unavailable, eventSourceId = true, expectsNoMatchingEvent = true)`; combining an actual position with absence is rejected. A dimensions-only `isIncomplete` scope is not an observed boundary.
|
|
37
|
+
|
|
38
|
+
For a read confined to one classified source and stream, pass `eventSourceType`, `eventStreamType` and `eventStreamId` to the history call. Match the predicate with `withEventSourceType("Depot")`, `withEventStreamType("Shift")`, `withEventStreamId(shiftId)` and `withEventSourceId()` when scoped to the bay. The corresponding constructor fields have the same names without `with` (lower camel case). Set the routing fields in `AppendOptions` on the write: a predicate filters history, it does not route new events. Never narrow a guard beyond the read.
|
|
39
|
+
|
|
40
|
+
## Several events or dependencies
|
|
41
|
+
|
|
42
|
+
Use `sequence.appendMany(bay, changes, AppendOptions(concurrencyScope = guard))` for one source. For two source histories, pass the guards from the two reads together:
|
|
4
43
|
|
|
5
44
|
```kotlin
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import io.cratis.chronicle.eventSequences.concurrency.ConcurrencyScope
|
|
10
|
-
|
|
11
|
-
suspend fun appendBorrowed(
|
|
12
|
-
sequence: IEventSequence,
|
|
13
|
-
bookId: String,
|
|
14
|
-
borrowed: Any,
|
|
15
|
-
observedPosition: EventSequenceNumber
|
|
16
|
-
) = sequence.append(
|
|
17
|
-
bookId,
|
|
18
|
-
borrowed,
|
|
19
|
-
AppendOptions(concurrencyScope = ConcurrencyScope(observedPosition, eventSourceId = true))
|
|
45
|
+
val results = sequence.appendMany(
|
|
46
|
+
listOf(EventForEventSourceId(oldBay, released), EventForEventSourceId(newBay, claimed)),
|
|
47
|
+
concurrencyScopes = mapOf(oldBay to oldGuard, newBay to newGuard)
|
|
20
48
|
)
|
|
21
49
|
```
|
|
22
50
|
|
|
23
|
-
|
|
51
|
+
Alternatively, import `io.cratis.chronicle.eventSequences.operations.operations` and use `sequence.operations().forEventSourceId(bay) { withConcurrencyScope(guard); append(claimed) }.perform()`. `withConcurrencyScope { ... }` accepts the same builder calls. A later real scope replaces the previous one for that source; `notSet` does not clear an existing operations scope. A map has one predicate per ID: do not overwrite a dependency to fit it.
|
|
52
|
+
|
|
53
|
+
## Routing-derived checks
|
|
54
|
+
|
|
55
|
+
For optimistic writes **not based on an earlier read**, a registered `@EventSource(concurrency = [ConcurrencyDimension.EventSourceId])` definition selected by `AppendOptions(eventSource = Depot::class)` derives a guard at dispatch. Annotation and enum are in `io.cratis.chronicle.eventSources`. Select `EventSourceType`, `EventStreamType` or `EventStreamId` in the array to include the corresponding resolved, nonempty routing values. The SDK reads the matching tail and asserts absence if empty. No dimensions (default), or none with a value, means no derived check. Distinct derived predicates for one ID in a batch raise `ConflictingEventSourceConcurrency`. An explicit scope takes precedence. `ConcurrencyScope.notSet` leaves selection to routing; `ConcurrencyScope.none` explicitly disables protection, for unconditional writes only.
|
|
56
|
+
|
|
57
|
+
## Staging a guarded append in a unit of work
|
|
58
|
+
|
|
59
|
+
Inside a current unit (`store.unitOfWorkManager.begin()`), `store.eventLog.transactional.append(bay, claimed, AppendOptions(concurrencyScope = guard))` stages the event with its options; the returned result is a placeholder, not an outcome. The scope is honoured at `unit.commit()`. Afterwards check `unit.isSuccess` and `unit.getConcurrencyViolations()`, with `getConstraintViolations()` and `getAppendErrors()` separately.
|
|
60
|
+
|
|
61
|
+
A unit is not one atomic batch. Consecutive staged events sharing sequence, source and options commit as one guarded append; each such run commits after the previous one. A conflict in a later run leaves earlier runs written. When one decision spans several sources, use the `appendMany` form with `concurrencyScopes` instead.
|
|
62
|
+
|
|
63
|
+
## Inspecting the result
|
|
64
|
+
|
|
65
|
+
Check `result.isSuccess` before acknowledging the command. `result.concurrencyViolation` gives `eventSourceId`, `expectedSequenceNumber` and `actualSequenceNumber`; on confirmed conflict, re-read and re-decide. Batch failure results expose the first returned concurrency violation, not a per-read conflict map. Inspect `constraintViolations` and `errors` separately; resolve an unknown transport outcome before retrying. Test by interleaving two claims after both empty reads: only one may succeed.
|
|
66
|
+
|
|
67
|
+
## Not supported in this SDK
|
|
68
|
+
|
|
69
|
+
- Decision-model admission/description, protected projection/reducer or per-stream model reads, detached evidence, explicit or ambient participant enrollment and decision-read refusal diagnostics — use the explicit history predicate above only when it covers the complete rule.
|
|
70
|
+
- Automatic validator/handler decision protection, enrollment inspection, token-to-conflict mapping, protected commit/rollback ownership, immediate-append refusal, validate-only guard completion and early HTTP owner completion — own the guarded append directly and inspect its result before responding, or delegate the whole intent to a service with protected completion.
|
|
71
|
+
- Configurable default concurrency strategy or first-append switch — use registered routing dimensions for dispatch-time checks, or pass the observed boundary/absence explicitly. Never substitute a stored view for protected evidence.
|
|
@@ -1,11 +1,83 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Guard the history used by a Node command
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Read, decide and append
|
|
4
|
+
|
|
5
|
+
Use `@cratis/chronicle` on the server. Obtain the event log from the command's configured client, store and namespace. The example assumes registered `@eventType()` classes `BayClaimed` and `BayReleased`; these are the only events that change occupancy, and each is routed to the affected bay. Names are illustrative.
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
import { ChronicleClient, ChronicleOptions, EventSequenceNumber, getEventTypeFor } from '@cratis/chronicle';
|
|
9
|
+
|
|
10
|
+
const client = new ChronicleClient(ChronicleOptions.fromConnectionString(connectionString));
|
|
11
|
+
const log = (await client.getEventStore('Dispatch')).eventLog;
|
|
12
|
+
|
|
13
|
+
async function claim(bayId: string) {
|
|
14
|
+
const types = [BayClaimed, BayReleased];
|
|
15
|
+
const history = await log.getForEventSourceIdAndEventTypes(bayId, types);
|
|
16
|
+
// Occupancy is determined entirely by the most recent transition.
|
|
17
|
+
const last = history.reduce<(typeof history)[number] | undefined>((latest, e) =>
|
|
18
|
+
!latest || e.context.sequenceNumber > latest.context.sequenceNumber ? e : latest, undefined);
|
|
19
|
+
if (last?.eventType.id.value === getEventTypeFor(BayClaimed).id.value) return 'occupied';
|
|
20
|
+
|
|
21
|
+
const result = await log.append(bayId, new BayClaimed(), {
|
|
22
|
+
concurrencyScope: {
|
|
23
|
+
sequenceNumber: last?.context.sequenceNumber ?? EventSequenceNumber.beforeFirst.value,
|
|
24
|
+
eventSourceId: true,
|
|
25
|
+
eventTypes: types.map(t => getEventTypeFor(t))
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
if (result.concurrencyViolation) return 'stale';
|
|
29
|
+
if (!result.isSuccess) throw new Error('Claim rejected', { cause: result });
|
|
30
|
+
return 'claimed';
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`sequenceNumber` is a `bigint` upper bound for matching history. `beforeFirst.value` requires no match; neither zero (a real position) nor `unset.value` means that. Never turn a failed read into empty history or replace its boundary with a later tail. `eventSourceId: true` binds the predicate to the append's source (or batch label); omitted/false does not restrict it. Omit `eventTypes` only when all types should count.
|
|
35
|
+
|
|
36
|
+
For a stream-specific decision, narrow **both** operations identically:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const history = await log.getForEventSourceIdAndEventTypes(bayId, types, streamType, streamId, sourceType);
|
|
40
|
+
// Fold history and obtain observedPosition as above, then:
|
|
41
|
+
const routeScope = { sequenceNumber: observedPosition, eventSourceId: true,
|
|
42
|
+
eventSourceType: sourceType, eventStreamType: streamType, eventStreamId: streamId,
|
|
43
|
+
eventTypes: types.map(t => getEventTypeFor(t)) };
|
|
44
|
+
const result = await log.append(bayId, claimed, { sourceType, streamType, streamId, concurrencyScope: routeScope });
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The three strings in `routeScope` independently filter history; the shorter option names outside it route the new event. A conflict reports `eventSourceId`, `expectedSequenceNumber` and `actualSequenceNumber`. Re-read and decide again only on confirmed conflict. Inspect `constraintViolations` and `errors` separately; reconcile an ambiguous transport outcome before retrying.
|
|
48
|
+
|
|
49
|
+
## Guard more than one dependency
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
const results = await log.appendMany([{ eventSourceId: bayId, event: claimed }], {
|
|
53
|
+
concurrencyScopes: { [bayId]: occupancyScope, [carrierId]: capacityScope }
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Use distinct source IDs and predicates derived from the respective reads. Inspect every returned `AppendResult`. For writes to one source, `log.appendMany(bayId, events, { concurrencyScope: occupancyScope })` reuses one guard. A batch's keyed entry takes precedence over its shared `concurrencyScope`. Only one predicate fits each ID; don't overwrite a required guard. Use one covering predicate derived from a correspondingly broader read, or delegate the decision.
|
|
58
|
+
|
|
59
|
+
Inside an existing unit, stage `unit.addEvent(log.id, bayId, claimed, { concurrencyScope: occupancyScope })`; unequal scopes for the same ID and sequence conflict. Let the application owner `await unit.commit()` and inspect `unit.isSuccess`, `unit.getConcurrencyViolations()` and `unit.getAppendResults()` before responding, or `await unit.rollback()` to abandon staged events. Keep the guarded write on one sequence; the unit groups commits by sequence.
|
|
60
|
+
|
|
61
|
+
## Choose a policy only for writes without explicit evidence
|
|
62
|
+
|
|
63
|
+
`ChronicleOptions` defaults to `ConcurrencyScopeStrategies.optimistic`: for a registered route with concurrency dimensions the SDK reads the tail for the selected source ID/type and stream type/ID, mapping an empty tail to `beforeFirst`. No dimensions means no derived guard. This protects the interval from tail lookup to append, **not** an earlier application decision. `log.getTailSequenceNumber(bayId, sourceType, streamType, streamId, types)` resolves a scoped tail explicitly; it does not return state.
|
|
64
|
+
|
|
65
|
+
Set the factory option `concurrencyScopeStrategy: ConcurrencyScopeStrategies.none` only for unconditional writes. Alternatively, supply a synchronous or asynchronous callback. Example policy for writes whose only dimension is source ID:
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
const options = ChronicleOptions.fromConnectionString(connectionString, {
|
|
69
|
+
concurrencyScopeStrategy: async ({ eventSourceId, readTail }) => {
|
|
70
|
+
const tail = await readTail(eventSourceId);
|
|
71
|
+
return { eventSourceId: true, sequenceNumber: tail.value === EventSequenceNumber.unset.value
|
|
72
|
+
? EventSequenceNumber.beforeFirst.value : tail.value };
|
|
73
|
+
}
|
|
8
74
|
});
|
|
9
75
|
```
|
|
10
76
|
|
|
11
|
-
|
|
77
|
+
The callback also receives `events` and `options`; `readTail` accepts optional source ID, source type, stream type and stream ID in that order. Returning `undefined` disables that check; throwing aborts preparation. Explicit scopes bypass the strategy. There is no independent first-append switch.
|
|
78
|
+
|
|
79
|
+
## Not supported in this SDK
|
|
80
|
+
|
|
81
|
+
- No decision-model admission, dependency description, admitted projection/reducer fold, per-stream decision declaration or typed refusal. Read complete finite history with matching filters as above; do not treat a stored model or query error as decision evidence.
|
|
82
|
+
- No detached decision token, automatic or explicit decision-read enrollment, enrollment inspection, protected validator/handler injection or conflict-to-model mapping. Carry explicit predicates all the way to the append, or send the intent to a service that can acquire and enforce every read.
|
|
83
|
+
- No protected owner claim, immediate-append barrier, guarded empty completion or early HTTP completion feature. An empty unit validates nothing; a batch with explicit keyed scopes needs an event. Keep completion in the command owner, before responding, or delegate both decision and commit. Do not manufacture an event just to validate.
|
|
@@ -1,21 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-chronicle-protect-personal-data
|
|
3
|
-
description: Use when marking personal fields
|
|
3
|
+
description: Use when marking personal fields in Chronicle events or read models, releasing protected values, erasing a subject's key, or redacting recorded events that hold personal content. Not for deciding who may access a profile (use cratis-arc-authorize-request).
|
|
4
4
|
compatibility: A supported application client and access to the intended kernel.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Protect personal data under its subject's key
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Chronicle keeps the event but can make a personal value unreadable: it encrypts marked fields for the person they describe and can destroy that person's key. This is not access control. Observers receive released events, so a reactor, webhook or export can create a plaintext copy outside that guarantee.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Node server `package.json` → typescript, `*.kt` → kotlin, `*.java` → java, `go.mod` → go, `mix.exs` → elixir); only the project's languages are installed.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
- Node server (`package.json`): [declare the Node subject and fields](references/typescript.md).
|
|
15
|
-
- Kotlin (`.kt`): [use a Kotlin personal concept](references/kotlin.md).
|
|
16
|
-
- Java (`.java`): [use the Java compliance bridges](references/java.md).
|
|
17
|
-
- Go (`go.mod`): [declare Go field policies and the subject](references/go.md).
|
|
18
|
-
- Elixir (`mix.exs`): [mark the Elixir model and use a scoped read](references/elixir.md).
|
|
19
|
-
- Python has no released application client: [delegate authorized release and erasure](references/python.md).
|
|
13
|
+
## Default path
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
Names are illustrative. To protect a technician's contact number:
|
|
16
|
+
|
|
17
|
+
1. Give the technician an opaque identifier. Use it as the event source ID for the technician's own history; if the number appears on a repair order, append under the order ID **with the technician as subject**. Check that neither identifier contains the contact number.
|
|
18
|
+
2. Mark the contact number as PII in the event and in each projection or reducer destination that stores it. Give the reason for collection, not a sample value. Check the registered schemas: a marked source does not classify its destination.
|
|
19
|
+
3. Append a synthetic number in a disposable namespace. Inspect storage without logging the payload; the number must not appear as plaintext. Then query through the authorized owning service: the released number must match. If either check fails, inspect the destination schema and resolved subject before continuing.
|
|
20
|
+
4. With approval for the disposable subject, erase its key. Read afresh: the contact number is now empty while an unrelated technician's number is unchanged. Do not test with a previously released object. In production verify scope, pause affected writes, address partial failures and account for independent copies before reporting erasure.
|
|
21
|
+
|
|
22
|
+
## Capability catalog
|
|
23
|
+
|
|
24
|
+
- **Field classification:** mark individual personal fields, including nested values, where the enclosing type has mixed sensitivity.
|
|
25
|
+
- **Type classification:** mark a reusable personal concept or value object when every use is personal; never classify the routable event source ID as PII.
|
|
26
|
+
- **Rationale and providers:** record collection details in schema metadata; use a metadata provider or explicit schema declaration only when local annotations cannot express the policy.
|
|
27
|
+
- **Confidentiality instead of erasure:** use separate confidentiality protection for retained secrets; do not combine it with PII on the same field. Its keys survive subject erasure.
|
|
28
|
+
- **Event subject:** let the source ID identify the subject when they coincide; otherwise supply the subject on append or declare the event field from which to derive it. An explicit subject overrides inference.
|
|
29
|
+
- **Model subject:** declare the owner field when the document key identifies something else; preserve Chronicle's reserved `__subject` and per-property `__subjects` overrides in raw documents. Do not model or rewrite them.
|
|
30
|
+
- **Projected and reduced values:** mark each personal destination; a multi-person projection tracks ownership per populated property. Verify each person's fields independently rather than releasing everything under the view key.
|
|
31
|
+
- **Managed query:** use a supported releasing query after authorization; verify both storage and query output because release passes unprotected plaintext through.
|
|
32
|
+
- **Explicit release:** for raw storage, cached instances or watch results that have not been released, use the SDK's release operation with intact ownership metadata; use collection release for multiple instances where available. Never log the result.
|
|
33
|
+
- **Subject erasure:** delete the subject key in the approved namespace. For an application store this fences the subject across registered non-system stores there, deletes the key, evicts cached keys and removes associated uniqueness claims; it does not delete the documents. Resolve incomplete coverage or partial failures and retry.
|
|
34
|
+
- **Erasure-aware event read:** when an empty value must be distinguished from an erased field, opt into erased property paths where available, outside command decision logic. Empty values alone prove nothing: wrong-key decryption can also empty a property, and transport or key-store failures can fail the read.
|
|
35
|
+
- **New lifecycle:** only after separate approval, allow a new key for future personal data. The fence otherwise refuses provisioning; the new key cannot unlock old ciphertext.
|
|
36
|
+
- **Redaction and retention:** key erasure empties only values that were marked personal when they were written. To remove the content of particular recorded events (selected event types for a source, or plaintext written before marking), redact those events with a reason that contains no personal data; `cratis-chronicle-record-event` owns the call and its limits. Redaction keeps the event's position and replaces its content with a marker; routing identifiers, tags and subject remain; the marker keeps the original Occurred, CorrelationId and CausedBy (causation types only, without property values), and the event's own context records the redaction. Copies outside the sequence are untouched. Every reducer or reactor that derived state from those types should also handle the marker (`EventRedacted` in C#) to remove or sanitize that state. Redaction is not a substitute for subject erasure. Omit causation property values on new writes if they should not be retained; deleting a key does not scrub existing causation metadata. Erasure also leaves the acting identity's display name in event metadata: renaming an identity corrects a name, appends no event and erases nothing, so keep personal data out of identity names that must be erasable. Plan separately for historical plaintext, other namespaces, downstream recipients, exports, backups and recoverable key copies.
|
|
@@ -1,73 +1,91 @@
|
|
|
1
|
-
# Protect
|
|
1
|
+
# Protect technician contact details in C#
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Use the `Cratis.Chronicle` client with an `IEventStore` bound to the intended store and namespace. Register events and projections through normal client discovery. The examples use opaque IDs; never put a contact number in a route, reason, schema annotation or log.
|
|
4
|
+
|
|
5
|
+
## Classify the event and its destination
|
|
6
6
|
|
|
7
7
|
```csharp
|
|
8
|
-
|
|
9
|
-
using Cratis.
|
|
8
|
+
using Cratis.Chronicle;
|
|
9
|
+
using Cratis.Chronicle.Compliance;
|
|
10
10
|
using Cratis.Chronicle.Compliance.GDPR;
|
|
11
11
|
using Cratis.Chronicle.Events;
|
|
12
12
|
using Cratis.Chronicle.Projections.ModelBound;
|
|
13
|
+
using Cratis.Chronicle.ProtectedValues;
|
|
13
14
|
using Cratis.Concepts;
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
[PII("Call the assigned technician")]
|
|
17
|
+
public record ContactNumber(string Value) : ConceptAs<string>(Value);
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
namespace Library.Features.Members.Registration
|
|
26
|
-
{
|
|
27
|
-
// Features/Members/Registration/MemberRegistered.cs
|
|
28
|
-
[EventType] public record MemberRegistered(MemberName Name, [PII("Email for member correspondence")] string Email);
|
|
29
|
-
}
|
|
30
|
-
namespace Library.Features.Members.Profiles
|
|
31
|
-
{
|
|
32
|
-
// Features/Members/Profiles/MemberProfile.cs
|
|
33
|
-
[ReadModel, FromEvent<MemberRegistered>]
|
|
34
|
-
public record MemberProfile(MemberId Id, MemberName Name, [PII("Email for member correspondence")] string Email);
|
|
35
|
-
}
|
|
19
|
+
[EventType]
|
|
20
|
+
public record TechnicianAssigned([Subject] Guid TechnicianId, ContactNumber Number,
|
|
21
|
+
[PII("Address for shift notices")] string Email);
|
|
22
|
+
|
|
23
|
+
[FromEvent<TechnicianAssigned>]
|
|
24
|
+
public record OrderContact(Guid Id, [Subject] Guid TechnicianId, ContactNumber Number,
|
|
25
|
+
[PII, ComplianceDetails("Address for shift notices")] string Email);
|
|
36
26
|
```
|
|
37
27
|
|
|
38
|
-
|
|
28
|
+
Here an order owns the history, but the technician owns the contact data. `[Subject]` works on a property or its matching record parameter. With no explicit or declared event subject the event source ID is the default. An explicit append subject wins: `var result = await eventStore.EventLog.Append(orderId, assignment, subject: technicianId);`. Check `result.IsSuccess` before treating the assignment as recorded. For a reactor that supplies the owner for returned side-effect events, implement `ICanProvideSubject` on the reactor (`public Subject GetSubject() => technicianId;`). For typed model release the fallback after `[Subject]` is `Id`.
|
|
29
|
+
|
|
30
|
+
- Mark a class (concept or value object) only if every use is personal. Otherwise mark just the personal property or constructor parameter. Mark destinations separately, including reducer result types. Inspect both registered schemas and test a synthetic value at rest and after release.
|
|
31
|
+
- Marking a nested member protects that member. Marking a collection property (e.g. `[PII] string[] ContactNumbers`) protects the whole collection, precluding element indexing; erasure empties it. To retain other members, mark the personal members of a concrete item type instead.
|
|
32
|
+
- Details default to empty and document purpose, not key selection. Nonempty resolved `[ComplianceDetails]` takes precedence; otherwise the first nonempty PII details on the property, matching parameter, declaring type or property type win, in that order.
|
|
33
|
+
- `[PII(SpecialCategory = SpecialCategory.Health)]` classifies Article 9 data. Alternatives are `RacialOrEthnicOrigin`, `PoliticalOpinions`, `ReligiousOrPhilosophicalBeliefs`, `TradeUnionMembership`, `Genetic`, `Biometric`, `SexLifeOrSexualOrientation`; default `None`. `[PII(Criminal = true)]` classifies conviction/offense data; `[PII(OperationalSecret = true)]` classifies personal data that is also a secret. Both flags default to false. These flags are not emitted as schema metadata and add no protection layer.
|
|
34
|
+
- For a **non-personal** secret use `[Encrypted]` on a property, parameter or class instead. Its default `EncryptionScope.Subject` uses a separate non-erasable-by-PII key; `[Encrypted(EncryptionScope.Namespace, details: "Authenticate the dispatch integration")]` shares a key within the store namespace; `EncryptionScope.Global` shares across the installation. Details default to empty. Never combine with PII on the same value.
|
|
35
|
+
- Adding protection metadata to an existing generation protects future writes only. Removing or changing existing protection metadata in place is refused. Review earlier plaintext and other writers before rollout.
|
|
36
|
+
|
|
37
|
+
## Supply policy when annotations are unavailable
|
|
39
38
|
|
|
40
|
-
|
|
39
|
+
The normal ASP.NET Core `AddCratisChronicle` setup already includes compliance. When configuring services separately, `services.AddCompliance()` (namespace `Microsoft.Extensions.DependencyInjection`) registers the built-in PII type and property provider. For an external type, make an implementation discoverable for the relevant provider interface. Its `CanProvide` must select only the intended type or property; `Provide` supplies the classification and rationale. For example, for an unannotatable payload `ImportedContact` with a personal `Pager` property:
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
```csharp
|
|
42
|
+
public sealed class PagerPolicy : ICanProvideComplianceMetadataForProperty
|
|
43
|
+
{
|
|
44
|
+
public bool CanProvide(System.Reflection.PropertyInfo property) =>
|
|
45
|
+
property.DeclaringType == typeof(ImportedContact) && property.Name == nameof(ImportedContact.Pager);
|
|
46
|
+
|
|
47
|
+
public ComplianceMetadata Provide(System.Reflection.PropertyInfo property) =>
|
|
48
|
+
new(ComplianceMetadataType.PII, "Reach the on-call technician");
|
|
49
|
+
}
|
|
50
|
+
```
|
|
43
51
|
|
|
44
|
-
|
|
52
|
+
For an always-personal external concept implement `ICanProvideComplianceMetadataForType` instead (`bool CanProvide(Type type) => type == typeof(ExternalPagerNumber);`, `ComplianceMetadata Provide(Type type) => new(ComplianceMetadataType.PII, "Reach the technician");`). Verify the generated schema rather than assuming a provider was discovered.
|
|
45
53
|
|
|
46
|
-
|
|
54
|
+
Confidentiality has its own pair of discovered providers, for a non-personal secret on a type you cannot mark `[Encrypted]`: `ICanProvideSecurityMetadataForType` and `ICanProvideSecurityMetadataForProperty` (`Cratis.Chronicle.Confidentiality`), with the same `CanProvide`/`Provide` shape, returning `new SecurityMetadata(SecurityMetadataType.EncryptedSubject, "Authenticate the dispatch integration")`. `EncryptedNamespace` and `EncryptedGlobal` select the wider key scopes. Never let a compliance provider and a security provider both classify the same value.
|
|
47
55
|
|
|
48
|
-
##
|
|
56
|
+
## Query after authorization
|
|
49
57
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
```csharp
|
|
59
|
+
var contact = await eventStore.ReadModels.GetInstanceById<OrderContact>(orderId);
|
|
60
|
+
var contacts = await eventStore.ReadModels.GetInstances<OrderContact>();
|
|
61
|
+
// For single-owner instances obtained from a raw collection, cache or Watch:
|
|
62
|
+
var released = await eventStore.ReadModels.Release(rawContact);
|
|
63
|
+
var releasedBatch = await eventStore.ReadModels.Release<OrderContact>(rawContacts);
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Prefer managed queries for joins: Chronicle keeps `__subject` and per-property `__subjects` with stored ciphertext. Do not declare these on the DTO. A reconstructed typed instance cannot recover lost per-property owners. Do not release a joined DTO under one person's key. Check two subjects independently, including after a rebuild.
|
|
53
67
|
|
|
54
|
-
|
|
68
|
+
`Release` is best-effort, not authorization or an integrity check. Plaintext passes through; missing schema metadata or an error response can leave the original instance unchanged. Transport or materialization can throw. An erased string is empty; a wrong key can also empty a property. Never cache or export the released result as though key deletion could retract it.
|
|
55
69
|
|
|
56
|
-
|
|
57
|
-
- Don't use release to decide authorization or pass it a missing profile.
|
|
58
|
-
- Don't promise to retract copies already released or erase backups by deleting the key.
|
|
70
|
+
## Erase and verify under the provisioning fence
|
|
59
71
|
|
|
60
|
-
|
|
72
|
+
After approval, pause affected writes. In a disposable test, use a known synthetic value and keep an unaffected control. Outside command decision logic:
|
|
61
73
|
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
```csharp
|
|
75
|
+
await eventStore.PII.DeleteEncryptionKeyFor(technicianId.ToString());
|
|
76
|
+
var history = await eventStore.EventLog.GetFromSequenceNumberWithErasedProperties(
|
|
77
|
+
EventSequenceNumber.First, orderId);
|
|
78
|
+
var erasedPaths = history.SelectMany(entry => entry.Context.ErasedProperties);
|
|
79
|
+
```
|
|
64
80
|
|
|
65
|
-
|
|
81
|
+
Check the expected field paths on the affected event and query the view afresh; confirm the control still releases. The read optionally takes `filterEventTypes` as well as `eventSourceId`; omit the source only when the wider read is intended. Erasure fences new provisioning, removes the key, evicts cached keys and removes associated uniqueness claims across registered non-system stores in the namespace for an application store. Discovery and permission must cover the targets. Failure mid-deletion may be partial: resolve and retry. Do not report document deletion or coverage of forwarded copies, other namespaces or recoverable backups.
|
|
66
82
|
|
|
67
|
-
|
|
83
|
+
Only after independent approval for **future** personal data: `await eventStore.PII.AllowNewEncryptionKeyFor(technicianId.ToString());`. Never do this automatically on refusal to provision. A new key cannot release earlier ciphertext.
|
|
68
84
|
|
|
69
|
-
|
|
85
|
+
To redact event content instead, use `await eventStore.EventLog.Redact(sequenceNumber, reason);` or `await eventStore.EventLog.Redact(orderId, reason, typeof(TechnicianAssigned));`. Omitting the type filter on the latter targets the entire source. Redaction removes event content and retained causation property values, not the subject's key. The stored event keeps its position and becomes an `EventRedacted` marker (`Cratis.Chronicle.Events`). To clear derived state, add an `EventRedacted` handler to the reducer or reactor that already handles the original event type; a reducer returns `null` to remove the model. Then verify the removal. The marker, what it keeps and the observer rules are in the history reference of `cratis-chronicle-record-event`.
|
|
70
86
|
|
|
71
|
-
##
|
|
87
|
+
## Not supported in this SDK
|
|
72
88
|
|
|
73
|
-
|
|
89
|
+
- PII on an `EventSourceId` type: use an opaque surrogate and a separately marked property. Erasable geospatial converter values are not supported either: omit personal coordinates or model erasable scalar fields separately.
|
|
90
|
+
- No strict option on `IReadModels.Release`: if all-or-nothing verification is required, use the compliance service contract with `ReleaseRequest.Strict = true`, require the strict response echo and reject errors; `FailedProperties` identifies the first failing path, not every failure. Intentional erasure is not a strict error.
|
|
91
|
+
- No append-time SDK option to omit retained causation values. Set kernel `events.causationPropertyRetention` to `Omit` (default `Retain`) for subsequent writes. Subject erasure does not scrub old causation values; handle them through separately authorized redaction.
|
|
@@ -1,5 +1,70 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Protect a technician's contact number in Elixir
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
In a Mix application using `:cratis_chronicle`, supervise `Cratis.Chronicle.Client` with the intended `:connection_string`, `:event_store` and `:namespace`. Register the modules below in `:event_types` and `:read_models` respectively. When using a reducer instead of the embedded projection, register it in `:reducers`. Names are illustrative.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```elixir
|
|
6
|
+
defmodule Dispatch.ContactAssigned do
|
|
7
|
+
use Cratis.Chronicle.Events.EventType,
|
|
8
|
+
id: "dispatch-contact-assigned", subject: :technician_id
|
|
9
|
+
|
|
10
|
+
defstruct technician_id: "", phone: ""
|
|
11
|
+
pii :phone, "Reach the assigned technician during a repair"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
defmodule Dispatch.OrderContact do
|
|
15
|
+
use Cratis.Chronicle.ReadModels.ReadModel
|
|
16
|
+
|
|
17
|
+
defstruct id: "", technician_id: "", phone: ""
|
|
18
|
+
subject :technician_id
|
|
19
|
+
pii :phone, "Reach the assigned technician during a repair"
|
|
20
|
+
|
|
21
|
+
from Dispatch.ContactAssigned,
|
|
22
|
+
set: [id: :event_source_id, technician_id: :technician_id, phone: :phone]
|
|
23
|
+
end
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Use opaque order and technician identifiers. The event field declaration infers the subject on append; a nonempty explicit `:subject` wins. If neither supplies a subject, the source ID must identify the person. Populate `technician_id` along with `phone` in the destination; a reducer's default subject field is `:id`, which here identifies an order, not a person.
|
|
27
|
+
|
|
28
|
+
```elixir
|
|
29
|
+
alias Cratis.Chronicle.EventSequences.EventLog
|
|
30
|
+
alias Cratis.Chronicle.{Compliance, ReadModels}
|
|
31
|
+
|
|
32
|
+
opts = [namespace: "disposable-dispatch"]
|
|
33
|
+
event = %Dispatch.ContactAssigned{technician_id: technician_id, phone: synthetic_number}
|
|
34
|
+
:ok = EventLog.append(order_id, event, opts)
|
|
35
|
+
# Alternative when assigning ownership explicitly: EventLog.append(order_id, event, Keyword.put(opts, :subject, technician_id))
|
|
36
|
+
{:ok, %Dispatch.OrderContact{phone: ^synthetic_number}} =
|
|
37
|
+
ReadModels.get_instance_by_id(Dispatch.OrderContact, order_id, opts)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Run the query after authorization and after the view has caught up. `get/3` is shorthand; absent instances return `{:ok, nil}`. Collection reads (`all` / `get_instances`), `query` and snapshots (`snapshots` / `get_snapshots_by_id`) also take the managed read path. Projection release is server-side: preserve `__subject` and per-field `__subjects` in stored documents. Test two people's fields independently in a shared projection. For a registered reducer, client-side release checks for **direct field PII declarations** on the model and uses its subject field. A concept-only declaration doesn't trigger that check. A missing subject or failed release RPC can leave the original instance unchanged; `{:ok, model}` alone doesn't prove release. Check the registered schemas, ciphertext at rest and expected synthetic value independently; don't log the payload.
|
|
41
|
+
|
|
42
|
+
## Reusable classifications
|
|
43
|
+
|
|
44
|
+
`pii :phone` omits the optional rationale (empty string). If every use of a value is personal, define its concept once:
|
|
45
|
+
|
|
46
|
+
```elixir
|
|
47
|
+
defmodule Dispatch.ContactNumber do
|
|
48
|
+
use Cratis.Chronicle.Concept, type: :string
|
|
49
|
+
pii "Reach the on-duty technician"
|
|
50
|
+
end
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Use `defstruct phone: %Dispatch.ContactNumber{}` in the enclosing type. The schema generator follows nested struct defaults; for a list it needs a representative element, e.g. `defstruct contacts: [%Dispatch.ContactNumber{}]`, to infer item classification. Never use a protected contact value as the source ID.
|
|
54
|
+
|
|
55
|
+
For a retained operational secret instead, declare e.g. `encrypted :signing_secret, :namespace, "Authenticate dispatch callbacks"` on an event or model. `encrypted :signing_secret` defaults to `:subject`; use `:namespace` for a namespace key or `:global` for a global key. A secret concept can similarly declare `encrypted :namespace` inside `use Cratis.Chronicle.Concept`. Details default to empty. None of these confidentiality keys is a subject-erasure key. Combining PII and confidentiality on one leaf, even via a concept, fails schema generation.
|
|
56
|
+
|
|
57
|
+
## Approved erasure and alternatives
|
|
58
|
+
|
|
59
|
+
`Compliance.delete_encryption_key(technician_id, opts)` returns `:ok` or `{:error, reason}`. Both key operations take a binary identifier, default to `Cratis.Chronicle.Client` and its namespace, and use that client's store. Set `:client` for a named client. Confirm scope, pause writes and resolve failures rather than claiming success. After approved deletion, query afresh: only the targeted person's previously protected fields should now be empty. An empty value alone does not prove deletion.
|
|
60
|
+
|
|
61
|
+
Only for a separately approved new lifecycle, call `Compliance.allow_new_encryption_key_for(technician_id, opts)`. It allows future provisioning, not recovery. Handle `{:error, :not_supported}` or other errors without retrying the personal write as plaintext.
|
|
62
|
+
|
|
63
|
+
For irreversible event-content redaction instead, use `EventLog.redact(sequence_number, reason, opts)` or `EventLog.redact_for_event_source(order_id, reason, [Dispatch.ContactAssigned], opts)`. An empty event-type filter targets all types for that source; set `:event_sequence_id` if not the event log. Neither operation erases a person's key. Keep reasons free of personal values.
|
|
64
|
+
|
|
65
|
+
## Not supported in this SDK
|
|
66
|
+
|
|
67
|
+
- Custom compliance metadata provider: use field or concept declarations and inspect the resulting schema.
|
|
68
|
+
- Public explicit release of a raw instance or batch: re-query through the authorized managed read path rather than decrypting cached or watch payloads yourself.
|
|
69
|
+
- Application event-read option for erased property paths: obtain erasure-aware diagnostics from a service supporting that read; do not infer erasure from blanks or use them as command evidence.
|
|
70
|
+
- Client-side causation-retention switch: configure `events.causationPropertyRetention` on the kernel (`Omit` rather than `Retain` for future causation values). Key deletion does not remove historical metadata or downstream copies.
|
|
@@ -1,3 +1,92 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Protect and release personal data in Go
|
|
2
2
|
|
|
3
|
-
Use
|
|
3
|
+
Use packages from `github.com/cratis/chronicle.go` (root package `chronicle`). Declare both the event **and its destination** before dialing the client. In this example the order is the event source and view key, but the technician owns the number.
|
|
4
|
+
|
|
5
|
+
```go
|
|
6
|
+
type ContactAssigned struct {
|
|
7
|
+
Technician string `json:"technician" chronicle:"subject"`
|
|
8
|
+
Number string `json:"number" chronicle:"pii;compliance-details(value=\"dispatch callback\")"`
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type OrderContact struct {
|
|
12
|
+
ID string `json:"id"`
|
|
13
|
+
Technician string `json:"technician" chronicle:"subject"`
|
|
14
|
+
Number string `json:"number" chronicle:"pii;compliance-details(value=\"dispatch callback\")"`
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```go
|
|
19
|
+
registry := chronicle.NewRegistry()
|
|
20
|
+
if _, err := chronicle.RegisterEvent[ContactAssigned](registry); err != nil { return err }
|
|
21
|
+
model, err := chronicle.RegisterReadModel[OrderContact](registry)
|
|
22
|
+
if err != nil { return err }
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Register the projection or reducer populating that model in the same registry. Pass `chronicle.WithRegistry(registry)` to `chronicle.Dial` alongside the application's connection and authentication options. Select the intended store and namespace with `client.EventStore(ctx, storeName, chronicle.WithNamespace(namespace))`. Check connection and registration errors; never fall back to writing unclassified data.
|
|
26
|
+
|
|
27
|
+
```go
|
|
28
|
+
result, err := store.EventLog().Append(ctx, events.SourceID(orderID), ContactAssigned{technicianID, number})
|
|
29
|
+
if err != nil { return err }
|
|
30
|
+
if err := result.Err(); err != nil { return err }
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Use one opaque subject per event. If it is the source, omit the tag. If known only by the caller, add `eventsequences.WithSubject(events.Subject(technicianID))` to `Append`; this overrides inference. For computed ownership instead of a tag, register `events.WithSubjectResolver(func(e ContactAssigned) (events.Subject, bool) { return events.Subject(e.Technician), e.Technician != "" })`: `false` selects the source, so use that fallback only if the source really owns the data. Never protect the source ID or use the reserved `$chronicle-encrypted-value$` subject prefix. An inner object's tag does not establish independent ownership. An empty subject, or one starting with `$chronicle-encrypted-value$`, is refused with `*compliance.InvalidSubjectError` before anything is sent; `compliance.ValidateSubject(id)` runs the same check on input.
|
|
34
|
+
|
|
35
|
+
## Schema options
|
|
36
|
+
|
|
37
|
+
- For a named personal type such as `type CallbackNumber string`, use that type on the field and add `events.WithProtection(compliance.For[CallbackNumber](compliance.Classification{PII: true, Details: "dispatch callback"}))` at registration. Apply `readmodels.WithProtection(...)` independently on each destination, including reducer outputs. A declaration is local to the registered schema; unreachable types fail. Composite type classification descends to leaves; classifying a collection field protects the whole container instead of just its classified members.
|
|
38
|
+
- For external types, use `compliance.Property("number", compliance.Classification{PII: true, Details: "dispatch callback"})` inside either protection option. Paths must match serialized names; duplicate declarations and unknown paths fail. `readmodels.WithPII("number")` is shorthand without a rationale. Use `readmodels.WithSubjectProperty("technician")` instead of tagging the model owner.
|
|
39
|
+
- For shared policy, pass `compliance.Using(policy)` where `policy` has signature `func(compliance.Target) (compliance.Classification, error)`. Inspect `Type`, `DeclaringType` and `Field` (empty for a type); return a zero classification for no policy. Providers run at registration, must be deterministic, concurrency-safe and I/O-free; errors abort registration. Member metadata takes precedence over inherited metadata; `DetailsSet: true` explicitly replaces inherited details with empty text. Details are persisted, never sample personal data.
|
|
40
|
+
- For **non-erasable** confidentiality instead, tag a separate field `chronicle:"encrypted"` (subject key), or use `chronicle:"encrypted(scope=namespace,details=\"dispatch routing\")"` or `scope=global` only when wider sharing is intended. Equivalent metadata: `compliance.Classification{Encrypted: true, Scope: compliance.Namespace, Details: "dispatch routing"}`; scopes are `compliance.Subject`, `compliance.Namespace`, `compliance.Global`. Combining PII and confidentiality on a value fails registration.
|
|
41
|
+
|
|
42
|
+
## Read and release
|
|
43
|
+
|
|
44
|
+
After authorization, `reader := readmodels.For(store.ReadModels(), model)` binds the registered model. `instance, err := reader.Get(ctx, key)` releases it; use `instance.Value` only when `err == nil && instance.Exists`. Managed watches also release; do not release their results again. Validate at-rest protection separately with synthetic data.
|
|
45
|
+
|
|
46
|
+
For a raw sink document, **keep the original JSON**, including `__subject` and per-property `__subjects`:
|
|
47
|
+
|
|
48
|
+
```go
|
|
49
|
+
released, err := store.ReadModels().Release(ctx, model.Identifier(), document) // document: json.RawMessage
|
|
50
|
+
if err != nil { return err }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Stored lineage wins over the model owner, then the model's `ID` is the fallback. Never round-trip a multi-subject document through a struct that drops this metadata. For externally loaded typed values that retain sufficient ownership information, use `reader.Release(ctx, value)` or `reader.ReleaseMany(ctx, values)`; both return the released result and an error. On `readmodels.ErrRelease`, do not serve ciphertext or partial results. Never log released values.
|
|
54
|
+
|
|
55
|
+
## Erasure, new keys and redaction
|
|
56
|
+
|
|
57
|
+
After verifying subject, namespace and authorization, call `if err := store.Compliance().ErasePII(ctx, technicianID); err != nil { return err }`. `DeleteEncryptionKeyFor(ctx, technicianID)` is equivalent. This fences future PII writes and destroys the key, not the events. Repeat deliberately per applicable namespace. `compliance.ErrLifecycle` can indicate partial execution; inspect `*compliance.LifecycleError` inside the sensitive-data boundary, reconcile coverage and retry erasure rather than assuming nothing changed. Verify fresh reads and unrelated subjects; handle independent plaintext copies separately.
|
|
58
|
+
|
|
59
|
+
Only under separate approval call `store.Compliance().AllowNewEncryptionKeyFor(ctx, technicianID)` and check its error. A replacement key permits future writes, not recovery of prior values. It is not an erasure retry.
|
|
60
|
+
|
|
61
|
+
For irreversible **event redaction**, not subject erasure, use `store.EventLog().Redact(ctx, position, reason)` or `store.EventLog().RedactForEventSource(ctx, source, reason, eventTypeID)`. Omitting the type filter selects every type for the source; supplied IDs select all generations. Use a nonblank, nonpersonal reason. Nil error means accepted, not completed; verify the redaction separately.
|
|
62
|
+
|
|
63
|
+
## Correct a stored actor name
|
|
64
|
+
|
|
65
|
+
Chronicle stores the identity (subject, name, user name) of whoever caused each event. To change the stored display name of one subject without touching its subject or user name:
|
|
66
|
+
|
|
67
|
+
```go
|
|
68
|
+
result, err := store.Identities().Rename(ctx, "person-42", identities.Name("Alex Rivera"))
|
|
69
|
+
switch {
|
|
70
|
+
case errors.Is(err, identities.ErrNotFound):
|
|
71
|
+
// No stored identity has exactly this subject; nothing was sent.
|
|
72
|
+
case errors.Is(err, chronicle.ErrIdentityRenameRefused):
|
|
73
|
+
// The kernel refused (authorization or validation); nothing changed.
|
|
74
|
+
case errors.Is(err, chronicle.ErrIdentityRenameUnknown):
|
|
75
|
+
// Sent, but not confirmed. Do not retry blindly; result.Acknowledged says whether the kernel accepted it.
|
|
76
|
+
case err != nil:
|
|
77
|
+
return err
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Import `github.com/cratis/chronicle.go/identities`. A nil error means the new name was read back (`result.Disposition == chronicle.IdentityRenameObserved`); the other dispositions are `IdentityRenameNotDispatched`, `IdentityRenameRefused` and `IdentityRenameUnknown`.
|
|
82
|
+
|
|
83
|
+
- It renames only; identities are created by appends. Subject and name are matched exactly, with no trimming or case folding.
|
|
84
|
+
- Pass a context with a deadline: there is no default timeout or retry.
|
|
85
|
+
- Each call reads the namespace's whole identity list twice (before and after), so it is costly in a large namespace, and the caller's credentials must allow both listing and renaming.
|
|
86
|
+
- It does not release, encrypt or erase anything, and it appends no event.
|
|
87
|
+
|
|
88
|
+
## Not supported in this SDK
|
|
89
|
+
|
|
90
|
+
- No application event-read option for erased-property paths. An empty released value does not prove erasure. Track confirmed lifecycle operations separately; do not infer command decisions from emptiness.
|
|
91
|
+
- No per-store coverage report on the Go lifecycle manager's successful return. Where scope must be attested, reconcile registered stores with the kernel operator before declaring completion.
|
|
92
|
+
- No append-time causation property retention setting. Have the kernel operator set `events.causationPropertyRetention` to `Omit` for future writes; review historical metadata separately.
|