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
|
@@ -81,6 +81,185 @@ template names the channel a dispatched role *does* have: an in-turn wait on the
|
|
|
81
81
|
work's own artifact. This is the case where the backgrounding rule and the
|
|
82
82
|
liveness hazard meet and neither, alone, covered it.
|
|
83
83
|
|
|
84
|
+
The template's **Background + notification, never poll** rule now carries a
|
|
85
|
+
*which primitive* clause, and that clause's residency here is a calibration
|
|
86
|
+
history. The template first named the harness's waiting primitive in the
|
|
87
|
+
singular while the harness offers two forms with opposite reactivity, so a
|
|
88
|
+
session picking one unaided picked by shape. Naming a form teaches a spelling;
|
|
89
|
+
naming the property a wait must have and sorting the forms under it teaches the
|
|
90
|
+
discriminator — a bound that is correctness rather than preference, because it
|
|
91
|
+
is what survives a harness adding a third form.
|
|
92
|
+
|
|
93
|
+
**Two waitable things, and only one of them has a path.** The template splits
|
|
94
|
+
what a session waits *on* and carries that mechanism itself. What is added here
|
|
95
|
+
is that the split is *complete* rather than merely convenient, because the
|
|
96
|
+
attested failure had no third case — and that the artifact's home is the resume
|
|
97
|
+
journal's own scoping widened rather than a second rule, so the survivability
|
|
98
|
+
grounds are stated once and cited twice.
|
|
99
|
+
|
|
100
|
+
**The shell branch names its artifact, and the naming is the substance.** The
|
|
101
|
+
split above left that branch pointing at *an artifact the session placed* without
|
|
102
|
+
saying which, so a session that wanted to comply had nothing to write, and of the
|
|
103
|
+
long-running shell producers a session might background, most publish no record of
|
|
104
|
+
any kind. The artifact is a **launch-time liveness record**: the child's PID,
|
|
105
|
+
captured by the launcher at the moment it backgrounds the child. The obvious
|
|
106
|
+
repair — have the child touch a file when it finishes and wait on that — is
|
|
107
|
+
refused, and the attested failure is exactly why: a completion marker answers *is
|
|
108
|
+
it done* **to a live observer**, and the failure case is the one where the
|
|
109
|
+
observer is gone. A liveness record answers *is it still running* **to whoever
|
|
110
|
+
arrives next**, which is a question a dead session's successor can still ask.
|
|
111
|
+
|
|
112
|
+
**The record's producer is the launcher, and the alternative is recorded as
|
|
113
|
+
refused rather than merely not chosen.** The alternative is per-producer
|
|
114
|
+
self-claiming — the producer-liveness lock's shape generalized so every
|
|
115
|
+
long-running producer claims its own record — and it fails on three counts. It
|
|
116
|
+
reaches only producers the consumer's own tree owns, where most backgrounded work
|
|
117
|
+
is an ad-hoc command composed at the call site. It puts the record's production in
|
|
118
|
+
the one process whose death is the event being detected, so a producer that dies
|
|
119
|
+
before claiming is invisible in exactly the window that matters. And it bills a
|
|
120
|
+
program for a property that belongs to the *launch* rather than to the program:
|
|
121
|
+
the same script backgrounded is in this class and run in the foreground is not.
|
|
122
|
+
The launcher, by contrast, knows the PID of anything it started, is the party that
|
|
123
|
+
needs to read it back, and is the only one present at the moment the class is
|
|
124
|
+
entered.
|
|
125
|
+
|
|
126
|
+
**The liveness clause widened rather than acquiring an exception, and its own
|
|
127
|
+
premise is what falsified it.** The clause sanctioned a recorded-PID match *where
|
|
128
|
+
liveness genuinely is the condition — a producer this session did not start*, and
|
|
129
|
+
that exclusion rested on an assumption: a session that started the producer was
|
|
130
|
+
taken to have a better instrument, namely its own artifact. The better instrument
|
|
131
|
+
requires a live reader, and the failure being fixed is the loss of the reader. So
|
|
132
|
+
the subject widens to cover a producer the session started **and backgrounded**,
|
|
133
|
+
and the widening is on the subject alone, never on the predicate — pattern-matched
|
|
134
|
+
liveness stays refused, and the bracket trick stays refused as the sanctioned
|
|
135
|
+
form on the grounds below.
|
|
136
|
+
|
|
137
|
+
**The record's grammar is evidence-kit's, and that is what makes the second reader
|
|
138
|
+
free.** There are two readers, and they are different parties at different
|
|
139
|
+
transitions: the **launching session**, in-turn, as its wait condition; and
|
|
140
|
+
**whoever arrives next**, which is the case the attested failure is actually
|
|
141
|
+
about, where the launcher is gone and something else must be able to tell that a
|
|
142
|
+
producer is still mutating shared files. Written in the one-line `pid=<n>
|
|
143
|
+
run=<key>` grammar the producer-liveness lock already carries, the record is a
|
|
144
|
+
legal subject for `check-producer-liveness` **unchanged** — that gate already
|
|
145
|
+
takes a record path and already reports exactly *is the producer named here still
|
|
146
|
+
running*, on a ruled exit contract. No new gate, no new tool, no new grammar, and
|
|
147
|
+
a reader already specified, already fixture-covered and already wired. An inverted
|
|
148
|
+
grammar would have bought a second implementation of a decided thing, which is the
|
|
149
|
+
only argument this needs; it is recorded because *a launch record is not a lock,
|
|
150
|
+
so it should have its own shape* is the reading a later session will reach for,
|
|
151
|
+
and the answer is that the two records carry the same field, answer the same
|
|
152
|
+
question, and differ only in who wrote them. How a PID's liveness is *decided*
|
|
153
|
+
stays evidence-kit's — the predicate, the PID-reuse residual and the refused TTL
|
|
154
|
+
are ruled in evidence-kit/SPEC.md §The producer-liveness lock and are not
|
|
155
|
+
seconded here. delegation-kit owns *when a session waits and on what*.
|
|
156
|
+
|
|
157
|
+
**The record's name is a convention, and what the convention buys is a derivable
|
|
158
|
+
set.** It is written as `<scratch-dir>/<key>.run`, carrying the same `pid=<n>
|
|
159
|
+
run=<key>` line — the filename's `<key>` is that record's own `run=` value, not
|
|
160
|
+
a third field. The grammar is untouched; what was missing is not the record's
|
|
161
|
+
shape but its **discoverability**. Without a convention the record's path is
|
|
162
|
+
known only to the session that wrote it and to whoever it happens to tell, so
|
|
163
|
+
the second reader named above — *whoever arrives next*, where the launcher is
|
|
164
|
+
gone — can read a record only by guessing its name. A suffix makes the set a
|
|
165
|
+
glob, and every reader that must ask *is anything still running here* reads the
|
|
166
|
+
set rather than a path: `check-producer-liveness`'s set mode
|
|
167
|
+
(evidence-kit/SPEC.md §check-producer-liveness), the stage-entry preflight
|
|
168
|
+
behind it, and guard-kit rule 14.
|
|
169
|
+
|
|
170
|
+
**`.run` rather than `.lock`, and the distinction is load-bearing.** A lock is
|
|
171
|
+
claimed and released by one owner and its absence means *free*;
|
|
172
|
+
`EVIDENCE_KIT_LOCK_FILE` is one and keeps its name. A launch record is a
|
|
173
|
+
**statement of fact left behind** — it answers *is it still running* to whoever
|
|
174
|
+
arrives next, a question a dead session's successor can still ask — and its
|
|
175
|
+
absence means *nothing was recorded*, never *nothing is running*. Two meanings,
|
|
176
|
+
two suffixes; and a consumer's scratch reset carries no `*.run` on its keep-list,
|
|
177
|
+
because a record surviving a work-unit boundary names a producer from the
|
|
178
|
+
previous one, which is precisely the stale statement the sweep exists to remove.
|
|
179
|
+
|
|
180
|
+
**Both affordances are refused, and the refusal's cost is bounded rather than
|
|
181
|
+
denied.** A tool to write the record and a second one to read it are declined: the
|
|
182
|
+
write is a PID captured at launch and the read is a single liveness match, each a
|
|
183
|
+
shell builtin away and both already spelled in the template, and a script whose
|
|
184
|
+
body is one builtin is the clearest case of the script-interpreter surface this
|
|
185
|
+
methodology shrinks. The generic reading affordance that would genuinely earn its
|
|
186
|
+
place already exists and is `check-producer-liveness`, which the grammar reuse
|
|
187
|
+
reaches without adding anything. What the refusal costs is stated rather than
|
|
188
|
+
hidden: an affordance would make the record's grammar impossible to get wrong, and
|
|
189
|
+
a hand-written one can be malformed. That failure is bounded by the consumer,
|
|
190
|
+
which exits **2** on a record it cannot parse, so a malformed record reads as
|
|
191
|
+
*could not be established* and never as *nothing running*.
|
|
192
|
+
|
|
193
|
+
**What the naming does not claim.** No gate enforces it, and the reason is
|
|
194
|
+
structural rather than budgetary: the subject is *did a session record a PID
|
|
195
|
+
before backgrounding*, and a session that skips the rule writes nothing, so there
|
|
196
|
+
is no absence a check could have been told to expect. The artifact-side backstop
|
|
197
|
+
stays the one §Operative residency already names — `check-producer-liveness` at a
|
|
198
|
+
stage entry, covering the **concurrent** case, a producer still live when the next
|
|
199
|
+
entry is stamped. Widening what that backstop may be pointed at does not make the
|
|
200
|
+
rule itself checkable. What the naming removes is a different failure: a session
|
|
201
|
+
that **wanted** to comply had no named artifact and was carved out of the only
|
|
202
|
+
clause that fit.
|
|
203
|
+
|
|
204
|
+
**The enforcement-design question is now answered, and the answer is a
|
|
205
|
+
relocation rather than a reversal.** *Given that prose alone does not hold, what
|
|
206
|
+
does* stood open here while the ruling above — the write is structurally
|
|
207
|
+
uncheckable — stayed true. It still is. What changed is the subject: the
|
|
208
|
+
**harm** a missed wait causes is not the turn-end but a tracked-tree mutation
|
|
209
|
+
under a live producer, and that arrives as an ordinary tool call at a
|
|
210
|
+
`PreToolUse` chokepoint, which is precisely the class §Operative residency says
|
|
211
|
+
the interception axis admits. It is enforced there, as guard-kit rule 14
|
|
212
|
+
(guard-kit/SPEC.md §The generic ruleset). The chokepoint ruling is confirmed by
|
|
213
|
+
this, not weakened.
|
|
214
|
+
|
|
215
|
+
**The claim ships with its bound, because a claim without one is the failure
|
|
216
|
+
this rule keeps re-earning.** The enforcement holds only for **a session that
|
|
217
|
+
recorded**. The paragraph above rules that the record's write is structurally
|
|
218
|
+
uncheckable — a session that skips the rule writes nothing, so there is no
|
|
219
|
+
absence a check could have been told to expect — so a session that backgrounds
|
|
220
|
+
without recording is invisible to rule 14 and to the entry preflight alike,
|
|
221
|
+
exactly as it is today. This narrows the failure to that residue rather than
|
|
222
|
+
closing it.
|
|
223
|
+
|
|
224
|
+
**Enforcing the record's *write* at the launch chokepoint is designed, refused,
|
|
225
|
+
and filed** — recorded here so a later session finds a ruling rather than a
|
|
226
|
+
blank. The candidate is a rule firing on the backgrounding call itself and
|
|
227
|
+
refusing one that writes no record, and the two backgrounding forms differ in a
|
|
228
|
+
guard's reach. A shell `&` is in the command text, which every rule in that
|
|
229
|
+
ruleset already reads, so that arm is buildable today. A harness's
|
|
230
|
+
background-this parameter is **tool input, not command text**, and whether it
|
|
231
|
+
reaches the `PreToolUse` payload is an empirical question about one field rather
|
|
232
|
+
than about the mechanism — a guard that reads non-headline `tool_input` fields
|
|
233
|
+
by `jq` path is already an attested shape. **Building only the `&` arm is
|
|
234
|
+
refused as worse than not building it**: every attested firing used the harness
|
|
235
|
+
form, so a rule covering only the shell spelling would block the form nobody
|
|
236
|
+
uses and pass the one that fires — coverage in appearance, an assertion about
|
|
237
|
+
nothing in fact. The probe it waits on is one backgrounded call through a guard
|
|
238
|
+
that records its payload, and that probe needs **no** permission- or hook-surface
|
|
239
|
+
change, because the `PreToolUse` command matcher is already wired.
|
|
240
|
+
|
|
241
|
+
**The guard interaction that produced it resolves without touching the guard.**
|
|
242
|
+
The attested sequence: a session reached for the correct artifact wait, spelled
|
|
243
|
+
it against the harness's own scratchpad path, and the consumer's bash guard
|
|
244
|
+
refused it and steered to repo-local scratch. The guard was **right** and needed
|
|
245
|
+
no change. What was missing is that the doctrine never said where an awaited
|
|
246
|
+
artifact belongs, so the refusal read as a refusal of artifact-waiting itself and
|
|
247
|
+
pushed the session onto the process-liveness form that then broke. With the split
|
|
248
|
+
above, a session waiting on an `Agent` never reaches for a path at all, and a
|
|
249
|
+
session waiting on a shell child has a path the guard already sanctions.
|
|
250
|
+
|
|
251
|
+
**The bracket trick is refused as the sanctioned form, and the grounds are here
|
|
252
|
+
because the template defers them here.** The template carries the mechanism —
|
|
253
|
+
why a process-liveness predicate can never go false, and the two sanctioned
|
|
254
|
+
repairs — and sends here the one question it does not answer: why the third,
|
|
255
|
+
`pgrep -f '[r]un-smoke.sh'`, is refused rather than passed over. It is the first
|
|
256
|
+
thing a reader reaches for and it *works*, so what disqualifies it is not correctness
|
|
257
|
+
but its failure mode: a spelling that must be remembered, whose omission is
|
|
258
|
+
invisible at the call site and whose cost when omitted is silent and expensive.
|
|
259
|
+
A rule whose correct form differs from its incorrect form by one character is a
|
|
260
|
+
rule that will be got wrong, which is why the enforcement half is a guard rule
|
|
261
|
+
over the shape (guard-kit/SPEC.md §The generic ruleset) rather than more prose.
|
|
262
|
+
|
|
84
263
|
The template's **Findings you will act on are durable before you act on them**
|
|
85
264
|
rule rests on a near-loss rather than a loss: a close stage dispatched two
|
|
86
265
|
audit sweeps and then hit the session wall. Both had already returned, which
|
|
@@ -182,6 +361,73 @@ than left out — an omitted `model:` resolves to the literal `inherit`, so
|
|
|
182
361
|
omission spells the dispatcher's tier rather than a neutral absence, and
|
|
183
362
|
`check-agent-tier-explicit` is that clause's oracle over the tracked surface.
|
|
184
363
|
|
|
364
|
+
**Isolation's second purpose, and why the cost objection does not land.** The
|
|
365
|
+
template's **A read-only claim is made by isolation, not by sentence** rule
|
|
366
|
+
states the disposition and carries none of its grounds, which are these. "It has
|
|
367
|
+
no Edit tool" is not the safety property it reads as: every agent type available
|
|
368
|
+
for audit-shaped work carries write tools, or at least a shell that reaches
|
|
369
|
+
`git`, so a toolset is never narrowed by the brief describing it. And the
|
|
370
|
+
isolation is not purely a cost — the harness auto-cleans a worktree left
|
|
371
|
+
unchanged, so the worktree survives **iff** the agent was not in fact read-only,
|
|
372
|
+
which makes one mechanism both the confinement and its own detector. Gitignoring
|
|
373
|
+
the worktree path trades that free `git status` signal away, which is why the
|
|
374
|
+
rule's second cost sends the parent to an explicit `git worktree list` at the
|
|
375
|
+
reaping boundary instead.
|
|
376
|
+
|
|
377
|
+
**`worktree.baseRef` is vendor configuration, and choosing it is the consumer's
|
|
378
|
+
job.** The template's **Isolation charges three harness costs, and paying them
|
|
379
|
+
is the parent's job** rule names the knob and both of its values rather than a
|
|
380
|
+
choice, because a vendoring consumer inherits the template and never a settings
|
|
381
|
+
file. A consumer that dispatches isolated agents therefore sets the knob
|
|
382
|
+
deliberately instead of inheriting the default, and — where its harness config is
|
|
383
|
+
gated — pins it, through the general settings-pin mechanism (context-kit/SPEC.md
|
|
384
|
+
§check-settings-pins) rather than anything this kit ships. What is ruled is that
|
|
385
|
+
the value be *chosen*, never which value: a consumer wanting a clean tree per
|
|
386
|
+
dispatch is right to stay on the default. No knob joins delegation-kit's own
|
|
387
|
+
roster for it (§Layout and configuration) — this is harness configuration, not
|
|
388
|
+
kit configuration, and a kit knob shadowing a vendor setting would be a second
|
|
389
|
+
source for one value. Recorded so a later reader does not read the omission as an
|
|
390
|
+
oversight and close it.
|
|
391
|
+
|
|
392
|
+
**Why that cost names a knob and not a measurement.** "The worktree is cut at
|
|
393
|
+
the remote tracking ref, so staleness equals the unpushed backlog" describes the
|
|
394
|
+
`fresh` value alone; stated as universal it is false, and it reached shipped,
|
|
395
|
+
consumer-facing doctrine on seven attestations — every one taken under that
|
|
396
|
+
default, not one of them bearing on whether the behavior was configurable.
|
|
397
|
+
Repeated confirmation of a behavior is not evidence about its mutability, and
|
|
398
|
+
each re-confirmation made the mechanism feel more settled and so suppressed the
|
|
399
|
+
configuration probe that would have settled it. Hence the rule's shape: name the
|
|
400
|
+
knob and both values, and leave any measurement attributed to the configuration
|
|
401
|
+
it was taken under. It follows that no parent "owes the doubt back" for a
|
|
402
|
+
structural defect here — there is none, and the discipline below costs one line
|
|
403
|
+
in a prompt.
|
|
404
|
+
|
|
405
|
+
**The child-side rev discipline is kept as defence in depth, and the first
|
|
406
|
+
ground alone is sufficient.** The parent cannot read the child's *effective*
|
|
407
|
+
setting — `baseRef` resolves on the dispatching machine's merged settings,
|
|
408
|
+
nothing in the dispatch payload carries it and nothing returns it — so a parent
|
|
409
|
+
assuming either value is asserting an unverified premise about a third-party
|
|
410
|
+
tool, which is the move that produced the false doctrine above. Second, a
|
|
411
|
+
vendoring consumer inherits the template and not a settings file, so for every
|
|
412
|
+
consumer that has not set the knob the discipline is the whole protection. Third,
|
|
413
|
+
even a repo that pins the knob is not covered end to end: a managed tier and a
|
|
414
|
+
command-line override outrank a project settings file and lie outside any repo's
|
|
415
|
+
reach. It is also nearly free and self-verifying — one command whose output *is*
|
|
416
|
+
the evidence — so under a holding pin it degrades from load-bearing to a cheap
|
|
417
|
+
assertion rather than becoming dead weight.
|
|
418
|
+
|
|
419
|
+
**The untracked half reaches no configuration at all, and its disposition is
|
|
420
|
+
refusal.** An isolated child sees only committed state, so the third cost is a
|
|
421
|
+
ruling rather than a mitigation: no value of the knob helps and naming a rev does
|
|
422
|
+
not either. Attested twice — a sweep sent to triage an untracked capture log read
|
|
423
|
+
an empty file and reported its corpus absent, and a settings-overlay comparison
|
|
424
|
+
saw no overlay because the local settings file is uncommitted. Both returned a
|
|
425
|
+
confident "nothing there", indistinguishable in shape from a clean result, which
|
|
426
|
+
makes it the worse of the two failure modes. It binds *against* the read-only
|
|
427
|
+
rule rather than beside it: a read-only claim is made by isolation, and isolation
|
|
428
|
+
is what blinds the read, so a claimed-read-only sweep over an untracked corpus
|
|
429
|
+
has no correct form at all.
|
|
430
|
+
|
|
185
431
|
**The dispatch-shape rules are one mechanism, seen from several sides.** The template's **Never dispatch
|
|
186
432
|
a fork to narrow a child**, **A read-only claim is made by isolation, not by
|
|
187
433
|
sentence**, and **A child's only upward route is a durable artifact** rules are
|
|
@@ -436,8 +682,52 @@ oracle where one is buildable. In the attested instance what caught the
|
|
|
436
682
|
consequence was the artifact-side oracle below, with the prose already in its
|
|
437
683
|
strengthened form.
|
|
438
684
|
|
|
439
|
-
**
|
|
440
|
-
|
|
685
|
+
**The propagate obligation has fired, and the record names what it cost.** The
|
|
686
|
+
waiting rule changed — the primitive named by its reactivity property, the
|
|
687
|
+
awaited artifact given a home — and the template's *when either rule changes
|
|
688
|
+
here, propagate* header sent that change to both of its restatements in this
|
|
689
|
+
consumer's `.claude/agents/` definitions: one a stage-session type, one a
|
|
690
|
+
read-only sweep type. They did not carry the rule alike. One cited the bullet by
|
|
691
|
+
name and restated its wait mechanics at length; the other carried a single
|
|
692
|
+
turn-end line with no citation, no primitive and no home. **The target is
|
|
693
|
+
symmetric even where the starting text is not**, so propagation into the second
|
|
694
|
+
was a genuine addition sized to that file's own voice rather than a paste of the
|
|
695
|
+
first's paragraph — and neither absorbed the rejected-alternative reasoning,
|
|
696
|
+
which is (b)'s line and stays with this section's owner. Recorded because the
|
|
697
|
+
sanction's cost is exactly this: every rule it licenses acquires N carriers that
|
|
698
|
+
a later change must find, and a restatement that drifted *unevenly* is harder to
|
|
699
|
+
spot than one that drifted at all.
|
|
700
|
+
|
|
701
|
+
**The obligation fired again, and the second firing found a carrier the roster
|
|
702
|
+
did not hold.** The waiting rule changed once more — the shell-child branch named
|
|
703
|
+
its artifact, and the liveness clause widened past *a producer this session did
|
|
704
|
+
not start* — and propagation reached both `.claude/agents/` definitions as before.
|
|
705
|
+
It also reached a **third** carrier sitting outside this section's roster
|
|
706
|
+
entirely: guard-kit's self-matching-`pgrep` rule states the same clause verbatim
|
|
707
|
+
in the corrective help text it prints when it blocks, mirrored in prose in that
|
|
708
|
+
kit's own SPEC. Left alone, a guard-blocked session would read advice that
|
|
709
|
+
undersells what it may now do with its own backgrounded child — a restatement
|
|
710
|
+
whose reader arrives at the worst possible moment, already stopped and looking for
|
|
711
|
+
the sanctioned form. Recorded because of what found it: the clause's own wording,
|
|
712
|
+
grepped across the tree, and not this section's list of known carriers. The
|
|
713
|
+
sanction's cost is N carriers a later change must find, and N is discovered by
|
|
714
|
+
grepping the rule's phrasing rather than by consulting the roster — a roster is a
|
|
715
|
+
record of the carriers someone noticed, never a proof of the set.
|
|
716
|
+
|
|
717
|
+
**No gate is owed *over the act*, and not for budget — but one is now owed over
|
|
718
|
+
its harm, and it exists.** No check can read a session's choice to end a turn:
|
|
719
|
+
the act leaves no tracked artifact and passes no chokepoint, and that ruling
|
|
720
|
+
stands unamended. What the ruling never licensed was stopping there. The harm
|
|
721
|
+
the turn-end causes does pass a chokepoint — a tracked-tree mutation while a
|
|
722
|
+
recorded producer is still writing arrives as an ordinary tool call — and it is
|
|
723
|
+
blocked there by guard-kit rule 14 (guard-kit/SPEC.md §The generic ruleset,
|
|
724
|
+
whose design §The delegation model owns). So the enforcement question this
|
|
725
|
+
section left open is answered **by relocating the subject from the act to its
|
|
726
|
+
consequence**, and the honest bound travels with the answer: it reaches only a
|
|
727
|
+
session that recorded, since the record's write is itself structurally
|
|
728
|
+
uncheckable.
|
|
729
|
+
|
|
730
|
+
**The anti-restatement gates were**
|
|
441
731
|
checked against a sanctioned restatement rather than assumed inert, since a
|
|
442
732
|
sanction that required weakening a gate would be the wrong sanction:
|
|
443
733
|
`check-shim-restatement` scans binding shims under the skills directory against a
|
|
@@ -447,9 +737,15 @@ agent definition is neither its scanned surface nor its corpus, and
|
|
|
447
737
|
canonical SPEC surface, which reaches no agent definition either. The sanction
|
|
448
738
|
therefore ships with **no gate exemption** — and the honest converse ships with
|
|
449
739
|
it: nothing in the battery would catch a *non*-compliant restatement, so (a)–(c)
|
|
450
|
-
are review-enforced.
|
|
451
|
-
|
|
452
|
-
|
|
740
|
+
are review-enforced. Both buildable oracles detect a *consequence* rather than
|
|
741
|
+
the act, and they sit at different distances from it: guard-kit rule 14
|
|
742
|
+
**prevents** the consequence at the tool call that would cause it, and
|
|
743
|
+
`check-producer-liveness` **detects** a producer still running at the next
|
|
744
|
+
stage's entry (evidence-kit/SPEC.md §check-producer-liveness). The second
|
|
745
|
+
detects late by construction — the turns between the firing and that entry are
|
|
746
|
+
already spent, and a firing at the last stage of an iteration has no entry after
|
|
747
|
+
it — which is what makes it the backstop behind the first rather than a
|
|
748
|
+
substitute for it.
|
|
453
749
|
|
|
454
750
|
**A case where an oracle *was* buildable now sits beside this one, and the two
|
|
455
751
|
are not each other's contradiction.** The dispatch-shape rules bind acts
|
|
@@ -462,6 +758,13 @@ to stop looking for an oracle. Recorded here for the same reason §The
|
|
|
462
758
|
delegation model records the durability rule beside the read-only-fan-out
|
|
463
759
|
caveat: otherwise the next reader re-litigates one of the two paragraphs.
|
|
464
760
|
|
|
761
|
+
**That last sentence was cashed rather than left standing.** The search it
|
|
762
|
+
licensed found one: the turn-end is still unreachable, but the mutation it
|
|
763
|
+
enables is a `PreToolUse` call, and rule 14 fires there. Recorded because a
|
|
764
|
+
sentence saying *keep looking* is cheap to write and easy to leave un-acted, and
|
|
765
|
+
the next reader should find the outcome beside the licence rather than have to
|
|
766
|
+
reconstruct whether anyone ever looked.
|
|
767
|
+
|
|
465
768
|
## Resume journal — agent writes, scratch reset sweeps
|
|
466
769
|
|
|
467
770
|
**The contract, in four clauses.** A mutating agent journals to a repo-local
|
|
@@ -620,6 +923,30 @@ diff review of agent gate edits remains a supervisor duty. `--fixture <dir>`
|
|
|
620
923
|
injects `staged-files` / `added-exemptions` lists (fixture-pair test
|
|
621
924
|
capability); live mode reads `git diff --cached`.
|
|
622
925
|
|
|
926
|
+
`checks/check-gate-tamper.gate` (`precommit`, binary-dispatched). `--fixture`
|
|
927
|
+
**survives the port**: it selects the rule's own input corpus, which no knob
|
|
928
|
+
resolves, so it is not the arrives-too-late shape gate-sdk/SPEC.md §The non-gate
|
|
929
|
+
arm deletes — the invocation delegation-kit/README.md documents stays true.
|
|
930
|
+
|
|
931
|
+
**Criterion 4 binds on this gate as a property of the *consumer's* configured
|
|
932
|
+
globs, not of the gate.** Under the kit-shipped `DELEGATION_KIT_GATE_FILES`
|
|
933
|
+
default the corpus is the consumer's own gates directory, which holds no kit
|
|
934
|
+
declaration, and the criterion clears. Under a config widening the globs to
|
|
935
|
+
every kit's check dir — this repo's — the gate's own declaration falls inside
|
|
936
|
+
them, and staging it makes the gate read its own bytes. Reading the kit default,
|
|
937
|
+
which is the natural first stop, therefore gives the wrong answer for the tree
|
|
938
|
+
the port actually runs against; gate-sdk/SPEC.md §The port-candidate criteria
|
|
939
|
+
carries the instance class.
|
|
940
|
+
|
|
941
|
+
**Two behaviours changed with the port, and both are rulings rather than
|
|
942
|
+
drift.** Assertion B's report lines came out of the shell form in no
|
|
943
|
+
reproducible order once a commit added two matching exemptions; the
|
|
944
|
+
compiled form emits the same **set** byte-sorted, on the kit-roots cohort's
|
|
945
|
+
ruling that a compiled form implements set semantics rather than a shell's
|
|
946
|
+
incidental ordering. And a trailing `--fixture` with no directory after it
|
|
947
|
+
**hung** the shell form in its argument-parsing loop; the compiled form reads the
|
|
948
|
+
missing value as the empty directory name and refuses. A hang is not a verdict, so ending it costs no assertion.
|
|
949
|
+
|
|
623
950
|
## check-agent-tier-explicit
|
|
624
951
|
|
|
625
952
|
Every agent definition under `DELEGATION_KIT_AGENT_DIR` declares a `model:`
|
|
@@ -677,7 +1004,7 @@ three failure modes a raw percentage reading leaves open:
|
|
|
677
1004
|
percentage printing OK invites a dispatch the budget may not afford, which
|
|
678
1005
|
is what the reroute exists to prevent; a lagging *high* percentage
|
|
679
1006
|
suppressed into STALE waves that dispatch through, because STALE is
|
|
680
|
-
advisory and never blocks (§
|
|
1007
|
+
advisory and never blocks (§usage-verdict). An unconditional
|
|
681
1008
|
reroute closes the first and opens the second, so it must fire on the
|
|
682
1009
|
non-blocking outcome only: inside the window an at-or-over reading still
|
|
683
1010
|
exits 1 on whichever axis fired, and an under-threshold one still exits 2.
|
|
@@ -864,17 +1191,9 @@ overridable via `DELEGATION_KIT_CRED_FILE` / `DELEGATION_KIT_ACCOUNT_CONFIG`).
|
|
|
864
1191
|
It ships no `tokens_in` / `tokens_out` producer: this harness's payload
|
|
865
1192
|
carries no cumulative token count, so under the dead-producer rule the keys
|
|
866
1193
|
stay defined here for third-party producers but no dead producer is shipped.
|
|
867
|
-
Beyond the snapshot write it renders a status bar
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
header, the stage from the lifecycle evidence file's **last data line**. Both
|
|
871
|
-
are repo-root-relative reads in the template's existing hardcode style — a
|
|
872
|
-
consumer-owned template adds no knob. With no cursor to read (no evidence file,
|
|
873
|
-
or one truncated to its preamble at an iteration boundary) the readout degrades
|
|
874
|
-
to the iteration alone rather than printing a dangling separator or a partial
|
|
875
|
-
parse — self-contained ANSI, no external asset
|
|
876
|
-
(§Out of scope). The snapshot write is the contract; the bar is
|
|
877
|
-
reference UX a consumer may restyle or discard. The source is pluggable
|
|
1194
|
+
Beyond the snapshot write it renders a status bar (§The statusline template).
|
|
1195
|
+
The snapshot write is the contract; the bar is reference UX a consumer may
|
|
1196
|
+
restyle or discard. The source is pluggable
|
|
878
1197
|
(`DELEGATION_KIT_USAGE_FILE`), so no
|
|
879
1198
|
single-operator `CLAUDE_CONFIG_DIR` assumption is baked in.
|
|
880
1199
|
|
|
@@ -937,6 +1256,50 @@ append-only (the tmp-prune / boundary-truncate conventions own cleanup), and
|
|
|
937
1256
|
carries operator-local account identifiers, so it lives under the gitignored
|
|
938
1257
|
measurement dir and never reaches a tracked file.
|
|
939
1258
|
|
|
1259
|
+
### The statusline template
|
|
1260
|
+
|
|
1261
|
+
`templates/statusline-usage.sh` renders model/effort, a context gauge, the 5h
|
|
1262
|
+
and 7d windows with reset countdowns, an `iteration@stage` readout, and a queue
|
|
1263
|
+
counter group. Self-contained ANSI, no external asset (§Out of scope).
|
|
1264
|
+
|
|
1265
|
+
The `iteration@stage` readout's two halves come from two surfaces: the iteration
|
|
1266
|
+
from the queue header, the stage from the lifecycle evidence file's **last data
|
|
1267
|
+
line**. Both are repo-root-relative reads in the template's existing hardcode
|
|
1268
|
+
style — a consumer-owned template adds no knob. With no cursor to read (no
|
|
1269
|
+
evidence file, or one truncated to its preamble at an iteration boundary) the
|
|
1270
|
+
readout degrades to the iteration alone rather than printing a dangling
|
|
1271
|
+
separator or a partial parse.
|
|
1272
|
+
|
|
1273
|
+
**The counter group** is a compact `N12 T3 D48 I7` tally of the queue's task
|
|
1274
|
+
sections, appended last. The template does not know how many sections exist,
|
|
1275
|
+
what they are called, or which tiers the set contains: it runs
|
|
1276
|
+
queue-kit's `bin/queue-counts.sh` and renders whatever
|
|
1277
|
+
`<section-name><TAB><count>` lines come back, labelling each with the initial of
|
|
1278
|
+
the name it was handed (queue-kit/SPEC.md §bin/queue-counts.sh). The section
|
|
1279
|
+
vocabulary therefore stays entirely inside the kit that owns it — there is
|
|
1280
|
+
nothing here for a later editor to hardcode. As soon as two returned names share
|
|
1281
|
+
an initial, **every** label widens to two characters, so a colliding pair stays
|
|
1282
|
+
distinguishable and the group stays aligned rather than only the collision
|
|
1283
|
+
changing width.
|
|
1284
|
+
|
|
1285
|
+
**It is a subprocess call, and that is the contract, not an implementation
|
|
1286
|
+
detail.** The counter's library exits 2 at *source* time on a malformed queue
|
|
1287
|
+
config; sourced into this shell it would take the whole status bar down — model,
|
|
1288
|
+
context gauge, both rate-limit gauges — over a component worth four characters.
|
|
1289
|
+
As a subprocess the same fault is a non-zero exit the render absorbs. An absent
|
|
1290
|
+
or non-executable counter, a non-zero exit, and empty output all drop the group
|
|
1291
|
+
and change nothing else about the bar, matching the two degradations the
|
|
1292
|
+
template already performs (an absent queue file drops the iteration; an absent
|
|
1293
|
+
evidence file drops the `@stage` suffix). The existence guard is kept even
|
|
1294
|
+
though every installer profile carrying this template also carries queue-kit,
|
|
1295
|
+
because a future profile pairing differently would otherwise turn a roster fact
|
|
1296
|
+
into a broken status bar.
|
|
1297
|
+
|
|
1298
|
+
The render cost is one subprocess per statusline fire, which is the kit's most
|
|
1299
|
+
frequent trigger by a wide margin (§The usage.txt contract). A full scan of a
|
|
1300
|
+
~3,600-line queue measures in single-digit milliseconds, so the group needs no
|
|
1301
|
+
cache — recorded so a later session does not add one on suspicion.
|
|
1302
|
+
|
|
940
1303
|
## Trend reporter
|
|
941
1304
|
|
|
942
1305
|
`bin/usage-trend.sh` reads the history log and reports how the footprint
|
|
@@ -985,17 +1348,18 @@ delegation-kit/
|
|
|
985
1348
|
usage-tests/budget-guard-cases.tsv # expected-action <TAB> scenario knobs
|
|
986
1349
|
usage-tests/dispatch-guard-cases.tsv # expected-outcome <TAB> scenario knobs
|
|
987
1350
|
usage-tests/trend-history.log # fixture history for the trend runner
|
|
988
|
-
checks/check-gate-tamper.
|
|
989
|
-
checks/check-rule-citation.
|
|
990
|
-
checks/check-agent-tier-explicit.
|
|
1351
|
+
checks/check-gate-tamper.gate # binary-dispatched; live arm reads the index through git
|
|
1352
|
+
checks/check-rule-citation.gate # hermetic, binary-dispatched: every SPEC rule citation resolves to a template lead-in
|
|
1353
|
+
checks/check-agent-tier-explicit.gate # hermetic, binary-dispatched: every agent definition declares an explicit model:
|
|
991
1354
|
gate-tests/check-gate-tamper/{good,bad}/
|
|
1355
|
+
gate-tests/check-gate-tamper.test.sh # the live arm, over throwaway git repos
|
|
992
1356
|
gate-tests/check-rule-citation/{good,bad}/
|
|
993
1357
|
gate-tests/check-agent-tier-explicit/{good,bad}/
|
|
994
1358
|
templates/agent-execution.md # full protocol, bound as a skill shim
|
|
995
1359
|
templates/dispatch-checklists.md # deletion/rename/audit pre-flight, reached by a pointer
|
|
996
1360
|
templates/agent-budget-guard.sh # PreToolUse(Agent) budget guard
|
|
997
1361
|
templates/agent-dispatch-guard.sh # PreToolUse(Agent) dispatch-shape guard (D1/D2/D3)
|
|
998
|
-
templates/statusline-usage.sh # push usage.txt producer (statusline hook) + status bar
|
|
1362
|
+
templates/statusline-usage.sh # push usage.txt producer (statusline hook) + status bar incl. the queue counter group
|
|
999
1363
|
templates/usage-poller.sh # poll usage.txt producer (timer-driven, fail-soft)
|
|
1000
1364
|
templates/delegation-config.sh # knob overrides (arrays live here)
|
|
1001
1365
|
smoke/install.sh
|
|
@@ -1156,7 +1520,21 @@ costs the work in flight.
|
|
|
1156
1520
|
`check-gate-tamper` speaks the full gate contract (`GATE-TAMPER: clean
|
|
1157
1521
|
(…)` / findings + `help:` lines / exit 0-1-2) and ships the standard
|
|
1158
1522
|
`good/`+`bad/` fixture pair driven through `--fixture` by gate-sdk's
|
|
1159
|
-
`run-gate-tests.sh`.
|
|
1523
|
+
`run-gate-tests.sh`. The pair reaches both assertions — the bad case carries a
|
|
1524
|
+
co-staged non-meta path *and* a newly added path exemption matching one of its
|
|
1525
|
+
own staged files, beside a bare token assertion B must pass over.
|
|
1526
|
+
|
|
1527
|
+
**The pair cannot reach the live arm, and that is a property of the injection
|
|
1528
|
+
rather than of the cases.** `--fixture` supplies both lists directly, so the
|
|
1529
|
+
function that derives them — reading each staged gate file's bytes out of the
|
|
1530
|
+
object store and diffing its exemption set against `HEAD`'s — runs in no fixture
|
|
1531
|
+
case. `gate-tests/check-gate-tamper.test.sh` is where it is exercised: each case
|
|
1532
|
+
builds a throwaway git repo, stages a commit shape into a real index, and runs
|
|
1533
|
+
the gate inside it. It holds the four verdicts the pair cannot — a HEAD-resident
|
|
1534
|
+
exemption is not "added" even when a co-staged file matches it, a newly appended
|
|
1535
|
+
one is, an added one matching nothing staged stays silent, and a staged
|
|
1536
|
+
*deletion* of a gate file reads as an empty exemption set rather than a failure
|
|
1537
|
+
to read.
|
|
1160
1538
|
|
|
1161
1539
|
`check-rule-citation` speaks the same gate contract and ships the standard
|
|
1162
1540
|
`good/`+`bad/` fixture pair (a citation resolving to a template lead-in vs one
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=.claude/agents/*.md dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: delegation-kit/SPEC.md §check-agent-tier-explicit — every agent definition under the scanned directory declares a `model:` field in its frontmatter (an explicit `inherit` passes; only omission reds)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=kit:*.sh,native/src/gates/gate_tamper.rs dir=one valve=none tier=precommit
|
|
2
|
+
# install: zero-config
|
|
3
|
+
# spec: delegation-kit/SPEC.md §Verify after every agent commit — a gate-weakening commit is blocked by shape (A gate edits stay meta-isolated; B a new path-exemption can't excuse a co-staged file)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=delegation-kit/SPEC.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: delegation-kit/SPEC.md §One template, a resident pointer — every `the template's **<name>** rule` citation in SPEC §The delegation model resolves to a template bullet's bold lead-in (forward direction only)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# the second tamper shape, in the same commit as the first: a newly added path exemption that
|
|
2
|
+
# excuses a file staged beside it. `plain-token` is not path-shaped, so assertion B passes it
|
|
3
|
+
# over — the discrimination the one-violation case could not show.
|
|
4
|
+
call-service/src/*.rs
|
|
5
|
+
plain-token
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of check-gate-tamper's LIVE arm — the one the good/bad pair cannot reach.
|
|
3
|
+
# The pair injects both lists through --fixture, so the function that reads a staged gate
|
|
4
|
+
# file's bytes out of the object store (`git show :<path>` against `git show HEAD:<path>`) is
|
|
5
|
+
# exercised by no fixture case at all, and assertion B's added-exemption derivation with it.
|
|
6
|
+
#
|
|
7
|
+
# Each case builds a throwaway git repo, stages a commit shape, and runs the gate inside it, so
|
|
8
|
+
# the corpus is a real index rather than an injected list.
|
|
9
|
+
#
|
|
10
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
11
|
+
set -uo pipefail
|
|
12
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
13
|
+
|
|
14
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # delegation-kit/
|
|
15
|
+
CHECKS="$DIR/checks"
|
|
16
|
+
|
|
17
|
+
fails=0
|
|
18
|
+
tmp="$(mktemp -d)"
|
|
19
|
+
trap 'rm -rf "$tmp"' EXIT
|
|
20
|
+
|
|
21
|
+
# new_repo <name> — a git repo whose HEAD carries one gate file with one exemption element
|
|
22
|
+
new_repo() {
|
|
23
|
+
local d="$tmp/$1"
|
|
24
|
+
mkdir -p "$d/scripts" "$d/product"
|
|
25
|
+
git -C "$d" init -q
|
|
26
|
+
git -C "$d" config user.email tamper@example.invalid
|
|
27
|
+
git -C "$d" config user.name tamper
|
|
28
|
+
printf '#!/usr/bin/env bash\n# exception-list: the gate this repo already had\nEXEMPT=(\n "product/*.txt"\n)\n' \
|
|
29
|
+
>"$d/scripts/check-sample.sh"
|
|
30
|
+
printf 'seed\n' >"$d/README.md"
|
|
31
|
+
git -C "$d" add -A
|
|
32
|
+
git -C "$d" commit -q -m seed
|
|
33
|
+
printf '%s\n' "$d"
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
# case_run <name> <want> <expect> — the repo's index is already staged by the caller
|
|
37
|
+
case_run() {
|
|
38
|
+
local d="$1" name="$2" want="$3" expect="$4" out rc
|
|
39
|
+
out="$( cd "$d" && gate_run check-gate-tamper "$CHECKS" 2>&1 )"; rc=$?
|
|
40
|
+
if [[ "$rc" -ne "$want" ]]; then
|
|
41
|
+
echo " FAIL: $name expected exit $want, got $rc: $out"; fails=$((fails + 1)); return
|
|
42
|
+
fi
|
|
43
|
+
if ! grep -qF -- "$expect" <<<"$out"; then
|
|
44
|
+
echo " FAIL: $name exit OK but output lacks '$expect': $out"; fails=$((fails + 1))
|
|
45
|
+
fi
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
# A — a gate file staged with meta-layer paths only is clean, and the exemption its HEAD
|
|
49
|
+
# version already carries is not "added" even though a co-staged file would match it.
|
|
50
|
+
d="$(new_repo head-resident)"
|
|
51
|
+
printf 'x\n' >"$d/product/thing.txt"
|
|
52
|
+
printf 'note\n' >"$d/scripts/note.md"
|
|
53
|
+
git -C "$d" add scripts/note.md
|
|
54
|
+
case_run "$d" head-resident-exemption-is-not-added 0 "GATE-TAMPER: clean"
|
|
55
|
+
|
|
56
|
+
# B — the same repo, now staging the product file the HEAD-resident exemption matches: the
|
|
57
|
+
# exemption is still not new, so assertion B stays silent and only assertion A speaks.
|
|
58
|
+
d="$(new_repo a-not-b)"
|
|
59
|
+
printf 'x\n' >"$d/product/thing.txt"
|
|
60
|
+
printf '# edited\n' >>"$d/scripts/check-sample.sh"
|
|
61
|
+
git -C "$d" add product/thing.txt scripts/check-sample.sh
|
|
62
|
+
out="$( cd "$d" && gate_run check-gate-tamper "$CHECKS" 2>&1 )"
|
|
63
|
+
if ! grep -qF "gate edit not isolated" <<<"$out"; then
|
|
64
|
+
echo " FAIL: a-not-b did not report the isolation violation: $out"; fails=$((fails + 1))
|
|
65
|
+
fi
|
|
66
|
+
if grep -qF "self-serving exemption" <<<"$out"; then
|
|
67
|
+
echo " FAIL: a-not-b reported a HEAD-resident exemption as newly added: $out"; fails=$((fails + 1))
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
# C — the byte reader proper: a *new* element appended to the staged blob of a gate file,
|
|
71
|
+
# matching a file staged in the same commit. Only `git show :<path>` sees it.
|
|
72
|
+
d="$(new_repo self-serving)"
|
|
73
|
+
printf '#!/usr/bin/env bash\n# exception-list: the gate this repo already had\nEXEMPT=(\n "product/*.txt"\n "product/*.md"\n)\n' \
|
|
74
|
+
>"$d/scripts/check-sample.sh"
|
|
75
|
+
printf 'y\n' >"$d/product/excused.md"
|
|
76
|
+
git -C "$d" add scripts/check-sample.sh product/excused.md
|
|
77
|
+
case_run "$d" a-newly-added-exemption-excusing-a-co-staged-file 1 "product/*.md -> product/excused.md"
|
|
78
|
+
|
|
79
|
+
# D — the same added element with nothing co-staged that it matches: assertion B is silent, so
|
|
80
|
+
# the derivation is not simply reporting every element it can parse.
|
|
81
|
+
d="$(new_repo added-but-unmatched)"
|
|
82
|
+
printf '#!/usr/bin/env bash\n# exception-list: the gate this repo already had\nEXEMPT=(\n "product/*.txt"\n "nowhere/*.md"\n)\n' \
|
|
83
|
+
>"$d/scripts/check-sample.sh"
|
|
84
|
+
git -C "$d" add scripts/check-sample.sh
|
|
85
|
+
out="$( cd "$d" && gate_run check-gate-tamper "$CHECKS" 2>&1 )"
|
|
86
|
+
if grep -qF "self-serving exemption" <<<"$out"; then
|
|
87
|
+
echo " FAIL: added-but-unmatched fired on an exemption matching nothing staged: $out"
|
|
88
|
+
fails=$((fails + 1))
|
|
89
|
+
fi
|
|
90
|
+
|
|
91
|
+
# E — an index with no gate file staged: assertion A never opens, so a non-meta path is fine.
|
|
92
|
+
d="$(new_repo no-gate-file)"
|
|
93
|
+
printf 'z\n' >"$d/product/thing.txt"
|
|
94
|
+
git -C "$d" add product/thing.txt
|
|
95
|
+
case_run "$d" a-commit-touching-no-gate-file 0 "1 staged path(s)"
|
|
96
|
+
|
|
97
|
+
# F — a staged *deletion* of a gate file: the staged blob does not exist, and the reader must
|
|
98
|
+
# treat that as no exemptions rather than as a failure to read.
|
|
99
|
+
d="$(new_repo staged-deletion)"
|
|
100
|
+
git -C "$d" rm -q scripts/check-sample.sh
|
|
101
|
+
case_run "$d" a-staged-gate-file-deletion 0 "GATE-TAMPER: clean"
|
|
102
|
+
|
|
103
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
104
|
+
echo "check-gate-tamper.test: $fails assertion(s) failed"
|
|
105
|
+
exit 1
|
|
106
|
+
fi
|
|
107
|
+
echo "check-gate-tamper.test: ok (live arm: HEAD-resident exemptions excluded, a newly added one excusing a co-staged file rejected, an unmatched one silent, a gate-file deletion read as empty)"
|
|
108
|
+
exit 0
|