checkwright 0.22.0 → 0.23.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 +687 -90
- package/lib/common/lock.sh +38 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +49 -33
- package/lib/diff.sh +64 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +23 -31
- package/lib/uninstall.sh +212 -0
- package/lib/update.sh +34 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +1 -0
- package/payload/canon-kit/SPEC.md +410 -58
- package/payload/canon-kit/checks/check-amendment-queue.sh +1 -0
- package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
- package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
- package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +1 -0
- package/payload/canon-kit/checks/check-install-claim.gate +3 -0
- package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +1 -0
- package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
- package/payload/canon-kit/checks/check-md-refs.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
- package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +1 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +1 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
- package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
- package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
- package/payload/canon-kit/lib/spec.sh +91 -62
- package/payload/canon-kit/smoke/install.sh +1 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +4 -1
- package/payload/context-kit/SPEC.md +143 -10
- package/payload/context-kit/bin/env-probe.sh +19 -6
- package/payload/context-kit/checks/check-brevity.sh +1 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
- package/payload/context-kit/checks/check-memory-off.sh +1 -0
- package/payload/context-kit/checks/check-settings-paths.sh +94 -0
- package/payload/context-kit/checks/check-settings-pins.sh +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +12 -1
- package/payload/context-kit/smoke/install.sh +1 -0
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +116 -13
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
- package/payload/delegation-kit/templates/agent-execution.md +38 -14
- package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
- package/payload/doctrine-kit/DOCTRINE.md +86 -12
- package/payload/doctrine-kit/README.md +7 -3
- package/payload/doctrine-kit/SPEC.md +102 -9
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +82 -2
- package/payload/doctrine-kit/smoke/install.sh +90 -0
- package/payload/drift-kit/SPEC.md +13 -4
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/smoke/install.sh +28 -0
- package/payload/evidence-kit/checks/check-battery-roster.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +1 -0
- package/payload/gate-sdk/README.md +13 -0
- package/payload/gate-sdk/SPEC.md +2611 -151
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/port-blockers.sh +445 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +26 -5
- package/payload/gate-sdk/bin/run-gates.sh +8 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +52 -4
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
- package/payload/gate-sdk/checks/check-core-files.sh +1 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +2 -1
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +33 -3
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +36 -5
- package/payload/gate-sdk/checks/check-graph.sh +1 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-identity.sh +1 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +1 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +3 -2
- package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -0
- package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +111 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +65 -4
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +111 -1
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
- package/payload/gate-sdk/lib/gate.sh +135 -11
- package/payload/gate-sdk/lib/inject.sh +25 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
- package/payload/gate-sdk/smoke/install.sh +42 -0
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +278 -62
- package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +49 -7
- package/payload/guard-kit/lib/guard.sh +276 -54
- package/payload/guard-kit/templates/close-triage.md +5 -5
- package/payload/guard-kit/templates/settings-hooks.json +7 -1
- package/payload/lifecycle-kit/README.md +11 -1
- package/payload/lifecycle-kit/SPEC.md +441 -37
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +126 -10
- package/payload/lifecycle-kit/bin/file-gap.sh +27 -10
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +1 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -2
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +4 -0
- package/payload/lifecycle-kit/smoke/install.sh +67 -4
- package/payload/lifecycle-kit/templates/lead.md +36 -0
- package/payload/lifecycle-kit/templates/stages/close.md +30 -11
- package/payload/lifecycle-kit/templates/stages/scope.md +9 -4
- package/payload/lifecycle-kit/templates/stages/spec.md +5 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +3 -1
- package/payload/queue-kit/SPEC.md +123 -3
- package/payload/queue-kit/bin/queue-counts.sh +35 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
- package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +1 -0
- package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
- package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +1 -0
- package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
- package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
- package/payload/queue-kit/checks/check-task-names.gate +3 -0
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/lib/queue.sh +4 -19
- package/payload/site-kit/SPEC.md +23 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/profiles.list +36 -8
- package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
- package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
- package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
- package/payload/canon-kit/checks/check-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
- package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
- package/payload/canon-kit/checks/check-md-refs.sh +0 -128
- package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
- package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
- package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
- package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
- package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
- package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
- package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -106
- package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
- package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
- package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
- package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
- package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
- package/payload/queue-kit/checks/check-task-names.sh +0 -128
|
@@ -244,18 +244,38 @@ the array `PROBE_SET` and the predicate below and executes nothing else. It
|
|
|
244
244
|
carries no knob, deliberately: the roster is the kit's own dependency set, and a
|
|
245
245
|
consumer who could override it could only make the contract lie.
|
|
246
246
|
|
|
247
|
-
A roster element reads `<name>[:<min-version>[:<impl-token>]]`. A
|
|
247
|
+
A roster element reads `<name>[:<min-version>[:<impl-token>[:<audience>]]]`. A
|
|
248
|
+
bare name keeps
|
|
248
249
|
the original meaning — must be present, no version constraint — so the floor axis
|
|
249
250
|
is **per-member** rather than a number demanded of every member. The fields are
|
|
250
251
|
positional, so a member constrained by implementation alone carries an empty
|
|
251
252
|
min-version field (`awk::GNU`), and an empty field means what an omitted trailing
|
|
252
|
-
field means: `awk`, `awk:`, and `awk
|
|
253
|
+
field means: `awk`, `awk:`, `awk::` and `awk:::` are one unconstrained member. **A member
|
|
253
254
|
gains a floor only where a construct the battery actually runs forces one**, and
|
|
254
255
|
the forcing construct is recorded with it — a floor nobody's code forces is not
|
|
255
256
|
pinned, which is what stops a version number from rotting into an aspiration
|
|
256
257
|
(de-literalization applied to a version: the value is owned where the constraint
|
|
257
258
|
is provable).
|
|
258
259
|
|
|
260
|
+
**The audience axis.** The fourth field names *whose* floor a member is, because
|
|
261
|
+
the roster has two kinds of reader and one flat array gated both of them on all
|
|
262
|
+
of it. Its value set is closed and kit-owned exactly as the floor predicate's
|
|
263
|
+
verdict set is: the only declarable value is `contributor`, meaning *a
|
|
264
|
+
contributor-side floor with no install-time role*. The unmarked case is not
|
|
265
|
+
spelled — declaring the complement on every other member would be a roster
|
|
266
|
+
maintained against itself — so the emptiness rule above carries it: an empty or
|
|
267
|
+
omitted audience means every audience. `tool_floor_consumer_side <element>`
|
|
268
|
+
answers the one question a consumer-side reader asks, and exists so no such
|
|
269
|
+
reader re-implements that rule against a value set it does not own. A
|
|
270
|
+
consumer-side reader — `installer/lib/doctor.sh`, whose exit status is `init`'s
|
|
271
|
+
last precondition — filters its roster walk through that predicate and does not
|
|
272
|
+
probe, render or fail on a member the predicate excludes. A contributor-side
|
|
273
|
+
reader — `bin/env-probe.sh` — walks the roster whole and marks the audience
|
|
274
|
+
instead, since a contributor-side floor is exactly what it is reporting on.
|
|
275
|
+
The field is a grammar axis rather than a filter in the reader that needs it,
|
|
276
|
+
because a hard-coded exception is a literal de-literalization forbids and one
|
|
277
|
+
that re-fires the day a second contributor-only member lands.
|
|
278
|
+
|
|
259
279
|
The constrained members and what forces each:
|
|
260
280
|
|
|
261
281
|
- `bash:4.3` — the floor is set by the **highest** construct the battery runs,
|
|
@@ -263,8 +283,10 @@ The constrained members and what forces each:
|
|
|
263
283
|
(gate-sdk, guard-kit, delegation-kit, evidence-kit checks), `mapfile` (across
|
|
264
284
|
the kits), the `${x,,}` case expansion (canon-kit's `lib/spec.sh` and checks, a
|
|
265
285
|
delegation-kit template) — but the **nameref** (`local -n`, bash 4.3) outranks
|
|
266
|
-
them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources
|
|
267
|
-
`
|
|
286
|
+
them: `gate-sdk/lib/gate.sh`'s couples expander, which every gate sources. The
|
|
287
|
+
leaf gate that carried the second instance, `check-comment-tier`, has since
|
|
288
|
+
ported to the binary substrate and its script is gone — which changes nothing
|
|
289
|
+
about the floor, because the nameref in the shared gate
|
|
268
290
|
library makes 4.3 universal rather than one leaf gate's requirement, so a
|
|
269
291
|
consumer below it cannot run the battery at all. Recorded here because the
|
|
270
292
|
earlier `4.0` was a fail-open: `env-probe` reported `ok` on a 4.2 box the
|
|
@@ -282,12 +304,16 @@ The constrained members and what forces each:
|
|
|
282
304
|
the battery at all rather than failing one gate. The representative member is
|
|
283
305
|
the binary carrying a forcing construct, which is also the floor predicate's
|
|
284
306
|
own comparison tool.
|
|
285
|
-
- `cargo:1.56` — a **contributor-side** floor, never a runtime one,
|
|
307
|
+
- `cargo:1.56::contributor` — a **contributor-side** floor, never a runtime one,
|
|
308
|
+
and that reading is now declared on the element and read by name rather than
|
|
309
|
+
left as an aside: the audience field is what the consumer-side predicate
|
|
310
|
+
above resolves, so the sentence is enforced instead of merely written. It
|
|
311
|
+
carries
|
|
286
312
|
two tiers because two kinds of tree read it. Where a `.gate` descriptor is live
|
|
287
313
|
it is a **commit-time** floor — `gate_command` puts the binary on the pre-commit
|
|
288
314
|
path and is fail-closed on an absent one, so the battery will not run without a
|
|
289
315
|
built crate (gate-sdk/SPEC.md §What the dispatch seam does not settle); that is
|
|
290
|
-
this repo,
|
|
316
|
+
this repo today, its first cohort having landed. Everywhere else it stays the weaker
|
|
291
317
|
**contributor/build** floor: a consumer tree receives a prebuilt binary and never
|
|
292
318
|
a crate, so nothing there compiles at commit time. Both tiers rest on the same
|
|
293
319
|
forcing fact —
|
|
@@ -324,7 +350,12 @@ not one.
|
|
|
324
350
|
**The rendered verdict.** Each toolchain bullet carries the probed banner and,
|
|
325
351
|
for a constrained member, the constraint and its verdict — `` (floor 4.3, ok) ``,
|
|
326
352
|
`` (requires GNU — below contract) ``, `` (floor 4.3 — unverified) ``; an
|
|
327
|
-
unconstrained member carries no parenthetical. A
|
|
353
|
+
unconstrained member carries no parenthetical. A member carrying an audience
|
|
354
|
+
carries it here too, as `` (floor 1.56, contributor-only, ok) ``, and every line
|
|
355
|
+
that names such a member is marked the same way — the absent list and the
|
|
356
|
+
below-contract list included, because those are the two lines on which *below a
|
|
357
|
+
floor that is yours* and *below a floor you are not on the hook for* would
|
|
358
|
+
otherwise read alike. A `**Below contract:**` line joins
|
|
328
359
|
the existing `**Absent:**` line, reading `none` when clean and otherwise naming
|
|
329
360
|
each failing member through the verdict's own fields: `below` and `wrong-impl`
|
|
330
361
|
are distinguished because the remedies differ — upgrade versus install a
|
|
@@ -583,6 +614,100 @@ legible drift a red is for. Absent pins file: the opt-in-off state, a clean
|
|
|
583
614
|
skip. Ships a `good/`+`bad/` fixture pair and registers in the consumer's
|
|
584
615
|
`gates.list` (this repo's included).
|
|
585
616
|
|
|
617
|
+
**What a pin is worth depends on which tiers can outrank the file it pins**, and
|
|
618
|
+
the gate reads exactly one tier. The harness resolves settings across five, in
|
|
619
|
+
order: managed policy, then command-line, then the untracked local settings file,
|
|
620
|
+
then the tracked settings file this gate reads, then the operator's user-level
|
|
621
|
+
file. Objects deep-merge; the exceptions that merge rather than override are the
|
|
622
|
+
permissions arrays, MCP servers, HTTP hook URLs and `fallbackModel` chains. Two
|
|
623
|
+
consequences the gate's own verdict does not carry. A pin **does** beat the
|
|
624
|
+
operator's user-level file, which is what makes a tracked pin meaningful at all
|
|
625
|
+
rather than a suggestion the machine can quietly ignore. And a pin is **beaten**
|
|
626
|
+
by three tiers above it, of which `check-memory-off` covers one — the local
|
|
627
|
+
settings overlay — leaving managed policy and command-line flags outside any
|
|
628
|
+
gate's reach. That residue is unclosable here rather than merely unbuilt: neither
|
|
629
|
+
tier leaves an artifact in the tree, and the command line does not exist until
|
|
630
|
+
the session starts.
|
|
631
|
+
|
|
632
|
+
## check-settings-paths
|
|
633
|
+
|
|
634
|
+
`checks/check-settings-paths.sh` (hermetic, `precommit`) holds the second
|
|
635
|
+
invariant over the same tracked file: every entry in
|
|
636
|
+
`CONTEXT_KIT_SETTINGS_FILE`'s `permissions.allow[]` whose command token is a
|
|
637
|
+
**literal** repo-relative `.sh` path resolves in the working tree. The knob is
|
|
638
|
+
reused, not introduced — §check-settings-pins already owns it and its default.
|
|
639
|
+
|
|
640
|
+
The class it defends is a standing property of a gate port rather than a
|
|
641
|
+
one-time count: replacing a kit's `checks/<gate>.sh` with a `<gate>.gate`
|
|
642
|
+
descriptor strands every allow entry naming the old path, and this repo
|
|
643
|
+
accumulated such entries one cohort apart before the gate existed. A dead grant
|
|
644
|
+
breaks nothing — no command can reach it — so the cost is a permission roster
|
|
645
|
+
whose every reader must re-verify which lines still mean anything.
|
|
646
|
+
|
|
647
|
+
**The extraction predicate**, scoped against the shapes a permission array
|
|
648
|
+
actually carries. A candidate is taken only from an entry of the form
|
|
649
|
+
`Bash(<command>)`; leading `env NAME=VALUE` assignments and a `bash`/`sh`
|
|
650
|
+
interpreter word are skipped, and the first remaining token is the candidate. A
|
|
651
|
+
candidate not ending in `.sh` is out of scope — a bare command names no path,
|
|
652
|
+
and a non-`.sh` path entry (a log truncation, a scratch removal) names a
|
|
653
|
+
runtime-created gitignored path whose absence is its ordinary state, so
|
|
654
|
+
existence is the wrong predicate for it. A candidate **containing `*`** is a
|
|
655
|
+
pattern, intentionally polymorphic over files that need not exist today, and is
|
|
656
|
+
skipped. That rule is scoped to the *command token*, not the entry: this repo's
|
|
657
|
+
standing shape for a grant taking arguments is a bare entry beside a
|
|
658
|
+
`*`-suffixed twin, and the twin's path is as literal — and as strandable — as
|
|
659
|
+
the bare form's, so it stays in scope.
|
|
660
|
+
|
|
661
|
+
Splitting the grant into tokens must not expand it. An unquoted array
|
|
662
|
+
assignment would glob a pattern grant against the tree and then assert an
|
|
663
|
+
arbitrary first match, which greens the whole pattern class instead of skipping
|
|
664
|
+
it while leaving the checked count silently inflated; the implementation splits
|
|
665
|
+
with `read -ra`, which does not expand.
|
|
666
|
+
|
|
667
|
+
Dispositions: exit 1 lists each violating entry verbatim beside the path that
|
|
668
|
+
did not resolve, so the reader can repoint or drop the grant without re-deriving
|
|
669
|
+
which token was read. The clean line reports the **checked count**, which is
|
|
670
|
+
what distinguishes a predicate that scoped to the array from one that vacuously
|
|
671
|
+
matched nothing. Fail-closed (exit 2) on no `jq`, and on a settings file that is
|
|
672
|
+
unreadable or not JSON — the sibling gate reads the same file on the same terms,
|
|
673
|
+
and the file is this gate's sole subject rather than an opt-in manifest, so
|
|
674
|
+
there is no absent-surface skip to grant. A `--fixture <dir>` mode reads
|
|
675
|
+
`<dir>/settings.json` and resolves candidates against `<dir>`, which is the
|
|
676
|
+
hermetic mode the `good/`+`bad/` fixture pair drives.
|
|
677
|
+
|
|
678
|
+
The pair pins the scoping, not merely the verdict. `good/` carries every
|
|
679
|
+
skipped shape — pattern tokens, bare non-path commands, non-`.sh` paths —
|
|
680
|
+
alongside resolving literals in all three extraction shapes (bare,
|
|
681
|
+
`env`-prefixed, trailing-flag), and its expectation pins the **checked count**:
|
|
682
|
+
the pattern-expansion defect above passes an exit-code-only fixture, because an
|
|
683
|
+
expanded pattern resolves by construction, and is visible only in the count.
|
|
684
|
+
`bad/` carries a dead path in the bare, `*`-twin and `env`-prefixed shapes
|
|
685
|
+
beside one resolving grant, so a broken extraction arm shows as a missing
|
|
686
|
+
finding rather than a still-red exit.
|
|
687
|
+
|
|
688
|
+
Its `# graph:` manifest names the settings file as its subject and the check
|
|
689
|
+
script globs as a **reverse trigger** — a cohort deleting a ported gate's `.sh`
|
|
690
|
+
is exactly the edit that strands a grant, so it must re-run the gate. The
|
|
691
|
+
distinction is recorded because gate-sdk/SPEC.md's port criterion 4 turns on it,
|
|
692
|
+
and a later port reading that couple as content would misclassify the member.
|
|
693
|
+
The trigger is a partial route by construction: the generated hook reads staged
|
|
694
|
+
`ACMR` paths, so a *deleted* `.sh` never matches it. What the trigger catches is
|
|
695
|
+
the ordinary edit that strands a grant; what catches the cohort is the full
|
|
696
|
+
battery, which runs whole-tree with no trigger filter.
|
|
697
|
+
|
|
698
|
+
`jq` is not on `GATE_SDK_PROGRAM_FLOOR`, so this gate fails port criterion 7 the
|
|
699
|
+
day it lands and owes designed-away work at its port. That is recorded here
|
|
700
|
+
rather than discovered there: criterion 7 is an ordering signal, not an
|
|
701
|
+
eligibility screen, and hand-rolling a JSON-array scan over floor programs would
|
|
702
|
+
buy a fragile parser to dodge a dependency the sibling gate already carries on
|
|
703
|
+
the same file. One parsing story for the settings file across every reader in
|
|
704
|
+
the tree is worth more than the criterion.
|
|
705
|
+
|
|
706
|
+
**The gate is not the prune.** It reads the settings file and writes nothing,
|
|
707
|
+
but it reds the moment it registers on a tree carrying stranded entries, and the
|
|
708
|
+
settings file is operator-owned configuration a session may not edit. The
|
|
709
|
+
landing order is therefore fixed: the operator prunes, then the gate registers.
|
|
710
|
+
|
|
586
711
|
## check-memory-off
|
|
587
712
|
|
|
588
713
|
`checks/check-memory-off.sh` (local-environment class, the check-identity
|
|
@@ -640,10 +765,12 @@ context-kit/
|
|
|
640
765
|
bin/run-index-tests.sh # expected-output runner for the bin tools
|
|
641
766
|
checks/check-brevity.sh
|
|
642
767
|
checks/check-settings-pins.sh # hermetic: pins hold against the settings file
|
|
768
|
+
checks/check-settings-paths.sh # hermetic: literal .sh grants resolve in the tree
|
|
643
769
|
checks/check-memory-off.sh # local-environment: memory dir + local overrides
|
|
644
770
|
checks/check-footprint-fresh.sh # hermetic: docs/footprint.md byte-fresh vs the emitter
|
|
645
771
|
gate-tests/check-brevity/{good,bad}/
|
|
646
772
|
gate-tests/check-settings-pins/{good,bad}/
|
|
773
|
+
gate-tests/check-settings-paths/{good,bad}/
|
|
647
774
|
gate-tests/check-memory-off/{good,bad}/
|
|
648
775
|
gate-tests/check-footprint-fresh/{good,bad}/
|
|
649
776
|
gate-tests/check-brevity.test.sh # the unmatched-section axis the pair cannot hold
|
|
@@ -719,8 +846,9 @@ as defaults):
|
|
|
719
846
|
- `CONTEXT_KIT_BREVITY_POINTER_RE` — the "cites a deeper doc" pattern;
|
|
720
847
|
default `§`.
|
|
721
848
|
- `CONTEXT_KIT_SETTINGS_FILE` — the tracked harness settings file
|
|
722
|
-
check-settings-pins
|
|
723
|
-
|
|
849
|
+
check-settings-pins and check-settings-paths each verify, on a different
|
|
850
|
+
invariant, and whose `.local.json` sibling check-memory-off scans; default
|
|
851
|
+
`.claude/settings.json`.
|
|
724
852
|
- `CONTEXT_KIT_SETTINGS_PINS` — the pins manifest; default
|
|
725
853
|
`${GATE_SDK_GATES_DIR:-scripts}/settings-pins.conf`.
|
|
726
854
|
- `CONTEXT_KIT_MEMORY_DIRS` — space-separated glob list of harness memory dirs
|
|
@@ -752,8 +880,13 @@ order (the shadow's output, not the shipped grammar's, is what the golden
|
|
|
752
880
|
records). The floor predicate rides the same runner rather than a fixture pair —
|
|
753
881
|
it is a sourced function, not a gate: `index-tests/toolfloor-cases.sh` sources
|
|
754
882
|
`lib/toolfloor.sh` and prints one line per (element, banner) pair, so the closed
|
|
755
|
-
verdict set, the
|
|
883
|
+
verdict set, the spellings of an unconstrained member, and the
|
|
756
884
|
`uncomparable` fail-closed arm are asserted against a golden rather than assumed.
|
|
885
|
+
The audience axis is pinned in a second table in the same file, printing the
|
|
886
|
+
parsed field and the consumer-side predicate per element rather than a verdict,
|
|
887
|
+
because no verdict reads that field: its present, empty and omitted forms are
|
|
888
|
+
each a case, the emptiness rule being the part of the grammar a reader is
|
|
889
|
+
likeliest to get wrong.
|
|
757
890
|
The runner registers as its own evidence-kit validate suite
|
|
758
891
|
(`index_tests`, the `demo` precedent): the golden the refactor leans on now
|
|
759
892
|
has an automated validate-stage consumer. `footprint.sh` is advisory the same way, but its
|
|
@@ -65,15 +65,27 @@ for _pm in "${PM_CANDIDATES[@]}"; do
|
|
|
65
65
|
fi
|
|
66
66
|
done
|
|
67
67
|
|
|
68
|
+
# spec: context-kit/SPEC.md §bin/env-probe — the audience marker, spelled once and appended by every line that names a member, so a reader tells a floor that is theirs apart from one they are not on the hook for
|
|
69
|
+
audience_mark() { # $1 = roster element -> the audience word, empty for the every-audience default
|
|
70
|
+
tool_floor_parse "$1"
|
|
71
|
+
[[ -n "$TOOL_FLOOR_AUDIENCE" ]] || return 0
|
|
72
|
+
printf '%s-only' "$TOOL_FLOOR_AUDIENCE"
|
|
73
|
+
}
|
|
74
|
+
|
|
68
75
|
# spec: context-kit/SPEC.md §bin/env-probe — renders the constrained member's parenthetical; an unconstrained member carries none, so the roster's optional axis stays optional on the page too
|
|
69
76
|
render_floor() { # $1 = roster element, $2 = verdict -> the trailing parenthetical, empty when the member is unconstrained
|
|
70
|
-
local desc=""
|
|
77
|
+
local desc="" mark
|
|
71
78
|
tool_floor_parse "$1"
|
|
72
79
|
[[ -n "$TOOL_FLOOR_MIN" ]] && desc="floor $TOOL_FLOOR_MIN"
|
|
73
80
|
if [[ -n "$TOOL_FLOOR_IMPL" ]]; then
|
|
74
81
|
[[ -n "$desc" ]] && desc+=", "
|
|
75
82
|
desc+="requires $TOOL_FLOOR_IMPL"
|
|
76
83
|
fi
|
|
84
|
+
mark="$(audience_mark "$1")"
|
|
85
|
+
if [[ -n "$mark" ]]; then
|
|
86
|
+
[[ -n "$desc" ]] && desc+=", "
|
|
87
|
+
desc+="$mark"
|
|
88
|
+
fi
|
|
77
89
|
[[ -n "$desc" ]] || return 0
|
|
78
90
|
case "$2" in
|
|
79
91
|
ok) printf ' (%s, ok)' "$desc" ;;
|
|
@@ -88,19 +100,20 @@ below=()
|
|
|
88
100
|
for _e in "${PROBE_SET[@]}"; do
|
|
89
101
|
tool_floor_parse "$_e"
|
|
90
102
|
_t="$TOOL_FLOOR_NAME"
|
|
103
|
+
_mark="$(audience_mark "$_e")"
|
|
91
104
|
ver="$(probe_version "$_t")" || ver=""
|
|
92
105
|
verdict="$(tool_floor_check "$_e" "$ver")"
|
|
93
106
|
read -r _kind _found _floor <<<"$verdict"
|
|
94
107
|
case "$_kind" in
|
|
95
|
-
absent) absent+=("$
|
|
96
|
-
below) below+=("\`$_t\` (found $_found, floor $_floor)") ;;
|
|
97
|
-
wrong-impl) below+=("\`$_t\` (found $_found, requires $TOOL_FLOOR_IMPL)") ;;
|
|
98
|
-
uncomparable) below+=("\`$_t\` (unverified against floor $TOOL_FLOOR_MIN)") ;;
|
|
108
|
+
absent) absent+=("\`$_t\`${_mark:+ ($_mark)}"); continue ;;
|
|
109
|
+
below) below+=("\`$_t\` (found $_found, floor $_floor${_mark:+, $_mark})") ;;
|
|
110
|
+
wrong-impl) below+=("\`$_t\` (found $_found, requires $TOOL_FLOOR_IMPL${_mark:+, $_mark})") ;;
|
|
111
|
+
uncomparable) below+=("\`$_t\` (unverified against floor $TOOL_FLOOR_MIN${_mark:+, $_mark})") ;;
|
|
99
112
|
esac
|
|
100
113
|
tool_lines+=" - \`$_t\` — $ver$(render_floor "$_e" "$verdict")"$'\n'
|
|
101
114
|
done
|
|
102
115
|
absent_line="none"
|
|
103
|
-
[[ ${#absent[@]} -gt 0 ]] && absent_line="$(printf '
|
|
116
|
+
[[ ${#absent[@]} -gt 0 ]] && absent_line="$(printf '%s ' "${absent[@]}")"
|
|
104
117
|
below_line="none"
|
|
105
118
|
if [[ ${#below[@]} -gt 0 ]]; then
|
|
106
119
|
below_line="$(printf '%s; ' "${below[@]}")"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=docs/footprint.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/stages/*.md dir=one valve=none tier=precommit trigger=docs/footprint.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/stages/*.md
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: context-kit/SPEC.md §check-footprint-fresh — docs/footprint.md is the byte-fresh projection of footprint.sh --emit
|
|
4
5
|
#
|
|
5
6
|
# usage: check-footprint-fresh.sh [projection-file] [emit-file]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=scripts/settings-pins.conf dir=one valve=none tier=precommit trigger=*
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: context-kit/SPEC.md §check-memory-off — local-environment scan: the per-project harness memory dir stays empty and no local settings override re-enables a pinned key
|
|
4
5
|
#
|
|
5
6
|
# usage: check-memory-off.sh [--fixture <dir>]
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=.claude/settings.json,kit:checks/*.sh,scripts/check-*.sh dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
4
|
+
# spec: context-kit/SPEC.md §check-settings-paths — every committed allow-list entry whose command token is a literal repo-relative .sh path resolves in the working tree
|
|
5
|
+
#
|
|
6
|
+
# usage: check-settings-paths.sh [--fixture <dir>]
|
|
7
|
+
# live: reads CONTEXT_KIT_SETTINGS_FILE;
|
|
8
|
+
# --fixture <dir> reads <dir>/settings.json and resolves paths against <dir>
|
|
9
|
+
set -uo pipefail
|
|
10
|
+
|
|
11
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
12
|
+
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
13
|
+
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
14
|
+
source "$SDK/lib/gate.sh"
|
|
15
|
+
|
|
16
|
+
_ck_cfg="${CONTEXT_KIT_CONFIG_FILE:-}"
|
|
17
|
+
if [[ -n "$_ck_cfg" ]]; then
|
|
18
|
+
[[ -f "$_ck_cfg" ]] || {
|
|
19
|
+
echo "context-kit: CONTEXT_KIT_CONFIG_FILE not found: $_ck_cfg" >&2
|
|
20
|
+
exit 2
|
|
21
|
+
}
|
|
22
|
+
# shellcheck source=/dev/null # consumer config path is resolved at runtime
|
|
23
|
+
source "$_ck_cfg"
|
|
24
|
+
else
|
|
25
|
+
_ck_cfg="${GATE_SDK_GATES_DIR:-scripts}/context-config.sh"
|
|
26
|
+
if [[ -f "$_ck_cfg" ]]; then
|
|
27
|
+
# shellcheck source=/dev/null # consumer config path is resolved at runtime
|
|
28
|
+
source "$_ck_cfg"
|
|
29
|
+
fi
|
|
30
|
+
fi
|
|
31
|
+
unset _ck_cfg
|
|
32
|
+
|
|
33
|
+
FIXTURE_DIR=""
|
|
34
|
+
while [[ $# -gt 0 ]]; do
|
|
35
|
+
case "$1" in
|
|
36
|
+
--fixture) FIXTURE_DIR="${2:-}"; shift 2 ;;
|
|
37
|
+
-*) echo "check-settings-paths: unknown argument: $1" >&2; exit 2 ;;
|
|
38
|
+
*) echo "check-settings-paths: unexpected argument: $1" >&2; exit 2 ;;
|
|
39
|
+
esac
|
|
40
|
+
done
|
|
41
|
+
|
|
42
|
+
if [[ -n "$FIXTURE_DIR" ]]; then
|
|
43
|
+
[[ -d "$FIXTURE_DIR" ]] || { echo "check-settings-paths: fixture dir not found: $FIXTURE_DIR" >&2; exit 2; }
|
|
44
|
+
SETTINGS_FILE="$FIXTURE_DIR/settings.json"
|
|
45
|
+
ROOT="$FIXTURE_DIR"
|
|
46
|
+
else
|
|
47
|
+
: "${CONTEXT_KIT_SETTINGS_FILE:=.claude/settings.json}"
|
|
48
|
+
SETTINGS_FILE="$CONTEXT_KIT_SETTINGS_FILE"
|
|
49
|
+
ROOT="."
|
|
50
|
+
fi
|
|
51
|
+
|
|
52
|
+
command -v jq >/dev/null 2>&1 || { echo "check-settings-paths: jq not found — cannot read $SETTINGS_FILE" >&2; exit 2; }
|
|
53
|
+
# spec: context-kit/SPEC.md §check-settings-paths — the settings file is the sole subject and the sibling gate reads it on the same terms, so an absent or unparseable one is fail-closed here too, never a clean skip
|
|
54
|
+
[[ -r "$SETTINGS_FILE" ]] || { echo "check-settings-paths: settings file not readable: $SETTINGS_FILE" >&2; exit 2; }
|
|
55
|
+
jq -e . "$SETTINGS_FILE" >/dev/null 2>&1 || { echo "check-settings-paths: $SETTINGS_FILE is not valid JSON" >&2; exit 2; }
|
|
56
|
+
|
|
57
|
+
entries="$(jq -r '.permissions.allow[]? | select(type == "string")' "$SETTINGS_FILE")"; st=$?
|
|
58
|
+
fail_closed "$st" check-settings-paths jq
|
|
59
|
+
|
|
60
|
+
dead=(); checked=0
|
|
61
|
+
while IFS= read -r entry; do
|
|
62
|
+
[[ -n "$entry" ]] || continue
|
|
63
|
+
[[ "$entry" == 'Bash('*')' ]] || continue
|
|
64
|
+
inner="${entry#Bash(}"; inner="${inner%)}"
|
|
65
|
+
# spec: context-kit/SPEC.md §check-settings-paths — `read -ra` splits without pathname
|
|
66
|
+
# expansion: an unquoted array assignment would expand a pattern grant against the tree
|
|
67
|
+
# and check an arbitrary first match, which greens the glob class instead of skipping it
|
|
68
|
+
read -r -a tok <<<"$inner"
|
|
69
|
+
i=0
|
|
70
|
+
# spec: context-kit/SPEC.md §check-settings-paths — the command token is not always argv[0]: a grant may lead with `env NAME=VALUE ...` before the interpreter, and one on this tree does
|
|
71
|
+
if [[ "${tok[0]:-}" == env ]]; then
|
|
72
|
+
i=1
|
|
73
|
+
while [[ "$i" -lt "${#tok[@]}" && "${tok[$i]}" == [A-Za-z_]*=* ]]; do i=$((i + 1)); done
|
|
74
|
+
fi
|
|
75
|
+
if [[ "${tok[$i]:-}" == bash || "${tok[$i]:-}" == sh ]]; then i=$((i + 1)); fi
|
|
76
|
+
cand="${tok[$i]:-}"
|
|
77
|
+
[[ "$cand" == *.sh ]] || continue
|
|
78
|
+
# spec: context-kit/SPEC.md §check-settings-paths — a `*` in the command token makes it a pattern, intentionally polymorphic over files that need not exist today; the `*` twin of a literal grant is a separate token and stays in scope
|
|
79
|
+
[[ "$cand" == *'*'* ]] && continue
|
|
80
|
+
checked=$((checked + 1))
|
|
81
|
+
[[ -f "$ROOT/$cand" ]] || dead+=("$entry — no such file: $cand")
|
|
82
|
+
done <<<"$entries"
|
|
83
|
+
|
|
84
|
+
if [[ ${#dead[@]} -gt 0 ]]; then
|
|
85
|
+
echo "check-settings-paths: $SETTINGS_FILE grants a path that does not resolve in the tree:"
|
|
86
|
+
printf ' %s\n' "${dead[@]}"
|
|
87
|
+
echo " help: repoint each entry at the path that replaced it, or drop the entry if the"
|
|
88
|
+
echo " grant is spent — a port that replaces checks/<gate>.sh with <gate>.gate"
|
|
89
|
+
echo " strands both the bare form and its '*' twin."
|
|
90
|
+
exit 1
|
|
91
|
+
fi
|
|
92
|
+
|
|
93
|
+
echo "SETTINGS-PATHS: clean ($checked literal .sh grant(s) in $SETTINGS_FILE resolve)"
|
|
94
|
+
exit 0
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=.claude/settings.json,scripts/settings-pins.conf dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: context-kit/SPEC.md §check-settings-pins — every pin in the pins file holds against the tracked harness settings file
|
|
4
5
|
#
|
|
5
6
|
# usage: check-settings-pins.sh [--fixture <dir>]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--fixture .
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(bash tools/real-tool.sh)",
|
|
5
|
+
"Bash(bash tools/removed-gate.sh)",
|
|
6
|
+
"Bash(bash tools/removed-gate.sh *)",
|
|
7
|
+
"Bash(env DEMO_FLAG=1 bash tools/removed-gate.sh)",
|
|
8
|
+
"Bash(bash */checks/check-*.sh)",
|
|
9
|
+
"Bash(git add *)"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--fixture .
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SETTINGS-PATHS: clean (4 literal .sh grant(s)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(bash tools/real-tool.sh)",
|
|
5
|
+
"Bash(bash tools/real-tool.sh *)",
|
|
6
|
+
"Bash(env DEMO_FLAG=1 bash tools/real-tool.sh)",
|
|
7
|
+
"Bash(bash tools/real-tool.sh --write)",
|
|
8
|
+
"Bash(bash tools/*.sh)",
|
|
9
|
+
"Bash(bash */checks/check-*.sh)",
|
|
10
|
+
"Bash(git add *)",
|
|
11
|
+
"Bash(shellcheck *)",
|
|
12
|
+
"Bash(: > .workflow/prompt-friction.log)",
|
|
13
|
+
"Bash(rm .tmp/*)"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -12,3 +12,12 @@ sort::coreutils | present (/usr/bin/sort) -> wrong-impl present
|
|
|
12
12
|
bash:4.0 | GNU bash, no version here -> uncomparable
|
|
13
13
|
bash:4.0:GNU | GNU bash, version 5.2.37(1)-release -> ok
|
|
14
14
|
bash:4.0:GNU | bosh, version 3.1 -> wrong-impl bosh,
|
|
15
|
+
cargo:1.56::contributor | cargo 1.86.0 (adbf5df3f 2026-01-01) -> ok
|
|
16
|
+
cargo:1.56::contributor | cargo 1.40.0 -> below 1.40.0 1.56
|
|
17
|
+
cargo:1.56::contributor -> audience=contributor contributor-only
|
|
18
|
+
cargo:::contributor -> audience=contributor contributor-only
|
|
19
|
+
awk::GNU:contributor -> audience=contributor contributor-only
|
|
20
|
+
cargo:1.56:: -> audience=<empty> consumer-side
|
|
21
|
+
cargo:1.56 -> audience=<empty> consumer-side
|
|
22
|
+
cargo -> audience=<empty> consumer-side
|
|
23
|
+
awk::GNU -> audience=<empty> consumer-side
|
|
@@ -22,8 +22,28 @@ cases=(
|
|
|
22
22
|
'bash:4.0|GNU bash, no version here'
|
|
23
23
|
'bash:4.0:GNU|GNU bash, version 5.2.37(1)-release'
|
|
24
24
|
'bash:4.0:GNU|bosh, version 3.1'
|
|
25
|
+
'cargo:1.56::contributor|cargo 1.86.0 (adbf5df3f 2026-01-01)'
|
|
26
|
+
'cargo:1.56::contributor|cargo 1.40.0'
|
|
25
27
|
)
|
|
26
28
|
|
|
27
29
|
for c in "${cases[@]}"; do
|
|
28
30
|
printf '%s | %s -> %s\n' "${c%%|*}" "${c#*|}" "$(tool_floor_check "${c%%|*}" "${c#*|}")"
|
|
29
31
|
done
|
|
32
|
+
|
|
33
|
+
# spec: context-kit/SPEC.md §Testing — the audience axis is pinned in its own table because no verdict reads it: these cases assert the fourth field's present, empty and omitted forms and the consumer-side predicate over each, the emptiness rule being the part a reader is likeliest to get wrong
|
|
34
|
+
audience_cases=(
|
|
35
|
+
'cargo:1.56::contributor'
|
|
36
|
+
'cargo:::contributor'
|
|
37
|
+
'awk::GNU:contributor'
|
|
38
|
+
'cargo:1.56::'
|
|
39
|
+
'cargo:1.56'
|
|
40
|
+
'cargo'
|
|
41
|
+
'awk::GNU'
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
for c in "${audience_cases[@]}"; do
|
|
45
|
+
tool_floor_parse "$c"
|
|
46
|
+
aud="$TOOL_FLOOR_AUDIENCE"
|
|
47
|
+
if tool_floor_consumer_side "$c"; then side="consumer-side"; else side="contributor-only"; fi
|
|
48
|
+
printf '%s -> audience=%s %s\n' "$c" "${aud:-<empty>}" "$side"
|
|
49
|
+
done
|
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
# shellcheck shell=bash
|
|
2
2
|
# spec: context-kit/SPEC.md §bin/env-probe — sourceable owner of the probe roster and its floor predicate; defines names and executes nothing, so a second reader obtains the roster by sourcing instead of grepping a script that does its work on execution
|
|
3
3
|
|
|
4
|
-
# spec: context-kit/SPEC.md §bin/env-probe — the roster, `<name>[:<min-version>[:<impl-token>]]`; a member gains a floor only where a construct the battery runs forces one, and the SPEC records that construct beside the token
|
|
4
|
+
# spec: context-kit/SPEC.md §bin/env-probe — the roster, `<name>[:<min-version>[:<impl-token>[:<audience>]]]`; a member gains a floor only where a construct the battery runs forces one, and the SPEC records that construct beside the token
|
|
5
5
|
# shellcheck disable=SC2034 # read by whoever sources this file (bin/env-probe.sh), never here
|
|
6
|
-
PROBE_SET=(bash:4.3 git jq awk::GNU sort::coreutils shellcheck cargo:1.56)
|
|
6
|
+
PROBE_SET=(bash:4.3 git jq awk::GNU sort::coreutils shellcheck cargo:1.56::contributor)
|
|
7
7
|
|
|
8
|
-
# spec: context-kit/SPEC.md §bin/env-probe — positional fields, an empty field meaning unconstrained on that axis exactly as an omitted trailing one does, so `awk`, `awk
|
|
9
|
-
tool_floor_parse() { # $1 = roster element -> TOOL_FLOOR_NAME / _MIN / _IMPL
|
|
8
|
+
# spec: context-kit/SPEC.md §bin/env-probe — positional fields, an empty field meaning unconstrained on that axis exactly as an omitted trailing one does, so `awk`, `awk:`, `awk::` and `awk:::` parse to one member
|
|
9
|
+
tool_floor_parse() { # $1 = roster element -> TOOL_FLOOR_NAME / _MIN / _IMPL / _AUDIENCE
|
|
10
10
|
local elem="$1" rest
|
|
11
11
|
TOOL_FLOOR_NAME="${elem%%:*}"
|
|
12
12
|
rest="${elem#"$TOOL_FLOOR_NAME"}"
|
|
13
13
|
rest="${rest#:}"
|
|
14
14
|
TOOL_FLOOR_MIN="${rest%%:*}"
|
|
15
15
|
TOOL_FLOOR_IMPL=""
|
|
16
|
+
TOOL_FLOOR_AUDIENCE=""
|
|
16
17
|
if [[ "$rest" == *:* ]]; then
|
|
17
18
|
rest="${rest#*:}"
|
|
18
19
|
TOOL_FLOOR_IMPL="${rest%%:*}"
|
|
20
|
+
if [[ "$rest" == *:* ]]; then
|
|
21
|
+
rest="${rest#*:}"
|
|
22
|
+
TOOL_FLOOR_AUDIENCE="${rest%%:*}"
|
|
23
|
+
fi
|
|
19
24
|
fi
|
|
20
25
|
}
|
|
21
26
|
|
|
27
|
+
# spec: context-kit/SPEC.md §bin/env-probe — the audience predicate: `contributor` is the only declarable value and an empty field means every audience, so a consumer-side reader asks this instead of re-implementing the emptiness rule against a value set it does not own
|
|
28
|
+
tool_floor_consumer_side() { # $1 = roster element -> 0 when the member is part of the consumer-side floor
|
|
29
|
+
tool_floor_parse "$1"
|
|
30
|
+
[[ "$TOOL_FLOOR_AUDIENCE" != contributor ]]
|
|
31
|
+
}
|
|
32
|
+
|
|
22
33
|
tool_floor_version() { # $1 = version banner -> its first dotted-version token, empty when it carries none
|
|
23
34
|
[[ "$1" =~ ([0-9]+(\.[0-9]+)+) ]] && printf '%s' "${BASH_REMATCH[1]}"
|
|
24
35
|
}
|
|
@@ -36,7 +36,7 @@ cleanup() {
|
|
|
36
36
|
}
|
|
37
37
|
trap cleanup EXIT
|
|
38
38
|
|
|
39
|
-
csmoke_vendor_and_install "${roots[@]}" || exit 2
|
|
39
|
+
csmoke_vendor_and_install "$(dirname "$SDK")" "${roots[@]}" || exit 2
|
|
40
40
|
|
|
41
41
|
# comment-tier-exempt: the installers write the consumer's agent file as CLAUDE.md; the smoke converts it to AGENTS.md and points each kit's agent-file knob at it, as an AGENTS.md adopter would
|
|
42
42
|
[[ -f "$SCRATCH/CLAUDE.md" ]] || fail "the installed baseline wrote no CLAUDE.md to convert"
|
|
@@ -74,6 +74,17 @@ battery_env=(
|
|
|
74
74
|
CANON_KIT_CONFIG_FILE="scripts/canon-config.sh"
|
|
75
75
|
)
|
|
76
76
|
|
|
77
|
+
# spec: gate-sdk/SPEC.md §gen-pre-commit — each kit's own install.sh already wrote the hook
|
|
78
|
+
# and CHECK-GRAPH.html, but that write ran before canon-config.sh existed, so the baked
|
|
79
|
+
# '# graph:' derivation used canon-kit's bare default rather than the AGENTS.md-widened
|
|
80
|
+
# manifest set battery_env now carries. Regenerate under the same env the battery runs
|
|
81
|
+
# with, or check-graph reds the AGENTS.md consumer on a hook stale by construction.
|
|
82
|
+
( cd "$SCRATCH" && env "${battery_env[@]}" bash gate-sdk/bin/gen-pre-commit.sh --write >/dev/null )
|
|
83
|
+
( cd "$SCRATCH" && env "${battery_env[@]}" bash gate-sdk/checks/check-graph.sh --emit > scripts/CHECK-GRAPH.html )
|
|
84
|
+
git -C "$SCRATCH" add -A
|
|
85
|
+
git -C "$SCRATCH" -c user.email=smoke@example.invalid -c user.name=smoke \
|
|
86
|
+
commit -q --no-verify -m "regenerate the hook + graph artifact under the AGENTS.md config"
|
|
87
|
+
|
|
77
88
|
run_battery() { ( cd "$SCRATCH" && env "${battery_env[@]}" bash gate-sdk/bin/run-gates.sh ) 2>&1; }
|
|
78
89
|
|
|
79
90
|
out="$(run_battery)"; rc=$?
|
|
@@ -49,9 +49,9 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
|
|
|
49
49
|
verdict call refreshes the snapshot on demand (or wire the same poller under
|
|
50
50
|
a timer), keeping it fresh while a supervising session sits static, or
|
|
51
51
|
have any producer honour the snapshot contract (SPEC §The usage.txt contract).
|
|
52
|
-
The statusline producer also renders a status bar
|
|
53
|
-
|
|
54
|
-
supplying the optional weekly keys arms the second (7-day) pause axis.
|
|
52
|
+
The statusline producer also renders a status bar, whose field set is
|
|
53
|
+
SPEC §The statusline template's; the three mandatory snapshot lines are the
|
|
54
|
+
floor, and supplying the optional weekly keys arms the second (7-day) pause axis.
|
|
55
55
|
|
|
56
56
|
4. Optional — wire the Agent budget guard: copy `templates/agent-budget-guard.sh`
|
|
57
57
|
into your gates dir and register it under `PreToolUse` matcher `Agent` in
|