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
|
@@ -1,740 +0,0 @@
|
|
|
1
|
-
# evidence-kit — a held-constant baseline and a committed per-run evidence manifest for validate
|
|
2
|
-
|
|
3
|
-
lifecycle-kit's stage evidence proves a stage was *invoked*; it cannot prove
|
|
4
|
-
the stage produced its green result. evidence-kit closes that gap with three
|
|
5
|
-
coupled surfaces — a held-constant test baseline, a committed per-run evidence
|
|
6
|
-
manifest, and a codified run contract — so a validate stamp is backed by a
|
|
7
|
-
recorded, hashable verdict rather than a claim.
|
|
8
|
-
|
|
9
|
-
The kit is a **new kit**, not a lifecycle-kit extension, because the evidence
|
|
10
|
-
manifest is a wire contract a future external verifier consumes: its format is
|
|
11
|
-
versioned, stable, and hashable independent of the state machine, and the kit
|
|
12
|
-
is adoptable by a consumer that runs no iteration lifecycle at all.
|
|
13
|
-
lifecycle-kit integration is optional and arrives through one generic knob on
|
|
14
|
-
its side of the seam (§lifecycle-kit integration).
|
|
15
|
-
|
|
16
|
-
## Layout and configuration
|
|
17
|
-
|
|
18
|
-
The kit is vendored beside [gate-sdk](../gate-sdk/) (required); its gates
|
|
19
|
-
register in the consumer's `gates.list` by name and resolve through gate-sdk's
|
|
20
|
-
multi-kit path. Config follows the established kit pattern: copy
|
|
21
|
-
`templates/evidence-config.sh` into the gates dir as `evidence-config.sh` (or
|
|
22
|
-
point `EVIDENCE_KIT_CONFIG_FILE` elsewhere) and override any knob; the loader
|
|
23
|
-
fills every unset knob with a default, then validates and exits 2 on a malformed
|
|
24
|
-
machine (a suite name that is not a valid variable suffix) — a broken config
|
|
25
|
-
gates nothing.
|
|
26
|
-
|
|
27
|
-
Knobs, this repo's surface names as defaults:
|
|
28
|
-
|
|
29
|
-
- `EVIDENCE_KIT_SUITES` — the ordered suite names.
|
|
30
|
-
- `EVIDENCE_KIT_RUN_<suite>` — the command that runs a suite (captured to a log
|
|
31
|
-
under `EVIDENCE_KIT_TMP_DIR`, default gate-sdk's `.tmp`).
|
|
32
|
-
- `EVIDENCE_KIT_PARSER` — a parser adapter name or a consumer command mapping a
|
|
33
|
-
captured log to `<scenario> <pass|fail|ignore>` lines; default `exit-code`.
|
|
34
|
-
- `EVIDENCE_KIT_PARSER_<suite>` — a per-suite parser override with the same
|
|
35
|
-
value grammar; default unset, an unset suite falling through to the global
|
|
36
|
-
knob. The name mirrors the `EVIDENCE_KIT_RUN_<suite>` convention. Suite
|
|
37
|
-
granularity is a floor, not a ceiling: a suite whose runner reports per-case
|
|
38
|
-
results carries a parser that says so, while its siblings keep the global
|
|
39
|
-
adapter. This repo dogfoods it on the `gates` suite —
|
|
40
|
-
`scripts/parse-gates-log.sh` maps the verbose `run-gates` log to one scenario
|
|
41
|
-
per registered gate, so an existing gate turning red diffs as a new failure
|
|
42
|
-
even while a sibling gate is legitimately held red; the whole-battery
|
|
43
|
-
`exit-code` scenario could not tell those apart.
|
|
44
|
-
- `EVIDENCE_KIT_SCENARIO_GLOBS` — optional per-suite globs; configuring one
|
|
45
|
-
arms the manifest↔disk set-equality assertion for that suite.
|
|
46
|
-
- `EVIDENCE_KIT_BASELINE_FILE` (default `.workflow/validate-baseline.txt`),
|
|
47
|
-
`EVIDENCE_KIT_MANIFEST_FILE` (default `.workflow/validate-evidence.txt`),
|
|
48
|
-
`EVIDENCE_KIT_SKIP_FILE` (default `.workflow/validate-skips.txt`).
|
|
49
|
-
- `EVIDENCE_KIT_LOCK_FILE` — the producer-liveness lock (§The producer-liveness
|
|
50
|
-
lock), default `run-validate.lock` under `EVIDENCE_KIT_TMP_DIR`. It resolves
|
|
51
|
-
*through* the scratch knob rather than beside it, so a consumer that moves the
|
|
52
|
-
scratch dir moves the lock with it and never has to keep two paths in step.
|
|
53
|
-
- `EVIDENCE_KIT_QUEUE_FILE` / `EVIDENCE_KIT_STATE_FILE` — the lifecycle surfaces
|
|
54
|
-
read for the manifest's optional close-entry and stamp-coupling assertions;
|
|
55
|
-
they default through gate-sdk's `GATE_SDK_QUEUE_FILE` / `GATE_SDK_WORKFLOW_DIR`.
|
|
56
|
-
- `EVIDENCE_KIT_RUN_ID` — the evidence-line key when no lifecycle queue header
|
|
57
|
-
names the iteration.
|
|
58
|
-
- `EVIDENCE_KIT_PRE_HOOK` — an optional per-suite pre-run command (projection
|
|
59
|
-
regen, container teardown) kept on the consumer side of the spine.
|
|
60
|
-
- `EVIDENCE_KIT_PERMANENT_SLUGS` — blocking slugs that satisfy baseline liveness
|
|
61
|
-
without a live queue task.
|
|
62
|
-
- `EVIDENCE_KIT_RUNNER_DOC` (default `README.md`, resolved against the git
|
|
63
|
-
toplevel) — the doc whose battery-roster block `check-battery-roster` holds
|
|
64
|
-
against the suite roster. It is gate-local: nothing in the validate run path
|
|
65
|
-
reads it, so the loader fills no default for it and the gate carries its own.
|
|
66
|
-
The name mirrors gate-sdk's `GATE_SDK_RUNNER_DOC` deliberately — in a tree
|
|
67
|
-
vendoring both kits the two name the same physical doc for two different
|
|
68
|
-
assertions, and a reader who has met one should not have to learn a second
|
|
69
|
-
vocabulary for the other.
|
|
70
|
-
|
|
71
|
-
## Per-component contracts
|
|
72
|
-
|
|
73
|
-
### lib/evidence.sh
|
|
74
|
-
|
|
75
|
-
The sourced config loader: consumer config first, kit defaults fill what it
|
|
76
|
-
left unset, then validation. It also owns the shared adapters — `ek_suite_cmd`
|
|
77
|
-
(a suite's configured run command, `EVIDENCE_KIT_RUN_<suite>`), `ek_parser_for`
|
|
78
|
-
(the per-suite parser resolution, detailed below), `ek_parse` (the
|
|
79
|
-
parser dispatch), `ek_diff` (the per-scenario baseline diff, §bin/diff-baseline.sh),
|
|
80
|
-
`ek_data_lines`, the `ek_pid_alive` / `ek_lock_read` lock adapters
|
|
81
|
-
(§The producer-liveness lock), and the self-contained `ek_queue_iteration` / `ek_run_key`
|
|
82
|
-
header readers plus the `ek_state_stage` cursor reader that let the kit read
|
|
83
|
-
lifecycle state without a lifecycle-kit dependency. The two axes come from two
|
|
84
|
-
surfaces: the queue header names the iteration, the state file's **last data
|
|
85
|
-
line** is the stage cursor. `ek_state_stage` returns non-zero on both no-cursor
|
|
86
|
-
shapes — an absent state file, and a file truncated to its preamble with no data
|
|
87
|
-
line yet — so a caller's `|| true` yields an empty stage for either. Values and adapters only, never tool structure. It
|
|
88
|
-
sources gate-sdk's `lib/gate.sh` for `fail_closed`, so evidence-kit requires
|
|
89
|
-
gate-sdk vendored beside it.
|
|
90
|
-
|
|
91
|
-
The parser adapters map a captured log — and, for `exit-code`, the suite's exit
|
|
92
|
-
status — to `<scenario> <pass|fail|ignore>` lines: `libtest` reads per-test
|
|
93
|
-
result lines (a Rust `cargo test` suite), `exit-code` emits one scenario per
|
|
94
|
-
suite keyed off the suite command's exit. Any other value is a consumer command
|
|
95
|
-
run on the log.
|
|
96
|
-
|
|
97
|
-
Which adapter a suite gets is resolved by `ek_parser_for <suite>`
|
|
98
|
-
(`EVIDENCE_KIT_PARSER_<suite>`, else the global `EVIDENCE_KIT_PARSER`), and the
|
|
99
|
-
dispatch lives inside `ek_parse` — so both spine callers, `run-validate` and
|
|
100
|
-
`diff-baseline`, inherit per-suite parsing with no edit of their own. The
|
|
101
|
-
resolution is a named helper rather than private to `ek_parse` because
|
|
102
|
-
`run-validate`'s produced-no-result diagnostic must name the *effective* parser:
|
|
103
|
-
naming the global while an override produced the empty result would misreport
|
|
104
|
-
exactly the guard the per-gate baseline leans on.
|
|
105
|
-
|
|
106
|
-
A consumer parser command receives the log path alone — no suite name, no exit
|
|
107
|
-
status. That is deliberate: passing suite+status to every consumer command would
|
|
108
|
-
add fields most parsers never read (a field with no reader is removed), and a
|
|
109
|
-
consumer needing exit-code semantics for a suite simply leaves that suite on the
|
|
110
|
-
global adapter.
|
|
111
|
-
|
|
112
|
-
Neither adapter is a gate, so the library's branches are covered by
|
|
113
|
-
`gate-tests/evidence-lib.test.sh`: the per-suite dispatch with its global
|
|
114
|
-
fall-through, and `ek_diff`'s absent-from-baseline triple. The triple's `ignore`
|
|
115
|
-
edge carries a test of its own — the narrow side is the half a later session
|
|
116
|
-
widens by accident, so it is pinned by an assertion rather than by prose alone.
|
|
117
|
-
|
|
118
|
-
### Baseline manifest
|
|
119
|
-
|
|
120
|
-
Held-constant, edited by human commit only. It is a tracked checked projection
|
|
121
|
-
of the workflow directory, so its first line is the pointer-form header
|
|
122
|
-
`# contract: evidence-kit/SPEC.md §Baseline manifest — held-constant validate
|
|
123
|
-
baseline: <suite> <scenario> <status> [<slug>]` (the form ruled by
|
|
124
|
-
gate-sdk/SPEC.md §The workflow directory, whose em-dash tail carries the line
|
|
125
|
-
grammar). Below it, one line per known scenario,
|
|
126
|
-
`<suite> <scenario> <status> [<slug>]`. A blocking `<slug>` is required exactly
|
|
127
|
-
when status is `fail` or `ignore` and forbidden when `pass`; each slug resolves
|
|
128
|
-
to a live queue task (the queue-file knob) or a configured permanent marker.
|
|
129
|
-
Tooling never writes it — a promotion (a held-constant red recovering to pass)
|
|
130
|
-
is a human commit, which is what keeps the baseline honest.
|
|
131
|
-
|
|
132
|
-
A scenario absent from the baseline fails closed: the diff treats its failure
|
|
133
|
-
as a new failure, so a missing `pass` row loses no enforcement — its cost is
|
|
134
|
-
classification (a regression reads as a new scenario), not a silent green.
|
|
135
|
-
|
|
136
|
-
The rule keys on `fail`, never on non-pass. For a scenario with no baseline row,
|
|
137
|
-
observed `fail` is a new failure; observed `pass` is the classification cost
|
|
138
|
-
above, no red; observed `ignore` is **silent** — an ignored test is a non-verdict,
|
|
139
|
-
with no assertion here to converge on. Widening to non-pass would redden a
|
|
140
|
-
libtest consumer's newly-added `#[ignore]` test: a fail-closed appetite for
|
|
141
|
-
absent `ignore` is a separate argued change with its own delta to this section,
|
|
142
|
-
never a rider. The skip demotion (§bin/diff-baseline.sh) stays a baseline-row
|
|
143
|
-
concern and does not reach absent scenarios — a skip-demoted observed `pass`
|
|
144
|
-
absent from the baseline falls under the classification-cost rule.
|
|
145
|
-
|
|
146
|
-
### Evidence manifest
|
|
147
|
-
|
|
148
|
-
Committed, written once per run. The file header is a `# contract: evidence-manifest v1`
|
|
149
|
-
line — the versioned wire format the deferred hosted-attestation service consumes
|
|
150
|
-
as its attestation payload. Each data line is
|
|
151
|
-
`<iteration> <suite> sha256=<log-hash> pass=<n> fail=<n> ignore=<n>
|
|
152
|
-
verdict=<clean|new-failures> <date>`, and a run supersedes that iteration's
|
|
153
|
-
prior line for every suite it ran. The captured log
|
|
154
|
-
stays uncommitted under the tmp dir; its digest pins which run produced the
|
|
155
|
-
counts. The iteration key scopes the line so the boundary-truncate knob can
|
|
156
|
-
clear the manifest at the start of the next iteration.
|
|
157
|
-
|
|
158
|
-
**The spine touches this file only after its last suite has run**, and that is
|
|
159
|
-
contract rather than implementation detail. `run-validate` accumulates its rows
|
|
160
|
-
under the tmp dir and folds them in as a single write, dropping this iteration's
|
|
161
|
-
prior line for each suite the run covered and re-appending the batch in
|
|
162
|
-
configured-suite order.
|
|
163
|
-
|
|
164
|
-
What that buys is a suite free to sit anywhere in the roster even when its own
|
|
165
|
-
precondition is a clean worktree. A spine writing per suite dirties the tree
|
|
166
|
-
before such a suite's turn, so every full run reddens it for no reason but
|
|
167
|
-
roster position — a collision the writer manufactures and no suite can defend
|
|
168
|
-
itself against. Pinning it to the front of the roster is mitigation, not a fix:
|
|
169
|
-
nothing asserts the position, so a second such suite re-breaks it silently.
|
|
170
|
-
Under one fold nothing pins any suite anywhere.
|
|
171
|
-
|
|
172
|
-
Line order follows the configured roster rather than run history, so a repeat
|
|
173
|
-
run rewrites this iteration's rows where they already were instead of relocating
|
|
174
|
-
each to the end — a run whose counts and date are unchanged leaves the file
|
|
175
|
-
byte-identical, and a concurrent or repeated producer stops surfacing as a diff
|
|
176
|
-
with no content behind it. An aborted run writes nothing: it leaves the manifest
|
|
177
|
-
as it found it, which is what the abort's own diagnostic already claims. The
|
|
178
|
-
partial manifest that used to survive such an abort was never admissible anyway —
|
|
179
|
-
§check-evidence-manifest's close-entry assertion wants a clean line for every
|
|
180
|
-
configured suite.
|
|
181
|
-
|
|
182
|
-
The header is a wire-format version marker, not a doc pointer —
|
|
183
|
-
gate-sdk/SPEC.md §The workflow directory rules that as one of the two payload
|
|
184
|
-
forms a checked projection may carry, and this section is the statement that
|
|
185
|
-
form requires. `check-evidence-manifest` owns it (asserts the first line is
|
|
186
|
-
`# contract: <version>`). A consumer that also runs canon-kit's
|
|
187
|
-
`check-spec-pointer` over its workflow dir whitelists **this** file there
|
|
188
|
-
(`CANON_KIT_COMMENT_WHITELIST`), since a version marker resolves as no path; the
|
|
189
|
-
baseline is pointer-form and needs no whitelist entry.
|
|
190
|
-
|
|
191
|
-
### The producer-liveness lock
|
|
192
|
-
|
|
193
|
-
Uncommitted, under `EVIDENCE_KIT_LOCK_FILE`. A stage stamp proves invocation and
|
|
194
|
-
an evidence line proves a green result, but neither can say a producer is *still
|
|
195
|
-
running* — a file read at an instant cannot carry that, and the manifest's own
|
|
196
|
-
guarantees do not reach it: §check-evidence-manifest's assertion A already
|
|
197
|
-
asserts suite-roster completeness at a close cursor, and the spine's single fold
|
|
198
|
-
means a torn read is unreachable. The gap is liveness alone, and the lock is the
|
|
199
|
-
artifact that closes it.
|
|
200
|
-
|
|
201
|
-
The record is one line, `pid=<n> run=<key>`, where `<key>` is the evidence-line
|
|
202
|
-
key `ek_run_key` yields. Both fields have named readers and nothing else is
|
|
203
|
-
carried: a start timestamp was considered and removed, because once the stale
|
|
204
|
-
policy is PID-liveness rather than age it has no reader, and a field with no
|
|
205
|
-
reader is removed rather than kept for plausibility.
|
|
206
|
-
|
|
207
|
-
**The grammar has a second writer class, so a later change to the record shape has
|
|
208
|
-
both callers in view.** Besides this lock's claim, a session that backgrounds a
|
|
209
|
-
shell child writes a launch-time liveness record in this same one-line form, so
|
|
210
|
-
that whoever arrives after the session dies can still ask whether the orphan is
|
|
211
|
-
writing (delegation-kit/SPEC.md §The delegation model owns that rule). What the
|
|
212
|
-
two writers share is the grammar and the predicate below, and nothing else: the
|
|
213
|
-
atomic create-exclusive claim is this lock's alone, since a launcher recording its
|
|
214
|
-
own child's PID has no second claimant to exclude.
|
|
215
|
-
|
|
216
|
-
**The lock is held if and only if the recorded PID is alive**, which makes a
|
|
217
|
-
leaked lock self-invalidating — the shape this methodology already relies on for
|
|
218
|
-
the session-role marker, whose id match means a stale marker self-invalidates.
|
|
219
|
-
An **age-based TTL is rejected outright**: a long validate run outlives any
|
|
220
|
-
honest TTL, and a long run is precisely the case the lock exists for, so a TTL
|
|
221
|
-
tuned short enough to reclaim a crashed run promptly is guaranteed to declare a
|
|
222
|
-
healthy long run dead — restoring the false-green the lock removes.
|
|
223
|
-
|
|
224
|
-
`ek_pid_alive` is the one predicate all three readers share, and its two legs are
|
|
225
|
-
a ruling rather than belt-and-braces. `kill -0` is the cheap same-uid answer, but
|
|
226
|
-
it conflates *no such process* with *not yours*: against a producer running under
|
|
227
|
-
another uid it reports the live process as dead, which is a false **free**
|
|
228
|
-
reading — the one direction this design may not take. `ps -p` answers existence
|
|
229
|
-
without needing the permission to signal, so it runs as the fallback and any
|
|
230
|
-
evidence of existence means held. Reading `/proc` to confirm process *identity*
|
|
231
|
-
is rejected separately: it is unportable, and the OS-reach objective makes a
|
|
232
|
-
Linux-only predicate a cost rather than a refinement.
|
|
233
|
-
|
|
234
|
-
**PID reuse is a named, accepted residual.** A recycled PID yields a false
|
|
235
|
-
*held* reading, which refuses a stage entry that could have proceeded — a
|
|
236
|
-
fail-closed direction costing one file deletion to clear, against a defect that
|
|
237
|
-
would otherwise cost the next session an evidence file changing underneath it.
|
|
238
|
-
The same direction reaches the writer's own refusal, which reads the identical
|
|
239
|
-
predicate: a recycled PID makes `run-validate` over-refuse by the same
|
|
240
|
-
mechanism. One cause, one direction, one clearance — a restated instance of the
|
|
241
|
-
residual, not a second one to weigh.
|
|
242
|
-
|
|
243
|
-
**The claim is atomic create-exclusive, never check-then-write**, and the
|
|
244
|
-
asserted property is two-part: it succeeds for exactly one producer, *and* the
|
|
245
|
-
record publishes whole. The idiom is the one the spine already uses to publish
|
|
246
|
-
the manifest — build the record in a temp file under the same scratch dir, then
|
|
247
|
-
`ln` it into place, which fails if the target exists. `mkdir` and a `set -C`
|
|
248
|
-
redirect are atomic on the first half only: each leaves a window where the lock
|
|
249
|
-
exists and its record does not, which every reader would then have to parse
|
|
250
|
-
around. Because the record publishes whole, a reader never has to interpret a
|
|
251
|
-
partial lock or decide what an empty one means, so an unparseable lock is
|
|
252
|
-
corruption and fails closed rather than reading free.
|
|
253
|
-
|
|
254
|
-
The atomicity is *required* rather than careful, and what makes it so is the
|
|
255
|
-
writer-side refusal (§bin/run-validate.sh). An unconditional claim has no
|
|
256
|
-
predicate and so no time-of-check window; adding the refusal adds one, and a
|
|
257
|
-
naive read-then-claim would let two producers both observe a clear lock and both
|
|
258
|
-
claim, the second's record overwriting the first's. That reintroduces exactly
|
|
259
|
-
the two-producer case the refusal exists to close, and defeats conditional
|
|
260
|
-
release with it — "still ours" cannot be answered from a record another producer
|
|
261
|
-
overwrote. The claim's success *is* the check, so there is no interval between
|
|
262
|
-
them to lose.
|
|
263
|
-
|
|
264
|
-
**The release is conditional — remove only if the lock is still ours.** The
|
|
265
|
-
`EXIT` trap compares the recorded PID against the running shell's and removes
|
|
266
|
-
nothing on a mismatch. An unconditional `rm -f` reproduces this artifact's own
|
|
267
|
-
defect inside its own mechanism: the lock is single-holder, so with an
|
|
268
|
-
unconditional claim *and* an unconditional release whichever producer exits
|
|
269
|
-
first deletes the survivor's lock, after which a preflight reads free with a
|
|
270
|
-
producer still live. Atomicity does not make the condition redundant, and the
|
|
271
|
-
residual it closes is **not** the `EXIT`-trap race it first suggests: a trap runs
|
|
272
|
-
synchronously as part of its process's own exit and completes before that
|
|
273
|
-
process reads as dead, and the one exception — `SIGKILL` — skips the trap
|
|
274
|
-
entirely rather than deferring it. So a producer correctly identified as stale
|
|
275
|
-
cannot later run its trap. The case that remains is a lock removed by some path
|
|
276
|
-
*other than* the reclaim below — an operator deleting an apparently-stuck lock,
|
|
277
|
-
or a future code path: producer A is still alive and unaware, producer B claims
|
|
278
|
-
the freed slot, and A's unconditional release would delete B's live lock.
|
|
279
|
-
Atomicity is what makes "still ours" *answerable*; conditional release is what
|
|
280
|
-
acts on the answer.
|
|
281
|
-
|
|
282
|
-
The reclaim path a runtime artifact owes is three layers, and all three are
|
|
283
|
-
asserted: the `EXIT` trap, which covers every exit path the spine has; the
|
|
284
|
-
readers' PID-liveness predicate, which makes a leaked file inert; and the
|
|
285
|
-
consumer's scratch-boundary wipe, which removes it. No close-surface declaration
|
|
286
|
-
is owed — that obligation attaches to capture-tier members of the workflow
|
|
287
|
-
directory, and this lock lives in the scratch tier.
|
|
288
|
-
|
|
289
|
-
**evidence-kit owns the lock at both ends; lifecycle-kit contributes only the
|
|
290
|
-
hook it already ships.** The lock is a property of the *producer's run*, and this
|
|
291
|
-
kit owns the producer and the scratch directory it lives under. The reader need
|
|
292
|
-
not live in lifecycle-kit: `LIFECYCLE_KIT_ENTRY_PREFLIGHT` is already a generic
|
|
293
|
-
per-stage hook naming no evidence surface, so a second evidence-kit gate on that
|
|
294
|
-
roster adds no new cross-kit dependency at all — the consumer wires it exactly as
|
|
295
|
-
it already wires the manifest gate (§lifecycle-kit integration). The rejected
|
|
296
|
-
alternative is worth recording: a lock held by lifecycle-kit would force that kit
|
|
297
|
-
to know this one's scratch knob — a downward dependency onto one specific
|
|
298
|
-
producer kit — and would generalize wrongly, since lifecycle-kit would then have
|
|
299
|
-
to model every possible producer's lock rather than one hook any producer's gate
|
|
300
|
-
can hang from.
|
|
301
|
-
|
|
302
|
-
### bin/run-validate.sh
|
|
303
|
-
|
|
304
|
-
The codified spine, bounded by the producer-liveness lock: the guards, the
|
|
305
|
-
claim, then the optional per-suite pre-hook and each suite run
|
|
306
|
-
foreground, parsed, diffed against the baseline's suite slice per-scenario, and
|
|
307
|
-
recorded as one evidence line whose verdict is `clean` unless the diff
|
|
308
|
-
finds a new failure. The lines batch under the tmp dir and reach the manifest in
|
|
309
|
-
the single fold §Evidence manifest rules, so a suite never runs against a tree
|
|
310
|
-
the spine has already written to. It never edits the baseline, never retries, and surfaces a
|
|
311
|
-
non-zero suite exit verbatim. A log with no parseable result is a run failure,
|
|
312
|
-
not an empty diff. Not a gate — a `bin/` tool exercised end-to-end in `smoke/`,
|
|
313
|
-
with the lock's own behavior pinned by `gate-tests/producer-lock.test.sh`.
|
|
314
|
-
|
|
315
|
-
**The claim's placement is asserted, not left to the implementer**: after the
|
|
316
|
-
preflight guards and the scratch `mkdir` — a run that refuses to start must not
|
|
317
|
-
claim — and before the batch file is created, so no evidence work happens
|
|
318
|
-
outside the lock's cover. Release is the `EXIT` trap, conditional on the record
|
|
319
|
-
still being ours (§The producer-liveness lock owns both properties and the
|
|
320
|
-
reasons they are load-bearing). A trap rather than a tail line, because the
|
|
321
|
-
script exits from many guard and fail-closed sites besides its terminal exit, and
|
|
322
|
-
a tail-line release would leak the lock on every failure path — the population
|
|
323
|
-
that matters most, since a crashed run is exactly when a stale lock appears. The
|
|
324
|
-
idiom precedent is `lifecycle-kit/bin/enter-stage.sh`, which claims temp files
|
|
325
|
-
under a scratch dir with an `EXIT` trap.
|
|
326
|
-
|
|
327
|
-
**It refuses to start while a live lock is held**, and the refusal falls out of
|
|
328
|
-
the atomic claim rather than being a second mechanism: the claim either succeeds
|
|
329
|
-
— in which case no holder existed — or fails, and the failure branch is the
|
|
330
|
-
refusal. On a failed claim it reads the existing lock; a **live** PID refuses
|
|
331
|
-
immediately, naming the blocking run key, with no reclaim attempted. A **dead**
|
|
332
|
-
PID (or a lock that has vanished since the claim failed) is reclaimed by removing
|
|
333
|
-
the lock and retrying **exactly once**; a second failure refuses rather than
|
|
334
|
-
looping, which resolves the two-contender stale case without an unbounded retry —
|
|
335
|
-
both contenders may remove and relink, exactly one `ln` succeeds, and the loser's
|
|
336
|
-
re-read finds a live PID. A lock that does not parse refuses outright.
|
|
337
|
-
|
|
338
|
-
This is why the tool has **two** non-zero exits with different meanings: exit 1
|
|
339
|
-
when a suite records `new-failures` — the verdict — and the guards' exit 2 when
|
|
340
|
-
the run cannot start at all, which a held or unclaimable lock now joins. The
|
|
341
|
-
refusal is a start-time verdict about the world, not a result, so it takes the
|
|
342
|
-
guards' code and not the verdict's.
|
|
343
|
-
|
|
344
|
-
The reason a producer that never enters a stage is worth guarding is that the
|
|
345
|
-
entry-side reader cannot see it: a session can run this tool without entering a
|
|
346
|
-
stage, so an entry-side red alone would leave two producers able to race the
|
|
347
|
-
manifest with every stage entry green. A lock the producer itself does not check
|
|
348
|
-
is not a mutex.
|
|
349
|
-
|
|
350
|
-
### bin/diff-baseline.sh
|
|
351
|
-
|
|
352
|
-
The situational runtime diff, not a precommit gate: it takes captured logs as
|
|
353
|
-
arguments, parses each, and diffs against the baseline slice per-scenario. A
|
|
354
|
-
baseline `pass` scenario red-or-absent is a new failure; a baseline `fail` or
|
|
355
|
-
`ignore` scenario running green is an unpromoted recovery; an observed `fail`
|
|
356
|
-
with no baseline row at all is a new failure (§Baseline manifest's fail-closed
|
|
357
|
-
rule, which keys on `fail` alone). The split is
|
|
358
|
-
per-scenario, so a regression and a recovery cannot net to zero. It reads the
|
|
359
|
-
skip side-channel (`EVIDENCE_KIT_SKIP_FILE`, truncated per run) to demote a
|
|
360
|
-
self-skipped scenario from pass first, so a self-skip cannot masquerade as a
|
|
361
|
-
pass. The shared diff (`ek_diff`) returns non-zero the moment a new failure
|
|
362
|
-
fires, which is also how run-validate derives its verdict.
|
|
363
|
-
|
|
364
|
-
### check-evidence-baseline
|
|
365
|
-
|
|
366
|
-
Invariant: the held-constant baseline stays grammatical and honest. It asserts
|
|
367
|
-
the `<suite> <scenario> <status> [<slug>]` shape, blocking-slug liveness — every
|
|
368
|
-
`fail`/`ignore` slug resolves to a live queue task or a permanent marker, and a
|
|
369
|
-
slug present only under `## Done` is stale-red — and, for every suite carrying a
|
|
370
|
-
configured scenario glob, manifest↔disk set equality (a baseline scenario with
|
|
371
|
-
no matching file, or a file with no baseline line, reddens). Argument mode
|
|
372
|
-
`$1 $2` (baseline, queue) with configured defaults makes it fixture-capable; the
|
|
373
|
-
liveness and coverage branches beyond the one good/bad pair are covered by
|
|
374
|
-
`gate-tests/check-evidence-baseline.test.sh`.
|
|
375
|
-
|
|
376
|
-
**The gate dispatches to the binary substrate** — `checks/check-evidence-baseline.gate`
|
|
377
|
-
to `native/src/gates/evidence_baseline.rs`, the shell script deleted — and asserts
|
|
378
|
-
nothing new. It was held on the config bridge's want of a key channel, since
|
|
379
|
-
`EVIDENCE_KIT_SCENARIO_GLOBS` is read **by key** (gate-sdk/SPEC.md §lib/gate.sh,
|
|
380
|
-
the keyed arm that retired the hold), and it is this kit's first compiled member.
|
|
381
|
-
**Where the non-empty keyed map is actually exercised is a caveat worth stating
|
|
382
|
-
rather than discovering.** A consumer configuring no scenario glob resolves the
|
|
383
|
-
kit default — an empty map — so its whole battery crosses the *empty* arm and a
|
|
384
|
-
defect in the keyed wire would pass it; the non-empty arm is exercised by the
|
|
385
|
-
coverage case in this gate's own behavioral test, which is therefore the
|
|
386
|
-
load-bearing evidence for it rather than an extra scenario.
|
|
387
|
-
|
|
388
|
-
### check-evidence-manifest
|
|
389
|
-
|
|
390
|
-
Invariant: the evidence manifest is well-formed and, where lifecycle drives the
|
|
391
|
-
tree, coupled to the stage machine. It owns three assertions, (A) close-entry —
|
|
392
|
-
a `close` cursor requires the full green block, a `verdict=clean` line
|
|
393
|
-
for every configured suite dated on/after the iteration's earliest validate
|
|
394
|
-
stamp; (B) grammar — every line the eight-field manifest shape with the current
|
|
395
|
-
iteration (a foreign iteration line means the boundary truncation was skipped);
|
|
396
|
-
and (C) stamp-coupling — a validate stamp demands at least one evidence line,
|
|
397
|
-
re-armed only once the cursor has advanced past `validate`, since the
|
|
398
|
-
entry stamp legitimately precedes the suites. Grammar (B) red suppresses A and C.
|
|
399
|
-
An empty cursor disarms A and C entirely, so a consumer running no lifecycle
|
|
400
|
-
keeps only the grammar floor. Both no-cursor shapes disarm at the *declared*
|
|
401
|
-
early-out rather than by an empty stage falling through two live assertions: a
|
|
402
|
-
silent fall-through would read as a green gate in exactly the window where the
|
|
403
|
-
gate has nothing to say, which is the failure mode the cursor migration was
|
|
404
|
-
ordered to avoid.
|
|
405
|
-
`checks/check-evidence-manifest.gate` (`precommit`, binary-dispatched).
|
|
406
|
-
Argument mode `$1 $2 $3` (manifest, queue, state) survives the port — each
|
|
407
|
-
positional reaches the subcommand as argv and overrides the bridged knob there,
|
|
408
|
-
so none of the three is the arrives-too-late shape gate-sdk/SPEC.md §The
|
|
409
|
-
non-gate arm deletes. The good/bad pair drops its `args` and reaches the rule
|
|
410
|
-
through the three path knobs instead, which is the branch the production battery
|
|
411
|
-
takes; the positional arm keeps its coverage in
|
|
412
|
-
`gate-tests/check-evidence-manifest.test.sh`, which also owns the close-entry
|
|
413
|
-
and stamp-coupling assertions.
|
|
414
|
-
|
|
415
|
-
**A pre-flight caller names this gate, never its declaration path, and the port
|
|
416
|
-
is what made that binding.** `LIFECYCLE_KIT_ENTRY_PREFLIGHT`
|
|
417
|
-
(lifecycle-kit/SPEC.md §bin/enter-stage.sh) is exec'd with **no interpreter
|
|
418
|
-
word**, so a literal `…/check-evidence-manifest.sh` entry rides the exec bit. A
|
|
419
|
-
`.gate` descriptor is a non-executable data file, so the exec fails, the
|
|
420
|
-
non-zero exit refuses the entry, and the `close` stage cannot be entered at all
|
|
421
|
-
— by a caller no gate enumerates, since a Point-5 reader enumeration covers
|
|
422
|
-
gates and an ordinary shell-out is outside every one of them. The discharge is a
|
|
423
|
-
**consumer-side front-end** that resolves a gate *name* through `gate_command`
|
|
424
|
-
(this repo's `scripts/gate-exec.sh`) — deliberately not teaching lifecycle-kit
|
|
425
|
-
to resolve a name in that knob, which would be a kit-contract change. The
|
|
426
|
-
front-end is wired for the consumer's whole pre-flight roster rather than for
|
|
427
|
-
the one member that forced it: an entry still naming a path is the same trap
|
|
428
|
-
armed for the next port, and re-pointing a still-shell member costs nothing
|
|
429
|
-
because `gate_command` resolves it to exactly the path the entry held.
|
|
430
|
-
|
|
431
|
-
**The data-line helper is `ek_data_lines`' own primitive, and the crate carries
|
|
432
|
-
a same-named one that is a different rule.** `ek_data_lines` filters comment and
|
|
433
|
-
blank lines and nothing else. The crate's `stages::data_lines` — the lifecycle
|
|
434
|
-
state file's reader — takes only the lines *below a `---` separator*, so binding
|
|
435
|
-
to it here compiles, passes a thin fixture, and silently drops every manifest
|
|
436
|
-
line in a file with no separator. The compiled form therefore keeps
|
|
437
|
-
evidence-kit's own reader (`native/src/evidence.rs`), which is the same
|
|
438
|
-
independence from lifecycle-kit the shell library states at §lib/evidence.sh.
|
|
439
|
-
|
|
440
|
-
### check-battery-roster
|
|
441
|
-
|
|
442
|
-
`checks/check-battery-roster.gate` (`precommit`, binary-dispatched).
|
|
443
|
-
Invariant: the configured runner doc's battery-roster block holds name-set
|
|
444
|
-
parity with `EVIDENCE_KIT_SUITES`, both directions. The suite roster is
|
|
445
|
-
machine-owned and the doc block is a hand copy of it — the
|
|
446
|
-
`check-readme-roster` fork (gate-sdk/SPEC.md §check-readme-roster) applied to
|
|
447
|
-
the validate battery: the register stays a human-read list carrying per-line
|
|
448
|
-
annotation prose an emitter would have to invent, and a gate holds it honest
|
|
449
|
-
rather than generating it.
|
|
450
|
-
|
|
451
|
-
Marker vocabulary follows that gate verbatim in shape: the doc wraps its
|
|
452
|
-
register in `<!-- battery-roster:begin -->` / `<!-- battery-roster:end -->`
|
|
453
|
-
markers, which may carry leading indentation (the scan trims surrounding
|
|
454
|
-
whitespace before matching, since a README nests the block inside a list item).
|
|
455
|
-
Inside the markers a **roster line** is a line whose content begins with a bare
|
|
456
|
-
lowercase command word (`bash …`, `cargo …`) — the interpreter is not part of
|
|
457
|
-
the grammar, so a suite whose runner is not a shell script is rosterable without
|
|
458
|
-
widening a literal each time; the fenced-block delimiters and any prose fail the
|
|
459
|
-
match by not starting with a lowercase letter. A trailing `#` annotation clause
|
|
460
|
-
is prose the gate never reads.
|
|
461
|
-
Outside the markers nothing is scanned, so the same command appearing elsewhere
|
|
462
|
-
in the doc for a different rhetorical job neither satisfies nor violates the
|
|
463
|
-
gate — which is why the block, not the whole doc, is the unit.
|
|
464
|
-
|
|
465
|
-
A suite's **documented invocation** is `EVIDENCE_KIT_RUN_<suite>` normalized by
|
|
466
|
-
stripping a leading `env` token and any leading `VAR=value` assignments, with
|
|
467
|
-
or without that token: the run environment is a validate-harness concern (this
|
|
468
|
-
repo's `gates` suite runs under gate-sdk's `GATE_SDK_VERBOSE` knob, whose value
|
|
469
|
-
that kit's SPEC owns, to emit the per-gate tails its parser reads) and not
|
|
470
|
-
something a contributor types. What remains is
|
|
471
|
-
compared as an exact string, whitespace-collapsed on both sides so the block's
|
|
472
|
-
annotation alignment carries no meaning.
|
|
473
|
-
|
|
474
|
-
Two assertions over the suite set versus the roster set:
|
|
475
|
-
|
|
476
|
-
- **(A) every suite is documented** — a member of `EVIDENCE_KIT_SUITES` whose
|
|
477
|
-
normalized invocation matches no roster line is red;
|
|
478
|
-
- **(B) every roster line resolves to a suite** — a roster line whose command
|
|
479
|
-
matches no suite's normalized invocation is red, so a retired suite cannot
|
|
480
|
-
leave a stale line telling a contributor to run a command that is not a
|
|
481
|
-
configured suite.
|
|
482
|
-
|
|
483
|
-
Each finding names the suite (A) or the command and its line (B), and the doc.
|
|
484
|
-
A suite with no `EVIDENCE_KIT_RUN_<suite>` configured has no documented
|
|
485
|
-
invocation to compare and is passed over: `bin/run-validate.sh` already exits 2
|
|
486
|
-
on it, and reporting it here would send the reader to the doc to fix a config
|
|
487
|
-
bug.
|
|
488
|
-
|
|
489
|
-
The overlap with `check-kit-registration` assertion B (gate-sdk/SPEC.md
|
|
490
|
-
§check-kit-registration) is deliberate. That assertion requires every kit root
|
|
491
|
-
with tracked `gate-tests/` files to have a runner-doc line naming
|
|
492
|
-
`<kit>/gate-tests`; because this repo's config derives exactly those roots into
|
|
493
|
-
`EVIDENCE_KIT_SUITES` through `gate_fixture_suites`, assertion (A) here is a
|
|
494
|
-
superset of that arm for a consumer running both kits. It is kept rather than
|
|
495
|
-
retired on a dependency direction: a gate-sdk gate may not require this kit's
|
|
496
|
-
config — gate-sdk's enforcement-map emitter reads the suite roster where a
|
|
497
|
-
consumer has one, but an assertion cannot, having no honest verdict when it is
|
|
498
|
-
absent. So B is the arm that survives a gate-sdk-only adoption, which is the
|
|
499
|
-
more common shape. Both sections say so, each naming the other, so the next
|
|
500
|
-
reader who notices the redundancy finds the reason instead of re-deriving it.
|
|
501
|
-
One omission reported from both sides is a duplicate finding, not a
|
|
502
|
-
contradiction — the two name different sets (a kit root, a suite) in their
|
|
503
|
-
output.
|
|
504
|
-
|
|
505
|
-
Config: `EVIDENCE_KIT_RUNNER_DOC` (§Layout and configuration); positional form
|
|
506
|
-
`check-battery-roster [runner-doc]` overrides it against a hermetic fixture
|
|
507
|
-
tree, the sibling meta-gates' shape. Fail-closed: a configured doc that does not
|
|
508
|
-
exist, a doc carrying no marker block, an empty suite roster, or a non-repo cwd
|
|
509
|
-
with no positional argument is a misconfiguration (exit 2), never a false clean.
|
|
510
|
-
There is no empty-knob valve — a consumer keeping no runner doc opts out by not
|
|
511
|
-
registering the gate in its `gates.list`, gate-sdk's registry opt-out shape. The
|
|
512
|
-
fail-closed branches and the normalization arms beyond the one good/bad pair are
|
|
513
|
-
covered by `gate-tests/check-battery-roster.test.sh`, which dispatches through
|
|
514
|
-
`gate_run` rather than by script path — the invocation shape that survives a
|
|
515
|
-
substrate move (gate-sdk/SPEC.md §lib/test-hermetic.sh).
|
|
516
|
-
|
|
517
|
-
**The suite roster and the run family cross the bridge as two knobs of different
|
|
518
|
-
kinds, and the asymmetry is the contract rather than an accident.**
|
|
519
|
-
`EVIDENCE_KIT_SUITES` is the roster; `EVIDENCE_KIT_RUN_*` is a **prefix family**,
|
|
520
|
-
a resolution set the gate looks names up in and never enumerates. Enumerating it
|
|
521
|
-
would publish `EVIDENCE_KIT_RUN_ID` as a suite — the reason gate-sdk/SPEC.md
|
|
522
|
-
§lib/gate.sh states that a prefix is a resolution set and never a roster, stated
|
|
523
|
-
again here because this gate is the one that would break.
|
|
524
|
-
`EVIDENCE_KIT_RUNNER_DOC` is resolved onto its own name in `lib/evidence.sh` for
|
|
525
|
-
the same reason the loader's other defaults are: a default the bridge's
|
|
526
|
-
`declare -p` cannot find is its undeclared-knob refusal.
|
|
527
|
-
|
|
528
|
-
### check-producer-liveness
|
|
529
|
-
|
|
530
|
-
Invariant: no stage entry while the evidence producer is still running. It reads
|
|
531
|
-
`EVIDENCE_KIT_LOCK_FILE` and is green when the lock is absent or names a dead
|
|
532
|
-
PID, red when it names a live one — printing the blocking run key, so the
|
|
533
|
-
operator can tell *wait for that run* from *reclaim a lock whose owner is gone*.
|
|
534
|
-
A lock that does not parse is exit 2: the claim publishes the record whole
|
|
535
|
-
(§The producer-liveness lock), so an unparseable lock is corruption and never a
|
|
536
|
-
free reading.
|
|
537
|
-
|
|
538
|
-
This is a new gate rather than a fourth assertion on `check-evidence-manifest`,
|
|
539
|
-
because that gate's charter is manifest *content* — the close-entry green block,
|
|
540
|
-
the grammar, the stamp coupling — and liveness is a different class. A separate
|
|
541
|
-
gate also earns its own fixture pair instead of widening an existing gate's
|
|
542
|
-
charter.
|
|
543
|
-
|
|
544
|
-
Argument mode `check-producer-liveness.sh [lock-file]` makes it fixture-capable
|
|
545
|
-
and is how the entry hook points it at the lock (§lifecycle-kit integration);
|
|
546
|
-
extra arguments are ignored, so the hook's trailing `<queue> <state>` argv passes
|
|
547
|
-
through harmlessly.
|
|
548
|
-
|
|
549
|
-
**Its subject is a record, not this lock**, and the argument mode is what makes
|
|
550
|
-
that literal rather than incidental: any file in §The producer-liveness lock's
|
|
551
|
-
`pid=<n> run=<key>` grammar is a legal subject, whoever wrote it. The second
|
|
552
|
-
writer class is the launch-time liveness record a session places when it
|
|
553
|
-
backgrounds a shell child (delegation-kit/SPEC.md §The delegation model); pointed
|
|
554
|
-
at one, this gate answers *is that producer still running* on the same exit
|
|
555
|
-
contract, unchanged. Stated here because a reader deciding what they may point
|
|
556
|
-
this gate at reads this section, and because it is what lets that rule add a
|
|
557
|
-
second reader without adding a gate.
|
|
558
|
-
|
|
559
|
-
**Set mode: a directory argument quantifies that verdict over a whole record
|
|
560
|
-
set.** Pointed at a directory, the gate reads every `*.run` file in it — the
|
|
561
|
-
naming convention delegation-kit/SPEC.md §The delegation model gives the
|
|
562
|
-
launch-time record, which is what makes the set a glob rather than a path a
|
|
563
|
-
reader must be told. The per-record verdict, the exit contract and the PID
|
|
564
|
-
predicate are the ones above and are **not re-decided**; what the mode adds is
|
|
565
|
-
the quantifier. The **aggregation rule is the mode's only new decision**: exit 2
|
|
566
|
-
wins over red wins over green, so one corrupt record is never averaged away by
|
|
567
|
-
nine clean ones. An empty directory is green, the verdict the absent-lock case
|
|
568
|
-
already takes; a directory whose records all name dead PIDs is green; any live
|
|
569
|
-
PID reds, naming **every** blocking record and run key, so a reader waits on the
|
|
570
|
-
set rather than discovering it one entry at a time. Only `*.run` is read — a
|
|
571
|
-
stray file in the same directory is not a record and its unreadability is not
|
|
572
|
-
corruption, which is the whole point of giving the record a suffix.
|
|
573
|
-
|
|
574
|
-
**The single-path mode is left exactly as it is.** `EVIDENCE_KIT_LOCK_FILE` has
|
|
575
|
-
one path and one writer, and routing it through a directory would be the
|
|
576
|
-
generalization that breaks the case that already works. The two modes are told
|
|
577
|
-
apart by the argument being a directory, not by a flag: the caller already knows
|
|
578
|
-
which it holds.
|
|
579
|
-
|
|
580
|
-
**The `.run` suffix is deliberately not `.lock`, and the distinction is
|
|
581
|
-
load-bearing rather than cosmetic.** A lock is claimed and released by one owner
|
|
582
|
-
and its absence means *free* — `EVIDENCE_KIT_LOCK_FILE` is one and keeps its
|
|
583
|
-
name. A launch record is a **statement of fact left behind**, and its absence
|
|
584
|
-
means *nothing was recorded*, never *nothing is running*. Two meanings, two
|
|
585
|
-
suffixes.
|
|
586
|
-
|
|
587
|
-
**It belongs on the entry hook and not in a `gates.list` battery**, and the
|
|
588
|
-
reason is structural rather than a matter of taste. Its subject is a transition —
|
|
589
|
-
*is a producer in flight right now* — where every battery member's subject is
|
|
590
|
-
tree state. A consumer whose validate roster includes its own gate battery (this
|
|
591
|
-
repo's does: the `gates` suite *is* the battery) would have `run-validate` invoke
|
|
592
|
-
this gate while holding the lock it just claimed, reddening every validate run
|
|
593
|
-
against its own record. The kit therefore ships the gate registered nowhere and
|
|
594
|
-
wired at the entry, which is also the honest reading of its argument mode: it
|
|
595
|
-
takes the lock path because its caller is a stage entry, not a whole-tree sweep.
|
|
596
|
-
|
|
597
|
-
The fixture pair carries the two static verdicts — a dead PID and a live one.
|
|
598
|
-
Its `bad/` case names PID 1, the one PID a checked-in fixture can assert the
|
|
599
|
-
liveness of on every platform, which is exactly what `ek_pid_alive`'s `ps -p`
|
|
600
|
-
leg makes reliable: under `kill -0` alone, an unprivileged run reads init as
|
|
601
|
-
dead and the case would silently invert. Everything the pair cannot hold — a
|
|
602
|
-
live PID the test itself owns, the unparseable-lock exit, and the writer-side
|
|
603
|
-
behavior — is covered by `gate-tests/producer-lock.test.sh`.
|
|
604
|
-
|
|
605
|
-
**Set mode's verdicts are covered there too rather than in the pair, and the
|
|
606
|
-
reason is the runner's shape.** A fixture dir holds exactly one `good/` and one
|
|
607
|
-
`bad/` case, so a mode with four verdicts and an aggregation rule between them
|
|
608
|
-
cannot be expressed as a pair at all; three of the four also need a
|
|
609
|
-
multi-record directory, and the red case needs a live PID the pair could only
|
|
610
|
-
reach as init. The unit test carries all four plus the suffix bound.
|
|
611
|
-
|
|
612
|
-
## lifecycle-kit integration
|
|
613
|
-
|
|
614
|
-
Integration is two generic knobs on lifecycle-kit's side of the seam, each
|
|
615
|
-
naming no evidence surface in the kit — the coupling lives entirely in the
|
|
616
|
-
consumer's config and this gate's optional assertions.
|
|
617
|
-
|
|
618
|
-
`LIFECYCLE_KIT_BOUNDARY_TRUNCATE` lists the files `bin/enter-stage.sh` truncates back
|
|
619
|
-
to their `# contract:` header at the iteration boundary, exactly as it already
|
|
620
|
-
resets the state file. A consumer sets it to the evidence manifest, so a new
|
|
621
|
-
iteration starts with a manifest carrying only its contract header — which is
|
|
622
|
-
what makes assertion (B)'s foreign-iteration test able to catch a skipped
|
|
623
|
-
truncation.
|
|
624
|
-
|
|
625
|
-
`LIFECYCLE_KIT_ENTRY_PREFLIGHT` carries **both** of this kit's entry-side gates,
|
|
626
|
-
at the stage keys the two paragraphs below name — a count here would be a second
|
|
627
|
-
one, and it would be a kit SPEC counting a consumer's config array at that.
|
|
628
|
-
`bin/enter-stage.sh` runs each matching entry
|
|
629
|
-
against the candidate temp state file (the prospective stamp appended) and the
|
|
630
|
-
live queue, appending that `<queue> <state>` argv to whatever the entry names, and
|
|
631
|
-
a non-zero exit refuses the entry with nothing written.
|
|
632
|
-
|
|
633
|
-
`check-evidence-manifest` is wired at `close=`, its command naming the *gate*
|
|
634
|
-
rather than a path and the manifest after it
|
|
635
|
-
(`close=<name-resolving front end> check-evidence-manifest <manifest>`;
|
|
636
|
-
§check-evidence-manifest owns the front end and the trap a literal
|
|
637
|
-
`…/check-evidence-manifest.sh` entry falls into once the gate is ported),
|
|
638
|
-
so assertion (A)'s close-entry green-block check fires *before* the
|
|
639
|
-
stamp is written — the missing evidence becomes a refusal at the entry (pointing
|
|
640
|
-
at run-validate) instead of a self-referential deadlock at pre-commit, where the
|
|
641
|
-
`gates` suite that would produce the evidence re-runs this same red gate
|
|
642
|
-
against the already-stamped cursor. Belt-and-braces behind the validate
|
|
643
|
-
skill's run-validate wiring, not a replacement for it; for a consumer that
|
|
644
|
-
wires it, assertion (A)'s enforcement point moves one step earlier, from
|
|
645
|
-
commit to entry.
|
|
646
|
-
|
|
647
|
-
`check-producer-liveness` is wired at **every** stage key in set mode, each
|
|
648
|
-
entry pointed at the consumer's scratch **directory**
|
|
649
|
-
(`<stage>=<front end> check-producer-liveness <scratch-dir>`, the same
|
|
650
|
-
name-resolving form — this member is still shell, so a literal path would work
|
|
651
|
-
today and would break at its port). `close=` is the case the
|
|
652
|
-
gate was filed for — a lead dispatching close into a still-running producer —
|
|
653
|
-
and `validate=` was the second, a second validate batch entering while a first
|
|
654
|
-
batch's `run-validate` is live. **Both were chosen when the subject was one
|
|
655
|
-
producer with one lock.** The subject is now any recorded producer, and any
|
|
656
|
-
stage can leave one: a stage that ended its turn on a backgrounded `gh run
|
|
657
|
-
watch` leaves a record no lock-pointed entry names, so the aim was one path wide
|
|
658
|
-
where the rule was right. The cost of the full roster is one gate invocation per
|
|
659
|
-
stage entry against a directory that is usually empty. Which keys a consumer
|
|
660
|
-
wires is still config, not asserted kit behavior.
|
|
661
|
-
|
|
662
|
-
**The lock-pointed entries stay beside the set entries rather than being
|
|
663
|
-
replaced by them**, and the reason is the suffix rule above rather than caution.
|
|
664
|
-
Set mode reads `*.run`; `EVIDENCE_KIT_LOCK_FILE` keeps `.lock`, so the
|
|
665
|
-
directory pass **cannot see run-validate's own lock**. Replacing the two entries
|
|
666
|
-
would have traded the coverage the set mode adds for the coverage the lock
|
|
667
|
-
entries already had, which is not the widening this wiring is. A consumer whose
|
|
668
|
-
producer publishes a lock keeps that lock's entry and adds the directory.
|
|
669
|
-
|
|
670
|
-
**What this wiring is honest about: it detects, and it detects late.** An orphan
|
|
671
|
-
is found at the *next* entry, so the turns between the firing and that entry are
|
|
672
|
-
already spent, and if the firing is the iteration's last stage no entry follows
|
|
673
|
-
it at all. The preventing half is a `PreToolUse` rule over the harm rather than
|
|
674
|
-
the act (guard-kit/SPEC.md §The generic ruleset, rule 14); this entry is the
|
|
675
|
-
backstop behind it.
|
|
676
|
-
|
|
677
|
-
The **read-only `--simulate` mode inherits this gate with no extra wiring**, and
|
|
678
|
-
that is the highest-value consumer rather than a bookkeeping detail: it runs
|
|
679
|
-
every matching preflight entry, so a lead gating an expensive dispatch with a
|
|
680
|
-
simulated entry stops being blind to a live producer. It does **not** make a
|
|
681
|
-
dispatch rule redundant, and the boundary has to be stated or the pair reads as
|
|
682
|
-
over-built: a simulated entry remains an instantaneous read, so a producer that
|
|
683
|
-
starts a second later is still unseen, and the gate covers only producers that
|
|
684
|
-
claim this lock. A lead dispatching on artifact state is still dispatching on
|
|
685
|
-
artifact state — it merely has one more artifact. A dispatch rule governs what
|
|
686
|
-
the lead waits *for*; this gate narrows what survives being wrong about it.
|
|
687
|
-
|
|
688
|
-
The validate stage records evidence on a commit later than the entry stamp
|
|
689
|
-
(assertion C's re-arm scoping): the stamp proves invocation at entry, the
|
|
690
|
-
evidence line proves the green result once the suites have run.
|
|
691
|
-
|
|
692
|
-
## Producers and consumers
|
|
693
|
-
|
|
694
|
-
- **Evidence line** — produced by `run-validate.sh` per suite verdict; consumed
|
|
695
|
-
by `check-evidence-manifest` (A/B/C), by close-stage entry via that gate, and,
|
|
696
|
-
forward, by the hosted-attestation payload. Every field has a reader there:
|
|
697
|
-
iteration (A/C scoping), suite + verdict + counts (A's green-block test),
|
|
698
|
-
sha256 (audit pinning of the producing log), date (A's stamp-ordering floor).
|
|
699
|
-
- **Suite roster** (`EVIDENCE_KIT_SUITES` + `EVIDENCE_KIT_RUN_<suite>`) —
|
|
700
|
-
produced by consumer config, wholly or in part derived there; consumed by
|
|
701
|
-
`run-validate.sh` (what to run), by `check-evidence-manifest` (A's green
|
|
702
|
-
block), by `check-battery-roster` (the doc-parity compare), and — behind a
|
|
703
|
-
`declare -p` probe, so evidence-kit stays optional — by gate-sdk's
|
|
704
|
-
enforcement-map emitter. Every one of them reads it by sourcing the config
|
|
705
|
-
through the loader rather than parsing the file, so a suite a derivation loop
|
|
706
|
-
adds is visible to all of them with no second parse to keep in step. The
|
|
707
|
-
compiled emitter reads it through that same loader at one remove: gate-sdk's
|
|
708
|
-
config bridge sources this kit's library to resolve `EVIDENCE_KIT_SUITES` and
|
|
709
|
-
the `EVIDENCE_KIT_RUN_` family, so the derivation loop still runs in bash and
|
|
710
|
-
nothing re-parses the file (gate-sdk/SPEC.md §lib/gate.sh).
|
|
711
|
-
- **Producer-liveness lock** — produced by `run-validate.sh` at the claim point,
|
|
712
|
-
which sits on the ordinary path (the validate stage runs it, and it is the only
|
|
713
|
-
writer of the manifest); its enabling config carries a default in the loader, so
|
|
714
|
-
it resolves in every deployed configuration rather than only under a test
|
|
715
|
-
harness. Consumed by `check-producer-liveness` through the entry-preflight hook
|
|
716
|
-
and, inheriting it with no extra wiring, by that hook's read-only simulate mode.
|
|
717
|
-
Both fields have named readers at named transitions: `pid` at three — the gate
|
|
718
|
-
at the stage-entry transition, `run-validate` at run start on a failed claim
|
|
719
|
-
(the refusal), and its `EXIT` trap at release, compared against the running
|
|
720
|
-
shell to answer *is this still ours*; `run key` at the two transitions where a
|
|
721
|
-
refusal line is composed, whose reader is the operator standing at that refusal
|
|
722
|
-
choosing between waiting and reclaiming. Reclaimed by the `EXIT` trap, by the
|
|
723
|
-
readers' liveness predicate making a leak inert, and by the consumer's
|
|
724
|
-
scratch-boundary wipe.
|
|
725
|
-
- **Baseline line** — produced by human commits (initial seed, promotions);
|
|
726
|
-
consumed by `diff-baseline.sh` (the per-scenario diff) and
|
|
727
|
-
`check-evidence-baseline` (grammar, liveness, coverage).
|
|
728
|
-
- **Skip record** — produced by a consumer harness that self-skips a scenario;
|
|
729
|
-
consumed by `diff-baseline.sh`. An absent file means no skips.
|
|
730
|
-
- **Per-suite parser override** — produced by consumer config
|
|
731
|
-
(`EVIDENCE_KIT_PARSER_<suite>`); read by `ek_parser_for`, and so by the
|
|
732
|
-
`ek_parse` dispatch and `run-validate`'s effective-parser diagnostic, reaching
|
|
733
|
-
both spine tools.
|
|
734
|
-
- **Scenario line** — produced by the resolved parser from the captured log;
|
|
735
|
-
consumed by `ek_diff` (the per-scenario diff) and by the evidence line's
|
|
736
|
-
`pass=`/`fail=`/`ignore=` counts. Per-gate granularity changes the line's
|
|
737
|
-
population, not its shape, so those readers are unchanged.
|
|
738
|
-
- **Truncation** — produced by `enter-stage.sh` at the scope boundary reading
|
|
739
|
-
`LIFECYCLE_KIT_BOUNDARY_TRUNCATE`; consumed by assertion (B)'s foreign-iteration
|
|
740
|
-
test, which is what makes skipping it visible.
|