checkwright 0.24.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 +25 -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 +3 -0
- 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 +4 -0
- 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/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/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 +14 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +4 -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 +21 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.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 +110 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +63 -27
- 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 -59
- 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 -372
- 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 +47 -73
- package/payload/gate-sdk/bin/build-native.sh +89 -1
- package/payload/gate-sdk/bin/run-gates.ps1 +266 -0
- package/payload/gate-sdk/bin/run-gates.sh +60 -182
- 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 +3 -0
- 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 +4 -0
- 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/bad/expect.txt +5 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +30 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/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 +6 -2
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-nospec.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-ungrounded.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.knobs +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +8 -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 +6 -2
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kit-spec.md +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +1 -0
- 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 +6 -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/bad/tree/multi.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +7 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +5 -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/good/tree/msg-patterns.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +133 -0
- 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 -46
- 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 +75 -17
- 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 +23 -0
- package/payload/guard-kit/guard-tests/cases.tsv +374 -38
- 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 -55
- 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 -423
- 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 -2129
- 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/lib/spec.sh +0 -544
- package/payload/canon-kit/smoke/install.sh +0 -56
- 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 -1123
- 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 -1712
- 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/lib/delegation.sh +0 -84
- package/payload/delegation-kit/smoke/install.sh +0 -63
- 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/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 -10138
- 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-assertions.sh +0 -149
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +0 -397
- 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/checks/check-tree-terms.sh +0 -67
- 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 -148
- package/payload/gate-sdk/smoke/violation.sh +0 -13
- package/payload/guard-kit/SPEC.md +0 -1063
- package/payload/guard-kit/bin/compare-settings-allow.sh +0 -91
- package/payload/guard-kit/bin/run-guard-tests.sh +0 -92
- 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 -835
- package/payload/guard-kit/smoke/install.sh +0 -26
- package/payload/guard-kit/templates/bash-guard.sh +0 -18
- package/payload/guard-kit/templates/escalation-guard.sh +0 -27
- package/payload/guard-kit/templates/guard-config.sh +0 -5
- 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 -1358
- 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 -589
- 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
|
@@ -4,33 +4,64 @@
|
|
|
4
4
|
# Every generic rule (guard-kit/SPEC.md §The generic ruleset) has a firing + a
|
|
5
5
|
# non-firing case. Columns are tab-separated; # and blank lines are ignored.
|
|
6
6
|
|
|
7
|
-
# rule
|
|
7
|
+
# rule `cd_compound` — cd in a compound command
|
|
8
8
|
block cd deploy && ls
|
|
9
9
|
fallthrough cd deploy
|
|
10
10
|
|
|
11
|
-
# rule
|
|
11
|
+
# rule `git_c_root` — a prefix spelling that falls off the match path: (a) git -C <repo-root>
|
|
12
|
+
# when cwd is the root, (b) a git -c config override among git's global
|
|
13
|
+
# options, (c) an absolute spelling of a wrapper the matcher strips. A
|
|
14
|
+
# quoted mention and a wrapper path in argument position are not the command
|
|
12
15
|
block git -C @ROOT@ status --short
|
|
13
16
|
fallthrough git -C @ROOT@/sub status
|
|
17
|
+
block git -c core.pager=cat log --oneline -3
|
|
18
|
+
block git --no-pager -c color.ui=never diff
|
|
19
|
+
fallthrough git log --oneline -3
|
|
20
|
+
fallthrough git commit -m 'drop git -c core.pager=cat'
|
|
21
|
+
block /usr/bin/time -f %e make build
|
|
22
|
+
block make lint && /usr/bin/nice -n 5 make build
|
|
23
|
+
fallthrough time make build
|
|
24
|
+
fallthrough file /usr/bin/time
|
|
14
25
|
|
|
15
|
-
# rule
|
|
26
|
+
# rule `git_c_root`'s arm (d) — an export, leading assignment or env prefix setting a kit
|
|
27
|
+
# knob to the value it already resolves to. The sandbox exports the
|
|
28
|
+
# binary knob absolute, so a knob resolving to its default is used; a
|
|
29
|
+
# differing value, an environment-only setting and a non-knob fall through
|
|
30
|
+
block export GATE_SDK_WORKFLOW_DIR=.workflow && make build
|
|
31
|
+
block GATE_SDK_WORKFLOW_DIR=.workflow make build
|
|
32
|
+
block env GATE_SDK_WORKFLOW_DIR=.workflow make build
|
|
33
|
+
fallthrough GATE_SDK_WORKFLOW_DIR=elsewhere make build
|
|
34
|
+
fallthrough GATE_SDK_JOBS=1 make build
|
|
35
|
+
fallthrough FOO=bar make build
|
|
36
|
+
|
|
37
|
+
# rule `scratch_redirect` — bare-name scratch redirect
|
|
16
38
|
block some-runner 2> op.err
|
|
17
39
|
fallthrough some-runner 2> .tmp/op.err
|
|
18
40
|
|
|
19
|
-
# rule
|
|
41
|
+
# rule `abs_script` — absolute-path read-only repo script (rewrite) vs other script (block).
|
|
42
|
+
# The rewrite emits allow, so it attaches only when the rewritten command
|
|
43
|
+
# is allowlisted (the sandbox carries both script globs) and stays inside
|
|
44
|
+
# rule `grant_path_slot`'s path slots; otherwise the corrective block fires, for an
|
|
45
|
+
# unallowlisted scratch script and for a runner glob reached past its slot
|
|
20
46
|
rewrite bash @ROOT@/scripts/check-foo.sh
|
|
21
47
|
rewrite @ROOT@/scripts/check-env.sh --list
|
|
22
48
|
block bash @ROOT@/scripts/gen-configs.sh
|
|
49
|
+
block bash @ROOT@/.tmp/check-evil.sh
|
|
50
|
+
block bash @ROOT@/../evil/checks/check-x.sh
|
|
23
51
|
|
|
24
|
-
# rule
|
|
52
|
+
# rule `abs_prefix` — repo-root absolute prefix (non-script) steered; foreign path untouched.
|
|
25
53
|
# The rule declares 'sq dq hd', so a path merely *named* — quoted either
|
|
26
54
|
# way, or sitting in a heredoc body — is not the executable command.
|
|
27
55
|
block python3 @ROOT@/tools/report.py
|
|
28
56
|
fallthrough python3 /other/repo/tools/report.py
|
|
29
57
|
fallthrough printf '%s' 'the path @ROOT@/tools/report.py is steered'
|
|
30
58
|
fallthrough printf '%s' "the path @ROOT@/tools/report.py is steered"
|
|
31
|
-
|
|
59
|
+
# The heredoc row lands on `allow` rather than `fallthrough` because
|
|
60
|
+
# rule `append_scratch`'s create grant reaches it fourteen rules later; a rule `abs_prefix`
|
|
61
|
+
# regression would still read `block`, which is what this row asserts.
|
|
62
|
+
allow cat <<'EOF' > .tmp/note.md@NL@the path @ROOT@/tools/report.py is steered@NL@EOF
|
|
32
63
|
|
|
33
|
-
# rule
|
|
64
|
+
# rule `expansion` — shell expansion / assignment; single-quoted $ stays literal.
|
|
34
65
|
# 'sq' only: a double-quoted "$x" expands, and so does an
|
|
35
66
|
# unquoted-delimiter heredoc body — the stated bound on the hd class.
|
|
36
67
|
block echo $(pwd)
|
|
@@ -39,32 +70,80 @@ fallthrough awk '$1' data.txt
|
|
|
39
70
|
# 'hdq': an unquoted delimiter expands, so its body stays live; a quoted one
|
|
40
71
|
# cannot expand, and the shell is what guarantees that — so its body is inert
|
|
41
72
|
block cat <<EOF > .tmp/n.md@NL@value is $(date)@NL@EOF
|
|
42
|
-
|
|
43
|
-
# reaches rule
|
|
44
|
-
# point is that rule
|
|
73
|
+
allow cat <<'EOF' > .tmp/n.md@NL@value is $(date)@NL@EOF
|
|
74
|
+
# reaches rule `git_rewrite`'s advisory, which is the correct verdict for a commit -F; the
|
|
75
|
+
# point is that rule `expansion` no longer blocks it before rule `git_rewrite` is ever consulted
|
|
45
76
|
advise git commit -F - <<'MSG'@NL@names a $(cmd) in the body@NL@MSG
|
|
46
77
|
|
|
47
|
-
# rule
|
|
78
|
+
# rule `brace_glyph` — unquoted brace glyph: bare {} placeholder rewritten, expansions blocked.
|
|
48
79
|
# 'sq dq hd': '{' is a matcher glyph, not an expansion, so a
|
|
49
80
|
# double-quoted quantifier and a heredoc-body brace are both inert —
|
|
50
81
|
# the corrective (spell the members) is inapplicable to either.
|
|
51
|
-
rewrite
|
|
82
|
+
# The placeholder rewrite emits allow, so it attaches only when the
|
|
83
|
+
# rewritten command is allowlisted and stays inside rule `grant_path_slot`'s path slots;
|
|
84
|
+
# an unallowlisted and an unbounded placeholder block with the quoted-
|
|
85
|
+
# spelling corrective instead
|
|
86
|
+
block find . -exec rm {} \;
|
|
87
|
+
block ls | xargs -I{} rm {}
|
|
88
|
+
rewrite find .tmp/x -exec cat {} +
|
|
89
|
+
block find .tmp/../x -exec cat {} +
|
|
52
90
|
block git log @{u}..
|
|
53
91
|
block echo {1..5}
|
|
54
92
|
block mkdir -p a/{b,c}
|
|
55
93
|
fallthrough awk '{print $1}'
|
|
56
94
|
fallthrough find . -exec grep foo '{}' +
|
|
57
95
|
allow grep -rnE "^[a-z]{2,}" src
|
|
58
|
-
|
|
96
|
+
allow cat <<'EOF' > .tmp/note.md@NL@a brace {a,b} in prose@NL@EOF
|
|
59
97
|
block cat <<'EOF' > a/{b,c}/note.md@NL@prose@NL@EOF
|
|
60
98
|
|
|
61
|
-
# rule
|
|
99
|
+
# rule `sed_file` — sed or awk reading a file, or sed rewriting one; a piped-into sed is a
|
|
100
|
+
# filter. awk fires on two read shapes, each with one file operand and no
|
|
101
|
+
# pipe into the segment — a line range (steered to Read) and a markdown
|
|
102
|
+
# heading range (steered to the section extractor); a transform, a
|
|
103
|
+
# single-regex filter, a program file, a non-.md range, a second operand
|
|
104
|
+
# and a piped-into awk all pass. perl fires on an in-place bundle with at
|
|
105
|
+
# least one file operand, a sweep or a glob included; perl -pi reading
|
|
106
|
+
# stdin, an xargs-led perl, an unmodelled perl option and a perl without
|
|
107
|
+
# the in-place flag all pass, and so does the --rewrite arm both steer to
|
|
62
108
|
block sed -n '1,60p' TASK-QUEUE.md
|
|
63
109
|
block sed -i 's/a/b/' notes.md
|
|
64
110
|
fallthrough sed -E 's/a/b/'
|
|
65
111
|
fallthrough grep foo file | sed -e s/a/b/
|
|
112
|
+
block awk 'NR>=10 && NR<=40' TASK-QUEUE.md
|
|
113
|
+
block awk -F: 'NR==5,NR==9 { print $0 }' notes.txt
|
|
114
|
+
block awk '/^## Layout/,/^## Testing/' SPEC.md
|
|
115
|
+
block awk 'NR<=5' notes.txt | head -3
|
|
116
|
+
fallthrough awk 'NR>=10 && NR<=40 {print $2}' notes.txt
|
|
117
|
+
fallthrough awk '/needle/' notes.txt
|
|
118
|
+
fallthrough awk '/^## Layout/,/^## Testing/' notes.txt
|
|
119
|
+
fallthrough awk -f prog.awk notes.txt
|
|
120
|
+
fallthrough awk 'NR<=5' a.txt b.txt
|
|
121
|
+
fallthrough grep -n foo notes.txt | awk 'NR<=5' notes.txt
|
|
122
|
+
fallthrough awk -W posix 'NR<=5' notes.txt
|
|
123
|
+
block perl -pi -e 's/a/b/' notes.md
|
|
124
|
+
block perl -0pi -e 's/a/b/' notes.md
|
|
125
|
+
block perl -i.bak -pe 's/a/b/' notes.md
|
|
126
|
+
block perl -pi -e 's/a/b/' a.md b.md
|
|
127
|
+
block perl -pi -e 's/a/b/' src/*.rs
|
|
128
|
+
fallthrough grep -rl foo src | xargs perl -pi -e s/a/b/
|
|
129
|
+
fallthrough perl -pi -e 's/a/b/'
|
|
130
|
+
fallthrough perl -I lib -pi -e 's/a/b/' notes.md
|
|
131
|
+
fallthrough perl -ne 'print if /x/' notes.md
|
|
132
|
+
fallthrough bash gate-sdk/bin/run-gates.sh --rewrite --regex 'a|b' 'c' notes.md
|
|
133
|
+
# rule `sed_file`'s python arm — an inline body (a quoted heredoc feeding stdin, or a -c argument) that is a
|
|
134
|
+
# literal rewrite; a computed replacement, an import, a read-only body, a '$' in an
|
|
135
|
+
# unquoted-delimiter body and a module run all pass
|
|
136
|
+
block python3 - <<'PY'@NL@p = 'notes.md'@NL@s = open(p).read()@NL@assert s.count('old') == 1@NL@s = s.replace('old', 'new')@NL@open(p, 'w').write(s)@NL@PY
|
|
137
|
+
block python3 - <<'PY'@NL@def sub(p, o, n):@NL@ s = open(p).read()@NL@ assert s.count(o) == 1@NL@ open(p, 'w').write(s.replace(o, n))@NL@sub('a.md', 'x', 'y')@NL@PY
|
|
138
|
+
block python3 -c "p='notes.md'; s=open(p).read(); open(p,'w').write(s.replace('a', 'b'))"
|
|
139
|
+
fallthrough python3 - <<'PY'@NL@p = 'notes.md'@NL@s = open(p).read()@NL@open(p, 'w').write(s.replace('a', f'{p}'))@NL@PY
|
|
140
|
+
fallthrough python3 - <<'PY'@NL@s = open('n.md').read()@NL@open('n.md', 'w').write(re.sub('a', 'b', s).replace('c', 'd'))@NL@PY
|
|
141
|
+
fallthrough python3 - <<'PY'@NL@import json@NL@s = open('n.md').read()@NL@open('n.md', 'w').write(s.replace('a', 'b'))@NL@PY
|
|
142
|
+
fallthrough python3 - <<'PY'@NL@s = open('n.md').read()@NL@print(s.replace('a', 'b'))@NL@PY
|
|
143
|
+
fallthrough python3 - <<PY@NL@s = open('n.md').read()@NL@open('n.md', 'w').write(s.replace('cost $5', 'b'))@NL@PY
|
|
144
|
+
fallthrough python3 -m json.tool notes.json
|
|
66
145
|
|
|
67
|
-
# rule
|
|
146
|
+
# rule `find_glob` — listing-only find steered to Glob, alone or as a ';'-batch of listings
|
|
68
147
|
# (a literal banner between them is fine); action-predicate / piped /
|
|
69
148
|
# redirected / mixed forms untouched
|
|
70
149
|
block find lib -type f
|
|
@@ -77,11 +156,11 @@ fallthrough find src -type f -exec grep -q foo '{}' ';'
|
|
|
77
156
|
allow find . -type f | head
|
|
78
157
|
fallthrough find . -type f > listing.txt
|
|
79
158
|
|
|
80
|
-
# rule
|
|
159
|
+
# rule `cat_file` — bare single-file cat steered to Read, alone or as a ';'-batch of reads
|
|
81
160
|
# (a literal echo/printf banner between reads is fine); multi-file, piped,
|
|
82
161
|
# redirected, &&-chained, mixed, and banner-only forms are composition and pass
|
|
83
162
|
block cat TASK-QUEUE.md
|
|
84
|
-
block cat -n guard-kit/
|
|
163
|
+
block cat -n guard-kit/SPEC.md
|
|
85
164
|
block cat a.md; cat b.md
|
|
86
165
|
block cat a.md; echo ===; cat b.md
|
|
87
166
|
fallthrough cat a.md; find lib -type f
|
|
@@ -89,9 +168,9 @@ fallthrough cat a.md && cat b.md
|
|
|
89
168
|
fallthrough echo a; echo b
|
|
90
169
|
allow cat one.md two.md
|
|
91
170
|
allow cat notes.md | wc -l
|
|
92
|
-
|
|
171
|
+
allow cat header.md > .tmp/combined.md
|
|
93
172
|
|
|
94
|
-
# rule
|
|
173
|
+
# rule `git_grep` — working-tree git grep steered to Grep (a path-limited `-- <path>`
|
|
95
174
|
# search is still the working tree); a revision or --cached passes
|
|
96
175
|
block git grep foo
|
|
97
176
|
block git grep -i TODO
|
|
@@ -99,24 +178,35 @@ block git grep needle -- src
|
|
|
99
178
|
fallthrough git grep foo HEAD
|
|
100
179
|
fallthrough git grep --cached foo
|
|
101
180
|
|
|
102
|
-
# rule
|
|
103
|
-
# command's own text
|
|
104
|
-
#
|
|
105
|
-
#
|
|
181
|
+
# rule `pgrep_self_match` — self-matching process-liveness predicate: a `pgrep -f` pattern that
|
|
182
|
+
# matches the command's own text can never go false, since `-f` scans the
|
|
183
|
+
# harness wrapper's argv, which carries the whole command. A `pgrep`
|
|
184
|
+
# without `-f`, `-x`/`-v`, and a pattern that does not match its own
|
|
185
|
+
# text pass.
|
|
106
186
|
block bash run-smoke.sh & until ! pgrep -f run-smoke.sh; do sleep 5; done
|
|
107
187
|
block pkill -f run-smoke.sh; bash run-smoke.sh
|
|
108
|
-
|
|
188
|
+
block pgrep -f run-smoke.sh
|
|
189
|
+
block while pgrep -f 'checkwright-gates --run-validate'; do sleep 5; done
|
|
190
|
+
block if pgrep -f worker; then echo up; fi
|
|
191
|
+
block bash run.sh; pgrep -if 'R[U]N'
|
|
192
|
+
fallthrough bash run.sh; pgrep -f 'R[U]N'
|
|
109
193
|
fallthrough pgrep run-smoke.sh; bash run-smoke.sh
|
|
194
|
+
fallthrough until ! pgrep -f '[r]un-smoke.sh'; do sleep 5; done
|
|
195
|
+
fallthrough pgrep -xf run-smoke.sh
|
|
110
196
|
|
|
111
|
-
# rule
|
|
197
|
+
# rule `bare_sleep` — bare foreground sleep steered to a condition wait. The non-firing
|
|
112
198
|
# cases are the load-bearing ones: a sleep inside an `until … do … done`
|
|
113
|
-
# loop *is* the sanctioned form, and a quoted mention is inert.
|
|
199
|
+
# loop *is* the sanctioned form, and a quoted mention is inert. Both
|
|
200
|
+
# are `allow` rather than `fallthrough` because a later auto-allow
|
|
201
|
+
# grants them outright — rule `append_scratch` the append, rule `bounded_wait` the wait — and
|
|
202
|
+
# each still proves rule `bare_sleep` inert, since a block exits 2 at rule `bare_sleep` and
|
|
203
|
+
# never reaches an auto-allow six rules later.
|
|
114
204
|
block sleep 30
|
|
115
205
|
block sleep 180; echo waited
|
|
116
|
-
|
|
117
|
-
|
|
206
|
+
allow until grep -q DONE .tmp/smoke.log; do sleep 5; done
|
|
207
|
+
allow printf 'sleep 5' >> .tmp/note.txt
|
|
118
208
|
|
|
119
|
-
# rule
|
|
209
|
+
# rule `git_mutation_under_producer` — tracked-tree mutation under a live producer. The sandbox's only
|
|
120
210
|
# `*.run` record names a dead pid and a non-record file sits beside
|
|
121
211
|
# it, so every mutating form below declines: the rule's second
|
|
122
212
|
# conjunct is a *live* record, and read-only git never reaches it at
|
|
@@ -127,19 +217,67 @@ fallthrough git stash
|
|
|
127
217
|
fallthrough git -C . commit -m done
|
|
128
218
|
fallthrough git rev-parse HEAD
|
|
129
219
|
|
|
130
|
-
# rule
|
|
220
|
+
# rule `background_no_record` — a backgrounded launch that records no producer is blocked. The
|
|
221
|
+
# shell `&` arm lives here because it *is* command text; the harness
|
|
222
|
+
# flag is tool input and cannot be written in this grammar, so that
|
|
223
|
+
# arm lives in background-cases.tsv.
|
|
224
|
+
block bash worker.sh &
|
|
225
|
+
fallthrough bash worker.sh & printf 'pid=1 run=worker\n' > .tmp/worker.run
|
|
226
|
+
# exemption (3) reads rule `ro_pipeline`'s declared forms: a backgrounded pipeline writing
|
|
227
|
+
# through a member's own option owns work a commit could corrupt
|
|
228
|
+
block grep -rn foo src | sort -o out.txt &
|
|
229
|
+
fallthrough grep -rn foo src | head &
|
|
230
|
+
# '|&' pipes stderr too and backgrounds nothing
|
|
231
|
+
fallthrough make build |& tail -5
|
|
232
|
+
|
|
233
|
+
# rule `truncate_scratch` — `: > file` truncation auto-allowed iff every target is gitignored
|
|
131
234
|
allow : > scratch.txt
|
|
132
235
|
fallthrough : > tracked.txt
|
|
133
236
|
|
|
134
|
-
# rule
|
|
237
|
+
# rule `append_scratch` — a write to gitignored targets auto-allowed, create and append alike.
|
|
238
|
+
# The clauses each get their refusing case, because each is what keeps
|
|
239
|
+
# the grant from blessing something the redirect alone would: (b) a
|
|
240
|
+
# target outside the ignore set, (c) a leading command that writes
|
|
241
|
+
# somewhere other than its stdout, and the single-statement half of
|
|
242
|
+
# (c) — a second statement on a line of its own, which is what the
|
|
243
|
+
# heredoc residue must never be confused with.
|
|
244
|
+
# Targets are relative, as rules `scratch_redirect` and `truncate_scratch`'s are: the runner drives the
|
|
245
|
+
# guard from inside the sandbox, and an `@ROOT@`-absolute target would
|
|
246
|
+
# meet rule `abs_prefix`'s repo-root-prefix block nine rules earlier.
|
|
247
|
+
# A refused write still reaching rule `emitter_write` reads `block` there rather than
|
|
248
|
+
# `fallthrough`: what these rows assert is that rule `append_scratch` did not grant.
|
|
249
|
+
allow cat >> .tmp/journal.md <<'EOF'@NL@line@NL@EOF
|
|
250
|
+
allow cat > .tmp/journal.md <<'EOF'@NL@line@NL@EOF
|
|
251
|
+
block cat >> tracked.md <<'EOF'@NL@line@NL@EOF
|
|
252
|
+
fallthrough rm -rf .tmp/x >> .tmp/journal.md
|
|
253
|
+
block printf x >> .tmp/journal.md@NL@rm -rf .tmp/x
|
|
254
|
+
# (d)'s region test is `hdq`, not the raw command: a backtick in a QUOTED
|
|
255
|
+
# delimiter's body cannot substitute, so the grant reaches the shape the mandated
|
|
256
|
+
# journal append is always spelled in; an UNQUOTED delimiter leaves the body live
|
|
257
|
+
# and the decline still fires. Nothing else distinguishes the two at the grant
|
|
258
|
+
# boundary, so these two rows are the whole holder of the asymmetry.
|
|
259
|
+
allow cat >> .tmp/journal.md <<'EOF'@NL@a `slug` in prose@NL@EOF
|
|
260
|
+
fallthrough cat >> .tmp/journal.md <<EOF@NL@a `slug` in prose@NL@EOF
|
|
261
|
+
# the create half rests on rule `truncate_scratch`: `: > f` and then `cat >> f` are each already
|
|
262
|
+
# granted, so a create adds one permission decision and no capability. Every
|
|
263
|
+
# other clause still holds — a tracked target refuses on the per-target ignore
|
|
264
|
+
# test the append case takes, which is the row that would catch an over-wide grant
|
|
265
|
+
allow printf 'x' > .tmp/note.txt
|
|
266
|
+
block cat > tracked.md <<'EOF'@NL@line@NL@EOF
|
|
267
|
+
# the two inert targets are exempt from (a) and (b): neither is a file the
|
|
268
|
+
# append-only split protects, and neither is a path git check-ignore can answer
|
|
269
|
+
allow printf 'x@NL@' >> .tmp/journal.md 2>/dev/null
|
|
270
|
+
allow cat >> .tmp/journal.md 2>&1
|
|
271
|
+
|
|
272
|
+
# rule `ro_pipeline` — read-only pipeline auto-allow; a non-roster segment falls through
|
|
135
273
|
allow grep -rn foo src | head
|
|
136
274
|
fallthrough grep foo file | awk '{print}'
|
|
137
|
-
# banner tolerance (rules
|
|
275
|
+
# banner tolerance (rules `find_glob` and `cat_file`'s): a literal echo/printf
|
|
138
276
|
# segment is skipped, but at least one roster read must remain
|
|
139
277
|
allow echo === | grep foo src
|
|
140
278
|
fallthrough echo a | echo b
|
|
141
|
-
# widened lead:
|
|
142
|
-
# but only where something decorates it, so the undecorated form (rule
|
|
279
|
+
# widened lead: the bare form of a committed allow entry may lead, since it was reviewed —
|
|
280
|
+
# but only where something decorates it, so the undecorated form (rule `allowlist_chain`'s
|
|
143
281
|
# 'fallthrough git status' below) is still never intercepted here
|
|
144
282
|
allow git status | head
|
|
145
283
|
allow git status | head -20
|
|
@@ -155,8 +293,94 @@ fallthrough find . -type f | xargs rm -rf
|
|
|
155
293
|
fallthrough grep -rln foo src | xargs sed -i s/a/b/
|
|
156
294
|
block ls | xargs chmod 777
|
|
157
295
|
block ls | xargs xargs rm
|
|
296
|
+
# declared forms: a roster member is read-only only in none of its declared write
|
|
297
|
+
# and execute forms (the kit's table here; a consumer's entries are the knob
|
|
298
|
+
# test's lane). Each refusing row is a write the leads-with test alone granted:
|
|
299
|
+
# an option in its long, abbreviated, clustered and quoted spellings, uniq's output
|
|
300
|
+
# positional, find's write predicates, rg's preprocessor, and the command xargs runs
|
|
301
|
+
fallthrough grep foo a.md | sort -o out.txt
|
|
302
|
+
fallthrough grep foo a.md | sort --output=out.txt
|
|
303
|
+
fallthrough grep foo a.md | sort --outp=out.txt
|
|
304
|
+
fallthrough grep foo a.md | sort -uo out.txt
|
|
305
|
+
fallthrough grep foo a.md | sort '-o' out.txt
|
|
306
|
+
allow grep foo a.md | sort -u
|
|
307
|
+
fallthrough sort a.txt | uniq -c in.txt out.txt
|
|
308
|
+
allow sort a.txt | uniq -c
|
|
309
|
+
fallthrough find . -type f -fprint out.txt
|
|
310
|
+
fallthrough find . -type f -fprint out.txt | head
|
|
311
|
+
fallthrough rg --pre=cat foo src | head
|
|
312
|
+
allow rg foo src | head
|
|
313
|
+
fallthrough find . -type f | xargs sort -o out.txt
|
|
314
|
+
fallthrough find . -name '*.txt' | xargs uniq
|
|
158
315
|
|
|
159
|
-
# rule
|
|
316
|
+
# rule `bounded_wait` — a sanctioned wait auto-allowed. Arm (A), the bounded in-turn wait: the
|
|
317
|
+
# grant rows are the two of the four measured calls it is shaped to
|
|
318
|
+
# cover, both compounds; the refusing rows are one per clause, so no
|
|
319
|
+
# clause can be deleted without a red. The two named non-targets (`pgrep`
|
|
320
|
+
# and `gh` as conditions) are clause (c)'s refusals and are declined on
|
|
321
|
+
# purpose. Arm (B), the recorded launch, follows arm (A)'s rows.
|
|
322
|
+
allow until grep -q DONE .tmp/smoke.log; do sleep 20; done; echo waited
|
|
323
|
+
allow until grep -q DONE .tmp/smoke.log 2>/dev/null; do sleep 30; done; grep -n ERR .tmp/smoke.log
|
|
324
|
+
# the literal-PID liveness wait rule `bare_sleep`'s corrective now spells, in both
|
|
325
|
+
# polarities — the form the ruleset steers toward, granted rather than prompted
|
|
326
|
+
allow while kill -0 2147483646 2>/dev/null; do sleep 5; done
|
|
327
|
+
allow until ! kill -0 2147483646 2>/dev/null; do sleep 5; done
|
|
328
|
+
allow until [ -f .tmp/marker ]; do sleep 10; done
|
|
329
|
+
# clause (0) — a statement-ending `&` is a launch, not a wait, whatever else the
|
|
330
|
+
# command does. Rule `background_no_record` exempts the wait loop, so this row reaches rule `bounded_wait` and
|
|
331
|
+
# is refused there rather than by an earlier rule's ordering
|
|
332
|
+
fallthrough until grep -q DONE .tmp/smoke.log; do sleep 5; done &
|
|
333
|
+
# clause (a) — the first statement is not the loop
|
|
334
|
+
fallthrough echo start; until grep -q DONE .tmp/smoke.log; do sleep 5; done
|
|
335
|
+
# clause (b) — the body runs something besides sleep
|
|
336
|
+
fallthrough until grep -q DONE .tmp/smoke.log; do grep -c x .tmp/smoke.log; sleep 5; done
|
|
337
|
+
# clause (c) — the two stated non-targets: a pattern match where a PID belongs,
|
|
338
|
+
# and a network tool that already has a blocking primitive
|
|
339
|
+
fallthrough while pgrep worker >/dev/null 2>&1; do sleep 20; done; echo waited
|
|
340
|
+
fallthrough until gh run view 12 --json status 2>/dev/null | grep -q completed; do sleep 30; done
|
|
341
|
+
# clause (d) — a tail statement rule `ro_pipeline` would not have granted standing alone
|
|
342
|
+
fallthrough until grep -q DONE .tmp/smoke.log; do sleep 5; done; git commit -m done
|
|
343
|
+
# clause (e) — a backtick anywhere in the raw command; the `$(…)` spelling is
|
|
344
|
+
# deliberately not a row, since rule `expansion` blocks it first and the row would pin
|
|
345
|
+
# another rule's verdict
|
|
346
|
+
fallthrough until grep -q DONE `cat .tmp/f`; do sleep 5; done
|
|
347
|
+
# a non-inert redirect on the loop itself is a write, and a grant may not bless one
|
|
348
|
+
fallthrough until grep -q DONE .tmp/smoke.log; do sleep 5; done > out.txt
|
|
349
|
+
# clauses (c) and (d) take rule `ro_pipeline`'s declared forms over the whole call, so a
|
|
350
|
+
# condition or a tail writing through a roster member's own option is refused
|
|
351
|
+
fallthrough while sort -c -o out.txt data.txt; do sleep 5; done
|
|
352
|
+
fallthrough until grep -q DONE .tmp/smoke.log; do sleep 5; done; sort -o out.txt .tmp/smoke.log
|
|
353
|
+
# arm (B) — the launch-record-wait spelling rule `background_no_record`'s corrective names, granted for an
|
|
354
|
+
# allowlisted, bounded launch writing only gitignored targets, with and without the
|
|
355
|
+
# trailing retraction
|
|
356
|
+
allow bash scripts/check-foo.sh > .tmp/foo.log 2>&1 & echo "pid=$! run=foo" > .tmp/foo.run; wait; rm -f .tmp/foo.run
|
|
357
|
+
allow scripts/check-foo.sh --all > .tmp/foo.log & echo "pid=$! run=foo" > .tmp/foo.run; wait
|
|
358
|
+
# a target spelling a placeholder's letters is read as written; a quoted target is a real
|
|
359
|
+
# placeholder, whose path the grant never read
|
|
360
|
+
allow bash scripts/check-foo.sh > .tmp/DQ.log 2>&1 & echo "pid=$! run=foo" > .tmp/foo.run; wait; rm -f .tmp/foo.run
|
|
361
|
+
fallthrough bash scripts/check-foo.sh > ".tmp/foo.log" 2>&1 & echo "pid=$! run=foo" > .tmp/foo.run; wait; rm -f .tmp/foo.run
|
|
362
|
+
# (B0) the shape: a record whose filename does not carry its key, and no wait
|
|
363
|
+
fallthrough bash scripts/check-foo.sh > .tmp/foo.log 2>&1 & echo "pid=$! run=foo" > .tmp/bar.run; wait
|
|
364
|
+
fallthrough bash scripts/check-foo.sh > .tmp/foo.log 2>&1 & echo "pid=$! run=foo" > .tmp/foo.run
|
|
365
|
+
# (B1) a launch the allowlist does not grant reaches the harness's own decision
|
|
366
|
+
fallthrough bash worker.sh > .tmp/worker.log 2>&1 & echo "pid=$! run=worker" > .tmp/worker.run; wait; rm -f .tmp/worker.run
|
|
367
|
+
# (B1) granted launches the later rules refuse, each taken as a predicate: a runner
|
|
368
|
+
# glob reached past its slot (rule `grant_path_slot`, which cannot decide the whole call and
|
|
369
|
+
# declines), a scratch script body (rule `script_interpreter`) and a forced git rm (rule `rm_tracked`), the last
|
|
370
|
+
# two then blocked at their own rule
|
|
371
|
+
fallthrough bash ../../evil/checks/check-x.sh > .tmp/x.log 2>&1 & echo "pid=$! run=x" > .tmp/x.run; wait
|
|
372
|
+
block bash .tmp/checks/check-x.sh > .tmp/x.log 2>&1 & echo "pid=$! run=x" > .tmp/x.run; wait; rm -f .tmp/x.run
|
|
373
|
+
block git rm -q -f tracked.md & echo "pid=$! run=x" > .tmp/x.run; wait
|
|
374
|
+
# (B2) a launch writing a tracked target, through every redirect operator that writes one
|
|
375
|
+
fallthrough bash scripts/check-foo.sh > tracked.md & echo "pid=$! run=foo" > .tmp/foo.run; wait
|
|
376
|
+
fallthrough bash scripts/check-foo.sh &> tracked.md & echo "pid=$! run=foo" > .tmp/foo.run; wait
|
|
377
|
+
fallthrough bash scripts/check-foo.sh &>> tracked.md & echo "pid=$! run=foo" > .tmp/foo.run; wait
|
|
378
|
+
fallthrough bash scripts/check-foo.sh <> tracked.md & echo "pid=$! run=foo" > .tmp/foo.run; wait
|
|
379
|
+
# (B3) an expansion besides the record's own; rule `grant_path_slot`'s predicate declines a live '$'
|
|
380
|
+
# in the launch too, so this row pins the verdict rather than the clause alone
|
|
381
|
+
fallthrough scripts/check-foo.sh $1 > .tmp/foo.log & echo "pid=$! run=foo" > .tmp/foo.run; wait
|
|
382
|
+
|
|
383
|
+
# rule `allowlist_chain` — decorated allowlisted bare lead with an unmatched segment blocked;
|
|
160
384
|
# chaining steer, redirect steer, and the untouched non-firing cases
|
|
161
385
|
block git status && rm -rf tmp
|
|
162
386
|
block git status 2>&1
|
|
@@ -164,8 +388,17 @@ fallthrough git status
|
|
|
164
388
|
fallthrough frobnicate && git status
|
|
165
389
|
fallthrough git status && ls
|
|
166
390
|
fallthrough git status && printf done
|
|
391
|
+
# a segment the allowlist glob matches but a backgrounding '&' ends is not granted — the harness
|
|
392
|
+
# grants no backgrounded call — so it is the unmatched segment; printf's word-bounded ':*' matches
|
|
393
|
+
# the bare 'printf' the harness also grants
|
|
394
|
+
block git status && printf done &
|
|
395
|
+
fallthrough git status && printf
|
|
396
|
+
# the bare head of an entry whose only '*' is a closing ' *' is a bare lead ('git rm -q *');
|
|
397
|
+
# a lead carrying an argument is not
|
|
398
|
+
block git rm -q; make build
|
|
399
|
+
fallthrough git rm -q scratch.txt; make build
|
|
167
400
|
|
|
168
|
-
# rule
|
|
401
|
+
# rule `git_rewrite` — git history-rewrite advisory: amend / commit -F / soft-reset steered;
|
|
169
402
|
# a plain commit and a non-soft reset pass
|
|
170
403
|
advise git commit --amend
|
|
171
404
|
advise git commit --amend --no-edit
|
|
@@ -174,7 +407,7 @@ advise git reset --soft HEAD~1
|
|
|
174
407
|
fallthrough git commit -m done
|
|
175
408
|
fallthrough git reset --hard HEAD~1
|
|
176
409
|
|
|
177
|
-
# rule
|
|
410
|
+
# rule `rm_tracked` — bare rm of a tracked path steers to 'git rm -q'; untracked,
|
|
178
411
|
# gitignored, and the already-correct git rm form pass
|
|
179
412
|
block rm tracked.md
|
|
180
413
|
block rm -f tracked.md
|
|
@@ -182,6 +415,109 @@ block rm tracked.md; ls
|
|
|
182
415
|
fallthrough rm scratch.txt
|
|
183
416
|
fallthrough rm untracked-nowhere.md
|
|
184
417
|
fallthrough git rm -q tracked.md
|
|
418
|
+
# rule `rm_tracked`'s force arm — a 'git rm' carrying its force flag is blocked whether or
|
|
419
|
+
# not a grant matches: standalone, in a short cluster, long, abbreviated
|
|
420
|
+
# as git's option parser accepts it, behind a global option, and quoted.
|
|
421
|
+
# A word after '--' is a path, and '--cached' keeps the file
|
|
422
|
+
block git rm -q -f tracked.md
|
|
423
|
+
block git rm -qf tracked.md
|
|
424
|
+
block git rm --force tracked.md
|
|
425
|
+
block git rm --forc tracked.md
|
|
426
|
+
block git -C . rm -rf sub
|
|
427
|
+
block git rm -q '-f' tracked.md
|
|
428
|
+
fallthrough git rm -q -- -f
|
|
429
|
+
fallthrough git rm --cached tracked.md
|
|
430
|
+
|
|
431
|
+
# rule `script_interpreter` — a script interpreter taking its program body from a scratch dir.
|
|
432
|
+
# The firing rows are delta 3's probe table promoted from evidence into
|
|
433
|
+
# fixtures: one per body source, both arms. Targets are relative, as
|
|
434
|
+
# rules `scratch_redirect`, `truncate_scratch` and `append_scratch`'s are — an `@ROOT@`-absolute one would meet rule `abs_prefix`
|
|
435
|
+
# eighteen rules earlier.
|
|
436
|
+
# arm (a), bash/sh: the operand form is the steer this rule inherited from a
|
|
437
|
+
# consumer rule, and the stdin form is the widening the re-key buys it
|
|
438
|
+
block bash .tmp/x.sh
|
|
439
|
+
block bash - < .tmp/x.sh
|
|
440
|
+
# arm (b), one row per body source: operand, stdin redirect with and without the
|
|
441
|
+
# '-', the device-path spelling of the same redirect, and the pipe producer
|
|
442
|
+
block python3 .tmp/x.py
|
|
443
|
+
block python3 - < .tmp/x.py
|
|
444
|
+
block python3 < .tmp/x.py
|
|
445
|
+
block python3 /dev/stdin < .tmp/x.py
|
|
446
|
+
block cat .tmp/x.py | python3
|
|
447
|
+
# the backtick substitution — the one spelling rule `expansion` does not reach, which makes
|
|
448
|
+
# it the case whose absence would leave a silently teachable spelling. The '$(…)'
|
|
449
|
+
# spelling is deliberately NOT a case: rule `expansion` blocks it first, so a row here would
|
|
450
|
+
# pin another rule's verdict and go green for the wrong reason the day rule `expansion` changed
|
|
451
|
+
block python3 -c "`cat .tmp/x.py`"
|
|
452
|
+
# falls through — the body rides in the command string, so the approver and the
|
|
453
|
+
# friction log both see it verbatim and there is nothing to compensate for. This
|
|
454
|
+
# is the boundary most likely to regress silently, so it carries the most cases
|
|
455
|
+
fallthrough python3 -c 'print(1)'
|
|
456
|
+
fallthrough python3 - <<'PY'@NL@print(1)@NL@PY
|
|
457
|
+
fallthrough python3 <<< 'print(1)'
|
|
458
|
+
fallthrough printf 'print(1)' | python3
|
|
459
|
+
# falls through — outside the scratch scope: a tracked tool's body is reviewable
|
|
460
|
+
# in the repo, and the runner's own invocation takes a scratch path as an
|
|
461
|
+
# argument to a tracked script rather than as a body
|
|
462
|
+
fallthrough python3 tools/gen.py
|
|
463
|
+
fallthrough bash gate-sdk/bin/run-gates.sh --scratch-run .tmp/x.sh
|
|
464
|
+
# arm (c) under Bash: a PowerShell host taking its body from a scratch path, by -File, as its
|
|
465
|
+
# first bare word and with a suffix; a tracked body and an inline command fall through
|
|
466
|
+
block pwsh -File .tmp/x.ps1
|
|
467
|
+
block pwsh .tmp/x.ps1
|
|
468
|
+
block powershell.exe -f .tmp/x.ps1
|
|
469
|
+
fallthrough pwsh -File tools/x.ps1
|
|
470
|
+
fallthrough pwsh -c 'Get-Date'
|
|
471
|
+
|
|
472
|
+
# rule `grant_path_slot` — a committed grant matched only by reaching past its path slot. The
|
|
473
|
+
# sandbox carries a scratch 'rm -rf .tmp/*' grant and a
|
|
474
|
+
# '*/checks/check-*.sh' runner glob: a '..' component, an absolute path,
|
|
475
|
+
# a second operand outside the slot and a reach behind a stripped wrapper
|
|
476
|
+
# each block, while a clean slot, a dropped redirect and a declined
|
|
477
|
+
# backtick fall through. Targets are untracked, so rule `rm_tracked` never answers
|
|
478
|
+
block rm -rf .tmp/../scratch.txt
|
|
479
|
+
block rm -rf .tmp/x scratch.txt
|
|
480
|
+
block bash ../../evil/checks/check-x.sh
|
|
481
|
+
block bash /elsewhere/checks/check-x.sh
|
|
482
|
+
block bash C:/elsewhere/checks/check-x.sh
|
|
483
|
+
block timeout 5 rm -rf .tmp/../scratch.txt
|
|
484
|
+
fallthrough rm -rf .tmp/x .tmp/y
|
|
485
|
+
fallthrough rm -rf .tmp/x 2>/dev/null
|
|
486
|
+
fallthrough bash guard-kit/checks/check-x.sh
|
|
487
|
+
fallthrough rm -rf .tmp/`printf x`/y
|
|
488
|
+
|
|
489
|
+
# rule `emitter_write` — an emitter write the harness cannot grant. Arm (a): a write rule `append_scratch`
|
|
490
|
+
# grants alone, compounded with another statement, blocks; the same write
|
|
491
|
+
# alone is rule `append_scratch`'s grant. Arm (b): a lone write to a target git does not
|
|
492
|
+
# ignore blocks, while a lead off the emitter roster, a device target and
|
|
493
|
+
# a backgrounded launch writing its record do not fire. Arm (c): a
|
|
494
|
+
# compounded write to a target git does not ignore, in or outside the
|
|
495
|
+
# repository, blocks; a compounded write to a device target does not fire
|
|
496
|
+
block cat >> .tmp/journal.md <<'EOF'@NL@line@NL@EOF@NL@git status
|
|
497
|
+
block printf x >> .tmp/journal.md && git status
|
|
498
|
+
allow cat >> .tmp/journal.md <<'EOF'@NL@line@NL@EOF
|
|
499
|
+
block printf x >> tracked.md; git status
|
|
500
|
+
block mkdir -p docs && cat > docs/x.md <<'EOF'@NL@line@NL@EOF
|
|
501
|
+
block make build && echo x > /tmp/x.txt
|
|
502
|
+
fallthrough make build; echo x > /dev/stderr
|
|
503
|
+
block cat >> tracked.md
|
|
504
|
+
fallthrough bash gate-sdk/bin/run-gates.sh --emit trajectory > docs/x.md
|
|
505
|
+
fallthrough echo x > /dev/stderr
|
|
506
|
+
fallthrough make build > .tmp/b.log 2>&1 & echo "pid=$! run=b" > .tmp/b.run; wait; rm -f .tmp/b.run
|
|
507
|
+
|
|
508
|
+
# rule `shell_wrapper` — a bash -c or sh -c wrapper blocks; a wrapper behind another command
|
|
509
|
+
# word, and the scratch runner taking a script path, do not fire
|
|
510
|
+
block bash -c 'git status'
|
|
511
|
+
block sh -c 'ls'
|
|
512
|
+
block make x; bash -c 'ls'
|
|
513
|
+
fallthrough xargs bash -c 'x'
|
|
514
|
+
fallthrough timeout 5 bash -c 'x'
|
|
515
|
+
fallthrough bash gate-sdk/bin/run-gates.sh --scratch-run .tmp/x.sh
|
|
516
|
+
|
|
517
|
+
# rule `worktree_confinement` — a main-checkout path from a linked worktree. The table's sandbox is
|
|
518
|
+
# no linked worktree, so a path outside its root is not the rule's; the
|
|
519
|
+
# firing rows run from a worktree in gate-tests/worktree-confinement.test.sh
|
|
520
|
+
fallthrough touch ../outside
|
|
185
521
|
|
|
186
|
-
#
|
|
522
|
+
# fall-through logging — anything else falls through to the friction log
|
|
187
523
|
fallthrough make build
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# spec: guard-kit/SPEC.md §Testing — rule `background_no_record`'s PowerShell harness arm: the
|
|
2
|
+
# background-cases.tsv grammar, each row fed as a PowerShell payload to the same member.
|
|
3
|
+
# Columns: <expected-decision> <TAB> <run_in_background> <TAB> <command>.
|
|
4
|
+
|
|
5
|
+
# rule `background_no_record` — an unrecorded launch blocks; the canonical LF-terminated record
|
|
6
|
+
# write discharges it, a CRLF or UTF-16 write does not, and neither does one outside the scratch dir
|
|
7
|
+
block true pwsh -File tools/build.ps1
|
|
8
|
+
fallthrough true Set-Content -NoNewline -Path .tmp/build.run -Value "pid=$PID run=build`n"; try { pwsh -File tools/build.ps1 } finally { Remove-Item .tmp/build.run }
|
|
9
|
+
fallthrough true set-content -n .tmp\build.run "pid=$PID run=build`n"; try { pwsh -File tools/build.ps1 } finally { Remove-Item .tmp\build.run }
|
|
10
|
+
block true Set-Content -Path .tmp/build.run -Value "pid=$PID run=build`n"; try { pwsh -File tools/build.ps1 } finally { Remove-Item .tmp/build.run }
|
|
11
|
+
block true Set-Content -NoNewline -Path .tmp/build.run -Value "pid=$PID run=build"; try { pwsh -File tools/build.ps1 } finally { Remove-Item .tmp/build.run }
|
|
12
|
+
block true Set-Content -NoNewline -Encoding Unicode -Path .tmp/build.run -Value "pid=$PID run=build`n"; try { pwsh -File tools/build.ps1 } finally { Remove-Item .tmp/build.run }
|
|
13
|
+
block true "pid=$PID run=build" > .tmp/build.run; try { pwsh -File tools/build.ps1 } finally { Remove-Item .tmp/build.run }
|
|
14
|
+
block true Set-Content -NoNewline -Path tracked.run -Value "pid=$PID run=build`n"; try { pwsh -File tools/build.ps1 } finally { Remove-Item tracked.run }
|
|
15
|
+
block true echo 'Set-Content -NoNewline -Path .tmp/build.run -Value "pid=$PID run=build`n"'; pwsh -File tools/build.ps1
|
|
16
|
+
|
|
17
|
+
# the `$` decline: only a `$` in a record write's path word, whose target cannot be resolved
|
|
18
|
+
fallthrough true Set-Content -NoNewline -Path .tmp/$k.run -Value "pid=$PID run=build`n"; try { pwsh -File tools/build.ps1 } finally { Remove-Item .tmp/$k.run }
|
|
19
|
+
block true $env:X = 1; pwsh -File tools/build.ps1
|
|
20
|
+
|
|
21
|
+
# the inline wait loop owes no record; a loop doing more than sleep is a launch
|
|
22
|
+
fallthrough true while (Test-Path .tmp/m) { Start-Sleep 5 }
|
|
23
|
+
fallthrough true do { sleep 5 } until (Test-Path .tmp/done)
|
|
24
|
+
fallthrough true DO { Start-Sleep -Seconds 5 } While (Get-Process -Id 42 -ErrorAction SilentlyContinue)
|
|
25
|
+
block true while (Test-Path .tmp/m) { Remove-Item x; Start-Sleep 5 }
|
|
26
|
+
block true while (Test-Path .tmp/m) { Start-Sleep 5 }; git status
|
|
27
|
+
|
|
28
|
+
# a foreground call carrying no detached launch leaves the rule inert
|
|
29
|
+
fallthrough false pwsh -File tools/build.ps1
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# spec: guard-kit/SPEC.md §Testing — the PowerShell reader's decision table: cases.tsv's grammar and
|
|
2
|
+
# substitutions, each row fed as a PowerShell payload to the same member.
|
|
3
|
+
# Columns: <expected-decision> <TAB> <command>; # and blank lines are ignored.
|
|
4
|
+
|
|
5
|
+
# rule `cd_compound` — a location command leading a segment of a compound
|
|
6
|
+
block Set-Location deploy; Get-ChildItem
|
|
7
|
+
block PUSHD deploy; ls
|
|
8
|
+
fallthrough cd deploy
|
|
9
|
+
|
|
10
|
+
# rule `scratch_redirect` — PowerShell's stream operators, and a backslash target is a path
|
|
11
|
+
block git status > out.log
|
|
12
|
+
block git status *> out.log
|
|
13
|
+
fallthrough git status > .tmp/out.log
|
|
14
|
+
fallthrough git status > .tmp\out.log
|
|
15
|
+
fallthrough git status 2>&1
|
|
16
|
+
|
|
17
|
+
# rule `git_grep` — a working-tree search
|
|
18
|
+
block git grep foo
|
|
19
|
+
fallthrough git grep foo HEAD
|
|
20
|
+
|
|
21
|
+
# rule `git_mutation_under_producer`'s decline arm and rule `git_rewrite`
|
|
22
|
+
advise git commit --amend --no-edit
|
|
23
|
+
fallthrough git commit -m 'x'
|
|
24
|
+
|
|
25
|
+
# rule `background_no_record`'s shell form — a detached Start-Process launch; -Wait, -WhatIf and a
|
|
26
|
+
# job are no backgrounding form
|
|
27
|
+
block Start-Process pwsh -ArgumentList x
|
|
28
|
+
block start notepad
|
|
29
|
+
block git status; SAPS pwsh
|
|
30
|
+
fallthrough Start-Process -Wait pwsh
|
|
31
|
+
fallthrough Start-Process -wa pwsh
|
|
32
|
+
fallthrough Start-Process pwsh -WhatIf
|
|
33
|
+
fallthrough Start-Job { Start-Sleep 60 }
|
|
34
|
+
|
|
35
|
+
# rule `rm_tracked` — the deletion commands, their parameters, and the git rm force arm
|
|
36
|
+
block Remove-Item tracked.md
|
|
37
|
+
block rm tracked.md
|
|
38
|
+
block remove-item -Recurse scratch.txt,tracked.md
|
|
39
|
+
block Remove-Item -Path:tracked.md
|
|
40
|
+
block git rm -f tracked.md
|
|
41
|
+
fallthrough del scratch.txt
|
|
42
|
+
fallthrough Remove-Item -Path tracked.md -WhatIf
|
|
43
|
+
fallthrough Remove-Item -Filter tracked.md scratch.txt
|
|
44
|
+
fallthrough git rm -q tracked.md
|
|
45
|
+
|
|
46
|
+
# rule `script_interpreter` — a scratch body run by an invocation form or a host, the knob empty;
|
|
47
|
+
# the runner taking the path as its argument is no body source
|
|
48
|
+
block & .tmp/x.ps1
|
|
49
|
+
block .\.tmp\x.ps1
|
|
50
|
+
block . .tmp/x.ps1
|
|
51
|
+
block .tmp/x.ps1 a
|
|
52
|
+
block pwsh -File .tmp/x.ps1
|
|
53
|
+
block pwsh -nop -f .tmp\x.ps1
|
|
54
|
+
block powershell -NoProfile -ExecutionPolicy Bypass .tmp/x.ps1
|
|
55
|
+
block Get-Content -Raw .tmp/x.ps1 | iex
|
|
56
|
+
block bash .tmp/x.sh
|
|
57
|
+
block python3 .tmp/x.py
|
|
58
|
+
fallthrough & tools/build.ps1
|
|
59
|
+
fallthrough pwsh -File tools/build.ps1
|
|
60
|
+
fallthrough pwsh -Command 'Get-Date'
|
|
61
|
+
fallthrough pwsh -Bogus .tmp/x.ps1
|
|
62
|
+
fallthrough & ./gate-sdk/bin/run-gates.sh --scratch-run .tmp/x.ps1
|
|
63
|
+
|
|
64
|
+
# the reader's grammar — each a command an applied rule blocks if the reader misreads it
|
|
65
|
+
fallthrough echo 'a''; cd x'
|
|
66
|
+
block echo 'a'''; cd x'
|
|
67
|
+
fallthrough echo "a`"; cd x"
|
|
68
|
+
advise @'@NL@cd x; rm tracked.md@NL@'@ | git commit -F -
|
|
69
|
+
fallthrough # cd x; ls
|
|
70
|
+
fallthrough <# cd x; ls #> git status
|
|
71
|
+
fallthrough git status `; cd x
|
|
72
|
+
block cd x && git status
|
|
73
|
+
block cd x || git status
|
|
74
|
+
|
|
75
|
+
# the Bash-only rules stay inert on a PowerShell call
|
|
76
|
+
fallthrough cat tracked.md
|
|
77
|
+
fallthrough echo x >> .tmp/j.md
|
|
78
|
+
fallthrough Get-ChildItem | Select-Object -First 3
|
|
79
|
+
fallthrough sleep 5
|
|
80
|
+
fallthrough bash -c 'ls'
|
|
81
|
+
fallthrough $x = 1; git status
|