@cratis/pi 8.2.2 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +7 -9
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +25 -55
- package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +10 -7
- package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +8 -1
- package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -2
- package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +5 -5
- package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -3
- package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -4
- package/package/corpus/harnesses/copilot/instructions/components.instructions.md +6 -8
- package/package/corpus/harnesses/copilot/instructions/concepts.instructions.md +15 -2
- package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -5
- package/package/corpus/harnesses/copilot/instructions/criticality-tiers.instructions.md +7 -35
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +13 -6
- package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +8 -3
- package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +8 -2
- package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +12 -6
- package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +12 -7
- package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +8 -6
- package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +13 -9
- package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +9 -5
- package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +12 -8
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -4
- package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +12 -6
- package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +11 -7
- package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +8 -7
- package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +5 -3
- package/package/corpus/harnesses/copilot/instructions/general.instructions.md +2 -2
- package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +11 -6
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +13 -13
- package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +13 -39
- package/package/corpus/harnesses/copilot/instructions/go.instructions.md +18 -139
- package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +14 -60
- package/package/corpus/harnesses/copilot/instructions/issue-assignment.instructions.md +6 -9
- package/package/corpus/harnesses/copilot/instructions/java.instructions.md +8 -6
- package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +12 -7
- package/package/corpus/harnesses/copilot/instructions/local-verification-and-delivery.instructions.md +8 -5
- package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +11 -64
- package/package/corpus/harnesses/copilot/instructions/new-repository-intake.instructions.md +7 -28
- package/package/corpus/harnesses/copilot/instructions/operational-safety.instructions.md +26 -41
- package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +27 -5
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +8 -11
- package/package/corpus/harnesses/copilot/instructions/published-contracts.instructions.md +6 -25
- package/package/corpus/harnesses/copilot/instructions/react.instructions.md +9 -2
- package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +17 -5
- package/package/corpus/harnesses/copilot/instructions/review-reports.instructions.md +12 -94
- package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +5 -5
- package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +11 -8
- package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +9 -4
- package/package/corpus/harnesses/copilot/instructions/specs.instructions.md +7 -4
- package/package/corpus/harnesses/copilot/instructions/specs.scenarios.csharp.instructions.md +11 -2
- package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +8 -11
- package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +4 -7
- package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -8
- package/package/corpus/harnesses/copilot/instructions/verification-discipline.instructions.md +6 -9
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +29 -5
- package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +12 -3
- package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +11 -3
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +36 -24
- package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
- package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
- package/package/corpus/rules/ai-distribution.md +7 -9
- package/package/corpus/rules/authoring-skills.md +25 -55
- package/package/corpus/rules/browser.md +10 -7
- package/package/corpus/rules/code-health-policy.txt +3 -3
- package/package/corpus/rules/code-health.md +8 -1
- package/package/corpus/rules/code-quality.csharp.md +3 -2
- package/package/corpus/rules/code-quality.md +5 -5
- package/package/corpus/rules/code-quality.typescript.md +4 -3
- package/package/corpus/rules/codescene-reference.txt +34 -0
- package/package/corpus/rules/codescene.md +5 -4
- package/package/corpus/rules/components.md +6 -8
- package/package/corpus/rules/concepts.md +15 -2
- package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
- package/package/corpus/rules/criticality-tiers.md +7 -35
- package/package/corpus/rules/csharp.md +13 -6
- package/package/corpus/rules/dialogs.md +8 -3
- package/package/corpus/rules/discoverability.md +8 -2
- package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
- package/package/corpus/rules/documentation.md +12 -7
- package/package/corpus/rules/editing-cratis-docs.md +8 -6
- package/package/corpus/rules/efcore.md +13 -9
- package/package/corpus/rules/efcore.specs.md +9 -5
- package/package/corpus/rules/elixir.md +12 -8
- package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
- package/package/corpus/rules/framework-dotnet.md +12 -6
- package/package/corpus/rules/framework.md +11 -7
- package/package/corpus/rules/frontend-quality.md +8 -7
- package/package/corpus/rules/frontend-testing.md +5 -3
- package/package/corpus/rules/general.md +8 -10
- package/package/corpus/rules/github-actions.md +11 -6
- package/package/corpus/rules/glossary.md +13 -13
- package/package/corpus/rules/go-engineering.md +13 -39
- package/package/corpus/rules/go.md +18 -139
- package/package/corpus/rules/guards-and-fuses.md +14 -60
- package/package/corpus/rules/issue-assignment.md +6 -9
- package/package/corpus/rules/java.md +8 -6
- package/package/corpus/rules/kotlin.md +12 -7
- package/package/corpus/rules/local-verification-and-delivery.md +8 -5
- package/package/corpus/rules/local-work-artifacts.md +11 -64
- package/package/corpus/rules/new-repository-intake.md +7 -28
- package/package/corpus/rules/operational-safety.md +26 -41
- package/package/corpus/rules/orleans.md +27 -5
- package/package/corpus/rules/profiles.md +8 -11
- package/package/corpus/rules/published-contracts.md +6 -25
- package/package/corpus/rules/react.md +9 -2
- package/package/corpus/rules/reactors.md +17 -5
- package/package/corpus/rules/review-reports.md +12 -94
- package/package/corpus/rules/scripting.md +5 -5
- package/package/corpus/rules/specs.csharp.md +11 -8
- package/package/corpus/rules/specs.elixir.md +9 -4
- package/package/corpus/rules/specs.md +7 -4
- package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
- package/package/corpus/rules/specs.typescript.md +8 -11
- package/package/corpus/rules/storybook.md +4 -7
- package/package/corpus/rules/typescript.md +8 -8
- package/package/corpus/rules/verification-discipline.md +6 -9
- package/package/corpus/rules/vertical-slices.md +29 -5
- package/package/corpus/rules/writing-correct-examples.md +12 -3
- package/package/corpus/rules/writing-cratis-docs.md +11 -3
- package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
- package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
- package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
- package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
- package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
- package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
- package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
- package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
- package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
- package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
- package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
- package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
- package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
- package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
- package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +96 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
- package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
- package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
- package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
- package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
- package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
- package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
- package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
- package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
- package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
- package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
- package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +282 -55
- package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
- package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
- package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
- package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
- package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
- package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
- package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
- package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
- package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
- package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
- package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
- package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +381 -31
- package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
- package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
- package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
- package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
- package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
- package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
- package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
- package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
- package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
- package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
- package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
- package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
- package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
- package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
- package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
- package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
- package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
- package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
- package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
- package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
- package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
- package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
- package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
- package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
- package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
- package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
- package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
- package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
- package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
- package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
- package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
- package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
- package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
- package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
- package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
- package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
- package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
- package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
- package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
- package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
- package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
- package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
- package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
- package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
- package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
- package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
- package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
- package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
- package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +94 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
- package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
- package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
- package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +188 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +60 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
- package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +59 -41
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
- package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
- package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +112 -43
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
- package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
- package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
- package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
- package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
- package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +66 -52
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
- package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
- package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
- package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
- package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
- package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
- package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
- package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
- package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
- package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
- package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
- package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
- package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
- package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
- package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
- package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
- package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
- package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
- package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
- package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
- package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
- package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
- package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
- package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
- package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
- package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
- package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
- package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
- package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
- package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
- package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
- package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
- package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
- package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
- package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
- package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
- package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
- package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
- package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
- package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
- package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
- package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
- package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
- package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
- package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
- package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
- package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
- package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
- package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
- package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
- package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
- package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
- package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
- package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
- package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
- package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
- package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
- package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
- package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
- package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
- package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
- package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
- package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
- package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
- package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
- package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
- package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
- package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
- package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
- package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
- package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
- package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
- package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
- package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
- package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
- package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
- package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
- package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
- package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
- package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
- package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
- package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
- package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
- package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
- package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
- package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
- package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
- package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
- package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
- package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
- package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
- package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
- package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
- package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
- package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
- package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
- package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
- package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
- package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
- package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
- package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
- package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
- package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
- package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
- package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
- package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
- package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
- package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
- package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
- package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
- package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
- package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
- package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
- package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
- package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
- package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
- package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
- package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
- package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
- package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
- package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
- package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
- package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
- package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
- package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
- package/package/corpus/skills/cratis-observability/references/go.md +292 -0
- package/package/corpus/skills/cratis-observability/references/java.md +236 -0
- package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
- package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
- package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
- package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
- package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
- package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
- package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
- package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
- package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
- package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
- package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
- package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
- package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
- package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
- package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
- package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
- package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
- package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
- package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
- package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
- package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
- package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
- package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
- package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
- package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
- package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
- package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
- package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
- package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
- package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
- package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
- package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
- package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
- package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
- package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
- package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
- package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
- package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
- package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
- package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
- package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
- package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
- package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
- package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
- package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
- package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
- package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
- package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
- package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
- package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
- package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
- package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
- package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
- package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
- package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
- package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
- package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
- package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
- package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
- package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
- package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
- package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
- package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
- package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
- package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
- package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
- package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
- package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
- package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
- package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
- package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
- package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
- package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
- package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
- package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +6 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
- package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
- package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
- package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
- package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
- package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
- package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
- package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
- package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
- package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
- package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
- package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
- package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
- package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
- package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
- package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
- package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
- package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
- package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
- package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
- package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
- package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
- package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
- package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
- package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
- package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
- package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
- package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
- package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
- package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
- package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
- package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
- package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
- package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
- package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
- package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
- package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
- package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
- package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
- package/package/profile-catalog.json +34 -2
- package/package.json +1 -1
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
- package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
- package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
- package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
- package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
- package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
- package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
- package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
- package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
- package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
- package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
- package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
- package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
- package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
- package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
- package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
- package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
- package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
- package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
- package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
- package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
- package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
- package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
- package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
- package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
- package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
- package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
- package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
- package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
- package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
- package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
- package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
- package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
- package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
- package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
- package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
- package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
- package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
- package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
- package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
- package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
- package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# C# diagnostics by area
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Arc core (ARC)
|
|
6
|
+
- Arc and Chronicle (ARCCHR)
|
|
7
|
+
- Chronicle client (CHR)
|
|
8
|
+
- Specifications (CRSPEC)
|
|
9
|
+
- Architecture (CRARCH)
|
|
10
|
+
|
|
11
|
+
Severity is the default: E Error, W Warning, I Info. Info never fails a build, even with warnings as errors, so a reviewer reads Info output on changed code.
|
|
12
|
+
|
|
13
|
+
## Arc core (ARC)
|
|
14
|
+
|
|
15
|
+
| Ids | Area |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `ARC0001` E, `ARC0014` E, `ARC0015` W, `ARC0026` E, `ARC0029` W | Queries: method signature on the read model, no generic query method, declare a parameter as the concept instead of converting it in the body, explicit query declaration, a non-public static method is not exposed |
|
|
18
|
+
| `ARC0002` W, `ARC0003` E, `ARC0004` E, `ARC0007` W, `ARC0010` W | Command shape: `[Command]` on a command-like type, `Handle()` only on a `[Command]` type, a public `Handle()`, a record, no `Task` around a synchronous result |
|
|
19
|
+
| `ARC0005` W, `ARC0006` W | A `Provide()` value `Handle()` never consumes; a non-nullable command-scoped read model |
|
|
20
|
+
| `ARC0008` W, `ARC0009` W | Read models and concepts are records |
|
|
21
|
+
| `ARC0011` W, `ARC0019` W, `ARC0020` W, `ARC0021` W | Authorization: `[Roles]` argument by `nameof`, `[AllowAnonymous]` with `[Authorize]` or `[Roles]`, an ASP.NET Core attribute Arc does not enforce, a scheme that needs the ASP.NET Core host |
|
|
22
|
+
| `ARC0012` W, `ARC0013` W | A built-in exception thrown from an Arc artifact; a validator rule dereferencing a possibly-null concept member |
|
|
23
|
+
| `ARC0016` E, `ARC0017` E, `ARC0018` E | Command operations: operation method shape, `CommandOperations` for a batch, an operation that cannot get a generated invoker |
|
|
24
|
+
| `ARC0022` E, `ARC0023` E, `ARC0024` E, `ARC0025` W, `ARC0027` W, `ARC0028` I | Generated values: parameter type, only on `Handle()`, unique non-empty names, not supplied by `Provide()`, one generation contract, move inline generation to a parameter |
|
|
25
|
+
| `ARC0030` I, `ARC0031` I | A composite key needing accessor registration; command key properties read through reflection |
|
|
26
|
+
|
|
27
|
+
## Arc and Chronicle (ARCCHR)
|
|
28
|
+
|
|
29
|
+
`0030` and `0039` are unused.
|
|
30
|
+
|
|
31
|
+
| Ids | Area |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| `ARCCHR0001` E | Aggregate root event handler signature |
|
|
34
|
+
| `ARCCHR0002` W, `ARCCHR0008` W, `ARCCHR0010` W, `ARCCHR0022` W | Event source of a command: several candidate properties without `ICanProvideEventSourceId`, the data-annotations `[Key]`, a raw `Guid` response, a command-key aggregate on a generated append target |
|
|
35
|
+
| `ARCCHR0003` W, `ARCCHR0006` W, `ARCCHR0014` W | Reactors: reaching the default event log, executing a command without `[OnceOnly]` or a `[Replay]` handler, observing an undeclared stream |
|
|
36
|
+
| `ARCCHR0004` W, `ARCCHR0005` W | `[EventType]` id that repeats the type name; Chronicle artifacts present but Chronicle not wired up |
|
|
37
|
+
| `ARCCHR0007` W, `ARCCHR0015` W, `ARCCHR0027` W | Handler output: no injected `IEventLog`, no nullable event, a refusal branch returns registered events or acknowledges |
|
|
38
|
+
| `ARCCHR0009` W | A secret-looking command property without `[NotAudited]` |
|
|
39
|
+
| `ARCCHR0011` I, `ARCCHR0012` I | An unprotected plain read model in an event-producing command; an immediate append that bypasses a protected decision (Warning under `On`) |
|
|
40
|
+
| `ARCCHR0013` I | Route the command with its matching event source definition (`[EventSource<TDefinition>]`) so definition policies apply |
|
|
41
|
+
| `ARCCHR0021` I | For `EventForEventSourceId` overrides targeting a declared route, use the event source definition to preserve its concurrency policy and event context |
|
|
42
|
+
| `ARCCHR0016` W, `ARCCHR0017` E, `ARCCHR0018` W, `ARCCHR0020` W | Concurrency flag ignored with exact scopes; invalid `[EventStreamId]` template; template only resolved for commands; undeclared wrapper stream |
|
|
43
|
+
| `ARCCHR0019` W | A read-model fold that may be exposed as a query |
|
|
44
|
+
| `ARCCHR0023` W/I, `ARCCHR0024` W, `ARCCHR0025` W/I, `ARCCHR0026` I, `ARCCHR0028` W | Protected reads: unproven lookup key, a shape that cannot be protected (Measure, On), a keyless command reading Chronicle state, a Chronicle model read through MongoDB (Warning under `On`), a raw read or bypass (under `On`) |
|
|
45
|
+
| `ARCCHR0029` E, `ARCCHR0031` E, `ARCCHR0032` I | Conflicting protection; invalid `[LookUpBy]`; inert or redundant protection declaration |
|
|
46
|
+
| `ARCCHR0033` W, `ARCCHR0035` W, `ARCCHR0036` W | Aggregate and read model on one source; aggregate committed before the decision ends; unproven exact scope coverage (Measure, On) |
|
|
47
|
+
| `ARCCHR0034` I, `ARCCHR0038` I, `ARCCHR0040` I | Method-level `[Unprotected]` does not cover parameters; a stream guard widens to the source; prefer a read-model parameter over a reader or token |
|
|
48
|
+
| `ARCCHR0037` E | A per-stream read model not on the command route |
|
|
49
|
+
|
|
50
|
+
## Chronicle client (CHR)
|
|
51
|
+
|
|
52
|
+
| Ids | Area |
|
|
53
|
+
| --- | --- |
|
|
54
|
+
| `CHR0001`–`CHR0003` E, `CHR0005` E, `CHR0007` E, `CHR0049` E, `CHR0050` E | Event types carry `[EventType]` (or `[EventTypeGenerationFor<T>]`, never both) wherever appended or observed |
|
|
55
|
+
| `CHR0012` W, `CHR0021` W | Events: avoid nullable properties; declare as records |
|
|
56
|
+
| `CHR0037` W, `CHR0084` E | Generations: migrations belong to one event type; every step has an `EventTypeMigration<TUpgrade, TPrevious>` |
|
|
57
|
+
| `CHR0008`–`CHR0011` E, `CHR0013` E, `CHR0014` E | Observed event types from one event store; no event store plus explicit sequence |
|
|
58
|
+
| `CHR0004` W, `CHR0022` W, `CHR0031` W, `CHR0032` W, `CHR0054` W, `CHR0083` W | Reactors: resolvable parameters, `[OnceOnly]` when returning events, no mutable state, no direct storage, supported return type, no `async void` |
|
|
59
|
+
| `CHR0006` W, `CHR0036` W, `CHR0051` W, `CHR0058` W, `CHR0059` E, `CHR0060` E, `CHR0065` W | Reducers and self reducers: signatures, no mutable state, nullable current model, discoverable fold |
|
|
60
|
+
| `CHR0015` E, `CHR0016` E, `CHR0019` E | Projections: no side effects, no imperative code in `Define()`, lambdas only access members |
|
|
61
|
+
| `CHR0017` E, `CHR0018` E, `CHR0020` E | Constraints: same purity rules |
|
|
62
|
+
| `CHR0023` W, `CHR0024` W, `CHR0025` I, `CHR0028` W, `CHR0029` W, `CHR0030` W, `CHR0040` W, `CHR0042` W | Mapping: parent key, unmapped property, AutoMap collision, redundant AutoMap or same-name `Set().To()`, empty child collection, duplicate context sets, join overriding a local write |
|
|
63
|
+
| `CHR0048` W | Clearing a non-nullable projection member is refused when building the projection. Use a nullable member for absence or set the intended value explicitly |
|
|
64
|
+
| `CHR0026` W, `CHR0027` E, `CHR0055` E, `CHR0056` E, `CHR0062` I, `CHR0063` W, `CHR0064` E | Keys and streams: redundant `[Key]` on `EventSourceId<T>`, ambiguous stream id, typed filter conflicts, concurrency across event sources, scope stream mismatch, invalid read-model stream |
|
|
65
|
+
| `CHR0034` E, `CHR0035` E, `CHR0043` W, `CHR0052` E, `CHR0053` E | Compliance: no `[PII]` or `[Encrypted]` on `EventSourceId<T>`, reserved subject property, key redirection carrying PII, not both `[PII]` and `[Encrypted]` |
|
|
66
|
+
| `CHR0041` W, `CHR0045` W, `CHR0046` W, `CHR0057` W, `CHR0061` E | Inert filters, passive key redirection, one read model per artifact, unambiguous builder ownership |
|
|
67
|
+
| `CHR0066`–`CHR0076` E, `CHR0077` W, `CHR0078`–`CHR0081` E | Graph elements and views; batch methods and `[Sink]` (`CHR0077`: a batch method matching an event type it does not observe) |
|
|
68
|
+
| `CHR0039` E, `CHR0082` W | Specs: an assertion or scenario task that is not awaited |
|
|
69
|
+
|
|
70
|
+
## Specifications (CRSPEC)
|
|
71
|
+
|
|
72
|
+
Ship with `Cratis.Specifications`. `CRSPEC0008` (a fact modifies the shared context) and `CRSPEC0009` (both lifecycle aliases for one phase) are errors. Warnings: `CRSPEC0001` `should_*` naming, `0002` one specification per file, `0003` no fact on a `given` context, `0004` a `should_*` method without a test attribute, `0005` no base lifecycle call, `0006` public specification, `0007` no `Because` on a `given` context, `0012` a fact calling a state-changing member on the shared context. Under the native specification runner its generator adds `CRSPEC0010` E (an `async void` fact or lifecycle method) and `CRSPEC0011` W (a non-public method on a constructed generic base type called through reflection, which is not trim or AOT safe; make it `public` or `internal`).
|
|
73
|
+
|
|
74
|
+
## Architecture (CRARCH)
|
|
75
|
+
|
|
76
|
+
Only when the project references `Cratis.Architecture.CodeAnalysis`. `CRARCH0012` (`async void`) and `CRARCH0014` (test types in production) are errors; the rest warn: `0001` exception type ends with `Exception`, `0002` built-in exception thrown, `0003` class postfix `Async`, `Helper`, `Impl`, `Manager` or `Service`, `0004` `Features` in a namespace, `0005` regions, `0006` logging not via `[LoggerMessage]`, `0007` `IServiceProvider` injected, `0008` not `is null`, `0009` not string interpolation, `0010` more than 7 constructor dependencies, `0011` more than 400 effective lines, `0013` blocking on async, `0015` static class not ending `Extensions`, `Converters`, `Ids`, `WellKnown` or `Defaults`, `0016` unused interface, `0017` namespace not matching folder, `0018` concrete type injected, `0019` `Async` method postfix, `0020` unhandled async call, `0021` `[Serializable]`, `0022` explicit `private`, `0023` untyped logger category, `0024` `[LoggerMessage]` outside an `internal static partial` `*LogMessages` class, `0025`/`0026` traces and metrics not through Cratis Fundamentals.
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# C# code review reference
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Setup
|
|
6
|
+
- Code analysis
|
|
7
|
+
- Application architecture
|
|
8
|
+
- Decision safety
|
|
9
|
+
- Dependencies, state and logging
|
|
10
|
+
- Specifications
|
|
11
|
+
- Style
|
|
12
|
+
- Performance, in passing
|
|
13
|
+
- Not supported in this SDK
|
|
14
|
+
|
|
15
|
+
Exact C# names for each review catalog item. Names in examples (shows, seats, guests) are illustrative.
|
|
16
|
+
|
|
17
|
+
## Setup
|
|
18
|
+
|
|
19
|
+
Nothing to install for review: the analyzers arrive with the packages.
|
|
20
|
+
|
|
21
|
+
- `Cratis.Arc.Core` (and so `Cratis.Arc`) brings the `ARC` analyzers; `Cratis.Arc.Chronicle` brings `ARCCHR`; `Cratis.Chronicle` brings `CHR`; `Cratis.Specifications` brings `CRSPEC`.
|
|
22
|
+
- `CRARCH` runs only where the project references `Cratis.Architecture.CodeAnalysis`.
|
|
23
|
+
- Every id with its default severity, grouped by area: [csharp-diagnostics.md](csharp-diagnostics.md).
|
|
24
|
+
|
|
25
|
+
## Code analysis
|
|
26
|
+
|
|
27
|
+
- **Info stays invisible to a green build.** Info by default: `ARC0028`, `ARC0030`, `ARC0031`, `ARCCHR0011`, `ARCCHR0012`, `ARCCHR0013`, `ARCCHR0021`, `ARCCHR0026`, `ARCCHR0032`, `ARCCHR0034`, `ARCCHR0038`, `ARCCHR0040`, `CHR0025`, `CHR0062`. Read the build output for these on changed code.
|
|
28
|
+
- **Mode-dependent severity.** The read-protection mode (Decision safety) changes what reports: `ARCCHR0012` and `ARCCHR0026` rise to Warning under `On`; `ARCCHR0024` and `ARCCHR0036` report only under `Measure` or `On`; `ARCCHR0028` only under `On`; `ARCCHR0011` reports under `Off`; `ARCCHR0023` and `ARCCHR0025` report Warning or Info by case. A diagnostic absent under `Off` is not proof of safety.
|
|
29
|
+
- **Severity overrides.** `.editorconfig` `dotnet_diagnostic.<ID>.severity` can raise or silence a rule. A lowered or `none` severity is a suppression.
|
|
30
|
+
- **Suppressions.** `#pragma warning disable <ID>`, `[SuppressMessage(..., Justification = "...")]`, `<NoWarn>` and an `.editorconfig` downgrade each need a stated reason in the change. One without a reason blocks.
|
|
31
|
+
- **Generated code.** Source-generated files (`*.g.cs`, `obj/`) and the proxies generated from commands and queries are never edited by hand; fix the C# declaration.
|
|
32
|
+
|
|
33
|
+
## Application architecture
|
|
34
|
+
|
|
35
|
+
One example covers several items:
|
|
36
|
+
|
|
37
|
+
```csharp
|
|
38
|
+
// Values and identity
|
|
39
|
+
public record ShowId(Guid Value) : EventSourceId<Guid>(Value);
|
|
40
|
+
public record SeatNumber(int Value) : ConceptAs<int>(Value);
|
|
41
|
+
[PII] public record GuestName(string Value) : ConceptAs<string>(Value);
|
|
42
|
+
|
|
43
|
+
[EventType]
|
|
44
|
+
public record SeatReserved(SeatNumber Seat, GuestName Guest);
|
|
45
|
+
|
|
46
|
+
[Command]
|
|
47
|
+
[Roles(nameof(StaffRole.BoxOffice))]
|
|
48
|
+
public record ReserveSeat(ShowId Show, SeatNumber Seat, GuestName Guest)
|
|
49
|
+
{
|
|
50
|
+
public Result<SeatReserved, ValidationResult> Handle(SeatingPlan plan)
|
|
51
|
+
{
|
|
52
|
+
if (plan.IsTaken(Seat))
|
|
53
|
+
{
|
|
54
|
+
return ValidationResult.Error("The seat is already reserved", [nameof(Seat)]);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return new SeatReserved(Seat, Guest);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
- **Commands.** `[Command]` record with a public `Handle()` (`ARC0002`–`ARC0004`, `ARC0007`). A refusal is returned: a `ValidationResult` (`ValidationResult.Error(message, members)`), or `Result<TValue, ValidationResult>` from `Cratis.Monads`; rules on input go in a `CommandValidator<TCommand>`. An ordinary throw is an exception outcome, not a refusal; only an exception implementing `IValidationFailure` becomes a validation failure. Don't wrap a synchronous result in `Task` (`ARC0010`).
|
|
63
|
+
- **Data for the decision** arrives as `Handle()` parameters: a read model resolved by the command's key, or a value returned from `Provide()` (`ARC0005` flags one `Handle()` never takes). A reader or token queried inside `Handle()` is a finding (`ARCCHR0040`, `ARCCHR0028`). A non-nullable read-model parameter means absence rejects (`ARC0006`); make it nullable when absence is a normal outcome.
|
|
64
|
+
- **Exception exposure.** `Cratis:Arc:ExposeExceptionDetails` (`ArcOptions.ExposeExceptionDetails`) defaults to true only in Development; a change that enables it elsewhere blocks. An `IExceptionResponseMapper` returning `ExceptionResponse(statusCode, errorCode)` maps an exception to an HTTP status and error code, still redacted; it is not a refusal.
|
|
65
|
+
- **Events.** `[EventType]` records (`CHR0021`), no nullable properties (`CHR0012`), no repeated type name as id (`ARCCHR0004`). The id defaults to the type name, so renaming an event without a declared id changes its identity. Reshaping: new shape `[EventType(generation: 2)]`, previous shape kept with `[EventTypeGenerationFor<TCurrent>(1)]`, plus an `EventTypeMigration<TUpgrade, TPrevious>` per step (`CHR0084`). A handler returns events; it never returns a nullable event (`ARCCHR0015`).
|
|
66
|
+
- **Values.** `ConceptAs<T>` records (`ARC0009`). An event-source identity derives from `EventSourceId<T>`, not `ConceptAs<Guid>`. One `EventSourceId<T>` property is the command's event source; with several, implement `ICanProvideEventSourceId` (`ARCCHR0002`). Use Chronicle's `[Key]`, never the data-annotations one (`ARCCHR0008`), and not on an `EventSourceId<T>` (`CHR0026`). Search for `record \w+\((Guid|string|int|long) Value\)` with no base type and judge each.
|
|
67
|
+
- **Read side.** Projections are pure (`CHR0015`, `CHR0016`, `CHR0019`). Don't restate defaults (`CHR0028` redundant `AutoMap()`, `CHR0029` same-name `Set().To()`). A reactor, reducer or projection without a declared id is identified by its type's full name: renaming or moving its namespace creates a new observer, and so does adding a declared id later.
|
|
68
|
+
- **Queries.** Exposed through a `[ReadModel]` query method (`ARC0001`, `ARC0014`), with concept-typed parameters (`ARC0015`). A custom route is `[Path("/api/...")]` on the command, read model or method, never ASP.NET Core `[Route]`.
|
|
69
|
+
- **Reactors.** A handler that returns events needs `[OnceOnly]` (`CHR0022`). One that runs `ICommandPipeline.Execute` needs `[OnceOnly]` or a `[Replay]` handler for the same event type (`ARCCHR0006`). `[OnceOnly]` on the class excludes the whole reactor from replay; on a method it skips that handler during replay. A reactor never reaches the event log itself (`ARCCHR0003`), holds no mutable state (`CHR0031`), and reads keyed state through `IReadModels`, not storage (`CHR0032`).
|
|
70
|
+
- **Cross-source rules.** An `IConstraint` with `Define(IConstraintBuilder)`, for example `builder.Unique(_ => _.On<SeatReserved>(e => e.Seat))`. Its name defaults to the constraint type's name; `WithName` sets it.
|
|
71
|
+
- **Authorization.** `Cratis.Arc.Authorization`: `[Authorize]` (`Policy`, `Roles`, `AuthenticationSchemes`), `[Roles(...)]` with `nameof` (`ARC0011`), `[AllowAnonymous]`. Anonymous with restricted on one declaration is `ARC0019`. ASP.NET Core's own attributes are not enforced without the ASP.NET Core integration (`ARC0020`).
|
|
72
|
+
- **Personal data.** `[PII]` (`details`, `SpecialCategory`, `Criminal`, `OperationalSecret`) on the event property and on each read-model property that projects it. Putting it on the concept type covers every use. `[Encrypted]` is the alternative, never both on one value (`CHR0053`), and neither goes on an `EventSourceId<T>` (`CHR0034`, `CHR0052`).
|
|
73
|
+
- **Audit exclusion.** `[NotAudited]` (`Cratis.Arc.Chronicle.Commands`) on a command or property keeps a secret value off the causation chain (`ARCCHR0009`). PII-marked values are already excluded.
|
|
74
|
+
|
|
75
|
+
## Decision safety
|
|
76
|
+
|
|
77
|
+
- **Mode.** `ReadProtectionMode` is `Off`, `Measure` or `On`. With `Cratis.Arc.Chronicle` the project mode is `On` unless the project sets `<CratisReadProtection>`; the value must be `Off`, `Measure` or `On`. `[ReadProtection(ReadProtectionMode.X)]` sets it on a command or an assembly. Restating `On` is redundant (`ARCCHR0032`).
|
|
78
|
+
- **Downgrades and bypasses, each needing a reason:**
|
|
79
|
+
- `<CratisReadProtection>Off` or `Measure`.
|
|
80
|
+
- `[ReadProtection(ReadProtectionMode.Off)]` on a command.
|
|
81
|
+
- `[Unprotected("reason")]` on a command, read-model type or parameter. On a method it covers only reads in the body, not parameters (`ARCCHR0034`). A bare `[Unprotected]` compiles, so the reason is the review check.
|
|
82
|
+
- Runtime configuration under `Cratis:Arc:ReadProtection`. `MaximumMode` can only lower the mode. `StartupAdmissionCheck` `Off` and `RequireGeneratedMetadata` `false` weaken checks.
|
|
83
|
+
- **Selecting the instance.** `[LookUpBy(nameof(Property))]` or `[LookUpBy<TKeyProvider>]` on a read-model parameter, not a manual lookup (`ARCCHR0023`, `ARCCHR0031`).
|
|
84
|
+
- **Explicit decisions.** `[ProtectedDecision]` opts a command into protected reads. Its validators must have a parameterless constructor and be constructed by Arc.
|
|
85
|
+
- **Appends.** A command never injects `IEventLog` (`ARCCHR0007`). It returns events, or `CompleteStream` to close a stream. When returning is impossible, use `IEventLog.Transactional`. An immediate append is refused under `On` even inside `[Unprotected]` (`ARCCHR0012`).
|
|
86
|
+
|
|
87
|
+
## Dependencies, state and logging
|
|
88
|
+
|
|
89
|
+
- **Lifetimes.** `IFoo` → `Foo` bindings by convention are transient. Mark `[Singleton]` or `[Scoped]` (`Cratis.DependencyInjection`) instead of hand registration, and `[IgnoreConvention]` to opt out.
|
|
90
|
+
- **Captive dependency.** A `[Singleton]` must not take the event store or anything from it, a MongoDB collection, database or client, a `DbContext`, or a read model by key. Make the type scoped or transient.
|
|
91
|
+
- **Scope validation.** Arc keeps `ValidateScopes` on in Development and `ValidateOnBuild` off. A change that turns scope validation off, or `ValidateOnBuild` on, is a finding.
|
|
92
|
+
- **No service locator.** Don't inject `IServiceProvider` (`CRARCH0007`). `IServiceScopeFactory` is only for a service the host resolves once.
|
|
93
|
+
- **Sets of implementations.** Take `IInstancesOf<T>`, or `IImplementationsOf<T>` for types (`Cratis.Types`), never `IEnumerable<T>` or a hand-kept list.
|
|
94
|
+
- **Logging.** Use `ILogger<T>` with `[LoggerMessage]` methods in an `internal static partial` log-messages class beside the type; follow the repository's file naming. No inline `logger.LogX(...)` in domain decisions.
|
|
95
|
+
|
|
96
|
+
## Specifications
|
|
97
|
+
|
|
98
|
+
- **Command results** (`Cratis.Arc.Testing.Commands`): `ShouldBeSuccessful`, `ShouldNotBeSuccessful`, `ShouldHaveValidationErrors`, `ShouldBeValid`, `ShouldBeRejected`, `ShouldBeDenied`, `ShouldBeAuthorized`, `ShouldNotBeAuthorized`, `ShouldHaveExceptions`, `ShouldNotHaveExceptions`, `ShouldHaveConstraintViolationFor(name)`.
|
|
99
|
+
- `ShouldHaveValidationErrors()` and `ShouldBeRejected()` reject dependency-only failures, but either can pass for the wrong authored rule. Use `ShouldNotBeSuccessful()` and check the intended rejecting finding in `result.ValidationResults` (`Members` and severity), or assert a rule-specific rejection outcome. Set up unrelated requirements to pass so a different rule cannot satisfy the spec.
|
|
100
|
+
- Use `ShouldHaveValidationErrorBecauseOf(reason)` when the reason distinguishes the case (for example `ValidationResultReason.ConcurrencyViolation`), or `ShouldHaveConstraintViolationFor(name)` to identify the actual constraint. `Rule` alone does not distinguish two authored rules.
|
|
101
|
+
- `ShouldHaveValidationErrorFor(message)` matches a message fragment; `ShouldBeRejected(reason)` with a string matches the exact validation message. Use wording checks only when wording is the behavior.
|
|
102
|
+
- **Command scenario.** Create `new CommandScenario<TCommand>()` and call `await scenario.Execute(command)`. Seed with `scenario.Given.ForEventSource(id).Events(...)`. With Chronicle, assert `await scenario.ShouldHaveAppendedEvent<TCommand, TEvent>(id)`.
|
|
103
|
+
- **Event scenario** (`Cratis.Chronicle.Testing.EventSequences`). `new EventScenario()` discovers constraints. Seed history with `await scenario.Given.ForEventSource(id).Events(...)`; a rejected seed throws. Then `var result = await scenario.When.ForEventSource(id).Events(...)`.
|
|
104
|
+
- Assert constraints by name with `result.ShouldHaveConstraintViolation(name)`, `ShouldHaveConstraintViolationFor`, `ShouldHaveConstraintViolations` or `ShouldNotHaveConstraintViolations`.
|
|
105
|
+
- Also available: `ShouldHaveConcurrencyViolations`, `ShouldBeSuccessful`, `ShouldBeFailed`.
|
|
106
|
+
- Observers do not run in an event scenario.
|
|
107
|
+
- **Await every Task assertion.** `ShouldHaveAppendedEvent` and `ShouldHaveTailSequenceNumber` return a `Task`. A discarded one never fails (`CHR0039` Error; `CHR0082` for scenario tasks).
|
|
108
|
+
- **Shape.** CRSPEC analyzers enforce spec shape: `should_*` facts, one specification per file, no shared-context mutation.
|
|
109
|
+
|
|
110
|
+
## Style
|
|
111
|
+
|
|
112
|
+
House style; with `Cratis.Architecture.CodeAnalysis` the `CRARCH` id in brackets enforces it.
|
|
113
|
+
|
|
114
|
+
- File-scoped namespaces matching the folder (`0017`); sorted `using` directives, none unused.
|
|
115
|
+
- `is null` and `is not null` (`0008`); `var`; string interpolation (`0009`); no explicit `private` (`0022`); no regions (`0005`).
|
|
116
|
+
- No `Async`, `Helper`, `Impl`, `Manager` or `Service` class postfix (`0003`), and no `Async` method postfix (`0019`).
|
|
117
|
+
- Custom exception types, never built-ins (`0002`, `ARC0012`), and never named `...Exception` (`0001`). The XML doc starts with "The exception that is thrown when …".
|
|
118
|
+
- XML documentation on every public member: multi-line `<summary>`, a `<param>` per parameter, `<returns>` on non-void, an `<exception cref>` per thrown type.
|
|
119
|
+
- Copyright header on every file; the file ends with one newline.
|
|
120
|
+
|
|
121
|
+
## Performance, in passing
|
|
122
|
+
|
|
123
|
+
- `.ToList()` before `.Where()`, or an `IEnumerable<T>` enumerated twice.
|
|
124
|
+
- `.Result` or `.Wait()` on a task (`CRARCH0013`).
|
|
125
|
+
- A collection loaded only for `.Count()`.
|
|
126
|
+
|
|
127
|
+
## Not supported in this SDK
|
|
128
|
+
|
|
129
|
+
- **Frontend items** (dialogs, theme tokens, component imports): not C#. Review them with the TypeScript reference.
|
|
130
|
+
- **Captive-dependency detector:** C# has none, and no startup graph check. Rely on Development scope validation plus this review. Scope validation cannot catch tenant data cached in a singleton.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Elixir review checklist
|
|
2
|
+
|
|
3
|
+
Use for OTP applications with Arc or Chronicle. Consume authorized `mix format --check-formatted`, `mix compile --warnings-as-errors` and `mix test` results for the changed apps; confirm that `:arc_analyzer` is configured when relying on its findings. Names are illustrative.
|
|
4
|
+
|
|
5
|
+
## Application architecture
|
|
6
|
+
|
|
7
|
+
- **Commands:** declare `use Cratis.Arc.Command`, one `key: true` field when targeting an existing Chronicle source, and `handle/2`. Put prerequisite reads in `provide/2`, after authorization and validation; use `ctx.provided` in the decision. Return the event instead of appending from a normal Arc handler; verify an explicit `{:append, {source_id, event}}` override targets the intended source.
|
|
8
|
+
- **Queries:** declare `use Cratis.Arc.ReadModel` and `@query` or `@observe`. An observable query needs `watch:` for Chronicle read-model changes or `topics:` for explicit notifications. For large collections page at the provider and return `Cratis.Arc.Page` with the authorized total; don't load an entire collection for one page.
|
|
9
|
+
- **Tenancy:** resolving a tenant selects a namespace but does not enforce tenant presence or membership. Require application or host authorization for those checks, including subscription access. `Cratis.Arc.Notifier` is node-local; use application fan-out such as `Phoenix.PubSub` for cross-node notifications.
|
|
10
|
+
|
|
11
|
+
## Analyzer catalog
|
|
12
|
+
|
|
13
|
+
- **`ARCE0001` warning:** a schema and `handle/2` without `use Cratis.Arc.Command` can be missed by discovery.
|
|
14
|
+
- **`ARCE0002` error:** a command or query cannot be both anonymous and restricted.
|
|
15
|
+
- **`ARCE0003` warning:** `@observe` without `watch:` or `topics:` will not deliver changes; give it a trigger or use `@query`.
|
|
16
|
+
- **`ARCE0004` warning:** a direct Chronicle append in an Arc command bypasses the intended response path; return events.
|
|
17
|
+
- **`ARCE0005` error:** two commands or queries resolve to the same route; make the public routes distinct.
|
|
18
|
+
- **Coverage:** the analyzer sees declarations and reported calls, not arbitrary calls hidden in helpers or the value a handler returns. Verify actual routing and result shape in the review.
|
|
19
|
+
- **Suppression:** `@arc_analyzer ignore: ["ARCE0001"]` on a module switches a rule off for it. Treat each one as a suppression that needs a stated reason. Warnings fail the build only under `mix compile --warnings-as-errors`.
|
|
20
|
+
|
|
21
|
+
## Decision safety
|
|
22
|
+
|
|
23
|
+
- **Decision safety:** for direct Chronicle work, carry an expected tail with `ConcurrencyScope.for_event_source/2` and the `:concurrency_scope` append option, or for a protected read use `Cratis.Chronicle.decide` with `DecisionReads.get` inside it. On conflict take a fresh decision, not a fresh tail attached to the same stale event. Verify Arc's own pipeline behavior separately from a direct Chronicle unit of work.
|
|
24
|
+
- **Observation:** exercise re-delivery of reactor work before relying on an external side effect. For views, allow for asynchronous projection catch-up; a read right after a successful command need not see its event yet.
|
|
25
|
+
|
|
26
|
+
## Specifications
|
|
27
|
+
|
|
28
|
+
- **Pipeline assertions:** use `Cratis.Arc.Test.CommandScenario` or `Cratis.Arc.Test.Case`. For example, use `Cratis.Arc.Test.assert_invalid(result, :depot_id)` for a refused reassignment and `refute_appended` for its event. Where multiple rules share the member, inspect the specific validation reason or constraint detail as well.
|
|
29
|
+
- **Not supported in this SDK:** no chain of tenant resolvers; configure one resolver or implement resolution ordering in a custom resolver. No built-in connection or subscription caps; enforce them at the host or edge when needed.
|
|
30
|
+
- **Test fidelity:** the in-memory Chronicle test kernel has no read-model query surface. Use it for command append, constraint and concurrency specs, but get real kernel evidence for Chronicle-backed query, projection and LiveView list behavior.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Go review checklist
|
|
2
|
+
|
|
3
|
+
Use for Arc or Chronicle Go modules. Consume authorized `go vet` and `go test` evidence in every affected module; look for race-test evidence when shared state, goroutine lifetime or cancellation semantics change. Names are illustrative.
|
|
4
|
+
|
|
5
|
+
## Application architecture
|
|
6
|
+
|
|
7
|
+
- **Commands:** verify the typed `commands.Register` adapter and test with the built pipeline via `commands.Execute`. Check both the returned Go error and the result envelope: a business refusal may return a nil error. Use `Response()`'s presence flag rather than treating a zero-valued response as absent. `Validate` does not execute `Provide`, `Handle` or completion participants.
|
|
8
|
+
- **Prepared values:** `commands.Prepare` connects a typed preparation result to the handler. Ensure the handler uses the prepared value and that middleware does not let a lookup or request-scope resource outlive its invocation.
|
|
9
|
+
- **Queries:** verify the `queries.Register` adapter or generated equivalent. A paging request does not page every slice automatically; use an explicit `Page[T]` for provider-paged output or a renderer. Count only authorized rows before sorting and windowing; avoid fetching everything merely to page in memory.
|
|
10
|
+
- **Live queries:** verify authorization and tenant selection for snapshots and ongoing subscriptions. An `AddEmissionGuard` is subscription delivery policy after rendering/interception, not an alternative to authorization or row filtering.
|
|
11
|
+
- **Module boundary:** Arc's generator, Chronicle integration, and MongoDB integration are separate Go modules. Verify the application's module resolution and test each module whose code changes; a root-module tag does not establish nested-module availability.
|
|
12
|
+
- **Authorization:** an operation with no declaration is public unless the application sets `Authorization.Fallback` in its options. `AllowAnonymous: true` makes one operation public and suppresses the fallback. Flag an undeclared operation in an application without a fallback.
|
|
13
|
+
- **Dependency injection (Fundamentals `di`):** an interface that exposes an owned concrete service is registered with a borrowed helper (`di.BindBorrowedFunc1`) and the concrete type's lifetime; two owned keys close the same instance twice. A singleton must not reach a scoped service (`Build` fails with `di.ErrCaptiveLifetime`). A service that opens scopes takes `di.ScopeFactory` (`registry.BindScopeFactory()`), opens and closes one scope per unit of work from its methods, never in its factory, and keeps no scoped value. Details: the Go dependency-injection reference of `cratis-fundamentals-type-discovery`.
|
|
14
|
+
- **Static checks:** `arc-vet` reports `ARC` codes for declarations Arc will not discover or that conflict; it does not replace `arc-gen -check`, so look for both. `chroniclevet` runs as `go vet -vettool=<path>`, which replaces the standard vet checks for that run, so plain `go vet` evidence is still needed.
|
|
15
|
+
|
|
16
|
+
## Decision safety
|
|
17
|
+
|
|
18
|
+
- **Event registration:** use `RegisterEvent[T]` and preserve the stored ID and generation. An explicit `events.WithID` decouples the ID from Go type names. Check exact source, stream and scope when moving a slice or changing an append adapter.
|
|
19
|
+
- **Protected decisions:** for a command configured with `commands.WithProtectedDecisions`, verify that the same composition registers the decision provider and the completion owner. Acquire the evidence via the provider's `ReadDecision` in `Prepare`, carry it into the handler, and commit through that owner. The read alone is not an append guard; require evidence that a competing write rejects the stale decision before effects escape.
|
|
20
|
+
- **Replay:** `reactors.OnceOnly` can skip an observer or named handler during replay, not on all re-delivery. Check stable observer IDs and duplicate-safe external effects.
|
|
21
|
+
|
|
22
|
+
## Specifications
|
|
23
|
+
|
|
24
|
+
- **Pipeline assertions:** exercise production registration rather than calling only the handler when testing wiring or rule enforcement. For a rejected reassignment, inspect `Details().ValidationResults` for the `depotId` member, identifying `Reason` or `ReasonDetail` as appropriate, and prove nothing was appended. Checking only `err` or `IsSuccess()` cannot isolate the rule.
|
|
25
|
+
- **Not supported in this SDK:** the `chronicletest.Substitute` engine does not enforce kernel concurrency, constraints or live observer delivery. Use `chronicletest.Kernel` for those claims. Use the local reducer and reactor scenarios for the fold or handler behavior, not for delivery, retries or storage guarantees.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Java review checklist
|
|
2
|
+
|
|
3
|
+
Use for Java applications on the JVM Arc and Chronicle SDKs. Consume authorized Gradle compile (including KSP) and test results. Names are illustrative.
|
|
4
|
+
|
|
5
|
+
## Application architecture
|
|
6
|
+
|
|
7
|
+
- **Commands:** put a public instance `handle` on the `@Command` class or record. An optional public instance `provide` runs after authorization and validation, before `handle`, not on `/validate`. Verify the prepared value reaches the parameter and is not fetched again. Generated adapters await `CompletionStage` results; a refused command must not look like a completed success.
|
|
8
|
+
- **Authorization:** operation-level authorization replaces artifact-level authorization. Check the effective policy on each changed method, including observable delivery and tenant selection.
|
|
9
|
+
- **No declaration:** with no authorization annotation, the built-in evaluator still requires a signed-in caller. A public operation needs `@AllowAnonymous`; flag one that is public only by assumption.
|
|
10
|
+
- **Refusals:** an exception that implements `ValidationFailure` becomes a validation result for the caller; any other throw is an unexpected-error outcome. Check that expected business refusals use the former.
|
|
11
|
+
- **Queries:** use public static methods on `@ReadModel` and `@FromServices` parameters for infrastructure, not caller arguments. Return `QueryPage` for provider-paged data with its authorized total; an array is a result shape, not an automatically paged selection.
|
|
12
|
+
- **Live queries:** a `java.util.concurrent.Flow.Publisher` can stream updates but does not supply a current snapshot. Use `ObservableState` when the initial GET needs a current value; verify that a bare publisher's not-ready response is not rendered as an empty result.
|
|
13
|
+
- **Generated adapters:** Arc KSP processes Java declarations and generates adapters; change the declaration, not the generated adapter or TypeScript proxy. Check `ARCKSP` diagnostics for command and query signature, transport, routing and response-shape errors, including Java/Kotlin interoperability warnings.
|
|
14
|
+
|
|
15
|
+
## Code analysis
|
|
16
|
+
|
|
17
|
+
Use the authorized Arc KSP output to identify what was checked. Errors prevent adapter and manifest generation; warnings still need review on changed code. IDs below use the `ARCKSP` prefix.
|
|
18
|
+
|
|
19
|
+
- **Setup:** `0001` invalid processor configuration; `9999` an unclassified processor error, not a source-level rule to suppress.
|
|
20
|
+
- **Build:** the `io.cratis.arc` Gradle plugin enables KSP and treats compiler warnings as errors. Treat a build that disables either, or suppresses an `ARCKSP` error, as a finding.
|
|
21
|
+
- **Command:** `0100` missing command annotation (warning), `0101` unsupported declaration, `0102` invalid handler, `0103` invalid preparation method, `0104` unsupported parameter, `0105` unsupported return, `0106` ambiguous key, `0107` unused prepared value (warning), `0108` contradictory access policy, `0109` ambiguous response, `0110` invalid event routing metadata.
|
|
22
|
+
- **Query:** `0200` unsupported read model, `0201` invalid method, `0202` ambiguous overload, `0203` unsupported parameter, `0204` unsupported return, `0205` transport/result mismatch, `0206` ambiguous or duplicate route, `0207` duplicate qualified name, `0208` invalid infrastructure parameter, `0209` unsupported Kotlin default parameter, `0210` invalid host adapter.
|
|
23
|
+
- **Contracts:** `0300` unsupported proxy model shape, `0301` invalid Jakarta validation metadata, `0302` ambiguous or unprovable enum wire value, `0303` missing derived type ID, `0304` unsupported derived declaration, `0305` concrete polymorphic base used as a property, `0306` unsupported export target, `0307` unsupported identity details provider, `0308` unsupported fluent validator, `0309` invalid fluent rule, `0310` missing or conflicting fluent metadata, `0311` unsupported or ambiguous ignored validation member.
|
|
24
|
+
- **Interop:** `0400` Java/Kotlin interoperability hazard (warning).
|
|
25
|
+
|
|
26
|
+
## Decision safety
|
|
27
|
+
|
|
28
|
+
- **Appends:** return a registered `@EventType` fact and ensure the resolved command key is the intended source. Check explicit `EventForEventSourceId` overrides and inherited stream metadata. Facts are appended, not sent back as client responses.
|
|
29
|
+
- **Concurrency:** use `EventsWithConcurrencyScopes.builder()` for a nonempty routed batch with explicit scopes. `expectedSequenceNumber(sourceId, sequenceNumber)` takes a Java `long`; use `concurrencyScope` for a narrower scope. Check the expectation came from the decision's read, not from a fresh tail fetched after deciding.
|
|
30
|
+
- **Completion:** a successful outermost command commits the staged events for one Chronicle store. Test refusal and absence of persisted events when a nested execution fails, even if the caller ignores its result. A Chronicle commit is not a distributed transaction with Spring Data.
|
|
31
|
+
- **Observation:** stable event/observer identities matter for rebuilt views and restarts. An `@OnceOnly` handler still needs duplicate-delivery safety; review failure recovery separately from replay.
|
|
32
|
+
- **Registration:** Chronicle has no compile-time analyzer here. A reactor or reducer that fails to start surfaces as `ArtifactRegistrationFailed` and as a line on standard error; `awaitRegistration()` waits for the first attempt, so returning normally does not prove registration succeeded. Look for startup evidence, not only a clean compile.
|
|
33
|
+
|
|
34
|
+
## Specifications
|
|
35
|
+
|
|
36
|
+
- **Blocking tests:** configure `CommandScenario` with the generated `ArcArtifactModule`, then use `BlockingCommandScenario` with try-with-resources. For example, assert `shouldHaveValidation("depotId")` for a refused reassignment and no appended fact. If the member is shared, check the reason or constraint detail as well. `shouldBeInvalid()` rejects dependency-only results but cannot distinguish authored rules.
|
|
37
|
+
- **Asynchronous tests:** use `AsyncCommandScenario` with `JavaAsyncScope` to exercise CompletionStage-based behavior; verify cancellation or completion and respect the executor's ownership.
|
|
38
|
+
- **Not supported in this SDK:** JVM Arc does not accept Reactor `Flux` query results; use JDK `Flow.Publisher` or `ObservableState`. A local scenario does not prove real kernel enforcement or observer catch-up; use a kernel-backed check when that is the claim.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Kotlin review checklist
|
|
2
|
+
|
|
3
|
+
Use for Kotlin/JVM applications using Arc or Chronicle. Consume the project's authorized Gradle compile (including KSP) and test results; use kernel-backed evidence for behavior the test double cannot prove. Slice and member names are illustrative.
|
|
4
|
+
|
|
5
|
+
## Application architecture
|
|
6
|
+
|
|
7
|
+
- **Commands:** a model-bound `@Command` has a public instance `handle`. Put data preparation in `provide`, which runs after authorization and validation; verify that `handle` consumes the prepared value rather than reading it again. `/validate` does not invoke `provide` or `handle`.
|
|
8
|
+
- **Authorization:** verify effective command and query authorization. An operation-level declaration replaces artifact-level authorization, so check the specific method rather than relying on the class annotation.
|
|
9
|
+
- **No declaration:** with no authorization annotation, the built-in evaluator still requires a signed-in caller. A public operation needs `@AllowAnonymous`; flag one that is public only by assumption.
|
|
10
|
+
- **Refusals:** an exception that implements `ValidationFailure` becomes a validation result for the caller; any other throw is an unexpected-error outcome. Check that expected business refusals use the former.
|
|
11
|
+
- **Queries:** declare a `@ReadModel` and expose queries on its companion with `@JvmStatic`; separate route arguments from `@FromServices` dependencies. For an authorized, provider-paged selection, return `QueryPage` with the already-paged items and total; arrays do not receive automatic sorting or paging.
|
|
12
|
+
- **Live queries:** use `Flow` for streaming and `StateFlow` when a snapshot needs a current value. Check that subscription and delivery do not expose another tenant's data, including after membership changes.
|
|
13
|
+
- **Generated adapters:** KSP owns the transport metadata and adapters. Check diagnostics for handler or parameter shape (`ARCKSP0102`–`0105`), ambiguous key (`ARCKSP0106`), ambiguous client response (`ARCKSP0109`), and conflicting query routes or names (`ARCKSP0206`/`0207`). Correct the declarations, not the generated files.
|
|
14
|
+
|
|
15
|
+
## Code analysis
|
|
16
|
+
|
|
17
|
+
Use the authorized Arc KSP output to identify what was checked. Errors prevent adapter and manifest generation; warnings still need review on changed code. IDs below use the `ARCKSP` prefix.
|
|
18
|
+
|
|
19
|
+
- **Setup:** `0001` invalid processor configuration; `9999` an unclassified processor error, not a source-level rule to suppress.
|
|
20
|
+
- **Build:** the `io.cratis.arc` Gradle plugin enables KSP and treats compiler warnings as errors. Treat a build that disables either, or suppresses an `ARCKSP` error, as a finding.
|
|
21
|
+
- **Command:** `0100` missing command annotation (warning), `0101` unsupported declaration, `0102` invalid handler, `0103` invalid preparation method, `0104` unsupported parameter, `0105` unsupported return, `0106` ambiguous key, `0107` unused prepared value (warning), `0108` contradictory access policy, `0109` ambiguous response, `0110` invalid event routing metadata.
|
|
22
|
+
- **Query:** `0200` unsupported read model, `0201` invalid method, `0202` ambiguous overload, `0203` unsupported parameter, `0204` unsupported return, `0205` transport/result mismatch, `0206` ambiguous or duplicate route, `0207` duplicate qualified name, `0208` invalid infrastructure parameter, `0209` unsupported Kotlin default parameter, `0210` invalid host adapter.
|
|
23
|
+
- **Contracts:** `0300` unsupported proxy model shape, `0301` invalid Jakarta validation metadata, `0302` ambiguous or unprovable enum wire value, `0303` missing derived type ID, `0304` unsupported derived declaration, `0305` concrete polymorphic base used as a property, `0306` unsupported export target, `0307` unsupported identity details provider, `0308` unsupported fluent validator, `0309` invalid fluent rule, `0310` missing or conflicting fluent metadata, `0311` unsupported or ambiguous ignored validation member.
|
|
24
|
+
- **Interop:** `0400` Java/Kotlin interoperability hazard (warning).
|
|
25
|
+
|
|
26
|
+
## Decision safety
|
|
27
|
+
|
|
28
|
+
- **Appends:** return a registered `@EventType` value to append to the command-key source. Verify each `EventForEventSourceId` override and the source/stream metadata it inherits. Returned facts are server-consumed, not client responses.
|
|
29
|
+
- **Concurrency:** for an explicit guarded batch use `eventsWithConcurrencyScopes`, carrying the tail of the scope that governed the decision. It requires at least one event and rejects different scopes for the same source label. Establish that a competing append refuses the stale write; reloading only the tail after deciding does not protect the decision.
|
|
30
|
+
- **Completion:** in Spring's Chronicle transaction, the outermost successful command execution commits the staged events for one store; a failed nested execution can prevent that commit even if the root disregards its result. Do not claim a single atomic transaction spanning Chronicle and a local database.
|
|
31
|
+
- **Observation:** preserve serialized event identity and explicit observer identity; consider rebuild and recovery separately. `@OnceOnly` skips replay, not all duplicate deliveries; `@StartAtTail` concerns first registration, not replay safety.
|
|
32
|
+
- **Registration:** Chronicle has no compile-time analyzer here. A reactor or reducer that fails to start surfaces as `ArtifactRegistrationFailed` and as a line on standard error; `awaitRegistration()` waits for the first attempt, so returning normally does not prove registration succeeded. Look for startup evidence, not only a clean compile.
|
|
33
|
+
|
|
34
|
+
## Specifications
|
|
35
|
+
|
|
36
|
+
- **Pipeline evidence:** use `CommandScenario` with the generated `ArcArtifactModule`; `withReadModelForKey` exercises the actual lookup key. For example, a rejected depot reassignment should satisfy `shouldHaveValidation(member = "depotId")` and append nothing. Use the reason or the returned validation's `reasonDetail` to distinguish a particular refusal when the member is shared. `shouldBeInvalid()` alone does not distinguish two authored rules and rejects dependency-only evidence.
|
|
37
|
+
- **Not supported in this SDK:** the standalone Chronicle `EventScenario` and reducer `ReadModelScenario` do not run kernel constraints, concurrency checks, projections, observation or replay. Use a real kernel for those assertions; simulated failures can still establish how Arc handles a rejection.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Python review boundary
|
|
2
|
+
|
|
3
|
+
Python has no Cratis application SDK. Review the Python caller against the owning service's HTTP contract, including authentication, tenant scope and handling of a failed or ambiguous result. Review Chronicle appends and guarded decisions in the owning service with its SDK reference; do not reproduce the decision or append facts in the Python caller.
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# TypeScript review checklist
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Gates and setup
|
|
6
|
+
- Code analysis rules
|
|
7
|
+
- TypeScript style
|
|
8
|
+
- Application architecture
|
|
9
|
+
- Decision safety
|
|
10
|
+
- Dependencies, state and logging
|
|
11
|
+
- Frontend
|
|
12
|
+
- Specifications
|
|
13
|
+
- Performance, in passing
|
|
14
|
+
- Not supported in this SDK
|
|
15
|
+
|
|
16
|
+
This reference adds the TypeScript details to the language-neutral review. The server packages are `@cratis/arc.core`, `@cratis/arc.chronicle`, `@cratis/chronicle` and `@cratis/fundamentals`. The frontend packages are `@cratis/arc.react`, `@cratis/arc.react.mvvm` and `@cratis/components`. Type names in the examples are illustrative.
|
|
17
|
+
|
|
18
|
+
## Gates and setup
|
|
19
|
+
|
|
20
|
+
The required gates are the type check (`tsc`), ESLint and the specs of the changed projects. ESLint uses flat config:
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
// eslint.config.mjs
|
|
24
|
+
import cratis from '@cratis/eslint-config';
|
|
25
|
+
import arcCore from '@cratis/eslint-plugin-arc-core';
|
|
26
|
+
import arc from '@cratis/eslint-plugin-arc';
|
|
27
|
+
import components from '@cratis/eslint-plugin-components';
|
|
28
|
+
|
|
29
|
+
export default [
|
|
30
|
+
...cratis.configs.consumer,
|
|
31
|
+
arcCore.configs['recommended-type-checked'],
|
|
32
|
+
...arc.configs.recommended,
|
|
33
|
+
...components.configs.recommended,
|
|
34
|
+
];
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
- **Presets of `@cratis/eslint-config`:** `consumer` is for applications built on Cratis. `internal` adds the Cratis MIT license header and is only for Cratis product repositories. A missing header is a finding only under `internal`.
|
|
38
|
+
- **What the preset already fails on:** `var`, a `let` that could be `const`, `any`, unused variables and empty functions. Do not repeat these findings.
|
|
39
|
+
- **What it does not check:** `@ts-ignore` and `@ts-expect-error`, because `ban-ts-comment` is off. Read every new one; one without a comment that says why blocks.
|
|
40
|
+
- **Suppressions:** a new `// eslint-disable-next-line <rule>` needs a reason after `--`. A suppression of an `arc-core/*` rule without a reason blocks.
|
|
41
|
+
- **Type information:** `arc-core` `recommended` runs without type information, and its type-aware checks then stay silent. `recommended-type-checked` sets `parserOptions.projectService` and adds `arcchr0006` and `arcchr0010`. Count those findings only when the project uses the type-checked preset. `query-argument-name` is in neither preset; count it only when the project enables it.
|
|
42
|
+
- **Generated files** carry a `// @generated by Cratis` line in their header (first, or right after the license header). They are proxies, and artifact metadata from `arc-proxygenerator --metadata`. The `@cratis/arc` preset's `skip-generated-proxies` processor keeps them out of lint. A hand edit blocks; change the declaration and regenerate.
|
|
43
|
+
|
|
44
|
+
## Code analysis rules
|
|
45
|
+
|
|
46
|
+
`@cratis/eslint-plugin-arc-core` reports every rule as an error under the `arc-core/` prefix. Each line says what the rule reports.
|
|
47
|
+
|
|
48
|
+
| Rule | Reports |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| `arc0002` | A command-shaped class without `@command()` |
|
|
51
|
+
| `arc0003` | An external class with `handle(command)` for a decorated command. Move the handler onto the command (type-aware) |
|
|
52
|
+
| `arc0004` | A `@command()` class without an instance `handle()`, declared or inherited |
|
|
53
|
+
| `arc0005` | A value returned from `provide()` that no `handle()` parameter receives |
|
|
54
|
+
| `arc0010` | `async` on a handler that neither awaits nor returns asynchronous work |
|
|
55
|
+
| `arc0012` | A built-in `Error` thrown from a command, validator or read model. Throw a named domain error type |
|
|
56
|
+
| `arc0014` | A generic type parameter on a `@query()` method |
|
|
57
|
+
| `arc0015` | A query that takes a primitive and wraps it in a concept itself. Bind the concept (type-aware) |
|
|
58
|
+
| `arc0019` | `@allowAnonymous()` combined with `@authorize()` or `@roles()` on one declaration |
|
|
59
|
+
| `arcchr0003` | A reactor that appends to its own event log. Return the events instead |
|
|
60
|
+
| `arcchr0006` | A reactor returning an Arc command without `@onceOnly()` or a `@replay()` handler (type-checked preset only) |
|
|
61
|
+
| `arcchr0007` | A command handler that appends directly instead of returning its events |
|
|
62
|
+
| `arcchr0009` | A secret-looking command field without `@notAudited()` or `@pii()` |
|
|
63
|
+
| `arcchr0010` | A keyless command returning a raw `Guid` it means as the event source. Use `eventSourceIdResponse` (type-checked preset only) |
|
|
64
|
+
| `missing-field` | A public command or read-model property without `@field(Type)`, so it is missing from the wire schema |
|
|
65
|
+
| `declared-field` | `declare` on a decorated property. Use definite assignment (`!`) |
|
|
66
|
+
| `inject-binding` | `@inject` tokens that do not match the `handle()`/`provide()` parameters in count or, with type information, in type |
|
|
67
|
+
| `query-binding` | `@query(...)` descriptors that do not match the method parameters |
|
|
68
|
+
| `query-argument-name` | A literal wire argument name that differs from its parameter (opt-in) |
|
|
69
|
+
| `misplaced-decorator` | A query, injection or authorization decorator where the runtime ignores it |
|
|
70
|
+
| `unexported-artifact` | A decorated command, read model or validator that is not exported, so file discovery misses it |
|
|
71
|
+
| `validator-target` | A validator not bound to an exact model with `@validator(Target)`. Set `{ generatedMetadata: true }` when generated metadata supplies the target |
|
|
72
|
+
|
|
73
|
+
`arcchr0009` skips names that contain `password`, `secret`, `token`, `credential` or `apiKey`, because Chronicle already withholds them from causation at runtime. Do not ask for `@notAudited()` on those.
|
|
74
|
+
|
|
75
|
+
## TypeScript style
|
|
76
|
+
|
|
77
|
+
- No widening through `any`. Use `unknown` with a type guard, or `value as unknown as Target` when a cast is unavoidable.
|
|
78
|
+
- Use full, descriptive names, never `e`, `idx`, `prev`, `dir` or `pos`.
|
|
79
|
+
- A decorated model property uses definite assignment (`title!: TaskTitle`) or an initializer, never `declare`.
|
|
80
|
+
|
|
81
|
+
## Application architecture
|
|
82
|
+
|
|
83
|
+
The example below covers the default shape of a state-change slice. A command decides, a validator rejects input, `provide()` loads data, and the events are returned:
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
import { field } from '@cratis/fundamentals';
|
|
87
|
+
import { command, inject, key, rejected, validation, validator, CommandValidator, roles } from '@cratis/arc.core';
|
|
88
|
+
import { eventType } from '@cratis/chronicle';
|
|
89
|
+
|
|
90
|
+
@eventType('ParcelRerouted')
|
|
91
|
+
export class ParcelRerouted {
|
|
92
|
+
@field(DepotId) depot!: DepotId;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@command()
|
|
96
|
+
@roles('dispatcher')
|
|
97
|
+
export class RerouteParcel {
|
|
98
|
+
@field(ParcelId) @key() parcelId!: ParcelId;
|
|
99
|
+
@field(DepotId) depot!: DepotId;
|
|
100
|
+
|
|
101
|
+
@inject(Depots)
|
|
102
|
+
provide(depots: Depots) {
|
|
103
|
+
return depots.byId(this.depot) ?? rejected(validation('Unknown depot', ['depot'], 'notFound'));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
handle(depot: Depot): ParcelRerouted | ReturnType<typeof rejected> {
|
|
107
|
+
if (!depot.accepts(this.parcelId)) return rejected(validation('The depot is full', ['depot']));
|
|
108
|
+
return Object.assign(new ParcelRerouted(), { depot: this.depot });
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@validator(RerouteParcel)
|
|
113
|
+
export class RerouteParcelValidator extends CommandValidator<RerouteParcel> {
|
|
114
|
+
constructor() {
|
|
115
|
+
super();
|
|
116
|
+
this.ruleFor(command => command.depot).notEmpty();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
- **Slices:** file discovery derives namespaces and routes from folders. Moving or renaming a folder changes routes, so treat it as a contract change.
|
|
122
|
+
- **Commands:** `response(value)` or a plain value succeeds. `rejected(validation(message, members, reason))` returns 400 and `denied(reason)` returns 403. A throw is a 500, never a refusal; its message is redacted to `An unexpected error occurred` unless the `exposeExceptionDetails` option is on, which it is by default only in development. Enabling it outside development blocks. `rejected()` with no results throws.
|
|
123
|
+
- **Command key:** a context-values provider can supply `resolvedKey`. If no provider supplies it, the first registered resolver that returns a nonempty key wins; Chronicle registers one for `getEventSourceId()`. The default resolver uses `getKey()` when present, otherwise the `@key()` field. A present `getKey()` that yields no key does not fall back to `@key()`.
|
|
124
|
+
- **Append routing:** `tuple(eventSourceIdResponse(id), event)` returns the ID to the caller and overrides the context key for the append. An ordinary string response does not route an append. Without a response override or a context key, Arc generates a UUID for the batch. An event wrapped with `eventForEventSourceId(...)` supplies its own source ID and can override the source and stream route; an explicit per-event stream ID takes precedence over `getEventStreamId()` or the command’s declared stream ID. A response or per-event override does not change the earlier decision read’s key. Verify that both target the intended instance; a generated UUID on an update or an unintended override blocks.
|
|
125
|
+
- **Events:** `@eventType()` without an id uses the class name, so renaming the class changes the stored type. A persisted event needs an explicit id. A reshape is a new generation, `@eventType('Id', 2)`, plus a class with `@eventTypeMigration(Upgraded, Previous)` that implements `IEventTypeMigration` with `upcast` and `downcast`.
|
|
126
|
+
- **Values:** a concept is `class ParcelId extends ConceptAs<string>` from `@cratis/fundamentals`, declared with `@field(ParcelId)`. There is no typed event source identity; use a concept with `@key()`.
|
|
127
|
+
- **Read side:** a declarative projection is `@projection('Id')` on a class that implements `IProjectionFor<T>`. Model-bound projections use `@fromEvent(Event)` on the read model. AutoMap is on by default, so an explicit `.autoMap()` or a same-name `set` is noise. `@projection`, `@reactor`, `@reducer` and `@readModel` default their id to the class name, so a rename changes the deployed identity unless the id is explicit.
|
|
128
|
+
- **Queries:** a query is a static method on a `@readModel()` class marked with `@query(...)`. An array result is sorted and paged in memory without extra code. A query backed by a database takes `queryOptions()` and returns `queryPage(items, totalItems)`. A hand-written HTTP route is a finding.
|
|
129
|
+
- **Reactors:** `@reactor()` classes dispatch by method name, the event class name in camelCase. Reactors replay by default. A reactor that returns commands or events, or calls out, needs `@onceOnly()` on the class or handler, or a `replay<EventName>()` / `@replay(Event)` handler. `@onceOnly()` does not stop retry redelivery, so effects must also be idempotent. A new side-effecting reactor without `@startAtTail()` acts on all history when it is deployed.
|
|
130
|
+
- **Cross-source rules:** use `@unique()` on an event property, `@unique('Name')` across event types, `@unique()` on the event class for a one-per-source event type, or a class with `@constraint()` that implements `IConstraint.define(builder)`. A read followed by a check is a finding.
|
|
131
|
+
- **Authorization:** with no decorator, everyone may call, including anonymous callers, and there is no global fallback. A new command or read model without `@authorize()`, `@roles(...)` or an explicit `@allowAnonymous()` is a finding. Put command authorization on the class; on `handle()` or `provide()` the build fails.
|
|
132
|
+
- **Personal data:** mark event properties `@pii('why')`, and every projected read-model property too, because event-only marking leaves the materialized field unencrypted. `@pii()` on `eventSourceId` throws. Mark a secret command field `@notAudited()` from `@cratis/arc.chronicle`.
|
|
133
|
+
- **Tenancy:** put tenant-bound state in a `@scoped()` service and key any shared cache by tenant. Startup preflight and runtime resolution do not inspect tenant data retained in module variables or singleton caches; see Dependencies, state and logging.
|
|
134
|
+
|
|
135
|
+
## Decision safety
|
|
136
|
+
|
|
137
|
+
Arc does not protect a decision by default. An injected read model is a snapshot: it does not lock and it can lag. Choose by how the command decides:
|
|
138
|
+
|
|
139
|
+
| The command decides from | Use |
|
|
140
|
+
| --- | --- |
|
|
141
|
+
| Nothing it read; it only needs no one else to write in between | `@eventSourceType('Parcel', { concurrency: true })`, also on `@eventStreamType` and `@eventStreamId` |
|
|
142
|
+
| An empty stream ("create once") | `eventsWithConcurrencyScopes(events, { [id]: { eventSourceId: true, sequenceNumber: EventSequenceNumber.beforeFirst.value } })` |
|
|
143
|
+
| The event source's history | An `AggregateRoot` injected through `commandAggregate`. It carries the revision it replayed |
|
|
144
|
+
| A rule across event sources | A constraint |
|
|
145
|
+
|
|
146
|
+
- **Gotchas:** `{ concurrency: true }` reads the tail after `handle()`, so it does not protect a decision made from state read earlier. A read-modify-write decision needs an aggregate or an exact scope. A batch with scopes but no events is a no-op: no append or concurrency check, so it cannot act as a compare-only guard.
|
|
147
|
+
- **Appends:** return events from `handle()`, or use `eventsWithConcurrencyScopes`, `eventForEventSourceId`, or `aggregate.apply(...)`. These join the command's batch, which is sent only when the outer command succeeds. `eventLog.append(...)` inside `handle()` and `defineChronicleCommand` append immediately and stay stored if the batch is rejected; `arcchr0007` reports the first.
|
|
148
|
+
- **Rejection:** a concurrency or constraint rejection becomes a 400 validation result, with reason `concurrencyViolation` or `constraintViolation`. For a constraint, `reasonDetail` holds the constraint name. An unclear acknowledgment is a failure with an exception, not a rejection.
|
|
149
|
+
- **Downgrades:** removing `{ concurrency: true }`, an aggregate or a scope from a decision that reads state needs a stated reason.
|
|
150
|
+
|
|
151
|
+
## Dependencies, state and logging
|
|
152
|
+
|
|
153
|
+
- **Lifetimes:** decorate discovered classes with `@singleton()`, `@scoped()` (one per HTTP request, direct call or subscription) or `@transient()`. Otherwise use `builder.services.addSingleton/addScoped/addTransient(Token, Implementation | factory)`. Use an abstract class or `serviceToken<T>('name')` as the token, because interfaces do not exist at runtime.
|
|
154
|
+
- **Injection:** in `handle()` and `provide()`, use `@inject(A, B)` with one token per parameter, in order. A query takes `service(A)` in its `@query(...)` descriptors. A constructor uses `@injectable(A)` or `static inject = [A] as const`. Under standard decorators without generated metadata, the token lists are required.
|
|
155
|
+
- **No service locator:** `currentServices()` is for low-level definitions and host integration only. In a command, query, reactor or domain class it blocks.
|
|
156
|
+
- **Captive dependencies:** startup preflight checks only declared dependency chains reachable from the supplied roots, without invoking factories. Scope resolution rejects a singleton resolving scoped or transient services, including through a factory’s resolver. Neither check can see an already-captured value in a closure, module variable or hand-held cache; inspect these in review.
|
|
157
|
+
- **Logging:** unexpected errors go to the `logger(error, correlationId)` option, and Arc emits OpenTelemetry traces and metrics to an application-owned SDK. No `console.log` in decisions.
|
|
158
|
+
|
|
159
|
+
## Frontend
|
|
160
|
+
|
|
161
|
+
- **Dialogs:** use `CommandDialog` from `@cratis/components/CommandDialog` or `Dialog` from `@cratis/components/Dialogs`, never `primereact/dialog` (`@cratis/components/no-primereact-dialog`). `onBeforeExecute` must return the command values (`onbeforeexecute-must-return`).
|
|
162
|
+
- **Imports:** import components from their exact subpath, not the `@cratis/components` root (`no-root-barrel-import`). Mark CommandForm fields with `markAsCommandFormField` and `markAsCommandFormColumn`, not a hand-written `displayName` (`no-raw-command-form-marker`).
|
|
163
|
+
- **View models:** a view model is a plain `*ViewModel` class wired with `withViewModel` from `@cratis/arc.react.mvvm`. It has no React hooks and no generated-proxy `.use()` (`no-hooks-in-view-model`). Import `observer` from `@cratis/arc.react.mvvm`, not `mobx-react` (`@cratis/arc/no-direct-mobx-react-import`).
|
|
164
|
+
- **Styling:** use `--cratis-*` tokens, never hex or rgb literals. No `!important` without a justifying comment.
|
|
165
|
+
- **Proxies and layout:** call commands and queries through generated proxies. Keep components in the slice folder, with no single-component barrel `index.ts`.
|
|
166
|
+
- **In passing:** watch for an inline object or array literal passed as a prop, wrong `useEffect` dependencies, and a growable list rendered in full instead of paged or virtualized.
|
|
167
|
+
|
|
168
|
+
## Specifications
|
|
169
|
+
|
|
170
|
+
- **Direct specs:** call `handle()` on an instance with supplied state, for example `Object.assign(new RerouteParcel(), { ... }).handle(depot)`. Use these for decisions.
|
|
171
|
+
- **Pipeline:** `CommandScenario.for(Command, ...validatorsAndArtifacts)` comes from `@cratis/arc.testing`. Pass every validator; it cannot find one that was never imported. Register fakes on `scenario.services` before the first call. `execute(values)` runs the pipeline; `validate(values)` never runs `provide()` or `handle()`. Call `dispose()` after each spec.
|
|
172
|
+
- **Assertions:** `shouldBeSuccessful()` / `shouldNotBeSuccessful()`, `shouldHaveValidationErrors()`, `shouldHaveValidationErrorForMember('depot')`, `shouldHaveValidationErrorBecauseOf(reason)`, `shouldBeAuthorized()` / `shouldNotBeAuthorized()`, `shouldHaveExceptions()`. `shouldHaveValidationErrorFor(text)` matches message text, so prefer the member assertion. A validation spec asserts both `shouldNotBeSuccessful()` and the member.
|
|
173
|
+
- **Chronicle commands:** use `ChronicleCommandScenario` from `@cratis/arc.chronicle/testing`. Seed with `given.forEventSource(id).events(...)` and `givenReadModel(...)`, then assert `result.shouldHaveAppendedEvent(Type, sourceId?, predicate?)` and `result.appendedEvents`. The in-memory scenario does not enforce constraints or concurrency, run reactors or load aggregates. `ChronicleKernelScenario` (needs `ARC_CHRONICLE_TEST_URL`) does, and it times out when a registered observer ignores an appended event type.
|
|
174
|
+
- **Constraints:** use `EventScenario` from `@cratis/chronicle/testing`. It enforces supported shapes in process and throws `UnsupportedEventSequenceOperation` for others. Assert `isSuccess` is false and `constraintViolations.some(violation => violation.constraintId === 'UniqueParcelLabel')`. Reactors use `ReactorScenario`; returned events are recorded, not appended.
|
|
175
|
+
- **Layout and timing:** specs follow `for_<Unit>/when_<behavior>/`. A sleep or poll in a spec is a finding.
|
|
176
|
+
|
|
177
|
+
## Performance, in passing
|
|
178
|
+
|
|
179
|
+
- A reactor that reads the event log or a read model when the event already carries the data.
|
|
180
|
+
- `ChronicleReadConsistency.Immediate` on a hot path. It recomputes from the event log and only works for passive model-bound projections.
|
|
181
|
+
- A database-backed query that loads everything and relies on in-memory paging instead of returning `queryPage`.
|
|
182
|
+
|
|
183
|
+
## Not supported in this SDK
|
|
184
|
+
|
|
185
|
+
- **Typed event source identity:** use a `ConceptAs<string>` or `ConceptAs<Guid>` concept with `@key()` or `getEventSourceId()`.
|
|
186
|
+
- **Discovering every implementation of a type:** file discovery finds decorated artifacts only. Register the set in one place at the composition root and inject it as one token.
|
|
187
|
+
- **Automatic read-model concurrency protection:** use an aggregate or an exact concurrency scope.
|
|
188
|
+
- **Constraint and concurrency enforcement in `ChronicleCommandScenario`:** use `EventScenario` for constraints, and `ChronicleKernelScenario` for concurrency and aggregates.
|
|
189
|
+
- **A global authorization fallback:** declare access on every command and read model.
|