@cratis/pi 8.0.1 → 8.1.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/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 +4 -7
- 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/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 +10 -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
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Running and diagnosing gates
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Phase execution
|
|
6
|
+
- Local first, and resource-aware
|
|
7
|
+
- Diagnose once, fix together
|
|
8
|
+
- Cancel only owned, superseded work
|
|
9
|
+
- Integration and containers
|
|
10
|
+
|
|
11
|
+
## Phase execution
|
|
12
|
+
|
|
13
|
+
- Budget targeted checks around 120 seconds and build/test phases around 300 seconds;
|
|
14
|
+
explain any longer budget first, and obtain explicit approval before a phase exceeds
|
|
15
|
+
600 seconds. Do not blindly retry or repeat passing tests on unchanged inputs without
|
|
16
|
+
a flaky-test hypothesis or required matrix.
|
|
17
|
+
- Separate status/fetch from builds, Debug from Release, each test project, and frontend
|
|
18
|
+
lint/compile/test/build. Do not combine these into an opaque command with a large
|
|
19
|
+
outer timeout. Expose progress and cancellation; report the precise failed or
|
|
20
|
+
timed-out phase and do not continue dependent phases after failure.
|
|
21
|
+
- Capture the producer's exit status before summarizing output; `pipefail` alone is
|
|
22
|
+
insufficient with early-closing consumers such as `head`. Never use
|
|
23
|
+
`build/test | grep | sort/head/tail` as gate evidence. Printed zero-error counts are
|
|
24
|
+
not proof of success. Preserve needed full diagnostics in the task’s ignored scratch folder
|
|
25
|
+
logs rather than hiding them in `/tmp`.
|
|
26
|
+
- Fast feedback is a product requirement: a spec takes milliseconds, the suite seconds;
|
|
27
|
+
specs share setup and run in parallel; analyzers must not halt builds. CI builds the
|
|
28
|
+
spec path without analyzers and enforces them, warnings as errors, in a parallel
|
|
29
|
+
required job; the pre-push gate runs them. A slowdown is a defect.
|
|
30
|
+
|
|
31
|
+
Report the exact command and result. Put verification and deferred coverage in
|
|
32
|
+
reviewer comments, not the release-note description.
|
|
33
|
+
|
|
34
|
+
## Local first, and resource-aware
|
|
35
|
+
|
|
36
|
+
CI is the final confirmation before merge and deploy, never a feedback loop.
|
|
37
|
+
Pass the applicable local gates before an authorized push. Do not push to see whether something compiles or passes, and do not use
|
|
38
|
+
a red run to discover the next failure.
|
|
39
|
+
|
|
40
|
+
Several agents, worktrees or builds often share one machine. Keep it responsive:
|
|
41
|
+
|
|
42
|
+
- Cap parallelism, for example `dotnet build -m:2`, built spec executables with their
|
|
43
|
+
runner-specific thread limit, and `vitest run --maxWorkers=2`. Do not pass MSBuild
|
|
44
|
+
`-m` to executables; `dotnet test <project> --no-build -m:2` uses the MSBuild-backed VSTest
|
|
45
|
+
command; use the native runner options for Microsoft.Testing.Platform.
|
|
46
|
+
- Run one heavy phase at a time (build, then specs, then frontend lint and
|
|
47
|
+
tests), never several at once.
|
|
48
|
+
- If another session is using the same machine for a heavy phase, wait or lower
|
|
49
|
+
parallelism; do not retry a starved or timed-out phase at full parallelism.
|
|
50
|
+
|
|
51
|
+
## Diagnose once, fix together
|
|
52
|
+
|
|
53
|
+
After the run completes with a failure:
|
|
54
|
+
|
|
55
|
+
1. Read the failed logs once, for example
|
|
56
|
+
`gh run view <id> --repo OWNER/REPO --log-failed`.
|
|
57
|
+
2. Check other jobs in that completed run, for example
|
|
58
|
+
`gh run view <id> --repo OWNER/REPO --json jobs`. Account for every failure,
|
|
59
|
+
including independent failures beyond the first red job.
|
|
60
|
+
3. Fix all in-scope causes together. Report unrelated or unavailable causes as
|
|
61
|
+
blockers rather than silently waiving them. Re-run the required local gate
|
|
62
|
+
on the fixed state, then push once when the request authorizes it.
|
|
63
|
+
4. Flaky tests never hang a release. Classify within about 15 minutes from one
|
|
64
|
+
failed-log read and the test's history on main: real (in code the change
|
|
65
|
+
touched) or flaky. A flaky or pre-existing claim needs independent root-cause
|
|
66
|
+
validation; an unknown or repeating failure without a matching signature is
|
|
67
|
+
real and a blocker, not a quarantine candidate.
|
|
68
|
+
- Confirmed flake: after the run completes, rerun once, e.g.
|
|
69
|
+
`gh run rerun <id> --repo OWNER/REPO --failed`; a known flake with a
|
|
70
|
+
matching signature may go straight to quarantine. If it fails again,
|
|
71
|
+
quarantine the test in the same train via the repo's mechanism, open a
|
|
72
|
+
tracked "Flaky: <test>" issue with the evidence (label `flaky`), and push
|
|
73
|
+
once. Never quarantine silently or disable security or critical-path
|
|
74
|
+
coverage; if the security lens vetoes, evict the item or escalate.
|
|
75
|
+
- Real failure: fix in one round or evict the item. Never retry in loops; a
|
|
76
|
+
train waits at most one CI cycle on a flake.
|
|
77
|
+
|
|
78
|
+
Never put a CI skip token in a title or commit. Do not spend a push on each
|
|
79
|
+
individual fix or use CI to discover whether speculative fixes compile.
|
|
80
|
+
|
|
81
|
+
## Cancel only owned, superseded work
|
|
82
|
+
|
|
83
|
+
Cancellation needs a reason and an exact target. Within an authorized shipping
|
|
84
|
+
or folding request, cancel only runs started by the session's own superseded or
|
|
85
|
+
folded pushes. Anyone else's run needs the owner's agreement. Merely sharing a
|
|
86
|
+
branch or finding a duplicate run does not establish ownership.
|
|
87
|
+
|
|
88
|
+
Before acting, inspect each candidate, for example:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
gh run view <id> --repo OWNER/REPO \
|
|
92
|
+
--json workflowName,event,headBranch,headSha,status,createdAt
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Confirm the initiating push, workflow and SHA against the superseding head or
|
|
96
|
+
folded PR. Inspect the workflow's jobs if its effects are unclear. Never cancel
|
|
97
|
+
a release, publish or deploy run, regardless of ownership or workflow name.
|
|
98
|
+
Do not cancel a check whose result a queued or running publication needs, or a
|
|
99
|
+
required check about to gate a merge. Another owner's watched merge run needs
|
|
100
|
+
that owner's agreement. Even with agreement, release, publish and deploy runs
|
|
101
|
+
and checks needed by publication remain protected.
|
|
102
|
+
|
|
103
|
+
Re-read immediately before cancelling so drift cannot widen the target. Do not
|
|
104
|
+
cancel by branch, name or age alone, or use a bulk cancellation command. Once
|
|
105
|
+
confirmed, for example:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
gh run cancel <id> --repo OWNER/REPO
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Report one line naming the run ID and superseding or folding reason. If ownership
|
|
112
|
+
or downstream use is uncertain, leave it running and report the uncertainty.
|
|
113
|
+
|
|
114
|
+
## Integration and containers
|
|
115
|
+
|
|
116
|
+
Run local integration only when the tier policy calls for it or a bounded
|
|
117
|
+
cross-repository proof needs it. Give every container phase and Docker call a
|
|
118
|
+
deadline, including startup, image builds, tests and teardown. A background job
|
|
119
|
+
is not a timeout or a cleanup policy.
|
|
120
|
+
|
|
121
|
+
Keep track of the containers and networks created by the phase. On success,
|
|
122
|
+
failure, timeout or abandonment, stop and remove only those owned resources.
|
|
123
|
+
Use exact IDs or a task-specific Compose project; confirm ownership before
|
|
124
|
+
removal. Do not restart a shared daemon or stop another task's services.
|
|
125
|
+
Never run `docker system prune -a` or `docker image prune -a`.
|
|
126
|
+
|
|
127
|
+
When a test run hangs, ask for a mini hang dump (`--blame-hang-dump-type mini` on VSTest, `--hangdump-type Mini` on Microsoft.Testing.Platform). Read the stack (for example `dotnet-dump analyze <file>` then `clrstack -all`), keep the text output, and delete the `.dmp` file. Use a full dump only for a named investigation that needs heap contents.
|
|
128
|
+
|
|
129
|
+
For a repository's Compose test setup, one scoped teardown example is
|
|
130
|
+
`docker compose -p <task-project> down`, under its own deadline. Do not add
|
|
131
|
+
volume deletion unless those volumes are disposable and owned by this task.
|
|
132
|
+
Keep secrets out of logs and artifacts.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-engineering-consolidation-guard
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when folding branches, restoring commits or re-landing reverted work. Not for deciding whether to continue inherited work (use cratis-engineering-inherited-work).
|
|
4
4
|
license: LICENSE
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -43,112 +43,23 @@ what lets CI find the sources without being told:
|
|
|
43
43
|
| Situation | Default | Recorded as |
|
|
44
44
|
| --- | --- | --- |
|
|
45
45
|
| Fold a pull request | `git merge --no-ff pr631` | a merge whose second parent is the folded tip |
|
|
46
|
-
| Restore commits | `git cherry-pick -x <sha>` | a `(cherry picked from commit <sha>)` line |
|
|
46
|
+
| Restore commits | `git cherry-pick -x <sha>` | a `(cherry picked from commit <sha>)` line; verify it after resolving conflicts |
|
|
47
47
|
| Re-land reverted work | `git revert <revert-sha>` | `This reverts commit <revert-sha>.` |
|
|
48
48
|
|
|
49
49
|
Choose cherry-pick over reverting the revert when only some of the original
|
|
50
50
|
commits come back; every change left out is then a finding that needs a
|
|
51
51
|
disposition.
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
A source is either a ref or a range `<from>..<ref>`. A bare ref means the change
|
|
56
|
-
since `merge-base(<base>, <ref>)`; the range means the change since
|
|
57
|
-
`merge-base(<from>, <ref>)`.
|
|
58
|
-
|
|
59
|
-
| Source | Argument |
|
|
60
|
-
| --- | --- |
|
|
61
|
-
| A folded pull request | `git fetch origin "refs/pull/631/head:pr631"`, then `pr631` |
|
|
62
|
-
| A merged pull request being re-landed, merge commit `M` | `M^1..M^2` |
|
|
63
|
-
| A single commit `C`, or a pull request that landed as one commit | `C^..C` |
|
|
64
|
-
| A branch commits were cherry-picked from | its head ref, or `C^..C` per commit |
|
|
65
|
-
|
|
66
|
-
Fetch the pull request's own head ref rather than its branch: `refs/pull/<n>/head`
|
|
67
|
-
survives the branch being deleted.
|
|
68
|
-
|
|
69
|
-
Work that already landed needs the range form. Its commits are ancestors of the
|
|
70
|
-
base, so `merge-base(<base>, <ref>)` is the tip itself and the comparison would
|
|
71
|
-
be empty; the script refuses that with exit `2` rather than reporting a pass.
|
|
72
|
-
|
|
73
|
-
Confirm a folded branch has not moved since it was fetched. When
|
|
74
|
-
`gh pr view 631 --json headRefOid --jq .headRefOid` differs from
|
|
75
|
-
`git rev-parse pr631`, fetch again and fold the new commits before verifying.
|
|
76
|
-
|
|
77
|
-
## Run the guard
|
|
78
|
-
|
|
79
|
-
Execute [scripts/verify-consolidation.sh](scripts/verify-consolidation.sh) inside
|
|
80
|
-
the repository, with the consolidation ref first and every source after it.
|
|
81
|
-
|
|
82
|
-
Requires git 2.28 or later (`git --version`); with an older git, run the three
|
|
83
|
-
checks below by hand.
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
guard=<skill-directory>/scripts/verify-consolidation.sh
|
|
87
|
-
git fetch origin
|
|
88
|
-
for n in 631 640 652; do git fetch origin "refs/pull/$n/head:pr$n"; done
|
|
89
|
-
"$guard" consolidate/backlog-filters pr631 pr640 pr652
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
A re-land of a merged pull request, given the original merge commit:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
landed=<original-merge-sha>
|
|
96
|
-
"$guard" reland/dashboard-counters "$landed^1..$landed^2"
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
Options: `--base <ref>` (default `origin/main`), `--spec-pattern <regex>` for a
|
|
100
|
-
repository whose specifications are not `for_*`/`when_*` folders,
|
|
101
|
-
`--allow-rewritten <sha>` and `--allow-spec-delta <n>` for dispositions, and
|
|
102
|
-
`--creation-factor <n>` for `git range-diff` pairing.
|
|
103
|
-
|
|
104
|
-
Before choosing sources by hand, list the ones history records and compare:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
"$guard" --discover consolidate/backlog-filters
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
A source on one list and not the other is a finding of its own: either a fold
|
|
111
|
-
that was not intended, or an intended one that never happened.
|
|
112
|
-
|
|
113
|
-
**Pass:** exit `0` with `0 finding(s)` and a nonzero path count. Exit `1` lists
|
|
114
|
-
findings. Exit `2` means it could not run (an unresolvable ref, or a source
|
|
115
|
-
with nothing to compare); that is never a pass.
|
|
116
|
-
After changing the script, run `"$guard" --self-test`;
|
|
117
|
-
it plants each kind of loss in a scratch repository and passes only when every
|
|
118
|
-
one is reported.
|
|
119
|
-
|
|
120
|
-
## Why commit pairing is not enough
|
|
121
|
-
|
|
122
|
-
`git range-diff` compares commits, not the resulting tree.
|
|
123
|
-
|
|
124
|
-
- **After a true merge, every folded commit is an ancestor of the
|
|
125
|
-
consolidation** and pairs with itself, however much the merge resolution
|
|
126
|
-
threw away. A re-land is the same: the original commits are already in the
|
|
127
|
-
base's history.
|
|
128
|
-
- **What matters is per path.** A file the source added must exist; a file it
|
|
129
|
-
modified must not still hold its pre-change content; a file it deleted must
|
|
130
|
-
not hold its pre-change content again. That content check is the one that sees
|
|
131
|
-
a resolution reverting a file.
|
|
132
|
-
- **Pairing still matters when commits are copied.** After cherry-picks, a
|
|
133
|
-
source commit with no identical patch in the consolidation was dropped or
|
|
134
|
-
rewritten. The script matches by `git patch-id` first, because the `-x` line
|
|
135
|
-
alone makes `range-diff` report every cherry-pick as changed.
|
|
136
|
-
- **Byte equality catches whole-file loss, not partial loss.** The script lists
|
|
137
|
-
every path that differs from the source tip as `review:`; read
|
|
138
|
-
`git diff <source-tip> <consolidation> -- <path>` for each one another source
|
|
139
|
-
or the base does not explain.
|
|
140
|
-
|
|
141
|
-
The specification ratchet covers what the other checks share a blind spot for:
|
|
142
|
-
the consolidation must carry at least as many specification files as the base
|
|
143
|
-
plus each source's net addition. It is a count, so read the content findings
|
|
144
|
-
first; they name the paths.
|
|
53
|
+
Use [source selection and the guard command](references/source-verification.md) for every consolidation. Read [verification details](references/verification-details.md) when interpreting findings or checking by hand.
|
|
145
54
|
|
|
146
55
|
## Disposition of every finding
|
|
147
56
|
|
|
148
57
|
Each finding gets exactly one disposition before the merge:
|
|
149
58
|
|
|
150
59
|
- **Restore it** in a new commit, for example
|
|
151
|
-
`git
|
|
60
|
+
`git restore --source=pr631 --worktree -- "$path"`, then review and commit.
|
|
61
|
+
Restore a whole file only if it does not overwrite legitimate combined changes.
|
|
62
|
+
Re-run the guard.
|
|
152
63
|
- **Accept it in history** when a rewritten commit differs only by conflict
|
|
153
64
|
resolution (after reading its range-diff), or when two sources added the same
|
|
154
65
|
specification path. Commit the disposition as a trailer, so CI honors it and
|
|
@@ -175,11 +86,11 @@ verification notes.
|
|
|
175
86
|
|
|
176
87
|
## Make it a required check
|
|
177
88
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
89
|
+
Run a trusted copy of the guard on every pull request. Discover sources from
|
|
90
|
+
head history, fail on exit `1` and `2`, and require the protected workflow or
|
|
91
|
+
trusted check source with no bypass for merging identities. Follow the
|
|
92
|
+
[required check recipe](references/ci-required-check.md) to keep the PR from
|
|
93
|
+
changing the verifier that judges it.
|
|
183
94
|
|
|
184
95
|
## Pitfalls
|
|
185
96
|
|
package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md
CHANGED
|
@@ -18,36 +18,40 @@ wrong sources, or read exit `2` as a pass. A required check removes all three:
|
|
|
18
18
|
inside the job instead.
|
|
19
19
|
- **It discovers the sources from history.** `--discover` reads merge parents
|
|
20
20
|
the base does not contain, `cherry-pick -x` lines and reverts of reverts. The
|
|
21
|
-
author does not have to
|
|
21
|
+
author does not have to supply a list, but discovery cannot recover history
|
|
22
|
+
the consolidation did not record.
|
|
22
23
|
- **It fails on `1` and on `2`.** A source that cannot be resolved or compared
|
|
23
24
|
fails the check; unknown is not pass. A `cherry-pick -x` of a commit that was
|
|
24
|
-
never pushed
|
|
25
|
-
|
|
25
|
+
never pushed or whose ref the checkout cannot fetch stays at `2`. Make the
|
|
26
|
+
source available under an authorized fetchable ref. No trailer clears it.
|
|
26
27
|
- **Dispositions live in history.** An accepted rewrite or specification delta
|
|
27
28
|
is a `Consolidation-Allow-Rewritten:` or `Consolidation-Allow-Spec-Delta:`
|
|
28
|
-
commit trailer, which the job honors and prints as `disposition:`.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
a reviewer reads each `disposition:` line, not only the consolidation's own
|
|
32
|
-
commits.
|
|
29
|
+
commit trailer, which the job honors and prints as `disposition:`. A green
|
|
30
|
+
run does not approve those exceptions. A reviewer must approve every
|
|
31
|
+
disposition, including ones carried in folded source commits.
|
|
33
32
|
- **Merging requires it.** A red or missing required check blocks
|
|
34
33
|
`gh pr merge`. With no bypass actor, `gh pr merge --admin` cannot get past it
|
|
35
34
|
either.
|
|
36
35
|
|
|
37
36
|
## Workflow
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
Put a reviewed copy of `../scripts/verify-consolidation.sh` in the target
|
|
39
|
+
repository's `scripts/` folder through a trusted bootstrap before requiring
|
|
40
|
+
this workflow. The required job extracts the copy from the exact PR base into
|
|
41
|
+
runner temporary storage. The head checkout is Git data only: do not run its
|
|
42
|
+
scripts, local actions, build, or self-test in this job. Treat a missing base
|
|
43
|
+
verifier as failure, not permission to use the head copy.
|
|
44
|
+
|
|
45
|
+
Keep the workflow definition in a separately protected repository. The example
|
|
46
|
+
is for a public repository on a GitHub-hosted runner and does not use a merge
|
|
47
|
+
queue. Test proposed verifier changes with `--self-test` in a separate,
|
|
48
|
+
unprivileged PR job; that job cannot satisfy the required guard.
|
|
44
49
|
|
|
45
50
|
```yaml
|
|
46
51
|
name: Consolidation guard
|
|
47
52
|
|
|
48
53
|
on:
|
|
49
54
|
pull_request:
|
|
50
|
-
types: [opened, synchronize, reopened]
|
|
51
55
|
|
|
52
56
|
concurrency:
|
|
53
57
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
@@ -61,32 +65,39 @@ jobs:
|
|
|
61
65
|
runs-on: ubuntu-latest
|
|
62
66
|
timeout-minutes: 15
|
|
63
67
|
steps:
|
|
64
|
-
-
|
|
68
|
+
- name: Check out head as data
|
|
69
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
65
70
|
with:
|
|
71
|
+
repository: ${{ github.event.pull_request.base.repo.full_name }}
|
|
66
72
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
67
73
|
fetch-depth: 0
|
|
74
|
+
persist-credentials: false
|
|
68
75
|
|
|
69
76
|
- name: Fetch pull request heads
|
|
70
77
|
# Cherry-pick and revert sources can live only on deleted branches; their pull request refs remain.
|
|
71
78
|
run: git fetch --no-tags origin '+refs/pull/*/head:refs/remotes/origin/pull/*'
|
|
72
79
|
|
|
73
|
-
- name:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
- name: Verify every folded and re-landed source survives
|
|
80
|
+
- name: Verify head history with the trusted base verifier
|
|
81
|
+
shell: bash
|
|
77
82
|
env:
|
|
78
|
-
|
|
83
|
+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
84
|
+
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
79
85
|
run: |
|
|
80
86
|
set -euo pipefail
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
87
|
+
[[ "$BASE_SHA" =~ ^[0-9a-f]{40}$ && "$HEAD_SHA" =~ ^[0-9a-f]{40}$ ]]
|
|
88
|
+
[[ "$(git rev-parse HEAD)" == "$HEAD_SHA" ]]
|
|
89
|
+
git cat-file -e "$BASE_SHA^{commit}" || git fetch --no-tags origin "$BASE_SHA"
|
|
90
|
+
tools=$(mktemp -d "$RUNNER_TEMP/consolidation-guard.XXXXXX")
|
|
91
|
+
guard="$tools/verify-consolidation.sh"
|
|
92
|
+
git show "$BASE_SHA:scripts/verify-consolidation.sh" > "$guard"
|
|
93
|
+
[[ -s "$guard" ]]
|
|
94
|
+
sources=$(bash "$guard" --discover --base "$BASE_SHA" "$HEAD_SHA")
|
|
95
|
+
if [[ -z "$sources" ]]; then
|
|
96
|
+
echo "No consolidation sources discovered in the checked head history."
|
|
84
97
|
exit 0
|
|
85
98
|
fi
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
# shellcheck disable=SC2086
|
|
89
|
-
scripts/verify-consolidation.sh --base "$BASE" HEAD $sources
|
|
99
|
+
mapfile -t source_refs <<< "$sources"
|
|
100
|
+
bash "$guard" --base "$BASE_SHA" "$HEAD_SHA" "${source_refs[@]}"
|
|
90
101
|
```
|
|
91
102
|
|
|
92
103
|
Notes on the choices:
|
|
@@ -94,28 +105,32 @@ Notes on the choices:
|
|
|
94
105
|
- `ref: ${{ github.event.pull_request.head.sha }}` checks out the branch as
|
|
95
106
|
pushed. The default pull request checkout is GitHub's synthetic merge with the
|
|
96
107
|
base, whose own merge commit would be discovered as a fold.
|
|
97
|
-
- `fetch-depth: 0` brings
|
|
98
|
-
|
|
108
|
+
- `fetch-depth: 0` brings full history for discovery and merge-base. Use the
|
|
109
|
+
event's base SHA rather than the tip of a moving branch.
|
|
99
110
|
- Fetching every pull request head costs time in a large repository. Drop that
|
|
100
111
|
step only if the repository never restores from deleted branches; an
|
|
101
112
|
unresolvable source then fails the check with exit `2`, which is the safe
|
|
102
113
|
direction.
|
|
103
|
-
- Keep this
|
|
104
|
-
|
|
114
|
+
- Keep this job read-only. Do not give it secrets or saved checkout credentials.
|
|
115
|
+
If a merge queue is enabled, add an equivalent `merge_group` check for that
|
|
116
|
+
event's revisions before requiring the workflow there.
|
|
105
117
|
- Repositories with specifications outside `for_*`/`when_*` folders pass
|
|
106
118
|
`--spec-pattern` to the verifying invocation.
|
|
107
119
|
|
|
108
120
|
## Make the check required
|
|
109
121
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
a
|
|
118
|
-
|
|
122
|
+
Use an organization or enterprise ruleset with **Require workflows to pass
|
|
123
|
+
before merging**. Select the protected source repository and this specific
|
|
124
|
+
workflow, apply it to the target branch, and give merging identities no bypass.
|
|
125
|
+
Restrict changes to both the workflow and the base verifier to trusted owners.
|
|
126
|
+
A required job name alone does not establish that the named job came from this
|
|
127
|
+
workflow. If the ruleset is unavailable, require a check from a trusted external
|
|
128
|
+
integration and restrict the expected check source to that integration; do not
|
|
129
|
+
substitute a same-named job that the PR can define.
|
|
130
|
+
|
|
131
|
+
Before enabling enforcement, exercise the gate on a clean consolidation and
|
|
132
|
+
one with a known missing source change. Confirm that changing the PR's verifier
|
|
133
|
+
or workflow does not alter the required result.
|
|
119
134
|
|
|
120
135
|
## What discovery cannot see
|
|
121
136
|
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Selecting sources and running the guard
|
|
2
|
+
|
|
3
|
+
## Name the sources
|
|
4
|
+
|
|
5
|
+
A source is either a ref or a range `<from>..<ref>`. A bare ref means the change
|
|
6
|
+
since `merge-base(<base>, <ref>)`; the range means the change since
|
|
7
|
+
`merge-base(<from>, <ref>)`.
|
|
8
|
+
|
|
9
|
+
| Source | Argument |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| A folded pull request | `git fetch origin "refs/pull/631/head:pr631"`, then `pr631` |
|
|
12
|
+
| A merged pull request being re-landed, merge commit `M` | `M^1..M^2` |
|
|
13
|
+
| A single commit `C`, or a pull request that landed as one commit | `C^..C` |
|
|
14
|
+
| A branch commits were cherry-picked from | its head ref, or `C^..C` per commit |
|
|
15
|
+
|
|
16
|
+
Fetch the pull request's own head ref rather than its branch: `refs/pull/<n>/head`
|
|
17
|
+
survives the branch being deleted.
|
|
18
|
+
|
|
19
|
+
Work that already landed needs the range form. Its commits are ancestors of the
|
|
20
|
+
base, so `merge-base(<base>, <ref>)` is the tip itself and the comparison would
|
|
21
|
+
be empty; the script refuses that with exit `2` rather than reporting a pass.
|
|
22
|
+
|
|
23
|
+
Confirm a folded branch has not moved since it was fetched. When
|
|
24
|
+
`gh pr view 631 --json headRefOid --jq .headRefOid` differs from
|
|
25
|
+
`git rev-parse pr631`, fetch again and fold the new commits before verifying.
|
|
26
|
+
|
|
27
|
+
## Run the guard
|
|
28
|
+
|
|
29
|
+
Execute [scripts/verify-consolidation.sh](../scripts/verify-consolidation.sh) inside
|
|
30
|
+
the repository, with the consolidation ref first and every source after it.
|
|
31
|
+
|
|
32
|
+
The guard needs Git with `range-diff` and `init -b` support (also used by the
|
|
33
|
+
self-test). If unavailable, use the [manual checks](verification-details.md).
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
guard=<skill-directory>/scripts/verify-consolidation.sh
|
|
37
|
+
git fetch origin
|
|
38
|
+
for n in 631 640 652; do git fetch origin "refs/pull/$n/head:pr$n"; done
|
|
39
|
+
"$guard" consolidate/backlog-filters pr631 pr640 pr652
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
A re-land of a merged pull request, given the original merge commit:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
landed=<original-merge-sha>
|
|
46
|
+
"$guard" reland/dashboard-counters "$landed^1..$landed^2"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Options: `--base <ref>` (default `origin/main`), `--spec-pattern <regex>` for a
|
|
50
|
+
repository whose specifications are not `for_*`/`when_*` folders,
|
|
51
|
+
`--allow-rewritten <sha>` and `--allow-spec-delta <n>` for dispositions, and
|
|
52
|
+
`--creation-factor <n>` for `git range-diff` pairing.
|
|
53
|
+
|
|
54
|
+
Before choosing sources by hand, list the ones history records and compare:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
"$guard" --discover consolidate/backlog-filters
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
A source on one list and not the other is a finding of its own: either a fold
|
|
61
|
+
that was not intended, or an intended one that never happened.
|
|
62
|
+
|
|
63
|
+
**Pass:** exit `0` with `0 finding(s)` and a nonzero path count. Exit `1` lists
|
|
64
|
+
findings. Exit `2` means it could not run (an unresolvable ref, or a source
|
|
65
|
+
with nothing to compare); that is never a pass.
|
|
66
|
+
After changing the script, run `"$guard" --self-test`;
|
|
67
|
+
it plants each kind of loss in a scratch repository and passes only when every
|
|
68
|
+
one is reported.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Consolidation verification details
|
|
2
|
+
|
|
3
|
+
## Why commit pairing is not enough
|
|
4
|
+
|
|
5
|
+
`git range-diff` compares commits, not the resulting tree.
|
|
6
|
+
|
|
7
|
+
- **After a true merge, every folded commit is an ancestor of the
|
|
8
|
+
consolidation** and pairs with itself, however much the merge resolution
|
|
9
|
+
threw away. A re-land is the same: the original commits are already in the
|
|
10
|
+
base's history.
|
|
11
|
+
- **What matters is per path.** A file the source added must exist; a file it
|
|
12
|
+
modified must not still hold its pre-change content; a file it deleted must
|
|
13
|
+
not hold its pre-change content again. That content check is the one that sees
|
|
14
|
+
a resolution reverting a file.
|
|
15
|
+
- **Pairing still matters when commits are copied.** After cherry-picks, a
|
|
16
|
+
source commit with no identical patch in the consolidation was dropped or
|
|
17
|
+
rewritten. The script matches by `git patch-id` first, because the `-x` line
|
|
18
|
+
alone makes `range-diff` report every cherry-pick as changed.
|
|
19
|
+
- **Byte equality catches whole-file loss, not partial loss.** The script lists
|
|
20
|
+
every path that differs from the source tip as `review:`; read
|
|
21
|
+
`git diff <source-tip> <consolidation> -- <path>` for each one another source
|
|
22
|
+
or the base does not explain.
|
|
23
|
+
|
|
24
|
+
The specification ratchet covers what the other checks share a blind spot for:
|
|
25
|
+
the consolidation must carry at least as many specification files as the base
|
|
26
|
+
plus each source's net addition. It is a count, so read the content findings
|
|
27
|
+
first; they name the paths.
|
|
28
|
+
|
|
29
|
+
## Check by hand
|
|
30
|
+
|
|
31
|
+
For each source, resolve the source tip and its fork with the source rules in
|
|
32
|
+
the entry point. Compare the fork with the source tip using `git diff --name-status`
|
|
33
|
+
and then compare the source tip with the candidate on every changed path.
|
|
34
|
+
Use `git range-diff` for rewritten commits when available; otherwise compare
|
|
35
|
+
the source patches with the candidate commits. Count specification files at the
|
|
36
|
+
candidate and base, and compare the net change with the sum of source deltas.
|
|
37
|
+
Inspect partial differences and document each disposition; an empty comparison
|
|
38
|
+
does not prove that a source survived.
|