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,383 +1,34 @@
|
|
|
1
|
-
CONSUMER BINDING — create `.claude/commands/agent-execution.md` as a binding
|
|
2
|
-
shim naming this template (a header `Execute the template at <path>, applying
|
|
3
|
-
the bindings below.` then a `## Bindings` section) and bind its two slots — the
|
|
4
|
-
shared-file roster and the validate battery. The full delegated-`Agent`
|
|
5
|
-
execution protocol (any stage, any purpose — an audit, a build sweep, a one-off
|
|
6
|
-
investigation). A resident pointer in CLAUDE.md §Agent execution keeps the
|
|
7
|
-
protocol reachable from a delegating session; this skill is the complete
|
|
8
|
-
procedure.
|
|
1
|
+
CONSUMER BINDING — create `.claude/commands/agent-execution.md` as a binding shim naming this template (a header `Execute the template at <path>, applying the bindings below.` then a `## Bindings` section) and bind its two slots — the shared-file roster and the validate battery. The full delegated-`Agent` execution protocol (any stage, any purpose — an audit, a build sweep, a one-off investigation). A resident pointer in the consumer's agent file keeps the protocol reachable from a delegating session; this skill is the complete procedure.
|
|
9
2
|
|
|
10
|
-
For a **deletion, rename, or heavy cross-spec audit** dispatch, also load the
|
|
11
|
-
mechanical pre-flight in [dispatch-checklists.md](dispatch-checklists.md) — a
|
|
12
|
-
reach-through, not a change to this protocol; every rule below still applies.
|
|
3
|
+
For a **deletion, rename, or heavy cross-spec audit** dispatch, also load the mechanical pre-flight in [dispatch-checklists.md](dispatch-checklists.md) — a reach-through, not a change to this protocol; every rule below still applies.
|
|
13
4
|
|
|
14
|
-
|
|
15
|
-
will act on are durable before you act on them** — bind a dispatched role that
|
|
16
|
-
fires no trigger loading this template, so each is also stated as a bare
|
|
17
|
-
imperative in the consumer's always-loaded agent definition under
|
|
18
|
-
delegation-kit/SPEC.md §Operative residency. That copy is sanctioned rather than
|
|
19
|
-
drift: do not delete it on sight, and when either rule changes here, propagate.
|
|
5
|
+
Four passages below — the **Background + notification, never poll** and **Findings you will act on are durable before you act on them** bullets, and the child-side clauses of isolation cost **(3)**, the resume check included — bind a dispatched role that fires no trigger loading this template, so each is also stated as a bare imperative in the consumer's always-loaded agent definition under delegation-kit/SPEC.md §Operative residency. That copy is sanctioned rather than drift: do not delete it on sight, and when any of the four changes here, propagate.
|
|
20
6
|
|
|
21
|
-
- **Supervisor owns rulings; agents surface, never guess.** SECURITY and design
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- **
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
and what that reliably kills is the **observer, not the work**: an `Agent`
|
|
32
|
-
child is reaped with its parent, but a shell `run_in_background` child
|
|
33
|
-
survives — orphaned, still writing, with nothing left able to read it. The
|
|
34
|
-
survivor is the worse case, because it keeps mutating shared files while the
|
|
35
|
-
next actor moves against them. Either way the caller gets no result, so a
|
|
36
|
-
dispatched agent **never ends a turn on work still running** — it awaits its
|
|
37
|
-
own long-running work to completion, however long, and reports only results
|
|
38
|
-
it holds. Awaiting, not "dispatch in the foreground": foreground is a choice
|
|
39
|
-
for a shell command and not reliably one for an `Agent` dispatch, which the
|
|
40
|
-
harness may detach whether or not backgrounding was requested. And not by
|
|
41
|
-
ending the turn to wait for the completion notification — that is the one act
|
|
42
|
-
that revokes the channel, which is how a *careful* reader reaches this
|
|
43
|
-
failure. Wait **in-turn on a condition** instead: loop on the work's own
|
|
44
|
-
artifact (evidence file, lock, exit marker). Never-poll governs waiting on an
|
|
45
|
-
`Agent`'s completion notification, a channel a supervisor has;
|
|
46
|
-
condition-waiting is the only one a dispatched role has.
|
|
47
|
-
**Which primitive — the one whose wait ends when the condition goes true, not
|
|
48
|
-
when a duration expires.** The harness offers two forms with opposite
|
|
49
|
-
reactivity, and the difference is exactly the wall-clock property this rule
|
|
50
|
-
exists to buy. **Background a command that *exits* on the condition** — a
|
|
51
|
-
`run_in_background` shell command wrapping `until <cond>; do sleep N; done` —
|
|
52
|
-
and it fires one notification the moment the condition holds, then ends: that
|
|
53
|
-
is the sanctioned form. The harness's **event-stream form**, armed with a
|
|
54
|
-
command and a deadline, emits one event per occurrence and **stays armed to
|
|
55
|
-
its deadline even after the event fires**, so used for a single completion it
|
|
56
|
-
converts a wait that should end in seconds into one that ends at the timeout —
|
|
57
|
-
the wrong tool for a completion, and named here because a reader told only
|
|
58
|
-
about the first form reaches for this one the next time the shape looks close.
|
|
59
|
-
Never a bare foreground `sleep`, which ends on neither.
|
|
60
|
-
**What you wait *on* splits two ways, and the split is what makes the artifact
|
|
61
|
-
reachable.** An **`Agent` dispatch** is awaited by its **completion
|
|
62
|
-
notification** — that record is the harness's, not the session's — so never go
|
|
63
|
-
looking for it on disk. A **shell child** has no notification channel of its
|
|
64
|
-
own, so it is awaited on an artifact *the session placed*, and that artifact is
|
|
65
|
-
named: **record the child's PID at launch**, one line in the form
|
|
66
|
-
`pid=<n> run=<key>`, in a file named **`<key>.run`** — the same `<key>`, so the
|
|
67
|
-
name carries no field the line does not — written where the **Resume journal —
|
|
68
|
-
agent writes, scratch reset sweeps** bullet below sends a journal, repo-local
|
|
69
|
-
gitignored scratch in the main checkout, on that bullet's stated survivability
|
|
70
|
-
grounds — widened here from the journal to any artifact a session waits on.
|
|
71
|
-
That record *is* the wait target: loop on its PID's liveness and the loop ends
|
|
72
|
-
when the PID stops answering. Write it at the launch, not after, and leave it
|
|
73
|
-
behind — a completion marker answers *is it done* to a live observer, and the
|
|
74
|
-
case this rule exists for is the one where the observer is gone, where a
|
|
75
|
-
liveness record still answers *is it still running* to whoever arrives next.
|
|
76
|
-
Whoever that is reads it with `check-producer-liveness <record>` — or, because
|
|
77
|
-
the `.run` suffix makes the set a glob rather than a path someone must be told,
|
|
78
|
-
`check-producer-liveness <scratch-dir>` over all of them at once — unchanged
|
|
79
|
-
and already wired (evidence-kit/SPEC.md §check-producer-liveness), which is why
|
|
80
|
-
the record is in that gate's grammar rather than a shape of your own.
|
|
81
|
-
**Delete the record when its producer is done, and never before.** While one
|
|
82
|
-
names a live PID, a guard blocks every `git` command that writes the index, the
|
|
83
|
-
worktree or a ref (guard-kit/SPEC.md §The generic ruleset, rule 14) — a commit
|
|
84
|
-
taken under a live producer dirties the tree it is measuring and costs that
|
|
85
|
-
run's whole verdict. Deleting a record whose producer has exited is not a way
|
|
86
|
-
around the block: it is a statement of fact that has become false being
|
|
87
|
-
retracted.
|
|
88
|
-
**And never by pattern-matching the process table.** `pgrep -f '<pattern>'`
|
|
89
|
-
matches the waiter's own argv — the harness's wrapper argv matches too — so
|
|
90
|
-
`until ! pgrep -f '<script>'; do …; done` can never go false and never exits,
|
|
91
|
-
reddening nothing while it burns the whole foreground cap. Where liveness *is*
|
|
92
|
-
the condition, match a **recorded PID** (`kill -0 "$pid"`) and never a pattern —
|
|
93
|
-
one rule, whoever started the producer, your own backgrounded child included: a
|
|
94
|
-
PID is an identity, a pattern is a guess about a process table that includes the
|
|
95
|
-
guesser. The
|
|
96
|
-
bracket-trick repair (`pgrep -f '[r]un-smoke.sh'`) is **not** the sanctioned
|
|
97
|
-
form, and its grounds for being refused are
|
|
98
|
-
delegation-kit/SPEC.md §The delegation model's.
|
|
99
|
-
- **Serialize on shared files; ≤`DELEGATION_KIT_FAN_WIDTH`-wide otherwise.**
|
|
100
|
-
Agents that edit a shared file (see the roster below) run one at a time —
|
|
101
|
-
dispatch, await notification, verify, dispatch the next. Independent
|
|
102
|
-
read-only units may run ≤`DELEGATION_KIT_FAN_WIDTH`-wide. **The git index and
|
|
103
|
-
HEAD are shared files for every agent that commits**, independent of
|
|
104
|
-
source-file disjointness: two committing agents racing `git add`/`git commit`
|
|
105
|
-
interleave and one sweeps the other's staged files under the wrong message. So
|
|
106
|
-
agents that each commit must be **serialized** *or* run under
|
|
107
|
-
`isolation: worktree` (own index); reserve the unlocked
|
|
108
|
-
≤`DELEGATION_KIT_FAN_WIDTH`-wide bound for **read-only** fan-outs. "No lockfile
|
|
109
|
-
churn" is a false safety signal — the index is shared regardless.
|
|
110
|
-
Serialization is by **completion**, not by notification: the next dispatch
|
|
111
|
-
begins after the previous one has *returned and been verified*. A supervisor
|
|
112
|
-
reaches that point via the completion notification; a **dispatched agent**
|
|
113
|
-
reaches it in-turn, awaiting each child before dispatching the next (it cannot
|
|
114
|
-
end its turn to wait — see the backgrounding rule). The ordering requirement
|
|
115
|
-
is identical for both; only the waiting mechanism differs, and neither role
|
|
116
|
-
may overlap two agents on a shared file or the git index.
|
|
117
|
-
- **Never dispatch a fork to narrow a child.** A fork is wrong exactly when the
|
|
118
|
-
dispatch's purpose is that the child does *less* than the parent: a fork
|
|
119
|
-
inherits the parent's context, toolset and model tier whole and disclaims
|
|
120
|
-
nothing, so every narrowing survives only as a sentence in the prompt. Three
|
|
121
|
-
dispatching contexts, each with its own grounds. A **read-only audit or
|
|
122
|
-
survey** wants narrower *authority* — the fork carries the parent's full
|
|
123
|
-
reach, so the restriction is a request, and one such fork completed a whole
|
|
124
|
-
stage, commits included. A **tier-split oracle** wants narrower *cost* — the
|
|
125
|
-
fork inherits the dispatcher's model, which is exactly the split the posture
|
|
126
|
-
exists to make (a lead posture that dispatches its own oracle is the named
|
|
127
|
-
instance). A **rule-injection dispatch** wants a *different* brief — attested
|
|
128
|
-
where five sibling forks each carried a line explaining that the roster's
|
|
129
|
-
agent definitions do not carry it, so fork was chosen to inject rules the
|
|
130
|
-
types lack and every one still paid to re-materialize its parent's context.
|
|
131
|
-
The boundary, stated honestly: a fork stays correct where the child does the
|
|
132
|
-
**same job at the same authority** and only parallelism or isolation is
|
|
133
|
-
wanted. The dispatch guard blocks there too, because a hook cannot read
|
|
134
|
-
intent and no sanctioned fork use exists in this doctrine — the valve is
|
|
135
|
-
unregistering the hook, never a per-dispatch knob, which would restore the
|
|
136
|
-
honour system the rule replaced (delegation-kit/SPEC.md §The delegation
|
|
137
|
-
model). Grounds measured rather than asserted: in one audited iteration ten
|
|
138
|
-
of twenty-four dispatched agents were forks, carrying 20.90 USD of 158.70 USD
|
|
139
|
-
of priced burn.
|
|
140
|
-
- **A read-only claim is made by isolation, not by sentence.** A brief saying
|
|
141
|
-
"read-only, no edits" makes no claim: a subagent inherits its toolset from its
|
|
142
|
-
**type**, never from the instruction text. The claim is made by
|
|
143
|
-
`isolation: worktree`. Take it for an agent that *will* commit — an **own
|
|
144
|
-
index**, the **Serialize on shared files** rule above — and for any agent
|
|
145
|
-
*claimed* read-only, as **write confinement**. Grounds for this rule and the
|
|
146
|
-
next: delegation-kit/SPEC.md §The delegation model.
|
|
147
|
-
- **Isolation charges three harness costs, and paying them is the parent's job.**
|
|
148
|
-
**(1) The worktree's base is configuration, and the default is not HEAD.**
|
|
149
|
-
`worktree.baseRef` selects it: `fresh` (the default) branches from
|
|
150
|
-
`origin/<default-branch>`, `head` from the dispatcher's local HEAD. Set it
|
|
151
|
-
deliberately, and pin it, before you design around it. Under `fresh` a child
|
|
152
|
-
reads the *pre-change* tree: read your exposure with
|
|
153
|
-
`git log origin/<default-branch>..HEAD` before dispatching. Naming a commit in
|
|
154
|
-
the prompt does not make the checkout that commit, so state the rev and have
|
|
155
|
-
the child verify it with `git rev-parse HEAD` and read every target with
|
|
156
|
-
`git show <rev>:<path>`. **A child whose target is unreadable at that rev stops
|
|
157
|
-
and says so**, and never falls back to the dispatch prompt's own paraphrase of
|
|
158
|
-
it. **(2) The worktree lands inside the repo and untracked**, so an in-flight
|
|
159
|
-
isolated agent reads as a dirty tree and aborts every clean-tree precondition —
|
|
160
|
-
a consumer smoke, a packaging step, any commit. Gitignore the path, and reap
|
|
161
|
-
agents at the boundary with `git worktree list` rather than off `git status`.
|
|
162
|
-
**(3) An isolated child sees only committed state.** Untracked and gitignored
|
|
163
|
-
files are in no commit, so no base ref reaches them and naming a rev does not
|
|
164
|
-
help. **A sweep whose corpus includes an untracked surface is not delegable to
|
|
165
|
-
an isolated agent**: read that surface yourself, or pass its content in the
|
|
166
|
-
prompt.
|
|
167
|
-
- **One commit per unit, sized to finish within budget.** Each unit gets its own
|
|
168
|
-
commit (+ a `[blocked-by: prior]` tag where ordered). A unit that investigates
|
|
169
|
-
long before its first commit is the only thing an interrupt can destroy —
|
|
170
|
-
split it. Trigger to split: >4 components, OR mixes mechanical + architectural
|
|
171
|
-
work, OR >300 tool calls estimated.
|
|
172
|
-
- **Gate-driven worklist where one exists.** Drive the sweep from the gate's
|
|
173
|
-
output, so an interrupt loses only the in-flight uncommitted unit and a fresh
|
|
174
|
-
session re-runs the gate to resume.
|
|
175
|
-
- **Resume journal — agent writes, scratch reset sweeps.** The agent `Write`s a
|
|
176
|
-
running progress journal (findings triaged, edits applied, what remains) to a
|
|
177
|
-
repo-local gitignored scratch dir in the main checkout — `.tmp/` here — never a
|
|
178
|
-
temporary worktree (deleted with the worktree) nor a system temp dir (a restart
|
|
179
|
-
wipes it); name the path **absolute into the main checkout** in the dispatch
|
|
180
|
-
prompt so a worktree-isolated agent writes to the surviving tree, not its doomed
|
|
181
|
-
one. Repo-dir-local scratch is reboot-survivable, cheap to clean, and predictable
|
|
182
|
-
across coding agents. The agent updates it as it goes; on success it appends a
|
|
183
|
-
`DONE` marker. Each finding is
|
|
184
|
-
written into the journal *inline as it is confirmed* — never "see final
|
|
185
|
-
output": the agent's return message dies with the session, so a pointer-only
|
|
186
|
-
journal makes `DONE` lie about recoverability. **Nobody deletes a journal
|
|
187
|
-
while the work it covers is live** — not the agent (no `rm`) and not the
|
|
188
|
-
supervisor, whose deletion would take the file out from under a resumed agent
|
|
189
|
-
and destroy its own pull channel mid-unit. Cleanup is the consumer's scratch
|
|
190
|
-
reset at its next work-unit boundary, not a chore in this protocol. `DONE` is
|
|
191
|
-
the completion marker and counts **only as the file's last line**: a session
|
|
192
|
-
resumed past its own marker appends after it. A journal *without* a `DONE`
|
|
193
|
-
marker signals interruption only in a **cold read**
|
|
194
|
-
— the supervisor found a journal but never consumed the agent's return (its
|
|
195
|
-
session died before returning); there, no `DONE` = interrupted, resume from
|
|
196
|
-
it. On the ordinary path the supervisor consumed the return and ran its
|
|
197
|
-
post-commit verification, which *is* the completion attest, so the missing
|
|
198
|
-
marker is redundant, not a signal of interruption. Since every journal now
|
|
199
|
-
outlives its session, presence alone signals nothing — tell a live journal
|
|
200
|
-
from a spent one by its per-session name, the work cursor, and `git log`
|
|
201
|
-
(delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset
|
|
202
|
-
sweeps). **Caveat — a background agent's sandbox may block
|
|
203
|
-
the journal write.** `run_in_background` agents have been observed unable to
|
|
204
|
-
`Write` to the granted path and silently falling back to returning findings in
|
|
205
|
-
their final message — which makes the journal mechanic non-functional exactly
|
|
206
|
-
when it matters (a long, interruptible run). So: for a **read-only fan-out**
|
|
207
|
-
(audit, survey), the return value *is* the contract — don't rely on a journal.
|
|
208
|
-
Reserve the **journal** for agents that **mutate files**, and for those grant
|
|
209
|
-
the journal path explicitly before dispatch rather than assuming the write
|
|
210
|
-
succeeds. **Worktree isolation is not reserved with it** — the two answer
|
|
211
|
-
different questions, and bundling them read as *a read-only fan-out needs no
|
|
212
|
-
isolation*, which is the reading that licensed an unreviewed commit on the
|
|
213
|
-
shared branch. A read-only fan-out takes isolation precisely *because* it is
|
|
214
|
-
claimed read-only (the **A read-only claim is made by isolation, not by
|
|
215
|
-
sentence** rule above). A contract has two ends, though: the child owes
|
|
216
|
-
no journal, and the **parent** owes the durable landing of what it received
|
|
217
|
-
before acting on it (next bullet). The caveat is about a backgrounded child's
|
|
218
|
-
write failing silently, so it never licensed the parent — which has already
|
|
219
|
-
demonstrated it can write, being the session that granted the path.
|
|
220
|
-
- **A child's only upward route is a durable artifact.** Probed, not assumed: a
|
|
221
|
-
child's sends to an invented dispatcher name and to its own agent type both
|
|
222
|
-
failed, only a send addressed to the **top-level session** arrived, and
|
|
223
|
-
neither level knows its own identity or its parent's. There is therefore no
|
|
224
|
-
address a child can use to reach the agent that dispatched it, and four
|
|
225
|
-
dispositions follow. **(1) A durable artifact, for anything mid-run** — the
|
|
226
|
-
dispatcher mints a path, names it **absolute into the main checkout** in the
|
|
227
|
-
prompt, and the child writes as it goes. That is already the journal rule
|
|
228
|
-
above; it is now also the *only* upward route there is, and it is stronger
|
|
229
|
-
than a message would be, because a file survives a child that dies before
|
|
230
|
-
returning. A **stop signal takes the same shape** — a sentinel the child
|
|
231
|
-
checks — so it is cooperative by construction and a wedged child stays out of
|
|
232
|
-
reach. **(2) Return-value only, otherwise** — a fan-out needing no mid-run
|
|
233
|
-
channel needs no artifact, which is the read-only carve-out above. **(3) The
|
|
234
|
-
downward half is a dispatch-shape rule** — a dispatcher that wants control
|
|
235
|
-
over its fan-out dispatches in the background and keeps the handle; what
|
|
236
|
-
actually failed was a dispatcher blocked on a foreground dispatch, holding
|
|
237
|
-
neither the handle nor a turn. **(4) Naming the address a child should use is
|
|
238
|
-
refused** — there is none, and the refusal is stated rather than omitted
|
|
239
|
-
because it is the first thing both original filings reached for. Two
|
|
240
|
-
corollaries defeat the workarounds a reader would otherwise invent: a message
|
|
241
|
-
that does reach the top-level session is attributed to the sender's **type**,
|
|
242
|
-
so a fan-out wider than one is ambiguous at the receiving end; and a child
|
|
243
|
-
resumed by a message from its dispatcher still cannot reply, so being
|
|
244
|
-
addressed creates no return path. One live hazard rides with them: the
|
|
245
|
-
message and stop tools may be **deferred** for a dispatched agent — callable
|
|
246
|
-
only after a discovery call it has to know to make — so a child that needs to
|
|
247
|
-
escalate may not hold the channel at all. Hence the obligation, which is the
|
|
248
|
-
part that binds you: **a dispatcher handing out work that will need a mid-run
|
|
249
|
-
channel grants a durable path with it**, and reads that path itself.
|
|
7
|
+
- **Supervisor owns rulings; agents surface, never guess.** SECURITY and design rulings (e.g. a privileged caller set, a naming collision) are decided by the supervisor and handed down; an agent that hits anything its brief doesn't cover stops and reports rather than choosing.
|
|
8
|
+
- **Background + notification, never poll.** Always `run_in_background`; wait for the completion notification; do not read the output file. Backgrounding keeps the main loop free to redirect. Backgrounding survives a **turn**, not a **session**. A supervisor's turn ends and its session lives on, so a backgrounded dispatch wakes it by notification — that is the sanctioned pattern just stated. A **dispatched agent's** turn end *is* its session end, and what that reliably kills is the **observer, not the work**: an `Agent` child is reaped with its parent, but a shell `run_in_background` child survives — orphaned, still writing, with nothing left able to read it. The survivor is the worse case, because it keeps mutating shared files while the next actor moves against them. Either way the caller gets no result, so a dispatched agent **never ends a turn on work still running** — it awaits its own long-running work to completion, however long, and reports only results it holds. Awaiting, not "dispatch in the foreground": foreground is a choice for a shell command and not reliably one for an `Agent` dispatch, which the harness may detach whether or not backgrounding was requested. And not by ending the turn to wait for the completion notification — that is the one act that revokes the channel, which is how a *careful* reader reaches this failure. Wait **in-turn on a condition** instead: loop on the work's own artifact (evidence file, lock, exit marker). Never-poll governs waiting on an `Agent`'s completion notification, a channel a supervisor has; condition-waiting is the only one a dispatched role has. **Which primitive — the one whose wait ends when the condition goes true, not when a duration expires.** The harness offers two forms with different reactivity, and the difference is exactly the wall-clock property this rule exists to buy. **Background a command that *exits* on the condition** — a `run_in_background` shell command wrapping `until <cond>; do sleep N; done` — and it fires one notification the moment the condition holds, then ends: that is the sanctioned form, and it holds that place on measurement rather than on preference (delegation-kit/SPEC.md §bin/wait-probe). The harness's **event-stream form**, armed with a command and a deadline, emits one event per occurrence and stays armed to its deadline after the event fires **when the command it was armed with is unbounded** — a `tail -f`, a `while true` — so pointed at a single completion by way of such a command it converts a wait that should end in seconds into one that ends at the timeout. Armed with a command that *exits*, that watch ends too: it is the second choice for a single completion, not a broken one, and it is named here because a reader told only about the first form reaches for this one the next time the shape looks close. Never a bare foreground `sleep`, which ends on neither. **Get the loop's polarity right — the two rules in this bullet compose into a trap, and it is the one that has actually fired.** `until` ends when its condition becomes **true**, so `until` takes a *done* predicate: `until [ -f <marker> ]; do sleep N; done`. Liveness is a *still-running* predicate, so it takes `while`: `while kill -0 <pid> 2>/dev/null; do sleep N; done`, `<pid>` the literal from the record, never `$pid`. Composing "wrap `until <cond>`" with "loop on the recorded PID's liveness" literally gives `until kill -0 <pid>`, whose condition is true while the producer is **alive** — so it exits at once. **The tell** is a waiter that exited **zero**, in milliseconds, with its producer still running and its condition never met. Neither keyword costs anything at the guard, which reads the loop's span and not its keyword. **What you wait *on* splits two ways, and the split is what makes the artifact reachable.** An **`Agent` dispatch** is awaited by its **completion notification** — that record is the harness's, not the session's — so never go looking for it on disk. A **shell child** has no notification channel of its own, so it is awaited on an artifact *the session placed*, and which artifact depends on what the child **is**. A **producer** — a child that writes anything a later reader must not race — is awaited on a **liveness record you write at its launch**, one line in the form `pid=<n> run=<key>`, in a file named **`<key>.run`** — the same `<key>`, so the name carries no field the line does not — written where the **Resume journal — agent writes, scratch reset sweeps** bullet below sends a journal, repo-local gitignored scratch in the main checkout, on that bullet's stated survivability grounds, widened here from the journal to any artifact a session waits on. An **observer** — a wait loop, a read-only pipeline, anything that writes nothing — **writes no record**. **Launch and record in one call, in the spelling the guard grants**: guard-kit's rule *Backgrounded launch that records no producer* (guard-kit/SPEC.md §The generic ruleset) owns the spelling and enforces the same producer/observer split, exempting an **inline** wait loop and a read-only pipeline from the record. It refuses any other launch that writes no record, and a record written in any other spelling costs a permission decision on its `$!`. Spell a wait inline so it meets that exemption; a wait behind a script or binary name is invisible to the guard's span walk and takes the record like any launch. **A call the harness moves to the background on its timeout is a launch you did not make, and it is yours.** The result says so ("moved to the background"), and nothing recorded it. Prevent it: give a foreground call a timeout above the command's run, and launch anything that can outrun that timeout backgrounded, with its record, as above. If a call is moved anyway, it is a live producer from that moment. Where it names its own pid (a lock, a printed pid), write its `<key>.run` record from that pid at once. Either way, end no turn and write nothing to the tracked tree until its completion notification arrives. **A recorded wait owes one check before it starts: can my own record falsify my condition?** Such a wait is only safe where its condition is independent of the record set. A condition that *reads* the record set, directly or through a gate that does — a stage entry, a commit, any tracked-tree write — is falsified by the waiter's own record and can never go true. Two lawful answers: respell the wait inline so it owes no record, or wait on the artifact itself rather than on the gate that reads the record set. A producer's record *is* the wait target: loop on its PID's liveness — `while kill -0 <pid> 2>/dev/null; do sleep N; done`, on the polarity rule above — and the loop ends when the PID stops answering. Write it at the launch, not after, and leave it behind — a completion marker answers *is it done* to a live observer, and the case this rule exists for is the one where the observer is gone, where a liveness record still answers *is it still running* to whoever arrives next. Whoever that is reads it with `check-producer-liveness <record>` — or, because the `.run` suffix makes the set a glob rather than a path someone must be told, `check-producer-liveness <scratch-dir>` over all of them at once — unchanged and already wired (evidence-kit/SPEC.md §check-producer-liveness), which is why the record is in that gate's grammar rather than a shape of your own. **Delete the record when its producer is done, and never before.** While one names a live PID, a guard blocks every `git` command that writes the index, the worktree or a ref (guard-kit rule `git_mutation_under_producer`) — a commit taken under a live producer dirties the tree it is measuring and costs that run's whole verdict. Deleting a record whose producer has exited is not a way around the block: it is a statement of fact that has become false being retracted. **And never by pattern-matching the process table.** `pgrep -f '<pattern>'` matches the waiter's own argv — the harness's wrapper argv matches too — so `until ! pgrep -f '<script>'; do …; done` can never go false and never exits, reddening nothing while it burns the whole foreground cap. Where liveness *is* the condition, match a **recorded PID** (`while kill -0 <pid> 2>/dev/null`) and never a pattern — one rule, whoever started the producer, your own backgrounded child included: a PID is an identity, a pattern is a guess about a process table that includes the guesser. The bracket-trick repair (`pgrep -f '[r]un-smoke.sh'`) is **not** the sanctioned form, and its grounds for being refused are delegation-kit/SPEC.md §The delegation model's.
|
|
9
|
+
- **Serialize on shared files; ≤`DELEGATION_KIT_FAN_WIDTH`-wide otherwise.** Agents that edit a shared file (see the roster below) run one at a time — dispatch, await notification, verify, dispatch the next. Independent read-only units may run ≤`DELEGATION_KIT_FAN_WIDTH`-wide. **The git index and HEAD are shared files for every agent that commits**, independent of source-file disjointness: two committing agents racing `git add`/`git commit` interleave and one sweeps the other's staged files under the wrong message. So agents that each commit must be **serialized** *or* run under `isolation: worktree` (own index); reserve the unlocked ≤`DELEGATION_KIT_FAN_WIDTH`-wide bound for **read-only** fan-outs. "No lockfile churn" is a false safety signal — the index is shared regardless. Serialization is by **completion**, not by notification: the next dispatch begins after the previous one has *returned and been verified*. A supervisor reaches that point via the completion notification; a **dispatched agent** reaches it in-turn, awaiting each child before dispatching the next (it cannot end its turn to wait — see the backgrounding rule). The ordering requirement is identical for both; only the waiting mechanism differs, and neither role may overlap two agents on a shared file or the git index.
|
|
10
|
+
- **Never dispatch a fork to narrow a child.** A fork is wrong exactly when the dispatch's purpose is that the child does *less* than the parent: a fork inherits the parent's context, toolset and model tier whole and disclaims nothing, so every narrowing survives only as a sentence in the prompt. Three dispatching contexts, each with its own grounds. A **read-only audit or survey** wants narrower *authority* — the fork carries the parent's full reach, so the restriction is a request. A **tier-split oracle** wants narrower *cost* — the fork inherits the dispatcher's model, which is exactly the split the posture exists to make (a lead posture that dispatches its own oracle is the named instance). A **rule-injection dispatch** wants a *different* brief — a fork chosen to inject rules the agent types lack still pays to re-materialize its parent's context. The boundary, stated honestly: a fork stays correct where the child does the **same job at the same authority** and only parallelism or isolation is wanted. The dispatch guard blocks there too, because a hook cannot read intent and no sanctioned fork use exists in this doctrine — the valve is unregistering the hook, never a per-dispatch knob, which would restore the honour system the rule replaced (delegation-kit/SPEC.md §The delegation model).
|
|
11
|
+
- **A read-only claim is made by isolation, not by sentence.** A brief saying "read-only, no edits" makes no claim: a subagent inherits its toolset from its **type**, never from the instruction text. The claim is made by `isolation: worktree`. Take it for an agent that *will* commit — an **own index**, the **Serialize on shared files** rule above — and for any agent *claimed* read-only, as **write confinement**. Grounds for this rule and the next: delegation-kit/SPEC.md §The delegation model.
|
|
12
|
+
- **Isolation charges five harness costs, and paying them is the parent's job.** **(1) The worktree's base is configuration, and the default is not HEAD.** `worktree.baseRef` selects it: `fresh` (the default) branches from `origin/<default-branch>`, `head` from the dispatcher's local HEAD. Set it deliberately, and pin it, before you design around it. Under `fresh` a child reads the *pre-change* tree: read your exposure with `git log origin/<default-branch>..HEAD` before dispatching. Naming a commit in the prompt does not make the checkout that commit, so state the rev and have the child verify it with `git rev-parse HEAD` and read every target with `git show <rev>:<path>`. **A child whose target is unreadable at that rev stops and says so**, and never falls back to the dispatch prompt's own paraphrase of it. **(2) The worktree lands inside the repo and untracked**, so an in-flight isolated agent reads as a dirty tree and aborts every clean-tree precondition — a consumer smoke, a packaging step, any commit. Gitignore the path, and **reap what you minted at your own turn end**, by `git worktree list` rather than off `git status`: once ignored, the status is clean while the worktree still stands. Reap **both** halves: `git worktree remove` clears the directory and leaves the agent's branch ref standing, so delete that ref in the same motion, or the refusal clears while the refs accrete unseen. Reap **your own** trees, never every tree you can see; the iteration-boundary refusal — which refuses to enter while any linked worktree exists (lifecycle-kit/SPEC.md §bin/enter-stage.sh) — stays the **backstop**, not the schedule. **And the pid in a worktree's lock reason is the harness's, not an agent liveness signal.** Where a harness locks the tree it writes its own supervising process's pid there, not the dispatched agent's: that process is alive for as long as your session is and carries the same pid across every dispatch and across an iteration boundary, so probing it answers *still in use* for a tree nobody holds. Judge the tree by what it carries, a clean `git status --porcelain` inside it and nothing past its base, and by whether you know a dispatch is in flight; never by that pid. **(3) An isolated child sees only committed state.** Untracked and gitignored files are in no commit, so no base ref reaches them and naming a rev does not help. **A sweep whose corpus includes an untracked or gitignored surface names that surface absolute into the main checkout** in the prompt. The child reads a named file there with the harness's read tool, and searches under it only with a read-only pipeline of the shell guard's read-only roster. Under guard-kit, its rule *A main-checkout path from a linked worktree* admits that form and refuses every other shell command naming the main checkout outside its scratch dir, and its refusal names the roster. Tell the child so in the prompt when the type's definition does not. Classify the corpus before you dispatch rather than after you read the answer; `git check-ignore` decides it. **And the child's side of it, on cost (4)'s pattern:** a target absent inside isolation because it is untracked or gitignored is a **blindness**, never a finding of absence — name the path, say it was unreadable at this rev, and return. And one more check on the child's side, at every resume as well as at the start: dispatched under isolation, confirm that your top level is a linked worktree (`git rev-parse --git-dir` differs from `git rev-parse --git-common-dir`). If it is not, your isolation is gone: stop, say so, and return without running the work. **(4) A gate dispatched to a compiled binary resolves inside an isolated worktree when the main checkout's binary matches the worktree's source, and never by a build.** The front end links that binary into the worktree after comparing source stamps (gate-sdk/SPEC.md §lib/gate.sh, `gate_verdict_bin`); a skewed or absent one leaves the gate unavailable, which inside isolation is **the expected reading, not a defect to repair**: do not read it as a verdict, and **do not build the binary**. Name the gate that could not run, say why, and return. A worktree verdict omits the main checkout's gitignored overlays — a `.local.knobs` file, a local pattern list — so a sweep whose conclusion turns on one names it absolute, as (3) does. **The dispatcher's half:** an oracle-running sweep is delegable into isolation; classify only whether its oracle reads a gitignored overlay. **One exception, and it is the consumer's to supply rather than yours to assume**: the **turn-end liveness reader** may already be resolved for you by the consumer's adapter (delegation-kit/SPEC.md §The turn-end liveness hook (template)), so the refusal that used to meet an isolated agent at every turn end — the one that invited the mutating remedy — need not fire. Nothing else here moves. Every other binary-dispatched gate still resolves inside a worktree only as (4) states, and the **do-not-build** prohibition is unchanged for all of them, that one included. **(5) Your report can be displaced, and the recovery is written down because a parent meeting one has no reason to believe the report still exists.** The harness returns only a dispatched session's **last** assistant message, so any turn-end hook that speaks overwrites whatever you returned. Recovery: **resume the child by id and ask it to re-emit its report verbatim, telling it explicitly not to re-run the work.** Two limits. It is **not reliable** — a resume may answer that the session has just started, leaving the sweep to be re-run. And the usage block is **no signal either**: a successful re-emit can report the *original* run's tool count and tokens, so the zero-tool-use shape marks some resumes and not all. Still reachable from any consumer whose liveness adapter has not taken (4)'s exception, an adopter vendoring this kit today included.
|
|
13
|
+
- **One commit per unit, sized to finish within budget.** Each unit gets its own commit (+ a `[blocked-by: prior]` tag where ordered). A unit that investigates long before its first commit is the only thing an interrupt can destroy — split it. Trigger to split: >4 components, OR mixes mechanical + architectural work, OR >300 tool calls estimated.
|
|
14
|
+
- **Gate-driven worklist where one exists.** Drive the sweep from the gate's output, so an interrupt loses only the in-flight uncommitted unit and a fresh session re-runs the gate to resume.
|
|
15
|
+
- **Resume journal — agent writes, scratch reset sweeps.** The agent writes a running progress journal — an isolated agent by a shell append, since the harness refuses its file-tool writes to the main checkout — (findings triaged, edits applied, what remains) to a repo-local gitignored scratch dir in the main checkout — `.tmp/` here — never a temporary worktree (deleted with the worktree) nor a system temp dir (a restart wipes it); name the path **absolute into the main checkout** in the dispatch prompt so a worktree-isolated agent writes to the surviving tree, not its doomed one. Repo-dir-local scratch is reboot-survivable, cheap to clean, and predictable across coding agents. **Where the consumer runs a stage machine the path is derived, not invented** — it is a function of the stage, so the grant in the prompt restates a name both ends can compute rather than minting one, and several sessions of one stage **append to that one file** instead of each naming its own (lifecycle-kit/SPEC.md §The state machine). The agent updates it as it goes; on success it appends a `DONE` marker. Each finding is written into the journal *inline as it is confirmed* — never "see final output": the agent's return message dies with the session, so a pointer-only journal makes `DONE` lie about recoverability. **Spell the append as its own bare statement**, never chained after a diagnostic read on the same command line: a consumer whose permission layer auto-grants a scratch write bounds that grant to a single-statement command, so a chained append loses it and buys a permission decision on the most frequent write the protocol asks for. Measured at one close: that one spelling was a third of the session's prompting calls. **Nobody deletes a journal while the work it covers is live** — not the agent (no `rm`) and not the supervisor, whose deletion would take the file out from under a resumed agent and destroy its own pull channel mid-unit. Cleanup is the consumer's scratch reset at its next work-unit boundary, not a chore in this protocol. `DONE` is the completion marker and counts **only as the file's last line**: a session resumed past its own marker appends after it. A journal *without* a `DONE` marker signals interruption only in a **cold read** — the supervisor found a journal but never consumed the agent's return (its session died before returning); there, no `DONE` = interrupted, resume from it. On the ordinary path the supervisor consumed the return and ran its post-commit verification, which *is* the completion attest, so the missing marker is redundant, not a signal of interruption. Since every journal now outlives its session, presence alone signals nothing — tell a live journal from a spent one by the work cursor and `git log` (delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps). **Caveat — a journal write has been observed to fail, cause unexplained.** Read it as one unexplained observation, not as a property of isolation. So: grant a journal path explicitly before dispatch to every agent whose run an interruption could cost — a mutating agent, and a read-only sweep alike — rather than assuming the write succeeds; for a read-only fan-out the return value stays the contract, and its journal is the record an interruption leaves (a lifecycle-kit stage session is the standing exception — its journal path is derived by its own `--enter-stage` entry, never granted; lifecycle-kit/SPEC.md §The state machine). **Worktree isolation is not granted or withheld with the journal** — the two answer different questions, and bundling them read as *a read-only fan-out needs no isolation*, which is the reading that licensed an unreviewed commit on the shared branch. A read-only fan-out takes isolation precisely *because* it is claimed read-only (the **A read-only claim is made by isolation, not by sentence** rule above). The child journals as it goes, and the **parent** still owes the durable landing of what it received before acting on it (next bullet).
|
|
16
|
+
- **A child's only upward route is a durable artifact.** No address reaches the agent that dispatched a child — its sends resolve to neither an invented dispatcher name nor its own agent type, only a send addressed to the **top-level session** arrives, and neither level knows its own identity or its parent's. Four dispositions follow. **(1) A durable artifact, for anything mid-run** — the dispatcher mints a path, names it **absolute into the main checkout** in the prompt, and the child writes as it goes. That is already the journal rule above; it is now also the *only* upward route there is, and it is stronger than a message would be, because a file survives a child that dies before returning. A **stop signal takes the same shape** — a sentinel the child checks — so it is cooperative by construction and a wedged child stays out of reach. **(2) Return-value only, otherwise** — a fan-out needing no mid-run channel needs no artifact, which a short read-only fan-out still is. Say so in the prompt of every isolated read-only dispatch: its report is its final message, or the harness's hand-back where it has one, and it sends to no peer. **(3) The downward half is a dispatch-shape rule** — a dispatcher that wants control over its fan-out dispatches in the background and keeps the handle; what actually failed was a dispatcher blocked on a foreground dispatch, holding neither the handle nor a turn. **(4) Naming the address a child should use is refused** — there is none, and the refusal is stated rather than omitted because it is the first thing both original filings reached for. Two corollaries defeat the workarounds a reader would otherwise invent: a message that does reach the top-level session is attributed to the sender's **type**, so a fan-out wider than one is ambiguous at the receiving end; and a child resumed by a message from its dispatcher still cannot reply, so being addressed creates no return path. One live hazard rides with them: the message and stop tools may be **deferred** for a dispatched agent — callable only after a discovery call it has to know to make — so a child that needs to escalate may not hold the channel at all. Hence the obligation, which is the part that binds you: **a dispatcher handing out work that will need a mid-run channel grants a durable path with it**, and reads that path itself.
|
|
250
17
|
|
|
251
|
-
- **A finished child is addressed by the task-id its completion notification
|
|
252
|
-
carried, never by its name.** Resuming a returned agent to correct or extend
|
|
253
|
-
its work is the cheap alternative to a cold re-dispatch, and it is the one
|
|
254
|
-
that keeps the child's own reasoning instead of paying to rebuild it. The name
|
|
255
|
-
is not a durable address for that: measured here, a name live at dispatch
|
|
256
|
-
resolved to *no agent of that name is reachable* once the dispatching session
|
|
257
|
-
had been compacted, with the agent listing reporting none reachable at all,
|
|
258
|
-
while the task-id from the notification resumed the same child from its
|
|
259
|
-
transcript. Which of the two voids the name — the compaction, or the child
|
|
260
|
-
merely having finished — is untested; the task-id survived both, and the
|
|
261
|
-
notification states outright that it is the handle the child may notify under
|
|
262
|
-
again, so it is the address to hold. It is also the address to **write down**:
|
|
263
|
-
the notification lives in the context that dies, so a dispatcher who may want
|
|
264
|
-
that child later records the task-id under the durability rule below rather
|
|
265
|
-
than trusting the scroll to still be there.
|
|
18
|
+
- **A finished child is addressed by the task-id its completion notification carried, never by its name.** Resuming a returned agent to correct or extend its work is the cheap alternative to a cold re-dispatch, and it is the one that keeps the child's own reasoning instead of paying to rebuild it. A resumed isolated child runs in the main checkout, so resume it only to have it re-emit what it already holds, as isolation cost (5)'s recovery does; work that needs the tree again is a new isolated dispatch. The name is not a durable address for that: a name live at dispatch stops resolving once the dispatching session is compacted, while the task-id from the notification resumes the same child from its transcript and is the handle the notification states the child may notify under again. It is also the address to **write down**: the notification lives in the context that dies, so a dispatcher who may want that child later records the task-id under the durability rule below rather than trusting the scroll to still be there.
|
|
266
19
|
|
|
267
|
-
- **Findings you will act on are durable before you act on them.** A child's
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
returned child, not a running narration. The obligation is **durability**, and
|
|
275
|
-
committing and journalling are two ways to discharge it — a session uses
|
|
276
|
-
whichever is available to it. A dispatched session journals, to the path it was
|
|
277
|
-
granted, because it cannot commit. A top-level session commits, because it can.
|
|
278
|
-
A top-level session that *cannot* commit right now — another session is holding
|
|
279
|
-
the shared index, the normal condition while an iteration is running — journals
|
|
280
|
-
for as long as that holds, and discharges by committing when the index frees.
|
|
281
|
-
Neither the supervising role nor a session running outside any dispatch is
|
|
282
|
-
exempt: the axis is what the session can do at this moment, never what it is.
|
|
283
|
-
- **Verify after every agent commit** — a sub-agent's "passed" claim is not
|
|
284
|
-
trustworthy. Re-run the relevant gates (the sweep's own gate) and the consumer
|
|
285
|
-
validate battery below — the act is `verify`, the artifact is the battery.
|
|
286
|
-
**Never verify a unit by re-running the producer of what it delivered**: where
|
|
287
|
-
the unit's deliverable *is* an evidence artifact, the verify is a **read** of
|
|
288
|
-
the committed artifact, because re-running its sole writer overwrites or
|
|
289
|
-
duplicates the record instead of checking it. Having already run the wrong
|
|
290
|
-
check, read delegation-kit/SPEC.md §Verify after every agent commit for which
|
|
291
|
-
of the two re-runs you are holding — only one of them leaves evidence to
|
|
292
|
-
restore. **Diff every gate change in an agent commit before
|
|
293
|
-
accepting** — a gate modification inside a feature commit is a supervisor-owned
|
|
294
|
-
ruling; an agent blocked by a gate will weaken it (a false exemption) to make
|
|
295
|
-
its commit pass instead of fixing the code. "The gate is in my way" almost
|
|
296
|
-
always means the code doesn't fit the convention — fix the code.
|
|
297
|
-
`check-gate-tamper` is the mechanical floor under this bullet — it blocks the
|
|
298
|
-
two attested shapes (a gate edit co-staged with product code; a new path/glob
|
|
299
|
-
exemption co-staged with the file it excuses) — but it does **not** catch
|
|
300
|
-
semantic weakening inside a legitimate scripts-only commit, so the by-eye diff
|
|
301
|
-
review remains your duty (delegation-kit/SPEC.md §Verify after every agent
|
|
302
|
-
commit — the honest limit).
|
|
303
|
-
- **A child's citation is a pointer to verify, never evidence in itself.** A
|
|
304
|
-
returned `file:line` is not checked by confirming the range resolves: that
|
|
305
|
-
catches a wrong number and misses a wrong spelling, a moved passage, and a
|
|
306
|
-
sibling instance the sweep never reported. **Re-read the passage** in the parent
|
|
307
|
-
before acting on it. Both halves are attested here — a census that fabricated a
|
|
308
|
-
`file:line` and a negative claim, both false; and a re-verification of nineteen
|
|
309
|
-
agent-sourced cites that found no bad ranges yet still surfaced a marker cited
|
|
310
|
-
under a spelling the tree does not use, plus an entire family member the census
|
|
311
|
-
never mentioned. Quotation with attribution is precisely the signal a reader uses
|
|
312
|
-
to decide a claim has already been checked, so an unverified one defeats normal
|
|
313
|
-
trust rather than merely being wrong.
|
|
314
|
-
- **Budget-check before *each* dispatch in a fan-out**, not once at the start.
|
|
315
|
-
`bash delegation-kit/bin/usage-verdict.sh` (verdict exit 0/1/2 from `usage.txt` —
|
|
316
|
-
it folds in the reading-age and window-validity checks so a dead-window pct
|
|
317
|
-
can't read stale-high; a PAUSE names its axis — a 5h wall clears in hours, a
|
|
318
|
-
7-day wall in days). If the verdict is PAUSE and the work is large, pause for
|
|
319
|
-
reset. Width is the kill axis: the 5h wall fires mid-flight, and the agents
|
|
320
|
-
that bank are the ones that *finished* — ≤`DELEGATION_KIT_FAN_WIDTH`-wide
|
|
321
|
-
bounds the loss to the in-flight wave.
|
|
322
|
-
**Project the next wave's burn from the last wave's, not just the current
|
|
323
|
-
pct** — a read-heavy `DELEGATION_KIT_FAN_WIDTH`-wide sweep is far more
|
|
324
|
-
window-expensive than its
|
|
325
|
-
subagent-token total suggests, so size waves to leave the next one headroom, or
|
|
326
|
-
accept one wave per window.
|
|
327
|
-
**The projection reaches downward as well as forward.** The guard re-arms at
|
|
328
|
-
every depth — a dispatched session's own dispatches fire it too — but each
|
|
329
|
-
verdict prices **one call**, never the subtree that call opens. Nothing
|
|
330
|
-
between a dispatch and its children's children ever sees the whole. So budget
|
|
331
|
-
a dispatch you expect to fan out for its **subtree**, not its own turn, and
|
|
332
|
-
read a child's fan-out as your spend even though its verdicts land in a
|
|
333
|
-
context you never see.
|
|
334
|
-
**Do not read live budget off the statusline while parked on a dispatch.**
|
|
335
|
-
Observed: the harness statusline does not refresh while the main session waits
|
|
336
|
-
on a background agent's completion notification, so its displayed budget
|
|
337
|
-
freezes for the length of the dispatch — the longer the unit, the staler the
|
|
338
|
-
number. Poll `usage-verdict.sh` externally when you need a live reading
|
|
339
|
-
mid-dispatch (`watch -n 30 bash delegation-kit/bin/usage-verdict.sh`); this is
|
|
340
|
-
the one sanctioned poll and it does not weaken the never-poll rule above,
|
|
341
|
-
which governs waiting for *completion*. Enforcement is unaffected either way:
|
|
342
|
-
the per-dispatch budget check reads a fresh verdict at dispatch time, so a
|
|
343
|
-
pause/proceed decision is never made off the frozen display — only passive
|
|
344
|
-
display is stale.
|
|
345
|
-
- **Match the dispatched model and effort to the unit's shape.** Delegation
|
|
346
|
-
levers tokens only when selection follows the work: a read-heavy or mechanical
|
|
347
|
-
unit (audit, survey, rename/merge sweep) rides a cheaper model class via the
|
|
348
|
-
dispatch's model parameter or a dedicated agent type; a unit carrying design
|
|
349
|
-
judgment stays on the supervisor's class. Derive the class ladder from the
|
|
350
|
-
harness's **live model roster at dispatch time** — model families churn faster
|
|
351
|
-
than kit text, so a baked model-name list in any doc is drift by construction.
|
|
352
|
-
Agent-**type** selection derives the same way — from the dispatch-time
|
|
353
|
-
agent-roster descriptions, not a baked list: an audit or survey rides the type
|
|
354
|
-
whose description commits to review work, never one that disclaims it (an
|
|
355
|
-
excerpt-locator serves pure search, not audit). Selection sits with the
|
|
356
|
-
dispatching session — its context holds what selection
|
|
357
|
-
needs — and it is **affirmative**: an unselected dispatch does not fall back
|
|
358
|
-
to a cheap default, it **inherits the dispatcher's tier**, so declining to
|
|
359
|
-
choose silently buys the most expensive tier in reach — and buys it precisely
|
|
360
|
-
for the read-only fan-outs that are the cheapest work you dispatch. That is
|
|
361
|
-
why a standing choice lands in a tracked agent-type definition rather than
|
|
362
|
-
per-dispatch habit, and why an omitted `model:` field there is not a neutral
|
|
363
|
-
default but the inherit default: the field is stated even when the answer is
|
|
364
|
-
to inherit.
|
|
365
|
-
- **Never revert substantial completed work on your own design judgment** —
|
|
366
|
-
especially an expensive delegated sweep. Surface the tension and wait for the
|
|
367
|
-
explicit go-ahead before discarding it: a self-judged revert forfeits the
|
|
368
|
-
sweep's whole spend and pays it again on the re-run.
|
|
20
|
+
- **Findings you will act on are durable before you act on them.** A child's return value lives only in your context, and your context dies with your session. Before you *act* on a dispatched agent's findings — edit against them, rule from them, plan the next wave on them — land them somewhere that survives you: a commit, or your own journal. The write is the parent's, discharged on receipt, not a chore delegated back to the child. This binds whoever holds findings they will act on, at any depth. It costs one write per returned child, not a running narration. The obligation is **durability**, and committing and journalling are two ways to discharge it — a session uses whichever is available to it. A dispatched session journals, to the path it was granted or its stage entry reported, because it cannot commit. A top-level session commits, because it can. A top-level session that *cannot* commit right now — another session is holding the shared index, the normal condition while an iteration is running — journals for as long as that holds, and discharges by committing when the index frees. Neither the supervising role nor a session running outside any dispatch is exempt: the axis is what the session can do at this moment, never what it is.
|
|
21
|
+
- **Verify after every agent commit** — a sub-agent's "passed" claim is not trustworthy. Re-run the relevant gates (the sweep's own gate) and the consumer validate battery below — the act is `verify`, the artifact is the battery. **Never verify a unit by re-running the producer of what it delivered**: where the unit's deliverable *is* an evidence artifact, the verify is a **read** of the committed artifact, because re-running its sole writer overwrites or duplicates the record instead of checking it. Having already run the wrong check, read delegation-kit/SPEC.md §Verify after every agent commit for which of the two re-runs you are holding — only one of them leaves evidence to restore. **Diff every gate change in an agent commit before accepting** — a gate modification inside a feature commit is a supervisor-owned ruling; an agent blocked by a gate will weaken it (a false exemption) to make its commit pass instead of fixing the code. "The gate is in my way" almost always means the code doesn't fit the convention — fix the code. `check-gate-tamper` is the mechanical floor under this bullet — it blocks the two attested shapes (a gate edit co-staged with product code; a new path/glob exemption co-staged with the file it excuses) — but it does **not** catch semantic weakening inside a legitimate scripts-only commit, so the by-eye diff review remains your duty (delegation-kit/SPEC.md §Verify after every agent commit — the honest limit).
|
|
22
|
+
- **A child's citation is a pointer to verify, never evidence in itself.** A returned `file:line` is not checked by confirming the range resolves: that catches a wrong number and misses a wrong spelling, a moved passage, and a sibling instance the sweep never reported. **Re-read the passage** in the parent before acting on it. Quotation with attribution is precisely the signal a reader uses to decide a claim has already been checked, so an unverified one defeats normal trust rather than merely being wrong.
|
|
23
|
+
- **A return you did not receive is not a finding, and an identifier you did not read is not a citation.** Two shapes, because the attested instances are not all one. **The relayed return:** a claim whose warrant is a dispatched agent's output is made only where that output was **received**. A monitor that timed out, a child that never reported, a notification never consumed — each leaves you holding no return, and a claim made anyway is fabrication however well you reasoned your way to it. All three attested instances of this shape sat in the dispatcher's own *reasoning* rather than in quoted child text, which is why a floor checking relayed quotations would have caught none of them. **The minted identifier:** a commit sha, a `file:line`, a count, a path — written to make a record read as precise, never actually read. The fourth attested instance is this, a fabricated short hash put into a survey record's corpus field. **The discharge is deliberately cheap: no new artifact and no running narration.** Where the return arrived, cite **where it is held** — the journal path you granted and read, or the commit you verified. Where it did not, either do not make the claim, or mark it **unheld in the same sentence**. Marking is admissible on purpose: what this closes is a claim that *looks* sourced, and a claim saying it is not sourced does not commit it. **Its boundary against the three bullets above, so the set does not read as four spellings of one rule:** each of those presupposes a return that arrived. *A child's citation is a pointer to verify* governs a citation that arrived and may be wrong; *Findings you will act on are durable before you act on them* governs a finding that arrived and must outlive the session; *Verify after every agent commit* governs work that landed. This one governs the case where **nothing arrived at all**, which none of them reaches.
|
|
24
|
+
- **Budget-check before *each* dispatch in a fan-out**, not once at the start. Run `--usage-verdict` on the gate binary `GATE_SDK_NATIVE_BIN` names (verdict exit 0/1/2 from `usage.txt` — it folds in the reading-age and window-validity checks so a dead-window pct can't read stale-high; a PAUSE names its axis — a 5h wall clears in hours, a 7-day wall in days). If the verdict is PAUSE and the work is large, pause for reset. Width is the kill axis: the 5h wall fires mid-flight, and the agents that bank are the ones that *finished* — ≤`DELEGATION_KIT_FAN_WIDTH`-wide bounds the loss to the in-flight wave. **Project the next wave's burn from the last wave's, not just the current pct** — a read-heavy `DELEGATION_KIT_FAN_WIDTH`-wide sweep is far more window-expensive than its subagent-token total suggests, so size waves to leave the next one headroom, or accept one wave per window. **The projection reaches downward as well as forward.** The guard re-arms at every depth — a dispatched session's own dispatches fire it too — but each verdict prices **one call**, never the subtree that call opens. Nothing between a dispatch and its children's children ever sees the whole. So budget a dispatch you expect to fan out for its **subtree**, not its own turn, and read a child's fan-out as your spend even though its verdicts land in a context you never see. **Do not read live budget off the statusline while parked on a dispatch.** Observed: the harness statusline does not refresh while the main session waits on a background agent's completion notification, so its displayed budget freezes for the length of the dispatch — the longer the unit, the staler the number. Poll the verdict arm externally when you need a live reading mid-dispatch (a `watch -n 30` over the gate binary's `--usage-verdict` arm); this is the one sanctioned poll and it does not weaken the never-poll rule above, which governs waiting for *completion*. Enforcement is unaffected either way: the per-dispatch budget check reads a fresh verdict at dispatch time, so a pause/proceed decision is never made off the frozen display — only passive display is stale.
|
|
25
|
+
- **Match the dispatched model and effort to the unit's shape.** Delegation levers tokens only when selection follows the work: a read-heavy or mechanical unit (audit, survey, rename/merge sweep) rides a cheaper model class via the dispatch's model parameter or a dedicated agent type; a unit carrying design judgment stays on the supervisor's class. Derive the class ladder from the harness's **live model roster at dispatch time** — model families churn faster than kit text, so a baked model-name list in any doc is drift by construction. Agent-**type** selection derives the same way — from the dispatch-time agent-roster descriptions, not a baked list: an audit or survey rides the type whose description commits to review work, never one that disclaims it (an excerpt-locator serves pure search, not audit). Selection sits with the dispatching session — its context holds what selection needs — and it is **affirmative**: an unselected dispatch does not fall back to a cheap default, it **inherits the dispatcher's tier**, so declining to choose silently buys the most expensive tier in reach — and buys it precisely for the read-only fan-outs that are the cheapest work you dispatch. A standing choice lands in a tracked agent-type definition rather than per-dispatch habit, and that definition states its `model:` field even when the answer is to inherit.
|
|
26
|
+
- **Never revert substantial completed work on your own design judgment** — especially an expensive delegated sweep. Surface the tension and wait for the explicit go-ahead before discarding it: a self-judged revert forfeits the sweep's whole spend and pays it again on the re-run.
|
|
369
27
|
|
|
370
28
|
## Shared-file roster
|
|
371
29
|
|
|
372
|
-
*<shared-file-roster: the files two agents must never edit concurrently, in
|
|
373
|
-
addition to the git index and HEAD (always shared for committing agents) — your
|
|
374
|
-
generated-config scripts, shared test-environment fixtures, and any amendment
|
|
375
|
-
file under active edit.>*
|
|
30
|
+
*<shared-file-roster: the files two agents must never edit concurrently, in addition to the git index and HEAD (always shared for committing agents) — your generated-config scripts, shared test-environment fixtures, and any amendment file under active edit.>*
|
|
376
31
|
|
|
377
32
|
## Validate battery
|
|
378
33
|
|
|
379
|
-
*<validate-battery: the command set the supervisor re-runs after every agent
|
|
380
|
-
commit, never the agent's self-report — for a gate-sdk consumer the
|
|
381
|
-
`run-gates.sh` battery plus the fixture runner for each kit the sweep touched; a
|
|
382
|
-
toolchain consumer adds its compile/lint/test set, and after any rename sweeps
|
|
383
|
-
explicitly for zero-byte files a stale build cache would green.>*
|
|
34
|
+
*<validate-battery: the command set the supervisor re-runs after every agent commit, never the agent's self-report — for a gate-sdk consumer the `run-gates.sh` battery plus the fixture runner for each kit the sweep touched; a toolchain consumer adds its compile/lint/test set, and after any rename sweeps explicitly for zero-byte files a stale build cache would green.>*
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# spec: delegation-kit/SPEC.md §Layout and configuration — the knob roster (every knob, its default) and the line grammar; the gate binary at `GATE_SDK_NATIVE_BIN` prints the defaults with `--emit knob-roster`; set only what you override
|
|
2
|
+
|
|
3
|
+
# spec: delegation-kit/SPEC.md §Layout and configuration — D2's roster: the consumer's own read-only-dispatched agent-type names; default empty (D2 inert) — never a kit-shipped vocabulary (gate-sdk/SPEC.md §The provenance seam)
|
|
4
|
+
# DELEGATION_KIT_READONLY_TYPES[] = <agent-type>
|
|
@@ -1,60 +1,23 @@
|
|
|
1
|
-
DISPATCH CHECKLISTS — a reach-through from [agent-execution.md](agent-execution.md),
|
|
2
|
-
loaded only when a dispatch is a deletion, a rename, or a heavy cross-spec audit.
|
|
3
|
-
It adds no new protocol: the safety, budget, resume-journal, and
|
|
4
|
-
verify-after-commit rules stay in `agent-execution.md` and still apply in full.
|
|
5
|
-
This file is the mechanical pre-flight for those dispatch shapes — the steps an
|
|
6
|
-
agent skips by reflex and the supervisor pays for later. Owned by
|
|
7
|
-
delegation-kit/SPEC.md §One template, a resident pointer.
|
|
1
|
+
DISPATCH CHECKLISTS — a reach-through from [agent-execution.md](agent-execution.md), loaded only when a dispatch is a deletion, a rename, or a heavy cross-spec audit. It adds no new protocol: the safety, budget, resume-journal, and verify-after-commit rules stay in `agent-execution.md` and still apply in full. This file is the mechanical pre-flight for those dispatch shapes — the steps an agent skips by reflex and the supervisor pays for later. Owned by delegation-kit/SPEC.md §One template, a resident pointer.
|
|
8
2
|
|
|
9
3
|
## Before a deletion dispatch
|
|
10
4
|
|
|
11
|
-
- **Importer survey.** Grep every importer of the symbol or file across the tree
|
|
12
|
-
|
|
13
|
-
(an LSP find-references, a build-graph query), use it rather than a bare text
|
|
14
|
-
grep. No importers is the safe-to-delete signal. An importer outside the unit's
|
|
15
|
-
declared scope does not license the deletion — it rescopes the unit from delete
|
|
16
|
-
to migrate-then-keep, surfaced to the supervisor before the dispatch proceeds.
|
|
17
|
-
- **Ownership of a shared removal.** When both sides of a boundary import the
|
|
18
|
-
surface being removed, the dispatch that owns the removal is the layer each side
|
|
19
|
-
can import without a cycle — the common dependency, not necessarily the domain
|
|
20
|
-
owner. Placing the removal at the domain owner when the other side cannot reach
|
|
21
|
-
it without a cycle strands a caller.
|
|
5
|
+
- **Importer survey.** Grep every importer of the symbol or file across the tree before dispatching the deletion; where the toolchain ships a consumer-scan tool (an LSP find-references, a build-graph query), use it rather than a bare text grep. No importers is the safe-to-delete signal. An importer outside the unit's declared scope does not license the deletion — it rescopes the unit from delete to migrate-then-keep, surfaced to the supervisor before the dispatch proceeds.
|
|
6
|
+
- **Ownership of a shared removal.** When both sides of a boundary import the surface being removed, the dispatch that owns the removal is the layer each side can import without a cycle — the common dependency, not necessarily the domain owner. Placing the removal at the domain owner when the other side cannot reach it without a cycle strands a caller.
|
|
22
7
|
|
|
23
8
|
## Before a rename dispatch
|
|
24
9
|
|
|
25
|
-
- **Target-collision check.** Grep the target namespace for the new name before
|
|
26
|
-
|
|
27
|
-
build-time discovery. A collision found while authoring reshapes the amendment;
|
|
28
|
-
found at build it strands a half-done sweep.
|
|
29
|
-
- **Mention-versus-use brief.** A rename dispatch brief names where the old token
|
|
30
|
-
is legitimately *mentioned* — a historical `Old→New` migration arrow, a
|
|
31
|
-
changelog line, a deprecation record — separately from where it is *used*. A
|
|
32
|
-
naive sweep that rewrites both collapses the historical record; the brief tells
|
|
33
|
-
the agent which occurrences to leave standing.
|
|
10
|
+
- **Target-collision check.** Grep the target namespace for the new name before the rename amendment is declared build-ready — an authoring-stage step, not a build-time discovery. A collision found while authoring reshapes the amendment; found at build it strands a half-done sweep.
|
|
11
|
+
- **Mention-versus-use brief.** A rename dispatch brief names where the old token is legitimately *mentioned* — a historical `Old→New` migration arrow, a changelog line, a deprecation record — separately from where it is *used*. A naive sweep that rewrites both collapses the historical record; the brief tells the agent which occurrences to leave standing.
|
|
34
12
|
|
|
35
13
|
## Deriving the dispatch set
|
|
36
14
|
|
|
37
|
-
- **Re-derive from the amendment body.** Derive the set of components a dispatch
|
|
38
|
-
touches from the amendment body itself, never from the queue entry's
|
|
39
|
-
enumeration — the queue line is a summary written before the work and drifts
|
|
40
|
-
from the amendment's real footprint. The amendment's own surface list is the
|
|
41
|
-
authoritative one.
|
|
15
|
+
- **Re-derive from the amendment body.** Derive the set of components a dispatch touches from the amendment body itself, never from the queue entry's enumeration — the queue line is a summary written before the work and drifts from the amendment's real footprint. The amendment's own surface list is the authoritative one.
|
|
42
16
|
|
|
43
17
|
## After any bulk edit
|
|
44
18
|
|
|
45
|
-
- **Sweep verification.** Re-grep in a fresh tool call after any bulk edit; the
|
|
46
|
-
edit's own report is not the check. Match the gate's matcher class, not a looser
|
|
47
|
-
one — a whole-word gate over-reports under a substring grep and under-reports
|
|
48
|
-
under a looser regex. A value that crosses a language boundary needs both an
|
|
49
|
-
emit-side and a consume-side grep; prefer an LSP find-references sweep for a
|
|
50
|
-
compiled symbol. A term gate carries structural blind spots — allowlisted words,
|
|
51
|
-
string and variant spellings, modeling errors — so a by-eye pass covers what the
|
|
52
|
-
matcher cannot see.
|
|
19
|
+
- **Sweep verification.** Re-grep in a fresh tool call after any bulk edit; the edit's own report is not the check. Match the gate's matcher class, not a looser one — a whole-word gate over-reports under a substring grep and under-reports under a looser regex. A value that crosses a language boundary needs both an emit-side and a consume-side grep; prefer an LSP find-references sweep for a compiled symbol. A term gate carries structural blind spots — allowlisted words, string and variant spellings, modeling errors — so a by-eye pass covers what the matcher cannot see.
|
|
53
20
|
|
|
54
21
|
## Heavy cross-spec audit
|
|
55
22
|
|
|
56
|
-
- **Mechanize, then read.** A heavy cross-spec audit's real output is a gate
|
|
57
|
-
backlog, not a one-time fix list: mechanize the decidable classes into checks
|
|
58
|
-
first, then run a light semantic pass over what no gate can decide. The fan-out
|
|
59
|
-
width bound and the resume-journal discipline are the core protocol's
|
|
60
|
-
(`agent-execution.md`), applied here unchanged rather than restated.
|
|
23
|
+
- **Mechanize, then read.** A heavy cross-spec audit's real output is a gate backlog, not a one-time fix list: mechanize the decidable classes into checks first, then run a light semantic pass over what no gate can decide. The fan-out width bound and the resume-journal discipline are the core protocol's (`agent-execution.md`), applied here unchanged rather than restated.
|