checkwright 0.23.0 → 0.25.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 +175 -13
- package/lib/common/lock.sh +7 -0
- package/lib/common/recipe.sh +1 -1
- package/lib/diff.sh +2 -0
- package/lib/init.sh +40 -16
- package/lib/uninstall.sh +2 -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 +2 -0
- package/payload/canon-kit/SPEC.md +454 -28
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-amendment-update-target.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/checks/check-unmarked-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-amendment-update-target/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -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 +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- 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-unmarked-claim/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +18 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +85 -0
- package/payload/canon-kit/lib/spec.sh +16 -0
- package/payload/canon-kit/smoke/install.sh +3 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +17 -2
- package/payload/context-kit/README.md +6 -4
- package/payload/context-kit/SPEC.md +256 -76
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +2 -17
- 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-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
- package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +1 -1
- package/payload/context-kit/smoke/agents-md.sh +16 -4
- package/payload/context-kit/smoke/install.sh +3 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/README.md +11 -1
- package/payload/delegation-kit/SPEC.md +652 -11
- package/payload/delegation-kit/bin/wait-probe.sh +184 -0
- 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/gate-tests/subagent-stop-liveness.test.sh +99 -0
- package/payload/delegation-kit/smoke/install.sh +21 -1
- package/payload/delegation-kit/templates/agent-execution.md +88 -4
- package/payload/delegation-kit/templates/subagent-stop-liveness.sh +56 -0
- package/payload/doctrine-kit/SPEC.md +1 -1
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
- package/payload/doctrine-kit/smoke/install.sh +17 -4
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +71 -7
- 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 +21 -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 +42 -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 +17 -9
- package/payload/gate-sdk/SPEC.md +4680 -295
- package/payload/gate-sdk/bin/build-native.sh +66 -1
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +37 -9
- package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
- package/payload/gate-sdk/bin/run-gates.sh +137 -13
- package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
- package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -1
- 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 +1 -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.gate +3 -0
- 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 +132 -15
- 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 +1 -0
- package/payload/gate-sdk/checks/check-kit-enum.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 +1 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.gate +3 -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-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/bad/expect.txt +5 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +27 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
- 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.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -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-nospec.sh +4 -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/check-ungrounded.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -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/kit-spec.md +12 -0
- 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 +5 -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 +49 -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-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-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-tree-terms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +94 -0
- 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 +94 -1
- package/payload/gate-sdk/lib/gate.sh +232 -25
- package/payload/gate-sdk/smoke/install.sh +28 -1
- package/payload/guard-kit/README.md +4 -3
- package/payload/guard-kit/SPEC.md +578 -47
- package/payload/guard-kit/bin/compare-settings-allow.sh +36 -12
- package/payload/guard-kit/bin/run-guard-tests.sh +27 -4
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +46 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/guard-tests/background-cases.tsv +14 -0
- package/payload/guard-kit/guard-tests/cases.tsv +67 -9
- package/payload/guard-kit/lib/guard.sh +361 -18
- package/payload/guard-kit/templates/bash-guard.sh +2 -0
- package/payload/guard-kit/templates/close-triage.md +10 -3
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/lifecycle-kit/README.md +3 -2
- package/payload/lifecycle-kit/SPEC.md +509 -77
- package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
- package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.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 +1 -1
- 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 +22 -22
- 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 +120 -10
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/lib/stages.sh +5 -0
- package/payload/lifecycle-kit/smoke/install.sh +29 -15
- package/payload/lifecycle-kit/templates/lead.md +32 -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 +20 -6
- package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
- package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
- package/payload/queue-kit/README.md +10 -10
- package/payload/queue-kit/SPEC.md +379 -84
- package/payload/queue-kit/bin/queue-counts.sh +1 -1
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.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 +1 -1
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +0 -49
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +41 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -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/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -124
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
- package/payload/context-kit/checks/check-memory-off.sh +0 -113
- package/payload/context-kit/checks/check-settings-paths.sh +0 -94
- package/payload/context-kit/checks/check-settings-pins.sh +0 -111
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
- package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
- 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 -273
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
- package/payload/gate-sdk/checks/check-core-files.sh +0 -76
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
- package/payload/gate-sdk/checks/check-gate-assertions.sh +0 -148
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
- package/payload/gate-sdk/checks/check-graph.sh +0 -632
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
- package/payload/gate-sdk/checks/check-identity.sh +0 -135
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
- package/payload/gate-sdk/checks/check-tree-terms.sh +0 -66
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
- 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 -64
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
- 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-prose-precondition.sh +0 -64
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
- /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
|
@@ -18,7 +18,13 @@
|
|
|
18
18
|
## What changes
|
|
19
19
|
|
|
20
20
|
<!-- The delta: new invariants, states, interfaces, error behavior. Each will
|
|
21
|
-
land in its proper canonical-spec section at merge — write it so it can.
|
|
21
|
+
land in its proper canonical-spec section at merge — write it so it can.
|
|
22
|
+
|
|
23
|
+
Each delta is a heading of the form `### (<N>) <title>` — <N> a positive
|
|
24
|
+
integer, no leading zero, numbering from 1, sequential and unique within
|
|
25
|
+
this file. A gap or a repeat means a delta was split or dropped without its
|
|
26
|
+
citations moving. Renumber a delta and you move its citations with it.
|
|
27
|
+
Checked by check-amendment-update-target. -->
|
|
22
28
|
|
|
23
29
|
## Producers and consumers
|
|
24
30
|
|
|
@@ -38,7 +44,16 @@
|
|
|
38
44
|
<!-- Any canonical-spec section describing the prior flow that this change
|
|
39
45
|
touches — updated here, in the amendment, not left to drift. Each entry
|
|
40
46
|
names the delta that owns it; an update target no delta claims reaches
|
|
41
|
-
build as an orphan a batch adopts on its own authority.
|
|
47
|
+
build as an orphan a batch adopts on its own authority.
|
|
48
|
+
|
|
49
|
+
A citation is `delta <N>` or `deltas <N>` (case-insensitive), continuing
|
|
50
|
+
into further integers through commas and/or the word `and` — `(deltas 2, 3)`,
|
|
51
|
+
`(deltas 1 and 4)`; `delta 3's` is the same citation. `all deltas` cites
|
|
52
|
+
every delta this file defines, for a target (a generated mirror, say) that
|
|
53
|
+
goes stale the moment any of them lands. For a target deliberately owned by
|
|
54
|
+
no delta, tag `<!-- update-target-exempt: <reason> -->` on the bullet's first
|
|
55
|
+
line or the one above — the reason is mandatory. Checked by
|
|
56
|
+
check-amendment-update-target. -->
|
|
42
57
|
|
|
43
58
|
<!-- The one sanctioned copy exemption: an amendment may embed a wire-contract
|
|
44
59
|
delta (e.g. a fenced proto block) until merge, because it is the design
|
|
@@ -41,12 +41,14 @@ hook approximation and the session-context template also expect
|
|
|
41
41
|
generated pre-commit hook: `bash gate-sdk/bin/gen-pre-commit.sh --write`.
|
|
42
42
|
The memory-off gates are inert until you opt in — `check-settings-pins`
|
|
43
43
|
skips clean with no pins file, so create `settings-pins.conf` (one
|
|
44
|
-
`<
|
|
44
|
+
`<path> = <expected JSON>` per line, the path a dot/bracket path expression
|
|
45
|
+
rather than an arbitrary `jq` filter — SPEC.md §check-settings-pins) naming
|
|
46
|
+
the keys to hold, e.g. the
|
|
45
47
|
auto-memory-disabling ones. `check-settings-paths` needs no manifest: it
|
|
46
48
|
reads the same settings file and holds every allow-list grant naming a
|
|
47
49
|
literal `.sh` path against the tree. `check-footprint-fresh` byte-gates a committed
|
|
48
|
-
`docs/footprint.md` against
|
|
49
|
-
publish that projection.
|
|
50
|
+
`docs/footprint.md` against the footprint emitter it calls in-process;
|
|
51
|
+
register it when you publish that projection.
|
|
50
52
|
|
|
51
53
|
2. Wire the session-start hook — copy `templates/session-context.sh` into your
|
|
52
54
|
gates dir, edit its `[EDIT ME]` sections (layout judgment, not mechanism),
|
|
@@ -74,7 +76,7 @@ bash context-kit/bin/md-section.sh <file> <heading> # print one section by headi
|
|
|
74
76
|
bash context-kit/bin/pub-index.sh [paths…] # public API surface (per-language extractors; ships rust, ts)
|
|
75
77
|
bash context-kit/bin/always-loaded.sh # standing surface vs baseline (one line)
|
|
76
78
|
bash context-kit/bin/always-loaded.sh --update-baseline # a close-stage act
|
|
77
|
-
bash
|
|
79
|
+
bash gate-sdk/bin/run-gates.sh --emit footprint # per-kit token footprint (the committed page)
|
|
78
80
|
```
|
|
79
81
|
|
|
80
82
|
## Test
|
|
@@ -66,7 +66,7 @@ three are advisory `bin/` tools; none joins `gates.list`.
|
|
|
66
66
|
it — a second adopter's tree carries a TypeScript surface its Rust-only copy
|
|
67
67
|
could not index — not before: an unrequested plugin framework would have
|
|
68
68
|
been scaffolding, and AST/tree-sitter parsing is above the tool's grep-grade
|
|
69
|
-
portability altitude (
|
|
69
|
+
portability altitude (shell over coreutils, Tier one).
|
|
70
70
|
|
|
71
71
|
## The session-context hook (template)
|
|
72
72
|
|
|
@@ -74,9 +74,22 @@ three are advisory `bin/` tools; none joins `gates.list`.
|
|
|
74
74
|
pattern): wired as the harness's session-start hook via
|
|
75
75
|
`templates/settings-sessionstart.json`, it assembles the session brief.
|
|
76
76
|
Every step is guarded and degrades silently — the hook never fails a
|
|
77
|
-
session.
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
session.
|
|
78
|
+
|
|
79
|
+
**A `hooks[]` edit arms immediately, and this is the kit set's record of it** —
|
|
80
|
+
true of every hook registration in the settings file, not just this template's:
|
|
81
|
+
the running session and its already-dispatched subagents pick it up with no
|
|
82
|
+
restart and no re-dispatch. Measured rather than assumed, by watching a newly
|
|
83
|
+
registered hook's log fill inside the same session that wrote the registration.
|
|
84
|
+
It bounds what a session-start hook can be relied on for: arming is not the
|
|
85
|
+
same event as the session brief, so a hook wired mid-session runs without ever
|
|
86
|
+
having assembled one.
|
|
87
|
+
|
|
88
|
+
Steps, in order:
|
|
89
|
+
|
|
90
|
+
1. **Queue index** — via queue-kit's `queue-index` arm, reached through the
|
|
91
|
+
battery runner's `--emit` front-end (queue-kit/SPEC.md §The queue-index arm),
|
|
92
|
+
collapsing the
|
|
80
93
|
Deferred section to a tally except on the close and scope stages. The stage
|
|
81
94
|
it routes on comes from the cursor — `CONTEXT_KIT_STATE_FILE`'s last data
|
|
82
95
|
line — with an empty cursor (no such file, or one truncated to its preamble
|
|
@@ -91,7 +104,7 @@ session. Steps, in order:
|
|
|
91
104
|
A configured icebox tier rides **both** branches as a one-line tally, so
|
|
92
105
|
this step needs no new stage routing: a dormant entry is already one line,
|
|
93
106
|
so there is no full listing of it to withhold, and the eviction work that
|
|
94
|
-
reads the tier reads
|
|
107
|
+
reads the tier reads `--emit queue-index --icebox-candidates` rather than this
|
|
95
108
|
index.
|
|
96
109
|
2. **Dirty-surface pre-run** — for each component with uncommitted
|
|
97
110
|
changes, pre-run the matching surface index (default: `pub-index` over
|
|
@@ -291,9 +304,9 @@ The constrained members and what forces each:
|
|
|
291
304
|
consumer below it cannot run the battery at all. Recorded here because the
|
|
292
305
|
earlier `4.0` was a fail-open: `env-probe` reported `ok` on a 4.2 box the
|
|
293
306
|
battery would fail with an obscure syntax error.
|
|
294
|
-
- `awk::GNU` — no version floor, one implementation constraint
|
|
295
|
-
|
|
296
|
-
§check-gate-assertions
|
|
307
|
+
- `awk::GNU` — no version floor, one implementation constraint, whose last live
|
|
308
|
+
holder the eighth port cut retired; narrowing the element is filed as
|
|
309
|
+
`interpreter-floor-gawk-residue-empty` (gate-sdk/SPEC.md §check-gate-assertions).
|
|
297
310
|
- `sort::coreutils` — no version floor, one implementation constraint, and one
|
|
298
311
|
member standing for a whole package family: GNU coreutils is forced by
|
|
299
312
|
`realpath --relative-to` and its `-m` form (gate-sdk's shared gate library and
|
|
@@ -304,7 +317,7 @@ The constrained members and what forces each:
|
|
|
304
317
|
the battery at all rather than failing one gate. The representative member is
|
|
305
318
|
the binary carrying a forcing construct, which is also the floor predicate's
|
|
306
319
|
own comparison tool.
|
|
307
|
-
- `cargo:1.
|
|
320
|
+
- `cargo:1.71::contributor` — a **contributor-side** floor, never a runtime one,
|
|
308
321
|
and that reading is now declared on the element and read by name rather than
|
|
309
322
|
left as an aside: the audience field is what the consumer-side predicate
|
|
310
323
|
above resolves, so the sentence is enforced instead of merely written. It
|
|
@@ -316,14 +329,27 @@ The constrained members and what forces each:
|
|
|
316
329
|
this repo today, its first cohort having landed. Everywhere else it stays the weaker
|
|
317
330
|
**contributor/build** floor: a consumer tree receives a prebuilt binary and never
|
|
318
331
|
a crate, so nothing there compiles at commit time. Both tiers rest on the same
|
|
319
|
-
forcing fact —
|
|
320
|
-
|
|
321
|
-
|
|
332
|
+
forcing fact — the **highest MSRV in the crate's resolved dependency graph**,
|
|
333
|
+
which since the settings cohort took the crate's first dependency
|
|
334
|
+
(gate-sdk/SPEC.md §The settings cohort, and the crate's first dependency) is
|
|
335
|
+
above the `edition = "2021"` floor of 1.56 that governed while the graph was
|
|
336
|
+
empty. It is re-derived against the lock at any dependency change rather than
|
|
337
|
+
recalled, and a move carries every surface stating it — including **§The
|
|
338
|
+
rendered verdict below and `docs/site-architecture.md`, both of which quote
|
|
339
|
+
this element as a *format example***, and both machine-checked by nothing. That
|
|
340
|
+
pair is named rather than described because a format example is the shape a
|
|
341
|
+
floor move keeps missing: it reads as illustration, so it survives the grep a
|
|
342
|
+
reader runs for the surface. The 1.56 → 1.71 move missed
|
|
343
|
+
`docs/site-architecture.md` at authoring and this section's own example at the
|
|
344
|
+
merge, the second caught only by a close-stage audit. It is also a `check-crate-arms` input: clippy
|
|
345
|
+
suppresses a lint whose suggested API postdates the declared floor, so raising
|
|
346
|
+
the floor un-suppresses lints against code no change touched.
|
|
347
|
+
`cargo` is the member rather than `rustc` because `cargo build` is what the
|
|
322
348
|
contributor routine and the `gates` workflow actually invoke, and the two ship as
|
|
323
349
|
one toolchain sharing a version banner — the representative-member rule the
|
|
324
|
-
`sort::coreutils` entry above states. The floor tracks the
|
|
325
|
-
|
|
326
|
-
would be exactly the aspiration this section's rule forbids. Runtime is
|
|
350
|
+
`sort::coreutils` entry above states. The floor tracks what the crate and its
|
|
351
|
+
graph actually require, not whatever rustc a given box happens to carry; pinning
|
|
352
|
+
the latter would be exactly the aspiration this section's rule forbids. Runtime is
|
|
327
353
|
unaffected: git remains the sole runtime dependency of a ported gate, shelled out
|
|
328
354
|
rather than embedded (TRAJECTORY.md §The closed rulings owns that constraint).
|
|
329
355
|
Every other member is a bare name — no construct in the battery forces a version
|
|
@@ -351,7 +377,7 @@ not one.
|
|
|
351
377
|
for a constrained member, the constraint and its verdict — `` (floor 4.3, ok) ``,
|
|
352
378
|
`` (requires GNU — below contract) ``, `` (floor 4.3 — unverified) ``; an
|
|
353
379
|
unconstrained member carries no parenthetical. A member carrying an audience
|
|
354
|
-
carries it here too, as `` (floor 1.
|
|
380
|
+
carries it here too, as `` (floor 1.71, contributor-only, ok) ``, and every line
|
|
355
381
|
that names such a member is marked the same way — the absent list and the
|
|
356
382
|
below-contract list included, because those are the two lines on which *below a
|
|
357
383
|
floor that is yours* and *below a floor you are not on the hook for* would
|
|
@@ -395,8 +421,8 @@ nothing unbidden.
|
|
|
395
421
|
`bin/always-loaded.sh` measures the standing surface: the summed line
|
|
396
422
|
count of the configured surface files (default `CLAUDE.md`) plus the
|
|
397
423
|
steady-state hook body, approximated by the configured hook-body command
|
|
398
|
-
(default: queue-kit's `queue-index
|
|
399
|
-
resolvable). The approximation is deliberate: the meter must never run the
|
|
424
|
+
(default: queue-kit's `queue-index` arm through the battery runner's `--emit`
|
|
425
|
+
front-end, `--collapse-deferred`, when resolvable). The approximation is deliberate: the meter must never run the
|
|
400
426
|
session-context hook itself — the hook emits this meter's own output line,
|
|
401
427
|
so self-measurement would recurse and inflate.
|
|
402
428
|
|
|
@@ -424,7 +450,7 @@ the measurement.
|
|
|
424
450
|
|
|
425
451
|
## bin/footprint
|
|
426
452
|
|
|
427
|
-
|
|
453
|
+
The footprint emitter publishes the kits' measured context footprint — the
|
|
428
454
|
adoption-cost evidence a consumer weighs before vendoring, the concrete form of
|
|
429
455
|
the token-economics positioning. Where the meter reads one consumer's live
|
|
430
456
|
always-loaded total, this reads the tracked kit surfaces and attributes the cost
|
|
@@ -458,17 +484,31 @@ honest. The exclusion is also a determinism requirement: the freshness gate
|
|
|
458
484
|
byte-compares the emission, so every measured surface must be a static tracked
|
|
459
485
|
file — a live hook run, being state-dependent, could never be byte-gated.
|
|
460
486
|
|
|
461
|
-
**Emission
|
|
462
|
-
`--emit`
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
487
|
+
**Emission, and the substrate it runs on.** The emitter is a **non-gate arm of
|
|
488
|
+
the gate binary**, `--emit-footprint` (gate-sdk/SPEC.md §The non-gate arm), and
|
|
489
|
+
it prints the committed `docs/footprint.md` page whole: front matter, method and
|
|
490
|
+
exclusion prose, then the table with a totals row. It is reached as
|
|
491
|
+
`bash gate-sdk/bin/run-gates.sh --emit footprint`, because an arm receives no
|
|
492
|
+
configuration of its own and that front-end resolves `CONTEXT_KIT_SURFACES`
|
|
493
|
+
across the config bridge before invoking it.
|
|
494
|
+
|
|
495
|
+
The emission is a **library function** the arm wraps rather than the arm itself,
|
|
496
|
+
which is what lets §check-footprint-fresh call it in-process and the value
|
|
497
|
+
rollup consume its per-kit figures as data rather than re-parsing the rendered
|
|
467
498
|
page.
|
|
468
499
|
|
|
500
|
+
**The advisory bare mode did not survive the port**, and its loss is the ported
|
|
501
|
+
script's deletion rather than a separate decision: the shell emitter printed a
|
|
502
|
+
human header plus the table on a bare invocation, and the replacement arm's
|
|
503
|
+
contract is exactly what `--emit` printed. The table is still reachable — it is
|
|
504
|
+
in the emitted page — so what went is the header, which had no reader that the
|
|
505
|
+
page does not serve. Advisory by construction is unchanged: the arm never joins
|
|
506
|
+
`gates.list`, and the freshness gate (§check-footprint-fresh) is what blocks a
|
|
507
|
+
stale page.
|
|
508
|
+
|
|
469
509
|
## The brevity gate
|
|
470
510
|
|
|
471
|
-
`
|
|
511
|
+
`check-brevity` — a section-agnostic name: the governed section
|
|
472
512
|
is a knob, so no section name binds the gate (a consumer's
|
|
473
513
|
`check-convention-brevity` would be its section-specific counterpart). It scans one designated
|
|
474
514
|
always-loaded file for a bulleted section where each `- **name:**` bullet
|
|
@@ -594,25 +634,75 @@ dir, the untracked local settings) is a local-environment scan, CI-neutral
|
|
|
594
634
|
|
|
595
635
|
## check-settings-pins
|
|
596
636
|
|
|
597
|
-
`checks/check-settings-pins.
|
|
598
|
-
|
|
637
|
+
`checks/check-settings-pins.gate` (hermetic, `precommit`, dispatched to the gate
|
|
638
|
+
binary — gate-sdk/SPEC.md §The settings cohort, and the crate's first dependency)
|
|
639
|
+
is the identity.conf pattern pointed at harness config. Every pin in
|
|
640
|
+
`CONTEXT_KIT_SETTINGS_PINS`
|
|
599
641
|
(default `${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`) holds against
|
|
600
642
|
the tracked settings file `CONTEXT_KIT_SETTINGS_FILE` (default
|
|
601
|
-
`.claude/settings.json`). Grammar: one `<
|
|
602
|
-
`#` comments and blanks ignored
|
|
603
|
-
rendering (`false`, `"1"`, `{"k":1}`). General-purpose by construction — any
|
|
643
|
+
`.claude/settings.json`). Grammar: one `<path> = <expected JSON>` per line,
|
|
644
|
+
`#` comments and blanks ignored. General-purpose by construction — any
|
|
604
645
|
settings key is pinnable — this consumer's first pins hold the
|
|
605
646
|
auto-memory-disabling keys.
|
|
606
647
|
|
|
648
|
+
**The left-hand side is a path expression, not a `jq` filter**, and the grammar
|
|
649
|
+
is complete:
|
|
650
|
+
|
|
651
|
+
```
|
|
652
|
+
path := '.' | step+
|
|
653
|
+
step := '.' ident | '.' '"' string '"' | '[' '"' string '"' ']' | '[' int ']'
|
|
654
|
+
ident := [A-Za-z_][A-Za-z0-9_]*
|
|
655
|
+
int := '-'? [0-9]+
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
A path **opens with `.`**; everything else — pipes, filters, `?` error
|
|
659
|
+
suppression, slices, iteration, functions, arithmetic — is refused, and the gate
|
|
660
|
+
turns that refusal into **exit 2 naming the offending pin, the knob it came from,
|
|
661
|
+
and the construct**. The leading-`.` rule is load-bearing rather than tidy: `jq`
|
|
662
|
+
reads a leading `["k"]` as an array *literal* and returns `["k"]`, so admitting
|
|
663
|
+
one would answer a question `jq` was never asked. This is a narrowing of a
|
|
664
|
+
consumer config surface, taken openly and refusing loudly outside the subset — not
|
|
665
|
+
the silent mis-scan the ERE cohort's foreclosure forbids, which binds *sizing an
|
|
666
|
+
implementation* to one consumer's usage while the documented grammar stays wider.
|
|
667
|
+
The knob's whole documented job is naming a settings key, which a path expression
|
|
668
|
+
expresses in full. Operator-ruled 2026-08-14, with a filter crate (`jaq`) priced
|
|
669
|
+
against it and declined; a later reader must not reopen it on the observation that
|
|
670
|
+
such a crate exists, because that observation is what the ruling was made against.
|
|
671
|
+
|
|
672
|
+
**The right-hand side is a JSON value, and the comparison is structural** — the
|
|
673
|
+
`jq -c` *rendering* is not the contract. A byte-rendering contract is unachievable
|
|
674
|
+
across `jq` versions and therefore cannot be a parity target: `jq` 1.6 re-renders
|
|
675
|
+
every number through a double where 1.7 preserves an unmutated literal, so
|
|
676
|
+
`{"x":1e3}` renders `1000` under one and `1e3` under the other, and a crate
|
|
677
|
+
holding byte parity with "`jq -c`" would be holding parity with whichever `jq` the
|
|
678
|
+
comparison ran against. Structural comparison has no such dependency and diverges
|
|
679
|
+
from the shell only in the forgiving direction — an expected side written with
|
|
680
|
+
non-canonical spacing now matches. Part of what *structural* means is one explicit
|
|
681
|
+
rule the object model does not give free: **numbers compare by their `f64` value
|
|
682
|
+
wherever they occur, every other shape by the parsed value's own equality**. The
|
|
683
|
+
parser's own equality separates `1` from `1.0` by variant where `jq` calls them
|
|
684
|
+
one value, and `jq`'s equality is not shallow, so a pin nested one level deep
|
|
685
|
+
would otherwise report a mismatch nobody would think to test for.
|
|
686
|
+
|
|
687
|
+
Two semantics are **preserved deliberately rather than improved**, because a port
|
|
688
|
+
proves parity and does not repair rules. A path evaluating to `null` is the
|
|
689
|
+
**absent** branch, whether the key is absent or explicitly `null`: the shell
|
|
690
|
+
cannot tell the two apart and the compiled form can, so reproducing the
|
|
691
|
+
conflation is the faithful port, and a session wanting the distinction files an
|
|
692
|
+
entry against this section. And **indexing follows `jq`'s own type rules** — a
|
|
693
|
+
field step on `null` yields `null`; a field step on a string, number, boolean or
|
|
694
|
+
array, and an index step on an object, are errors the gate classifies as a
|
|
695
|
+
malformed pin.
|
|
696
|
+
|
|
607
697
|
Dispositions: a pin whose path resolves to the expected value passes; a path
|
|
608
698
|
present with a different value is the legible violation (exit 1, each finding
|
|
609
699
|
reading path, expected, and actual). Fail-closed (exit 2) on an unreadable or
|
|
610
|
-
non-JSON settings file,
|
|
611
|
-
**absent** from the settings file — an absent key is a desynced
|
|
612
|
-
pins and the settings are one repo's tracked config, edited
|
|
613
|
-
legible drift a red is for. Absent pins file: the opt-in-off
|
|
614
|
-
skip. Ships a `good/`+`bad/` fixture pair and registers in the
|
|
615
|
-
`gates.list` (this repo's included).
|
|
700
|
+
non-JSON settings file, a malformed pin line, a pin outside the path grammar, or
|
|
701
|
+
a pin naming a key **absent** from the settings file — an absent key is a desynced
|
|
702
|
+
manifest (the pins and the settings are one repo's tracked config, edited
|
|
703
|
+
together), not the legible drift a red is for. Absent pins file: the opt-in-off
|
|
704
|
+
state, a clean skip. Ships a `good/`+`bad/` fixture pair and registers in the
|
|
705
|
+
consumer's `gates.list` (this repo's included).
|
|
616
706
|
|
|
617
707
|
**What a pin is worth depends on which tiers can outrank the file it pins**, and
|
|
618
708
|
the gate reads exactly one tier. The harness resolves settings across five, in
|
|
@@ -631,7 +721,9 @@ the session starts.
|
|
|
631
721
|
|
|
632
722
|
## check-settings-paths
|
|
633
723
|
|
|
634
|
-
`checks/check-settings-paths.
|
|
724
|
+
`checks/check-settings-paths.gate` (hermetic, `precommit`, dispatched to the gate
|
|
725
|
+
binary alongside its sibling — gate-sdk/SPEC.md §The settings cohort, and the
|
|
726
|
+
crate's first dependency) holds the second
|
|
635
727
|
invariant over the same tracked file: every entry in
|
|
636
728
|
`CONTEXT_KIT_SETTINGS_FILE`'s `permissions.allow[]` whose command token is a
|
|
637
729
|
**literal** repo-relative `.sh` path resolves in the working tree. The knob is
|
|
@@ -658,17 +750,19 @@ standing shape for a grant taking arguments is a bare entry beside a
|
|
|
658
750
|
`*`-suffixed twin, and the twin's path is as literal — and as strandable — as
|
|
659
751
|
the bare form's, so it stays in scope.
|
|
660
752
|
|
|
661
|
-
Splitting the grant into tokens must not expand it.
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
753
|
+
Splitting the grant into tokens must not expand it. Globbing a pattern grant
|
|
754
|
+
against the tree and then asserting an arbitrary first match would green the whole
|
|
755
|
+
pattern class instead of skipping it, while leaving the checked count silently
|
|
756
|
+
inflated. The shell form protected that with `read -ra`, which does not expand;
|
|
757
|
+
the compiled form splits on ASCII whitespace, which has no expansion to suppress.
|
|
758
|
+
The property is the same and it is the property, not the idiom, that the fixture
|
|
759
|
+
pair's checked count pins.
|
|
666
760
|
|
|
667
761
|
Dispositions: exit 1 lists each violating entry verbatim beside the path that
|
|
668
762
|
did not resolve, so the reader can repoint or drop the grant without re-deriving
|
|
669
763
|
which token was read. The clean line reports the **checked count**, which is
|
|
670
764
|
what distinguishes a predicate that scoped to the array from one that vacuously
|
|
671
|
-
matched nothing. Fail-closed (exit 2) on
|
|
765
|
+
matched nothing. Fail-closed (exit 2) on a settings file that is
|
|
672
766
|
unreadable or not JSON — the sibling gate reads the same file on the same terms,
|
|
673
767
|
and the file is this gate's sole subject rather than an opt-in manifest, so
|
|
674
768
|
there is no absent-surface skip to grant. A `--fixture <dir>` mode reads
|
|
@@ -695,13 +789,17 @@ The trigger is a partial route by construction: the generated hook reads staged
|
|
|
695
789
|
the ordinary edit that strands a grant; what catches the cohort is the full
|
|
696
790
|
battery, which runs whole-tree with no trigger filter.
|
|
697
791
|
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
792
|
+
**The criterion-7 debt this gate landed carrying is paid, and this paragraph is
|
|
793
|
+
the record that it was.** `jq` is not on `GATE_SDK_PROGRAM_FLOOR`, so the gate
|
|
794
|
+
failed port criterion 7 the day it landed and owed designed-away work at its port.
|
|
795
|
+
That work is the settings cohort (gate-sdk/SPEC.md §The settings cohort, and the
|
|
796
|
+
crate's first dependency), which retired the requirement for this member and its
|
|
797
|
+
sibling by taking a JSON reader into the crate rather than by hand-rolling a
|
|
798
|
+
parser to dodge a dependency — the outcome this paragraph predicted when it said
|
|
799
|
+
one parsing story for the settings file is worth more than the criterion. `jq`
|
|
800
|
+
remains required by `check-installer-no-deps` alone (excluded with cause) now that
|
|
801
|
+
`check-memory-off` has taken the same reader, so it is retired from the battery
|
|
802
|
+
but for that one member, and not from the shipped install path at all.
|
|
705
803
|
|
|
706
804
|
**The gate is not the prune.** It reads the settings file and writes nothing,
|
|
707
805
|
but it reds the moment it registers on a tree carrying stranded entries, and the
|
|
@@ -710,10 +808,10 @@ landing order is therefore fixed: the operator prunes, then the gate registers.
|
|
|
710
808
|
|
|
711
809
|
## check-memory-off
|
|
712
810
|
|
|
713
|
-
`checks/check-memory-off.
|
|
714
|
-
precedent) scans the operator's machine, not the tree — its
|
|
715
|
-
manifest couples the pins file it reads and triggers on `*`, because
|
|
716
|
-
surfaces it guards (the memory dir and the untracked local settings) never
|
|
811
|
+
`checks/check-memory-off.gate` (local-environment class, binary-dispatched, the
|
|
812
|
+
check-identity precedent) scans the operator's machine, not the tree — its
|
|
813
|
+
`# graph:` manifest couples the pins file it reads and triggers on `*`, because
|
|
814
|
+
the surfaces it guards (the memory dir and the untracked local settings) never
|
|
717
815
|
stage. Two red conditions:
|
|
718
816
|
|
|
719
817
|
- the harness's per-project memory dir holds content — any regular file that
|
|
@@ -726,13 +824,38 @@ stage. Two red conditions:
|
|
|
726
824
|
scan; its default derives the current project's dir from the harness layout
|
|
727
825
|
(§Layout and configuration). CI-neutral: where the surface is absent the gate
|
|
728
826
|
is clean, and the clean line states the fail-open caveat — an absent dir
|
|
729
|
-
proves nothing about another clone.
|
|
730
|
-
|
|
827
|
+
proves nothing about another clone.
|
|
828
|
+
|
|
829
|
+
**It has one arm, and the knobs are it.** The `--fixture <dir>` arm the shell
|
|
830
|
+
form carried is deleted: every path it redirected — the scanned dirs, the pins
|
|
831
|
+
manifest, the local settings file derived from `CONTEXT_KIT_SETTINGS_FILE` by
|
|
832
|
+
swapping `.json` for `.local.json` — a knob already redirects, so the arm bought
|
|
833
|
+
a shorter spelling and paid for it with a second code path that never drove the
|
|
834
|
+
derivation being checked. The pair and `check-memory-off.test.sh` reach the gate
|
|
835
|
+
through the three knobs instead, which is what makes them a parity oracle for the
|
|
836
|
+
live arm rather than for a fixture-only one.
|
|
837
|
+
|
|
838
|
+
**Comparison is structural and a null actual is a skip**, and the two are
|
|
839
|
+
recorded because they part company with `check-settings-pins` over one manifest.
|
|
840
|
+
The pins file declares *expected JSON*, not an expected byte form, so `1` and
|
|
841
|
+
`1.0` are one value here as they already are there; a right-hand side that is not
|
|
842
|
+
JSON cannot be compared structurally at all and is skipped on this member's one
|
|
843
|
+
disposition for a pin it cannot read — that same line of that same manifest is
|
|
844
|
+
what the sibling gate fail-closes on, so the condition is graded, not lost. A
|
|
845
|
+
path evaluating to **null**, by contrast, is this gate's ordinary clean case: the
|
|
846
|
+
local file simply sets no override for that key. `check-settings-pins` reads a
|
|
847
|
+
null as an absent pin and refuses, which is right for the tracked file it reads
|
|
848
|
+
and would be a correctness regression here, reddening every clone whose local
|
|
849
|
+
settings merely omit a pinned key.
|
|
850
|
+
|
|
851
|
+
Fail-closed (exit 2) when it cannot read what is present to check: a local
|
|
852
|
+
settings file that is unreadable or not valid JSON, a memory dir it cannot walk,
|
|
853
|
+
or a `HOME` it cannot read when the default derivation is the one in play.
|
|
731
854
|
|
|
732
855
|
## check-footprint-fresh
|
|
733
856
|
|
|
734
|
-
`checks/check-footprint-fresh.
|
|
735
|
-
committed `docs/footprint.md` against
|
|
857
|
+
`checks/check-footprint-fresh.gate` (hermetic, `precommit`) byte-compares the
|
|
858
|
+
committed `docs/footprint.md` against the footprint emitter, the
|
|
736
859
|
`check-docs-mirror-fresh`/`check-trajectory-fresh` posture: a generated,
|
|
737
860
|
freshness-gated projection is Derivation-first's sanctioned copy, so the
|
|
738
861
|
maintainer re-runs the emitter after any change to a measured surface and a
|
|
@@ -740,8 +863,16 @@ stale page reddens the battery. Its `# graph:` manifest couples the measured
|
|
|
740
863
|
surfaces — the configured agent file and each kit's `templates/` tree — so an
|
|
741
864
|
edit to what the page counts re-fires the gate.
|
|
742
865
|
|
|
866
|
+
**It is a registry member of the gate binary, and its emitter is a function call
|
|
867
|
+
rather than a spawn.** The comparator and the emitter ported in one unit, so
|
|
868
|
+
where the shell form ran `bash <emitter> --emit` in a subprocess, the compiled
|
|
869
|
+
member calls the emitter module's `emit()` **in-process** — which is what
|
|
870
|
+
retires the family's `bash` hop for this member (gate-sdk/SPEC.md §The first
|
|
871
|
+
cohort, and the rule that selects the next). The `CONTEXT_KIT_SURFACES` the
|
|
872
|
+
emitter reads arrives across the config bridge, declared by this member.
|
|
873
|
+
|
|
743
874
|
Bare, it runs the live emitter; a two-argument form
|
|
744
|
-
(`check-footprint-fresh
|
|
875
|
+
(`check-footprint-fresh <projection> <emit>`) compares two pre-baked files,
|
|
745
876
|
the hermetic mode the `good/`+`bad/` fixture pair drives. Fail-closed (exit 2)
|
|
746
877
|
on a missing projection or emit source; the stale byte-compare is the exit-1
|
|
747
878
|
violation. The page's generated numbers ride the `docs/evidence-data.md`
|
|
@@ -756,18 +887,18 @@ context-kit/
|
|
|
756
887
|
bin/md-index.sh
|
|
757
888
|
bin/md-section.sh
|
|
758
889
|
bin/pub-index.sh # dispatcher over the per-language extractors
|
|
890
|
+
lib/context.sh # sourced config loader + the kit's knob defaults; the config bridge sources it
|
|
759
891
|
lib/toolfloor.sh # sourceable owner: the probe roster + the floor predicate
|
|
760
892
|
lib/pub-lang/rust.sh # shipped extractor: Rust public items
|
|
761
893
|
lib/pub-lang/ts.sh # shipped extractor: TypeScript export surface
|
|
762
894
|
bin/always-loaded.sh
|
|
763
|
-
bin/footprint.sh # per-kit two-tier footprint; --emit is docs/footprint.md
|
|
764
895
|
bin/env-probe.sh # derives the marker-bounded local env profile
|
|
765
896
|
bin/run-index-tests.sh # expected-output runner for the bin tools
|
|
766
|
-
checks/check-brevity.
|
|
767
|
-
checks/check-settings-pins.
|
|
768
|
-
checks/check-settings-paths.
|
|
769
|
-
checks/check-memory-off.
|
|
770
|
-
checks/check-footprint-fresh.
|
|
897
|
+
checks/check-brevity.gate # hermetic, binary-dispatched: the budgeted section's over-budget pointer bullets
|
|
898
|
+
checks/check-settings-pins.gate # hermetic, binary-dispatched: pins hold against the settings file
|
|
899
|
+
checks/check-settings-paths.gate # hermetic, binary-dispatched: literal .sh grants resolve in the tree
|
|
900
|
+
checks/check-memory-off.gate # local-environment, binary-dispatched: memory dir + local overrides
|
|
901
|
+
checks/check-footprint-fresh.gate # hermetic, binary-dispatched: docs/footprint.md byte-fresh vs the emitter it calls in-process
|
|
771
902
|
gate-tests/check-brevity/{good,bad}/
|
|
772
903
|
gate-tests/check-settings-pins/{good,bad}/
|
|
773
904
|
gate-tests/check-settings-paths/{good,bad}/
|
|
@@ -775,6 +906,7 @@ context-kit/
|
|
|
775
906
|
gate-tests/check-footprint-fresh/{good,bad}/
|
|
776
907
|
gate-tests/check-brevity.test.sh # the unmatched-section axis the pair cannot hold
|
|
777
908
|
gate-tests/check-memory-off.test.sh # the local-override axis the pair cannot hold
|
|
909
|
+
gate-tests/check-settings-pins.test.sh # the refusal axis the pair cannot hold
|
|
778
910
|
index-tests/ # fixture corpus + expected outputs
|
|
779
911
|
templates/session-context.sh # consumer copy: marked consumer sections
|
|
780
912
|
templates/settings-sessionstart.json
|
|
@@ -801,6 +933,38 @@ what the consumer left unset, and a set-but-missing `CONTEXT_KIT_CONFIG_FILE`
|
|
|
801
933
|
exits 2 rather than silently running on defaults. Knobs (this repo's layout
|
|
802
934
|
as defaults):
|
|
803
935
|
|
|
936
|
+
### lib/context.sh
|
|
937
|
+
|
|
938
|
+
**The one home of the consumer-config load and of every knob default above**, a
|
|
939
|
+
sourceable library on queue-kit's `lib/queue.sh` shape: it loads the consumer
|
|
940
|
+
config first, then defaults each knob the consumer left unset, then refuses a
|
|
941
|
+
malformed value rather than running on it. Every context-kit gate and `bin/` tool
|
|
942
|
+
sources it instead of re-defaulting, which is the single-home form
|
|
943
|
+
`check-knob-default-coupling` asserts and what keeps a shell-side and a bridged
|
|
944
|
+
value one value rather than two.
|
|
945
|
+
|
|
946
|
+
**The config bridge is what forces a library rather than a convention.**
|
|
947
|
+
gate-sdk's config bridge resolves each declared knob by sourcing one kit's
|
|
948
|
+
library in a subshell, and **exits 2 on a knob that library does not define**
|
|
949
|
+
(gate-sdk/SPEC.md §lib/gate.sh), so a
|
|
950
|
+
`.gate`-dispatched member whose knobs were defaulted inside a check script would
|
|
951
|
+
resolve none of them. That mechanism is indifferent to what any crate links: a
|
|
952
|
+
member receives its knobs this way whatever the binary carries.
|
|
953
|
+
|
|
954
|
+
**Every default here is repo-relative, and that is a bridge requirement rather
|
|
955
|
+
than a style.** A bridged value is baked verbatim into the tracked pre-commit
|
|
956
|
+
hook, so an absolute path would pin one clone's layout into a committed artifact.
|
|
957
|
+
The one knob whose natural value *is* absolute — `CONTEXT_KIT_MEMORY_DIRS`,
|
|
958
|
+
naming a harness directory under `HOME` — defaults to **empty**, and the empty
|
|
959
|
+
value means "derive it" rather than "no dir": the derivation belongs to the one
|
|
960
|
+
member that reads the knob (`native/src/gates/memory_off.rs`), which folds `/`
|
|
961
|
+
and `.` to `-` in the repo toplevel exactly as the harness names each project's
|
|
962
|
+
dir. Deriving it lazily at that reader is also what keeps a `git` subprocess off
|
|
963
|
+
the path of every unrelated knob resolution. The shell library once carried the
|
|
964
|
+
derivation as `context_memory_dir_default()`; it left with the shell gate that
|
|
965
|
+
was its only caller, so the layout rule has one implementation rather than two
|
|
966
|
+
agreeing ones.
|
|
967
|
+
|
|
804
968
|
- `CONTEXT_KIT_SURFACES` — array of always-loaded files; default
|
|
805
969
|
`("CLAUDE.md")`. The measured surface is agent-file-name-agnostic: a consumer
|
|
806
970
|
whose harness reads `AGENTS.md` (or any other always-loaded agent file) sets
|
|
@@ -817,7 +981,7 @@ as defaults):
|
|
|
817
981
|
default `${GATE_SDK_GATES_DIR:-scripts}/pub-lang`.
|
|
818
982
|
- `CONTEXT_KIT_HOOK_CMD` — command whose output line count approximates
|
|
819
983
|
the steady-state hook body; default queue-kit's
|
|
820
|
-
`
|
|
984
|
+
`run-gates.sh --emit queue-index --collapse-deferred` when resolvable, else empty
|
|
821
985
|
(surfaces only).
|
|
822
986
|
- `CONTEXT_KIT_DRIFT_REPORT` — path to the consumer's drift-report script;
|
|
823
987
|
the session-context hook runs it with `--trend` for the brief's drift
|
|
@@ -848,7 +1012,16 @@ as defaults):
|
|
|
848
1012
|
- `CONTEXT_KIT_SETTINGS_FILE` — the tracked harness settings file
|
|
849
1013
|
check-settings-pins and check-settings-paths each verify, on a different
|
|
850
1014
|
invariant, and whose `.local.json` sibling check-memory-off scans; default
|
|
851
|
-
`.claude/settings.json`.
|
|
1015
|
+
`.claude/settings.json`. **Explicitly setting it to a path that does not exist
|
|
1016
|
+
is refused (exit 2) by `lib/context.sh` at resolution time**, while leaving it
|
|
1017
|
+
unset and having no file at the default path is not-adopted and degrades at
|
|
1018
|
+
each reader. The refusal lives in the library because that is the last place
|
|
1019
|
+
*set-ness* is visible: once the value crosses gate-sdk's config bridge a
|
|
1020
|
+
compiled reader sees one path string and cannot tell the misconfigured case
|
|
1021
|
+
from the unadopted one. Emptiness is **not** the signal here — the config
|
|
1022
|
+
validation below rejects an empty value as malformed, an invariant older than
|
|
1023
|
+
the bridge — which is why this knob refuses where `DRIFT_KIT_KPIS_FILE`
|
|
1024
|
+
resolves empty (drift-kit/SPEC.md §lib/drift.sh).
|
|
852
1025
|
- `CONTEXT_KIT_SETTINGS_PINS` — the pins manifest; default
|
|
853
1026
|
`${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`.
|
|
854
1027
|
- `CONTEXT_KIT_MEMORY_DIRS` — space-separated glob list of harness memory dirs
|
|
@@ -889,16 +1062,19 @@ each a case, the emptiness rule being the part of the grammar a reader is
|
|
|
889
1062
|
likeliest to get wrong.
|
|
890
1063
|
The runner registers as its own evidence-kit validate suite
|
|
891
1064
|
(`index_tests`, the `demo` precedent): the golden the refactor leans on now
|
|
892
|
-
has an automated validate-stage consumer.
|
|
1065
|
+
has an automated validate-stage consumer. The footprint emitter is advisory the same way, but its
|
|
893
1066
|
projection is gated rather than runner-tested: `check-footprint-fresh` byte-holds
|
|
894
1067
|
`docs/footprint.md` against `--emit`. `check-brevity`, `check-settings-pins`,
|
|
895
1068
|
`check-memory-off`, and `check-footprint-fresh` are gates and carry the standard
|
|
896
1069
|
fixture pair; the footprint pair drives the hermetic two-argument mode
|
|
897
1070
|
(`<projection> <emit>`), the `check-trajectory-fresh` precedent. Both
|
|
898
|
-
memory-off
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
1071
|
+
memory-off pairs reach their subject differently, and the difference is the
|
|
1072
|
+
point: the settings-pins pair takes a `--fixture <dir>` injection (the
|
|
1073
|
+
check-identity precedent) reading `<dir>/settings.json` against
|
|
1074
|
+
`<dir>/settings-pins.conf`, while the memory-off pair drives
|
|
1075
|
+
`CONTEXT_KIT_MEMORY_DIRS` from its own case-dir config, because that member's
|
|
1076
|
+
fixture arm was deleted for being a code path its live arm never took.
|
|
1077
|
+
Three direct unit tests hold the axes the pairs fix and so cannot
|
|
902
1078
|
express: `check-brevity.test.sh` holds the unmatched-section resolution (the
|
|
903
1079
|
pair fixes `CONTEXT_KIT_BREVITY_SECTION` at the stock default and always
|
|
904
1080
|
supplies a file carrying it, so neither case can express a section that
|
|
@@ -906,7 +1082,11 @@ resolves to nothing — an unmatched section is exit 2, a broken machine rather
|
|
|
906
1082
|
than a clean tree). The memory-off local-override axis — an untracked
|
|
907
1083
|
`settings.local.json` that re-enables a pinned key past an empty dir — cannot
|
|
908
1084
|
be a good/bad pair (the pair fixes the dir axis), so `check-memory-off.test.sh`
|
|
909
|
-
holds it.
|
|
1085
|
+
holds it. `check-settings-pins.test.sh` holds the **refusal** axis: the pair
|
|
1086
|
+
fixes the holds-vs-mismatch axis (exit 0 vs exit 1) alone, so a pin outside
|
|
1087
|
+
the documented path grammar — a jq filter, an iteration, a slice, an array
|
|
1088
|
+
literal — needs its own case to prove the refusal is exit 2, loud and naming
|
|
1089
|
+
the pin, the knob and the construct, never a silent clean verdict.
|
|
910
1090
|
|
|
911
1091
|
`smoke/install.sh` copies the templates into the scratch consumer (config
|
|
912
1092
|
into the gates dir, hook wiring into the harness settings), runs the hook
|
|
@@ -928,8 +1108,8 @@ mechanics (gate-sdk/SPEC.md §Consumer smoke), converts its agent file from
|
|
|
928
1108
|
`CLAUDE.md` to `AGENTS.md`, sets the agent-file knobs in the consumer's config
|
|
929
1109
|
seams (`GATE_SDK_AGENT_FILE`, `LIFECYCLE_KIT_AGENT_FILE`, `DOCTRINE_KIT_AGENT_FILE`,
|
|
930
1110
|
`CANON_KIT_MANIFEST_FILES`, `CONTEXT_KIT_SURFACES`, `CONTEXT_KIT_BREVITY_FILE`),
|
|
931
|
-
then asserts the battery is green, `always-loaded.sh` and
|
|
932
|
-
the `AGENTS.md` surface, and `check-root-tiering`'s built-in allowlist accepts
|
|
1111
|
+
then asserts the battery is green, `always-loaded.sh` and the footprint emitter
|
|
1112
|
+
measure the `AGENTS.md` surface, and `check-root-tiering`'s built-in allowlist accepts
|
|
933
1113
|
`AGENTS.md` at root while rejecting a stray second agent file. It is a standalone
|
|
934
1114
|
harness — not driven by `run-consumer-smoke.sh`, which asserts the kit defaults
|
|
935
1115
|
under zero config — and registers as its own evidence-kit validate suite
|