checkwright 0.22.0 → 0.23.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/README.md +687 -90
- package/lib/common/lock.sh +38 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +49 -33
- package/lib/diff.sh +64 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +23 -31
- package/lib/uninstall.sh +212 -0
- package/lib/update.sh +34 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +1 -0
- package/payload/canon-kit/SPEC.md +410 -58
- package/payload/canon-kit/checks/check-amendment-queue.sh +1 -0
- package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
- package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
- package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +1 -0
- package/payload/canon-kit/checks/check-install-claim.gate +3 -0
- package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +1 -0
- package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
- package/payload/canon-kit/checks/check-md-refs.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
- package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +1 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +1 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
- package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
- package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
- package/payload/canon-kit/lib/spec.sh +91 -62
- package/payload/canon-kit/smoke/install.sh +1 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +4 -1
- package/payload/context-kit/SPEC.md +143 -10
- package/payload/context-kit/bin/env-probe.sh +19 -6
- package/payload/context-kit/checks/check-brevity.sh +1 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
- package/payload/context-kit/checks/check-memory-off.sh +1 -0
- package/payload/context-kit/checks/check-settings-paths.sh +94 -0
- package/payload/context-kit/checks/check-settings-pins.sh +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +12 -1
- package/payload/context-kit/smoke/install.sh +1 -0
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +116 -13
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
- package/payload/delegation-kit/templates/agent-execution.md +38 -14
- package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
- package/payload/doctrine-kit/DOCTRINE.md +86 -12
- package/payload/doctrine-kit/README.md +7 -3
- package/payload/doctrine-kit/SPEC.md +102 -9
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +82 -2
- package/payload/doctrine-kit/smoke/install.sh +90 -0
- package/payload/drift-kit/SPEC.md +13 -4
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/smoke/install.sh +28 -0
- package/payload/evidence-kit/checks/check-battery-roster.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +1 -0
- package/payload/gate-sdk/README.md +13 -0
- package/payload/gate-sdk/SPEC.md +2611 -151
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/port-blockers.sh +445 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +26 -5
- package/payload/gate-sdk/bin/run-gates.sh +8 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +52 -4
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
- package/payload/gate-sdk/checks/check-core-files.sh +1 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +2 -1
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +33 -3
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +36 -5
- package/payload/gate-sdk/checks/check-graph.sh +1 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-identity.sh +1 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +1 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +3 -2
- package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -0
- package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +111 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +65 -4
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +111 -1
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
- package/payload/gate-sdk/lib/gate.sh +135 -11
- package/payload/gate-sdk/lib/inject.sh +25 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
- package/payload/gate-sdk/smoke/install.sh +42 -0
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +278 -62
- package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +49 -7
- package/payload/guard-kit/lib/guard.sh +276 -54
- package/payload/guard-kit/templates/close-triage.md +5 -5
- package/payload/guard-kit/templates/settings-hooks.json +7 -1
- package/payload/lifecycle-kit/README.md +11 -1
- package/payload/lifecycle-kit/SPEC.md +441 -37
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +126 -10
- package/payload/lifecycle-kit/bin/file-gap.sh +27 -10
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +1 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -2
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +4 -0
- package/payload/lifecycle-kit/smoke/install.sh +67 -4
- package/payload/lifecycle-kit/templates/lead.md +36 -0
- package/payload/lifecycle-kit/templates/stages/close.md +30 -11
- package/payload/lifecycle-kit/templates/stages/scope.md +9 -4
- package/payload/lifecycle-kit/templates/stages/spec.md +5 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +3 -1
- package/payload/queue-kit/SPEC.md +123 -3
- package/payload/queue-kit/bin/queue-counts.sh +35 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
- package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +1 -0
- package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
- package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +1 -0
- package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
- package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
- package/payload/queue-kit/checks/check-task-names.gate +3 -0
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/lib/queue.sh +4 -19
- package/payload/site-kit/SPEC.md +23 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/profiles.list +36 -8
- package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
- package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
- package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
- package/payload/canon-kit/checks/check-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
- package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
- package/payload/canon-kit/checks/check-md-refs.sh +0 -128
- package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
- package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
- package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
- package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
- package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
- package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
- package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -106
- package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
- package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
- package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
- package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
- package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
- package/payload/queue-kit/checks/check-task-names.sh +0 -128
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=kit:checks/*.sh,scripts/*.sh,scripts/gates.list,native/src/*.rs,native/src/gates/*.rs dir=one valve=none tier=precommit trigger=*
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: gate-sdk/SPEC.md §check-reads-couples — every statically resolvable recursive walk in a registered gate has its tracked read set covered by the gate's expanded couples; the undecidable remainder is skipped-and-counted
|
|
4
5
|
set -uo pipefail
|
|
5
6
|
|
|
@@ -140,12 +141,12 @@ for src in "${sources[@]+"${sources[@]}"}"; do
|
|
|
140
141
|
# this shell parser, so the substrate reports them instead: `--reads` answers what the
|
|
141
142
|
# binary walks and the coverage assertion below is unchanged.
|
|
142
143
|
if [[ "$src" == *.gate ]]; then
|
|
143
|
-
bin="$
|
|
144
|
+
bin="$(gate_native_bin)"
|
|
144
145
|
if [[ ! -x "$bin" ]]; then
|
|
145
146
|
echo "check-reads-couples: $src dispatches to the native binary, but $bin is absent" >&2
|
|
146
147
|
echo "or not executable — the declared read set cannot be read, so the coverage" >&2
|
|
147
148
|
echo "assertion could not run; treating as failure (not clean)." >&2
|
|
148
|
-
echo " help: build it (
|
|
149
|
+
echo " help: build it (bash gate-sdk/bin/build-native.sh), or" >&2
|
|
149
150
|
echo " install the prebuilt artifact, then re-run." >&2
|
|
150
151
|
exit 2
|
|
151
152
|
fi
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/root-allowlist.list dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: gate-sdk/SPEC.md §check-root-tiering — the repo root holds only allowlisted orientation entries; workflow machinery stays under the configured dirs
|
|
4
5
|
#
|
|
5
6
|
# usage: check-root-tiering.sh [allowlist-file] [scan-root]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/*.sh,kit:*.sh dir=one valve=none tier=precommit
|
|
3
|
+
# install: zero-config
|
|
3
4
|
# spec: gate-sdk/SPEC.md §check-shellcheck — ShellCheck lint of the gate family at -S warning (the self-lint contract)
|
|
4
5
|
#
|
|
5
6
|
# usage: check-shellcheck.sh [dir...]
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:smoke/install.sh,kit:smoke/violation.sh dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-smoke-entry-guard — every mutating smoke script (install.sh, violation.sh) carries the ${SMOKE_KIT_ROOT:?} entry-point guard so a bare run refuses instead of mutating the caller's tree
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=*/templates/*.sh,scripts/*.sh dir=bi valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: gate-sdk/SPEC.md §check-template-copy-parity — a kit template and its vendored consumer copy agree on their declared contract surface, with copy-side additions declared
|
|
4
5
|
#
|
|
5
6
|
# usage: check-template-copy-parity.sh [root]
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:templates/*.list,kit:*/*.sh dir=bi valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-template-registry-parity — a kit's shipped `.list` registry template names exactly the artifacts of its sibling directory, both directions
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:gate-tests/*.test.sh,kit:smoke/install.sh,kit:smoke/violation.sh dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-test-hermetic — two assertions (A) every bespoke gate-tests/*.test.sh sources lib/test-hermetic.sh or carries a `# hermetic-exempt:` marker; (B) a credential-managing smoke script pins every own-kit bin call ("$SMOKE_KIT_ROOT/bin/*") to a *_CRED_FILE path so it cannot resolve the ambient ~/.claude credential
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/msg-patterns.list dir=one valve=none tier=precommit trigger=*
|
|
3
|
+
# install: zero-config
|
|
3
4
|
# spec: gate-sdk/SPEC.md §check-tree-terms — no tracked file matches the banned-pattern set (the tracked-files half of the leak guard; the pattern files and their templates are self-exempt)
|
|
4
5
|
#
|
|
5
6
|
# usage: check-tree-terms.sh [scan-root] [pattern-file...]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=.workflow/*,.gitignore dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: gate-sdk/SPEC.md §The workflow directory — every workflow-dir member is tracked or ignored, and every tracked member opens with a '# contract: ' header carrying a ruled payload
|
|
4
5
|
#
|
|
5
6
|
# usage: check-workflow-tiering.sh [scan-root] (default '.')
|
|
@@ -14,7 +15,7 @@ ROOT="${1:-.}"
|
|
|
14
15
|
git -C "$ROOT" rev-parse --git-dir >/dev/null 2>&1 || {
|
|
15
16
|
echo "check-workflow-tiering: $ROOT is not a git repository — the tracked/ignored partition is unreadable" >&2; exit 2; }
|
|
16
17
|
|
|
17
|
-
WF="$
|
|
18
|
+
WF="$GATE_SDK_WORKFLOW_DIR"
|
|
18
19
|
[[ -d "$ROOT/$WF" ]] || {
|
|
19
20
|
echo "check-workflow-tiering: workflow directory not found: $ROOT/$WF" >&2; exit 2; }
|
|
20
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
GATE-ASSERTIONS: clean (2 enumerated contract(s) coupled)
|
|
1
|
+
GATE-ASSERTIONS: clean (2 of 2 enumerated contract(s) coupled)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
2
|
+
# no-fixture: fixture descriptor (scanned as text): a .gate-dispatched no-fixture member whose implementation module emits neither contract line
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-gate-output — the corpus follows the rule to the implementation module
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Fixture module (scanned as text, never compiled): passes silently with no
|
|
2
|
+
// machine-keyable success line and no help: remedy. The descriptor beside it carries
|
|
3
|
+
// the '# no-fixture:' opt-out, so a reader that stopped at the descriptor — or kept the
|
|
4
|
+
// shell emitter alternation, which matches nothing here — would report clean.
|
|
5
|
+
pub fn run() -> i32 {
|
|
6
|
+
0
|
|
7
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
2
|
+
# no-fixture: fixture descriptor (scanned as text): a .gate-dispatched no-fixture member, whose output contract lives in its implementation module rather than in this file
|
|
3
|
+
# spec: gate-sdk/SPEC.md §check-gate-output — the corpus follows the rule to the implementation module
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
GATE-OUTPUT: clean
|
|
2
|
-
|
|
2
|
+
2 source-grepped as no-fixture members
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Fixture module (scanned as text, never compiled): the implementation half of a
|
|
2
|
+
// .gate-dispatched no-fixture member, emitting a conforming machine-keyable success
|
|
3
|
+
// line and a help: remedy in the Rust idiom — check-gate-output must ACCEPT.
|
|
4
|
+
pub fn run() -> i32 {
|
|
5
|
+
if false {
|
|
6
|
+
println!(" help: nothing to fix in the fixture");
|
|
7
|
+
return 1;
|
|
8
|
+
}
|
|
9
|
+
println!("NATIVE-SAMPLE: clean (nothing to check in the fixture)");
|
|
10
|
+
0
|
|
11
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Direct unit test of check-gate-output's out-of-reach branch — the one verdict its
|
|
3
|
+
# fixture pair cannot hold. Both cases of that pair ship a crate dir (they must: the
|
|
4
|
+
# pair's whole job is proving the module-grep arm accepts and rejects), so neither can
|
|
5
|
+
# also stand up the tree where the crate is absent. That tree is not hypothetical: it
|
|
6
|
+
# is every consumer, because native/ is not a kit root and the payload vendors kit
|
|
7
|
+
# roots only, so a vendored .gate member's implementation module is never delivered.
|
|
8
|
+
# It also holds the two trees that decide what "the crate is absent" means: one carrying
|
|
9
|
+
# the binary at its default path under the crate directory (out of reach), and one
|
|
10
|
+
# carrying a manifest but no gates module at all (red).
|
|
11
|
+
#
|
|
12
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
13
|
+
set -uo pipefail
|
|
14
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
15
|
+
|
|
16
|
+
SDK="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
17
|
+
GATE="$SDK/checks/check-gate-output.sh"
|
|
18
|
+
|
|
19
|
+
fails=0
|
|
20
|
+
TMP="$(mktemp -d)"
|
|
21
|
+
trap 'rm -rf "$TMP"' EXIT
|
|
22
|
+
|
|
23
|
+
# A consumer-shaped tree: the descriptor vendors, the crate does not exist.
|
|
24
|
+
mkdir -p "$TMP/consumer"
|
|
25
|
+
printf 'check-vendored-sample\n' > "$TMP/consumer/gates.list"
|
|
26
|
+
cat > "$TMP/consumer/check-vendored-sample.gate" <<'EOF'
|
|
27
|
+
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
28
|
+
# no-fixture: a .gate-dispatched no-fixture member whose implementation module this tree does not carry
|
|
29
|
+
# spec: gate-sdk/SPEC.md §check-gate-output — the out-of-reach branch
|
|
30
|
+
EOF
|
|
31
|
+
|
|
32
|
+
out="$(cd "$TMP/consumer" && GATE_SDK_KIT_DIRS="$SDK" bash "$GATE" . 2>&1)"; rc=$?
|
|
33
|
+
if [[ "$rc" -ne 0 ]]; then
|
|
34
|
+
echo " FAIL: a member whose crate is absent reddened (exit $rc) — every consumer's battery"
|
|
35
|
+
printf ' %s\n' "$out"
|
|
36
|
+
fails=$((fails + 1))
|
|
37
|
+
fi
|
|
38
|
+
if ! grep -q 'declared out of reach' <<<"$out"; then
|
|
39
|
+
echo " FAIL: the omission was not declared in the success line — a silently shrinking count"
|
|
40
|
+
printf ' %s\n' "$out"
|
|
41
|
+
fails=$((fails + 1))
|
|
42
|
+
fi
|
|
43
|
+
if ! grep -q 'check-vendored-sample' <<<"$out"; then
|
|
44
|
+
echo " FAIL: the out-of-reach member was not named, so the declaration says nothing"
|
|
45
|
+
printf ' %s\n' "$out"
|
|
46
|
+
fails=$((fails + 1))
|
|
47
|
+
fi
|
|
48
|
+
if ! grep -q '0 source-grepped as no-fixture members' <<<"$out"; then
|
|
49
|
+
echo " FAIL: an out-of-reach member was still counted as source-grepped"
|
|
50
|
+
printf ' %s\n' "$out"
|
|
51
|
+
fails=$((fails + 1))
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
# spec: gate-sdk/SPEC.md §check-gate-output — the regression case for "why the manifest
|
|
55
|
+
# and not the directory": a consumer that holds only the gate binary still has a native/
|
|
56
|
+
# directory, because GATE_SDK_NATIVE_BIN defaults inside the crate path. Under a
|
|
57
|
+
# directory-presence probe this tree reddened and no consumer could clear it.
|
|
58
|
+
cp -R "$TMP/consumer" "$TMP/binonly"
|
|
59
|
+
mkdir -p "$TMP/binonly/native/target/release"
|
|
60
|
+
: > "$TMP/binonly/native/target/release/checkwright-gates"
|
|
61
|
+
out="$(cd "$TMP/binonly" && GATE_SDK_KIT_DIRS="$SDK" bash "$GATE" . 2>&1)"; rc=$?
|
|
62
|
+
if [[ "$rc" -ne 0 ]]; then
|
|
63
|
+
echo " FAIL: a tree holding only the binary reddened (exit $rc) — the crate path is where"
|
|
64
|
+
echo " the artifact lands, so directory presence is not crate presence"
|
|
65
|
+
printf ' %s\n' "$out"
|
|
66
|
+
fails=$((fails + 1))
|
|
67
|
+
fi
|
|
68
|
+
if ! grep -q 'declared out of reach' <<<"$out"; then
|
|
69
|
+
echo " FAIL: the binary-only tree was not declared out of reach"
|
|
70
|
+
printf ' %s\n' "$out"
|
|
71
|
+
fails=$((fails + 1))
|
|
72
|
+
fi
|
|
73
|
+
|
|
74
|
+
# The same tree WITH a crate present and the module missing is the half-landed port,
|
|
75
|
+
# and it must red — this is what keeps the branch above from being an escape hatch.
|
|
76
|
+
cp -R "$TMP/consumer" "$TMP/upstream"
|
|
77
|
+
mkdir -p "$TMP/upstream/native/src/gates"
|
|
78
|
+
printf '[package]\nname = "checkwright-gates"\n' > "$TMP/upstream/native/Cargo.toml"
|
|
79
|
+
out="$(cd "$TMP/upstream" && GATE_SDK_KIT_DIRS="$SDK" bash "$GATE" . 2>&1)"; rc=$?
|
|
80
|
+
if [[ "$rc" -ne 1 ]]; then
|
|
81
|
+
echo " FAIL: a crate present with no module for a dispatching member did not red (exit $rc)"
|
|
82
|
+
printf ' %s\n' "$out"
|
|
83
|
+
fails=$((fails + 1))
|
|
84
|
+
fi
|
|
85
|
+
if ! grep -q 'no module at native/src/gates/vendored_sample.rs' <<<"$out"; then
|
|
86
|
+
echo " FAIL: the red did not name the module path the name convention derives"
|
|
87
|
+
printf ' %s\n' "$out"
|
|
88
|
+
fails=$((fails + 1))
|
|
89
|
+
fi
|
|
90
|
+
|
|
91
|
+
# spec: gate-sdk/SPEC.md §check-gate-output — "why not the gates module directory either":
|
|
92
|
+
# a crate whose gates module is gone entirely must stay red rather than going quietly out
|
|
93
|
+
# of reach. This is the case a src/gates/ probe would have converted into a false green,
|
|
94
|
+
# so it is asserted rather than left to the SPEC's argument.
|
|
95
|
+
cp -R "$TMP/consumer" "$TMP/gutted"
|
|
96
|
+
mkdir -p "$TMP/gutted/native"
|
|
97
|
+
printf '[package]\nname = "checkwright-gates"\n' > "$TMP/gutted/native/Cargo.toml"
|
|
98
|
+
out="$(cd "$TMP/gutted" && GATE_SDK_KIT_DIRS="$SDK" bash "$GATE" . 2>&1)"; rc=$?
|
|
99
|
+
if [[ "$rc" -ne 1 ]]; then
|
|
100
|
+
echo " FAIL: a crate whose gates module is absent did not red (exit $rc) — crate presence"
|
|
101
|
+
echo " must not be inferred from the module set it happens to carry"
|
|
102
|
+
printf ' %s\n' "$out"
|
|
103
|
+
fails=$((fails + 1))
|
|
104
|
+
fi
|
|
105
|
+
|
|
106
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
107
|
+
echo "check-gate-output.test: $fails assertion(s) failed"
|
|
108
|
+
exit 1
|
|
109
|
+
fi
|
|
110
|
+
echo "check-gate-output.test: ok (out-of-reach declared, binary-only out of reach, missing-module red, gutted-crate red)"
|
|
111
|
+
exit 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
GATE-SUBSTRATE-PARITY: clean
|
|
2
|
-
1 descriptor(s) in parity with the 2-subcommand roster, 1 reference-only
|
|
2
|
+
1 descriptor(s) in parity with the 2-subcommand roster (2 in scope, 0 owned by a kit this tree did not vendor, owner column unavailable), 1 reference-only
|
|
3
3
|
1 substrate-sensitive member(s) all dispositioned
|
|
4
4
|
1 implementation source(s) free of manifest-class annotation
|
|
5
5
|
1 kit root(s) scanned for an implementation sibling, crate root crate outside every kit root
|
|
@@ -34,9 +34,11 @@ cat > "$SANDBOX/stub-bin" <<'EOF'
|
|
|
34
34
|
exit 2
|
|
35
35
|
EOF
|
|
36
36
|
# A binary carrying the fixture's descriptors too, for the cases where one dispatches.
|
|
37
|
+
# This one speaks the owner column; stub-bin above deliberately does not, so the
|
|
38
|
+
# one-column fallback is exercised by a real run rather than asserted in prose.
|
|
37
39
|
cat > "$SANDBOX/stub-bin-full" <<'EOF'
|
|
38
40
|
#!/usr/bin/env bash
|
|
39
|
-
[[ "${1:-}" == --list ]] && {
|
|
41
|
+
[[ "${1:-}" == --list ]] && { printf 'check-ported\tkitroot\ncheck-vendored\tkitroot\ncheck-reference\tkitroot\n'; exit 0; }
|
|
40
42
|
exit 2
|
|
41
43
|
EOF
|
|
42
44
|
chmod +x "$SANDBOX/stub-bin" "$SANDBOX/stub-bin-full"
|
|
@@ -63,7 +65,7 @@ expect() { # expect <label> <want-rc> <substring> <got-rc> <output>
|
|
|
63
65
|
# a stranded implementation — the half a descriptor-count guard would blank out.
|
|
64
66
|
printf 'check-alpha\n' > "$SANDBOX/scripts/gates.list"
|
|
65
67
|
out="$(run ./stub-bin)"; rc=$?
|
|
66
|
-
expect no-desc-binary 0 '0 descriptor(s) in parity with the 1-subcommand roster, 1 reference-only' "$rc" "$out"
|
|
68
|
+
expect no-desc-binary 0 '0 descriptor(s) in parity with the 1-subcommand roster (1 in scope, 0 owned by a kit this tree did not vendor, owner column unavailable), 1 reference-only' "$rc" "$out"
|
|
67
69
|
|
|
68
70
|
# --- no descriptors, no binary: clean, and it says why the roster went unread ---
|
|
69
71
|
out="$(run ./nonexistent-bin)"; rc=$?
|
|
@@ -94,7 +96,7 @@ expect registered-no-binary 2 'registered member(s) dispatch to it' "$rc" "$out"
|
|
|
94
96
|
# must stay quiet: declaring platform support is the publishing tree's act, and a
|
|
95
97
|
# consumer receives kit roots and an artifact but never the crate.
|
|
96
98
|
out="$(run ./stub-bin-full)"; rc=$?
|
|
97
|
-
expect consumer-with-binary 0 '2 descriptor(s) in parity with the 3-subcommand roster, 1 reference-only' "$rc" "$out"
|
|
99
|
+
expect consumer-with-binary 0 '2 descriptor(s) in parity with the 3-subcommand roster (3 in scope, 0 owned by a kit this tree did not vendor, owner column scoped), 1 reference-only' "$rc" "$out"
|
|
98
100
|
if grep -qF 'no target roster' <<<"$out"; then
|
|
99
101
|
echo " FAIL [consumer-with-binary-roster]: assertion F red in a tree that builds nothing: $out"
|
|
100
102
|
fails=$((fails + 1))
|
|
@@ -115,9 +117,68 @@ out="$( cd "$PUB" && env GATE_SDK_KIT_DIRS=kitroot GATE_SDK_NATIVE_BIN=./stub-bi
|
|
|
115
117
|
"$GATE" scripts conservation.md 2>&1 )"; rc=$?
|
|
116
118
|
expect publishing-tree-no-roster 1 'no target roster' "$rc" "$out"
|
|
117
119
|
|
|
120
|
+
# --- the subset vendoring: descriptors for one kit, a binary carrying two kits' ---
|
|
121
|
+
# Every consumer that vendors fewer kits than the shared binary carries subcommands
|
|
122
|
+
# for, which is every consumer once a second kit ports. A subcommand whose owning kit
|
|
123
|
+
# is absent is not a stranded implementation; it is out of scope, counted, and said so.
|
|
124
|
+
SUB="$SANDBOX/subset"
|
|
125
|
+
mkdir -p "$SUB/scripts" "$SUB/kitroot/checks"
|
|
126
|
+
cp "$SANDBOX/conservation.md" "$SUB/"
|
|
127
|
+
printf '%s\n' "$DESC" > "$SUB/kitroot/checks/check-vendored.gate"
|
|
128
|
+
printf 'check-vendored\n' > "$SUB/scripts/gates.list"
|
|
129
|
+
cat > "$SUB/stub-bin-subset" <<'EOF'
|
|
130
|
+
#!/usr/bin/env bash
|
|
131
|
+
[[ "${1:-}" == --list ]] && { printf 'check-vendored\tkitroot\ncheck-foreign\totherkit\n'; exit 0; }
|
|
132
|
+
exit 2
|
|
133
|
+
EOF
|
|
134
|
+
cat > "$SUB/stub-bin-subset-orphan" <<'EOF'
|
|
135
|
+
#!/usr/bin/env bash
|
|
136
|
+
[[ "${1:-}" == --list ]] && { printf 'check-vendored\tkitroot\ncheck-orphan\tkitroot\n'; exit 0; }
|
|
137
|
+
exit 2
|
|
138
|
+
EOF
|
|
139
|
+
# The same subset roster from a binary predating the owner column — the fallback's own
|
|
140
|
+
# subject, and the proof that the case below is clean because of the scoping rather
|
|
141
|
+
# than for some other reason the sandbox happens to supply.
|
|
142
|
+
cat > "$SUB/stub-bin-subset-flat" <<'EOF'
|
|
143
|
+
#!/usr/bin/env bash
|
|
144
|
+
[[ "${1:-}" == --list ]] && { printf 'check-vendored\ncheck-foreign\n'; exit 0; }
|
|
145
|
+
exit 2
|
|
146
|
+
EOF
|
|
147
|
+
chmod +x "$SUB/stub-bin-subset" "$SUB/stub-bin-subset-orphan" "$SUB/stub-bin-subset-flat"
|
|
148
|
+
|
|
149
|
+
run_subset() { # run_subset <bin>
|
|
150
|
+
( cd "$SUB" && env GATE_SDK_KIT_DIRS=kitroot GATE_SDK_NATIVE_BIN="$1" \
|
|
151
|
+
GATE_SDK_NATIVE_CRATE=crate GATE_SDK_NATIVE_SRC=impl \
|
|
152
|
+
"$GATE" scripts conservation.md 2>&1 )
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
out="$(run_subset ./stub-bin-subset)"; rc=$?
|
|
156
|
+
expect subset-vendoring 0 '1 descriptor(s) in parity with the 2-subcommand roster (1 in scope, 1 owned by a kit this tree did not vendor, owner column scoped), 0 reference-only' "$rc" "$out"
|
|
157
|
+
|
|
158
|
+
# --- its near miss: the in-scope kit is the one missing a descriptor ---
|
|
159
|
+
# The scoping must narrow what the assertion speaks for and nothing else. A rule that
|
|
160
|
+
# scoped by "no descriptor" rather than by owner passes the case above and this one too.
|
|
161
|
+
out="$(run_subset ./stub-bin-subset-orphan)"; rc=$?
|
|
162
|
+
expect subset-near-miss 1 "the binary carries 'check-orphan' with no check-orphan.gate descriptor" "$rc" "$out"
|
|
163
|
+
|
|
164
|
+
# --- the fallback is a return to today's behavior, never a false green ---
|
|
165
|
+
# The identical subset roster from a one-column binary reds on the foreign subcommand,
|
|
166
|
+
# which is exactly what this gate did before the column existed.
|
|
167
|
+
out="$(run_subset ./stub-bin-subset-flat)"; rc=$?
|
|
168
|
+
expect subset-fallback-reds 1 "the binary carries 'check-foreign' with no check-foreign.gate descriptor" "$rc" "$out"
|
|
169
|
+
|
|
170
|
+
# --- the other direction stays unrestricted under the scoped path ---
|
|
171
|
+
# The obvious implementation restricts one loop and accidentally restricts both. A
|
|
172
|
+
# vendored descriptor is in scope by definition, so a descriptor naming no subcommand
|
|
173
|
+
# reds whatever the owner column says — proved here, not reasoned about: the pair's own
|
|
174
|
+
# bad/ case reaches this finding only through a one-column binary.
|
|
175
|
+
printf '%s\n' "$DESC" > "$SUB/kitroot/checks/check-extra.gate"
|
|
176
|
+
out="$(run_subset ./stub-bin-subset)"; rc=$?
|
|
177
|
+
expect subset-descriptor-half 1 'descriptor names no subcommand: check-extra.gate' "$rc" "$out"
|
|
178
|
+
|
|
118
179
|
if [[ "$fails" -gt 0 ]]; then
|
|
119
180
|
echo "check-gate-substrate-parity.test.sh: $fails case(s) failed"
|
|
120
181
|
exit 1
|
|
121
182
|
fi
|
|
122
|
-
echo "check-gate-substrate-parity.test.sh: clean (descriptor configurations: none with a binary, none without, present-but-none-dispatching with neither binary nor roster, a registered dispatch with no binary, a consumer dispatching to a placed binary with no crate,
|
|
183
|
+
echo "check-gate-substrate-parity.test.sh: clean (descriptor configurations: none with a binary, none without, present-but-none-dispatching with neither binary nor roster, a registered dispatch with no binary, a consumer dispatching to a placed binary with no crate, the publishing counterpart that still reds, a subset vendoring whose binary carries a second kit's subcommand, its near miss where the in-scope kit is the one missing a descriptor, that same subset roster from a one-column binary, which still reds, and a vendored descriptor naming no subcommand under the scoped path — 12 assertions over 10 cases, two of them driving a single-column binary so the owner-column fallback is run rather than asserted)"
|
|
123
184
|
exit 0
|
package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=scripts/alpha.list dir=one valve=none tier=precommit
|
|
3
|
+
# install: zero-config
|
|
4
|
+
# spec: alpha-kit/SPEC.md §check-alpha — declares zero-config, so it reaches an adopter at install, yet the kit's own smoke never registers it
|
|
5
|
+
set -uo pipefail
|
|
6
|
+
exit 0
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Same synthetic-tree steer as good/, with one instance of each assertion:
|
|
2
|
+
# check-delta ships no declaration (A), check-epsilon declares a value outside
|
|
3
|
+
# the closed vocabulary (A), check-alpha declares zero-config while alpha-kit's
|
|
4
|
+
# smoke registers nothing (B), and the stand-in recipe carries literal gate
|
|
5
|
+
# names (C).
|
|
6
|
+
.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
check-delta.sh: 0 '# install:' line(s) where a gate declares exactly one
|
package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# Fixture stand-in carrying the second copy the derivation replaced: a literal
|
|
3
|
+
# per-kit roster in the installer, which a kit adding a gate can never update.
|
|
4
|
+
recipe_gates() { # $1 = kit payload dir, $2 = profile
|
|
5
|
+
case "${1##*/}" in
|
|
6
|
+
alpha-kit) printf '%s\n' check-alpha check-delta ;;
|
|
7
|
+
*) : ;;
|
|
8
|
+
esac
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# Fixture config: make the sandbox kit the kit root, so gate_kit_roots
|
|
3
|
+
# resolves to this case dir (auto-sourced by lib/gate.sh at cwd) rather than
|
|
4
|
+
# the real repo. See gate-sdk/SPEC.md §Layout and configuration.
|
|
5
|
+
GATE_SDK_KIT_DIRS="alpha-kit"
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Anchor the sweep at this case dir: gate-sdk-config.sh (auto-sourced at cwd)
|
|
2
|
+
# names the synthetic kit via GATE_SDK_KIT_DIRS, and the positional root is what
|
|
3
|
+
# the relative kit root and the installer recipe path both resolve against.
|
|
4
|
+
# alpha-kit declares all three vocabulary values, its one zero-config member is
|
|
5
|
+
# registered in its smoke roster, and the stand-in recipe carries no gate name.
|
|
6
|
+
.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
INSTALL-DISPOSITION: clean
|
package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# Fixture stand-in for the installer's recipe module: the roster is derived from
|
|
3
|
+
# each gate's declared disposition, so no gate name is written here.
|
|
4
|
+
recipe_gates() { # $1 = kit payload dir, $2 = profile
|
|
5
|
+
local pay="$1" f
|
|
6
|
+
for f in "$pay"/checks/check-*.sh; do
|
|
7
|
+
[[ -e "$f" ]] || continue
|
|
8
|
+
printf '%s\n' "$f"
|
|
9
|
+
done
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# Fixture config: make the sandbox kit the kit root, so gate_kit_roots
|
|
3
|
+
# resolves to this case dir (auto-sourced by lib/gate.sh at cwd) rather than
|
|
4
|
+
# the real repo. See gate-sdk/SPEC.md §Layout and configuration.
|
|
5
|
+
GATE_SDK_KIT_DIRS="alpha-kit"
|
|
@@ -12,7 +12,6 @@ set -uo pipefail
|
|
|
12
12
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
13
13
|
|
|
14
14
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # gate-sdk/
|
|
15
|
-
GATE="$DIR/checks/check-kit-registration.sh"
|
|
16
15
|
SANDBOX="$(mktemp -d)"
|
|
17
16
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
18
17
|
|
|
@@ -38,8 +37,9 @@ git -C "$SANDBOX" -c user.email=t@e -c user.name=t commit -qm init
|
|
|
38
37
|
run() { # $1=label $2=want-rc $3=want-substring $4=runner-doc-body
|
|
39
38
|
local label="$1" want="$2" sub="$3" body="$4" out rc
|
|
40
39
|
printf '%s' "$body" >"$SANDBOX/RUNNER.md"
|
|
41
|
-
out="$(cd "$SANDBOX"
|
|
42
|
-
|
|
40
|
+
out="$(cd "$SANDBOX" \
|
|
41
|
+
&& gate_env GATE_SDK_KIT_DIRS="alpha-kit beta-kit" GATE_SDK_ROOT="$DIR" \
|
|
42
|
+
&& gate_run check-kit-registration "$DIR/checks" README.md RUNNER.md 2>&1)"; rc=$?
|
|
43
43
|
if [[ "$rc" -ne "$want" ]]; then
|
|
44
44
|
echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
|
|
45
45
|
fi
|
|
@@ -61,8 +61,9 @@ run "b-owed-satisfied" 0 "(2 kit root(s) each carry a registry row; 1 shipping g
|
|
|
61
61
|
run "b-missing" 1 "alpha-kit" "no fixture-runner lines here"
|
|
62
62
|
|
|
63
63
|
# Fail-closed: a configured runner doc that does not exist is exit 2, not a pass.
|
|
64
|
-
out="$(cd "$SANDBOX"
|
|
65
|
-
|
|
64
|
+
out="$(cd "$SANDBOX" \
|
|
65
|
+
&& gate_env GATE_SDK_KIT_DIRS="alpha-kit beta-kit" GATE_SDK_ROOT="$DIR" \
|
|
66
|
+
&& gate_run check-kit-registration "$DIR/checks" README.md no-such-doc.md 2>&1)"; rc=$?
|
|
66
67
|
if [[ "$rc" -ne 2 ]]; then
|
|
67
68
|
echo " FAIL [missing-doc]: want exit 2, got $rc -- $out"; fails=$((fails + 1))
|
|
68
69
|
fi
|