@cratis/pi 8.0.2 → 8.2.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 +9 -102
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +3 -5
- package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +8 -49
- package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -84
- package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +6 -51
- package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -81
- package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -54
- package/package/corpus/harnesses/copilot/instructions/components.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +5 -22
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +7 -315
- package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +3 -25
- package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +5 -151
- package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +5 -104
- package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +5 -63
- package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +8 -55
- package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +3 -33
- package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +6 -79
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +4 -27
- package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +4 -6
- package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +0 -2
- package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +0 -1
- package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +7 -138
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +19 -19
- package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +1 -4
- package/package/corpus/harnesses/copilot/instructions/go.instructions.md +2 -7
- package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +5 -6
- package/package/corpus/harnesses/copilot/instructions/java.instructions.md +7 -129
- package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +8 -165
- package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +4 -1
- package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +5 -98
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +9 -63
- package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +8 -148
- package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +4 -37
- package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +7 -70
- package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -98
- package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +3 -47
- package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +3 -65
- package/package/corpus/hooks/README.md +16 -8
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +109 -6
- package/package/corpus/hooks/scripts/cratis-guard-shell-writes.sh +1 -1
- package/package/corpus/hooks/scripts/quality-gates.json +3 -5
- package/package/corpus/rules/ai-distribution.md +9 -102
- package/package/corpus/rules/authoring-skills.md +3 -5
- package/package/corpus/rules/browser.md +8 -49
- package/package/corpus/rules/code-health-policy.txt +4 -24
- package/package/corpus/rules/code-health.md +1 -1
- package/package/corpus/rules/code-quality.csharp.md +3 -84
- package/package/corpus/rules/code-quality.md +6 -51
- package/package/corpus/rules/code-quality.typescript.md +4 -81
- package/package/corpus/rules/codescene.md +5 -54
- package/package/corpus/rules/components.md +1 -1
- package/package/corpus/rules/cratis-folder-is-configuration.md +5 -22
- package/package/corpus/rules/csharp.md +7 -315
- package/package/corpus/rules/dialogs.md +1 -1
- package/package/corpus/rules/discoverability.md +3 -25
- package/package/corpus/rules/documentation-structure-and-formatting.md +5 -151
- package/package/corpus/rules/documentation.md +5 -104
- package/package/corpus/rules/editing-cratis-docs.md +5 -63
- package/package/corpus/rules/efcore.md +8 -55
- package/package/corpus/rules/efcore.specs.md +3 -33
- package/package/corpus/rules/elixir.md +6 -79
- package/package/corpus/rules/exit-codes-and-wrappers.md +4 -27
- package/package/corpus/rules/framework-dotnet.md +4 -6
- package/package/corpus/rules/framework.md +0 -2
- package/package/corpus/rules/frontend-quality.md +0 -1
- package/package/corpus/rules/frontend-testing.md +1 -1
- package/package/corpus/rules/general.md +2 -2
- package/package/corpus/rules/github-actions.md +7 -138
- package/package/corpus/rules/glossary.md +19 -19
- package/package/corpus/rules/go-engineering.md +1 -4
- package/package/corpus/rules/go.md +2 -7
- package/package/corpus/rules/guards-and-fuses.md +5 -6
- package/package/corpus/rules/java.md +7 -129
- package/package/corpus/rules/kotlin.md +8 -165
- package/package/corpus/rules/local-work-artifacts.md +4 -1
- package/package/corpus/rules/orleans.md +5 -98
- package/package/corpus/rules/profiles.md +9 -63
- package/package/corpus/rules/scripting.md +1 -1
- package/package/corpus/rules/specs.csharp.md +8 -148
- package/package/corpus/rules/specs.elixir.md +4 -37
- package/package/corpus/rules/specs.typescript.md +3 -1
- package/package/corpus/rules/storybook.md +7 -70
- package/package/corpus/rules/typescript.md +8 -98
- package/package/corpus/rules/writing-correct-examples.md +3 -47
- package/package/corpus/rules/writing-cratis-docs.md +3 -65
- package/package/corpus/skills/cratis-application-growth/SKILL.md +7 -54
- package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +49 -0
- package/package/corpus/skills/cratis-application-growth/references/rename-window.md +12 -14
- package/package/corpus/skills/cratis-application-growth/references/stages.md +2 -2
- package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +3 -3
- package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +2 -2
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +10 -43
- package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +40 -0
- package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-arc-declare-command/references/go.md +1 -1
- package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +6 -7
- package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +2 -8
- package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +6 -12
- package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +4 -0
- package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +11 -4
- package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +19 -2
- package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +1 -2
- package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +2 -2
- package/package/corpus/skills/cratis-arc-host-application/references/go.md +5 -1
- package/package/corpus/skills/cratis-arc-host-application/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +4 -7
- package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +4 -2
- package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +6 -6
- package/package/corpus/skills/cratis-arc-page-query/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +10 -6
- package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +2 -2
- package/package/corpus/skills/cratis-arc-page-query/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +7 -3
- package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +1 -1
- package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +2 -2
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +2 -4
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +2 -2
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +1 -1
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +2 -2
- package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +1 -3
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +13 -51
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +9 -1
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +40 -0
- package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +19 -64
- package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +62 -0
- package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +24 -55
- package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +49 -0
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +13 -31
- package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +25 -0
- package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +24 -62
- package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +51 -0
- package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +4 -4
- package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +10 -12
- package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +16 -3
- package/package/corpus/skills/cratis-arc-validate-command/references/go.md +19 -2
- package/package/corpus/skills/cratis-arc-validate-command/references/java.md +20 -7
- package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +22 -2
- package/package/corpus/skills/cratis-arc-validate-command/references/python.md +8 -2
- package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +22 -2
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +22 -248
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +55 -0
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +72 -0
- package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +86 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +27 -275
- package/package/corpus/skills/cratis-arc-validation-typescript/references/models-and-queries.md +63 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +46 -0
- package/package/corpus/skills/cratis-arc-validation-typescript/references/server-decisions.md +114 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +15 -255
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +13 -6
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +75 -0
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +78 -13
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +16 -14
- package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +10 -6
- package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +8 -8
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +10 -8
- package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +8 -4
- package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +21 -8
- package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +5 -7
- package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +3 -3
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +10 -80
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +2 -2
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -24
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +10 -0
- package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +7 -6
- package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +2 -2
- package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +6 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +6 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +6 -0
- package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +11 -5
- package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +2 -2
- package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +3 -1
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +1 -1
- package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +51 -40
- package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/{occurrences.md → csharp-occurrences.md} +2 -2
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +5 -6
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +1 -1
- package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +1 -1
- package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +21 -19
- package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +3 -3
- package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +1 -1
- package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +3 -4
- package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +3 -4
- package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +2 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +7 -2
- package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +3 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +2 -6
- package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +2 -2
- package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +1 -1
- package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +1 -5
- package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +3 -3
- package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +2 -2
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +12 -201
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +67 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +88 -0
- package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +8 -4
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +13 -11
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +2 -2
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -4
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +20 -61
- package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +1 -1
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +15 -26
- package/package/corpus/skills/cratis-code-review/SKILL.md +7 -6
- package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +1 -1
- package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +1 -1
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +14 -206
- package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +29 -0
- package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +8 -0
- package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +7 -7
- package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +1 -1
- package/package/corpus/skills/cratis-components-choose-control/SKILL.md +7 -8
- package/package/corpus/skills/cratis-components-choose-control/references/collections.md +2 -2
- package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +1 -1
- package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +22 -27
- package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +5 -0
- package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +19 -25
- package/package/corpus/skills/cratis-components-display-list/SKILL.md +26 -19
- package/package/corpus/skills/cratis-components-display-list/references/server-query.md +3 -3
- package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +15 -12
- package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +3 -3
- package/package/corpus/skills/cratis-components-explore-data/SKILL.md +7 -7
- package/package/corpus/skills/cratis-components-host-chat/SKILL.md +7 -7
- package/package/corpus/skills/cratis-components-submit-form/SKILL.md +9 -15
- package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +5 -5
- package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +3 -3
- package/package/corpus/skills/cratis-components-theme-application/SKILL.md +7 -51
- package/package/corpus/skills/cratis-components-theme-application/references/palette.md +49 -0
- package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +4 -2
- package/package/corpus/skills/cratis-content-length/SKILL.md +34 -46
- package/package/corpus/skills/cratis-content-length/references/length-evidence.md +26 -127
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +15 -27
- package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +3 -19
- package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +29 -224
- package/package/corpus/skills/cratis-discoverability/SKILL.md +11 -4
- package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +2 -2
- package/package/corpus/skills/cratis-documentation-writing/SKILL.md +4 -3
- package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +13 -129
- package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +132 -0
- package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +11 -100
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +55 -40
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +68 -0
- package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +38 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +14 -65
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +40 -174
- package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +8 -52
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +29 -0
- package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +20 -0
- package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +3 -4
- package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +7 -12
- package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +5 -4
- package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +6 -40
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +18 -151
- package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +5 -21
- package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +19 -0
- package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +3 -66
- package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +68 -0
- package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +2 -84
- package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +87 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +15 -263
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +3 -3
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +28 -6
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dotnet-nuget.md +18 -14
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +231 -0
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/other-environments.md +2 -3
- package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +62 -77
- package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +6 -39
- package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +36 -0
- package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +4 -4
- package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +8 -134
- package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +139 -0
- package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +3 -100
- package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +109 -0
- package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +1 -5
- package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +1 -3
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +11 -116
- package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +93 -0
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +4 -15
- package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +8 -8
- package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +4 -4
- package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +1 -1
- package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +5 -5
- package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +15 -2
- package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +1 -1
- package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +10 -27
- package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +16 -0
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +26 -188
- package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +14 -0
- package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +7 -5
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +23 -157
- package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +139 -0
- package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +7 -5
- package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +2 -4
- package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +7 -0
- package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +2 -2
- package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +1 -1
- package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +2 -2
- package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +2 -2
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +5 -23
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +20 -0
- package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +3 -3
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +8 -63
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +52 -0
- package/package/corpus/skills/cratis-observability/SKILL.md +1 -1
- package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +9 -23
- package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +3 -14
- package/package/corpus/skills/cratis-observability/references/csharp.md +4 -6
- package/package/corpus/skills/cratis-observability/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-observability/references/troubleshooting.md +4 -5
- package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +1 -4
- package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +0 -3
- package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +0 -4
- package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +7 -49
- package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +22 -0
- package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +4 -4
- package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +1 -1
- package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +12 -0
- package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +12 -0
- package/package/corpus/skills/cratis-orchestration-lanes/references/worktrees.md +11 -0
- package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +14 -13
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +51 -26
- package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +8 -14
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +9 -65
- package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +5 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +11 -7
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +1 -1
- package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +27 -0
- package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +35 -0
- package/package/corpus/skills/cratis-performance-review/SKILL.md +6 -76
- package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +79 -0
- package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +19 -16
- package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +2 -2
- package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +5 -5
- package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +1 -1
- package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +2 -3
- package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +2 -2
- package/package/corpus/skills/cratis-platform-start-application/SKILL.md +10 -8
- package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +6 -6
- package/package/corpus/skills/cratis-platform-start-application/references/java.md +4 -4
- package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +4 -4
- package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +3 -3
- package/package/corpus/skills/cratis-release-notes/SKILL.md +9 -133
- package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -0
- package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +64 -0
- package/package/corpus/skills/cratis-rtk/SKILL.md +12 -18
- package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-accept-model/references/capability-consumption.md +1 -1
- package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +1 -1
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +25 -59
- package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +11 -10
- package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +9 -6
- package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +3 -3
- package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +8 -0
- package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +20 -167
- package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +23 -47
- package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +9 -10
- package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +26 -23
- package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +6 -14
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +2 -2
- package/package/corpus/skills/cratis-screenplay-declare-slice/references/read-identity.md +1 -1
- package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +7 -9
- package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +10 -14
- package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +6 -31
- package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +22 -0
- package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +5 -5
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +5 -5
- package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +4 -4
- package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +2 -2
- package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +4 -75
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -2
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +85 -1
- package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +15 -133
- 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 +4 -12
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +28 -57
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +4 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +13 -20
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +3 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +2 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +5 -5
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +82 -71
- package/package/corpus/skills/cratis-security-review/SKILL.md +4 -73
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +24 -13
- package/package/corpus/skills/cratis-security-review/references/review-checklist.md +74 -0
- package/package/corpus/skills/cratis-session-handoff/SKILL.md +7 -32
- package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +2 -2
- package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +20 -0
- package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +9 -17
- package/package/corpus/skills/cratis-showrunner-herald/references/options.md +2 -2
- package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +16 -10
- package/package/corpus/skills/cratis-social-feed-post/SKILL.md +9 -162
- package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +37 -0
- package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +40 -0
- package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +39 -150
- package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +24 -0
- package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +23 -0
- package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +5 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +2 -2
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +13 -5
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +7 -4
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +1 -1
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +20 -4
- package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +1 -1
- package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +2 -2
- package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +5 -5
- package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +2 -2
- package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +2 -2
- package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +2 -2
- package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +10 -9
- package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +3 -3
- package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +7 -6
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -6
- package/package/corpus/skills/cratis-technical-examples/SKILL.md +10 -106
- package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +1 -1
- package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +42 -0
- package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +2 -2
- package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +37 -0
- package/package/corpus/skills/cratis-ux-review/SKILL.md +8 -40
- package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +24 -0
- package/package/corpus/skills/cratis-ux-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-ux-review/references/report-template.md +2 -1
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +19 -132
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +24 -97
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +23 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +25 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +17 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +23 -0
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +8 -29
- package/package.json +1 -1
- /package/package/corpus/skills/cratis-chronicle-protect-decision/references/{standalone.md → csharp-standalone.md} +0 -0
- /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/silent-backup-failure.md → silent-backup-failure.md} +0 -0
- /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/unintended-release-regression.md → unintended-release-regression.md} +0 -0
|
@@ -1,150 +1,39 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
##
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
| The models use profile context and each member's history of what they read, liked, commented on, returned to or scrolled past. | Same article | 2026-03-12 | Model inputs; relative weights undisclosed | Official | Confirmed |
|
|
41
|
-
| A post's representation includes its format, author information, engagement counts, article metadata and text. | Same article | 2026-03-12 | Model inputs; relative weights undisclosed | Official | Confirmed |
|
|
42
|
-
| LLM embeddings let members discover posts beyond keyword matches, including from authors they don't follow. This describes retrieval, not guaranteed reach. | Same article | 2026-03-12 | System description | Official | Confirmed |
|
|
43
|
-
| Long dwells, likes, comments and shares are among the actions the ranking model embeds. No relative weights are given. | Same article | 2026-03-12 | Model inputs; relative weights undisclosed | Official | Confirmed |
|
|
44
|
-
| New posts get embeddings in near real time, and embeddings for posts gaining engagement are refreshed. The article sets no one-hour cutoff; that doesn't prove no timing effect exists. | Same article | 2026-03-12 | System description | Official | Confirmed |
|
|
45
|
-
| AI may help with writing, but posts and comments should represent the member's own voice and perspectives. | [LinkedIn: Keeping conversations real](https://news.linkedin.com/2026/keeping-conversations-real-on-linkedin) | 2026-06-04 | Policy statement | Official | Confirmed |
|
|
46
|
-
| Content that appears AI-generated and lacks a clear perspective is less likely to be distributed beyond the author's immediate network. This is LinkedIn's own account, not independently measured, and not a ban on AI assistance. | Same statement | 2026-06-04 | Policy statement | Official | Confirmed |
|
|
47
|
-
|
|
48
|
-
What these rows don't tell you: whether expanding "see more" on a given post is itself a
|
|
49
|
-
ranking signal, how any signal is weighted, or how long a post should be.
|
|
50
|
-
|
|
51
|
-
## LinkedIn: format engagement
|
|
52
|
-
|
|
53
|
-
| Claim as supported | Source | Date | Population / metric | Grade | Verification |
|
|
54
|
-
| --- | --- | --- | --- | --- | --- |
|
|
55
|
-
| Buffer analyzed over 52 million posts across 10 platforms. Its figures describe Buffer-posted content only, and Buffer says it isn't a full-platform view. | [Buffer, State of social media engagement 2026](https://buffer.com/resources/state-of-social-media-engagement-2026/) | 2026-03-05 | Buffer customers' posts | Vendor, observational | Confirmed |
|
|
56
|
-
| Document (PDF carousel) posts had a median engagement rate of 21.77%. | Same report | 2026-03-05 | Median engagement rate, LinkedIn, Buffer sample | Vendor, observational | Confirmed |
|
|
57
|
-
| Video had a median engagement rate of 7.35% and images 6.52%. | Same report | 2026-03-05 | Median engagement rate, LinkedIn, Buffer sample | Vendor, observational | Confirmed |
|
|
58
|
-
| Link posts had a median engagement rate of 3.81% and text posts 3.18%. This compares formats; it does not test a link in the body against a link in a comment. | Same report | 2026-03-05 | Median engagement rate, LinkedIn, Buffer sample | Vendor, observational | Confirmed |
|
|
59
|
-
| Socialinsider's LinkedIn benchmark is built from business pages: 1.3 million posts from 16,645 active pages, January 2024 to December 2025. Different population from personal profiles. | [Socialinsider LinkedIn benchmarks](https://www.socialinsider.io/social-media-benchmarks/linkedin) | Page metadata 2026-03-16 | Business pages | Vendor, observational | Confirmed |
|
|
60
|
-
| In Q2 2026, average engagement rates were: multi-image 6.90%, documents 6.60%, video 5.90%, images 5.20%, text 3.95%. | Same page | Q2 2026 | Average engagement rate. Business pages; Q2 sample size and methodology not established by the cited 2024–2025 population. | Vendor, observational | Checked against source |
|
|
61
|
-
| Documents led 2025 with a 7.00% average engagement rate. | Same page | 2025 | Average engagement rate, business pages | Vendor, observational | Checked against source |
|
|
62
|
-
| For pages with up to 50K followers, multi-image posts had the most impressions per post. This is the only reach finding in this table. | Same page | Live | Impressions per post, pages up to 50K followers | Vendor, observational | Checked against source |
|
|
63
|
-
| The SEO Works reports counting slide-advance clicks in its own carousel engagement calculation; this does not establish Buffer's or Socialinsider's calculation. Not an official LinkedIn metric definition. | [The SEO Works, LinkedIn video vs carousels](https://www.seoworks.co.uk/downloads/data-led-analysis-of-linkedin-video-vs-carousels/) | 2025 sample | One agency's own LinkedIn channel; measurement method | Third-party guidance | Confirmed |
|
|
64
|
-
|
|
65
|
-
Neither dataset reports GIFs or infographics separately. Engagement rate is not reach. The
|
|
66
|
-
SEO Works reports counting slide-advance clicks in its own carousel engagement calculation;
|
|
67
|
-
this does not establish Buffer's or Socialinsider's calculation. Buffer reports medians and
|
|
68
|
-
Socialinsider averages, over different populations, so don't put their numbers side by side
|
|
69
|
-
as if they measured the same thing.
|
|
70
|
-
|
|
71
|
-
## LinkedIn: replies and frequency
|
|
72
|
-
|
|
73
|
-
| Claim as supported | Source | Date | Population / metric | Grade | Verification |
|
|
74
|
-
| --- | --- | --- | --- | --- | --- |
|
|
75
|
-
| Buffer's reply analysis covered nearly 2 million posts from more than 220,000 accounts on six platforms, comparing each account with itself. | [Buffer, State of social media engagement 2026](https://buffer.com/resources/state-of-social-media-engagement-2026/) | 2026-03-05 | Within-account comparison, Buffer sample | Vendor, observational | Confirmed |
|
|
76
|
-
| LinkedIn posts where the account replied to comments had about 30% more engagement than the same account's posts without replies. Buffer says this doesn't mean replies cause it. | Same report | 2026-03-05 | Within-account engagement difference | Vendor, observational | Confirmed |
|
|
77
|
-
| Buffer's LinkedIn frequency analysis covered over 2 million posts from more than 94,000 accounts. The page title says 2026; the page shows a publication date of 2025-08-28. | [Buffer, How often to post on LinkedIn](https://buffer.com/resources/how-often-to-post-on-linkedin/) | 2025-08-28 | Buffer customers' LinkedIn accounts | Vendor, observational | Confirmed (date partly confirmed) |
|
|
78
|
-
| Posting 2 to 5 times a week was associated with 1,182 more impressions per post and a 0.23 percentage-point higher engagement rate than posting once a week. Not causal, and not a minimum anyone must meet. | Same article | 2025-08-28 | Within-account impressions and engagement rate | Vendor, observational | Confirmed |
|
|
79
|
-
|
|
80
|
-
## Length and the preview
|
|
81
|
-
|
|
82
|
-
| Claim as supported | Source | Date | Population / metric | Grade | Verification |
|
|
83
|
-
| --- | --- | --- | --- | --- | --- |
|
|
84
|
-
| In 372,126 personal-profile posts (September 2025 to February 2026), posts of 1,301 to 2,500 characters had 27% higher engagement than posts under 400. Not a company-page result and not causal. | [AuthoredUp, LinkedIn character limit](https://authoredup.com/blog/linkedin-character-limit) | 2026-04-02, updated 2026-08-11 | Engagement rate by character band, personal profiles | Vendor, observational | Confirmed |
|
|
85
|
-
| Median engagement by band: 2.10% at 1 to 400 characters, 2.61% at 1,301 to 2,000, 2.67% at 2,001 to 2,500, 2.62% at 2,501 to 3,000. The curve isn't monotonic. Cite the table; an interactive graphic on the same page shows 2.63% for the last band. | Same page | 2026-08 update | Median engagement rate, personal profiles | Vendor, observational | Confirmed |
|
|
86
|
-
| AuthoredUp, not LinkedIn, reports a 3,000-character post limit and a preview of roughly 210 characters on desktop and 140 on mobile before "see more". These are approximations that depend on the interface. | Same page | 2026-08 update | Interface description | Third-party guidance | Confirmed |
|
|
87
|
-
|
|
88
|
-
## Platform limits
|
|
89
|
-
|
|
90
|
-
| Claim as supported | Source | Date | Population / metric | Grade | Verification |
|
|
91
|
-
| --- | --- | --- | --- | --- | --- |
|
|
92
|
-
| Bluesky's post schema limits text to 300 graphemes and 3,000 UTF-8 bytes. | [AT Protocol post lexicon](https://raw.githubusercontent.com/bluesky-social/atproto/main/lexicons/app/bsky/feed/post.json), units per [lexicon spec](https://atproto.com/specs/lexicon) | Live, unpinned | Hard limit | Official | Confirmed |
|
|
93
|
-
| Mastodon's default limit is 500 characters. Instances can change it. | [Mastodon posting guide](https://docs.joinmastodon.org/user/posting/) | Live | Default limit | Official | Confirmed |
|
|
94
|
-
| An ordinary X post can hold 280 weighted characters; emoji, URLs and some Unicode ranges count differently. The page doesn't cover paid longer posts. | [X character counting](https://docs.x.com/fundamentals/counting-characters) | Live | Hard limit, weighted | Official | Confirmed |
|
|
95
|
-
|
|
96
|
-
## Hacker News
|
|
97
|
-
|
|
98
|
-
| Claim as supported | Source | Date | Population / metric | Grade | Verification |
|
|
99
|
-
| --- | --- | --- | --- | --- | --- |
|
|
100
|
-
| Submit the original source, and generally the original title unless it's misleading or linkbait. | [HN guidelines](https://news.ycombinator.com/newsguidelines.html) | Live | Site rule | Official | Confirmed |
|
|
101
|
-
| Posting your own work part of the time is fine; using HN primarily for promotion is not. | Same page | Live | Site rule | Official | Confirmed |
|
|
102
|
-
| Don't solicit upvotes, comments or submissions. | Same page | Live | Site rule | Official | Confirmed |
|
|
103
|
-
| "Don't post generated text or AI-edited text. HN is for conversation between humans." The rule sits under "In Comments"; the guidelines don't state it for submissions. | Same page | Live | Site rule | Official | Confirmed |
|
|
104
|
-
|
|
105
|
-
Cratis applies the comment rule to everything it posts on HN, submissions included. That is
|
|
106
|
-
Cratis's own stricter policy, not a reading of the guidelines.
|
|
107
|
-
|
|
108
|
-
## Not verified, removed from guidance
|
|
109
|
-
|
|
110
|
-
These appeared in earlier drafts or are commonly quoted. They weren't confirmed in the review
|
|
111
|
-
behind this file, so the skill doesn't rely on them. Check the live source before using any
|
|
112
|
-
of them.
|
|
113
|
-
|
|
114
|
-
- Buffer's "about 83% of profiles performed better when they replied" (same report as above).
|
|
115
|
-
- Buffer's best-time-to-post windows for LinkedIn.
|
|
116
|
-
- Buffer's statement that text led engagement on X in 2025.
|
|
117
|
-
- A Socialinsider sentence that documents and multi-image posts have "consistently
|
|
118
|
-
outperformed" other formats. The quarterly and yearly figures above were checked; the
|
|
119
|
-
sentence was not.
|
|
120
|
-
- LinkedIn Help's image aspect ratios, and the claim that its 1.91:1 figure applies only to
|
|
121
|
-
link previews and ads.
|
|
122
|
-
- The Show HN page's description of what qualifies.
|
|
123
|
-
- Quoted rules from Bluesky's community guidelines, Reddit's rules, Hashnode's code of conduct,
|
|
124
|
-
YouTube Help on thumbnails, and Google Search Central on AI features. The advice to read each
|
|
125
|
-
channel's current rules stands; the quotes were not rechecked.
|
|
126
|
-
|
|
127
|
-
## Accessibility references
|
|
128
|
-
|
|
129
|
-
These are standards cited directly, not engagement evidence.
|
|
130
|
-
|
|
131
|
-
- Alt text for images that carry information:
|
|
132
|
-
[W3C images decision tree](https://www.w3.org/WAI/tutorials/images/decision-tree/).
|
|
133
|
-
- Captions for video: [W3C captions](https://www.w3.org/WAI/media/av/captions/).
|
|
134
|
-
- Contrast of 4.5:1 for normal text and 3:1 for large text:
|
|
135
|
-
[WCAG 2.1 contrast minimum](https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html).
|
|
136
|
-
|
|
137
|
-
## Folklore
|
|
138
|
-
|
|
139
|
-
| Claim | Status | Best source |
|
|
140
|
-
| --- | --- | --- |
|
|
141
|
-
| "LinkedIn suppresses posts with an external link; always put it in the first comment." | Not established. The format figures compare link posts with other formats, not link placement. Keeping links out of the body is an editorial default, with an exception when the reader needs the link. | [Buffer](https://buffer.com/resources/state-of-social-media-engagement-2026/) |
|
|
142
|
-
| "Expanding 'see more' is a ranking signal." | Not disclosed. LinkedIn models reading, dwell and return behavior and publishes no weights; it says nothing about expansion of a single post. | [LinkedIn Engineering](https://www.linkedin.com/blog/engineering/feed/engineering-the-next-generation-of-linkedins-feed) |
|
|
143
|
-
| "The first 60 to 90 minutes decide a post's life." | No fixed window is published. LinkedIn describes refreshing embeddings for posts gaining engagement, and names no cutoff. | [LinkedIn Engineering](https://www.linkedin.com/blog/engineering/feed/engineering-the-next-generation-of-linkedins-feed) |
|
|
144
|
-
| "Saves outrank likes", "use exactly N hashtags", "matching profile keywords unlocks reach." | No weights or counts are published. | [LinkedIn Engineering](https://www.linkedin.com/blog/engineering/feed/engineering-the-next-generation-of-linkedins-feed) |
|
|
145
|
-
| "Carousels always get more reach" / "video is always favored." | Unsupported. The document figures are engagement rates, not reach. The SEO Works reports counting slide-advance clicks in its own carousel engagement calculation; this does not establish Buffer's or Socialinsider's calculation. The one impressions finding favors multi-image posts, and only for pages up to 50K followers. | [Buffer](https://buffer.com/resources/state-of-social-media-engagement-2026/), [Socialinsider](https://www.socialinsider.io/social-media-benchmarks/linkedin), [The SEO Works](https://www.seoworks.co.uk/downloads/data-led-analysis-of-linkedin-video-vs-carousels/) |
|
|
146
|
-
| "Everyone should post 2 to 5 times a week." | An observational association, not a prescription. Capacity and audience differ. | [Buffer](https://buffer.com/resources/how-often-to-post-on-linkedin/) |
|
|
147
|
-
| "Every post must be short" / "1,300 to 2,500 characters wins the algorithm." | Both unsupported. The longer-band result is personal-profile only and correlational. | [AuthoredUp](https://authoredup.com/blog/linkedin-character-limit) |
|
|
148
|
-
| "Using AI to write a post kills its reach." | Overbroad. LinkedIn's statement pairs apparent AI generation with a lack of clear perspective, and allows AI help with wording. | [LinkedIn](https://news.linkedin.com/2026/keeping-conversations-real-on-linkedin) |
|
|
149
|
-
| "HN is a place for polished promotional replies." | Contradicted. HN prohibits generated or AI-edited comments and says the site shouldn't be used primarily for promotion. | [HN guidelines](https://news.ycombinator.com/newsguidelines.html) |
|
|
150
|
-
| "A logo hurts reach" / "a logo guarantees recall." | Neither has been shown for organic developer content. The Cratis mark is an attribution rule, not a growth claim. | None found |
|
|
1
|
+
# Check feed limits and claims
|
|
2
|
+
|
|
3
|
+
## Check the preview and the rules
|
|
4
|
+
|
|
5
|
+
Check the draft on mobile and desktop. The amount readers see before expanding
|
|
6
|
+
it depends on the interface; write a complete opening thought rather than
|
|
7
|
+
relying on a character estimate. When adapting a post, confirm the destination's
|
|
8
|
+
current limits before handing it over:
|
|
9
|
+
|
|
10
|
+
- Bluesky: 300 graphemes and 3,000 UTF-8 bytes. Check both for text with emoji
|
|
11
|
+
or combining characters.
|
|
12
|
+
- Mastodon: the default is 500 characters; check the destination instance.
|
|
13
|
+
- X: an ordinary post allows 280 weighted characters; use the actual composer
|
|
14
|
+
because URLs, emoji and some Unicode ranges are counted differently.
|
|
15
|
+
|
|
16
|
+
For Hacker News, follow its current submission rules. Use the original source
|
|
17
|
+
and ordinarily its original title, do not use the site primarily for promotion,
|
|
18
|
+
and do not solicit votes or comments. Hacker News prohibits generated or
|
|
19
|
+
AI-edited comments. Cratis extends that rule to all its Hacker News copy,
|
|
20
|
+
including submissions and titles: leave the writing to a person.
|
|
21
|
+
|
|
22
|
+
## Test claims before repeating them
|
|
23
|
+
|
|
24
|
+
- A format comparison is not a test of link placement. Do not claim that
|
|
25
|
+
putting a link in a comment increases reach.
|
|
26
|
+
- Keep engagement rate and reach separate, and do not compare medians for
|
|
27
|
+
tool users with averages for business pages as if they shared a population.
|
|
28
|
+
A rate can change with the definition of engagement.
|
|
29
|
+
- Associations between replies, frequency or length and engagement do not
|
|
30
|
+
establish causation or a universal target.
|
|
31
|
+
- Do not infer exact signal weights, hashtag counts, or a cutoff for a post's
|
|
32
|
+
reach from a platform's description of ranking inputs.
|
|
33
|
+
|
|
34
|
+
## Check media accessibility
|
|
35
|
+
|
|
36
|
+
Describe the relevant information in image alt text and caption video. Check
|
|
37
|
+
text contrast on the actual asset: at least 4.5:1 for normal text or 3:1 for
|
|
38
|
+
large text. Use the [W3C image decision tree](https://www.w3.org/WAI/tutorials/images/decision-tree/)
|
|
39
|
+
when deciding whether an image is informative or decorative.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Choose a LinkedIn asset
|
|
2
|
+
|
|
3
|
+
## Lead with media on LinkedIn
|
|
4
|
+
|
|
5
|
+
On LinkedIn, a Cratis post leads with at least one asset by default. Text-only is allowed,
|
|
6
|
+
and sometimes it's the right vehicle for one sharp point. It is a decision made on purpose and
|
|
7
|
+
noted with the draft, not what happens because nobody made an image.
|
|
8
|
+
|
|
9
|
+
Treat that choice as an editorial default, not a promise of reach.
|
|
10
|
+
|
|
11
|
+
Choose the asset by what it has to explain. A code card suits one mechanism a developer can
|
|
12
|
+
read in a few seconds. Use several images when the opening names several layers, such as a
|
|
13
|
+
command and the event it produces; don't split one idea across two posts to fit one image. A
|
|
14
|
+
document suits a sequence, like steps, a before-and-after or a decision walked through page by
|
|
15
|
+
page, with the claim on the cover and one idea on each page. Use a GIF or screen recording
|
|
16
|
+
when the motion is the point, and make sure its first frame makes sense on its own. Video is
|
|
17
|
+
for real behavior shown end to end, captioned so it works with the sound off.
|
|
18
|
+
|
|
19
|
+
A stock photo or a decorated title card explains nothing, so it doesn't count. The first image
|
|
20
|
+
is seen before the text is expanded and does the same job as the opening line: one idea,
|
|
21
|
+
readable on a phone.
|
|
22
|
+
|
|
23
|
+
Every image needs alt text that carries its idea, and the post should still make sense with
|
|
24
|
+
the images removed.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Channel adaptations
|
|
2
|
+
|
|
3
|
+
## Other channels
|
|
4
|
+
|
|
5
|
+
A post adapted for another channel is rewritten for it, not cross-posted. Read each
|
|
6
|
+
channel's current rules before posting.
|
|
7
|
+
|
|
8
|
+
- X, Bluesky and Mastodon want something shorter: one finding, offered as part of a
|
|
9
|
+
conversation rather than a broadcast. Their limits are counted differently (weighted
|
|
10
|
+
characters on X, graphemes on Bluesky, and a Mastodon default each server can change), so
|
|
11
|
+
check [feed limits and claims](engagement-evidence.md). On Mastodon, put context and hashtags in the post and alt
|
|
12
|
+
text on every image.
|
|
13
|
+
- On Reddit, answer the question the community asked, with a reproducible example, and say
|
|
14
|
+
that you work on the project. Read that subreddit's rules first.
|
|
15
|
+
- On Hacker News, AI doesn't write or edit anything Cratis posts: not the title, not the
|
|
16
|
+
text, not a comment. HN's guidelines prohibit generated or AI-edited text in comments.
|
|
17
|
+
Extending that to everything Cratis submits is Cratis's own stricter policy, not something
|
|
18
|
+
the guidelines say. You may help a person gather facts, links and answers for them to check.
|
|
19
|
+
HN also asks for the original source and, usually, the original title, asks that the site
|
|
20
|
+
not be used mainly for promotion, and prohibits asking for upvotes or comments.
|
|
21
|
+
- On dev.to, Hashnode or a blog, post the complete tested piece with necessary prerequisites and a canonical
|
|
22
|
+
link, not a teaser.
|
|
23
|
+
- On YouTube, use a title and thumbnail that match what the video shows.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-specifications-exercise-backend
|
|
3
|
-
description: Use when a backend author needs to check which event an Arc command appends, why it refuses input, or which row Chronicle projects. Not for a decision invoked without the pipeline.
|
|
4
|
-
compatibility: Requires the test runner the application already uses and the Arc or Chronicle testing package released for its SDK
|
|
3
|
+
description: Use when a backend author needs to check which event an Arc command appends, why it refuses input, or which row Chronicle projects. Not for a decision invoked without the pipeline (use cratis-specifications-isolate-behavior).
|
|
4
|
+
compatibility: Requires the test runner the application already uses and the Arc or Chronicle testing package released for its SDK.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Test the backend promise at its owner
|
|
@@ -14,7 +14,7 @@ Pick the harness by the guarantee the spec has to prove, not by the artifact's n
|
|
|
14
14
|
|
|
15
15
|
If the decision can be invoked without the pipeline, call it directly. For .NET examples, see `cratis-specifications-isolate-behavior` (in `cratis/specifications/dotnet`).
|
|
16
16
|
|
|
17
|
-
Commit one spec per uncovered consequential rule, and add the accepted case only when the handler decides something. See the case defaults under
|
|
17
|
+
Commit one spec per uncovered consequential rule, and add the accepted case only when the handler decides something. See the case defaults under **Verify** in the `general` rule; do not repeat a decision that a direct spec already covers. Use the `specs` rule to distinguish contract coverage from proposed cases. Both rules are installed with every Cratis profile.
|
|
18
18
|
|
|
19
19
|
## Write the spec
|
|
20
20
|
|
|
@@ -25,7 +25,7 @@ Commit one spec per uncovered consequential rule, and add the accepted case only
|
|
|
25
25
|
5. Await every assertion that returns a task, future or promise. Otherwise the runner can finish before a failing assertion completes.
|
|
26
26
|
6. For delivery, wait on the completion signal the SDK returns, never on a fixed sleep: a sleep cannot tell a slow observer from a failed one.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
For a decision or validation rule, the spec should fail if the rule is removed and pass when it is restored. For delivery, require the exact promised observation after the completion signal.
|
|
29
29
|
|
|
30
30
|
## Read the reference for the application's SDK
|
|
31
31
|
|
|
@@ -33,7 +33,7 @@ Each reference names the packages, one worked example and the limits of that SDK
|
|
|
33
33
|
|
|
34
34
|
| Artifact | Read |
|
|
35
35
|
| --- | --- |
|
|
36
|
-
| `*.csproj`, `*.cs` | [references/csharp.md](references/csharp.md) |
|
|
36
|
+
| `*.csproj`, `*.cs` | [references/csharp.md](references/csharp.md). For a query scenario that seeds Chronicle state, reference `Cratis.Arc.Chronicle.Testing`. |
|
|
37
37
|
| Node server `package.json`, `*.ts` | [references/typescript.md](references/typescript.md) |
|
|
38
38
|
| `*.kt` | [references/kotlin.md](references/kotlin.md) |
|
|
39
39
|
| `*.java` | [references/java.md](references/java.md) |
|
|
@@ -30,13 +30,13 @@ When the spec comes from a Screenplay slice, map it directly: `given <Event>` be
|
|
|
30
30
|
|
|
31
31
|
Three false greens to rule out:
|
|
32
32
|
|
|
33
|
-
- **The rule never ran.** A read model the validator or `Provide()` needs but the spec did not seed rejects the command before the validator is constructed, so `ShouldNotBeSuccessful()` passes without the rule. Seed the state and assert the rule's
|
|
33
|
+
- **The rule never ran.** A read model the validator or `Provide()` needs but the spec did not seed rejects the command before the validator is constructed, so `ShouldNotBeSuccessful()` passes without the rule. Seed the state and assert the rule's stable member, reason or reason detail, or assert `ShouldHaveValidationErrorBecauseOf(ValidationResultReason.DependencyUnavailable)` (from `Cratis.Arc.Validation`) when missing state is the intended outcome.
|
|
34
34
|
- **Authorization refused first.** Pair a refusal with `ShouldBeAuthorized()` when the caller should have been allowed.
|
|
35
35
|
- **The framework refused, not the rule.** For a constraint or concurrency rejection, assert the reason or the constraint name and that nothing was appended. Message text is presentation and changes; the reason and name are the contract. Check `Execute` as well as `Validate`: `Validate` runs the pipeline filters but skips `Provide()` and `Handle()`, so it cannot show what the command commits.
|
|
36
36
|
|
|
37
37
|
### Prove a refusal from `Provide()`
|
|
38
38
|
|
|
39
|
-
For example, if `Provide()` requires a reservation and returns `ValidationResult.Error("Reservation is missing")` when it cannot supply one, use a valid command and an authorized caller with no reservation. Call `Execute`, assert `ShouldBeAuthorized()` and `ShouldBeRejected(
|
|
39
|
+
For example, if `Provide()` requires a reservation and returns `ValidationResult.Error("Reservation is missing", reasonDetail: "reservationMissing")` when it cannot supply one, use a valid command and an authorized caller with no reservation. Call `Execute`, assert `ShouldBeAuthorized()` and `ShouldBeRejected()`, check for a validation result with `ReasonDetail == "reservationMissing"`, and await `ShouldNotHaveAppendedEvents()`. Leave the reservation available in the accepted case. An empty provider result alone is not a refusal: the pipeline can still resolve handler arguments from other sources.
|
|
40
40
|
|
|
41
41
|
## Assert what was appended
|
|
42
42
|
|
|
@@ -2,19 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
`QueryScenario<TReadModel>` from `Cratis.Arc.Testing` (namespace `Cratis.Arc.Testing.Queries`) runs a static query method on the read model through the real query pipeline: argument conversion, validation, authorization and dependency resolution. A direct method call exercises none of those.
|
|
4
4
|
|
|
5
|
-
- `await scenario.Perform(nameof(TReadModel.Method), arguments)` returns one `QueryResult`. Pass `QueryArguments` when the
|
|
6
|
-
- `await scenario.Observe(nameof(TReadModel.Method))`
|
|
5
|
+
- Use `await scenario.Perform(nameof(TReadModel.Method), arguments)` for a snapshot. It returns one `QueryResult`. Pass `QueryArguments` only when the query takes parameters. For an `IObservable<TReadModel>` or `IObservable<IEnumerable<TReadModel>>` query when only the initial result matters, `Perform` waits up to 30 seconds for the first emission and releases its subscription. A pending result does not prove an empty response.
|
|
6
|
+
- Choose `await scenario.Observe(nameof(TReadModel.Method))` when later emissions matter. It returns a `QueryObservation`. `Initial` holds the first result, including a pipeline rejection; `await observation.Next()` waits for the next one. Waiting for either the initial emission during `Observe` or the next emission can throw `TimeoutException` after five seconds unless a timeout is passed. Dispose the observation and scenario with `await using` so they release their resources before the spec ends.
|
|
7
7
|
- `Perform` rejects a query returning `IAsyncEnumerable<TReadModel>` with `StreamingQueryNotSupported`; use `Observe` for that shape.
|
|
8
|
-
-
|
|
9
|
-
|
|
8
|
+
- The scenario takes no principal argument on `Perform` or `Observe`. Register an `ICurrentPrincipalAccessor` in `scenario.Services` before the first call; a denial shows as `IsAuthorized == false`.
|
|
9
|
+
|
|
10
|
+
For Chronicle-backed seeding, reference `Cratis.Arc.Chronicle.Testing` in the spec project. Its discovered extender supplies the in-memory Chronicle services. Import `Cratis.Arc.Chronicle.Testing.Queries` to seed a row with `Given.ForEventSource(id).ReadModel(instance)` or event history with `Given.ForEventSource(id).Events(...)`. The base `Cratis.Arc.Testing` package alone does not supply this seeding.
|
|
11
|
+
|
|
12
|
+
This example assumes an authorized static `Author.ById` query that reads the exact event source ID through `IReadModels` and returns one `Author`.
|
|
10
13
|
|
|
11
14
|
```csharp
|
|
15
|
+
using Cratis.Arc.Chronicle.Testing.Queries;
|
|
16
|
+
using Cratis.Arc.Queries;
|
|
17
|
+
using Cratis.Arc.Testing.Queries;
|
|
18
|
+
|
|
12
19
|
await using var scenario = new QueryScenario<Author>();
|
|
13
20
|
scenario.Given.ForEventSource(id).ReadModel(new Author(id, "Aster"));
|
|
14
21
|
|
|
15
22
|
var result = await scenario.Perform(nameof(Author.ById), new QueryArguments { ["id"] = id.Value });
|
|
16
23
|
|
|
17
24
|
result.IsSuccess.ShouldBeTrue();
|
|
25
|
+
((Author)result.Data).Id.ShouldEqual(id);
|
|
18
26
|
```
|
|
19
27
|
|
|
20
|
-
|
|
28
|
+
A successful result without the expected ID does not satisfy the query contract. A query restricted to an authentication scheme fails closed as unauthorized here, because selecting a scheme needs a live HTTP context: prove it in an HTTP-hosted spec.
|
|
@@ -12,17 +12,19 @@
|
|
|
12
12
|
| The effect a reactor returns | `ReactorScenario<TReactor>` | `Cratis.Chronicle.Testing` |
|
|
13
13
|
| Discovery, persistence or observer delivery | A running store | `Cratis.Chronicle.XUnit.Integration.v3` |
|
|
14
14
|
|
|
15
|
-
`Cratis.Testing` is a meta package that brings the Arc and Chronicle testing packages together.
|
|
15
|
+
`Cratis.Testing` is a meta package that brings the Arc and Chronicle testing packages together.
|
|
16
16
|
|
|
17
17
|
## Reject an empty author name
|
|
18
18
|
|
|
19
|
-
Reference the application, `Cratis.Arc.Chronicle.Testing`, `Cratis.Specifications.XUnit.v3` and the repository's xUnit v3 test setup in the spec project. This example assumes `RegisterAuthor` takes the source ID and name, and its validator
|
|
19
|
+
Reference the application, `Cratis.Arc.Chronicle.Testing`, `Cratis.Specifications.XUnit.v3` and the repository's xUnit v3 test setup in the spec project. This example assumes `RegisterAuthor` takes the source ID and name, and its validator reports a rule violation on `name` for empty input. Another registration is seeded to tell earlier history from this command's work.
|
|
20
20
|
|
|
21
21
|
```csharp
|
|
22
|
+
using System.Linq;
|
|
22
23
|
using System.Threading.Tasks;
|
|
23
24
|
using Cratis.Arc.Chronicle.Testing.Commands;
|
|
24
25
|
using Cratis.Arc.Commands;
|
|
25
26
|
using Cratis.Arc.Testing.Commands;
|
|
27
|
+
using Cratis.Arc.Validation;
|
|
26
28
|
using Cratis.Specifications;
|
|
27
29
|
using Library.Features.Authors;
|
|
28
30
|
using Library.Features.Authors.Registration;
|
|
@@ -40,12 +42,13 @@ public class when_submitting_an_empty_name : Specification
|
|
|
40
42
|
void Destroy() => _scenario.Dispose();
|
|
41
43
|
|
|
42
44
|
[Fact] public void should_refuse_registration() => _result.ShouldNotBeSuccessful();
|
|
43
|
-
[Fact] public void
|
|
45
|
+
[Fact] public void should_report_the_name_rule() => Assert.Contains(
|
|
46
|
+
_result.ValidationResults, _ => _.Reason == ValidationResultReason.Rule && _.Members.Contains("name"));
|
|
44
47
|
[Fact] public async Task should_not_append_an_event() => await _scenario.ShouldNotHaveAppendedEvents();
|
|
45
48
|
}
|
|
46
49
|
```
|
|
47
50
|
|
|
48
|
-
Run the spec project; all three facts pass. If `
|
|
51
|
+
Run the spec project; all three facts pass. If `should_report_the_name_rule` fails while `should_refuse_registration` passes, something other than the name rule refused the command: read [csharp-command-results.md](csharp-command-results.md) for the reason assertions.
|
|
49
52
|
|
|
50
53
|
If the handler decides which author receives the event, exercise that accepted case once with the requested `id` and `"Aster"`. Check `result.ShouldBeSuccessful()` and await `scenario.ShouldHaveAppendedEvent<RegisterAuthor, AuthorRegistered>(id, e => e.Name == "Aster")`.
|
|
51
54
|
|
|
@@ -11,7 +11,7 @@ test "rejects the missing title", %{arc: arc} do
|
|
|
11
11
|
end
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
For colocated specs without the `_test` suffix, follow
|
|
14
|
+
For colocated specs without the `_test` suffix, follow the discovery guidance in the `specs.elixir` rule (installed with Elixir selected, for example in `cratis/application/elixir`) and require a nonzero test count from the focused directory.
|
|
15
15
|
|
|
16
16
|
For an authorization rule use `principal(name, roles)` and `assert_forbidden` from `Cratis.Arc.Test`. For a query spec, call `Cratis.Arc.Test.query(arc, read_model, name, args)` with the scenario from the case and assert the returned rows. If setup already owns an isolated Chronicle client, build the scenario with `Cratis.Arc.Test.scenario(application, client)`; neither command nor query needs global configuration.
|
|
17
17
|
|
|
@@ -2,12 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Run a normal Arc pipeline spec
|
|
6
|
+
- Capture the events an event-writing command stages
|
|
6
7
|
- Other guarantees
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## Run a normal Arc pipeline spec
|
|
9
10
|
|
|
10
|
-
Use `arctest
|
|
11
|
+
Use `arctest` with the application's command or query registered on a normal Arc builder. `arctest.New(t, builder)` starts it and registers test cleanup. For example, if the registered `Greeting` command returns `"Hello, " + Name`, use the `arctest` package to check its response:
|
|
12
|
+
|
|
13
|
+
```go
|
|
14
|
+
fixture := arctest.New(t, builder)
|
|
15
|
+
scenario := arctest.NewCommand[Greeting, string](fixture)
|
|
16
|
+
result, err := scenario.Execute(t.Context(), Greeting{Name: "Ada"})
|
|
17
|
+
if got := arctest.RequireResponse(t, result, err); got != "Hello, Ada" {
|
|
18
|
+
t.Fatalf("response = %q", got)
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Run `go test` in the affected package. `RequireResponse` fails on an error, refusal, or missing response; the comparison checks the value the caller receives.
|
|
23
|
+
|
|
24
|
+
## Capture the events an event-writing command stages
|
|
25
|
+
|
|
26
|
+
Choose this when the promise includes staged Chronicle effects but does not require persistence. This example goes beside the `RegisterBook` handler from `cratis-arc-declare-command`, in the same Go package, and uses its `RegisterBookCommand` registration. It needs the nested Chronicle integration from a verified checkout; the root Arc release does not publish the nested module.
|
|
11
27
|
|
|
12
28
|
Run the spec with `go test`. Each case uses its own scenario and recording participant; the recorder observes staging and commit attempts but does not connect to Chronicle.
|
|
13
29
|
|
|
@@ -121,4 +137,4 @@ func requireNoError(t *testing.T, err error) {
|
|
|
121
137
|
|
|
122
138
|
## Other guarantees
|
|
123
139
|
|
|
124
|
-
For a response-producing command, use the declared client response type, not a returned effect, and assert the response. For an observable query use `NewObservableQuery` and
|
|
140
|
+
For a response-producing command, use the declared client response type, not a returned effect, and assert the response. For an observable query, use `NewObservableQuery` and call `Capture` with a bounded emission count and timeout. It owns the subscription for that capture. The typed scenario does not exercise JSON binding; use a hosted request for that and a running kernel for persistence or delivery.
|
package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md
CHANGED
|
@@ -35,7 +35,7 @@ describe('when lending a book in the catalog', () => {
|
|
|
35
35
|
});
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
`aBookTitled` stands for the application's own builder of a `Book`.
|
|
38
|
+
`aBookTitled` stands for the application's own builder of a `Book`. For refusal, assert the stable member (`shouldHaveValidationErrorForMember`), reason (`shouldHaveValidationErrorBecauseOf`), or authorization outcome (`shouldNotBeAuthorized`). A generic unsuccessful result does not identify the cause.
|
|
39
39
|
|
|
40
40
|
## Limits to design around
|
|
41
41
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-specifications-isolate-behavior
|
|
3
3
|
description: Use when a .NET contributor needs a Cratis Specifications context for a decision that can be invoked directly. Not for pipeline behavior (use cratis-specifications-exercise-backend).
|
|
4
|
-
compatibility:
|
|
4
|
+
compatibility: The Cratis.Specifications.XUnit.v3 example targets .NET 10 or 11.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Check a computed loan due date
|
|
@@ -45,7 +45,7 @@ public class when_borrowing_on_a_short_loan : Specification
|
|
|
45
45
|
|
|
46
46
|
Facts observe the arranged instance and the result of `Because`; don't run a second action in a fact. If the decision depends on a pipeline-supplied value, configure it in a pipeline scenario instead. Don't duplicate the rule at both layers.
|
|
47
47
|
|
|
48
|
-
For the xUnit v3 executable setup (`<OutputType>Exe</OutputType>` and `xunit.v3.mtp-off`), build once and run the built spec executable. Do not substitute a solution-wide `dotnet test` across mixed runner projects. Facts share setup by default: keep them read-only. Move mutation to the act; if isolation is essential use `[PerFactSpecificationLifecycle]` on the class.
|
|
48
|
+
For the xUnit v3 executable setup (`<OutputType>Exe</OutputType>` and `xunit.v3.mtp-off`), build once and run the built spec executable. Do not substitute a solution-wide `dotnet test` across mixed runner projects. Facts share setup by default: keep them read-only. Move mutation to the act; if isolation is essential use `[PerFactSpecificationLifecycle]` on the class. Let the adapter register its test framework. If a duplicate assembly attribute causes CS0579, remove the manual framework registration.
|
|
49
49
|
|
|
50
50
|
## Diagnose slow specs
|
|
51
51
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-specifications-observe-ui
|
|
3
|
-
description: Use when a frontend author needs to check keyboard interaction, dialog focus or visible input in a Storybook play function. Not for proving backend validation.
|
|
4
|
-
compatibility: Requires React Storybook with @storybook/react-vite, the
|
|
3
|
+
description: Use when a frontend author needs to check keyboard interaction, dialog focus or visible input in a Storybook play function. Not for proving backend validation (use cratis-specifications-exercise-backend).
|
|
4
|
+
compatibility: Requires React Storybook with @storybook/react-vite, the application’s UI packages and any generated proxies the component imports. The running application check requires an authenticated browser session.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Open the real Add author dialog in a story
|
|
8
8
|
|
|
9
|
-
Start with a Storybook preview for the application and a working dialog. In this Library example the trigger and dialog are both named “Add author”, with a single name field. Put `AddAuthor.stories.tsx` beside the application's `AddAuthorButton` and `AddAuthor` components. Check that focus enters the dialog without configuring a different focus target for the test.
|
|
9
|
+
Start with a Storybook preview for the application and a working dialog. In this Library example the trigger and dialog are both named “Add author”, with a single name field. Put `AddAuthor.stories.tsx` beside the application's `AddAuthorButton` and `AddAuthor` components. Check that focus enters the dialog without configuring a different focus target for the test. Use the shared preview providers by default; add the illustrated decorator only if the story has no configured Arc and Components providers.
|
|
10
10
|
|
|
11
11
|
```tsx
|
|
12
12
|
import '@cratis/fundamentals/reflection';
|
|
@@ -42,12 +42,12 @@ export const OpensAndEditsName: StoryObj<typeof meta> = {
|
|
|
42
42
|
|
|
43
43
|
## Check submission on the running Library application
|
|
44
44
|
|
|
45
|
-
Use the project's existing authenticated browser harness for command-to-row delivery. Start on Authors in a fresh namespace, submit a unique name and wait for its row on the same open page without reloading. Any harness that can do this satisfies the live check. For example, with Playwright,
|
|
45
|
+
Use the project's existing authenticated browser harness for command-to-row delivery. Start on Authors in a fresh namespace, submit a unique name and wait for its row on the same open page without reloading. Any harness that can do this satisfies the live check. For example, with Playwright, pass the prepared page and the unique name to this helper. `locator.press()` targets the element; it does not test how Tab gets there.
|
|
46
46
|
|
|
47
47
|
```js
|
|
48
48
|
export async function verifyKeyboardRegistration(page, name) {
|
|
49
49
|
await page.getByRole('button', { name: 'Add author' }).press('Enter');
|
|
50
|
-
const dialog = page.getByRole('dialog');
|
|
50
|
+
const dialog = page.getByRole('dialog', { name: 'Add author' });
|
|
51
51
|
await dialog.getByRole('textbox').fill(name);
|
|
52
52
|
await dialog.getByRole('button', { name: 'Add', exact: true }).press('Enter');
|
|
53
53
|
await page.getByRole('row').filter({ hasText: name }).waitFor();
|
|
@@ -10,8 +10,8 @@ Choose the harness by the observation, not by whether the file contains JSX. For
|
|
|
10
10
|
|
|
11
11
|
1. Arrange a named draft and a pending command result. Invoke the submit action once. Check that a second click cannot start another submission while the first is pending.
|
|
12
12
|
2. Resolve with the outcome under test. On success, assert the destination or close request, not the number of internal setter calls. On refusal, assert that the form stays open with the original draft and the user can correct it. For Arc-backed submits, distinguish the [resolved result branches](references/typescript-command-results.md) that change the UI from a rejected promise; on a thrown error, check that the busy state clears so the user can retry.
|
|
13
|
-
3. Run the application
|
|
13
|
+
3. Run the application’s configured test project using its existing package script. Follow an adjacent `for_*/when_*` suite for discovery, assertion setup and cleanup. A passing refusal spec must turn red if the view model closes unconditionally.
|
|
14
14
|
|
|
15
15
|
Use static rendering only for a markup contract, such as whether the initial button is disabled. Mount the control under its real providers for focus return, portals, gestures or navigation. Drive the same input as a user and observe the result by role and accessible name. Stub only the external boundary the test needs; restore timers and measurements and unmount between independent scenarios. When using Arc suspense queries, [reset their shared state](references/typescript-command-results.md#isolate-suspense-query-scenarios) as well. An interaction that passes only after a different test ran is not isolated.
|
|
16
16
|
|
|
17
|
-
A Storybook play function is useful for a rendered component interaction; running an application behavior spec does not execute that story. Conversely, a story with a fake command cannot prove command-to-row delivery.
|
|
17
|
+
A Storybook play function is useful for a rendered component interaction; running an application behavior spec does not execute that story. Conversely, a story with a fake command cannot prove command-to-row delivery. For delivery, open the running application as the intended caller in a disposable namespace, submit a unique draft, and wait for its row on the same page without reloading.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Stub Arc command outcomes
|
|
2
2
|
|
|
3
|
-
Stub separate resolved `CommandResult` values where the UI differs: accepted (`isSuccess`), unauthorized (`isAuthorized` false), invalid (`isValid` false with the relevant `validationResults`), and captured exceptions (`hasExceptions` true). Assert the visible reaction to each, such as field errors for invalid input. A resolved `hasExceptions` result does not enter a promise rejection path; test rejected promises separately.
|
|
3
|
+
Stub separate resolved `CommandResult` values where the UI differs: accepted (`isSuccess`), unauthorized (`isAuthorized` false), invalid (`isValid` false with the relevant `validationResults`), and captured exceptions (`hasExceptions` true). Use `CommandResult.empty` for a successful result when the view does not need a response, `CommandResult.validationFailed(findings)` for an invalid result, and `CommandResult.failed(messages)` for captured exceptions. For denial, use the existing fixture with `isAuthorized` false. Assert the visible reaction to each, such as field errors for invalid input. A resolved `hasExceptions` result does not enter a promise rejection path; test rejected promises separately.
|
|
4
4
|
|
|
5
5
|
## Isolate suspense query scenarios
|
|
6
6
|
|
|
7
|
-
In suspense query
|
|
7
|
+
In a suspense query suite, unmount, then clear the cache for the hooks under test: `clearSuspenseQueryCache()` for snapshots and `clearSuspenseObservableQueryCache()` for observable queries. Unmounting alone does not reset the shared caches.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-specifications-test-typescript-behavior
|
|
3
|
-
description: Use when a TypeScript library author needs to isolate a calculation, serializer or service decision in the package runner. Not for mounting application UI.
|
|
3
|
+
description: Use when a TypeScript library author needs to isolate a calculation, serializer or service decision in the package runner. Not for mounting application UI (use cratis-specifications-test-application-ui).
|
|
4
4
|
compatibility: Requires the application’s TypeScript test project and its installed runner.
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -14,6 +14,6 @@ For example, to specify that a serializer preserves an empty collection, pass an
|
|
|
14
14
|
|
|
15
15
|
Use Chai’s `should` when the package setup installs it; promise and spy assertions need their corresponding plugins, and metadata-dependent code needs the package’s reflection setup. Use `expect` where adjacent tests already use it. Restore timers and stubs before leaving the suite. Run the package’s configured test project and confirm that the new case is collected: a green run of a different project proves nothing.
|
|
16
16
|
|
|
17
|
-
Do not assume every local `given` has the same constructor signature
|
|
17
|
+
Do not assume every local `given` has the same constructor signature. Use the import and signature from the package whose tests will actually run.
|
|
18
18
|
|
|
19
19
|
For mounting the application UI, use `cratis-specifications-test-application-ui` (in `cratis/application/react`).
|