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
|
@@ -76,7 +76,9 @@ pattern): wired as the harness's session-start hook via
|
|
|
76
76
|
Every step is guarded and degrades silently — the hook never fails a
|
|
77
77
|
session. Steps, in order:
|
|
78
78
|
|
|
79
|
-
1. **Queue index** — via queue-kit's `queue-index
|
|
79
|
+
1. **Queue index** — via queue-kit's `queue-index` arm, reached through the
|
|
80
|
+
battery runner's `--emit` front-end (queue-kit/SPEC.md §The queue-index arm),
|
|
81
|
+
collapsing the
|
|
80
82
|
Deferred section to a tally except on the close and scope stages. The stage
|
|
81
83
|
it routes on comes from the cursor — `CONTEXT_KIT_STATE_FILE`'s last data
|
|
82
84
|
line — with an empty cursor (no such file, or one truncated to its preamble
|
|
@@ -91,7 +93,7 @@ session. Steps, in order:
|
|
|
91
93
|
A configured icebox tier rides **both** branches as a one-line tally, so
|
|
92
94
|
this step needs no new stage routing: a dormant entry is already one line,
|
|
93
95
|
so there is no full listing of it to withhold, and the eviction work that
|
|
94
|
-
reads the tier reads
|
|
96
|
+
reads the tier reads `--emit queue-index --icebox-candidates` rather than this
|
|
95
97
|
index.
|
|
96
98
|
2. **Dirty-surface pre-run** — for each component with uncommitted
|
|
97
99
|
changes, pre-run the matching surface index (default: `pub-index` over
|
|
@@ -244,18 +246,38 @@ the array `PROBE_SET` and the predicate below and executes nothing else. It
|
|
|
244
246
|
carries no knob, deliberately: the roster is the kit's own dependency set, and a
|
|
245
247
|
consumer who could override it could only make the contract lie.
|
|
246
248
|
|
|
247
|
-
A roster element reads `<name>[:<min-version>[:<impl-token>]]`. A
|
|
249
|
+
A roster element reads `<name>[:<min-version>[:<impl-token>[:<audience>]]]`. A
|
|
250
|
+
bare name keeps
|
|
248
251
|
the original meaning — must be present, no version constraint — so the floor axis
|
|
249
252
|
is **per-member** rather than a number demanded of every member. The fields are
|
|
250
253
|
positional, so a member constrained by implementation alone carries an empty
|
|
251
254
|
min-version field (`awk::GNU`), and an empty field means what an omitted trailing
|
|
252
|
-
field means: `awk`, `awk:`, and `awk
|
|
255
|
+
field means: `awk`, `awk:`, `awk::` and `awk:::` are one unconstrained member. **A member
|
|
253
256
|
gains a floor only where a construct the battery actually runs forces one**, and
|
|
254
257
|
the forcing construct is recorded with it — a floor nobody's code forces is not
|
|
255
258
|
pinned, which is what stops a version number from rotting into an aspiration
|
|
256
259
|
(de-literalization applied to a version: the value is owned where the constraint
|
|
257
260
|
is provable).
|
|
258
261
|
|
|
262
|
+
**The audience axis.** The fourth field names *whose* floor a member is, because
|
|
263
|
+
the roster has two kinds of reader and one flat array gated both of them on all
|
|
264
|
+
of it. Its value set is closed and kit-owned exactly as the floor predicate's
|
|
265
|
+
verdict set is: the only declarable value is `contributor`, meaning *a
|
|
266
|
+
contributor-side floor with no install-time role*. The unmarked case is not
|
|
267
|
+
spelled — declaring the complement on every other member would be a roster
|
|
268
|
+
maintained against itself — so the emptiness rule above carries it: an empty or
|
|
269
|
+
omitted audience means every audience. `tool_floor_consumer_side <element>`
|
|
270
|
+
answers the one question a consumer-side reader asks, and exists so no such
|
|
271
|
+
reader re-implements that rule against a value set it does not own. A
|
|
272
|
+
consumer-side reader — `installer/lib/doctor.sh`, whose exit status is `init`'s
|
|
273
|
+
last precondition — filters its roster walk through that predicate and does not
|
|
274
|
+
probe, render or fail on a member the predicate excludes. A contributor-side
|
|
275
|
+
reader — `bin/env-probe.sh` — walks the roster whole and marks the audience
|
|
276
|
+
instead, since a contributor-side floor is exactly what it is reporting on.
|
|
277
|
+
The field is a grammar axis rather than a filter in the reader that needs it,
|
|
278
|
+
because a hard-coded exception is a literal de-literalization forbids and one
|
|
279
|
+
that re-fires the day a second contributor-only member lands.
|
|
280
|
+
|
|
259
281
|
The constrained members and what forces each:
|
|
260
282
|
|
|
261
283
|
- `bash:4.3` — the floor is set by the **highest** construct the battery runs,
|
|
@@ -263,8 +285,10 @@ The constrained members and what forces each:
|
|
|
263
285
|
(gate-sdk, guard-kit, delegation-kit, evidence-kit checks), `mapfile` (across
|
|
264
286
|
the kits), the `${x,,}` case expansion (canon-kit's `lib/spec.sh` and checks, a
|
|
265
287
|
delegation-kit template) — but the **nameref** (`local -n`, bash 4.3) outranks
|
|
266
|
-
them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources
|
|
267
|
-
`
|
|
288
|
+
them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources. The
|
|
289
|
+
leaf gate that carried the second instance, `check-comment-tier`, has since
|
|
290
|
+
ported to the binary substrate and its script is gone — which changes nothing
|
|
291
|
+
about the floor, because the nameref in the shared gate
|
|
268
292
|
library makes 4.3 universal rather than one leaf gate's requirement, so a
|
|
269
293
|
consumer below it cannot run the battery at all. Recorded here because the
|
|
270
294
|
earlier `4.0` was a fail-open: `env-probe` reported `ok` on a 4.2 box the
|
|
@@ -282,22 +306,39 @@ The constrained members and what forces each:
|
|
|
282
306
|
the battery at all rather than failing one gate. The representative member is
|
|
283
307
|
the binary carrying a forcing construct, which is also the floor predicate's
|
|
284
308
|
own comparison tool.
|
|
285
|
-
- `cargo:1.
|
|
309
|
+
- `cargo:1.71::contributor` — a **contributor-side** floor, never a runtime one,
|
|
310
|
+
and that reading is now declared on the element and read by name rather than
|
|
311
|
+
left as an aside: the audience field is what the consumer-side predicate
|
|
312
|
+
above resolves, so the sentence is enforced instead of merely written. It
|
|
313
|
+
carries
|
|
286
314
|
two tiers because two kinds of tree read it. Where a `.gate` descriptor is live
|
|
287
315
|
it is a **commit-time** floor — `gate_command` puts the binary on the pre-commit
|
|
288
316
|
path and is fail-closed on an absent one, so the battery will not run without a
|
|
289
317
|
built crate (gate-sdk/SPEC.md §What the dispatch seam does not settle); that is
|
|
290
|
-
this repo,
|
|
318
|
+
this repo today, its first cohort having landed. Everywhere else it stays the weaker
|
|
291
319
|
**contributor/build** floor: a consumer tree receives a prebuilt binary and never
|
|
292
320
|
a crate, so nothing there compiles at commit time. Both tiers rest on the same
|
|
293
|
-
forcing fact —
|
|
294
|
-
|
|
295
|
-
|
|
321
|
+
forcing fact — the **highest MSRV in the crate's resolved dependency graph**,
|
|
322
|
+
which since the settings cohort took the crate's first dependency
|
|
323
|
+
(gate-sdk/SPEC.md §The settings cohort, and the crate's first dependency) is
|
|
324
|
+
above the `edition = "2021"` floor of 1.56 that governed while the graph was
|
|
325
|
+
empty. It is re-derived against the lock at any dependency change rather than
|
|
326
|
+
recalled, and a move carries every surface stating it — including **§The
|
|
327
|
+
rendered verdict below and `docs/site-architecture.md`, both of which quote
|
|
328
|
+
this element as a *format example***, and both machine-checked by nothing. That
|
|
329
|
+
pair is named rather than described because a format example is the shape a
|
|
330
|
+
floor move keeps missing: it reads as illustration, so it survives the grep a
|
|
331
|
+
reader runs for the surface. The 1.56 → 1.71 move missed
|
|
332
|
+
`docs/site-architecture.md` at authoring and this section's own example at the
|
|
333
|
+
merge, the second caught only by a close-stage audit. It is also a `check-crate-arms` input: clippy
|
|
334
|
+
suppresses a lint whose suggested API postdates the declared floor, so raising
|
|
335
|
+
the floor un-suppresses lints against code no change touched.
|
|
336
|
+
`cargo` is the member rather than `rustc` because `cargo build` is what the
|
|
296
337
|
contributor routine and the `gates` workflow actually invoke, and the two ship as
|
|
297
338
|
one toolchain sharing a version banner — the representative-member rule the
|
|
298
|
-
`sort::coreutils` entry above states. The floor tracks the
|
|
299
|
-
|
|
300
|
-
would be exactly the aspiration this section's rule forbids. Runtime is
|
|
339
|
+
`sort::coreutils` entry above states. The floor tracks what the crate and its
|
|
340
|
+
graph actually require, not whatever rustc a given box happens to carry; pinning
|
|
341
|
+
the latter would be exactly the aspiration this section's rule forbids. Runtime is
|
|
301
342
|
unaffected: git remains the sole runtime dependency of a ported gate, shelled out
|
|
302
343
|
rather than embedded (TRAJECTORY.md §The closed rulings owns that constraint).
|
|
303
344
|
Every other member is a bare name — no construct in the battery forces a version
|
|
@@ -324,7 +365,12 @@ not one.
|
|
|
324
365
|
**The rendered verdict.** Each toolchain bullet carries the probed banner and,
|
|
325
366
|
for a constrained member, the constraint and its verdict — `` (floor 4.3, ok) ``,
|
|
326
367
|
`` (requires GNU — below contract) ``, `` (floor 4.3 — unverified) ``; an
|
|
327
|
-
unconstrained member carries no parenthetical. A
|
|
368
|
+
unconstrained member carries no parenthetical. A member carrying an audience
|
|
369
|
+
carries it here too, as `` (floor 1.71, contributor-only, ok) ``, and every line
|
|
370
|
+
that names such a member is marked the same way — the absent list and the
|
|
371
|
+
below-contract list included, because those are the two lines on which *below a
|
|
372
|
+
floor that is yours* and *below a floor you are not on the hook for* would
|
|
373
|
+
otherwise read alike. A `**Below contract:**` line joins
|
|
328
374
|
the existing `**Absent:**` line, reading `none` when clean and otherwise naming
|
|
329
375
|
each failing member through the verdict's own fields: `below` and `wrong-impl`
|
|
330
376
|
are distinguished because the remedies differ — upgrade versus install a
|
|
@@ -364,8 +410,8 @@ nothing unbidden.
|
|
|
364
410
|
`bin/always-loaded.sh` measures the standing surface: the summed line
|
|
365
411
|
count of the configured surface files (default `CLAUDE.md`) plus the
|
|
366
412
|
steady-state hook body, approximated by the configured hook-body command
|
|
367
|
-
(default: queue-kit's `queue-index
|
|
368
|
-
resolvable). The approximation is deliberate: the meter must never run the
|
|
413
|
+
(default: queue-kit's `queue-index` arm through the battery runner's `--emit`
|
|
414
|
+
front-end, `--collapse-deferred`, when resolvable). The approximation is deliberate: the meter must never run the
|
|
369
415
|
session-context hook itself — the hook emits this meter's own output line,
|
|
370
416
|
so self-measurement would recurse and inflate.
|
|
371
417
|
|
|
@@ -393,7 +439,7 @@ the measurement.
|
|
|
393
439
|
|
|
394
440
|
## bin/footprint
|
|
395
441
|
|
|
396
|
-
|
|
442
|
+
The footprint emitter publishes the kits' measured context footprint — the
|
|
397
443
|
adoption-cost evidence a consumer weighs before vendoring, the concrete form of
|
|
398
444
|
the token-economics positioning. Where the meter reads one consumer's live
|
|
399
445
|
always-loaded total, this reads the tracked kit surfaces and attributes the cost
|
|
@@ -427,17 +473,31 @@ honest. The exclusion is also a determinism requirement: the freshness gate
|
|
|
427
473
|
byte-compares the emission, so every measured surface must be a static tracked
|
|
428
474
|
file — a live hook run, being state-dependent, could never be byte-gated.
|
|
429
475
|
|
|
430
|
-
**Emission
|
|
431
|
-
`--emit`
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
476
|
+
**Emission, and the substrate it runs on.** The emitter is a **non-gate arm of
|
|
477
|
+
the gate binary**, `--emit-footprint` (gate-sdk/SPEC.md §The non-gate arm), and
|
|
478
|
+
it prints the committed `docs/footprint.md` page whole: front matter, method and
|
|
479
|
+
exclusion prose, then the table with a totals row. It is reached as
|
|
480
|
+
`bash gate-sdk/bin/run-gates.sh --emit footprint`, because an arm receives no
|
|
481
|
+
configuration of its own and that front-end resolves `CONTEXT_KIT_SURFACES`
|
|
482
|
+
across the config bridge before invoking it.
|
|
483
|
+
|
|
484
|
+
The emission is a **library function** the arm wraps rather than the arm itself,
|
|
485
|
+
which is what lets §check-footprint-fresh call it in-process and the value
|
|
486
|
+
rollup consume its per-kit figures as data rather than re-parsing the rendered
|
|
436
487
|
page.
|
|
437
488
|
|
|
489
|
+
**The advisory bare mode did not survive the port**, and its loss is the ported
|
|
490
|
+
script's deletion rather than a separate decision: the shell emitter printed a
|
|
491
|
+
human header plus the table on a bare invocation, and the replacement arm's
|
|
492
|
+
contract is exactly what `--emit` printed. The table is still reachable — it is
|
|
493
|
+
in the emitted page — so what went is the header, which had no reader that the
|
|
494
|
+
page does not serve. Advisory by construction is unchanged: the arm never joins
|
|
495
|
+
`gates.list`, and the freshness gate (§check-footprint-fresh) is what blocks a
|
|
496
|
+
stale page.
|
|
497
|
+
|
|
438
498
|
## The brevity gate
|
|
439
499
|
|
|
440
|
-
`
|
|
500
|
+
`check-brevity` — a section-agnostic name: the governed section
|
|
441
501
|
is a knob, so no section name binds the gate (a consumer's
|
|
442
502
|
`check-convention-brevity` would be its section-specific counterpart). It scans one designated
|
|
443
503
|
always-loaded file for a bulleted section where each `- **name:**` bullet
|
|
@@ -563,32 +623,184 @@ dir, the untracked local settings) is a local-environment scan, CI-neutral
|
|
|
563
623
|
|
|
564
624
|
## check-settings-pins
|
|
565
625
|
|
|
566
|
-
`checks/check-settings-pins.
|
|
567
|
-
|
|
626
|
+
`checks/check-settings-pins.gate` (hermetic, `precommit`, dispatched to the gate
|
|
627
|
+
binary — gate-sdk/SPEC.md §The settings cohort, and the crate's first dependency)
|
|
628
|
+
is the identity.conf pattern pointed at harness config. Every pin in
|
|
629
|
+
`CONTEXT_KIT_SETTINGS_PINS`
|
|
568
630
|
(default `${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`) holds against
|
|
569
631
|
the tracked settings file `CONTEXT_KIT_SETTINGS_FILE` (default
|
|
570
|
-
`.claude/settings.json`). Grammar: one `<
|
|
571
|
-
`#` comments and blanks ignored
|
|
572
|
-
rendering (`false`, `"1"`, `{"k":1}`). General-purpose by construction — any
|
|
632
|
+
`.claude/settings.json`). Grammar: one `<path> = <expected JSON>` per line,
|
|
633
|
+
`#` comments and blanks ignored. General-purpose by construction — any
|
|
573
634
|
settings key is pinnable — this consumer's first pins hold the
|
|
574
635
|
auto-memory-disabling keys.
|
|
575
636
|
|
|
637
|
+
**The left-hand side is a path expression, not a `jq` filter**, and the grammar
|
|
638
|
+
is complete:
|
|
639
|
+
|
|
640
|
+
```
|
|
641
|
+
path := '.' | step+
|
|
642
|
+
step := '.' ident | '.' '"' string '"' | '[' '"' string '"' ']' | '[' int ']'
|
|
643
|
+
ident := [A-Za-z_][A-Za-z0-9_]*
|
|
644
|
+
int := '-'? [0-9]+
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
A path **opens with `.`**; everything else — pipes, filters, `?` error
|
|
648
|
+
suppression, slices, iteration, functions, arithmetic — is refused, and the gate
|
|
649
|
+
turns that refusal into **exit 2 naming the offending pin, the knob it came from,
|
|
650
|
+
and the construct**. The leading-`.` rule is load-bearing rather than tidy: `jq`
|
|
651
|
+
reads a leading `["k"]` as an array *literal* and returns `["k"]`, so admitting
|
|
652
|
+
one would answer a question `jq` was never asked. This is a narrowing of a
|
|
653
|
+
consumer config surface, taken openly and refusing loudly outside the subset — not
|
|
654
|
+
the silent mis-scan the ERE cohort's foreclosure forbids, which binds *sizing an
|
|
655
|
+
implementation* to one consumer's usage while the documented grammar stays wider.
|
|
656
|
+
The knob's whole documented job is naming a settings key, which a path expression
|
|
657
|
+
expresses in full. Operator-ruled 2026-08-14, with a filter crate (`jaq`) priced
|
|
658
|
+
against it and declined; a later reader must not reopen it on the observation that
|
|
659
|
+
such a crate exists, because that observation is what the ruling was made against.
|
|
660
|
+
|
|
661
|
+
**The right-hand side is a JSON value, and the comparison is structural** — the
|
|
662
|
+
`jq -c` *rendering* is not the contract. A byte-rendering contract is unachievable
|
|
663
|
+
across `jq` versions and therefore cannot be a parity target: `jq` 1.6 re-renders
|
|
664
|
+
every number through a double where 1.7 preserves an unmutated literal, so
|
|
665
|
+
`{"x":1e3}` renders `1000` under one and `1e3` under the other, and a crate
|
|
666
|
+
holding byte parity with "`jq -c`" would be holding parity with whichever `jq` the
|
|
667
|
+
comparison ran against. Structural comparison has no such dependency and diverges
|
|
668
|
+
from the shell only in the forgiving direction — an expected side written with
|
|
669
|
+
non-canonical spacing now matches. Part of what *structural* means is one explicit
|
|
670
|
+
rule the object model does not give free: **numbers compare by their `f64` value
|
|
671
|
+
wherever they occur, every other shape by the parsed value's own equality**. The
|
|
672
|
+
parser's own equality separates `1` from `1.0` by variant where `jq` calls them
|
|
673
|
+
one value, and `jq`'s equality is not shallow, so a pin nested one level deep
|
|
674
|
+
would otherwise report a mismatch nobody would think to test for.
|
|
675
|
+
|
|
676
|
+
Two semantics are **preserved deliberately rather than improved**, because a port
|
|
677
|
+
proves parity and does not repair rules. A path evaluating to `null` is the
|
|
678
|
+
**absent** branch, whether the key is absent or explicitly `null`: the shell
|
|
679
|
+
cannot tell the two apart and the compiled form can, so reproducing the
|
|
680
|
+
conflation is the faithful port, and a session wanting the distinction files an
|
|
681
|
+
entry against this section. And **indexing follows `jq`'s own type rules** — a
|
|
682
|
+
field step on `null` yields `null`; a field step on a string, number, boolean or
|
|
683
|
+
array, and an index step on an object, are errors the gate classifies as a
|
|
684
|
+
malformed pin.
|
|
685
|
+
|
|
576
686
|
Dispositions: a pin whose path resolves to the expected value passes; a path
|
|
577
687
|
present with a different value is the legible violation (exit 1, each finding
|
|
578
688
|
reading path, expected, and actual). Fail-closed (exit 2) on an unreadable or
|
|
579
|
-
non-JSON settings file,
|
|
580
|
-
**absent** from the settings file — an absent key is a desynced
|
|
581
|
-
pins and the settings are one repo's tracked config, edited
|
|
582
|
-
legible drift a red is for. Absent pins file: the opt-in-off
|
|
583
|
-
skip. Ships a `good/`+`bad/` fixture pair and registers in the
|
|
584
|
-
`gates.list` (this repo's included).
|
|
689
|
+
non-JSON settings file, a malformed pin line, a pin outside the path grammar, or
|
|
690
|
+
a pin naming a key **absent** from the settings file — an absent key is a desynced
|
|
691
|
+
manifest (the pins and the settings are one repo's tracked config, edited
|
|
692
|
+
together), not the legible drift a red is for. Absent pins file: the opt-in-off
|
|
693
|
+
state, a clean skip. Ships a `good/`+`bad/` fixture pair and registers in the
|
|
694
|
+
consumer's `gates.list` (this repo's included).
|
|
695
|
+
|
|
696
|
+
**What a pin is worth depends on which tiers can outrank the file it pins**, and
|
|
697
|
+
the gate reads exactly one tier. The harness resolves settings across five, in
|
|
698
|
+
order: managed policy, then command-line, then the untracked local settings file,
|
|
699
|
+
then the tracked settings file this gate reads, then the operator's user-level
|
|
700
|
+
file. Objects deep-merge; the exceptions that merge rather than override are the
|
|
701
|
+
permissions arrays, MCP servers, HTTP hook URLs and `fallbackModel` chains. Two
|
|
702
|
+
consequences the gate's own verdict does not carry. A pin **does** beat the
|
|
703
|
+
operator's user-level file, which is what makes a tracked pin meaningful at all
|
|
704
|
+
rather than a suggestion the machine can quietly ignore. And a pin is **beaten**
|
|
705
|
+
by three tiers above it, of which `check-memory-off` covers one — the local
|
|
706
|
+
settings overlay — leaving managed policy and command-line flags outside any
|
|
707
|
+
gate's reach. That residue is unclosable here rather than merely unbuilt: neither
|
|
708
|
+
tier leaves an artifact in the tree, and the command line does not exist until
|
|
709
|
+
the session starts.
|
|
710
|
+
|
|
711
|
+
## check-settings-paths
|
|
712
|
+
|
|
713
|
+
`checks/check-settings-paths.gate` (hermetic, `precommit`, dispatched to the gate
|
|
714
|
+
binary alongside its sibling — gate-sdk/SPEC.md §The settings cohort, and the
|
|
715
|
+
crate's first dependency) holds the second
|
|
716
|
+
invariant over the same tracked file: every entry in
|
|
717
|
+
`CONTEXT_KIT_SETTINGS_FILE`'s `permissions.allow[]` whose command token is a
|
|
718
|
+
**literal** repo-relative `.sh` path resolves in the working tree. The knob is
|
|
719
|
+
reused, not introduced — §check-settings-pins already owns it and its default.
|
|
720
|
+
|
|
721
|
+
The class it defends is a standing property of a gate port rather than a
|
|
722
|
+
one-time count: replacing a kit's `checks/<gate>.sh` with a `<gate>.gate`
|
|
723
|
+
descriptor strands every allow entry naming the old path, and this repo
|
|
724
|
+
accumulated such entries one cohort apart before the gate existed. A dead grant
|
|
725
|
+
breaks nothing — no command can reach it — so the cost is a permission roster
|
|
726
|
+
whose every reader must re-verify which lines still mean anything.
|
|
727
|
+
|
|
728
|
+
**The extraction predicate**, scoped against the shapes a permission array
|
|
729
|
+
actually carries. A candidate is taken only from an entry of the form
|
|
730
|
+
`Bash(<command>)`; leading `env NAME=VALUE` assignments and a `bash`/`sh`
|
|
731
|
+
interpreter word are skipped, and the first remaining token is the candidate. A
|
|
732
|
+
candidate not ending in `.sh` is out of scope — a bare command names no path,
|
|
733
|
+
and a non-`.sh` path entry (a log truncation, a scratch removal) names a
|
|
734
|
+
runtime-created gitignored path whose absence is its ordinary state, so
|
|
735
|
+
existence is the wrong predicate for it. A candidate **containing `*`** is a
|
|
736
|
+
pattern, intentionally polymorphic over files that need not exist today, and is
|
|
737
|
+
skipped. That rule is scoped to the *command token*, not the entry: this repo's
|
|
738
|
+
standing shape for a grant taking arguments is a bare entry beside a
|
|
739
|
+
`*`-suffixed twin, and the twin's path is as literal — and as strandable — as
|
|
740
|
+
the bare form's, so it stays in scope.
|
|
741
|
+
|
|
742
|
+
Splitting the grant into tokens must not expand it. Globbing a pattern grant
|
|
743
|
+
against the tree and then asserting an arbitrary first match would green the whole
|
|
744
|
+
pattern class instead of skipping it, while leaving the checked count silently
|
|
745
|
+
inflated. The shell form protected that with `read -ra`, which does not expand;
|
|
746
|
+
the compiled form splits on ASCII whitespace, which has no expansion to suppress.
|
|
747
|
+
The property is the same and it is the property, not the idiom, that the fixture
|
|
748
|
+
pair's checked count pins.
|
|
749
|
+
|
|
750
|
+
Dispositions: exit 1 lists each violating entry verbatim beside the path that
|
|
751
|
+
did not resolve, so the reader can repoint or drop the grant without re-deriving
|
|
752
|
+
which token was read. The clean line reports the **checked count**, which is
|
|
753
|
+
what distinguishes a predicate that scoped to the array from one that vacuously
|
|
754
|
+
matched nothing. Fail-closed (exit 2) on a settings file that is
|
|
755
|
+
unreadable or not JSON — the sibling gate reads the same file on the same terms,
|
|
756
|
+
and the file is this gate's sole subject rather than an opt-in manifest, so
|
|
757
|
+
there is no absent-surface skip to grant. A `--fixture <dir>` mode reads
|
|
758
|
+
`<dir>/settings.json` and resolves candidates against `<dir>`, which is the
|
|
759
|
+
hermetic mode the `good/`+`bad/` fixture pair drives.
|
|
760
|
+
|
|
761
|
+
The pair pins the scoping, not merely the verdict. `good/` carries every
|
|
762
|
+
skipped shape — pattern tokens, bare non-path commands, non-`.sh` paths —
|
|
763
|
+
alongside resolving literals in all three extraction shapes (bare,
|
|
764
|
+
`env`-prefixed, trailing-flag), and its expectation pins the **checked count**:
|
|
765
|
+
the pattern-expansion defect above passes an exit-code-only fixture, because an
|
|
766
|
+
expanded pattern resolves by construction, and is visible only in the count.
|
|
767
|
+
`bad/` carries a dead path in the bare, `*`-twin and `env`-prefixed shapes
|
|
768
|
+
beside one resolving grant, so a broken extraction arm shows as a missing
|
|
769
|
+
finding rather than a still-red exit.
|
|
770
|
+
|
|
771
|
+
Its `# graph:` manifest names the settings file as its subject and the check
|
|
772
|
+
script globs as a **reverse trigger** — a cohort deleting a ported gate's `.sh`
|
|
773
|
+
is exactly the edit that strands a grant, so it must re-run the gate. The
|
|
774
|
+
distinction is recorded because gate-sdk/SPEC.md's port criterion 4 turns on it,
|
|
775
|
+
and a later port reading that couple as content would misclassify the member.
|
|
776
|
+
The trigger is a partial route by construction: the generated hook reads staged
|
|
777
|
+
`ACMR` paths, so a *deleted* `.sh` never matches it. What the trigger catches is
|
|
778
|
+
the ordinary edit that strands a grant; what catches the cohort is the full
|
|
779
|
+
battery, which runs whole-tree with no trigger filter.
|
|
780
|
+
|
|
781
|
+
**The criterion-7 debt this gate landed carrying is paid, and this paragraph is
|
|
782
|
+
the record that it was.** `jq` is not on `GATE_SDK_PROGRAM_FLOOR`, so the gate
|
|
783
|
+
failed port criterion 7 the day it landed and owed designed-away work at its port.
|
|
784
|
+
That work is the settings cohort (gate-sdk/SPEC.md §The settings cohort, and the
|
|
785
|
+
crate's first dependency), which retired the requirement for this member and its
|
|
786
|
+
sibling by taking a JSON reader into the crate rather than by hand-rolling a
|
|
787
|
+
parser to dodge a dependency — the outcome this paragraph predicted when it said
|
|
788
|
+
one parsing story for the settings file is worth more than the criterion. `jq`
|
|
789
|
+
remains required by `check-installer-no-deps` alone (excluded with cause) now that
|
|
790
|
+
`check-memory-off` has taken the same reader, so it is retired from the battery
|
|
791
|
+
but for that one member, and not from the shipped install path at all.
|
|
792
|
+
|
|
793
|
+
**The gate is not the prune.** It reads the settings file and writes nothing,
|
|
794
|
+
but it reds the moment it registers on a tree carrying stranded entries, and the
|
|
795
|
+
settings file is operator-owned configuration a session may not edit. The
|
|
796
|
+
landing order is therefore fixed: the operator prunes, then the gate registers.
|
|
585
797
|
|
|
586
798
|
## check-memory-off
|
|
587
799
|
|
|
588
|
-
`checks/check-memory-off.
|
|
589
|
-
precedent) scans the operator's machine, not the tree — its
|
|
590
|
-
manifest couples the pins file it reads and triggers on `*`, because
|
|
591
|
-
surfaces it guards (the memory dir and the untracked local settings) never
|
|
800
|
+
`checks/check-memory-off.gate` (local-environment class, binary-dispatched, the
|
|
801
|
+
check-identity precedent) scans the operator's machine, not the tree — its
|
|
802
|
+
`# graph:` manifest couples the pins file it reads and triggers on `*`, because
|
|
803
|
+
the surfaces it guards (the memory dir and the untracked local settings) never
|
|
592
804
|
stage. Two red conditions:
|
|
593
805
|
|
|
594
806
|
- the harness's per-project memory dir holds content — any regular file that
|
|
@@ -601,13 +813,38 @@ stage. Two red conditions:
|
|
|
601
813
|
scan; its default derives the current project's dir from the harness layout
|
|
602
814
|
(§Layout and configuration). CI-neutral: where the surface is absent the gate
|
|
603
815
|
is clean, and the clean line states the fail-open caveat — an absent dir
|
|
604
|
-
proves nothing about another clone.
|
|
605
|
-
|
|
816
|
+
proves nothing about another clone.
|
|
817
|
+
|
|
818
|
+
**It has one arm, and the knobs are it.** The `--fixture <dir>` arm the shell
|
|
819
|
+
form carried is deleted: every path it redirected — the scanned dirs, the pins
|
|
820
|
+
manifest, the local settings file derived from `CONTEXT_KIT_SETTINGS_FILE` by
|
|
821
|
+
swapping `.json` for `.local.json` — a knob already redirects, so the arm bought
|
|
822
|
+
a shorter spelling and paid for it with a second code path that never drove the
|
|
823
|
+
derivation being checked. The pair and `check-memory-off.test.sh` reach the gate
|
|
824
|
+
through the three knobs instead, which is what makes them a parity oracle for the
|
|
825
|
+
live arm rather than for a fixture-only one.
|
|
826
|
+
|
|
827
|
+
**Comparison is structural and a null actual is a skip**, and the two are
|
|
828
|
+
recorded because they part company with `check-settings-pins` over one manifest.
|
|
829
|
+
The pins file declares *expected JSON*, not an expected byte form, so `1` and
|
|
830
|
+
`1.0` are one value here as they already are there; a right-hand side that is not
|
|
831
|
+
JSON cannot be compared structurally at all and is skipped on this member's one
|
|
832
|
+
disposition for a pin it cannot read — that same line of that same manifest is
|
|
833
|
+
what the sibling gate fail-closes on, so the condition is graded, not lost. A
|
|
834
|
+
path evaluating to **null**, by contrast, is this gate's ordinary clean case: the
|
|
835
|
+
local file simply sets no override for that key. `check-settings-pins` reads a
|
|
836
|
+
null as an absent pin and refuses, which is right for the tracked file it reads
|
|
837
|
+
and would be a correctness regression here, reddening every clone whose local
|
|
838
|
+
settings merely omit a pinned key.
|
|
839
|
+
|
|
840
|
+
Fail-closed (exit 2) when it cannot read what is present to check: a local
|
|
841
|
+
settings file that is unreadable or not valid JSON, a memory dir it cannot walk,
|
|
842
|
+
or a `HOME` it cannot read when the default derivation is the one in play.
|
|
606
843
|
|
|
607
844
|
## check-footprint-fresh
|
|
608
845
|
|
|
609
|
-
`checks/check-footprint-fresh.
|
|
610
|
-
committed `docs/footprint.md` against
|
|
846
|
+
`checks/check-footprint-fresh.gate` (hermetic, `precommit`) byte-compares the
|
|
847
|
+
committed `docs/footprint.md` against the footprint emitter, the
|
|
611
848
|
`check-docs-mirror-fresh`/`check-trajectory-fresh` posture: a generated,
|
|
612
849
|
freshness-gated projection is Derivation-first's sanctioned copy, so the
|
|
613
850
|
maintainer re-runs the emitter after any change to a measured surface and a
|
|
@@ -615,8 +852,16 @@ stale page reddens the battery. Its `# graph:` manifest couples the measured
|
|
|
615
852
|
surfaces — the configured agent file and each kit's `templates/` tree — so an
|
|
616
853
|
edit to what the page counts re-fires the gate.
|
|
617
854
|
|
|
855
|
+
**It is a registry member of the gate binary, and its emitter is a function call
|
|
856
|
+
rather than a spawn.** The comparator and the emitter ported in one unit, so
|
|
857
|
+
where the shell form ran `bash <emitter> --emit` in a subprocess, the compiled
|
|
858
|
+
member calls the emitter module's `emit()` **in-process** — which is what
|
|
859
|
+
retires the family's `bash` hop for this member (gate-sdk/SPEC.md §The first
|
|
860
|
+
cohort, and the rule that selects the next). The `CONTEXT_KIT_SURFACES` the
|
|
861
|
+
emitter reads arrives across the config bridge, declared by this member.
|
|
862
|
+
|
|
618
863
|
Bare, it runs the live emitter; a two-argument form
|
|
619
|
-
(`check-footprint-fresh
|
|
864
|
+
(`check-footprint-fresh <projection> <emit>`) compares two pre-baked files,
|
|
620
865
|
the hermetic mode the `good/`+`bad/` fixture pair drives. Fail-closed (exit 2)
|
|
621
866
|
on a missing projection or emit source; the stale byte-compare is the exit-1
|
|
622
867
|
violation. The page's generated numbers ride the `docs/evidence-data.md`
|
|
@@ -631,23 +876,26 @@ context-kit/
|
|
|
631
876
|
bin/md-index.sh
|
|
632
877
|
bin/md-section.sh
|
|
633
878
|
bin/pub-index.sh # dispatcher over the per-language extractors
|
|
879
|
+
lib/context.sh # sourced config loader + the kit's knob defaults; the config bridge sources it
|
|
634
880
|
lib/toolfloor.sh # sourceable owner: the probe roster + the floor predicate
|
|
635
881
|
lib/pub-lang/rust.sh # shipped extractor: Rust public items
|
|
636
882
|
lib/pub-lang/ts.sh # shipped extractor: TypeScript export surface
|
|
637
883
|
bin/always-loaded.sh
|
|
638
|
-
bin/footprint.sh # per-kit two-tier footprint; --emit is docs/footprint.md
|
|
639
884
|
bin/env-probe.sh # derives the marker-bounded local env profile
|
|
640
885
|
bin/run-index-tests.sh # expected-output runner for the bin tools
|
|
641
|
-
checks/check-brevity.
|
|
642
|
-
checks/check-settings-pins.
|
|
643
|
-
checks/check-
|
|
644
|
-
checks/check-
|
|
886
|
+
checks/check-brevity.gate # hermetic, binary-dispatched: the budgeted section's over-budget pointer bullets
|
|
887
|
+
checks/check-settings-pins.gate # hermetic, binary-dispatched: pins hold against the settings file
|
|
888
|
+
checks/check-settings-paths.gate # hermetic, binary-dispatched: literal .sh grants resolve in the tree
|
|
889
|
+
checks/check-memory-off.gate # local-environment, binary-dispatched: memory dir + local overrides
|
|
890
|
+
checks/check-footprint-fresh.gate # hermetic, binary-dispatched: docs/footprint.md byte-fresh vs the emitter it calls in-process
|
|
645
891
|
gate-tests/check-brevity/{good,bad}/
|
|
646
892
|
gate-tests/check-settings-pins/{good,bad}/
|
|
893
|
+
gate-tests/check-settings-paths/{good,bad}/
|
|
647
894
|
gate-tests/check-memory-off/{good,bad}/
|
|
648
895
|
gate-tests/check-footprint-fresh/{good,bad}/
|
|
649
896
|
gate-tests/check-brevity.test.sh # the unmatched-section axis the pair cannot hold
|
|
650
897
|
gate-tests/check-memory-off.test.sh # the local-override axis the pair cannot hold
|
|
898
|
+
gate-tests/check-settings-pins.test.sh # the refusal axis the pair cannot hold
|
|
651
899
|
index-tests/ # fixture corpus + expected outputs
|
|
652
900
|
templates/session-context.sh # consumer copy: marked consumer sections
|
|
653
901
|
templates/settings-sessionstart.json
|
|
@@ -674,6 +922,38 @@ what the consumer left unset, and a set-but-missing `CONTEXT_KIT_CONFIG_FILE`
|
|
|
674
922
|
exits 2 rather than silently running on defaults. Knobs (this repo's layout
|
|
675
923
|
as defaults):
|
|
676
924
|
|
|
925
|
+
### lib/context.sh
|
|
926
|
+
|
|
927
|
+
**The one home of the consumer-config load and of every knob default above**, a
|
|
928
|
+
sourceable library on queue-kit's `lib/queue.sh` shape: it loads the consumer
|
|
929
|
+
config first, then defaults each knob the consumer left unset, then refuses a
|
|
930
|
+
malformed value rather than running on it. Every context-kit gate and `bin/` tool
|
|
931
|
+
sources it instead of re-defaulting, which is the single-home form
|
|
932
|
+
`check-knob-default-coupling` asserts and what keeps a shell-side and a bridged
|
|
933
|
+
value one value rather than two.
|
|
934
|
+
|
|
935
|
+
**The config bridge is what forces a library rather than a convention.**
|
|
936
|
+
gate-sdk's config bridge resolves each declared knob by sourcing one kit's
|
|
937
|
+
library in a subshell, and **exits 2 on a knob that library does not define**
|
|
938
|
+
(gate-sdk/SPEC.md §lib/gate.sh), so a
|
|
939
|
+
`.gate`-dispatched member whose knobs were defaulted inside a check script would
|
|
940
|
+
resolve none of them. That mechanism is indifferent to what any crate links: a
|
|
941
|
+
member receives its knobs this way whatever the binary carries.
|
|
942
|
+
|
|
943
|
+
**Every default here is repo-relative, and that is a bridge requirement rather
|
|
944
|
+
than a style.** A bridged value is baked verbatim into the tracked pre-commit
|
|
945
|
+
hook, so an absolute path would pin one clone's layout into a committed artifact.
|
|
946
|
+
The one knob whose natural value *is* absolute — `CONTEXT_KIT_MEMORY_DIRS`,
|
|
947
|
+
naming a harness directory under `HOME` — defaults to **empty**, and the empty
|
|
948
|
+
value means "derive it" rather than "no dir": the derivation belongs to the one
|
|
949
|
+
member that reads the knob (`native/src/gates/memory_off.rs`), which folds `/`
|
|
950
|
+
and `.` to `-` in the repo toplevel exactly as the harness names each project's
|
|
951
|
+
dir. Deriving it lazily at that reader is also what keeps a `git` subprocess off
|
|
952
|
+
the path of every unrelated knob resolution. The shell library once carried the
|
|
953
|
+
derivation as `context_memory_dir_default()`; it left with the shell gate that
|
|
954
|
+
was its only caller, so the layout rule has one implementation rather than two
|
|
955
|
+
agreeing ones.
|
|
956
|
+
|
|
677
957
|
- `CONTEXT_KIT_SURFACES` — array of always-loaded files; default
|
|
678
958
|
`("CLAUDE.md")`. The measured surface is agent-file-name-agnostic: a consumer
|
|
679
959
|
whose harness reads `AGENTS.md` (or any other always-loaded agent file) sets
|
|
@@ -690,7 +970,7 @@ as defaults):
|
|
|
690
970
|
default `${GATE_SDK_GATES_DIR:-scripts}/pub-lang`.
|
|
691
971
|
- `CONTEXT_KIT_HOOK_CMD` — command whose output line count approximates
|
|
692
972
|
the steady-state hook body; default queue-kit's
|
|
693
|
-
`
|
|
973
|
+
`run-gates.sh --emit queue-index --collapse-deferred` when resolvable, else empty
|
|
694
974
|
(surfaces only).
|
|
695
975
|
- `CONTEXT_KIT_DRIFT_REPORT` — path to the consumer's drift-report script;
|
|
696
976
|
the session-context hook runs it with `--trend` for the brief's drift
|
|
@@ -719,8 +999,18 @@ as defaults):
|
|
|
719
999
|
- `CONTEXT_KIT_BREVITY_POINTER_RE` — the "cites a deeper doc" pattern;
|
|
720
1000
|
default `§`.
|
|
721
1001
|
- `CONTEXT_KIT_SETTINGS_FILE` — the tracked harness settings file
|
|
722
|
-
check-settings-pins
|
|
723
|
-
|
|
1002
|
+
check-settings-pins and check-settings-paths each verify, on a different
|
|
1003
|
+
invariant, and whose `.local.json` sibling check-memory-off scans; default
|
|
1004
|
+
`.claude/settings.json`. **Explicitly setting it to a path that does not exist
|
|
1005
|
+
is refused (exit 2) by `lib/context.sh` at resolution time**, while leaving it
|
|
1006
|
+
unset and having no file at the default path is not-adopted and degrades at
|
|
1007
|
+
each reader. The refusal lives in the library because that is the last place
|
|
1008
|
+
*set-ness* is visible: once the value crosses gate-sdk's config bridge a
|
|
1009
|
+
compiled reader sees one path string and cannot tell the misconfigured case
|
|
1010
|
+
from the unadopted one. Emptiness is **not** the signal here — the config
|
|
1011
|
+
validation below rejects an empty value as malformed, an invariant older than
|
|
1012
|
+
the bridge — which is why this knob refuses where `DRIFT_KIT_KPIS_FILE`
|
|
1013
|
+
resolves empty (drift-kit/SPEC.md §lib/drift.sh).
|
|
724
1014
|
- `CONTEXT_KIT_SETTINGS_PINS` — the pins manifest; default
|
|
725
1015
|
`${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`.
|
|
726
1016
|
- `CONTEXT_KIT_MEMORY_DIRS` — space-separated glob list of harness memory dirs
|
|
@@ -752,20 +1042,28 @@ order (the shadow's output, not the shipped grammar's, is what the golden
|
|
|
752
1042
|
records). The floor predicate rides the same runner rather than a fixture pair —
|
|
753
1043
|
it is a sourced function, not a gate: `index-tests/toolfloor-cases.sh` sources
|
|
754
1044
|
`lib/toolfloor.sh` and prints one line per (element, banner) pair, so the closed
|
|
755
|
-
verdict set, the
|
|
1045
|
+
verdict set, the spellings of an unconstrained member, and the
|
|
756
1046
|
`uncomparable` fail-closed arm are asserted against a golden rather than assumed.
|
|
1047
|
+
The audience axis is pinned in a second table in the same file, printing the
|
|
1048
|
+
parsed field and the consumer-side predicate per element rather than a verdict,
|
|
1049
|
+
because no verdict reads that field: its present, empty and omitted forms are
|
|
1050
|
+
each a case, the emptiness rule being the part of the grammar a reader is
|
|
1051
|
+
likeliest to get wrong.
|
|
757
1052
|
The runner registers as its own evidence-kit validate suite
|
|
758
1053
|
(`index_tests`, the `demo` precedent): the golden the refactor leans on now
|
|
759
|
-
has an automated validate-stage consumer.
|
|
1054
|
+
has an automated validate-stage consumer. The footprint emitter is advisory the same way, but its
|
|
760
1055
|
projection is gated rather than runner-tested: `check-footprint-fresh` byte-holds
|
|
761
1056
|
`docs/footprint.md` against `--emit`. `check-brevity`, `check-settings-pins`,
|
|
762
1057
|
`check-memory-off`, and `check-footprint-fresh` are gates and carry the standard
|
|
763
1058
|
fixture pair; the footprint pair drives the hermetic two-argument mode
|
|
764
1059
|
(`<projection> <emit>`), the `check-trajectory-fresh` precedent. Both
|
|
765
|
-
memory-off
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
1060
|
+
memory-off pairs reach their subject differently, and the difference is the
|
|
1061
|
+
point: the settings-pins pair takes a `--fixture <dir>` injection (the
|
|
1062
|
+
check-identity precedent) reading `<dir>/settings.json` against
|
|
1063
|
+
`<dir>/settings-pins.conf`, while the memory-off pair drives
|
|
1064
|
+
`CONTEXT_KIT_MEMORY_DIRS` from its own case-dir config, because that member's
|
|
1065
|
+
fixture arm was deleted for being a code path its live arm never took.
|
|
1066
|
+
Three direct unit tests hold the axes the pairs fix and so cannot
|
|
769
1067
|
express: `check-brevity.test.sh` holds the unmatched-section resolution (the
|
|
770
1068
|
pair fixes `CONTEXT_KIT_BREVITY_SECTION` at the stock default and always
|
|
771
1069
|
supplies a file carrying it, so neither case can express a section that
|
|
@@ -773,7 +1071,11 @@ resolves to nothing — an unmatched section is exit 2, a broken machine rather
|
|
|
773
1071
|
than a clean tree). The memory-off local-override axis — an untracked
|
|
774
1072
|
`settings.local.json` that re-enables a pinned key past an empty dir — cannot
|
|
775
1073
|
be a good/bad pair (the pair fixes the dir axis), so `check-memory-off.test.sh`
|
|
776
|
-
holds it.
|
|
1074
|
+
holds it. `check-settings-pins.test.sh` holds the **refusal** axis: the pair
|
|
1075
|
+
fixes the holds-vs-mismatch axis (exit 0 vs exit 1) alone, so a pin outside
|
|
1076
|
+
the documented path grammar — a jq filter, an iteration, a slice, an array
|
|
1077
|
+
literal — needs its own case to prove the refusal is exit 2, loud and naming
|
|
1078
|
+
the pin, the knob and the construct, never a silent clean verdict.
|
|
777
1079
|
|
|
778
1080
|
`smoke/install.sh` copies the templates into the scratch consumer (config
|
|
779
1081
|
into the gates dir, hook wiring into the harness settings), runs the hook
|
|
@@ -795,8 +1097,8 @@ mechanics (gate-sdk/SPEC.md §Consumer smoke), converts its agent file from
|
|
|
795
1097
|
`CLAUDE.md` to `AGENTS.md`, sets the agent-file knobs in the consumer's config
|
|
796
1098
|
seams (`GATE_SDK_AGENT_FILE`, `LIFECYCLE_KIT_AGENT_FILE`, `DOCTRINE_KIT_AGENT_FILE`,
|
|
797
1099
|
`CANON_KIT_MANIFEST_FILES`, `CONTEXT_KIT_SURFACES`, `CONTEXT_KIT_BREVITY_FILE`),
|
|
798
|
-
then asserts the battery is green, `always-loaded.sh` and
|
|
799
|
-
the `AGENTS.md` surface, and `check-root-tiering`'s built-in allowlist accepts
|
|
1100
|
+
then asserts the battery is green, `always-loaded.sh` and the footprint emitter
|
|
1101
|
+
measure the `AGENTS.md` surface, and `check-root-tiering`'s built-in allowlist accepts
|
|
800
1102
|
`AGENTS.md` at root while rejecting a stray second agent file. It is a standalone
|
|
801
1103
|
harness — not driven by `run-consumer-smoke.sh`, which asserts the kit defaults
|
|
802
1104
|
under zero config — and registers as its own evidence-kit validate suite
|