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/README.md
CHANGED
|
@@ -39,6 +39,26 @@ delivery-path tool joins the toolchain roster, and the manual vendoring path
|
|
|
39
39
|
documented on the site needs neither. The toolchain the battery does assert,
|
|
40
40
|
with its version floors, is on the install page.
|
|
41
41
|
|
|
42
|
+
**The verbs themselves need `jq`.** `init`, `diff` and `uninstall` read JSON —
|
|
43
|
+
this package's own version stamp and the `checkwright.lock` manifest — and they
|
|
44
|
+
read it with `jq`, so every one of them refuses without it, naming the program
|
|
45
|
+
and the remedy (§The manifest). This is a claim about *these verbs*, separate
|
|
46
|
+
from the install page's toolchain block, which names `jq` for the gates in the
|
|
47
|
+
battery being vendored: different programs' users, and a machine can satisfy
|
|
48
|
+
either without the other, though a machine missing `jq` is below both.
|
|
49
|
+
|
|
50
|
+
`doctor` is the exception by design, and the exception is that it **reaches its
|
|
51
|
+
diagnosis** rather than that it is content: it reports a toolchain instead of
|
|
52
|
+
refusing before it can report one, so on a machine with no `jq` it renders its
|
|
53
|
+
whole report, names `jq` as missing, and tells you that is also why the manifest
|
|
54
|
+
could not be read. Its verdict is still **below contract**, because `jq` is a
|
|
55
|
+
consumer-audience member of the toolchain floor and the battery being vendored
|
|
56
|
+
needs it too. So the installer always knew about this dependency and `doctor`
|
|
57
|
+
always said so — what was wrong is that `init` runs `doctor` *last*, after the
|
|
58
|
+
JSON reads that need `jq`, so the one verdict that named the program was ordered
|
|
59
|
+
behind the refusals that could not. The precondition above is that ordering
|
|
60
|
+
corrected, not a fact newly discovered.
|
|
61
|
+
|
|
42
62
|
## Layout
|
|
43
63
|
|
|
44
64
|
- `bin/checkwright.sh` — the verb dispatcher, and the package's `bin` entry.
|
|
@@ -51,6 +71,55 @@ with its version floors, is on the install page.
|
|
|
51
71
|
the source tree, so no second copy of any kit is checked in.
|
|
52
72
|
- `profiles.list` — the profile rosters (below).
|
|
53
73
|
|
|
74
|
+
## The verbs
|
|
75
|
+
|
|
76
|
+
`init` makes an install; the rest manage one after it exists. The roster itself
|
|
77
|
+
is derived — a verb is advertised because its implementation is present under
|
|
78
|
+
`lib/`, so `checkwright --help` lists the directory rather than a list beside it
|
|
79
|
+
— and what follows is what each verb is *for*.
|
|
80
|
+
|
|
81
|
+
| verb | asks | reads |
|
|
82
|
+
| --- | --- | --- |
|
|
83
|
+
| `init` | vendor this profile's kits into my repository | the payload, and the manifest a previous run left |
|
|
84
|
+
| `doctor` | can this machine run the battery, and what is installed here? | the toolchain, and the manifest's identity fields |
|
|
85
|
+
| `diff` | which of the files `init` wrote have I changed? | the manifest's `files` hashes, against the tree |
|
|
86
|
+
| `update` | bring the install here up to the version this package carries | the manifest, then everything `init` reads |
|
|
87
|
+
| `uninstall` | reverse the install, keeping anything I have edited | the manifest's `files` roster, against the tree |
|
|
88
|
+
|
|
89
|
+
**The classifier is writes / does not write, and it is what decides
|
|
90
|
+
`--dry-run`.** `doctor` and `diff` write nothing, so neither has one and neither
|
|
91
|
+
would have anything to preview. Every verb that does write has one, and it means
|
|
92
|
+
the same thing in each: print the plan, write nothing, exit 0. That rule is
|
|
93
|
+
asserted behaviorally rather than gated — §The consumer smoke holds
|
|
94
|
+
`uninstall --dry-run` to leaving the tree object and the worktree unchanged,
|
|
95
|
+
which is what a flag that parsed and then wrote anyway would fail and a flag
|
|
96
|
+
that merely existed would pass. *The honest bound:* `init`'s and `update`'s
|
|
97
|
+
`--dry-run` carry the same contract and are not held to it there yet, so the
|
|
98
|
+
rule is asserted on one verb and documented on the other two.
|
|
99
|
+
|
|
100
|
+
**Why `diff` is a verb of its own rather than a widening of `doctor`.**
|
|
101
|
+
`doctor`'s exit status has exactly one owner — the toolchain contract — and
|
|
102
|
+
`init` gates its own precondition on it. That ownership already forced one
|
|
103
|
+
carve-out: §doctor reports an artifact finding *without* setting the status,
|
|
104
|
+
because reddening there would block the `init` re-run that is the finding's own
|
|
105
|
+
remedy. Drift would force the same carve-out a second time and on worse ground.
|
|
106
|
+
Editing a vendored file is **sanctioned** — the whole ownership contract in §The
|
|
107
|
+
manifest exists to protect it — so a folded-in drift report would be a permanent
|
|
108
|
+
expected finding on the one surface that teaches a reader to skim its last line.
|
|
109
|
+
And drift wants a status of its own: `0` the tree is exactly what `init` wrote,
|
|
110
|
+
`1` it has diverged. That is gatable in CI, and it cannot live on `doctor`
|
|
111
|
+
without colliding with the number the toolchain contract already owns.
|
|
112
|
+
|
|
113
|
+
A second ground, independent of the first: `doctor` runs as `init`'s
|
|
114
|
+
precondition, before every install, so per-file hashing there would make every
|
|
115
|
+
`init` pay for a computation the install redoes moments later and print the
|
|
116
|
+
answer twice.
|
|
117
|
+
|
|
118
|
+
Nor do the two `--dry-run`s stand in for it. They answer *what would this
|
|
119
|
+
payload change*, which is a different question from *what have I changed*, and
|
|
120
|
+
an adopter deciding whether to uninstall needs the second without running a
|
|
121
|
+
mutating verb at all.
|
|
122
|
+
|
|
54
123
|
## init
|
|
55
124
|
|
|
56
125
|
`checkwright init` vendors the selected profile's kit source out of this
|
|
@@ -60,25 +129,50 @@ gate-sdk/SPEC.md §Consumer payload sets.
|
|
|
60
129
|
|
|
61
130
|
**No selection builds.** Not "no profile that happens to carry only shell
|
|
62
131
|
gates" — no selection, ever. `init` writes files and compiles nothing, so it
|
|
63
|
-
asks for no toolchain and cannot fail on one.
|
|
132
|
+
asks for **no build toolchain** and cannot fail on one. The only toolchain it
|
|
133
|
+
asks for at all is the one the battery it is vendoring will itself run, which
|
|
134
|
+
is what the `doctor` precondition below checks and the whole of what can block
|
|
135
|
+
an install. A gate whose implementation is a
|
|
64
136
|
compiled subcommand reaches you as a prebuilt binary picked for your platform
|
|
65
137
|
and checked against a published digest before it is written, which is what makes
|
|
66
138
|
zero build step a property of `init` itself rather than of which profile you
|
|
67
139
|
picked (gate-sdk/SPEC.md §Porting a gate to the binary substrate, criterion 5).
|
|
68
140
|
|
|
69
|
-
|
|
141
|
+
Four preconditions, and all of them **refuse** rather than warn — a partial
|
|
70
142
|
install is the outcome none of them may produce, so every one is checked before
|
|
71
143
|
a single file is written:
|
|
72
144
|
|
|
73
145
|
- **You are inside a git work tree.** The vendored source is meant to be
|
|
74
146
|
committed; that is what makes it auditable rather than merely present.
|
|
147
|
+
- **`jq` is installed.** It sits immediately before the first JSON read rather
|
|
148
|
+
than at the very top of the verb, because that is where *before the first
|
|
149
|
+
read* falls: the two preconditions either side of it are about the package and
|
|
150
|
+
the repository and are answerable without `jq`, while every refusal after it
|
|
151
|
+
is one a `jq`-less machine would otherwise meet as a misdiagnosis. That is the
|
|
152
|
+
whole of what this precondition buys, and it is worth stating as the
|
|
153
|
+
deliverable rather than leaving it to be read as a side effect: the refusals
|
|
154
|
+
below it — *this package carries no version stamp*, and *`checkwright.lock`
|
|
155
|
+
carries a schema this build does not know* — **keep their exact text and
|
|
156
|
+
recover their accuracy**. Each is the right message for the condition it
|
|
157
|
+
names, and each was only ever wrong as the message a `jq`-less machine
|
|
158
|
+
received, reached by a path that had nothing to do with what it said. After
|
|
159
|
+
this precondition, meeting one of them means the condition it names is
|
|
160
|
+
actually true.
|
|
75
161
|
- **The worktree is clean.** `init` makes one commit, and a dirty tree would
|
|
76
162
|
fold your work into it, leaving a reviewer's diff wider than what was
|
|
77
|
-
actually vendored.
|
|
163
|
+
actually vendored. It is also what makes a run's own residue attributable:
|
|
164
|
+
anything dirty at a path `init` recorded, when the run ends, was written by
|
|
165
|
+
that run and by nothing else — which is what lets a run that changed nothing
|
|
166
|
+
still commit what it rewrote rather than guess whose the change was.
|
|
167
|
+
`--no-commit` is the valve: it writes and stages the
|
|
78
168
|
files and leaves the commit to you, so an operator who wants to compose the
|
|
79
|
-
change themselves has taken that guarantee on deliberately
|
|
80
|
-
|
|
81
|
-
|
|
169
|
+
change themselves has taken that guarantee on deliberately — and because it
|
|
170
|
+
waives the precondition, it waives that attribution with it.
|
|
171
|
+
- **`doctor` passes.** The contract it holds you to is the consumer-audience
|
|
172
|
+
subset of the roster — the tools the vendored battery runs, never a tool that
|
|
173
|
+
only builds Checkwright (§doctor) — so a machine with no Rust toolchain is
|
|
174
|
+
not below it. A machine that *is* below it blocks *before* any partial
|
|
175
|
+
install, rather than halfway through one, which is why `doctor` ships in the
|
|
82
176
|
same phase as `init` rather than as a later convenience.
|
|
83
177
|
|
|
84
178
|
It writes the selected profile's kit directories, a `gates.list` seeded with
|
|
@@ -101,14 +195,40 @@ meets the same protection rather than a clean slate — which is the one window
|
|
|
101
195
|
which an unowned path could otherwise be written straight over your edits. A
|
|
102
196
|
re-run that finds
|
|
103
197
|
nothing to change says so and exits clean; an unchanged tree is the success
|
|
104
|
-
case, not an error.
|
|
198
|
+
case, not an error.
|
|
199
|
+
|
|
200
|
+
**"Nothing to change" does not mean "nothing was committed".** `init` regenerates
|
|
201
|
+
the projections its vendored tools own on every run, so a run it classifies as a
|
|
202
|
+
no-op has still rewritten files — and **one commit** is a promise about what the
|
|
203
|
+
run leaves behind, not about which branch it took to get there. So the no-op exit
|
|
204
|
+
commits anything it rewrote that is not already committed, under the same message
|
|
205
|
+
the ordinary vendoring commit uses, and says so. Expect it to find nothing: a run
|
|
206
|
+
that rewrote something normally stages it and never reaches that branch at all.
|
|
207
|
+
The arm is there so the promise holds when it does. Under `--no-commit` the arm
|
|
208
|
+
is off, because the commit is yours.
|
|
209
|
+
|
|
210
|
+
**Two shapes this is deliberately not, and one ordering it must not take.** It is
|
|
211
|
+
not a freshness comparison that skips regenerating a projection whose inputs have
|
|
212
|
+
not moved: `init` does not compare freshness, and the projections are the vendored
|
|
213
|
+
tools' own output rather than something `init` holds an input for. It is not a
|
|
214
|
+
change of owner either — the projections stay `init`'s `files` entries rather than
|
|
215
|
+
becoming yours to regenerate, because the ownership rule in §The manifest is what
|
|
216
|
+
protects your edits to everything else `init` writes. And the commit on that branch
|
|
217
|
+
sits **inside** the exit rather than ahead of it: a commit against an empty index
|
|
218
|
+
exits non-zero and `init` treats a failed commit as a fatal install error, so an arm
|
|
219
|
+
placed before the "nothing to change" test would turn the pure idempotent path into
|
|
220
|
+
a false hard failure.
|
|
221
|
+
|
|
222
|
+
A payload older than the recorded install is refused as a
|
|
105
223
|
silent downgrade — `--force` covers that refusal too, which is what makes a
|
|
106
224
|
rollback a thing you asked for rather than a thing that happened to you.
|
|
107
|
-
`--force` means the same thing in
|
|
108
|
-
|
|
225
|
+
`--force` means the same thing in all three places it appears — the changed-file
|
|
226
|
+
protection here, the downgrade refusal above, and the kept files `uninstall`
|
|
227
|
+
would otherwise leave behind (§uninstall): overwrite what `init` would otherwise
|
|
228
|
+
protect.
|
|
109
229
|
|
|
110
230
|
`--dry-run` prints the file plan and the manifest that would be written, writes
|
|
111
|
-
nothing, and exits 0.
|
|
231
|
+
nothing, and exits 0.
|
|
112
232
|
|
|
113
233
|
## What init seeds
|
|
114
234
|
|
|
@@ -133,24 +253,93 @@ destroy the very evidence the comparison is made from, and these are precisely
|
|
|
133
253
|
the files whose whole purpose is to be edited by you — which is why the ordering
|
|
134
254
|
is stated here rather than left to each recipe.
|
|
135
255
|
|
|
256
|
+
**The queue file's source is derived too, and resolved once per install rather
|
|
257
|
+
than once per kit.** A kit declares itself the queue format's owner by shipping
|
|
258
|
+
`templates/TASK-QUEUE.md`; `init` seeds from the template of the first kit in
|
|
259
|
+
the resolved profile's set that ships one, and writes a minimal inline skeleton
|
|
260
|
+
only when **no** kit in that set does. Resolving over the whole set is the
|
|
261
|
+
point: while the choice was made inside the per-kit loop, the first kit reached
|
|
262
|
+
decided it, so a kit that reads the queue and ships no template pre-empted one
|
|
263
|
+
that does — and the kit shipping the template was reachable in no profile at
|
|
264
|
+
all. Nothing declares an owner, because shipping the artifact already does. The
|
|
265
|
+
inline skeleton carries every `QUEUE_KIT_REQUIRED_SECTIONS` heading at that
|
|
266
|
+
knob's default, since it is a path a shipping profile takes rather than
|
|
267
|
+
defensive symmetry: a profile whose kit set reads the queue and carries no
|
|
268
|
+
kit shipping the template — `prose` is that shape — receives exactly that file,
|
|
269
|
+
and the section gate that would catch a missing heading is `on-surface`, so
|
|
270
|
+
nothing in the battery `init` registers would say so.
|
|
271
|
+
|
|
136
272
|
The **starting gate roster** is the subset a fresh consumer begins with, not
|
|
137
273
|
the kit's full roster — the same distinction gate-sdk's own README draws. A
|
|
138
274
|
gate whose subject you have not authored yet has nothing to read: canon-kit's
|
|
139
|
-
duplication gate wants a glossary, site-kit's wants a docs host
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
`
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
kit's
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
kit
|
|
153
|
-
|
|
275
|
+
duplication gate wants a glossary, and site-kit's wants a docs host. On a tree
|
|
276
|
+
that has done nothing wrong those would red on day one, so they are registered
|
|
277
|
+
when the surface exists rather than at install. Each kit's README names the full
|
|
278
|
+
roster to grow into. **No lifecycle-kit gate is `zero-config`**, and the reasons
|
|
279
|
+
differ across its roster rather than being one reason: some read a stage
|
|
280
|
+
attestation only a stage session can write, others read surfaces a stage session
|
|
281
|
+
authors, and two — `check-lifecycle-registration` and `check-merge-attrs` — read
|
|
282
|
+
what `lifecycle-kit/bin/install-lifecycle.sh` writes, which is the adopter's own
|
|
283
|
+
step and not a stage's. The posture is kit-wide; the reason is per gate.
|
|
284
|
+
|
|
285
|
+
**A kit's agent-file block is seeded at install iff a gate registered at install
|
|
286
|
+
reads it.** Seeding follows the gate, not the kit — the agent-file half of the
|
|
287
|
+
rule above, extended to the one other thing `init` writes on a kit's behalf.
|
|
288
|
+
doctrine-kit's block is seeded because `check-doctrine-registration` declares
|
|
289
|
+
`zero-config`, so the reader of the block is in the registry `init` writes and
|
|
290
|
+
the block is read on day one rather than sitting resident. lifecycle-kit's is
|
|
291
|
+
not, because nothing `init` registers would read it: seeding it would put
|
|
292
|
+
always-loaded instruction for a stage machine into your agent file and charge
|
|
293
|
+
every session's context for machinery nothing yet enforces. The rule is also
|
|
294
|
+
what keeps `recipe_needs_agent_file` from being a seeding roster — the predicate
|
|
295
|
+
asks whether the agent file must *exist* for a kit's starting gates, which
|
|
296
|
+
context-kit answers yes to while writing nothing into it; the seeding arms ask
|
|
297
|
+
the narrower question of which kit writes into it.
|
|
298
|
+
|
|
299
|
+
**The roster is derived from the gates themselves.**
|
|
300
|
+
`recipe_gates(kit-payload-dir, profile)` in `lib/common/recipe.sh` is the
|
|
301
|
+
**whole** of a fresh consumer's registry — what a tree `init` just made will run
|
|
302
|
+
is read there, never inferred from a kit's full roster or from this repo's own
|
|
303
|
+
`gates.list` — and what it reads is each shipped gate's own
|
|
304
|
+
`# install: <disposition>` header line, taking every member a kit declares
|
|
305
|
+
`zero-config` (gate-sdk/SPEC.md §The install disposition). It carries no gate
|
|
306
|
+
name of its own, so a kit that adds a zero-config gate is picked up with no edit
|
|
307
|
+
here. One function unions the result over a profile's kits, `profile_gates` in
|
|
308
|
+
`lib/common/profile.sh`, and both the registry `init` writes and the consumer
|
|
309
|
+
smoke's monotonicity assertion read that one derivation. No disposition varies on
|
|
310
|
+
the profile today; the argument is the seam, so a roster that does vary becomes a
|
|
311
|
+
change to one gate rather than to a signature and every caller of it.
|
|
312
|
+
|
|
313
|
+
**What the seam can and cannot express, measured rather than assumed**, because
|
|
314
|
+
the obvious use of it is the one thing it does not do. `full` is the
|
|
315
|
+
payload-derived maximum, so every profile's kit set is contained in it, and the
|
|
316
|
+
smoke's monotonicity assertion therefore means *anything a profile registers,
|
|
317
|
+
`full` must register too* — a gate armed "for one profile only" is not
|
|
318
|
+
expressible, since the moment it is armed anywhere it is owed to `full`, and
|
|
319
|
+
once it is owed to `full` it is simply `zero-config`. `starter` sits below every
|
|
320
|
+
profile for the mirror reason, so no profile may **drop** a gate-sdk
|
|
321
|
+
`zero-config` member either; and subtraction in the band between them has
|
|
322
|
+
nothing to derive from, because §The consumer smoke's own rule forbids
|
|
323
|
+
`lib/common/recipe.sh` a literal gate name and no gate declares
|
|
324
|
+
profile-varying reachability. So the parameter is **additively inert** and
|
|
325
|
+
subtractively undeclarable, which is why a cohort of gates a narrow profile
|
|
326
|
+
should receive arrives as a disposition correction on each gate instead. The
|
|
327
|
+
argument stays the seam for the future in which a gate does declare that
|
|
328
|
+
reachability; nothing declares it today.
|
|
329
|
+
|
|
330
|
+
**A disposition change reaches trees that are already installed.** `init` on an
|
|
331
|
+
existing consumer rewrites `gates.list` from this derivation, so a gate moving
|
|
332
|
+
`on-surface` → `zero-config` joins their battery on their next run, on content
|
|
333
|
+
they wrote before the gate existed. Their *edits* to the file are protected —
|
|
334
|
+
`gates.list` is claimed before it is written, like any rewritten surface — but
|
|
335
|
+
the roster growing is the intended behavior rather than a claim violation, and a
|
|
336
|
+
release carrying such a move owes them the sentence in its note.
|
|
337
|
+
|
|
338
|
+
Each kit's `smoke/install.sh` registers a **richer** roster against the scratch
|
|
339
|
+
tree that script builds and seeds — a superset of this one by contract rather
|
|
340
|
+
than by coincidence, held there by `check-install-disposition`. The two describe
|
|
341
|
+
two different trees, which is why the disposition is what a kit owns and the
|
|
342
|
+
roster is what each caller derives.
|
|
154
343
|
|
|
155
344
|
## The gate binary
|
|
156
345
|
|
|
@@ -215,6 +404,13 @@ in-payload value can. What raises it above a self-check is that the identical
|
|
|
215
404
|
bytes are published on the Release, so a human can cross-check the value out of
|
|
216
405
|
band. The claim is **verified against a published digest**, never *reproducible*.
|
|
217
406
|
|
|
407
|
+
**The gate-sdk config seam rides this path and only this path.** `init` claims
|
|
408
|
+
`scripts/gate-sdk-config.sh` inside the branch that has selected an artifact
|
|
409
|
+
target, and gate-sdk ships no config-seam template for the generic seam plan to
|
|
410
|
+
copy. On a payload carrying no artifact that file is therefore never written and
|
|
411
|
+
is not a `files` entry at all — so a verb reasoning about the surfaces `init`
|
|
412
|
+
rewrites on every run must not assume it is present.
|
|
413
|
+
|
|
218
414
|
**Omission is declared and counted.** An omitted member rides the registry
|
|
219
415
|
rather than a new file: `init` writes `# omitted: <name> <reason>` into the
|
|
220
416
|
consumer's `gates.list` in place of the member's name — a comment line the
|
|
@@ -260,10 +456,14 @@ member's invocation argv and a `.gate` member resolves to this binary. A hook
|
|
|
260
456
|
generated first would resolve a dispatch it cannot make.
|
|
261
457
|
|
|
262
458
|
Every row of the table above runs under an oracle rather than a
|
|
263
|
-
hand-verification with a date on it
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
459
|
+
hand-verification with a date on it, and the rows are split across §The consumer
|
|
460
|
+
smoke's arms by which install can show them. The **verify-then-write** row is the
|
|
461
|
+
main loop's, on every profile, because the payload it packs carries a binary this
|
|
462
|
+
run built; the **omit-and-declare** row is the binary-less leg's and the artifact
|
|
463
|
+
arm's undeclared-host leg's; the **refusal** row is the artifact arm's alone,
|
|
464
|
+
against a payload it mutated after extraction. Nothing here changes for that —
|
|
465
|
+
the behavior this section specifies is what those arms assert, not something they
|
|
466
|
+
added.
|
|
267
467
|
|
|
268
468
|
## doctor
|
|
269
469
|
|
|
@@ -274,6 +474,18 @@ step or `init`'s own precondition check gate on the answer without parsing a
|
|
|
274
474
|
report — and it is why a below-contract machine is caught before any partial
|
|
275
475
|
install rather than halfway through one.
|
|
276
476
|
|
|
477
|
+
**Which toolchain: the consumer-audience subset of the roster.** The roster
|
|
478
|
+
carries an audience axis (context-kit/SPEC.md §bin/env-probe), and a member
|
|
479
|
+
declared contributor-side is one no install path and no vendored gate reaches —
|
|
480
|
+
`cargo` is the case that exists. `doctor` walks the roster through that
|
|
481
|
+
predicate and a contributor-audience member is not probed, not rendered and
|
|
482
|
+
cannot set the verdict. It is left out rather than reported as informational on
|
|
483
|
+
purpose: `doctor` is the adopter's verb, and showing an adopter a tool they do
|
|
484
|
+
not need is an invitation to install it. So **`DOCTOR: clean` is a claim about
|
|
485
|
+
this machine as a consumer**, not about the machine — which is the narrowing
|
|
486
|
+
that makes the exit status usable as `init`'s precondition, since what `init`
|
|
487
|
+
needs to know is exactly whether the tree it is about to vendor into will run.
|
|
488
|
+
|
|
277
489
|
It has two behaviors, selected by where you run it rather than by a flag. Run
|
|
278
490
|
anywhere, it reports the toolchain verdict. Run inside a repository that has
|
|
279
491
|
been vendored into, it additionally reads `checkwright.lock` and reports the
|
|
@@ -295,27 +507,214 @@ reports the toolchain clean **and names the finding**, rather than signing off
|
|
|
295
507
|
as plainly clean — a `doctor` that printed `DIGEST MISMATCH` above and `clean`
|
|
296
508
|
below would be the surface teaching a reader to disbelieve the last line.
|
|
297
509
|
|
|
510
|
+
**The identity block names the registry this tree's battery runs from**, beside
|
|
511
|
+
the version, commit, profile and kit set. It is the one install fact the identity
|
|
512
|
+
fields cannot be read off, and the one a reader most needs when the report and
|
|
513
|
+
the tree seem to disagree: a `doctor` that resolved the wrong file would
|
|
514
|
+
otherwise say nothing at all about which one it inspected. A recorded registry
|
|
515
|
+
missing from disk is named as such, and a manifest recording none says so — both
|
|
516
|
+
with the same remedy, a re-run of `init`.
|
|
517
|
+
|
|
298
518
|
`doctor` defines no floor of its own. It sources the toolchain roster out of
|
|
299
519
|
its own `payload/` and renders whatever verdict that roster's predicate
|
|
300
|
-
returns, so the contract keeps one owner and this stays a display of it.
|
|
520
|
+
returns, so the contract keeps one owner and this stays a display of it. Which
|
|
521
|
+
members are consumer-audience — and so which absences set the verdict — is read
|
|
522
|
+
off that roster, never listed here; §Requirements works the one case a reader
|
|
523
|
+
arrives with, `jq`, and says why it is below contract rather than outside it. The
|
|
301
524
|
payload copy is the one it reads, never a copy in the tree it is inspecting:
|
|
302
525
|
at `init` time nothing has been vendored there yet, so a tree copy would not
|
|
303
526
|
exist at the moment the answer is needed.
|
|
304
527
|
|
|
305
|
-
|
|
306
|
-
|
|
528
|
+
**A residue is read apart from an install, and reported as one.** A
|
|
529
|
+
`checkwright.lock` carrying `files` and no `version` is not an install — it is
|
|
530
|
+
what `uninstall` leaves over files you had edited (§uninstall) — and `version`
|
|
531
|
+
is the field an install always has and a residue never does, so its absence is
|
|
532
|
+
the discriminator. On that reading `doctor` reports how many files remain and
|
|
533
|
+
that they are yours, and prints **no** identity block, no artifact check and no
|
|
534
|
+
omitted-member report: every one of those is a per-install reading with nothing
|
|
535
|
+
left to describe. Blank identity fields would be uninformative rather than
|
|
536
|
+
wrong, but printing them beside a residue message is the same mixed-verdict
|
|
537
|
+
shape the exit-status carve-out above already refuses.
|
|
538
|
+
|
|
539
|
+
On both readings `doctor` closes by naming `diff`. It reports what was
|
|
540
|
+
installed, never whether the tree still matches it, and keeping the two apart is
|
|
541
|
+
what stops `DOCTOR: clean` from being read as a claim about the tree's contents.
|
|
307
542
|
|
|
308
543
|
A third exit status, `2`, means the question could not be answered rather than
|
|
309
544
|
that the answer was bad: the package carries no payload, or the manifest
|
|
310
545
|
carries a schema key this build does not know. A build refuses an unfamiliar
|
|
311
|
-
manifest rather than guessing at the shape behind it.
|
|
546
|
+
manifest rather than guessing at the shape behind it. **A missing program is that
|
|
547
|
+
same status by derivation rather than by a new code** — a verb refusing because
|
|
548
|
+
`jq` is absent has not judged the tree, the package or the manifest, which is
|
|
549
|
+
what `1` is reserved for; it could not answer. It is also the status the
|
|
550
|
+
misdiagnosing refusals already exited with, so no caller's exit-code handling
|
|
551
|
+
changes and only the message does.
|
|
552
|
+
|
|
553
|
+
## update
|
|
554
|
+
|
|
555
|
+
`checkwright update` is `init` with **one added precondition and its arguments
|
|
556
|
+
forwarded verbatim**: `checkwright.lock` must already exist, so a verb named
|
|
557
|
+
`update` can manage an install but never perform the first one. Every `init`
|
|
558
|
+
flag stays valid — `--profile`, `--force`, `--no-commit` and `--dry-run` among
|
|
559
|
+
them — because none of them is reimplemented here. `update` checks its one
|
|
560
|
+
precondition and then *becomes* `init`.
|
|
561
|
+
|
|
562
|
+
That is the whole of the difference, and it is deliberate. Upgrading is already
|
|
563
|
+
what a second `init` does: it compares the recorded version against the
|
|
564
|
+
payload's and falls through in the upgrade direction, re-reads the profile from
|
|
565
|
+
the manifest when none is passed, and re-applies the payload around every file
|
|
566
|
+
you have edited since. A separate implementation would be a second copy of all
|
|
567
|
+
of that, free to drift from the original. So `update` is a **name**, not a
|
|
568
|
+
second mechanism — one operation under two names, where the second name is the
|
|
569
|
+
one an adopter looks for.
|
|
570
|
+
|
|
571
|
+
It checks existence and no more. An unreadable schema, a stale downgrade, a
|
|
572
|
+
below-contract toolchain — each is `init`'s own precondition, one call away, and
|
|
573
|
+
repeating any of them here would be the copy this design exists to avoid. Being
|
|
574
|
+
outside a git work tree is not this verb's precondition either: `init`'s own
|
|
575
|
+
refusal already names the accurate remedy, so an unresolvable root falls through
|
|
576
|
+
to it rather than being misreported as an absent manifest.
|
|
577
|
+
|
|
578
|
+
**Residue, recorded rather than papered over.** Because the delegation is real,
|
|
579
|
+
most of what you see comes from `init` and says so. The one refusal `update`
|
|
580
|
+
owns is prefixed `checkwright update:`; every other refusal — not a git work
|
|
581
|
+
tree, an unknown schema, a dirty worktree, a stale downgrade, a below-contract
|
|
582
|
+
toolchain, an absent `jq` — arrives prefixed **`checkwright init:`**, and the
|
|
583
|
+
success path
|
|
584
|
+
reports `INIT:`, because that is literally which verb produced the line. The
|
|
585
|
+
`jq` refusal inherits this without a second rule: it is raised from `lock.sh` but
|
|
586
|
+
surfaces through the calling verb's own `die`, so it carries that verb's prefix,
|
|
587
|
+
its `help:` line and its exit code rather than a separate idiom. This is
|
|
588
|
+
honest rather than untidy: the prefix names the operation that actually ran, and
|
|
589
|
+
renaming it cosmetically would hide exactly the delegation that makes these two
|
|
590
|
+
verbs one. It is written down here so that a `checkwright init:` line answering
|
|
591
|
+
a command you typed as `update` reads as the design rather than as a bug.
|
|
592
|
+
|
|
593
|
+
## diff
|
|
594
|
+
|
|
595
|
+
`checkwright diff` answers *which of the files `init` wrote have I changed?* It
|
|
596
|
+
classifies every `files` entry against the tree with the **same hash comparison
|
|
597
|
+
`init` makes** before it rewrites anything, so the report and the protection are
|
|
598
|
+
never two opinions.
|
|
599
|
+
|
|
600
|
+
Three classes, two of them named apart rather than pooled. **Unchanged** is
|
|
601
|
+
counted only. **Changed** means the content differs from what `init` wrote — the
|
|
602
|
+
sanctioned case, and the one the ownership contract exists to protect.
|
|
603
|
+
**Missing** means a recorded path is not on disk, and it is separated
|
|
604
|
+
because its consequence differs: §The manifest's exit rule means the next `init`
|
|
605
|
+
silently drops a missing path from the roster and writes it fresh, which is
|
|
606
|
+
worth a warning before it happens rather than after.
|
|
607
|
+
|
|
608
|
+
**The exit status is the verdict**: `0` every recorded entry matches what `init`
|
|
609
|
+
wrote, `1` at least one has changed or gone missing. That is what being a verb
|
|
610
|
+
of its own buys — a CI step can gate on *is our vendored tree pristine?* without
|
|
611
|
+
parsing a report, and without borrowing a status the toolchain contract owns
|
|
612
|
+
(§The verbs).
|
|
613
|
+
|
|
614
|
+
Its preconditions are the ones its subject requires: inside a git work tree, a
|
|
615
|
+
manifest present, and a schema this build knows. It writes nothing, so it has no
|
|
616
|
+
`--dry-run`.
|
|
617
|
+
|
|
618
|
+
Run against a **residual** manifest, `diff` reports the survivors as `changed`.
|
|
619
|
+
That is neither a special case nor a defect: they are recorded at the hashes
|
|
620
|
+
`init` wrote and they carry your edits, so *changed* is exactly what they are.
|
|
621
|
+
|
|
622
|
+
## uninstall
|
|
623
|
+
|
|
624
|
+
`checkwright uninstall` reverses an install against the roster `init` recorded,
|
|
625
|
+
and against nothing else. Install, see what it does, reverse it — that is the
|
|
626
|
+
property the adoption story rests on rather than an ergonomic extra.
|
|
627
|
+
|
|
628
|
+
**Preconditions**, all refusing rather than warning, and all checked before
|
|
629
|
+
anything is removed, because a partial removal is the outcome none of them may
|
|
630
|
+
produce: inside a git work tree; a manifest present with a schema this build
|
|
631
|
+
knows, else a refusal naming `init`; and a clean worktree, for `init`'s own
|
|
632
|
+
reason — one commit is made, and a dirty tree would fold your work into it.
|
|
633
|
+
`--no-commit` is the same valve on the same terms. The parallel with `init`
|
|
634
|
+
stops one clause short, and the divergence is deliberate rather than an
|
|
635
|
+
oversight to be tidied: `init` regenerates on every run, so it needs an arm that
|
|
636
|
+
commits what a no-op rewrote (§init), while `uninstall` only ever removes — a
|
|
637
|
+
removal it declines to make writes nothing, so there is no residue for such an
|
|
638
|
+
arm to find.
|
|
639
|
+
|
|
640
|
+
**The removal rule is the ownership contract seen from the other side.** For
|
|
641
|
+
each `files` entry: hash the file, remove it while the hash still matches what
|
|
642
|
+
`init` recorded, and **keep and report** it when it differs. So it removes only
|
|
643
|
+
files this installer wrote and you have not touched, never a file you wrote —
|
|
644
|
+
and it needs no new data to do that, because §The manifest already records every
|
|
645
|
+
path at the hash `init` last wrote there. A recorded path already off the tree
|
|
646
|
+
is a no-op rather than an error: it left the roster when it left the tree.
|
|
647
|
+
`--force` removes what would otherwise be kept, meaning here exactly what §init
|
|
648
|
+
says it means there — overwrite what `init` would otherwise protect.
|
|
649
|
+
|
|
650
|
+
The gate binary needs no special case. `init` records it as an ordinary `files`
|
|
651
|
+
row *and* under the separate `artifact` key; the roster walk removes it like any
|
|
652
|
+
other row, because `artifact` is identity rather than ownership.
|
|
653
|
+
|
|
654
|
+
**The manifest is not a `files` row, and it is disposed of explicitly.** `init`
|
|
655
|
+
appends `checkwright.lock` to its written set only after emitting it, so the
|
|
656
|
+
file never records itself. With nothing kept, it is deleted. With any entry
|
|
657
|
+
**kept**, it is rewritten over the survivors instead: deleting it
|
|
658
|
+
would disown exactly the paths the hash rule just protected, and the next `init`
|
|
659
|
+
would find them unrecorded, read that as *never installed*, and write straight
|
|
660
|
+
through your edits. That residual shape, and the argument for it, are owned by
|
|
661
|
+
§The manifest.
|
|
662
|
+
|
|
663
|
+
**The agent file is the one non-whole-file removal**, because it is the one
|
|
664
|
+
entry that is a span rather than a file (§The manifest). Two branches. Its hash
|
|
665
|
+
matches, meaning `init` created it and you never touched it, so it goes with
|
|
666
|
+
everything else. Its hash differs, so the file is kept and the **doctrine block
|
|
667
|
+
is trimmed out of it** — that block is prose you did not write, in the one file
|
|
668
|
+
whose purpose is to steer agent sessions, pointing at a doctrine file this verb
|
|
669
|
+
just removed, and leaving it inert there is not neutral. The trim runs through
|
|
670
|
+
the payload's own copy of doctrine-kit's installer (doctrine-kit/SPEC.md
|
|
671
|
+
§install-doctrine), so it adds no second copy of the marker strings and still
|
|
672
|
+
works once the vendored kit is gone. It is scoped to that span alone: a
|
|
673
|
+
marker-bounded block belonging to some other tool is one `init` never wrote, so
|
|
674
|
+
it is never a `files` entry and never this verb's to touch. The trim is left
|
|
675
|
+
**unstaged** — the rest of that file is yours to review.
|
|
676
|
+
|
|
677
|
+
**Directory pruning is bottom-up and removes only what is now empty.** A
|
|
678
|
+
directory still holding anything is left alone, whether that is a file you added
|
|
679
|
+
or one you edited: `uninstall` removes files it owns, never directories it
|
|
680
|
+
merely emptied around. A file you added inside a vendored directory is not on
|
|
681
|
+
the roster, so it is never removed — and `--dry-run` names it, because a
|
|
682
|
+
directory left behind holding only your own files is a surprise worth spending a
|
|
683
|
+
line on before the run rather than after.
|
|
684
|
+
|
|
685
|
+
**The hook opt-in is reported, not rewritten.** When `core.hooksPath` points
|
|
686
|
+
inside the gates directory that was just removed, `uninstall` prints the
|
|
687
|
+
`git config --unset core.hooksPath` line for you to run and does not run it. Git
|
|
688
|
+
config is outside the ownership roster, and a `core.hooksPath` naming a
|
|
689
|
+
directory that is not there is inert rather than breaking, so there is
|
|
690
|
+
nothing here to justify writing outside the contract.
|
|
691
|
+
|
|
692
|
+
`--dry-run` prints the plan — what would be removed, what would be kept and why,
|
|
693
|
+
the residual manifest if there is one, and any file of yours that will be left
|
|
694
|
+
behind inside a vendored directory — writes nothing, and exits 0.
|
|
695
|
+
|
|
696
|
+
**The commit** is one commit naming the profile and the version, staging the
|
|
697
|
+
removals and the manifest disposition. Files kept for you are never staged, on
|
|
698
|
+
the same reasoning that keeps `init`'s written set and its recorded roster
|
|
699
|
+
apart. A run with nothing to remove says so and exits 0 without narrowing the
|
|
700
|
+
manifest: the install is still there, so disowning it would be false.
|
|
312
701
|
|
|
313
702
|
## Profiles
|
|
314
703
|
|
|
315
|
-
You pick how much of the methodology to meet first
|
|
316
|
-
`starter`,
|
|
317
|
-
|
|
318
|
-
|
|
704
|
+
You pick how much of the methodology to meet first, and *which part* of it —
|
|
705
|
+
`starter`, `delegation`, `prose`, `full`. Those are not four rungs on one ladder:
|
|
706
|
+
`delegation` and `prose` contain neither the other, because they answer different
|
|
707
|
+
questions about what your repository is.
|
|
708
|
+
|
|
709
|
+
**The contract is the lattice, and it always was.** Profiles are ordered
|
|
710
|
+
by kit-set containment, and that order is derived from the rosters rather than
|
|
711
|
+
declared beside them. The promise it makes, stated precisely: *moving from a
|
|
712
|
+
profile to one that contains it only ever adds — to the vendored tree and to the
|
|
713
|
+
battery you run — and profiles that contain neither the other are alternatives,
|
|
714
|
+
not steps.* The order is bounded: exactly one profile sits below every other,
|
|
715
|
+
exactly one above every other, and the one above is `full` by construction.
|
|
716
|
+
So nothing you already vendored is taken away or rearranged underneath you when
|
|
717
|
+
you move up, and a profile that is nobody's step is still a legitimate member.
|
|
319
718
|
|
|
320
719
|
- **`starter`** is the framework — the gate SDK on its own. You get a battery,
|
|
321
720
|
a generated pre-commit hook, and gates that already red on real defects in
|
|
@@ -325,13 +724,24 @@ already vendored is taken away or rearranged underneath you.
|
|
|
325
724
|
evidence a stage produces before it can close, the protocol it follows when
|
|
326
725
|
it spawns, the context budget it runs inside, the permission surface it acts
|
|
327
726
|
through, and the delivery doctrine it follows.
|
|
727
|
+
- **`prose`** adds canon-kit instead: the kit whose subject is authored
|
|
728
|
+
documents, for a repository whose artifacts are prose rather than code. What
|
|
729
|
+
arrives armed is link, claim, staleness and pointer governance over every
|
|
730
|
+
`README.md` at any depth and your agent file — real for a documentation repo,
|
|
731
|
+
since a docs tree is usually a tree of READMEs. It is deliberately **not**
|
|
732
|
+
governance over `docs/*.md`: no kit spells one project's prose layout, so
|
|
733
|
+
widening the corpus is your own `CANON_KIT_PROSE_SURFACE_GLOBS` line in the
|
|
734
|
+
canon-kit config seam `init` already writes into your gates directory.
|
|
328
735
|
- **`full`** is everything in the payload.
|
|
329
736
|
|
|
330
|
-
`starter` and `
|
|
737
|
+
`starter`, `delegation` and `prose` are rosters in `profiles.list`, because none
|
|
331
738
|
follows from the tree — each is a judgment about what an adopter should meet
|
|
332
739
|
first, and the file records the criterion behind each membership beside it.
|
|
333
740
|
`full` is derived instead: it is every kit root the payload carries, resolved
|
|
334
|
-
at run time, never a list to maintain.
|
|
741
|
+
at run time, never a list to maintain. The **shape** is derived too — the order,
|
|
742
|
+
its bounds, and the monotonicity above are computed from the rosters and the
|
|
743
|
+
payload by `lib/common/profile.sh`, so a membership row and a declared parent
|
|
744
|
+
can never disagree.
|
|
335
745
|
|
|
336
746
|
## The manifest
|
|
337
747
|
|
|
@@ -339,9 +749,25 @@ at run time, never a list to maintain.
|
|
|
339
749
|
and that file is tracked like everything else it writes. It is JSON, read with
|
|
340
750
|
`jq`, and it is the install-ownership record: what was installed, from which
|
|
341
751
|
upstream state, and which files this installer owns. `lib/common/lock.sh` is
|
|
342
|
-
its schema owner — the wire key, the accessors,
|
|
343
|
-
so the
|
|
344
|
-
apart.
|
|
752
|
+
its schema owner — the wire key, the accessors, the hash rule and the emitter
|
|
753
|
+
live there, so the two verbs that write a manifest and the verbs that read one
|
|
754
|
+
cannot drift apart. Being the single writer is what makes the shape a contract
|
|
755
|
+
rather than a convention: keys are sorted at every nesting level, and a field is
|
|
756
|
+
present exactly when its writer supplied one, so an omission leaves the key
|
|
757
|
+
**absent** rather than null or blank. `commit` is the field that rule most
|
|
758
|
+
recently had to be applied to: a package with no commit stamp leaves it out of
|
|
759
|
+
the manifest rather than writing it empty, on the same conditional footing the
|
|
760
|
+
`artifact` key already sat on. Until the `jq` precondition landed ahead of it, an
|
|
761
|
+
empty `commit` was ambiguous between *no stamp* and *no `jq`* and was masked by
|
|
762
|
+
statement order alone; with `jq`'s absence refused up front the field is
|
|
763
|
+
decidable, and the writer's existing omission rule settles it with no new one.
|
|
764
|
+
|
|
765
|
+
Reading it needs `jq`, and that is a dependency of the verbs rather than of the
|
|
766
|
+
file: `lock.sh` declares it once, beside the wire format it is a fact about, and
|
|
767
|
+
each JSON-reading verb calls that declaration before its first read. So a machine
|
|
768
|
+
without `jq` is told which program is missing, instead of being told the package
|
|
769
|
+
has no version stamp or the manifest has an unknown schema — refusals that are
|
|
770
|
+
correct for the conditions they name and were never correct for this one.
|
|
345
771
|
|
|
346
772
|
The wire key is versioned (`checkwright-lock v1`, in `CHECKWRIGHT_LOCK_SCHEMA`)
|
|
347
773
|
and a build that meets a key it does not know refuses rather than guessing at
|
|
@@ -354,9 +780,22 @@ the shape behind it.
|
|
|
354
780
|
| `commit` | the 40-hex commit the payload was assembled from | `doctor` prints it — it is what lets a reviewer resolve the vendored tree to an exact upstream state |
|
|
355
781
|
| `profile` | the profile selected | a re-run of `init` re-applies the same profile without asking again |
|
|
356
782
|
| `kits` | the vendored kit set | `init`'s re-run file plan, and `doctor`'s installed-set report |
|
|
357
|
-
| `files` | `init`'s ownership roster — each path it has written, at the content hash it last wrote there, until the file leaves the tree | `init`'s changed-file detection: a file whose hash still matches is rewritten, one that has changed is reported rather than overwritten, and stays on the roster so the next run reads it the same way, whether or not the running release still ships that path |
|
|
783
|
+
| `files` | `init`'s ownership roster — each path it has written, at the content hash it last wrote there, until the file leaves the tree | `init`'s changed-file detection: a file whose hash still matches is rewritten, one that has changed is reported rather than overwritten, and stays on the roster so the next run reads it the same way, whether or not the running release still ships that path. `uninstall` walks the same roster to decide what it may remove and what it must keep, and `diff` classifies it against the tree |
|
|
358
784
|
| `artifact` | the gate binary's `target` and its SHA-256 `digest`, or absent | `doctor` reports the target and re-verifies the digest in place; a re-run of `init` compares the target against this host and skips the rewrite while the digest still holds |
|
|
359
785
|
|
|
786
|
+
**Resolving one of your own seam files is an exact-path question, not a search.**
|
|
787
|
+
`doctor` and `uninstall` both need to know which `gates.list` — or which
|
|
788
|
+
`gate-sdk-config.sh` — is *yours*, because the vendored kits carry fixture trees
|
|
789
|
+
holding files of the same name. `files` already answers it: it records the
|
|
790
|
+
repo-relative path `init` wrote, and `lib/common/recipe.sh` owns the gates-dir
|
|
791
|
+
constant `init` wrote it under, so `lock_own_file` asks whether the manifest
|
|
792
|
+
records that exact path and returns it or nothing. A tail match cannot answer it,
|
|
793
|
+
and **no predicate over the recorded kit set repairs a tail match**: `files`
|
|
794
|
+
outlives `kits` by design, so a re-run at a narrower profile leaves the dropped
|
|
795
|
+
kits' fixture paths on the roster with nothing excluding them, and the residual
|
|
796
|
+
manifest below carries no `kits` key at all — there, such a predicate excludes
|
|
797
|
+
nothing whatever. The consumer smoke's narrowing arm is the oracle for both.
|
|
798
|
+
|
|
360
799
|
**A recorded hash is what `init` last wrote at that path** — on whichever run
|
|
361
800
|
last wrote it — and not the state of the tree at the end of the current run. The
|
|
362
801
|
two readings coincide for every path `init` rewrites and part company for exactly
|
|
@@ -366,6 +805,11 @@ rather than recomputed, so the next run still has something to compare your
|
|
|
366
805
|
content against, still finds it different, and still leaves it alone. Editing a
|
|
367
806
|
file changes who may write it; it never changes whether `init` is tracking it.
|
|
368
807
|
|
|
808
|
+
**`checkwright.lock` is not on its own roster.** `init` adds the manifest to what
|
|
809
|
+
it has written only after emitting it, so the lock file never records itself. Any
|
|
810
|
+
path that walks `files` to decide what this installer owns therefore has to
|
|
811
|
+
dispose of the manifest explicitly: the roster will not name it.
|
|
812
|
+
|
|
369
813
|
**One entry is a span rather than a file, and it is still an ordinary entry.**
|
|
370
814
|
Everything above reads a `files` row as a whole file `init` wrote. The agent
|
|
371
815
|
file is the exception: `init` creates it only when it is absent, and thereafter
|
|
@@ -385,6 +829,10 @@ moment.** `init` owns a path because it wrote the file there, so only the file's
|
|
|
385
829
|
disappearance can end that. A release that stops shipping the path does not: the
|
|
386
830
|
file is still on disk, it may carry your edits, and disowning it is exactly what
|
|
387
831
|
would let a later release re-adding the same path write straight through them.
|
|
832
|
+
Neither does an `uninstall` that **kept** the file: a file kept is a file `init`
|
|
833
|
+
wrote that is still on disk, so its ownership has not ended and the roster must
|
|
834
|
+
retain it. That is the rule the residual manifest below follows, rather than a
|
|
835
|
+
carve-out from it.
|
|
388
836
|
|
|
389
837
|
**A relinquished path is an ordinary entry, not a state of its own.** When a
|
|
390
838
|
release stops shipping something `init` created, nothing visits that path on the
|
|
@@ -396,6 +844,17 @@ so `files` is bounded by the files `init` created that still exist, which is the
|
|
|
396
844
|
ownership set itself. What `init` never does is delete, so a path no release
|
|
397
845
|
ships any more stays on disk and stays yours to remove.
|
|
398
846
|
|
|
847
|
+
**"Nothing visited it on the run" is a claim about the whole run, so the
|
|
848
|
+
carry-forward is the last pass `init` makes before it stages.** Every path `init`
|
|
849
|
+
writes has to be on the written set by the time that pass runs, or it carries a
|
|
850
|
+
path `init` rewrote seconds earlier at a hash the run has already superseded — and
|
|
851
|
+
a carried path is not staged, so the file is left dirty *and* the roster records a
|
|
852
|
+
hash the run itself has replaced. Both halves reach past the worktree: `uninstall`
|
|
853
|
+
and `diff` read that hash to decide whether a path is still `init`'s, so a
|
|
854
|
+
superseded one reads to them as your edit. The generated projections are the ones
|
|
855
|
+
that can reach the pass from the wrong side, which is why `init` produces them
|
|
856
|
+
before it rather than after.
|
|
857
|
+
|
|
399
858
|
The hash carried forward is the one `init` wrote, not the one this payload would
|
|
400
859
|
have written. Either would protect the file, so protection does not decide it —
|
|
401
860
|
the **revert** does. Restore the file to what `init` put there and it is `init`'s
|
|
@@ -412,6 +871,30 @@ never asks whether it may write there and does nothing with the entry at all. Th
|
|
|
412
871
|
old behavior on the new data is the behavior the new meaning wants, so there is
|
|
413
872
|
nothing for a version key to protect.
|
|
414
873
|
|
|
874
|
+
**The residual manifest** is the second shape this file takes, and the exit rule
|
|
875
|
+
above is what produces it. When `uninstall` keeps at least one file, it rewrites
|
|
876
|
+
`checkwright.lock` over the survivors, and that object carries **`schema` and
|
|
877
|
+
`files` only**. `version`, `commit`, `profile`, `kits` and `artifact` all
|
|
878
|
+
describe an install this tree does not have, and a manifest asserting them would
|
|
879
|
+
be false. The survivors are recorded at the hashes `init` wrote and never at
|
|
880
|
+
yours: an entry rewritten at your hash would read as *unchanged* on the next
|
|
881
|
+
install and let it write straight through you, which is the defect this shape
|
|
882
|
+
exists to prevent — the same reason the roster names a dropped entry and an
|
|
883
|
+
adopter-hashed entry apart.
|
|
884
|
+
|
|
885
|
+
The wire key stays `checkwright-lock v1` here too, on the precedent just above:
|
|
886
|
+
an identity field an install always carries is optional within a shape a reader
|
|
887
|
+
already tolerates, which is a change of meaning rather than of shape. That it is
|
|
888
|
+
safe is a property of the existing readers, checked rather than assumed.
|
|
889
|
+
`init`'s downgrade refusal is guarded on a non-empty `version`, so an absent one
|
|
890
|
+
skips it — correct, since there is nothing to roll back. `init` re-reads
|
|
891
|
+
`profile` only to default it, so an absent one falls through to `starter`, which
|
|
892
|
+
is what a virgin tree gets and what the residue is. `doctor` reads the identity
|
|
893
|
+
fields for display, and rather than printing them blank it reads their absence
|
|
894
|
+
as the residue itself (§doctor). The honest residue is that a reader built
|
|
895
|
+
before this meets a residual manifest and prints blank identity fields —
|
|
896
|
+
uninformative, never wrong-acting.
|
|
897
|
+
|
|
415
898
|
A recorded **`files`** hash is `git hash-object`, never `sha256sum`. Not a
|
|
416
899
|
portability detail worth burying: macOS ships `shasum` rather than `sha256sum`,
|
|
417
900
|
and the answer is not a new tool requirement — git is already something the
|
|
@@ -454,30 +937,152 @@ the same owner.
|
|
|
454
937
|
registered as a validate suite so a bit-rotted activation path is a red
|
|
455
938
|
validate rather than a discovery at announcement.
|
|
456
939
|
|
|
457
|
-
**
|
|
458
|
-
resolves that tree from its own path
|
|
459
|
-
it
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
940
|
+
**The smoke packs the tree it lives in, by construction — the current directory
|
|
941
|
+
does not select it.** The script resolves that tree from its own path and hands
|
|
942
|
+
it to `scripts/pack-installer.sh --root` at every one of its pack call sites, so
|
|
943
|
+
the packed tree and the asserted tree are the same tree whatever directory you
|
|
944
|
+
invoke from. A clone's copy invoked by absolute path, a second
|
|
945
|
+
checkout, a linked worktree: all pack the tree the script belongs to. The
|
|
946
|
+
packer's flag roster has exactly one tier and it is the script itself —
|
|
947
|
+
`bash scripts/pack-installer.sh --help` prints it on stdout at exit 0 — so no
|
|
948
|
+
doc carries a second copy to drift.
|
|
949
|
+
|
|
950
|
+
*The former invocation requirement is retired, not merely unstated.* Until
|
|
951
|
+
`--root` existed, this section carried a standing rule — "run it with the
|
|
952
|
+
current directory inside the tree under test", with `env -C <clone>` as the
|
|
953
|
+
remedy — because the packer resolved its root from the current directory while
|
|
954
|
+
the smoke resolved its own from its script path, and nothing detected the
|
|
955
|
+
disagreement: the run packed the *invoking* tree and printed an ordinary success
|
|
956
|
+
for source the clone never contributed. That rule is now false rather than
|
|
957
|
+
merely unnecessary — following it changes nothing, and a reader who restores it
|
|
958
|
+
is guarding a hole that `--root` closed. The `PACK:` line names its resolved
|
|
959
|
+
root for exactly this reason, so a reviewer scanning smoke output can see which
|
|
960
|
+
tree the run described instead of inferring it from a twelve-character hash.
|
|
961
|
+
|
|
962
|
+
**The tree must be clean, and the suite says so before it spends ten minutes
|
|
963
|
+
proving it.** The smoke asserts that tree is clean in its preflight, beside the
|
|
964
|
+
tool checks and before the first build step. The packer keeps its own
|
|
965
|
+
dirty-worktree refusal — the preflight removes the common case but not the real
|
|
966
|
+
one, since the suite packs four separate times across a ~10-minute run and a
|
|
967
|
+
concurrent edit mid-run trips a check the caller did not choose the moment for.
|
|
968
|
+
That late refusal names the root it resolved and states that the check is
|
|
969
|
+
per-invocation, so it reads as a precondition checked at an awkward moment
|
|
970
|
+
rather than as a broken installer.
|
|
971
|
+
|
|
972
|
+
It builds the host gate binary, packs the package around it, installs it **from
|
|
973
|
+
the resulting tarball with
|
|
470
974
|
`--offline`**, and drives a scratch consumer once per profile: `init`, then the
|
|
471
975
|
battery must be green, then the manifest must agree with the tree it describes
|
|
472
|
-
file by file, then
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
976
|
+
file by file, then the **queue post-condition** — a profile whose kit set reads
|
|
977
|
+
the queue file must have one, satisfying `check-queue-sections`, and a profile
|
|
978
|
+
whose kit set does not must have none — then a re-run must leave the tree object
|
|
979
|
+
identical, then `doctor`
|
|
980
|
+
must exit 0 and name the installed profile, and then the **value arm** — the
|
|
981
|
+
consumer authors one page of markdown carrying one real defect, a mistyped
|
|
982
|
+
relative link in a `README.md`, and the battery's verdict on it is recorded
|
|
983
|
+
before the link is corrected and the battery must be green again. The fix is the
|
|
984
|
+
link and never the corpus: the tree the second run sees is byte-identical to the
|
|
985
|
+
first apart from the typo, so the green is the defect being gone rather than the
|
|
986
|
+
scan having narrowed, and a profile green on the first run must still be green
|
|
987
|
+
on the second. The arm restores the consumer to the commit it found, so the
|
|
988
|
+
reversal below still runs against the tree `init` wrote.
|
|
989
|
+
|
|
990
|
+
**The payload every profile installs carries a real gate binary**, because the
|
|
991
|
+
value claim is a claim about the product an adopter receives. The smoke compiles
|
|
992
|
+
the crate for the host target, emits the digest sidecar beside it and hands the
|
|
993
|
+
pair to `pack-installer.sh --artifacts` before the loop starts, so each profile's
|
|
994
|
+
battery is the battery a covered platform actually gets. It was not always so,
|
|
995
|
+
and the accident is worth naming rather than quietly fixed: a main loop packing
|
|
996
|
+
no artifact makes *every* profile an uncovered-platform install, so a value
|
|
997
|
+
verdict measured there is a verdict about the omitted battery wearing the
|
|
998
|
+
shipped one's name. It costs no new dependency — the preflight already requires
|
|
999
|
+
`cargo` and `rustc`.
|
|
1000
|
+
|
|
1001
|
+
*A host-built artifact is a harness stand-in, and is labelled one where the rule
|
|
1002
|
+
it stands beside is cited.* gate-sdk/SPEC.md §Consumer payload rules that the
|
|
1003
|
+
payload carries a prebuilt binary per declared target, *built by the release and
|
|
1004
|
+
never from a working tree*. The smoke builds from a working tree because it has
|
|
1005
|
+
no Release to draw on. That is a liberty this harness takes, not the payload rule
|
|
1006
|
+
relaxing: the publishing path still cannot build, and `pack-installer.sh` is
|
|
1007
|
+
still handed a directory it did not produce.
|
|
1008
|
+
|
|
1009
|
+
**The value claim is asserted over the loop, not inside it**, and it is two
|
|
1010
|
+
sentences: some profile catches the defect at all, and some profile *below* the
|
|
1011
|
+
payload-derived maximum catches it. The second is the load-bearing one — a
|
|
1012
|
+
defect only `full` catches is not value an adopter can choose, it is value they
|
|
1013
|
+
have to take everything for. Neither sentence names a gate: naming one would be
|
|
1014
|
+
a second roster to maintain beside `recipe_gates`, and the claim is about the
|
|
1015
|
+
battery rather than about a member of it. Nor does either name a profile, for
|
|
1016
|
+
the same reason the lattice assertions do not — which profiles catch a prose
|
|
1017
|
+
defect follows from the rosters, and spelling it here would be that derivation
|
|
1018
|
+
copied out. What the arm turns from a claim into an assertion is the one the
|
|
1019
|
+
install page makes hardest to check: an install that is green, idempotent and
|
|
1020
|
+
reversible is still worth nothing until it catches something.
|
|
1021
|
+
|
|
1022
|
+
That is the **coverage** claim, and it speaks only for a covered platform. What
|
|
1023
|
+
an adopter on an uncovered one gets is a different claim — **disclosure** — and
|
|
1024
|
+
it has its own leg, because folding the two into one verdict is what let a cohort
|
|
1025
|
+
of ports pass per member while emptying a value class for every binary-less
|
|
1026
|
+
install.
|
|
1027
|
+
|
|
1028
|
+
**The binary-less leg** installs one profile from a payload packed with no
|
|
1029
|
+
artifact, and asserts that every member the install loses is recorded
|
|
1030
|
+
`# omitted: <name> <reason>` in the consumer's own `gates.list` — against the set
|
|
1031
|
+
that payload dispatches to a binary, derived rather than spelled — and that the
|
|
1032
|
+
count is **non-zero**. The count is the half that matters: without it the
|
|
1033
|
+
completeness assertion passes vacuously on a payload that dispatches nothing,
|
|
1034
|
+
which is exactly the reading under which N individually runnable members
|
|
1035
|
+
discharged a cohort that left such a consumer with no markdown-link governance at
|
|
1036
|
+
all (gate-sdk/SPEC.md §The port-candidate criteria, criterion 5). The leg
|
|
1037
|
+
deliberately does **not** assert that the planted defect goes uncaught: pinning a
|
|
1038
|
+
missing capability as expected behavior would make the hole permanent the moment
|
|
1039
|
+
it closes. It names a profile where the value claim above names none, and the
|
|
1040
|
+
difference is real — this is a scoping choice about which install to run, not a
|
|
1041
|
+
derivation of which profiles catch what. The profile it names is the one whose
|
|
1042
|
+
roster criterion the binary-gated class empties.
|
|
1043
|
+
|
|
1044
|
+
It also asserts the profile lattice
|
|
1045
|
+
against the installed payload, in four parts: every named kit resolves in the
|
|
1046
|
+
payload; the derived order has **exactly one minimum and exactly one maximum**,
|
|
1047
|
+
so the lattice is bounded; that maximum is the payload-derived profile; and
|
|
1048
|
+
**gate rosters are monotone** — for every comparable pair, the smaller profile's
|
|
1049
|
+
gate set is contained in the larger's. The fourth is the one that earns
|
|
1050
|
+
`recipe_gates`' profile argument: what you experience is the battery, not the
|
|
1051
|
+
directory list, so "moving up only ever adds" is a claim about gates, and
|
|
1052
|
+
kit-set containment stops implying it the moment a roster varies by profile.
|
|
1053
|
+
Nothing here counts profiles; a fourth is admitted exactly when it fits.
|
|
1054
|
+
|
|
1055
|
+
**The reversal arm** then runs on that same consumer, so every profile is
|
|
1056
|
+
installed *and* reversed. In order: `diff` must exit 0 and report the freshly
|
|
1057
|
+
installed tree clean; `uninstall --dry-run` must name a non-zero removal count
|
|
1058
|
+
while leaving the tree object and `git status` exactly as they were; then
|
|
1059
|
+
`uninstall`, after which the consumer's tree object must equal the one it had
|
|
1060
|
+
**before `init` ran**, the worktree must be clean, and no `checkwright.lock` may
|
|
1061
|
+
remain. The `--dry-run` step is where the writes/does-not-write rule in §The
|
|
1062
|
+
verbs is asserted for `uninstall`, and asserted behaviorally: a flag that parsed
|
|
1063
|
+
and then wrote anyway fails it, where a flag that merely existed would pass. It
|
|
1064
|
+
is the only verb this arm holds to that rule — §The verbs states the bound.
|
|
1065
|
+
|
|
1066
|
+
**The tree-object equality is the load-bearing assertion, and it proves more
|
|
1067
|
+
than `uninstall`.** Nothing else here asserts that the manifest covers
|
|
1068
|
+
*everything* `init` wrote — the per-profile check runs the other direction,
|
|
1069
|
+
every recorded entry against the tree. A file `init` wrote and failed to record
|
|
1070
|
+
survives the removal and breaks this equality, so the arm closes that hole as a
|
|
1071
|
+
side effect. It is also the assertion form of the claim the install page makes:
|
|
1072
|
+
an install an evaluator can reverse.
|
|
1073
|
+
|
|
1074
|
+
The equality holds for a reason rather than by luck. The surfaces `init` seeds
|
|
1075
|
+
and then leaves alone — the queue file, the agent file, the evidence manifests,
|
|
1076
|
+
the workflow state — are recorded at `init`'s own hashes, and this consumer
|
|
1077
|
+
never edits them, so the ordinary hash rule removes them. That same rule keeps
|
|
1078
|
+
them on a tree where an adopter *has* grown them. No special case either way,
|
|
1079
|
+
which is why the arm needs none.
|
|
476
1080
|
|
|
477
1081
|
A second arm drives the **download transport**: it verifies the packed tarball
|
|
478
1082
|
against a digest the smoke computes, extracts it with `tar` rather than npm,
|
|
479
|
-
and runs the same `init
|
|
480
|
-
**masked off `PATH
|
|
1083
|
+
and runs the same `init`, the same post-conditions and the same reversal with
|
|
1084
|
+
`npm` and `node` **masked off `PATH`** — so `diff` and `uninstall` are proved
|
|
1085
|
+
Node-free by the arm that already exists, at no extra pack cost. It runs against `full` alone rather than per profile —
|
|
481
1086
|
what the per-profile loop proves (the payload resolves and each profile's kit
|
|
482
1087
|
set is present) is profile-dependent, while what this arm proves (the same
|
|
483
1088
|
payload reached the tree without Node) is transport-independent, and `full` is
|
|
@@ -502,6 +1107,73 @@ it wherever Node is installed there. The residue is that a payload merely
|
|
|
502
1107
|
*probing* for a Node binary still finds a name; one that *runs* it fails loudly
|
|
503
1108
|
and says which name it reached.
|
|
504
1109
|
|
|
1110
|
+
**The toolchain-free arm** points that same mask at `cargo` and `rustc`, and
|
|
1111
|
+
drives `doctor` and then a full `init` on a consumer that has neither. It
|
|
1112
|
+
asserts that `doctor` exits 0 and reports clean, that it names neither masked
|
|
1113
|
+
tool in its report — a contributor-audience member is omitted from the adopter's
|
|
1114
|
+
verdict, not shown as informational (§doctor) — and then, through the same
|
|
1115
|
+
post-conditions every other arm runs, that `init` succeeds and the vendored
|
|
1116
|
+
battery is green. `doctor` is asserted before `init` as well as inside it,
|
|
1117
|
+
because `init` reads only its exit status: the standalone verdict is what an
|
|
1118
|
+
adopter meets first and what every later refusal is downstream of.
|
|
1119
|
+
|
|
1120
|
+
That arm exists because nothing else here could see the defect it holds out.
|
|
1121
|
+
The smoke's own preflight *requires* `cargo` and `rustc`, legitimately — it
|
|
1122
|
+
builds the binary the payload carries — so every arm above drives `doctor` and
|
|
1123
|
+
`init` on a machine that has them. **Masking is per-arm**, which is exactly what
|
|
1124
|
+
lets this arm exist without weakening that preflight: the host requirement is
|
|
1125
|
+
unchanged and the build step still gets the real tools. What the arm asserts is
|
|
1126
|
+
sharpened by that payload rather than compromised by it — it installs a
|
|
1127
|
+
*prebuilt* artifact with no toolchain on `PATH`, which is the claim the port
|
|
1128
|
+
directive rests on: an adopter takes the pre-compiled path, and nothing on it
|
|
1129
|
+
compiles. The mechanism is the
|
|
1130
|
+
existing Node-free mask rather than a new facility, and it is reused rather than
|
|
1131
|
+
replaced by a knob for a reason: `INSTALLER_SMOKE_TMP_DIR` stays the smoke's only
|
|
1132
|
+
knob, a knob that suppressed a roster member would be a second, test-only
|
|
1133
|
+
audience axis whose production behavior no adopter ever exercises, and a masked
|
|
1134
|
+
`PATH` is what a machine with no Rust toolchain actually is.
|
|
1135
|
+
|
|
1136
|
+
**The `jq`-less arm** asserts what a machine without `jq` is told. It drives
|
|
1137
|
+
`init` on a tree with no manifest — the case that used to surface as *this
|
|
1138
|
+
package carries no version stamp* — then makes an ordinary install and drives
|
|
1139
|
+
`init`, `diff` and `uninstall` against it with `jq` gone, the cases that used to
|
|
1140
|
+
surface as *carries a schema this build does not know*. Each must refuse, **name
|
|
1141
|
+
`jq`**, carry a `help:` line and exit 2. Naming the program is the whole
|
|
1142
|
+
assertion, and asserting the exit status alone would have been worthless: these
|
|
1143
|
+
verbs already exited 2 before the precondition existed, so a status-only arm
|
|
1144
|
+
would have passed against the very defect being fixed. `doctor` is asserted on
|
|
1145
|
+
the other side of the boundary, and the boundary is *reaching the diagnosis*
|
|
1146
|
+
rather than the exit code: it must render its below-contract verdict, name `jq`
|
|
1147
|
+
as missing in the toolchain block, **and** say `jq` is why the manifest could not
|
|
1148
|
+
be read. Exit 1 is the correct verdict there, and asserting exit 0 would have
|
|
1149
|
+
been asserting the opposite of the contract — `jq` is a floor member, so a
|
|
1150
|
+
machine without it is below contract and `doctor` is the verb that says so.
|
|
1151
|
+
|
|
1152
|
+
The gap that arm closes was total, and it is why this defect could be filed
|
|
1153
|
+
twice: the smoke's preflight requires `jq` and this harness reads every manifest
|
|
1154
|
+
assertion above with it, so nothing in this tree had ever exercised a `jq`-less
|
|
1155
|
+
install. **Masking is per-arm** here for a reason the other two masks do not
|
|
1156
|
+
have — a mask on the harness's own `PATH` would disarm the assertions rather
|
|
1157
|
+
than the installer, so the mask rides the verb's `PATH` alone and the preflight
|
|
1158
|
+
is unchanged.
|
|
1159
|
+
|
|
1160
|
+
**This mask is by absence, and that is a different instrument from the other
|
|
1161
|
+
two** — the distinction is which question is being asked, not a matter of taste,
|
|
1162
|
+
and it is written down because the failing-shim idiom is what a later reader will
|
|
1163
|
+
reach for. The Node-free and toolchain-free arms ask whether the payload ever
|
|
1164
|
+
*reaches* a program, so a shim that fails loudly and names itself is exactly the
|
|
1165
|
+
right tool. This arm asks what a machine *without* `jq` is told, and a shim is a
|
|
1166
|
+
`jq` that is present: `command -v jq` — the precondition's own predicate —
|
|
1167
|
+
resolves it, the precondition never fires, and the verbs run straight into the
|
|
1168
|
+
misdiagnosis the arm exists to catch. So the arm builds a directory of links to
|
|
1169
|
+
every program on `PATH` except `jq` and runs the verbs against that. It is
|
|
1170
|
+
derived from the live `PATH` rather than from a maintained list of the programs
|
|
1171
|
+
these verbs happen to use, so it cannot fall out of date the way such a list
|
|
1172
|
+
would, and the mask is proved in **both** directions: `jq` must resolve to
|
|
1173
|
+
nothing, and a control program must still resolve, since a farm that failed to
|
|
1174
|
+
populate would fail every verb for a reason that has nothing to do with `jq` and
|
|
1175
|
+
pass this arm on the wrong refusal.
|
|
1176
|
+
|
|
505
1177
|
**The upgrade arm** drives a cross-version run, because every arm above installs
|
|
506
1178
|
at one version and re-runs at that same one. It packs a second tarball a patch
|
|
507
1179
|
version higher, installs `starter` from the first, has the adopter edit and
|
|
@@ -544,6 +1216,23 @@ derived from the one packed before it and the arm refuses to run unless the
|
|
|
544
1216
|
derivation is strictly higher, so neither hop can quietly turn into a second test
|
|
545
1217
|
of the downgrade refusal.
|
|
546
1218
|
|
|
1219
|
+
**The first hop's clean-worktree assertion carries a tripwire**, for the same
|
|
1220
|
+
reason the binary-less leg's disclosure count does: the assertion is evidence
|
|
1221
|
+
only over a hop that rewrote something. This arm's payload is artifact-free over
|
|
1222
|
+
the lattice minimum, and for as long as that kit set dispatched no member to the
|
|
1223
|
+
binary, `init` seeded no omission, the hop rewrote nothing beyond the manifest,
|
|
1224
|
+
and the assertion passed for a reason unrelated to correctness — which is how a
|
|
1225
|
+
defect leaving that very worktree dirty reached the tree under a green
|
|
1226
|
+
assertion. So the hop asserts a **non-zero** count of omission-declaring lines in
|
|
1227
|
+
the consumer's own registry *before* asserting the worktree is clean, reading the
|
|
1228
|
+
registry rather than the run's output because the registry is what a later run
|
|
1229
|
+
and a reviewer both read, and treating an absent registry as a count of zero
|
|
1230
|
+
rather than as a reason to abort. Its failure names the remedy — **re-scope the
|
|
1231
|
+
arm onto a profile whose kit set ships a member `init` seeds and dispatches to
|
|
1232
|
+
the binary, never drop the assertion.** Its scope is the first hop; the second
|
|
1233
|
+
hop's clean-worktree assertion carries no tripwire, and widening it is a separate
|
|
1234
|
+
judgment.
|
|
1235
|
+
|
|
547
1236
|
**The seam arm** covers the two surfaces `init` rewrites on every run — a
|
|
548
1237
|
`templates/*-config.sh` destination and gate-sdk's `msg-patterns.list` — which no
|
|
549
1238
|
arm above reaches. That is not an oversight in those arms: the upgrade arm's
|
|
@@ -552,40 +1241,92 @@ exercise a different file class and stay true without covering this one. This ar
|
|
|
552
1241
|
re-runs at the **same version with no flags**, which is the whole point — the
|
|
553
1242
|
class needs no upgrade and no `--force`, so an arm that only ran across versions
|
|
554
1243
|
would attribute it to a path it does not live on. It is its own scratch consumer
|
|
555
|
-
at the
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
1244
|
+
at the **maximum** profile — the only profile whose kit set is fixed by the
|
|
1245
|
+
payload rather than by a roster judgment, so both surfaces it edits are present
|
|
1246
|
+
by construction rather than by a membership row that may be revised — and its own
|
|
1247
|
+
consumer because an adopter edit inside the per-profile loop would break the
|
|
1248
|
+
file-by-file agreement that loop exists to assert. After the adopter edits and commits both, the re-run
|
|
559
1249
|
must leave both byte-identical, name both as changed, and still record `init`'s
|
|
560
1250
|
hash for each rather than the adopter's. It reuses the already-installed package,
|
|
561
1251
|
so it costs no second pack.
|
|
562
1252
|
|
|
563
|
-
**The
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
1253
|
+
**The protection branch chains onto that consumer** rather than onto the
|
|
1254
|
+
reversal arm, because an adopter edit is exactly the case tree-object equality
|
|
1255
|
+
cannot host — the edit is what breaks the equality. This arm already has two
|
|
1256
|
+
edited, committed vendored files, which is precisely the case that reaches
|
|
1257
|
+
`uninstall`'s keep branch. So after its own assertions it runs `diff`, which
|
|
1258
|
+
must exit **1** and name both files; then `uninstall`, which must keep both,
|
|
1259
|
+
report both, remove every other recorded file, and leave a `checkwright.lock`
|
|
1260
|
+
carrying `schema` and a `files` map of exactly those two paths **at `init`'s
|
|
1261
|
+
hashes, not the adopter's** — the same apart-naming the upgrade arm uses and for
|
|
1262
|
+
the same reason, since an entry dropped reads as never-installed and an entry at
|
|
1263
|
+
the adopter's hash reads as unchanged, and either would let the next `init`
|
|
1264
|
+
write through them.
|
|
1265
|
+
|
|
1266
|
+
That residual object is asserted for **shape**, not only for field presence,
|
|
1267
|
+
because the single-writer contract in §The manifest is exactly what an accessor
|
|
1268
|
+
cannot check: a missing key and a present-but-null key both read back as the
|
|
1269
|
+
empty string. So the assertions run on the captured manifest text itself —
|
|
1270
|
+
`has("artifact")` must be false, so the omitted flag left the key absent rather
|
|
1271
|
+
than null, and re-piping the object through a recursive sort must reproduce it
|
|
1272
|
+
byte for byte, so the sort reached every nesting level rather than the top one.
|
|
1273
|
+
Both run here because this is the one call site that ever emits the
|
|
1274
|
+
no-identity, no-artifact shape; the per-profile loop's fresh install already
|
|
1275
|
+
exercises the other writer field by field.
|
|
1276
|
+
|
|
1277
|
+
**The narrowing arm** is the only arm that moves a consumer *down* the lattice:
|
|
1278
|
+
it installs the maximum profile and re-runs `init` at the minimum. Every other
|
|
1279
|
+
re-run holds the profile fixed, so none reaches the state where `files` outlives
|
|
1280
|
+
`kits` — and that state is not exotic, it is the ordinary consequence of the
|
|
1281
|
+
carry-forward rule, which keeps every once-vendored path on the roster while the
|
|
1282
|
+
recorded kit set shrinks. For every seam path the narrowed manifest records it
|
|
1283
|
+
asserts that the path still resolves to the consumer's **own** file, and that a
|
|
1284
|
+
`kits`-stripped copy of that same manifest — the residual shape — resolves it the
|
|
1285
|
+
same way; then that `doctor` names the consumer's own `gates.list` as the
|
|
1286
|
+
registry it inspected. It asserts its own premise too: at least one seam path
|
|
1287
|
+
checked, and at least one of those genuinely shadowed by a vendored fixture tree,
|
|
1288
|
+
or the resolver has nothing to be ambiguous about and a green result would mean
|
|
1289
|
+
only that the payload changed shape.
|
|
1290
|
+
|
|
1291
|
+
*Its honest limit.* Only the recorded paths are asserted on, and the config seam
|
|
1292
|
+
is written on the artifact placement path alone — so on a payload carrying no
|
|
1293
|
+
prebuilt binary the arm would resolve the registry and not the seam. It runs
|
|
1294
|
+
against the main payload, which carries one, so both are checked today; what the
|
|
1295
|
+
arm still refuses to do is *demand* the seam, because that would fail it on the
|
|
1296
|
+
payload rather than on the resolver. The residual shape is what keeps it biting
|
|
1297
|
+
either way: with no `kits` key, a tail match returns a vendored fixture for
|
|
1298
|
+
`gates.list` too.
|
|
1299
|
+
|
|
1300
|
+
**Every arm above rides §The gate binary's placement outcome**, because the
|
|
1301
|
+
payload they install carries this run's artifact: the binary is written, an
|
|
1302
|
+
`artifact` key reaches the manifest, nothing is omitted, and each profile's
|
|
1303
|
+
battery dispatches its `.gate` members through the placed path. The **omission**
|
|
1304
|
+
outcome is not thereby lost — it is what the binary-less leg above is for, and
|
|
1305
|
+
there the members recorded `# omitted:` are exactly the ones the consumer's own
|
|
1306
|
+
vendored tree implements as a binary subcommand. That set is derived rather than
|
|
1307
|
+
spelled, which is what keeps the assertion alive: a literal would read as green
|
|
1308
|
+
on a tree where nothing has ported and stop asserting on the first tree where
|
|
1309
|
+
something has.
|
|
1310
|
+
|
|
1311
|
+
**The binary is built rather than fabricated**, which is what makes the placement
|
|
1312
|
+
branch worth exercising at all. A stand-in with a matching digest would drive the
|
|
1313
|
+
same code while leaving the one thing most likely to break — the real build's
|
|
1314
|
+
digest agreeing with what `init` verifies before writing — covered by nothing. So
|
|
1315
|
+
the smoke asserts the target `init` selected against what `rustc` independently
|
|
1316
|
+
reports this host to be, the recorded digest against the one the build step
|
|
1317
|
+
emitted, the binary executable at the path the config seam names, and both that
|
|
1318
|
+
path and the seam on the manifest roster.
|
|
1319
|
+
|
|
1320
|
+
**The artifact arm is what remains once the main payload carries the binary**:
|
|
1321
|
+
the outcomes a single install cannot show. It takes its own extraction of that
|
|
1322
|
+
same tarball and mutates the copy, rather than packing a second time — a host
|
|
1323
|
+
**off** the roster omits and declares and exits clean, a **tampered** artifact
|
|
1324
|
+
refuses with the consumer's tree object unchanged and no manifest written, and a
|
|
1325
|
+
**declared** target whose artifact is gone refuses rather than omitting. The last
|
|
1326
|
+
two are what keep the three outcomes of §The gate binary's table from collapsing
|
|
1327
|
+
into each other. Mutating an extracted package rather than adding a flag to the
|
|
1328
|
+
publishing path is deliberate: it leaves the publisher no way to ship a payload
|
|
1329
|
+
with a hole in it.
|
|
589
1330
|
|
|
590
1331
|
`pack-installer.sh` gains nothing from this: the **smoke** builds and hands it a
|
|
591
1332
|
directory, while the publishing path still never builds, so a locally built
|
|
@@ -596,11 +1337,14 @@ than a property of the design.* A single host build satisfies `--artifacts` only
|
|
|
596
1337
|
while `native/targets.list` declares this host alone — pack refuses a roster
|
|
597
1338
|
target no leg built, and refusing is right, because a payload missing a declared
|
|
598
1339
|
target is broken rather than narrower. The moment the roster declares a second
|
|
599
|
-
target the
|
|
600
|
-
|
|
1340
|
+
target the build step blocks rather than passing, naming its own re-entry: steer
|
|
1341
|
+
its pack at a narrowed roster through `GATE_SDK_NATIVE_TARGETS_FILE`
|
|
601
1342
|
(gate-sdk/SPEC.md §Layout and configuration) so the smoke commits to the host
|
|
602
|
-
alone while the published payload still commits to all of them, or give the
|
|
603
|
-
a cross-compiling build. Neither is built ahead of the second target.
|
|
1343
|
+
alone while the published payload still commits to all of them, or give the step
|
|
1344
|
+
a cross-compiling build. Neither is built ahead of the second target. Note where
|
|
1345
|
+
that block now falls: the build precedes the main pack, so a second declared
|
|
1346
|
+
target stops the whole smoke rather than only its last arm — which is the honest
|
|
1347
|
+
consequence of the main payload carrying the artifact, not a regression.
|
|
604
1348
|
|
|
605
1349
|
Its only knob is `INSTALLER_SMOKE_TMP_DIR`, and it writes nothing inside the
|
|
606
1350
|
worktree: the crate's build output lands in gitignored build space and the
|
|
@@ -611,6 +1355,21 @@ needs `cargo` and `rustc` too, alongside the tools every other arm needs, and
|
|
|
611
1355
|
refuses at the same preflight when either is missing — a machine that cannot
|
|
612
1356
|
compile the crate has not falsified the install path.
|
|
613
1357
|
|
|
1358
|
+
**What it costs to run, because the precondition above is only expensive if you
|
|
1359
|
+
know that.** Re-measured 2026-08-13 on one developer machine, against
|
|
1360
|
+
the composition this section describes — four profiles × install + battery +
|
|
1361
|
+
value arm, the binary-less leg, four packs, an npm install and one release build
|
|
1362
|
+
of the crate — the whole smoke took **272 seconds**. The 2026-08-09 measurement
|
|
1363
|
+
it replaces was 227 over a composition with one arm fewer, taken twice
|
|
1364
|
+
independently inside a full `evidence-kit/bin/run-validate.sh` whose 24 suites
|
|
1365
|
+
finished in about 536.
|
|
1366
|
+
So it fits one ordinary foreground invocation and needs no session-window
|
|
1367
|
+
planning, and the clean worktree it holds is held for minutes rather than for a
|
|
1368
|
+
working session. That is a **dated measurement on one machine, not a live claim**
|
|
1369
|
+
— it is recorded because sessions kept re-deriving it by wall clock and one
|
|
1370
|
+
estimated it an order of magnitude high; re-measure rather than trust the number
|
|
1371
|
+
if the decision turns on it.
|
|
1372
|
+
|
|
614
1373
|
*Why the payload has no gate of its own.* The obvious sibling check would assert
|
|
615
1374
|
that the packed payload matches the repository's kit roots. It is deliberately
|
|
616
1375
|
not a gate: the payload exists only at pack time, so the gate would have to run
|