checkwright 0.25.0 → 0.26.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 +35 -1361
- package/bin/checkwright.ps1 +157 -0
- package/bin/checkwright.sh +187 -44
- package/package.json +15 -14
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
- package/payload/artifact/targets.list +120 -24
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
- 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 +23 -37
- package/payload/canon-kit/checks/check-amendment-queue.gate +2 -2
- package/payload/canon-kit/checks/check-amendment-retired-spelling.gate +3 -0
- package/payload/canon-kit/checks/check-amendment-update-target.gate +1 -1
- package/payload/canon-kit/checks/check-comment-tier.gate +1 -1
- package/payload/canon-kit/checks/check-deprecation-task.gate +2 -1
- package/payload/canon-kit/checks/check-docs-cmd.gate +2 -2
- package/payload/canon-kit/checks/check-docs-link-convention.gate +1 -1
- package/payload/canon-kit/checks/check-docs-restatement-parity.gate +4 -0
- package/payload/canon-kit/checks/check-fence-command-head.gate +3 -0
- package/payload/canon-kit/checks/check-fence-run.gate +3 -0
- package/payload/canon-kit/checks/check-install-claim.gate +2 -1
- package/payload/canon-kit/checks/check-knob-citation.gate +1 -1
- package/payload/canon-kit/checks/check-manifest-count.gate +1 -1
- package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
- package/payload/canon-kit/checks/check-md-refs.gate +1 -1
- package/payload/canon-kit/checks/check-md-unwrapped.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +2 -1
- package/payload/canon-kit/checks/check-payload-claim.gate +2 -1
- package/payload/canon-kit/checks/check-prose-bounds.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +2 -1
- package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
- package/payload/canon-kit/checks/check-provenance-seam.gate +3 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +1 -1
- package/payload/canon-kit/checks/check-spec-pointer.gate +2 -2
- package/payload/canon-kit/checks/check-surface-duplication.gate +3 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
- package/payload/canon-kit/checks/check-tracking-claim.gate +1 -1
- package/payload/canon-kit/checks/check-unmarked-claim.gate +2 -1
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +37 -8
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +6 -3
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +7 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +11 -3
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-nosection.md +16 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/one.md +4 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/two.md +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-tidy.md +20 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +37 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/unnamed.md +4 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +37 -26
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +3 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +6 -2
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +12 -10
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +4 -1
- package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +61 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +21 -2
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/README.md +10 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +11 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/index.md +13 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +16 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +5 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/bin/run.sh +3 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +41 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/lib/tool.sh +5 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/doc.md +32 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/expect.txt +7 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +31 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.knobs +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.knobs +7 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +42 -7
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +1 -2
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +37 -8
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +10 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +6 -6
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/doc.md +13 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/doc.md +45 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +8 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/worktrees/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +32 -13
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/CLAUDE.md +9 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +10 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +27 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +98 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +55 -25
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +2 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/{canon-config.sh → canon-config.knobs} +2 -5
- package/payload/canon-kit/gate-tests/check-prose-tells/good/worktrees/prose.md +17 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/lifecycle-config.knobs +12 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +27 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/lifecycle-config.knobs +12 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +20 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam.test.sh +136 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +10 -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.rs +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/vendored-kit/notes.txt +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +3 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +9 -3
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/worktrees/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +53 -28
- package/payload/canon-kit/templates/SPEC-amendment.md +46 -25
- package/payload/canon-kit/templates/canon-config.knobs +1 -0
- package/payload/context-kit/README.md +33 -61
- package/payload/context-kit/checks/check-brevity.gate +2 -2
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -2
- package/payload/context-kit/checks/check-memory-off.gate +1 -1
- package/payload/context-kit/checks/check-settings-paths.gate +2 -2
- package/payload/context-kit/checks/check-settings-pins.gate +1 -1
- package/payload/context-kit/checks/check-surface-ratchet.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +9 -2
- package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +9 -4
- package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -1
- package/payload/context-kit/gate-tests/check-brevity.test.sh +107 -24
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +6 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +3 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +3 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +30 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/{context-config.sh → context-config.knobs} +1 -3
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/{context-config.sh → context-config.knobs} +1 -3
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +1 -1
- package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +2 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +21 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/run-gates.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -1
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +48 -1
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/run-gates.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +1 -1
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/CLAUDE.md +5 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/expect.txt +2 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/scripts/context-config.knobs +4 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/surface-ceiling.txt +2 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/templates/ungoverned.md +3 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/CLAUDE.md +3 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/scripts/context-config.knobs +4 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/surface-ceiling.txt +4 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/templates/held.md +4 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet.test.sh +76 -0
- package/payload/context-kit/index-tests/corpus/baseline.txt +1 -1
- package/payload/context-kit/index-tests/corpus/surface.md +1 -6
- package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -1
- package/payload/context-kit/templates/close-brevity.md +9 -28
- package/payload/context-kit/templates/context-config.knobs +1 -0
- package/payload/context-kit/templates/session-context.sh +43 -28
- package/payload/delegation-kit/README.md +35 -69
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -1
- package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +23 -2
- package/payload/delegation-kit/templates/agent-execution.md +23 -389
- package/payload/delegation-kit/templates/delegation-config.knobs +4 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +8 -45
- package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +33 -17
- package/payload/doctrine-kit/DOCTRINE.md +92 -458
- package/payload/doctrine-kit/README.md +24 -55
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +1 -1
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +48 -3
- package/payload/drift-kit/README.md +43 -89
- package/payload/drift-kit/templates/close-knowledge.md +7 -22
- package/payload/drift-kit/templates/drift-config.knobs +1 -0
- package/payload/drift-kit/templates/economics.md +10 -48
- package/payload/drift-kit/templates/kpi-deprecated-surface.sh +31 -9
- package/payload/drift-kit/templates/kpis.list +2 -1
- package/payload/drift-kit/templates/price-table.tsv +1 -1
- package/payload/evidence-kit/README.md +23 -46
- package/payload/evidence-kit/checks/check-battery-roster.gate +1 -1
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +2 -2
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +1 -1
- package/payload/evidence-kit/checks/check-producer-liveness.gate +3 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +7 -7
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -1
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/scripts/evidence-config.knobs +4 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -1
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/scripts/evidence-config.knobs +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +134 -14
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +5 -4
- package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +128 -0
- package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +51 -45
- package/payload/evidence-kit/gate-tests/pre-hook.test.sh +66 -0
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +29 -16
- package/payload/evidence-kit/templates/evidence-config.knobs +1 -0
- package/payload/gate-sdk/README.md +48 -79
- package/payload/gate-sdk/bin/build-native.sh +27 -4
- package/payload/gate-sdk/bin/run-gates.ps1 +266 -0
- package/payload/gate-sdk/bin/run-gates.sh +53 -277
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -1
- package/payload/gate-sdk/checks/check-action-job-ref.gate +3 -0
- package/payload/gate-sdk/checks/check-action-permissions.gate +3 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +1 -1
- package/payload/gate-sdk/checks/check-action-run-path.gate +3 -0
- package/payload/gate-sdk/checks/check-action-run-shell.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.gate +2 -1
- package/payload/gate-sdk/checks/check-commit-subject.gate +1 -1
- package/payload/gate-sdk/checks/check-core-files.gate +1 -1
- package/payload/gate-sdk/checks/check-crate-arms.gate +3 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -2
- package/payload/gate-sdk/checks/check-exec-bit.gate +1 -1
- package/payload/gate-sdk/checks/check-front-end-fail-open.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.gate +2 -2
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-output.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-graph.gate +2 -1
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +1 -1
- package/payload/gate-sdk/checks/check-identity.gate +1 -1
- package/payload/gate-sdk/checks/check-install-disposition.gate +3 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +1 -1
- package/payload/gate-sdk/checks/check-kit-registration.gate +1 -1
- package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +3 -0
- package/payload/gate-sdk/checks/check-packed-links.gate +3 -0
- package/payload/gate-sdk/checks/check-path-dialect.gate +3 -0
- package/payload/gate-sdk/checks/check-pipe-membership.gate +3 -0
- package/payload/gate-sdk/checks/check-portability-floor.gate +4 -0
- package/payload/gate-sdk/checks/check-projection-roster.gate +4 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +1 -1
- package/payload/gate-sdk/checks/check-root-tiering.gate +1 -1
- package/payload/gate-sdk/checks/check-shellcheck.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
- package/payload/gate-sdk/checks/check-tree-terms.gate +2 -1
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +1 -1
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/notes.md +3 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/workflows/ci.yml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/notes.md +3 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/workflows/ci.yml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/empty-allowlist.yml +29 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/gates.yml +25 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/action.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/not-actions.yml +7 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/declared.yml +69 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/valves.yml +22 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/scripts/present.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/workflows/ci.yml +14 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/scripts/build.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/sub/scripts/inner.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/workflows/ci.yml +36 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +4 -2
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/runner-dialect.yml +36 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -2
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/runner-dialect.yml +71 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +102 -9
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-assertion-strength.test.sh +55 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -1
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -1
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +3 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +3 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/SPEC.md +3 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/checks/check-demo.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/probe.conf +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/templates/guide.md +3 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +33 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.ps1 +5 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/args +4 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.ps1 +5 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +4 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +6 -12
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +5 -3
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +4 -2
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci/build-artifact.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +4 -2
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.knobs +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/ci/build-artifact.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci.yml +16 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -3
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.knobs +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +222 -197
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +7 -2
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +3 -1
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +8 -8
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +49 -14
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-eta.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-iota.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-theta.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-zeta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +8 -5
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/native/src/installer/recipe.rs +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +8 -4
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/checks/check-alpha.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-omega.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-psi.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/smoke/install.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +15 -12
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +7 -5
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +7 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +7 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +5 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +9 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +4 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/expect.txt +15 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/primitive.rs +19 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/producer.rs +8 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/walk.rs +13 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/bound-root.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/case-arm.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/commented.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/common-dir.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/glob-test.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/late-anchor.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/logical-readback.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/probe.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/two-root.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/expect.txt +13 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/commented.rs +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/local.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/namespace.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/typed.rs +10 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/verdict.rs +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/walk.rs +24 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/anchored.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/cd-only.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/commented.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/one-root.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/probe.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/rooted.sh +23 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/subshell.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/two-line.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/verdict.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/expect.txt +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/array-grep.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/echo-max-count.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/gate-tests/membership.test.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/loop-head.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/tests/relocated.test.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/full-reader.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/check-x/bad/violating.test.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/clean.test.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/loop-membership.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/no-pipefail.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/one-line-producer.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +8 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/patterns.list +4 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/empty-reason-verb +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/strings.ps1 +6 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/too-far-verb +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/undeclared-verb +3 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/front.ps1 +7 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/plain-verb +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/upgrade-verb +7 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +154 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/demo-kit/checks/check-beta.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/docs/roster.md +11 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-alpha.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-gamma.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-plain.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gate-sdk-config.knobs +3 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/demo-kit/checks/check-beta.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/docs/roster.md +16 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-alpha.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-delta.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-epsilon.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-plain.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gates.list +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +4 -4
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +4 -4
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +25 -20
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/{check-template-registry-parity/bad/scripts/gate-sdk-config.sh → check-smoke-entry-guard/bad/scripts/gate-sdk-config.knobs} +2 -3
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +1 -1
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/session-note.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/session-note.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +18 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/{check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh → check-template-registry-parity/bad/scripts/gate-sdk-config.knobs} +2 -3
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +17 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +5 -5
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/accounts.txt +1 -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 +5 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/handles.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +44 -5
- package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +95 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -10
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +10 -184
- package/payload/gate-sdk/gate-tests/reads-census.test.sh +96 -0
- package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +64 -41
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +121 -16
- package/payload/gate-sdk/gate-tests/run-gates-linked-worktree.test.sh +136 -0
- package/payload/gate-sdk/lib/gate.sh +231 -484
- package/payload/gate-sdk/lib/test-hermetic.sh +39 -9
- package/payload/gate-sdk/templates/check-skeleton.sh +3 -2
- package/payload/gate-sdk/templates/gates-workflow.yml +23 -10
- package/payload/gate-sdk/templates/msg-patterns.list +14 -5
- package/payload/gate-sdk/templates/portability-patterns.list +56 -0
- package/payload/guard-kit/README.md +43 -47
- package/payload/guard-kit/checks/check-door-binding.gate +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +6 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/templates/alpha-config.knobs +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/args +5 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/beta-kit/lib/beta.sh +6 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +5 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/gate-sdk-config.knobs +4 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/site/banner.md +8 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/site/landing.md +11 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/README.md +8 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/templates/settings-hooks.json +20 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/args +7 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/beta-kit/lib/beta.sh +6 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/site/mirror.md +12 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +24 -0
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +40 -27
- package/payload/guard-kit/gate-tests/consumer-rules.test.sh +189 -0
- package/payload/guard-kit/gate-tests/door-binding-corpus.test.sh +72 -0
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +48 -23
- package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +170 -0
- package/payload/guard-kit/gate-tests/rewrite.test.sh +73 -0
- package/payload/guard-kit/gate-tests/scan-prompts.test.sh +174 -8
- package/payload/guard-kit/gate-tests/scratch-run.test.sh +149 -13
- package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +169 -0
- package/payload/guard-kit/guard-tests/background-cases.tsv +14 -5
- package/payload/guard-kit/guard-tests/cases.tsv +360 -54
- package/payload/guard-kit/guard-tests/powershell-background-cases.tsv +29 -0
- package/payload/guard-kit/guard-tests/powershell-cases.tsv +81 -0
- package/payload/guard-kit/templates/close-triage.md +15 -62
- package/payload/guard-kit/templates/guard-config.knobs +26 -0
- package/payload/guard-kit/templates/settings-allow.json +15 -0
- package/payload/guard-kit/templates/settings-hooks.json +5 -5
- package/payload/lifecycle-kit/README.md +48 -76
- package/payload/lifecycle-kit/checks/check-audit-roster.gate +3 -0
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
- package/payload/lifecycle-kit/checks/check-dispatch-entry.gate +3 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +1 -1
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +1 -1
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +1 -1
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +1 -1
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +1 -1
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +2 -2
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +1 -1
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +2 -2
- package/payload/lifecycle-kit/checks/check-stamp-subject.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.gate +2 -2
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +93 -18
- package/payload/lifecycle-kit/gate-tests/boundary-stage-journal.test.sh +196 -0
- package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +214 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/expect.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/roster.txt +34 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/roster.txt +22 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster.test.sh +101 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/worktrees/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +21 -4
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/args +6 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/head.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/marker.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/msg.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/paths.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/staged.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/args +6 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/head.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/marker.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/msg.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/paths.txt +2 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/staged.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +60 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +1 -5
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +1 -5
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -2
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/worktrees/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +158 -11
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +27 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/close.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +73 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/args +4 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/head.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/msg.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/staged.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/args +4 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/head.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/msg.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/staged.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject.test.sh +59 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +24 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -1
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +10 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +56 -5
- package/payload/lifecycle-kit/gate-tests/dispatch-marker.test.sh +152 -0
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +23 -48
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +7 -5
- package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +119 -0
- package/payload/lifecycle-kit/gate-tests/preflight-valve.test.sh +170 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +5 -3
- package/payload/lifecycle-kit/gate-tests/ruling-staleness.test.sh +89 -0
- package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +66 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +12 -6
- package/payload/lifecycle-kit/templates/consult.md +9 -63
- package/payload/lifecycle-kit/templates/lead.md +143 -431
- package/payload/lifecycle-kit/templates/lifecycle-config.knobs +1 -0
- package/payload/lifecycle-kit/templates/release-sweep.md +6 -35
- package/payload/lifecycle-kit/templates/stages/align.md +14 -82
- package/payload/lifecycle-kit/templates/stages/build.md +30 -98
- package/payload/lifecycle-kit/templates/stages/close.md +21 -170
- package/payload/lifecycle-kit/templates/stages/scope.md +42 -167
- package/payload/lifecycle-kit/templates/stages/spec.md +31 -97
- package/payload/lifecycle-kit/templates/stages/validate.md +22 -59
- package/payload/lifecycle-kit/templates/upgrade.md +6 -37
- package/payload/queue-kit/README.md +33 -48
- package/payload/queue-kit/checks/check-deferred-board-tags.gate +3 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +2 -2
- package/payload/queue-kit/checks/check-queue-hygiene.gate +2 -2
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +1 -1
- package/payload/queue-kit/checks/check-queue-sections.gate +1 -1
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +2 -2
- package/payload/queue-kit/checks/check-queue-wrap.gate +2 -2
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -2
- package/payload/queue-kit/checks/check-tag-lead-line.gate +2 -2
- package/payload/queue-kit/checks/check-task-conservation.gate +1 -1
- package/payload/queue-kit/checks/check-task-names.gate +2 -2
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/TASK-QUEUE.md +41 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/expect.txt +6 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/widget-kit/README.md +3 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/TASK-QUEUE.md +39 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/widget-kit/README.md +3 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +76 -31
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +12 -4
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.knobs +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +58 -19
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +8 -4
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.knobs +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget.test.sh +124 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +11 -1
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +30 -11
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +3 -1
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +22 -6
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +3 -1
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +1 -1
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +3 -1
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.knobs +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +6 -2
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +3 -3
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/worktrees/page.md +4 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.knobs +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +100 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +3 -1
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +20 -6
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +15 -8
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.knobs +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +13 -6
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.knobs +5 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +28 -7
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +10 -2
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -8
- package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -3
- package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +9 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +20 -6
- package/payload/queue-kit/gate-tests/entry-history.test.sh +197 -0
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +77 -73
- package/payload/queue-kit/gate-tests/queue-edges.test.sh +168 -87
- package/payload/queue-kit/gate-tests/queue-index.test.sh +30 -16
- package/payload/queue-kit/gate-tests/roadmap.test.sh +65 -58
- package/payload/queue-kit/templates/TASK-QUEUE.md +36 -23
- package/payload/queue-kit/templates/queue-config.knobs +1 -0
- package/payload/site-kit/README.md +26 -45
- package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
- package/payload/site-kit/checks/check-docs-highlight-coverage.gate +4 -0
- package/payload/site-kit/checks/check-docs-liquid-parse.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +1 -1
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.knobs +2 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +2 -2
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.knobs +2 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/docs/_layouts/default.html +11 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/expect.txt +4 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/highlight-tokens.list +7 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/site-config.knobs +3 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/docs/_layouts/default.html +14 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/highlight-tokens.list +7 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/site-config.knobs +1 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/_layouts/default.html +4 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/span.md +3 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +2 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/default.html +4 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/front.md +7 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/loop.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/plain.html +1 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/raw.md +3 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/search.json +4 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse-parser.test.sh +62 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +40 -45
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +7 -4
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +7 -4
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +7 -4
- package/payload/site-kit/templates/site-health.yml +67 -4
- package/profiles.list +4 -5
- package/lib/common/digest.sh +0 -18
- package/lib/common/lock.sh +0 -75
- package/lib/common/profile.sh +0 -91
- package/lib/common/recipe.sh +0 -106
- package/lib/diff.sh +0 -66
- package/lib/doctor.sh +0 -164
- package/lib/init.sh +0 -428
- package/lib/uninstall.sh +0 -214
- package/lib/update.sh +0 -34
- package/payload/canon-kit/SPEC.md +0 -2443
- package/payload/canon-kit/checks/check-surface-duplication.sh +0 -106
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +0 -10
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +0 -10
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +0 -8
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +0 -8
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +0 -4
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +0 -4
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +0 -8
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +0 -5
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +0 -5
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/lib/spec.sh +0 -560
- package/payload/canon-kit/smoke/install.sh +0 -58
- package/payload/canon-kit/smoke/violation.sh +0 -22
- package/payload/canon-kit/templates/canon-config.sh +0 -2
- package/payload/context-kit/SPEC.md +0 -1134
- package/payload/context-kit/bin/always-loaded.sh +0 -70
- package/payload/context-kit/bin/env-probe.sh +0 -142
- package/payload/context-kit/bin/md-index.sh +0 -80
- package/payload/context-kit/bin/md-section.sh +0 -63
- package/payload/context-kit/bin/pub-index.sh +0 -90
- package/payload/context-kit/bin/run-index-tests.sh +0 -91
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +0 -4
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +0 -12
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +0 -12
- package/payload/context-kit/index-tests/expected/toolfloor.txt +0 -23
- package/payload/context-kit/index-tests/toolfloor-cases.sh +0 -49
- package/payload/context-kit/lib/context.sh +0 -56
- package/payload/context-kit/lib/pub-lang/rust.sh +0 -26
- package/payload/context-kit/lib/pub-lang/ts.sh +0 -32
- package/payload/context-kit/lib/toolfloor.sh +0 -58
- package/payload/context-kit/smoke/agents-md.sh +0 -139
- package/payload/context-kit/smoke/install.sh +0 -64
- package/payload/context-kit/smoke/violation.sh +0 -21
- package/payload/context-kit/templates/context-config.sh +0 -2
- package/payload/delegation-kit/SPEC.md +0 -2078
- package/payload/delegation-kit/bin/run-budget-guard-tests.sh +0 -88
- package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +0 -97
- package/payload/delegation-kit/bin/run-trend-tests.sh +0 -63
- package/payload/delegation-kit/bin/run-usage-tests.sh +0 -226
- package/payload/delegation-kit/bin/usage-trend.sh +0 -120
- package/payload/delegation-kit/bin/usage-verdict.sh +0 -144
- package/payload/delegation-kit/bin/wait-probe.sh +0 -184
- package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +0 -99
- package/payload/delegation-kit/lib/delegation.sh +0 -84
- package/payload/delegation-kit/smoke/install.sh +0 -83
- package/payload/delegation-kit/smoke/violation.sh +0 -16
- package/payload/delegation-kit/templates/agent-budget-guard.sh +0 -18
- package/payload/delegation-kit/templates/agent-dispatch-guard.sh +0 -61
- package/payload/delegation-kit/templates/delegation-config.sh +0 -6
- package/payload/delegation-kit/templates/statusline-usage.sh +0 -101
- package/payload/delegation-kit/templates/subagent-stop-liveness.sh +0 -56
- package/payload/delegation-kit/templates/usage-poller.sh +0 -67
- package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +0 -20
- package/payload/doctrine-kit/SPEC.md +0 -385
- package/payload/doctrine-kit/bin/install-doctrine.sh +0 -194
- package/payload/doctrine-kit/bin/stage-rules.sh +0 -51
- package/payload/doctrine-kit/lib/doctrine.sh +0 -29
- package/payload/doctrine-kit/smoke/install.sh +0 -203
- package/payload/doctrine-kit/smoke/violation.sh +0 -13
- package/payload/drift-kit/SPEC.md +0 -1187
- package/payload/drift-kit/bin/drift-report.sh +0 -155
- package/payload/drift-kit/bin/kfric.sh +0 -61
- package/payload/drift-kit/bin/overhead-meter.sh +0 -106
- package/payload/drift-kit/bin/stage-economics.sh +0 -465
- package/payload/drift-kit/kpis/kpi-always-loaded.sh +0 -39
- package/payload/drift-kit/kpis/kpi-amendment-age.sh +0 -33
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +0 -46
- package/payload/drift-kit/kpis/kpi-gate-backlog.sh +0 -52
- package/payload/drift-kit/kpis/kpi-gate-runtime.sh +0 -31
- package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +0 -42
- package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +0 -21
- package/payload/drift-kit/kpis/kpi-overhead.sh +0 -44
- package/payload/drift-kit/kpis/kpi-price-table-age.sh +0 -68
- package/payload/drift-kit/kpis/kpi-prompt-friction.sh +0 -38
- package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +0 -74
- package/payload/drift-kit/kpis/kpi-settings-local.sh +0 -21
- package/payload/drift-kit/kpis/kpi-task-split.sh +0 -43
- package/payload/drift-kit/lib/drift.sh +0 -43
- package/payload/drift-kit/smoke/install.sh +0 -537
- package/payload/drift-kit/smoke/overhead-fixture.jsonl +0 -4
- package/payload/drift-kit/templates/drift-config.sh +0 -2
- package/payload/evidence-kit/SPEC.md +0 -740
- package/payload/evidence-kit/bin/diff-baseline.sh +0 -34
- package/payload/evidence-kit/bin/run-validate.sh +0 -124
- package/payload/evidence-kit/checks/check-producer-liveness.sh +0 -75
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +0 -7
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +0 -7
- package/payload/evidence-kit/lib/evidence.sh +0 -193
- package/payload/evidence-kit/smoke/install.sh +0 -59
- package/payload/evidence-kit/smoke/violation.sh +0 -8
- package/payload/evidence-kit/templates/evidence-config.sh +0 -2
- package/payload/gate-sdk/SPEC.md +0 -10872
- package/payload/gate-sdk/bin/gen-pre-commit.sh +0 -297
- package/payload/gate-sdk/bin/install-hooks.sh +0 -60
- package/payload/gate-sdk/bin/port-blockers.sh +0 -473
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +0 -239
- package/payload/gate-sdk/bin/run-gate-tests.sh +0 -179
- package/payload/gate-sdk/bin/upgrade-smoke.sh +0 -236
- package/payload/gate-sdk/checks/check-action-run-shell.sh +0 -223
- package/payload/gate-sdk/checks/check-crate-arms.sh +0 -62
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +0 -450
- package/payload/gate-sdk/checks/check-install-disposition.sh +0 -93
- package/payload/gate-sdk/checks/check-shellcheck.sh +0 -57
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +0 -2
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +0 -2
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +0 -4
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +0 -14
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +0 -14
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +0 -6
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +0 -3
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +0 -6
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +0 -3
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +0 -9
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +0 -3
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +0 -6
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +0 -10
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +0 -5
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +0 -5
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +0 -5
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +0 -5
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +0 -211
- package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +0 -112
- package/payload/gate-sdk/lib/consumer-smoke.sh +0 -69
- package/payload/gate-sdk/lib/declaration.sh +0 -59
- package/payload/gate-sdk/lib/inject.sh +0 -80
- package/payload/gate-sdk/smoke/install.sh +0 -171
- package/payload/gate-sdk/smoke/violation.sh +0 -13
- package/payload/guard-kit/SPEC.md +0 -1415
- package/payload/guard-kit/bin/compare-settings-allow.sh +0 -115
- package/payload/guard-kit/bin/run-guard-tests.sh +0 -110
- package/payload/guard-kit/bin/scan-prompts.sh +0 -166
- package/payload/guard-kit/bin/scratch-run.sh +0 -34
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +0 -52
- package/payload/guard-kit/lib/guard.sh +0 -1014
- package/payload/guard-kit/smoke/install.sh +0 -26
- package/payload/guard-kit/templates/bash-guard.sh +0 -20
- package/payload/guard-kit/templates/escalation-guard.sh +0 -27
- package/payload/guard-kit/templates/guard-config.sh +0 -8
- package/payload/guard-kit/templates/wakeup-guard.sh +0 -20
- package/payload/lifecycle-kit/SPEC.md +0 -2884
- package/payload/lifecycle-kit/bin/cite-survey.sh +0 -81
- package/payload/lifecycle-kit/bin/enter-stage.sh +0 -380
- package/payload/lifecycle-kit/bin/file-gap.sh +0 -101
- package/payload/lifecycle-kit/bin/file-survey.sh +0 -69
- package/payload/lifecycle-kit/bin/install-lifecycle.sh +0 -36
- package/payload/lifecycle-kit/bin/session-id.sh +0 -75
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +0 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +0 -4
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +0 -4
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +0 -4
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +0 -100
- package/payload/lifecycle-kit/lib/stages.sh +0 -194
- package/payload/lifecycle-kit/smoke/install.sh +0 -434
- package/payload/lifecycle-kit/smoke/violation.sh +0 -8
- package/payload/lifecycle-kit/templates/lifecycle-config.sh +0 -2
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +0 -29
- package/payload/queue-kit/SPEC.md +0 -1436
- package/payload/queue-kit/bin/lesson-sink.sh +0 -28
- package/payload/queue-kit/bin/queue-counts.sh +0 -35
- package/payload/queue-kit/bin/queue-edges.sh +0 -78
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +0 -6
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +0 -6
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +0 -3
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +0 -3
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +0 -6
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +0 -6
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +0 -215
- package/payload/queue-kit/lib/queue.sh +0 -129
- package/payload/queue-kit/smoke/install.sh +0 -25
- package/payload/queue-kit/smoke/violation.sh +0 -8
- package/payload/queue-kit/templates/queue-config.sh +0 -2
- package/payload/site-kit/SPEC.md +0 -601
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +0 -242
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.sh +0 -7
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.sh +0 -7
- package/payload/site-kit/lib/site.sh +0 -43
- package/payload/site-kit/smoke/install.sh +0 -34
- package/payload/site-kit/smoke/violation.sh +0 -20
- /package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/{check-ported.gate → check-stage-entry.gate} +0 -0
|
@@ -1,1134 +0,0 @@
|
|
|
1
|
-
# context-kit — token-economics-aware context management
|
|
2
|
-
|
|
3
|
-
A stateless agent session pays for context twice. On-demand cost: opening a
|
|
4
|
-
large SPEC or source file whole when only one section was needed. Standing
|
|
5
|
-
cost: the always-loaded surface — everything injected into *every* session
|
|
6
|
-
(the instructions file, the session-start hook output) — where each added
|
|
7
|
-
line is a recurring per-session tax that grows silently, because no single
|
|
8
|
-
session ever sees the trend. The kit attacks both: an index-first reading
|
|
9
|
-
toolset, a session-start hook template that assembles a compact brief, a
|
|
10
|
-
meter that tracks the always-loaded surface against a per-iteration
|
|
11
|
-
baseline, a brevity gate over the densest always-loaded section, the
|
|
12
|
-
close-stage brevity pass that reacts to the meter's delta, and a memory-off
|
|
13
|
-
gate pair that keeps the ungoverned harness-memory surface disabled rather
|
|
14
|
-
than left to accrete.
|
|
15
|
-
|
|
16
|
-
The kit carries the index mechanism, the hook skeleton, the meter, the
|
|
17
|
-
brevity machinery, and the memory-off enforcement; a consumer's product-shaped
|
|
18
|
-
surfaces (proto and diagram indexes, its doc roster, its harvest pipeline)
|
|
19
|
-
stay in the consumer repo (§Out of scope).
|
|
20
|
-
|
|
21
|
-
## Index-first reading
|
|
22
|
-
|
|
23
|
-
"Index, then read the one you need" — the pattern every tool serves. All
|
|
24
|
-
three are advisory `bin/` tools; none joins `gates.list`.
|
|
25
|
-
|
|
26
|
-
- **`md-index.sh [paths…]`** — compact structural index for Markdown:
|
|
27
|
-
heading hierarchy with line numbers, each heading followed by its
|
|
28
|
-
section's first sentence, plus a per-file line count (the cost signal —
|
|
29
|
-
whether to read whole or by section). Defaults to the whole tree,
|
|
30
|
-
skipping `.git/`, `node_modules/`, and build dirs.
|
|
31
|
-
- **`md-section.sh <file> <heading>`** — prints one section, from the
|
|
32
|
-
matched heading to the next heading of the same or higher level. Match
|
|
33
|
-
is case-insensitive and tolerates a leading `§` (so a spec citation
|
|
34
|
-
pastes directly); headings inside fenced code blocks are not mistaken
|
|
35
|
-
for structure. The companion: find the heading in the index, extract
|
|
36
|
-
just that body.
|
|
37
|
-
- **`pub-index.sh [paths…]`** — compact public API surface: every public
|
|
38
|
-
item with kind, name, and line, sorted by kind then name, in a per-file
|
|
39
|
-
block headed by a count. It is a **dispatcher over per-language
|
|
40
|
-
extractors**: the dispatcher owns traversal (the prune set is `.git`,
|
|
41
|
-
`target`, `node_modules`, `dist`, `build`), the kind-then-name sort, and
|
|
42
|
-
the row formatting (the index-tests goldens assert the exact shape); each
|
|
43
|
-
extractor is a sourced bash file
|
|
44
|
-
defining exactly two names — a `PUB_LANG_GLOBS` array (the find globs, e.g.
|
|
45
|
-
`*.rs`) and a `pub_lang_extract <file>` function emitting unsorted
|
|
46
|
-
`kind name lineno` rows. Two names, both read every run; no other
|
|
47
|
-
extractor-file surface is contract.
|
|
48
|
-
|
|
49
|
-
Extractors resolve registry-style (the `gates.list` consumer-first
|
|
50
|
-
precedent): a shipped extractor lives at `lib/pub-lang/<lang>.sh`, and a
|
|
51
|
-
consumer extractor of the same basename under `CONTEXT_KIT_PUB_LANG_DIR`
|
|
52
|
-
(default `${GATE_SDK_GATES_DIR:-scripts}/pub-lang`) shadows it. The enabled
|
|
53
|
-
set is `CONTEXT_KIT_PUB_LANGS`, whose default is every shipped extractor,
|
|
54
|
-
derived from the `lib/pub-lang/` roster at run time — never maintained as a
|
|
55
|
-
list (derivation-first). Both knobs are read through the consumer config
|
|
56
|
-
seam (`context-config.sh`), which the tool sources like the meter and the
|
|
57
|
-
footprint do.
|
|
58
|
-
|
|
59
|
-
Two extractors ship: `rust.sh` (every `pub`/`pub(crate)`/`pub(super)` item —
|
|
60
|
-
the grep-grade grammar the tool has always carried) and `ts.sh`
|
|
61
|
-
(TypeScript: `export`-declared `function`/`class`/`interface`/`type`/`enum`/
|
|
62
|
-
`const`/`let`/`var`, `const enum`, and `export default`, over `*.ts` and
|
|
63
|
-
`*.tsx` with `.d.ts` included as public surface by construction). Both are
|
|
64
|
-
grep-grade: re-exports (`export { x } from`) and multi-line declarations are
|
|
65
|
-
stated honest limits, not parsed. The dispatcher shipped when demand named
|
|
66
|
-
it — a second adopter's tree carries a TypeScript surface its Rust-only copy
|
|
67
|
-
could not index — not before: an unrequested plugin framework would have
|
|
68
|
-
been scaffolding, and AST/tree-sitter parsing is above the tool's grep-grade
|
|
69
|
-
portability altitude (shell over coreutils, Tier one).
|
|
70
|
-
|
|
71
|
-
## The session-context hook (template)
|
|
72
|
-
|
|
73
|
-
`templates/session-context.sh` is a consumer copy (the `bash-guard.sh`
|
|
74
|
-
pattern): wired as the harness's session-start hook via
|
|
75
|
-
`templates/settings-sessionstart.json`, it assembles the session brief.
|
|
76
|
-
Every step is guarded and degrades silently — the hook never fails a
|
|
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
|
|
93
|
-
Deferred section to a tally except on the close and scope stages. The stage
|
|
94
|
-
it routes on comes from the cursor — `CONTEXT_KIT_STATE_FILE`'s last data
|
|
95
|
-
line — with an empty cursor (no such file, or one truncated to its preamble
|
|
96
|
-
at an iteration boundary) taking the collapsed branch every non-close,
|
|
97
|
-
non-scope stage already takes, so the no-cursor window needs no branch of
|
|
98
|
-
its own and can never fail the session.
|
|
99
|
-
Deferred is unpickable and only scope (promotion) acts on it; the full
|
|
100
|
-
board additionally serves close's backlog review, and — by the
|
|
101
|
-
cursor-lag rule below — firing on close is what hands the full board to
|
|
102
|
-
the first scope session, which reads `close` at session start. On any
|
|
103
|
-
other stage the full listing is pure recurring cost.
|
|
104
|
-
A configured icebox tier rides **both** branches as a one-line tally, so
|
|
105
|
-
this step needs no new stage routing: a dormant entry is already one line,
|
|
106
|
-
so there is no full listing of it to withhold, and the eviction work that
|
|
107
|
-
reads the tier reads `--emit queue-index --icebox-candidates` rather than this
|
|
108
|
-
index.
|
|
109
|
-
2. **Dirty-surface pre-run** — for each component with uncommitted
|
|
110
|
-
changes, pre-run the matching surface index (default: `pub-index` over
|
|
111
|
-
top-level dirs containing `src/`), so a resumed session's editing
|
|
112
|
-
surface is already in context. Component detection and the index
|
|
113
|
-
command live in a marked consumer section of the template — they are
|
|
114
|
-
layout assumptions, not mechanism.
|
|
115
|
-
3. **Drift line** — one `drift-report --trend` summary line when the
|
|
116
|
-
consumer has a drift report; silently absent otherwise (drift-kit owns
|
|
117
|
-
the report; the seam is this optional line).
|
|
118
|
-
4. **Stage-conditioned nudges** — short reminders keyed on a stage set
|
|
119
|
-
read from the header (this repo's delegation nudge is the exemplar).
|
|
120
|
-
Each keys on {predecessor, own stage} (the cursor-lag rule below) so a
|
|
121
|
-
first-of-stage session and a restarted one both receive it. Marked
|
|
122
|
-
consumer section: which stages get which nudge is consumer judgment.
|
|
123
|
-
Suppressed when the session-role signal (below) marks the session `lead`
|
|
124
|
-
— the nudges are executor-facing.
|
|
125
|
-
5. **Memory-off backstop** — one warning line when the harness memory dir
|
|
126
|
-
(`CONTEXT_KIT_MEMORY_DIRS`) holds content, pointing the durable fact at its
|
|
127
|
-
tracked home (§The memory-off doctrine). `check-memory-off` fires only at
|
|
128
|
-
commit; this surfaces pollution at session start, between commits. Silent
|
|
129
|
-
when the dir is empty or absent.
|
|
130
|
-
6. **Scratch sweep** — reclaim `${GATE_SDK_TMP_DIR:-.tmp}` entries older
|
|
131
|
-
than a day, depth-first (`-mindepth 1 -depth`) so stray directories are
|
|
132
|
-
reclaimed too, never touching `.gitkeep`. Age-guarded so a concurrent
|
|
133
|
-
same-checkout session's in-flight scratch survives.
|
|
134
|
-
7. **Index-reminder footer** — the "index first" ritual with the
|
|
135
|
-
consumer's actual index commands listed (consumer-edited).
|
|
136
|
-
8. **Stage-routed craft-rule pointers** — when `CONTEXT_KIT_STAGE_RULES`
|
|
137
|
-
names a present emitter (doctrine-kit's `stage-rules.sh`), the current
|
|
138
|
-
stage's craft-rule pointer block, so a stage session is reminded of the
|
|
139
|
-
craft rules bearing on it before the matching action. Silently absent
|
|
140
|
-
when the emitter is unset or the stage routes no rules (doctrine-kit owns
|
|
141
|
-
the emitter and its tag grammar; the seam is this optional step, the
|
|
142
|
-
drift-line precedent). Keyed on the derived stage directly, not a
|
|
143
|
-
{predecessor, own stage} set: the pointers are advisory reminders, so
|
|
144
|
-
over-firing to an adjacent stage costs only a few lines, and the
|
|
145
|
-
cursor-lag rule below is about *conditioning*, not about which stage's
|
|
146
|
-
rules to show. Suppressed when the session-role signal marks the
|
|
147
|
-
session `lead` — the craft rules are executor-facing.
|
|
148
|
-
9. **Env profile** — when the consumer-local profile file
|
|
149
|
-
(`CONTEXT_KIT_ENV_PROFILE_FILE`, §bin/env-probe) exists, the step first runs
|
|
150
|
-
`bin/env-probe.sh` to re-probe it (output suppressed so no status line
|
|
151
|
-
reaches the brief), then emits its whole body verbatim so the session adapts
|
|
152
|
-
its commands to the box as it is now. The re-probe sits inside the same
|
|
153
|
-
file-present guard, so producer and consumer co-locate here and the probe
|
|
154
|
-
never auto-seeds a profile the operator did not opt into. Silent when the
|
|
155
|
-
file is absent — the harness's own `Platform:` line is the fallback, no
|
|
156
|
-
re-probe fires, and no always-loaded cost is paid where no profile was
|
|
157
|
-
seeded. The consumer owns the file's brevity (they author the gotchas half),
|
|
158
|
-
the drift-line precedent.
|
|
159
|
-
|
|
160
|
-
**The cursor-lag rule.** The hook runs at session start, before the
|
|
161
|
-
arriving skill stamps its entry (its first step) — and that stamp is what
|
|
162
|
-
moves the cursor. So a first-of-stage session reads the *predecessor's* stage.
|
|
163
|
-
The lag is structural and survives any change of cursor source: the hook reads
|
|
164
|
-
a value written after it fires. Stage-conditioned
|
|
165
|
-
output therefore keys on a stage *set* spanning {predecessor, own stage} —
|
|
166
|
-
guaranteeing the first-of-stage session is served, at the accepted cost of
|
|
167
|
-
over-firing to the other sessions that share a cursor value (a restarted
|
|
168
|
-
session of a keyed stage, or the first session of the stage after it).
|
|
169
|
-
|
|
170
|
-
**The session-role signal.** The hook keys every stage-conditioned injection
|
|
171
|
-
off the lifecycle stage cursor, which says nothing about whether the
|
|
172
|
-
*reading* session is a lead, a stage session, or a manual run — so without a
|
|
173
|
-
role signal a lead draws executor-facing craft rules at every hook fire
|
|
174
|
-
(startup, plus each compact/resume re-fire, the recurring cost). The signal
|
|
175
|
-
is a marker file, **session-id-scoped**: `/lead`'s first step writes one line
|
|
176
|
-
`lead <id>` — `<id>` being `session-id.sh`'s value — to
|
|
177
|
-
`CONTEXT_KIT_SESSION_ROLE_FILE` (gitignored scratch, default
|
|
178
|
-
`${GATE_SDK_TMP_DIR:-.tmp}/session-role`). The hook treats the session as
|
|
179
|
-
`lead` only when the marker's id equals the 8-char prefix of **its own
|
|
180
|
-
payload's session id** — read from the hook payload, never from
|
|
181
|
-
`CLAUDE_CODE_SESSION_ID`, because a subagent is handed its *parent's* id in
|
|
182
|
-
that variable (the named assumption: were the harness ever to fire
|
|
183
|
-
`SessionStart` in subagents, an env-var read would match every stage session
|
|
184
|
-
to its lead's marker and invert the suppression onto exactly its intended
|
|
185
|
-
audience; revisit if subagent hook-fire lands). So a concurrent or later
|
|
186
|
-
top-level session never bleeds, and a stale marker self-invalidates when the
|
|
187
|
-
id rotates. The payload arrives on the hook's stdin, consumable exactly once,
|
|
188
|
-
so the single read here is its sole consumer — a later payload-derived signal
|
|
189
|
-
(a stage derivation, say) must hoist that one read ahead of this guard, never
|
|
190
|
-
add a second. Top-level scoping is sufficient because both producer and
|
|
191
|
-
consumer are top-level by construction — `SessionStart` does not fire for
|
|
192
|
-
Task-spawned subagents, so the only sessions the hook fires in are leads and
|
|
193
|
-
manual runs, and the identity match discriminates exactly those. When the
|
|
194
|
-
signal marks the session `lead`, steps 4 and 8 are suppressed; everything
|
|
195
|
-
else emits unchanged. Signal absent ⇒ byte-identical to the signal-free
|
|
196
|
-
hook; the read is guarded like every step — the hook never fails a session.
|
|
197
|
-
Accepted limits (not defects): the initial startup fire precedes `/lead` by
|
|
198
|
-
construction, a bounded one-per-lead-session cost against the
|
|
199
|
-
per-compact/resume recurrence that is the actual waste; the marker ages out
|
|
200
|
-
with the day-horizon scratch sweep (step 6), degrading to absent-signal
|
|
201
|
-
behavior; the marker's lifetime is the **lead session's, not the iteration's**,
|
|
202
|
-
so a consumer boundary ritual that wipes gitignored scratch (a scope
|
|
203
|
-
evidence-reset, say) must spare the marker file — a lead outliving an iteration
|
|
204
|
-
boundary otherwise reverts silently to absent-signal behavior until it rewrites
|
|
205
|
-
it; and the producer inherits `session-id.sh`'s
|
|
206
|
-
`CLAUDE_CODE_SESSION_ID` dependency — unset, the newest-transcript fallback
|
|
207
|
-
in a lead with live subagents returns an `agent-` prefix the payload can
|
|
208
|
-
never match, and the signal silently no-ops to absent-signal behavior (the
|
|
209
|
-
failure costs a suppression, never a correctness property). Rejected
|
|
210
|
-
alternatives, recorded so they are not re-derived: a launch-env var (a
|
|
211
|
-
perpetual operator ritual whose forgotten export degrades silently with no
|
|
212
|
-
signal it happened) and both-producers-with-precedence (two producers plus a
|
|
213
|
-
precedence rule to spec and gate, for a gap one hook fire wide).
|
|
214
|
-
|
|
215
|
-
**Ruled out — lifecycle stamp-id injection.** The hook payload carries the
|
|
216
|
-
harness session id, and **in a top-level session** its 8-char prefix equals
|
|
217
|
-
what lifecycle-kit's `session-id.sh` computes, so the hook *could* inject the
|
|
218
|
-
canonical stamp id with no shell-out. The parity is top-level-only and holds
|
|
219
|
-
only while the harness sets `CLAUDE_CODE_SESSION_ID`: a subagent is handed its
|
|
220
|
-
*parent's* id in that variable, while `session-id.sh` deliberately derives the
|
|
221
|
-
subagent's own transcript id instead (its `CLAUDE_CODE_CHILD_SESSION` branch),
|
|
222
|
-
so the two quantities diverge there by design. The hook does not inject: lifecycle-kit owns its id derivation
|
|
223
|
-
end-to-end (the stage-entry ritual derives it via `session-id.sh`,
|
|
224
|
-
whatever invokes that script), and having the stage skills
|
|
225
|
-
read a context-kit-injected value would wire an upstream kit's protocol to
|
|
226
|
-
a downstream kit's hook for ergonomics only — the trust model gains
|
|
227
|
-
nothing, since `check-stage-evidence` already enforces that the stamped id
|
|
228
|
-
is current. A consumer may add a local informational echo; the template
|
|
229
|
-
ships none.
|
|
230
|
-
|
|
231
|
-
## bin/env-probe
|
|
232
|
-
|
|
233
|
-
`bin/env-probe.sh` derives a local machine profile so a session adapts to the
|
|
234
|
-
box it runs on — package manager, toolchain versions, absent tools — without
|
|
235
|
-
those machine facts ever landing in the public tree. It writes a
|
|
236
|
-
marker-bounded generated block (`<!-- context-kit:env:begin -->` /
|
|
237
|
-
`:end`, via gate-sdk's shared `inject_marker_block` helper) into the file named
|
|
238
|
-
by `CONTEXT_KIT_ENV_PROFILE_FILE` (default `ENV.local.md`), replacing an
|
|
239
|
-
existing block or appending a fresh one — but only when the probed content
|
|
240
|
-
actually changed (Cadence, below), so the block's probe date marks the last
|
|
241
|
-
real change, not the last run. The probed half is derivation-first — never
|
|
242
|
-
hand-maintained.
|
|
243
|
-
|
|
244
|
-
**What it probes.** OS/distro (`uname`, `/etc/os-release`); the package manager
|
|
245
|
-
(first present of an ordered detection walk over the known managers); each
|
|
246
|
-
roster member's version and its floor verdict (below); the absent-tools list
|
|
247
|
-
(roster members `command -v` cannot resolve); and the below-contract list. The
|
|
248
|
-
roster itself is owned by `lib/toolfloor.sh` and never restated here.
|
|
249
|
-
|
|
250
|
-
**The roster and its floor axis (`lib/toolfloor.sh`).** The roster lives in a
|
|
251
|
-
sourceable library rather than in the script, because `env-probe.sh` does its
|
|
252
|
-
work on execution: a second reader cannot obtain the roster by running it, which
|
|
253
|
-
is why the parity gate greps the array out of a file instead of sourcing it, and
|
|
254
|
-
why a reader that runs before any consumer file exists — an installer's `doctor`
|
|
255
|
-
reading its own payload copy — needs an owner it can source. The library defines
|
|
256
|
-
the array `PROBE_SET` and the predicate below and executes nothing else. It
|
|
257
|
-
carries no knob, deliberately: the roster is the kit's own dependency set, and a
|
|
258
|
-
consumer who could override it could only make the contract lie.
|
|
259
|
-
|
|
260
|
-
A roster element reads `<name>[:<min-version>[:<impl-token>[:<audience>]]]`. A
|
|
261
|
-
bare name keeps
|
|
262
|
-
the original meaning — must be present, no version constraint — so the floor axis
|
|
263
|
-
is **per-member** rather than a number demanded of every member. The fields are
|
|
264
|
-
positional, so a member constrained by implementation alone carries an empty
|
|
265
|
-
min-version field (`awk::GNU`), and an empty field means what an omitted trailing
|
|
266
|
-
field means: `awk`, `awk:`, `awk::` and `awk:::` are one unconstrained member. **A member
|
|
267
|
-
gains a floor only where a construct the battery actually runs forces one**, and
|
|
268
|
-
the forcing construct is recorded with it — a floor nobody's code forces is not
|
|
269
|
-
pinned, which is what stops a version number from rotting into an aspiration
|
|
270
|
-
(de-literalization applied to a version: the value is owned where the constraint
|
|
271
|
-
is provable).
|
|
272
|
-
|
|
273
|
-
**The audience axis.** The fourth field names *whose* floor a member is, because
|
|
274
|
-
the roster has two kinds of reader and one flat array gated both of them on all
|
|
275
|
-
of it. Its value set is closed and kit-owned exactly as the floor predicate's
|
|
276
|
-
verdict set is: the only declarable value is `contributor`, meaning *a
|
|
277
|
-
contributor-side floor with no install-time role*. The unmarked case is not
|
|
278
|
-
spelled — declaring the complement on every other member would be a roster
|
|
279
|
-
maintained against itself — so the emptiness rule above carries it: an empty or
|
|
280
|
-
omitted audience means every audience. `tool_floor_consumer_side <element>`
|
|
281
|
-
answers the one question a consumer-side reader asks, and exists so no such
|
|
282
|
-
reader re-implements that rule against a value set it does not own. A
|
|
283
|
-
consumer-side reader — `installer/lib/doctor.sh`, whose exit status is `init`'s
|
|
284
|
-
last precondition — filters its roster walk through that predicate and does not
|
|
285
|
-
probe, render or fail on a member the predicate excludes. A contributor-side
|
|
286
|
-
reader — `bin/env-probe.sh` — walks the roster whole and marks the audience
|
|
287
|
-
instead, since a contributor-side floor is exactly what it is reporting on.
|
|
288
|
-
The field is a grammar axis rather than a filter in the reader that needs it,
|
|
289
|
-
because a hard-coded exception is a literal de-literalization forbids and one
|
|
290
|
-
that re-fires the day a second contributor-only member lands.
|
|
291
|
-
|
|
292
|
-
The constrained members and what forces each:
|
|
293
|
-
|
|
294
|
-
- `bash:4.3` — the floor is set by the **highest** construct the battery runs,
|
|
295
|
-
not the most numerous. Three bash-4.0 constructs are widespread — `declare -A`
|
|
296
|
-
(gate-sdk, guard-kit, delegation-kit, evidence-kit checks), `mapfile` (across
|
|
297
|
-
the kits), the `${x,,}` case expansion (canon-kit's `lib/spec.sh` and checks, a
|
|
298
|
-
delegation-kit template) — but the **nameref** (`local -n`, bash 4.3) outranks
|
|
299
|
-
them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources. The
|
|
300
|
-
leaf gate that carried the second instance, `check-comment-tier`, has since
|
|
301
|
-
ported to the binary substrate and its script is gone — which changes nothing
|
|
302
|
-
about the floor, because the nameref in the shared gate
|
|
303
|
-
library makes 4.3 universal rather than one leaf gate's requirement, so a
|
|
304
|
-
consumer below it cannot run the battery at all. Recorded here because the
|
|
305
|
-
earlier `4.0` was a fail-open: `env-probe` reported `ok` on a 4.2 box the
|
|
306
|
-
battery would fail with an obscure syntax error.
|
|
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).
|
|
310
|
-
- `sort::coreutils` — no version floor, one implementation constraint, and one
|
|
311
|
-
member standing for a whole package family: GNU coreutils is forced by
|
|
312
|
-
`realpath --relative-to` and its `-m` form (gate-sdk's shared gate library and
|
|
313
|
-
hook emitter, canon-kit's link and command resolvers), `sort -V`
|
|
314
|
-
(`check-release-bump`), `date -d` (drift-kit's KPIs and trajectory), and
|
|
315
|
-
`stat -c` (delegation-kit's usage verdict). None is BSD-portable, and the
|
|
316
|
-
first sits in the library every gate sources — so a box without it cannot run
|
|
317
|
-
the battery at all rather than failing one gate. The representative member is
|
|
318
|
-
the binary carrying a forcing construct, which is also the floor predicate's
|
|
319
|
-
own comparison tool.
|
|
320
|
-
- `cargo:1.71::contributor` — a **contributor-side** floor, never a runtime one,
|
|
321
|
-
and that reading is now declared on the element and read by name rather than
|
|
322
|
-
left as an aside: the audience field is what the consumer-side predicate
|
|
323
|
-
above resolves, so the sentence is enforced instead of merely written. It
|
|
324
|
-
carries
|
|
325
|
-
two tiers because two kinds of tree read it. Where a `.gate` descriptor is live
|
|
326
|
-
it is a **commit-time** floor — `gate_command` puts the binary on the pre-commit
|
|
327
|
-
path and is fail-closed on an absent one, so the battery will not run without a
|
|
328
|
-
built crate (gate-sdk/SPEC.md §What the dispatch seam does not settle); that is
|
|
329
|
-
this repo today, its first cohort having landed. Everywhere else it stays the weaker
|
|
330
|
-
**contributor/build** floor: a consumer tree receives a prebuilt binary and never
|
|
331
|
-
a crate, so nothing there compiles at commit time. Both tiers rest on the same
|
|
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
|
|
348
|
-
contributor routine and the `gates` workflow actually invoke, and the two ship as
|
|
349
|
-
one toolchain sharing a version banner — the representative-member rule the
|
|
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
|
|
353
|
-
unaffected: git remains the sole runtime dependency of a ported gate, shelled out
|
|
354
|
-
rather than embedded (TRAJECTORY.md §The closed rulings owns that constraint).
|
|
355
|
-
Every other member is a bare name — no construct in the battery forces a version
|
|
356
|
-
on it (the `jq` usage is 1.5-era throughout), so none is pinned.
|
|
357
|
-
|
|
358
|
-
An implementation token is matched as a **substring of the tool's own version
|
|
359
|
-
banner** — gawk prints `GNU Awk`, GNU sort prints `sort (GNU coreutils)` — so the
|
|
360
|
-
constraint is checked against the binary actually on `PATH` rather than against a
|
|
361
|
-
package name nothing can probe. Its honest limit is the same one: the roster
|
|
362
|
-
asserts what `PATH` resolves at probe time, so an installed-but-not-`PATH`-ordered
|
|
363
|
-
GNU userland probes as below contract, correctly, since that is what the gates
|
|
364
|
-
will invoke.
|
|
365
|
-
|
|
366
|
-
**The floor predicate.** `tool_floor_check <element> <banner>` returns one verdict
|
|
367
|
-
from a closed set — `ok`, `absent` (an empty banner), `below <found> <floor>`,
|
|
368
|
-
`wrong-impl <found>`, `uncomparable`. Numeric comparison is `sort -V`.
|
|
369
|
-
`<found>` is the banner's first dotted-version token for `below` and its
|
|
370
|
-
first word — the implementation's own name — for `wrong-impl`. `uncomparable` is
|
|
371
|
-
the fail-closed arm: a banner the predicate cannot parse, or a `sort` without
|
|
372
|
-
`-V`, is reported unverified and never silently as `ok` — the posture
|
|
373
|
-
gate-sdk/SPEC.md §The gate model requires of a gate, applied to a probe that is
|
|
374
|
-
not one.
|
|
375
|
-
|
|
376
|
-
**The rendered verdict.** Each toolchain bullet carries the probed banner and,
|
|
377
|
-
for a constrained member, the constraint and its verdict — `` (floor 4.3, ok) ``,
|
|
378
|
-
`` (requires GNU — below contract) ``, `` (floor 4.3 — unverified) ``; an
|
|
379
|
-
unconstrained member carries no parenthetical. A member carrying an audience
|
|
380
|
-
carries it here too, as `` (floor 1.71, contributor-only, ok) ``, and every line
|
|
381
|
-
that names such a member is marked the same way — the absent list and the
|
|
382
|
-
below-contract list included, because those are the two lines on which *below a
|
|
383
|
-
floor that is yours* and *below a floor you are not on the hook for* would
|
|
384
|
-
otherwise read alike. A `**Below contract:**` line joins
|
|
385
|
-
the existing `**Absent:**` line, reading `none` when clean and otherwise naming
|
|
386
|
-
each failing member through the verdict's own fields: `below` and `wrong-impl`
|
|
387
|
-
are distinguished because the remedies differ — upgrade versus install a
|
|
388
|
-
different implementation — and `uncomparable` is listed as explicitly unverified
|
|
389
|
-
rather than folded into the clean state. Both version probes read from
|
|
390
|
-
`/dev/null`: `-V` prints a version banner for most tools but is an ordinary flag
|
|
391
|
-
for some — GNU sort's version-*sort* — so a tool that rejects `--version` would
|
|
392
|
-
otherwise fall through to a `-V` that reads inherited stdin and hangs the probe.
|
|
393
|
-
|
|
394
|
-
**The content seam (consumer-local, gitignored).** Hand-authored gotchas — the
|
|
395
|
-
"no `dig`/`host`; use `getent`/DoH" class a probe cannot know — live *outside*
|
|
396
|
-
the markers in the same file and survive every re-probe; when the file is
|
|
397
|
-
absent the probe seeds that scaffold once, then only ever rewrites the block.
|
|
398
|
-
The per-session re-probe (Cadence, below) does not trigger that seeding: it
|
|
399
|
-
runs only against a file that already exists, so seeding stays a
|
|
400
|
-
first-run/on-demand action.
|
|
401
|
-
The file is `BRIEF.local.md`-class: local-only, gitignored (this repo's
|
|
402
|
-
`.gitignore` and the CLAUDE.md housekeeping line carry it), so machine facts
|
|
403
|
-
stay private.
|
|
404
|
-
|
|
405
|
-
**Cadence — per-session auto-refresh.** The session-context hook re-probes
|
|
406
|
-
once per session, at its step-9 profile emit (§The session-context hook), so a
|
|
407
|
-
session always adapts to the box as it is now — the install step seeds the
|
|
408
|
-
profile once, and every session thereafter refreshes it. Change-detection keeps
|
|
409
|
-
this cheap and the date honest: the probe rewrites the block only when the
|
|
410
|
-
probed content differs from what is on disk (the `Probed` date line excluded
|
|
411
|
-
from the comparison), so an unchanged box writes nothing and the date marks the
|
|
412
|
-
last real change, not the last run. Still no freshness gate — env truth is not
|
|
413
|
-
cheaply machine-verifiable and the probe is already the derivation (the
|
|
414
|
-
enforcement-first carve-out; the per-session re-probe is now the enforcement,
|
|
415
|
-
replacing the install-step-only cadence). The hook re-probes only when the
|
|
416
|
-
profile file already exists, so a never-seeded consumer pays no cost and seeds
|
|
417
|
-
nothing unbidden.
|
|
418
|
-
|
|
419
|
-
## The always-loaded meter
|
|
420
|
-
|
|
421
|
-
`bin/always-loaded.sh` measures the standing surface: the summed line
|
|
422
|
-
count of the configured surface files (default `CLAUDE.md`) plus the
|
|
423
|
-
steady-state hook body, approximated by the configured hook-body command
|
|
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
|
|
426
|
-
session-context hook itself — the hook emits this meter's own output line,
|
|
427
|
-
so self-measurement would recurse and inflate.
|
|
428
|
-
|
|
429
|
-
The meter lives here, not in `drift-report.sh`, because the *metric* is
|
|
430
|
-
context economics and the *report* is drift reporting — drift-kit's
|
|
431
|
-
`kpi-always-loaded` consumes this script for its row instead of re-embedding
|
|
432
|
-
the measurement.
|
|
433
|
-
|
|
434
|
-
- **Default invocation** prints one line: total, per-part breakdown, and
|
|
435
|
-
the delta against the baseline when one exists.
|
|
436
|
-
- **`--update-baseline`** rewrites the baseline file — a close-stage act,
|
|
437
|
-
because the brevity pass reacts to the *delta*, not the level (close is
|
|
438
|
-
net-additive by design; only growth since the iteration started is
|
|
439
|
-
actionable).
|
|
440
|
-
- **Baseline file** (`${GATE_SDK_WORKFLOW_DIR:-.workflow}/`
|
|
441
|
-
`always-loaded-baseline.txt`, committed): a `# contract:` header
|
|
442
|
-
pointing here, then one data line
|
|
443
|
-
`<total-lines> <surface-lines> <baseline-commit>`. Trailing extra
|
|
444
|
-
fields are tolerated and preserved-ignored — a consumer's file may carry
|
|
445
|
-
a fourth (a settings-local count, say, a guard-kit-adjacent KPI owned by
|
|
446
|
-
its drift report), and the kit reads such a file unchanged. The baseline is
|
|
447
|
-
the consumer-side floor-holder for the footprint contract
|
|
448
|
-
(§The consumer footprint): its delta is what the close-stage brevity pass
|
|
449
|
-
reacts to.
|
|
450
|
-
|
|
451
|
-
## bin/footprint
|
|
452
|
-
|
|
453
|
-
The footprint emitter publishes the kits' measured context footprint — the
|
|
454
|
-
adoption-cost evidence a consumer weighs before vendoring, the concrete form of
|
|
455
|
-
the token-economics positioning. Where the meter reads one consumer's live
|
|
456
|
-
always-loaded total, this reads the tracked kit surfaces and attributes the cost
|
|
457
|
-
per kit, split by when it lands.
|
|
458
|
-
|
|
459
|
-
The measured set is the kit roster, **derived not maintained**: the top-level
|
|
460
|
-
directories carrying a `SPEC.md`. No knob names the set — a new kit joins the
|
|
461
|
-
page by existing.
|
|
462
|
-
|
|
463
|
-
Each kit is measured in the always-loaded and load-triggered tiers:
|
|
464
|
-
|
|
465
|
-
- **Always-loaded** — the block a kit generates between its own
|
|
466
|
-
`begin`/`end` markers in the configured surface files
|
|
467
|
-
(`CONTEXT_KIT_SURFACES`), the agent-file text the kit injects into every
|
|
468
|
-
session's context. This reuses the always-loaded meter's surface set; most
|
|
469
|
-
kits inject nothing and score zero here.
|
|
470
|
-
- **Load-triggered** — the skill and template markdown the kit ships under its
|
|
471
|
-
`templates/` tree, pulled into context only when its trigger fires. Gate-test
|
|
472
|
-
fixtures sit outside `templates/`, so they never enter the count.
|
|
473
|
-
|
|
474
|
-
**Numbers ruling.** Line counts are exact. The token column is a
|
|
475
|
-
*labeled estimate* — a bytes/4 heuristic, carried with a leading `~` and stated
|
|
476
|
-
inline as model-tokenizer-dependent, never a false-precision figure.
|
|
477
|
-
|
|
478
|
-
**Attribution ruling: kit share only.** A kit's advertised cost is what the kit
|
|
479
|
-
ships. Consumer bindings (the skill shims pointing at a vendored template),
|
|
480
|
-
consumer config, the on-demand SPEC/README pages, this repo's own `CLAUDE.md`
|
|
481
|
-
residue, and the session hook's dynamic body (consumer state, not fixed kit
|
|
482
|
-
text) are all excluded, and the page states the exclusion so the number is
|
|
483
|
-
honest. The exclusion is also a determinism requirement: the freshness gate
|
|
484
|
-
byte-compares the emission, so every measured surface must be a static tracked
|
|
485
|
-
file — a live hook run, being state-dependent, could never be byte-gated.
|
|
486
|
-
|
|
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
|
|
498
|
-
page.
|
|
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
|
-
|
|
509
|
-
## The brevity gate
|
|
510
|
-
|
|
511
|
-
`check-brevity` — a section-agnostic name: the governed section
|
|
512
|
-
is a knob, so no section name binds the gate (a consumer's
|
|
513
|
-
`check-convention-brevity` would be its section-specific counterpart). It scans one designated
|
|
514
|
-
always-loaded file for a bulleted section where each `- **name:**` bullet
|
|
515
|
-
carries a line budget, and flags a bullet that is **over budget and cites
|
|
516
|
-
a deeper doc** (carries a `§` pointer) — over-long while admitting its
|
|
517
|
-
detail already has a home elsewhere. Under-budget bullets and over-budget
|
|
518
|
-
bullets with no pointer pass (the latter may genuinely own their content);
|
|
519
|
-
`<!-- brevity-exempt: <reason> -->` on the bullet's first line or the line
|
|
520
|
-
above blesses a bullet whose every line is load-bearing.
|
|
521
|
-
|
|
522
|
-
Section resolution fails closed: a `CONTEXT_KIT_BREVITY_SECTION` matching no
|
|
523
|
-
heading in the governed file exits 2, never a clean 0. The knob and the heading
|
|
524
|
-
are a coupling no other gate holds, so a renamed or deleted section would
|
|
525
|
-
otherwise disarm the gate while it reported an empty section as clean — a gate
|
|
526
|
-
whose target vanished is a broken machine, not a clean tree. A section that
|
|
527
|
-
resolves and holds no bullets is clean: resolution is what fails closed, not
|
|
528
|
-
emptiness.
|
|
529
|
-
|
|
530
|
-
The pointer default is any `§`, not a single doc name like `HANDBOOK §`:
|
|
531
|
-
"cites a deeper doc" is the mechanism-level meaning and a consumer's handbook
|
|
532
|
-
is one instance of it, so the superset matches every such pointer. Ships with
|
|
533
|
-
a `good/`+`bad/` fixture pair and registers in the
|
|
534
|
-
consumer's `gates.list` (this repo's included).
|
|
535
|
-
|
|
536
|
-
## The close-stage brevity pass
|
|
537
|
-
|
|
538
|
-
`templates/close-brevity.md` is the recurring close-stage step a consumer
|
|
539
|
-
splices into its close skill (the guard-kit `close-triage.md` pattern).
|
|
540
|
-
The procedure: run `always-loaded.sh`; walk the growth since baseline
|
|
541
|
-
asking two distinct questions — staleness (*is it still true?*) and
|
|
542
|
-
brevity (*is each block worth its standing per-session token cost?*);
|
|
543
|
-
resolve by rewording or deleting, never by annotating (outdated context
|
|
544
|
-
<!-- manifest-temporal-exempt: names the "formerly…" note as the anti-pattern this pass forbids, not written as narration -->
|
|
545
|
-
goes to git history, not to a "formerly…" note); on-demand files (SPECs,
|
|
546
|
-
handbooks) are exempt — their cost is paid only when opened; finish with
|
|
547
|
-
`always-loaded.sh --update-baseline` and commit the baseline.
|
|
548
|
-
|
|
549
|
-
The lexical share of this narration judgment — a fixed set of `formerly…`-class
|
|
550
|
-
markers in the manifest set — is a blocking gate
|
|
551
|
-
(canon-kit/SPEC.md §check-manifest-temporal); this pass keeps the semantic
|
|
552
|
-
residue (*is this sentence about the past?*) that no marker set can decide.
|
|
553
|
-
|
|
554
|
-
## The consumer footprint
|
|
555
|
-
|
|
556
|
-
A consumer project pursues its own objectives; the tooling must stay
|
|
557
|
-
near-invisible in its context budget. This section states and holds the kits'
|
|
558
|
-
consumer-resident footprint — what checkwright asks a consumer's always-loaded
|
|
559
|
-
surface to carry — owned in one place, with the always-loaded meter's baseline
|
|
560
|
-
as the consumer-side floor-holder. It is prose contract only: no new state,
|
|
561
|
-
event, knob, or gate. Its producer is the kit author at kit-landing time (the
|
|
562
|
-
kit-landing checklist gains no step; the review seam is the roster row); its
|
|
563
|
-
readers are a consumer evaluating adoption cost before vendoring and this
|
|
564
|
-
repo's own close-stage brevity pass, which reads the roster when judging
|
|
565
|
-
whether a new resident line is a kit ask or repo content.
|
|
566
|
-
|
|
567
|
-
**The budget rule.** A kit's resident ask is at most one pointer line on the
|
|
568
|
-
consumer's always-loaded surface — the load-trigger-residency and
|
|
569
|
-
always-loaded-shape doctrine rules applied to kit shipping. The one sanctioned
|
|
570
|
-
block-sized ask is doctrine-kit's digest, itself bounded by its one-line-per-rule
|
|
571
|
-
shape (the always-loaded-shape rule); its name-lockstep with the doctrine is
|
|
572
|
-
held separately (the doctrine-rule-lockstep unit), because a re-vendor upgrade
|
|
573
|
-
stales the digest by construction.
|
|
574
|
-
|
|
575
|
-
**The roster, by citation.** Each kit's resident ask is named by citing the kit
|
|
576
|
-
SPEC section that owns it, never by restating it here — so the roster cannot
|
|
577
|
-
drift out of lockstep with what the kit actually ships. A kit adding a resident
|
|
578
|
-
ask adds its row below, which is the review seam:
|
|
579
|
-
|
|
580
|
-
- **delegation-kit** — the pre-authorization sentence plus skill pointer:
|
|
581
|
-
delegation-kit/SPEC.md §One template, a resident pointer.
|
|
582
|
-
- **doctrine-kit** — the doctrine link plus the digest block: doctrine-kit/SPEC.md.
|
|
583
|
-
- **drift-kit** — the knowledge-friction capture bullet:
|
|
584
|
-
drift-kit/SPEC.md §The knowledge-friction loop, which already states the
|
|
585
|
-
one-bullet cost and its earn-back condition.
|
|
586
|
-
- **every other kit** — none: their hooks, skills, gates, and SPECs are load-
|
|
587
|
-
or event-triggered, so they cost nothing until opened.
|
|
588
|
-
|
|
589
|
-
**The floor-holder ruling.** The meter plus its committed baseline
|
|
590
|
-
(§The always-loaded meter) ship as the consumer's floor-holder: the consumer
|
|
591
|
-
install (§Layout and configuration) seeds `always-loaded-baseline.txt`, so
|
|
592
|
-
growth of the resident surface is a visible delta at every close-stage brevity
|
|
593
|
-
pass. The hold is *advisory by design*. A hard total-line gate cannot attribute
|
|
594
|
-
growth — the consumer's own content shares the file and is theirs to grow — so
|
|
595
|
-
a level gate would be a noisy check breeding exemptions, the high-false-positive
|
|
596
|
-
case the enforcement-first rule sanctions for keeping a class as stated manual
|
|
597
|
-
duty rather than a gate. The mechanical holds that do exist stay: `check-brevity`
|
|
598
|
-
bounds the one bulleted section its knob designates (§The brevity gate; this
|
|
599
|
-
repo points it at the conventions block, not the digest), and the meter delta
|
|
600
|
-
feeds `kpi-always-loaded`.
|
|
601
|
-
|
|
602
|
-
The measured counterpart to this budget doctrine is the published footprint page
|
|
603
|
-
(§bin/footprint): this section owns the budget rule, the page owns the measured
|
|
604
|
-
per-kit numbers, and the two never restate each other.
|
|
605
|
-
|
|
606
|
-
## The memory-off doctrine
|
|
607
|
-
|
|
608
|
-
Harness memory — the per-session store the harness offers to persist facts
|
|
609
|
-
across sessions — is an always-loaded surface the meter cannot read and no
|
|
610
|
-
gate scans: standing per-session context that accretes outside the tier
|
|
611
|
-
contract, ungoverned by construction. The methodology already routes durable
|
|
612
|
-
knowledge through a star topology, and those routes are the replacement —
|
|
613
|
-
durable facts to their doc owner (the knowledge-friction loop), iteration-
|
|
614
|
-
scoped attention to the lesson channels, private context to the operator's
|
|
615
|
-
local brief. So the kit disables harness memory and enforces it off rather
|
|
616
|
-
than governing its content.
|
|
617
|
-
|
|
618
|
-
The banned class is *harness-side silent accumulation*, not every local file: an
|
|
619
|
-
explicit, derived, operator-curated local file is config, not memory.
|
|
620
|
-
`ENV.local.md` (§bin/env-probe) sits with `BRIEF.local.md` on the config side of
|
|
621
|
-
that line — its probed half is a re-runnable derivation, its gotchas half is
|
|
622
|
-
hand-curated, and both are gitignored operator surfaces the operator chose to
|
|
623
|
-
keep, never a store the harness wrote to behind the tier contract.
|
|
624
|
-
|
|
625
|
-
Blast-radius honesty rides the doctrine: the gates hold the tree regardless of
|
|
626
|
-
a polluted session, so a memory that quietly re-accumulated degrades one
|
|
627
|
-
session's judgment, never the committed baselines. This is therefore a
|
|
628
|
-
lightweight gate pair — a hermetic pin and a local-environment scan — not
|
|
629
|
-
machinery. Enforcement splits on the tree-vs-environment seam: what a commit
|
|
630
|
-
can carry (the tracked settings file) is hermetic and CI-real
|
|
631
|
-
(§check-settings-pins); what only the operator's machine holds (the memory
|
|
632
|
-
dir, the untracked local settings) is a local-environment scan, CI-neutral
|
|
633
|
-
(§check-memory-off).
|
|
634
|
-
|
|
635
|
-
## check-settings-pins
|
|
636
|
-
|
|
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`
|
|
641
|
-
(default `${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`) holds against
|
|
642
|
-
the tracked settings file `CONTEXT_KIT_SETTINGS_FILE` (default
|
|
643
|
-
`.claude/settings.json`). Grammar: one `<path> = <expected JSON>` per line,
|
|
644
|
-
`#` comments and blanks ignored. General-purpose by construction — any
|
|
645
|
-
settings key is pinnable — this consumer's first pins hold the
|
|
646
|
-
auto-memory-disabling keys.
|
|
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
|
-
|
|
697
|
-
Dispositions: a pin whose path resolves to the expected value passes; a path
|
|
698
|
-
present with a different value is the legible violation (exit 1, each finding
|
|
699
|
-
reading path, expected, and actual). Fail-closed (exit 2) on an unreadable or
|
|
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).
|
|
706
|
-
|
|
707
|
-
**What a pin is worth depends on which tiers can outrank the file it pins**, and
|
|
708
|
-
the gate reads exactly one tier. The harness resolves settings across five, in
|
|
709
|
-
order: managed policy, then command-line, then the untracked local settings file,
|
|
710
|
-
then the tracked settings file this gate reads, then the operator's user-level
|
|
711
|
-
file. Objects deep-merge; the exceptions that merge rather than override are the
|
|
712
|
-
permissions arrays, MCP servers, HTTP hook URLs and `fallbackModel` chains. Two
|
|
713
|
-
consequences the gate's own verdict does not carry. A pin **does** beat the
|
|
714
|
-
operator's user-level file, which is what makes a tracked pin meaningful at all
|
|
715
|
-
rather than a suggestion the machine can quietly ignore. And a pin is **beaten**
|
|
716
|
-
by three tiers above it, of which `check-memory-off` covers one — the local
|
|
717
|
-
settings overlay — leaving managed policy and command-line flags outside any
|
|
718
|
-
gate's reach. That residue is unclosable here rather than merely unbuilt: neither
|
|
719
|
-
tier leaves an artifact in the tree, and the command line does not exist until
|
|
720
|
-
the session starts.
|
|
721
|
-
|
|
722
|
-
## check-settings-paths
|
|
723
|
-
|
|
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
|
|
727
|
-
invariant over the same tracked file: every entry in
|
|
728
|
-
`CONTEXT_KIT_SETTINGS_FILE`'s `permissions.allow[]` whose command token is a
|
|
729
|
-
**literal** repo-relative `.sh` path resolves in the working tree. The knob is
|
|
730
|
-
reused, not introduced — §check-settings-pins already owns it and its default.
|
|
731
|
-
|
|
732
|
-
The class it defends is a standing property of a gate port rather than a
|
|
733
|
-
one-time count: replacing a kit's `checks/<gate>.sh` with a `<gate>.gate`
|
|
734
|
-
descriptor strands every allow entry naming the old path, and this repo
|
|
735
|
-
accumulated such entries one cohort apart before the gate existed. A dead grant
|
|
736
|
-
breaks nothing — no command can reach it — so the cost is a permission roster
|
|
737
|
-
whose every reader must re-verify which lines still mean anything.
|
|
738
|
-
|
|
739
|
-
**The extraction predicate**, scoped against the shapes a permission array
|
|
740
|
-
actually carries. A candidate is taken only from an entry of the form
|
|
741
|
-
`Bash(<command>)`; leading `env NAME=VALUE` assignments and a `bash`/`sh`
|
|
742
|
-
interpreter word are skipped, and the first remaining token is the candidate. A
|
|
743
|
-
candidate not ending in `.sh` is out of scope — a bare command names no path,
|
|
744
|
-
and a non-`.sh` path entry (a log truncation, a scratch removal) names a
|
|
745
|
-
runtime-created gitignored path whose absence is its ordinary state, so
|
|
746
|
-
existence is the wrong predicate for it. A candidate **containing `*`** is a
|
|
747
|
-
pattern, intentionally polymorphic over files that need not exist today, and is
|
|
748
|
-
skipped. That rule is scoped to the *command token*, not the entry: this repo's
|
|
749
|
-
standing shape for a grant taking arguments is a bare entry beside a
|
|
750
|
-
`*`-suffixed twin, and the twin's path is as literal — and as strandable — as
|
|
751
|
-
the bare form's, so it stays in scope.
|
|
752
|
-
|
|
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.
|
|
760
|
-
|
|
761
|
-
Dispositions: exit 1 lists each violating entry verbatim beside the path that
|
|
762
|
-
did not resolve, so the reader can repoint or drop the grant without re-deriving
|
|
763
|
-
which token was read. The clean line reports the **checked count**, which is
|
|
764
|
-
what distinguishes a predicate that scoped to the array from one that vacuously
|
|
765
|
-
matched nothing. Fail-closed (exit 2) on a settings file that is
|
|
766
|
-
unreadable or not JSON — the sibling gate reads the same file on the same terms,
|
|
767
|
-
and the file is this gate's sole subject rather than an opt-in manifest, so
|
|
768
|
-
there is no absent-surface skip to grant. A `--fixture <dir>` mode reads
|
|
769
|
-
`<dir>/settings.json` and resolves candidates against `<dir>`, which is the
|
|
770
|
-
hermetic mode the `good/`+`bad/` fixture pair drives.
|
|
771
|
-
|
|
772
|
-
The pair pins the scoping, not merely the verdict. `good/` carries every
|
|
773
|
-
skipped shape — pattern tokens, bare non-path commands, non-`.sh` paths —
|
|
774
|
-
alongside resolving literals in all three extraction shapes (bare,
|
|
775
|
-
`env`-prefixed, trailing-flag), and its expectation pins the **checked count**:
|
|
776
|
-
the pattern-expansion defect above passes an exit-code-only fixture, because an
|
|
777
|
-
expanded pattern resolves by construction, and is visible only in the count.
|
|
778
|
-
`bad/` carries a dead path in the bare, `*`-twin and `env`-prefixed shapes
|
|
779
|
-
beside one resolving grant, so a broken extraction arm shows as a missing
|
|
780
|
-
finding rather than a still-red exit.
|
|
781
|
-
|
|
782
|
-
Its `# graph:` manifest names the settings file as its subject and the check
|
|
783
|
-
script globs as a **reverse trigger** — a cohort deleting a ported gate's `.sh`
|
|
784
|
-
is exactly the edit that strands a grant, so it must re-run the gate. The
|
|
785
|
-
distinction is recorded because gate-sdk/SPEC.md's port criterion 4 turns on it,
|
|
786
|
-
and a later port reading that couple as content would misclassify the member.
|
|
787
|
-
The trigger is a partial route by construction: the generated hook reads staged
|
|
788
|
-
`ACMR` paths, so a *deleted* `.sh` never matches it. What the trigger catches is
|
|
789
|
-
the ordinary edit that strands a grant; what catches the cohort is the full
|
|
790
|
-
battery, which runs whole-tree with no trigger filter.
|
|
791
|
-
|
|
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.
|
|
803
|
-
|
|
804
|
-
**The gate is not the prune.** It reads the settings file and writes nothing,
|
|
805
|
-
but it reds the moment it registers on a tree carrying stranded entries, and the
|
|
806
|
-
settings file is operator-owned configuration a session may not edit. The
|
|
807
|
-
landing order is therefore fixed: the operator prunes, then the gate registers.
|
|
808
|
-
|
|
809
|
-
## check-memory-off
|
|
810
|
-
|
|
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
|
|
815
|
-
stage. Two red conditions:
|
|
816
|
-
|
|
817
|
-
- the harness's per-project memory dir holds content — any regular file that
|
|
818
|
-
is not the dir-preserving `.gitkeep`;
|
|
819
|
-
- the untracked local settings file (`settings.local.json` beside the settings
|
|
820
|
-
file) sets a pinned key to a value other than its pin — the override the
|
|
821
|
-
hermetic gate cannot see, since it reads only the tracked file.
|
|
822
|
-
|
|
823
|
-
`CONTEXT_KIT_MEMORY_DIRS` (a space-separated glob list) names the dirs to
|
|
824
|
-
scan; its default derives the current project's dir from the harness layout
|
|
825
|
-
(§Layout and configuration). CI-neutral: where the surface is absent the gate
|
|
826
|
-
is clean, and the clean line states the fail-open caveat — an absent dir
|
|
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.
|
|
854
|
-
|
|
855
|
-
## check-footprint-fresh
|
|
856
|
-
|
|
857
|
-
`checks/check-footprint-fresh.gate` (hermetic, `precommit`) byte-compares the
|
|
858
|
-
committed `docs/footprint.md` against the footprint emitter, the
|
|
859
|
-
`check-docs-mirror-fresh`/`check-trajectory-fresh` posture: a generated,
|
|
860
|
-
freshness-gated projection is Derivation-first's sanctioned copy, so the
|
|
861
|
-
maintainer re-runs the emitter after any change to a measured surface and a
|
|
862
|
-
stale page reddens the battery. Its `# graph:` manifest couples the measured
|
|
863
|
-
surfaces — the configured agent file and each kit's `templates/` tree — so an
|
|
864
|
-
edit to what the page counts re-fires the gate.
|
|
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
|
-
|
|
874
|
-
Bare, it runs the live emitter; a two-argument form
|
|
875
|
-
(`check-footprint-fresh <projection> <emit>`) compares two pre-baked files,
|
|
876
|
-
the hermetic mode the `good/`+`bad/` fixture pair drives. Fail-closed (exit 2)
|
|
877
|
-
on a missing projection or emit source; the stale byte-compare is the exit-1
|
|
878
|
-
violation. The page's generated numbers ride the `docs/evidence-data.md`
|
|
879
|
-
precedent past the prose gates on content, not a named valve — the figures live
|
|
880
|
-
in table cells the count gate does not read as prose, and the method prose names
|
|
881
|
-
no bare collection total.
|
|
882
|
-
|
|
883
|
-
## Layout and configuration
|
|
884
|
-
|
|
885
|
-
```
|
|
886
|
-
context-kit/
|
|
887
|
-
bin/md-index.sh
|
|
888
|
-
bin/md-section.sh
|
|
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
|
|
891
|
-
lib/toolfloor.sh # sourceable owner: the probe roster + the floor predicate
|
|
892
|
-
lib/pub-lang/rust.sh # shipped extractor: Rust public items
|
|
893
|
-
lib/pub-lang/ts.sh # shipped extractor: TypeScript export surface
|
|
894
|
-
bin/always-loaded.sh
|
|
895
|
-
bin/env-probe.sh # derives the marker-bounded local env profile
|
|
896
|
-
bin/run-index-tests.sh # expected-output runner for the bin tools
|
|
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
|
|
902
|
-
gate-tests/check-brevity/{good,bad}/
|
|
903
|
-
gate-tests/check-settings-pins/{good,bad}/
|
|
904
|
-
gate-tests/check-settings-paths/{good,bad}/
|
|
905
|
-
gate-tests/check-memory-off/{good,bad}/
|
|
906
|
-
gate-tests/check-footprint-fresh/{good,bad}/
|
|
907
|
-
gate-tests/check-brevity.test.sh # the unmatched-section axis the pair cannot hold
|
|
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
|
|
910
|
-
index-tests/ # fixture corpus + expected outputs
|
|
911
|
-
templates/session-context.sh # consumer copy: marked consumer sections
|
|
912
|
-
templates/settings-sessionstart.json
|
|
913
|
-
templates/context-config.sh
|
|
914
|
-
templates/close-brevity.md
|
|
915
|
-
smoke/install.sh
|
|
916
|
-
smoke/violation.sh
|
|
917
|
-
smoke/agents-md.sh # the AGENTS.md adapter smoke (its own validate suite)
|
|
918
|
-
```
|
|
919
|
-
|
|
920
|
-
The install also seeds the committed baseline the footprint contract holds
|
|
921
|
-
(§The consumer footprint): after wiring the hook it runs
|
|
922
|
-
`always-loaded.sh --update-baseline` once to write
|
|
923
|
-
`always-loaded-baseline.txt`, and `smoke/install.sh` asserts that step by
|
|
924
|
-
running the meter and checking the baseline lands. Install also seeds the local
|
|
925
|
-
env profile — `env-probe.sh` writes the first `ENV.local.md` block
|
|
926
|
-
(§bin/env-probe); being an operator-local, gitignored surface, no smoke asserts
|
|
927
|
-
it (the stated install step is its enforcement).
|
|
928
|
-
|
|
929
|
-
Config follows the established kit pattern: copy
|
|
930
|
-
`templates/context-config.sh` into the gates dir (or point
|
|
931
|
-
`CONTEXT_KIT_CONFIG_FILE` elsewhere) and override any knob; defaults fill
|
|
932
|
-
what the consumer left unset, and a set-but-missing `CONTEXT_KIT_CONFIG_FILE`
|
|
933
|
-
exits 2 rather than silently running on defaults. Knobs (this repo's layout
|
|
934
|
-
as defaults):
|
|
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
|
-
|
|
968
|
-
- `CONTEXT_KIT_SURFACES` — array of always-loaded files; default
|
|
969
|
-
`("CLAUDE.md")`. The measured surface is agent-file-name-agnostic: a consumer
|
|
970
|
-
whose harness reads `AGENTS.md` (or any other always-loaded agent file) sets
|
|
971
|
-
this to that file and the meter, the footprint, and `check-brevity` all follow
|
|
972
|
-
— no kit mechanism resolves the agent file by literal. The
|
|
973
|
-
`smoke/agents-md.sh` adapter smoke exercises exactly that: an `AGENTS.md`
|
|
974
|
-
scratch consumer whose battery is green and whose meter and footprint measure
|
|
975
|
-
`AGENTS.md`.
|
|
976
|
-
- `CONTEXT_KIT_PUB_LANGS` — array naming the `pub-index` extractors to
|
|
977
|
-
enable; default every shipped extractor, derived from the `lib/pub-lang/`
|
|
978
|
-
roster at run time (never a maintained list).
|
|
979
|
-
- `CONTEXT_KIT_PUB_LANG_DIR` — the consumer extractor dir searched before the
|
|
980
|
-
kit's `lib/pub-lang/` (a same-basename file shadows the shipped one);
|
|
981
|
-
default `${GATE_SDK_GATES_DIR:-scripts}/pub-lang`.
|
|
982
|
-
- `CONTEXT_KIT_HOOK_CMD` — command whose output line count approximates
|
|
983
|
-
the steady-state hook body; default queue-kit's
|
|
984
|
-
`run-gates.sh --emit queue-index --collapse-deferred` when resolvable, else empty
|
|
985
|
-
(surfaces only).
|
|
986
|
-
- `CONTEXT_KIT_DRIFT_REPORT` — path to the consumer's drift-report script;
|
|
987
|
-
the session-context hook runs it with `--trend` for the brief's drift
|
|
988
|
-
line; default empty (the line is omitted).
|
|
989
|
-
- `CONTEXT_KIT_STAGE_RULES` — path to a stage→craft-rule pointer emitter
|
|
990
|
-
(doctrine-kit's `stage-rules.sh`); the session-context hook runs it with the
|
|
991
|
-
current stage for the brief's craft-rule block; default empty (the block is
|
|
992
|
-
omitted).
|
|
993
|
-
- `CONTEXT_KIT_STATE_FILE` — the lifecycle evidence file whose **last data
|
|
994
|
-
line** carries the stage cursor the hook routes on (§The session-context
|
|
995
|
-
hook); default `${GATE_SDK_WORKFLOW_DIR:-.workflow}/WORKFLOW-STATE.txt`. Read
|
|
996
|
-
as a named file, never through stdin — the session-role signal consumes stdin
|
|
997
|
-
exactly once, and a second reader there would starve it.
|
|
998
|
-
- `CONTEXT_KIT_ENV_PROFILE_FILE` — the consumer-local env profile file
|
|
999
|
-
`bin/env-probe.sh` writes and the session-context hook's step 9 emits (§bin/
|
|
1000
|
-
env-probe); default `ENV.local.md`.
|
|
1001
|
-
- `CONTEXT_KIT_SESSION_ROLE_FILE` — the session-role marker `/lead` writes and
|
|
1002
|
-
the session-context hook's identity match reads (§The session-context hook);
|
|
1003
|
-
default `${GATE_SDK_TMP_DIR:-.tmp}/session-role` (gitignored scratch).
|
|
1004
|
-
- `CONTEXT_KIT_BASELINE_FILE` — default
|
|
1005
|
-
`${GATE_SDK_WORKFLOW_DIR:-.workflow}/always-loaded-baseline.txt`.
|
|
1006
|
-
- `CONTEXT_KIT_BREVITY_FILE` — default `CLAUDE.md`.
|
|
1007
|
-
- `CONTEXT_KIT_BREVITY_SECTION` — heading of the budgeted bullet section;
|
|
1008
|
-
default `## Shared conventions`.
|
|
1009
|
-
- `CONTEXT_KIT_BREVITY_BUDGET` — lines per bullet; default `4`.
|
|
1010
|
-
- `CONTEXT_KIT_BREVITY_POINTER_RE` — the "cites a deeper doc" pattern;
|
|
1011
|
-
default `§`.
|
|
1012
|
-
- `CONTEXT_KIT_SETTINGS_FILE` — the tracked harness settings file
|
|
1013
|
-
check-settings-pins and check-settings-paths each verify, on a different
|
|
1014
|
-
invariant, and whose `.local.json` sibling check-memory-off scans; default
|
|
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).
|
|
1025
|
-
- `CONTEXT_KIT_SETTINGS_PINS` — the pins manifest; default
|
|
1026
|
-
`${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`.
|
|
1027
|
-
- `CONTEXT_KIT_MEMORY_DIRS` — space-separated glob list of harness memory dirs
|
|
1028
|
-
check-memory-off scans; default the current project's dir under the operator's
|
|
1029
|
-
home, `$HOME/.claude/projects/<slug>/memory`, where `<slug>` is the project's
|
|
1030
|
-
absolute path with every `/` and `.` folded to `-` (the harness's own
|
|
1031
|
-
encoding). A knob because the layout moves (the plugin-marketplace ruling:
|
|
1032
|
-
design against the live layout, keep it config).
|
|
1033
|
-
|
|
1034
|
-
The hook template itself is consumer-edited rather than knob-driven (the
|
|
1035
|
-
guard-kit guard precedent): its variation points are layout judgment,
|
|
1036
|
-
and a template with a dozen knobs is harder to own than a marked section.
|
|
1037
|
-
|
|
1038
|
-
## Testing
|
|
1039
|
-
|
|
1040
|
-
The three index tools and the meter are advisory and speak plain text, so
|
|
1041
|
-
the gate contracts do not fit; the kit ships an expected-output runner
|
|
1042
|
-
instead: `index-tests/` holds a small fixture corpus (Markdown with nested
|
|
1043
|
-
headings, fences, and link-bearing first sentences; Rust with the pub-item
|
|
1044
|
-
kinds; TypeScript with every kind the `ts.sh` grammar claims — including
|
|
1045
|
-
`const enum` and `export default` — beside re-export and non-export lines it
|
|
1046
|
-
must skip; a baseline file) beside expected outputs, and
|
|
1047
|
-
`bin/run-index-tests.sh` runs each tool over the corpus and asserts exact
|
|
1048
|
-
output, failing on any diff. The Rust golden is the no-regression assertion
|
|
1049
|
-
for the extractor-dispatcher refactor: it stays byte-identical across it. A
|
|
1050
|
-
consumer-shadowing case points `CONTEXT_KIT_PUB_LANG_DIR` at a scratch dir
|
|
1051
|
-
whose `rust.sh` emits a marker row, exercising the consumer-first resolution
|
|
1052
|
-
order (the shadow's output, not the shipped grammar's, is what the golden
|
|
1053
|
-
records). The floor predicate rides the same runner rather than a fixture pair —
|
|
1054
|
-
it is a sourced function, not a gate: `index-tests/toolfloor-cases.sh` sources
|
|
1055
|
-
`lib/toolfloor.sh` and prints one line per (element, banner) pair, so the closed
|
|
1056
|
-
verdict set, the spellings of an unconstrained member, and the
|
|
1057
|
-
`uncomparable` fail-closed arm are asserted against a golden rather than assumed.
|
|
1058
|
-
The audience axis is pinned in a second table in the same file, printing the
|
|
1059
|
-
parsed field and the consumer-side predicate per element rather than a verdict,
|
|
1060
|
-
because no verdict reads that field: its present, empty and omitted forms are
|
|
1061
|
-
each a case, the emptiness rule being the part of the grammar a reader is
|
|
1062
|
-
likeliest to get wrong.
|
|
1063
|
-
The runner registers as its own evidence-kit validate suite
|
|
1064
|
-
(`index_tests`, the `demo` precedent): the golden the refactor leans on now
|
|
1065
|
-
has an automated validate-stage consumer. The footprint emitter is advisory the same way, but its
|
|
1066
|
-
projection is gated rather than runner-tested: `check-footprint-fresh` byte-holds
|
|
1067
|
-
`docs/footprint.md` against `--emit`. `check-brevity`, `check-settings-pins`,
|
|
1068
|
-
`check-memory-off`, and `check-footprint-fresh` are gates and carry the standard
|
|
1069
|
-
fixture pair; the footprint pair drives the hermetic two-argument mode
|
|
1070
|
-
(`<projection> <emit>`), the `check-trajectory-fresh` precedent. Both
|
|
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
|
|
1078
|
-
express: `check-brevity.test.sh` holds the unmatched-section resolution (the
|
|
1079
|
-
pair fixes `CONTEXT_KIT_BREVITY_SECTION` at the stock default and always
|
|
1080
|
-
supplies a file carrying it, so neither case can express a section that
|
|
1081
|
-
resolves to nothing — an unmatched section is exit 2, a broken machine rather
|
|
1082
|
-
than a clean tree). The memory-off local-override axis — an untracked
|
|
1083
|
-
`settings.local.json` that re-enables a pinned key past an empty dir — cannot
|
|
1084
|
-
be a good/bad pair (the pair fixes the dir axis), so `check-memory-off.test.sh`
|
|
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.
|
|
1090
|
-
|
|
1091
|
-
`smoke/install.sh` copies the templates into the scratch consumer (config
|
|
1092
|
-
into the gates dir, hook wiring into the harness settings), runs the hook
|
|
1093
|
-
end-to-end asserting it exits zero (and, when queue-kit is co-vendored,
|
|
1094
|
-
emits the queue index — the installer assumes only gate-sdk, so the queue
|
|
1095
|
-
integration is exercised only alongside queue-kit), and runs
|
|
1096
|
-
`always-loaded.sh --update-baseline` asserting the baseline file appears.
|
|
1097
|
-
`smoke/violation.sh` crafts an over-budget pointered bullet in the scratch
|
|
1098
|
-
consumer's brevity file and asserts the battery reddens via
|
|
1099
|
-
`check-brevity`. It inserts the bullet inside the budgeted section rather than
|
|
1100
|
-
appending at end-of-file: a co-vendored kit may append a trailing section (the
|
|
1101
|
-
doctrine-kit installer adds one), and an EOF-appended bullet would land outside
|
|
1102
|
-
`check-brevity`'s scanned section and silently disarm the smoke.
|
|
1103
|
-
|
|
1104
|
-
`smoke/agents-md.sh` is the agent-file adapter smoke — the exercise behind the
|
|
1105
|
-
Tier-two compatibility claim (docs/positioning.md §The tiered compatibility
|
|
1106
|
-
claim). It vendors a scratch consumer through the shared consumer-smoke
|
|
1107
|
-
mechanics (gate-sdk/SPEC.md §Consumer smoke), converts its agent file from
|
|
1108
|
-
`CLAUDE.md` to `AGENTS.md`, sets the agent-file knobs in the consumer's config
|
|
1109
|
-
seams (`GATE_SDK_AGENT_FILE`, `LIFECYCLE_KIT_AGENT_FILE`, `DOCTRINE_KIT_AGENT_FILE`,
|
|
1110
|
-
`CANON_KIT_MANIFEST_FILES`, `CONTEXT_KIT_SURFACES`, `CONTEXT_KIT_BREVITY_FILE`),
|
|
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
|
|
1113
|
-
`AGENTS.md` at root while rejecting a stray second agent file. It is a standalone
|
|
1114
|
-
harness — not driven by `run-consumer-smoke.sh`, which asserts the kit defaults
|
|
1115
|
-
under zero config — and registers as its own evidence-kit validate suite
|
|
1116
|
-
(`agents_md_smoke`, the `demo` precedent).
|
|
1117
|
-
|
|
1118
|
-
## Out of scope
|
|
1119
|
-
|
|
1120
|
-
Product-shaped indexes — a `proto-index` over a proto layout, a
|
|
1121
|
-
`diagram-index` over architecture HTML — are consumer surfaces; a consumer
|
|
1122
|
-
names its own extra indexes in the hook template's footer. `check-md-refs`
|
|
1123
|
-
(an orientation-doc roster is rule content; the link-resolution mechanism is
|
|
1124
|
-
unclaimed, not this kit's) and `check-md-sections` (a required-heading map is
|
|
1125
|
-
rule content, and the queue surface it guards is already gated by queue-kit).
|
|
1126
|
-
A close-stage harvest pipeline (`[pub]` lessons, publication paths) is
|
|
1127
|
-
product workflow, not context mechanism. `drift-report.sh` itself is
|
|
1128
|
-
drift-kit's surface — only the always-loaded KPI lives here. A consumer's
|
|
1129
|
-
session-context content — its delegation nudge wording, component roster,
|
|
1130
|
-
and extra index commands — stays in its own copied hook. Memory **content**
|
|
1131
|
-
is out of scope by construction: the memory-off gates govern presence (the
|
|
1132
|
-
dir stays empty) and pins (the disabling keys hold), never a live session's
|
|
1133
|
-
context, which is not a scannable surface — a session polluted mid-flight is
|
|
1134
|
-
caught by the tree the gates hold, not by reading the session.
|