checkwright 0.22.0 → 0.24.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 +855 -96
- package/lib/common/lock.sh +45 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +50 -34
- package/lib/diff.sh +66 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +62 -46
- package/lib/uninstall.sh +214 -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 +527 -63
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -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.gate +3 -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.gate +3 -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.gate +3 -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.gate +3 -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-amendment-queue/bad/SPEC-orphan.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -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/bad.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +5 -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/good.sh +3 -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-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.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-embedded-source/bad/SPEC-wire.md +18 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
- 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 +2 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +10 -5
- package/payload/context-kit/SPEC.md +364 -62
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +21 -23
- package/payload/context-kit/checks/check-brevity.gate +3 -0
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
- package/payload/context-kit/checks/check-memory-off.gate +3 -0
- package/payload/context-kit/checks/check-settings-paths.gate +3 -0
- package/payload/context-kit/checks/check-settings-pins.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
- 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/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/gate-tests/check-settings-pins.test.sh +70 -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/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +27 -4
- package/payload/context-kit/smoke/install.sh +4 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +400 -22
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
- package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
- package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
- package/payload/delegation-kit/smoke/install.sh +1 -1
- package/payload/delegation-kit/templates/agent-execution.md +109 -18
- 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 +103 -10
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- 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 +84 -5
- package/payload/doctrine-kit/smoke/install.sh +106 -3
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +84 -11
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/bin/stage-economics.sh +1 -1
- package/payload/drift-kit/lib/drift.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +49 -14
- package/payload/evidence-kit/README.md +3 -1
- package/payload/evidence-kit/SPEC.md +160 -19
- package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +43 -2
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
- package/payload/evidence-kit/lib/evidence.sh +2 -0
- package/payload/evidence-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/README.md +23 -7
- package/payload/gate-sdk/SPEC.md +6402 -291
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +473 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +27 -7
- package/payload/gate-sdk/bin/run-gates.sh +30 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +70 -17
- 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 +2 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
- package/payload/gate-sdk/checks/check-core-files.gate +3 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +62 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +32 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +109 -14
- package/payload/gate-sdk/checks/check-graph.gate +3 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-identity.gate +3 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +93 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
- package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +2 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -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 +2 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
- 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-exec-bit/bad/dump.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
- 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 +110 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +110 -4
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
- 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-enum/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +204 -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 +353 -22
- 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 +47 -1
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +477 -82
- package/payload/guard-kit/bin/run-guard-tests.sh +7 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +84 -14
- package/payload/guard-kit/lib/guard.sh +440 -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 +14 -3
- package/payload/lifecycle-kit/SPEC.md +929 -93
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +193 -38
- package/payload/lifecycle-kit/bin/file-gap.sh +29 -12
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -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.gate +3 -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/boundary-scratch-wipe.test.sh +4 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +2 -3
- 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/bad/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +24 -25
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +129 -15
- 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/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +9 -0
- package/payload/lifecycle-kit/smoke/install.sh +96 -19
- package/payload/lifecycle-kit/templates/lead.md +60 -0
- package/payload/lifecycle-kit/templates/stages/align.md +20 -2
- package/payload/lifecycle-kit/templates/stages/build.md +3 -3
- package/payload/lifecycle-kit/templates/stages/close.md +48 -15
- package/payload/lifecycle-kit/templates/stages/scope.md +29 -5
- package/payload/lifecycle-kit/templates/stages/spec.md +6 -2
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +12 -10
- package/payload/queue-kit/SPEC.md +411 -74
- 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.gate +3 -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.gate +3 -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/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +4 -68
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +52 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +2 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
- package/payload/site-kit/smoke/install.sh +1 -1
- package/profiles.list +36 -8
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -116
- 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-docs-link-convention.sh +0 -78
- 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-knob-default-coupling.sh +0 -239
- 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-prose-tells.sh +0 -207
- 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-embedded-source.sh +0 -133
- 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/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -123
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -38
- package/payload/context-kit/checks/check-memory-off.sh +0 -112
- package/payload/context-kit/checks/check-settings-pins.sh +0 -110
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -61
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -139
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -76
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -216
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -86
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -103
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -104
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
- package/payload/gate-sdk/bin/enforcement-map.sh +0 -272
- package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -50
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -43
- package/payload/gate-sdk/checks/check-core-files.sh +0 -75
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -37
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -95
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -105
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -84
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -92
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -73
- package/payload/gate-sdk/checks/check-graph.sh +0 -631
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -45
- package/payload/gate-sdk/checks/check-identity.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -94
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -107
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -199
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -66
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -126
- 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/gate-sdk/checks/check-workflow-tiering.sh +0 -84
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
- package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -63
- 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-entry.sh +0 -197
- 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/bin/queue-index.sh +0 -182
- package/payload/queue-kit/bin/roadmap.sh +0 -76
- 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-prose-precondition.sh +0 -63
- 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-roadmap-fresh.sh +0 -110
- 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
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -80
- /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/bad/args +0 -0
- /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/good/args +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
package/lib/init.sh
CHANGED
|
@@ -16,11 +16,6 @@ source "$INSTALLER/lib/common/recipe.sh"
|
|
|
16
16
|
# shellcheck source=./common/digest.sh
|
|
17
17
|
source "$INSTALLER/lib/common/digest.sh"
|
|
18
18
|
|
|
19
|
-
# spec: installer/README.md §What init seeds — the consumer-layout names init writes against; they are gate-sdk's and canon-kit's own defaults, so a tree init made is the zero-config tree those kits expect
|
|
20
|
-
GATES_DIR="scripts"
|
|
21
|
-
AGENT_FILE="CLAUDE.md"
|
|
22
|
-
QUEUE_FILE="TASK-QUEUE.md"
|
|
23
|
-
|
|
24
19
|
PROFILE=""; DRY=0; FORCE=0; DO_COMMIT=1
|
|
25
20
|
while [[ $# -gt 0 ]]; do
|
|
26
21
|
case "$1" in
|
|
@@ -55,6 +50,9 @@ if (( ! DRY )) && (( DO_COMMIT )) && [[ -n "$(git -C "$ROOT" status --porcelain)
|
|
|
55
50
|
"init makes one commit, and a dirty tree would fold your work into it — so a reviewer's diff would no longer be the whole of what was vendored. Commit or stash first, or pass --no-commit to stage the vendoring yourself." 1
|
|
56
51
|
fi
|
|
57
52
|
|
|
53
|
+
# spec: installer/README.md §init — the jq preflight sits here rather than at the top of the file because here is where "before its first JSON read" falls: every precondition above is about the package or the repository and is answerable without jq, and every refusal below is one a jq-less machine would otherwise meet as a misdiagnosis
|
|
54
|
+
lock_require_jq
|
|
55
|
+
|
|
58
56
|
PKG="$INSTALLER/package.json"
|
|
59
57
|
VERSION="$(jq -r '.version // ""' "$PKG" 2>/dev/null)"
|
|
60
58
|
COMMIT="$(jq -r '.checkwright.commit // ""' "$PKG" 2>/dev/null)"
|
|
@@ -163,9 +161,12 @@ prior_hash() { # $1 = repo-relative path -> the hash the manifest recorded for
|
|
|
163
161
|
|
|
164
162
|
WRITTEN=()
|
|
165
163
|
declare -A CARRIED=()
|
|
164
|
+
# spec: installer/README.md §The manifest — membership in the written set is held as a key rather than re-derived by piping the list into a quiet grep: that grep exits on its first match while the writer is still writing, the writer takes SIGPIPE, and under the pipefail this file sets the pipeline's status becomes the signal instead of the match. The test then reads as "absent" for a path init wrote seconds earlier, which carries it forward at its prior hash and drops it from the staged set — and because a carried path is appended to the list, every later lookup starts further from the tail. The array is written where paths are recorded so the two cannot part company
|
|
165
|
+
declare -A IS_WRITTEN=()
|
|
166
166
|
# spec: installer/README.md §The manifest — a recorded hash is what init last wrote at that path, so an entry init did not write this run — because it refused the write, or because this payload no longer ships the path — carries its hash forward verbatim instead of letting manifest() hash the tree at emit time: hashing the tree there would file the adopter's own content as init's, and the next run would find cur == want, claim the path and overwrite it silently
|
|
167
167
|
record() { # $1 = repo-relative path, $2 = the hash to emit for it; omitted, the tree is hashed at emit time
|
|
168
168
|
WRITTEN+=("$1")
|
|
169
|
+
IS_WRITTEN["$1"]=1
|
|
169
170
|
[[ -n "${2:-}" ]] && CARRIED["$1"]="$2"
|
|
170
171
|
return 0
|
|
171
172
|
}
|
|
@@ -205,14 +206,20 @@ GATES_LIST="$GATES_DIR/gates.list"
|
|
|
205
206
|
if claim "$GATES_LIST"; then
|
|
206
207
|
# spec: installer/README.md §The gate binary — an omitted member rides the registry rather than a new file: `# omitted: <name> <reason>` is a comment line the runner already strips from the live set, so the record sits in the consumer's tracked history where a reviewer reads it, and a re-run on a machine that has since gained a hasher converts it back into a live member with no hand edit
|
|
207
208
|
plan_gates() {
|
|
208
|
-
local m
|
|
209
|
+
local kit m
|
|
210
|
+
local -a g
|
|
211
|
+
local -A pending=()
|
|
209
212
|
printf '%s\n' "# Checkwright gate registry — written by 'checkwright init' (profile: $PROFILE)." \
|
|
210
213
|
"# Each kit's starting subset; its README names the full roster to grow into."
|
|
214
|
+
# spec: installer/README.md §Profiles — the profile's gate set is derived once, by the same function the smoke's monotonicity assertion reads, so the registry a consumer receives and the invariant asserted over it are not two derivations of one fact. The loop below only sections that set by kit, which the registry keeps because the omission is keyed by the kit shipping the member — and a member registered by more than one kit lands once, under the first of them
|
|
215
|
+
while IFS= read -r m; do [[ -n "$m" ]] && pending["$m"]=1; done < <(profile_gates "$INSTALLER" "$PROFILE")
|
|
211
216
|
for kit in "${KITS[@]}"; do
|
|
212
|
-
mapfile -t g < <(recipe_gates "$kit")
|
|
217
|
+
mapfile -t g < <(recipe_gates "$PAYLOAD/$kit" "$PROFILE")
|
|
213
218
|
[[ ${#g[@]} -gt 0 ]] || continue
|
|
214
219
|
printf '# %s\n' "$kit"
|
|
215
220
|
for m in "${g[@]}"; do
|
|
221
|
+
[[ -n "${pending[$m]:-}" ]] || continue
|
|
222
|
+
unset "pending[$m]"
|
|
216
223
|
if [[ -n "$OMIT_REASON" ]] && dispatches_to_binary "$kit" "$m"; then
|
|
217
224
|
printf '# omitted: %s %s\n' "$m" "$OMIT_REASON"
|
|
218
225
|
else
|
|
@@ -239,7 +246,6 @@ for kit in "${KITS[@]}"; do
|
|
|
239
246
|
# spec: installer/README.md §init — --dry-run resolves the same seam plan the real run would, out of the same enumerator rather than a second spelling of the glob: copy_in already writes nothing under --dry-run, so the plan needs no dry variant and cannot drift from the run it predicts
|
|
240
247
|
recipe_config_seam_plan "$PAYLOAD/$kit" "$GATES_DIR"
|
|
241
248
|
if (( DRY )); then
|
|
242
|
-
recipe_needs_queue "$kit" && [[ ! -f "$ROOT/$QUEUE_FILE" ]] && printf '%s\n' "$QUEUE_FILE"
|
|
243
249
|
case "$kit" in
|
|
244
250
|
gate-sdk) printf '%s/msg-patterns.list\n' "$GATES_DIR" ;;
|
|
245
251
|
evidence-kit) printf '%s\n' .workflow/validate-baseline.txt .workflow/validate-evidence.txt ;;
|
|
@@ -256,11 +262,18 @@ for kit in "${KITS[@]}"; do
|
|
|
256
262
|
> "$ROOT/$AGENT_FILE" || die "could not seed $AGENT_FILE"
|
|
257
263
|
printf '%s\n' "$AGENT_FILE"
|
|
258
264
|
fi
|
|
259
|
-
recipe_seed "$kit" "$PAYLOAD/$kit" "$ROOT"
|
|
265
|
+
recipe_seed "$kit" "$PAYLOAD/$kit" "$ROOT" || die "could not seed $kit"
|
|
260
266
|
fi
|
|
261
267
|
)
|
|
262
268
|
done
|
|
263
269
|
|
|
270
|
+
# spec: installer/README.md §What init seeds — the queue seed runs here, once, over the resolved kit set: inside the loop above the first kit reached decided the source before any kit shipping a template got a turn. It runs in the parent shell for the reason that loop's own directive gives — a record() inside the process substitution is discarded — and the resolver below is the single predicate the dry plan and the run share, so the prediction cannot drift from the write it predicts
|
|
271
|
+
QUEUE_SRC="$(recipe_queue_source "$PAYLOAD" "${KITS[@]}")"
|
|
272
|
+
if [[ -n "$QUEUE_SRC" && ! -f "$ROOT/$QUEUE_FILE" ]]; then
|
|
273
|
+
(( DRY )) || recipe_write_queue "$QUEUE_SRC" "$ROOT" "$QUEUE_FILE" || die "could not seed $QUEUE_FILE"
|
|
274
|
+
claim "$QUEUE_FILE" && record "$QUEUE_FILE"
|
|
275
|
+
fi
|
|
276
|
+
|
|
264
277
|
# spec: installer/README.md §The gate binary — the write comes after every config seam is in place and before the hook is generated, because the generator resolves each member's invocation argv and a `.gate` member resolves to this binary: the knob must name it and the file must be there, or the generator reports a dispatch it cannot make
|
|
265
278
|
SEAM="$GATES_DIR/gate-sdk-config.sh"
|
|
266
279
|
if [[ -n "$ARTIFACT_TARGET" ]]; then
|
|
@@ -290,27 +303,20 @@ if [[ -n "$ARTIFACT_TARGET" ]]; then
|
|
|
290
303
|
} > "$ROOT/$SEAM.tmp" \
|
|
291
304
|
&& mv "$ROOT/$SEAM.tmp" "$ROOT/$SEAM" || die "could not write $SEAM"
|
|
292
305
|
fi
|
|
293
|
-
|
|
306
|
+
[[ -n "${IS_WRITTEN[$SEAM]:-}" ]] || record "$SEAM"
|
|
294
307
|
fi
|
|
295
308
|
fi
|
|
296
309
|
|
|
297
|
-
# spec: installer/README.md §The manifest — the roster's exit condition, and it is the whole rule: init owns a path because it wrote the file there, so ownership ends when the file leaves the tree and at no other moment. Dropping an entry would disown a file init created, and an uninstall reading this roster would then leave it behind. A payload that stops shipping a path is not that moment either — the file is still on disk, it may carry the adopter's edits, and disowning it is precisely what lets a later payload re-adding the same path write straight through them. So membership and existence are the only tests: every path this payload still ships has already reached claim(), which records it on the write and on the refusal alike, leaving exactly the paths no copy_in visited this run to reach here
|
|
298
|
-
if [[ -n "$PRIOR_FILES" ]]; then
|
|
299
|
-
while IFS=$'\t' read -r p h; do
|
|
300
|
-
[[ -n "$p" ]] || continue
|
|
301
|
-
printf '%s\n' "${WRITTEN[@]}" | grep -qxF "$p" && continue
|
|
302
|
-
[[ -f "$ROOT/$p" ]] || continue
|
|
303
|
-
record "$p" "$h"
|
|
304
|
-
done <<<"$PRIOR_FILES"
|
|
305
|
-
fi
|
|
306
|
-
|
|
307
310
|
# spec: installer/README.md §init — the generated projections are produced by the vendored tools themselves, never restated by the installer: the hook generator and the graph emitter are gate-sdk's, so a consumer's artifacts are the ones their own gate-sdk makes
|
|
308
311
|
GENERATED=("$GATES_DIR/git-hooks/pre-commit" "$GATES_DIR/CHECK-GRAPH.html")
|
|
309
312
|
if (( ! DRY )); then
|
|
310
313
|
( cd "$ROOT" && bash "$ROOT/gate-sdk/bin/gen-pre-commit.sh" --write ) >/dev/null \
|
|
311
314
|
|| die "gate-sdk's hook generator failed"
|
|
312
|
-
|
|
313
|
-
|
|
315
|
+
# spec: installer/README.md §The gate binary — the graph emitter is a binary arm, reached through the front-end that resolves its bridged knobs (gate-sdk/SPEC.md §The non-gate arm). It runs exactly when an artifact was selected, because a payload that omitted the binary has written the graph gate into gates.list as an omission and the consumer therefore has no graph gate for this artifact to be fresh against — and because omission must never fail an install over something the adopter did not choose. The roster loop below already tolerates a generated file that was not produced.
|
|
316
|
+
if [[ -n "$ARTIFACT_TARGET" ]]; then
|
|
317
|
+
( cd "$ROOT" && bash "$ROOT/gate-sdk/bin/run-gates.sh" --emit graph ) > "$ROOT/$GATES_DIR/CHECK-GRAPH.html" \
|
|
318
|
+
|| die "gate-sdk's graph emitter failed"
|
|
319
|
+
fi
|
|
314
320
|
fi
|
|
315
321
|
[[ -f "$ROOT/$GATES_DIR/git-hooks/commit-msg" ]] && GENERATED+=("$GATES_DIR/git-hooks/commit-msg")
|
|
316
322
|
for g in "${GENERATED[@]}"; do
|
|
@@ -318,6 +324,16 @@ for g in "${GENERATED[@]}"; do
|
|
|
318
324
|
record "$g"
|
|
319
325
|
done
|
|
320
326
|
|
|
327
|
+
# spec: installer/README.md §The manifest — the roster's exit condition, and it is the whole rule: init owns a path because it wrote the file there, so ownership ends when the file leaves the tree and at no other moment. Dropping an entry would disown a file init created, and an uninstall reading this roster would then leave it behind. A payload that stops shipping a path is not that moment either — the file is still on disk, it may carry the adopter's edits, and disowning it is precisely what lets a later payload re-adding the same path write straight through them. So membership and existence are the only tests: every path this payload still ships has already reached claim(), which records it on the write and on the refusal alike, leaving exactly the paths no copy_in visited this run to reach here — and "this run" is why the loop is last rather than merely late: every path init writes must already be recorded when it runs, or the loop carries a path init rewrote seconds earlier at its superseded hash and the staged set loses it. The generated projections above are the ones that reached it from the wrong side
|
|
328
|
+
if [[ -n "$PRIOR_FILES" ]]; then
|
|
329
|
+
while IFS=$'\t' read -r p h; do
|
|
330
|
+
[[ -n "$p" ]] || continue
|
|
331
|
+
[[ -n "${IS_WRITTEN[$p]:-}" ]] && continue
|
|
332
|
+
[[ -f "$ROOT/$p" ]] || continue
|
|
333
|
+
record "$p" "$h"
|
|
334
|
+
done <<<"$PRIOR_FILES"
|
|
335
|
+
fi
|
|
336
|
+
|
|
321
337
|
# spec: installer/README.md §The manifest — what init wrote this run is a subset of the roster it records, because a path left alone for the adopter and a path this payload no longer ships are both carried forward rather than written; the two part company here so every reader downstream takes the one it means, and staging takes the written set: folding an adopter's file into the vendoring commit is what the clean-worktree precondition exists to prevent
|
|
322
338
|
STAGE=()
|
|
323
339
|
for f in "${WRITTEN[@]}"; do [[ -n "${CARRIED[$f]:-}" ]] || STAGE+=("$f"); done
|
|
@@ -328,30 +344,17 @@ files_hash() { # $1 = repo-relative path -> the hash its files[] entry carries
|
|
|
328
344
|
lock_hash "$ROOT/$1"
|
|
329
345
|
}
|
|
330
346
|
|
|
347
|
+
# spec: installer/README.md §The manifest — the wire shape has one writer and it is lock.sh's lock_emit; what stays here is init's own rule about which hash an entry carries, which is not the schema's business
|
|
331
348
|
manifest() {
|
|
332
349
|
local f
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
printf '%s\n' "$
|
|
340
|
-
|
|
341
|
-
local first=1
|
|
342
|
-
for f in "${WRITTEN[@]}"; do
|
|
343
|
-
(( first )) || printf ','
|
|
344
|
-
first=0
|
|
345
|
-
printf '%s:%s' "$(jq -Rn --arg v "$f" '$v')" \
|
|
346
|
-
"$(jq -Rn --arg v "$(files_hash "$f")" '$v')"
|
|
347
|
-
done
|
|
348
|
-
printf '}'
|
|
349
|
-
# spec: installer/README.md §The manifest — the binary is neither vendored nor generated, so it joins as its own key rather than a files[] row: a files[] entry means hashed with git hash-object and rewritten when unmodified, and this one is hashed with SHA-256 against a published value and rewritten on a different rule. Its absence on a run that omitted the artifact is the omission's machine-readable form
|
|
350
|
-
[[ -n "$ARTIFACT_TARGET" ]] && printf ',"artifact":{"target":%s,"digest":%s}' \
|
|
351
|
-
"$(jq -Rn --arg v "$ARTIFACT_TARGET" '$v')" \
|
|
352
|
-
"$(jq -Rn --arg v "$ARTIFACT_DIGEST" '$v')"
|
|
353
|
-
printf '}'
|
|
354
|
-
} | jq -S .
|
|
350
|
+
# spec: installer/README.md §The manifest — the binary is neither vendored nor generated, so it joins as its own key rather than a files[] row: a files[] entry means hashed with git hash-object and rewritten when unmodified, and this one is hashed with SHA-256 against a published value and rewritten on a different rule. Its absence on a run that omitted the artifact is the omission's machine-readable form, which is why the flag is passed only when a target was selected
|
|
351
|
+
local -a args=(version="$VERSION" profile="$PROFILE" kits="${KITS[*]}")
|
|
352
|
+
# spec: installer/README.md §The manifest — commit is passed on the same conditional footing as the artifact key, for the reason lock_emit already states: an identity field is present exactly when the caller supplied it, and an empty commit written as "" would be a placeholder standing in for an omission. Its emptiness was masked by statement order alone until the jq preflight landed ahead of it; with jq's absence ruled out, an empty commit means only that the package carries no commit stamp, and the existing rule settles what to do about it
|
|
353
|
+
[[ -n "$COMMIT" ]] && args+=(commit="$COMMIT")
|
|
354
|
+
[[ -n "$ARTIFACT_TARGET" ]] && args+=(--artifact "$ARTIFACT_TARGET" "$ARTIFACT_DIGEST")
|
|
355
|
+
for f in "${WRITTEN[@]}"; do
|
|
356
|
+
printf '%s\t%s\n' "$f" "$(files_hash "$f")"
|
|
357
|
+
done | lock_emit "${args[@]}"
|
|
355
358
|
}
|
|
356
359
|
|
|
357
360
|
if (( DRY )); then
|
|
@@ -388,9 +391,22 @@ fi
|
|
|
388
391
|
|
|
389
392
|
git -C "$ROOT" add -- "${STAGE[@]}" || die "could not stage the vendored files"
|
|
390
393
|
|
|
391
|
-
# spec: installer/README.md §init — idempotence is a property of the tree, so a re-run that changed nothing reports and exits clean rather than failing on an empty commit: "nothing to do" is the success case, not an error
|
|
394
|
+
# spec: installer/README.md §init — idempotence is a property of the tree, so a re-run that changed nothing reports and exits clean rather than failing on an empty commit: "nothing to do" is the success case, not an error. The predicate reads the index rather than the worktree and it stays the guard on whether a commit is attempted, because a commit against an empty index exits non-zero and init treats a failed commit as a fatal install failure — an arm placed ahead of this branch would turn the pure idempotent path into a false hard error
|
|
392
395
|
if git -C "$ROOT" diff --cached --quiet; then
|
|
393
|
-
|
|
396
|
+
# spec: installer/README.md §init — a run init considers a no-op still commits what it rewrote, so this branch asks what the predicate above cannot: whether anything on the roster init just recorded differs from the committed tree. The clean-worktree precondition is what makes the answer attributable — nothing dirty at those paths can be the adopter's — and --no-commit is exempt because it waives that precondition and hands the commit over. The expected answer is "nothing", at the cost of one status call; the arm is here so the one-commit contract survives the staged set failing to cover what init wrote rather than resting on the assumption that it never will, and the inner index check is what keeps that survival from becoming the empty commit the paragraph above rules out
|
|
397
|
+
if (( DO_COMMIT )) && [[ -n "$(git -C "$ROOT" status --porcelain -- "${WRITTEN[@]}")" ]]; then
|
|
398
|
+
git -C "$ROOT" add -- "${WRITTEN[@]}" \
|
|
399
|
+
|| die "could not stage the files init rewrote but left out of the vendoring commit"
|
|
400
|
+
if ! git -C "$ROOT" diff --cached --quiet; then
|
|
401
|
+
residue="$(git -C "$ROOT" diff --cached --name-only | grep -c .)"
|
|
402
|
+
git -C "$ROOT" commit -q -m "chore: vendor Checkwright kits ($PROFILE profile, v$VERSION)" \
|
|
403
|
+
|| die "the commit failed — the files are staged; commit them yourself to finish the install" "" 1
|
|
404
|
+
printf 'INIT: already at the %s profile (v%s) — %d file(s) checked; %d that init had rewritten were uncommitted and are now committed.\n' \
|
|
405
|
+
"$PROFILE" "$VERSION" "${#WRITTEN[@]}" "$residue"
|
|
406
|
+
exit 0
|
|
407
|
+
fi
|
|
408
|
+
fi
|
|
409
|
+
printf 'INIT: already at the %s profile (v%s) — %d file(s) checked, nothing to change and nothing it rewrote left uncommitted.\n' \
|
|
394
410
|
"$PROFILE" "$VERSION" "${#WRITTEN[@]}"
|
|
395
411
|
exit 0
|
|
396
412
|
fi
|
package/lib/uninstall.sh
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: installer/README.md §uninstall — reverses an install against the roster init recorded and nothing else: an entry whose content is still what init wrote is removed, an entry you have edited since is kept and reported, and the manifest is narrowed over the survivors rather than deleted, so ownership of a file that is still on disk never lapses
|
|
3
|
+
#
|
|
4
|
+
# usage: checkwright uninstall [--dry-run] [--force] [--no-commit]
|
|
5
|
+
# Each flag is described by --help.
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
INSTALLER="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
9
|
+
PAYLOAD="$INSTALLER/payload"
|
|
10
|
+
# shellcheck source=./common/lock.sh
|
|
11
|
+
source "$INSTALLER/lib/common/lock.sh"
|
|
12
|
+
# spec: installer/README.md §What init seeds — sourced for the consumer-layout names, so the agent file this verb trims is the one init wrote rather than a second spelling of the path
|
|
13
|
+
# shellcheck source=./common/recipe.sh
|
|
14
|
+
source "$INSTALLER/lib/common/recipe.sh"
|
|
15
|
+
|
|
16
|
+
DRY=0; FORCE=0; DO_COMMIT=1
|
|
17
|
+
while [[ $# -gt 0 ]]; do
|
|
18
|
+
case "$1" in
|
|
19
|
+
--dry-run) DRY=1; shift ;;
|
|
20
|
+
--force) FORCE=1; shift ;;
|
|
21
|
+
--no-commit) DO_COMMIT=0; shift ;;
|
|
22
|
+
-h|--help)
|
|
23
|
+
printf 'usage: checkwright uninstall [--dry-run] [--force] [--no-commit]\n\n'
|
|
24
|
+
printf 'Removes the files init recorded in %s and commits the removal.\n' "$CHECKWRIGHT_LOCK_FILE"
|
|
25
|
+
printf 'Nothing outside that roster is touched. A file you have edited since\n'
|
|
26
|
+
printf 'init wrote it is kept and reported; --force removes it anyway.\n'
|
|
27
|
+
exit 0 ;;
|
|
28
|
+
*) printf 'checkwright uninstall: unknown argument: %s\n' "$1" >&2; exit 2 ;;
|
|
29
|
+
esac
|
|
30
|
+
done
|
|
31
|
+
|
|
32
|
+
die() { printf 'checkwright uninstall: %s\n' "$1" >&2; [[ -n "${2:-}" ]] && printf ' help: %s\n' "$2" >&2; exit "${3:-2}"; }
|
|
33
|
+
|
|
34
|
+
# spec: installer/README.md §init — every precondition refuses rather than warns and all of them are checked before anything is removed, for init's own reason: a partial removal is the outcome none of them may produce
|
|
35
|
+
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" \
|
|
36
|
+
|| die "not inside a git work tree" \
|
|
37
|
+
"uninstall stages and commits the removal the same way init committed the install, so it needs the repository it is reversing."
|
|
38
|
+
|
|
39
|
+
LOCK="$(lock_path "$ROOT")"
|
|
40
|
+
[[ -f "$LOCK" ]] || die "no $CHECKWRIGHT_LOCK_FILE at $ROOT" \
|
|
41
|
+
"init is the verb that makes an install, and the manifest it writes is the only record of which files are this installer's to remove. Without one there is nothing here to reverse."
|
|
42
|
+
# spec: installer/README.md §init — the jq preflight before the first JSON read, so the schema refusal below is reached only when the schema is actually the problem
|
|
43
|
+
lock_require_jq
|
|
44
|
+
lock_schema_ok "$LOCK" || die "$CHECKWRIGHT_LOCK_FILE carries a schema this build does not know" \
|
|
45
|
+
"this manifest was written by a different Checkwright release. Upgrade the installer rather than letting it guess at a shape it was not built for."
|
|
46
|
+
|
|
47
|
+
# spec: installer/README.md §init — the clean-worktree precondition is init's, on the same terms: one commit is made, and a dirty tree would fold your work into it; --no-commit is the same valve
|
|
48
|
+
if (( ! DRY )) && (( DO_COMMIT )) && [[ -n "$(git -C "$ROOT" status --porcelain)" ]]; then
|
|
49
|
+
die "the worktree is not clean" \
|
|
50
|
+
"uninstall makes one commit, and a dirty tree would fold your work into it — so a reviewer's diff would no longer be the whole of what was removed. Commit or stash first, or pass --no-commit to stage the removal yourself." 1
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
PROFILE="$(lock_field "$LOCK" profile)"
|
|
54
|
+
VERSION="$(lock_field "$LOCK" version)"
|
|
55
|
+
KITS=()
|
|
56
|
+
read -r -a KITS <<<"$(lock_field "$LOCK" kits)"
|
|
57
|
+
GATES_LIST="$(lock_own_file "$LOCK" "$GATES_DIR/gates.list")"
|
|
58
|
+
|
|
59
|
+
kits_include() { # $1 = kit name -> 0 iff the manifest records it as vendored
|
|
60
|
+
local k
|
|
61
|
+
for k in ${KITS[@]+"${KITS[@]}"}; do [[ "$k" == "$1" ]] && return 0; done
|
|
62
|
+
return 1
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
# spec: installer/README.md §uninstall — the removal rule is claim() seen from the other side, and it needs no new data: init records each path at the hash it last wrote there, so a hash that still matches marks a file that is init's to remove and one that differs marks a file that is yours to keep. A recorded path already off the tree is a no-op rather than an error — it left the roster the moment it left the tree
|
|
66
|
+
REMOVE=(); KEEP=(); GONE=()
|
|
67
|
+
declare -A KEPT_HASH=(); declare -A ROSTER=()
|
|
68
|
+
while IFS=$'\t' read -r p h; do
|
|
69
|
+
[[ -n "$p" ]] || continue
|
|
70
|
+
ROSTER["$p"]=1
|
|
71
|
+
if [[ ! -f "$ROOT/$p" ]]; then GONE+=("$p"); continue; fi
|
|
72
|
+
if (( FORCE )) || [[ "$(lock_hash "$ROOT/$p")" == "$h" ]]; then
|
|
73
|
+
REMOVE+=("$p")
|
|
74
|
+
else
|
|
75
|
+
KEEP+=("$p"); KEPT_HASH["$p"]="$h"
|
|
76
|
+
fi
|
|
77
|
+
done < <(jq -r 'if (.files | type) == "object" then (.files | to_entries[] | "\(.key)\t\(.value)") else empty end' "$LOCK")
|
|
78
|
+
|
|
79
|
+
# spec: installer/README.md §uninstall — the agent file is the one entry that is a span rather than a file, so the branch where it is kept still owes the doctrine block a removal: the block is prose you did not write, in the file whose purpose is to steer agent sessions, pointing at a doctrine file this verb just removed. The trim is scoped to that span alone — a marker block init never wrote is never a files[] entry, so it is never this verb's to touch
|
|
80
|
+
TRIM_AGENT=0
|
|
81
|
+
DOCTRINE_REMOVER="$PAYLOAD/doctrine-kit/bin/install-doctrine.sh"
|
|
82
|
+
if [[ -n "${KEPT_HASH[$AGENT_FILE]:-}" ]] && kits_include doctrine-kit; then
|
|
83
|
+
TRIM_AGENT=1
|
|
84
|
+
[[ -f "$DOCTRINE_REMOVER" ]] || die "this package carries no payload copy of doctrine-kit's installer" \
|
|
85
|
+
"the doctrine block is trimmed through the kit's own installer so the removal path adds no second copy of the marker strings, and this run needs it because $AGENT_FILE is being kept. Run uninstall from an installed package rather than a source checkout."
|
|
86
|
+
fi
|
|
87
|
+
|
|
88
|
+
# spec: installer/README.md §uninstall — the hook opt-in is reported, not rewritten: git config is outside the ownership roster, and a core.hooksPath naming a directory that no longer exists is inert rather than breaking, so there is nothing to justify writing outside the contract. The resolver needs no kits guard: it asks the manifest for the exact path init writes, which a residual manifest simply does not record
|
|
89
|
+
HOOKS_LINE=""
|
|
90
|
+
hooks_path="$(git -C "$ROOT" config --get core.hooksPath 2>/dev/null)"
|
|
91
|
+
if [[ -n "$hooks_path" && -n "$GATES_LIST" && "$GATES_LIST" == */* ]]; then
|
|
92
|
+
gates_dir="${GATES_LIST%/*}"
|
|
93
|
+
rel="${hooks_path#"$ROOT"/}"
|
|
94
|
+
[[ "$rel" == "$gates_dir" || "$rel" == "$gates_dir"/* ]] \
|
|
95
|
+
&& HOOKS_LINE="git config --unset core.hooksPath"
|
|
96
|
+
fi
|
|
97
|
+
|
|
98
|
+
# spec: installer/README.md §The manifest — the survivors carry the hash init recorded, never the tree's: an entry rewritten at your hash would read as unchanged on the next install and let it write straight through you, which is the one defect the residual manifest exists to prevent
|
|
99
|
+
residual() {
|
|
100
|
+
local p
|
|
101
|
+
for p in ${KEEP[@]+"${KEEP[@]}"}; do printf '%s\t%s\n' "$p" "${KEPT_HASH[$p]}"; done | lock_emit
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ancestors() { # $1 = repo-relative path -> each of its directories, deepest first
|
|
105
|
+
local d="$1"
|
|
106
|
+
while [[ "$d" == */* ]]; do d="${d%/*}"; printf '%s\n' "$d"; done
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
# spec: installer/README.md §uninstall — a file you added inside a vendored directory is not on the roster, so it is never removed; the plan names it because a directory left behind holding only your own files is a surprise worth spending a line on before the run rather than after
|
|
110
|
+
adopter_added() {
|
|
111
|
+
local kit f
|
|
112
|
+
for kit in ${KITS[@]+"${KITS[@]}"}; do
|
|
113
|
+
[[ -d "$ROOT/$kit" ]] || continue
|
|
114
|
+
while IFS= read -r f; do
|
|
115
|
+
[[ -n "$f" && -z "${ROSTER[$f]:-}" ]] && printf '%s\n' "$f"
|
|
116
|
+
done < <(cd "$ROOT" && find "$kit" -type f | LC_ALL=C sort)
|
|
117
|
+
done
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
by_top_dir() { # repo-relative paths on stdin -> '<top-level dir or file> <count>' lines
|
|
121
|
+
awk -F/ '{ print (NF > 1 ? $1 "/" : $0) }' | LC_ALL=C sort | uniq -c \
|
|
122
|
+
| awk '{ printf " %-32s %d file(s)\n", $2, $1 }'
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
# spec: installer/README.md §uninstall — a run with nothing to remove says so and exits 0: the install is still there, so narrowing the manifest here would disown an install that has not ended
|
|
126
|
+
if [[ ${#REMOVE[@]} -eq 0 ]]; then
|
|
127
|
+
printf 'UNINSTALL: nothing to remove — of %d recorded file(s), %d have changed since init wrote them and %d are already gone.\n' \
|
|
128
|
+
"$(( ${#KEEP[@]} + ${#GONE[@]} ))" "${#KEEP[@]}" "${#GONE[@]}"
|
|
129
|
+
[[ ${#KEEP[@]} -gt 0 ]] && printf ' help: they are yours, so uninstall leaves them. Pass --force to remove them anyway.\n'
|
|
130
|
+
exit 0
|
|
131
|
+
fi
|
|
132
|
+
|
|
133
|
+
if (( DRY )); then
|
|
134
|
+
printf 'checkwright uninstall --dry-run (profile: %s, version: %s)\n\n' "$PROFILE" "$VERSION"
|
|
135
|
+
printf 'would remove %d file(s):\n' "${#REMOVE[@]}"
|
|
136
|
+
printf '%s\n' "${REMOVE[@]}" | by_top_dir
|
|
137
|
+
printf 'would then remove every directory those files empty.\n'
|
|
138
|
+
if [[ ${#KEEP[@]} -gt 0 ]]; then
|
|
139
|
+
printf '\nwould keep %d file(s) you have changed since init wrote them (--force to remove them anyway):\n' "${#KEEP[@]}"
|
|
140
|
+
printf ' %s\n' "${KEEP[@]}"
|
|
141
|
+
fi
|
|
142
|
+
[[ ${#GONE[@]} -gt 0 ]] && printf '\n%d recorded file(s) are already off the tree — nothing to do for them.\n' "${#GONE[@]}"
|
|
143
|
+
added="$(adopter_added)"
|
|
144
|
+
if [[ -n "$added" ]]; then
|
|
145
|
+
printf '\nwould leave %d file(s) you added inside a vendored directory:\n' "$(grep -c . <<<"$added")"
|
|
146
|
+
while IFS= read -r f; do printf ' %s\n' "$f"; done <<<"$added"
|
|
147
|
+
fi
|
|
148
|
+
(( TRIM_AGENT )) && printf '\nwould trim the doctrine block out of %s, which is being kept, and leave the rest of it alone.\n' "$AGENT_FILE"
|
|
149
|
+
if [[ ${#KEEP[@]} -eq 0 ]]; then
|
|
150
|
+
printf '\nwould delete %s — nothing recorded would survive.\n' "$CHECKWRIGHT_LOCK_FILE"
|
|
151
|
+
else
|
|
152
|
+
printf '\nwould rewrite %s over the %d kept file(s), at the hashes init recorded:\n' "$CHECKWRIGHT_LOCK_FILE" "${#KEEP[@]}"
|
|
153
|
+
residual
|
|
154
|
+
fi
|
|
155
|
+
[[ -n "$HOOKS_LINE" ]] && printf '\nwould print this for you to run yourself:\n %s\n' "$HOOKS_LINE"
|
|
156
|
+
printf '\nDRY RUN: nothing was written.\n'
|
|
157
|
+
exit 0
|
|
158
|
+
fi
|
|
159
|
+
|
|
160
|
+
for p in "${REMOVE[@]}"; do rm -f "$ROOT/$p" || die "could not remove $p"; done
|
|
161
|
+
|
|
162
|
+
# spec: installer/README.md §uninstall — pruning is bottom-up and only ever removes a directory that is now empty: uninstall removes files it owns, never directories it merely emptied around, so one left holding anything at all is left alone
|
|
163
|
+
while IFS= read -r d; do
|
|
164
|
+
rmdir "$ROOT/$d" 2>/dev/null
|
|
165
|
+
done < <(for p in "${REMOVE[@]}"; do ancestors "$p"; done | LC_ALL=C sort -ru)
|
|
166
|
+
|
|
167
|
+
TRIMMED=0
|
|
168
|
+
if (( TRIM_AGENT )); then
|
|
169
|
+
# spec: doctrine-kit/SPEC.md §install-doctrine — the trim runs through the payload's copy of the kit's own installer, exactly as init's injection does, so the marker strings keep their one writer and the removal works once the vendored kit is gone
|
|
170
|
+
trim_out="$( cd "$ROOT" && bash "$DOCTRINE_REMOVER" --remove "$AGENT_FILE" 2>&1 )" \
|
|
171
|
+
|| die "the doctrine block could not be trimmed out of $AGENT_FILE: $trim_out"
|
|
172
|
+
TRIMMED=1
|
|
173
|
+
fi
|
|
174
|
+
|
|
175
|
+
if [[ ${#KEEP[@]} -eq 0 ]]; then
|
|
176
|
+
rm -f "$LOCK" || die "could not remove $CHECKWRIGHT_LOCK_FILE"
|
|
177
|
+
elif residual > "$LOCK.tmp"; then
|
|
178
|
+
mv "$LOCK.tmp" "$LOCK" || die "could not rewrite $CHECKWRIGHT_LOCK_FILE"
|
|
179
|
+
else
|
|
180
|
+
rm -f "$LOCK.tmp"
|
|
181
|
+
die "could not rewrite $CHECKWRIGHT_LOCK_FILE over the kept file(s)"
|
|
182
|
+
fi
|
|
183
|
+
|
|
184
|
+
# spec: installer/README.md §uninstall — the staged set is the removals and the manifest disposition, and a kept file is never among them: staging a file left for the adopter is the same defect init's written-set/roster split exists to prevent, and it stays one when the write is a removal
|
|
185
|
+
STAGE=()
|
|
186
|
+
while IFS= read -r -d '' p; do STAGE+=("$p"); done < <(git -C "$ROOT" ls-files -z -- "${REMOVE[@]}")
|
|
187
|
+
if [[ -f "$LOCK" ]] || git -C "$ROOT" ls-files --error-unmatch -- "$CHECKWRIGHT_LOCK_FILE" >/dev/null 2>&1; then
|
|
188
|
+
STAGE+=("$CHECKWRIGHT_LOCK_FILE")
|
|
189
|
+
fi
|
|
190
|
+
[[ ${#STAGE[@]} -gt 0 ]] && { git -C "$ROOT" add -- "${STAGE[@]}" || die "could not stage the removal"; }
|
|
191
|
+
|
|
192
|
+
if [[ ${#KEEP[@]} -gt 0 ]]; then
|
|
193
|
+
printf '\n%d file(s) have changed since init wrote them and were kept:\n' "${#KEEP[@]}"
|
|
194
|
+
printf ' %s\n' "${KEEP[@]}"
|
|
195
|
+
printf ' help: they are yours. %s now records those paths and nothing else, at the hashes init wrote, so a future init still protects them rather than writing through them.\n' \
|
|
196
|
+
"$CHECKWRIGHT_LOCK_FILE"
|
|
197
|
+
fi
|
|
198
|
+
(( TRIMMED )) && printf '\ntrimmed the doctrine block out of %s and left the change unstaged — the rest of that file is yours to review.\n' "$AGENT_FILE"
|
|
199
|
+
|
|
200
|
+
if git -C "$ROOT" diff --cached --quiet; then
|
|
201
|
+
printf '\nUNINSTALL: removed %d file(s), none of which this repository was tracking — nothing to commit.\n' "${#REMOVE[@]}"
|
|
202
|
+
else
|
|
203
|
+
if (( DO_COMMIT )); then
|
|
204
|
+
git -C "$ROOT" commit -q -m "chore: remove Checkwright kits ($PROFILE, v$VERSION)" \
|
|
205
|
+
|| die "the commit failed — the removal is staged; commit it yourself to finish" "" 1
|
|
206
|
+
printf '\nUNINSTALL: removed %d file(s), kept %d, and committed the removal.\n' "${#REMOVE[@]}" "${#KEEP[@]}"
|
|
207
|
+
else
|
|
208
|
+
printf '\nUNINSTALL: removed %d file(s), kept %d and staged the removal — --no-commit, so the commit is yours.\n' \
|
|
209
|
+
"${#REMOVE[@]}" "${#KEEP[@]}"
|
|
210
|
+
fi
|
|
211
|
+
fi
|
|
212
|
+
|
|
213
|
+
[[ -n "$HOOKS_LINE" ]] && printf '\nthis clone still points at the hooks directory that was just removed. Undo that yourself with:\n %s\n' "$HOOKS_LINE"
|
|
214
|
+
exit 0
|
package/lib/update.sh
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: installer/README.md §update — update is init with one added precondition and its argv forwarded verbatim: checkwright.lock must already exist, so a verb named update can manage an install but never perform the first one. Every init flag stays valid, including --profile, --force, --no-commit and --dry-run, so the mutating-verb --dry-run obligation is discharged by delegation rather than a second implementation that could drift from it
|
|
3
|
+
#
|
|
4
|
+
# usage: checkwright update [--profile <name>] [--dry-run] [--force] [--no-commit]
|
|
5
|
+
# Every init flag stays valid; see 'checkwright init --help' for what each one does.
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
INSTALLER="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
9
|
+
# shellcheck source=./common/lock.sh
|
|
10
|
+
source "$INSTALLER/lib/common/lock.sh"
|
|
11
|
+
|
|
12
|
+
# spec: installer/README.md §init — -h/--help is intercepted first and answers on its own, outside any repository precondition, exactly as every other verb's --help does
|
|
13
|
+
for arg in "$@"; do
|
|
14
|
+
case "$arg" in
|
|
15
|
+
-h|--help)
|
|
16
|
+
printf 'usage: checkwright update [--profile <name>] [--dry-run] [--force] [--no-commit]\n\n'
|
|
17
|
+
printf 'Runs checkwright init with the same arguments, refusing when there is no\n'
|
|
18
|
+
printf 'existing install for it to update. Every init flag is valid here — see\n'
|
|
19
|
+
printf "'checkwright init --help' for what each one does.\n"
|
|
20
|
+
exit 0 ;;
|
|
21
|
+
esac
|
|
22
|
+
done
|
|
23
|
+
|
|
24
|
+
die() { printf 'checkwright update: %s\n' "$1" >&2; [[ -n "${2:-}" ]] && printf ' help: %s\n' "$2" >&2; exit "${3:-2}"; }
|
|
25
|
+
|
|
26
|
+
# spec: installer/README.md §update — the one added precondition, and the whole behavioral difference from init: checkwright.lock must already exist at the repository root, so a verb named update never performs a first install. It checks existence only and no more — a present-but-unreadable schema, a stale downgrade, a below-contract toolchain, and every other init precondition are init's own checks, one call away, and repeating any of them here would be a second copy that could drift from the original. Not being inside a git work tree at all is not this verb's precondition to own either: init's own "not inside a git work tree" refusal already exists and already names the accurate remedy, so an unresolvable root here just falls through to it rather than being reported as an absent manifest
|
|
27
|
+
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)"
|
|
28
|
+
if [[ -n "$ROOT" ]] && [[ ! -f "$(lock_path "$ROOT")" ]]; then
|
|
29
|
+
die "no $CHECKWRIGHT_LOCK_FILE at $ROOT" \
|
|
30
|
+
"update manages an install init already made; there isn't one yet. Run 'checkwright init' first."
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# spec: installer/README.md §init — everything else, including --dry-run, --force and --no-commit, is init's own contract, unrepeated here
|
|
34
|
+
exec bash "$INSTALLER/lib/init.sh" "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "checkwright",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Vendors pinned Checkwright kit source into your repository and commits it — a coding-agent-assisted delivery methodology (gate SDK, evidence-stamped lifecycle, agent context economics).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
21
|
"checkwright": {
|
|
22
|
-
"commit": "
|
|
22
|
+
"commit": "fa830b8840f1544f0382a4c3028d9149885e14eb"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
34ebcda0547246cf48fcf511776138e1ecff68077da92df4a51dbbe92feca801 checkwright-gates
|
|
@@ -37,6 +37,7 @@ reads the tag syntax [queue-kit](../queue-kit/) defines.
|
|
|
37
37
|
check-knob-citation # knob values stated only in the owning SPEC
|
|
38
38
|
check-knob-default-coupling # source knob defaults agree with the owning SPEC
|
|
39
39
|
check-manifest-count # no bare cardinal over a governed collection
|
|
40
|
+
check-measured-claim # needs a measured-claim oracle (marked claims re-measured)
|
|
40
41
|
check-manifest-temporal # no temporal narration in manifest prose
|
|
41
42
|
check-tracking-claim # a path's tracking status in prose agrees with git
|
|
42
43
|
check-prose-enum # partial enumeration of a governed set
|