checkwright 0.25.0 → 0.27.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 +176 -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/aarch64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-musl/checkwright-gates.sha256 +1 -0
- package/payload/artifact/targets.list +133 -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/artifact/x86_64-unknown-linux-musl/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-musl/checkwright-gates.sha256 +1 -0
- 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 +1 -1
- package/payload/canon-kit/checks/check-citation-link.gate +4 -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-page-repeat.gate +4 -0
- package/payload/canon-kit/checks/check-docs-restatement-parity.gate +4 -0
- package/payload/canon-kit/checks/check-fence-command-head.gate +3 -0
- package/payload/canon-kit/checks/check-fence-run.gate +3 -0
- package/payload/canon-kit/checks/check-install-claim.gate +2 -1
- package/payload/canon-kit/checks/check-knob-citation.gate +1 -1
- package/payload/canon-kit/checks/check-manifest-count.gate +1 -1
- package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
- package/payload/canon-kit/checks/check-md-refs.gate +1 -1
- package/payload/canon-kit/checks/check-md-unwrapped.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +2 -1
- package/payload/canon-kit/checks/check-payload-claim.gate +2 -1
- package/payload/canon-kit/checks/check-prose-bounds.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +2 -1
- package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
- package/payload/canon-kit/checks/check-provenance-seam.gate +3 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +1 -1
- package/payload/canon-kit/checks/check-spec-pointer.gate +2 -2
- package/payload/canon-kit/checks/check-surface-duplication.gate +3 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
- package/payload/canon-kit/checks/check-tracking-claim.gate +1 -1
- package/payload/canon-kit/checks/check-unmarked-claim.gate +2 -1
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +37 -8
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +6 -3
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +7 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +11 -3
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-nosection.md +16 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/one.md +4 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/bad/surface/two.md +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-tidy.md +20 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/SPEC-widget.md +37 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/component/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-retired-spelling/good/unnamed.md +4 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-citation-link/bad/expect.txt +6 -0
- package/payload/canon-kit/gate-tests/check-citation-link/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-citation-link/bad/site/page.md +13 -0
- package/payload/canon-kit/gate-tests/check-citation-link/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-citation-link/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-citation-link/good/site/page.md +28 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/.github/workflows/ci.yml +15 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.github/workflows/ci.yml +23 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/config.yml +2 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/scripts/canon-config.knobs +2 -0
- 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-page-repeat/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/bad/site/page.md +8 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-page-repeat/good/site/page.md +24 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/README.md +10 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +11 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/index.md +13 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +16 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +5 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/bin/run.sh +3 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +41 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/lib/tool.sh +5 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/doc.md +32 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/expect.txt +7 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +31 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.knobs +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.knobs +7 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +42 -7
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +1 -2
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +37 -8
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +10 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +6 -6
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/doc.md +13 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/doc.md +45 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +8 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/worktrees/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +32 -13
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/CLAUDE.md +9 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +10 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +27 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +98 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +55 -25
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +2 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/{canon-config.sh → canon-config.knobs} +2 -5
- package/payload/canon-kit/gate-tests/check-prose-tells/good/worktrees/prose.md +17 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/lifecycle-config.knobs +12 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +27 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/lifecycle-config.knobs +12 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +20 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam.test.sh +136 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +10 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/vendored-kit/notes.txt +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +3 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +9 -3
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/worktrees/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +53 -28
- package/payload/canon-kit/templates/SPEC-amendment.md +46 -25
- package/payload/canon-kit/templates/canon-config.knobs +1 -0
- package/payload/context-kit/README.md +33 -61
- package/payload/context-kit/checks/check-brevity.gate +2 -2
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -2
- package/payload/context-kit/checks/check-memory-off.gate +1 -1
- package/payload/context-kit/checks/check-settings-paths.gate +2 -2
- package/payload/context-kit/checks/check-settings-pins.gate +1 -1
- package/payload/context-kit/checks/check-surface-ratchet.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +9 -2
- package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +9 -4
- package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -1
- package/payload/context-kit/gate-tests/check-brevity.test.sh +107 -24
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/CLAUDE.md +6 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/SPEC.md +3 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/demo-kit/templates/guide.md +3 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/docs/footprint.md +32 -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 +44 -29
- package/payload/delegation-kit/README.md +35 -69
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +1 -1
- package/payload/delegation-kit/checks/check-gate-tamper.gate +1 -1
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +23 -2
- package/payload/delegation-kit/templates/agent-execution.md +23 -389
- package/payload/delegation-kit/templates/delegation-config.knobs +4 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +8 -45
- package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +33 -17
- package/payload/doctrine-kit/DOCTRINE.md +92 -458
- package/payload/doctrine-kit/README.md +24 -55
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +1 -1
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +48 -3
- package/payload/drift-kit/README.md +43 -89
- package/payload/drift-kit/templates/close-knowledge.md +7 -22
- package/payload/drift-kit/templates/drift-config.knobs +1 -0
- package/payload/drift-kit/templates/economics.md +10 -48
- package/payload/drift-kit/templates/kpi-deprecated-surface.sh +31 -9
- package/payload/drift-kit/templates/kpis.list +2 -1
- package/payload/drift-kit/templates/price-table.tsv +1 -1
- package/payload/evidence-kit/README.md +24 -43
- package/payload/evidence-kit/checks/check-battery-roster.gate +1 -1
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +2 -2
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +1 -1
- package/payload/evidence-kit/checks/check-producer-liveness.gate +3 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +7 -7
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -1
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/scripts/evidence-config.knobs +4 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -1
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/scripts/evidence-config.knobs +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +134 -14
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +5 -4
- package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +128 -0
- package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +51 -45
- package/payload/evidence-kit/gate-tests/pre-hook.test.sh +66 -0
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +29 -16
- package/payload/evidence-kit/templates/evidence-config.knobs +1 -0
- package/payload/gate-sdk/README.md +48 -79
- package/payload/gate-sdk/bin/build-native.sh +27 -4
- package/payload/gate-sdk/bin/run-gates.ps1 +266 -0
- package/payload/gate-sdk/bin/run-gates.sh +53 -277
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -1
- package/payload/gate-sdk/checks/check-action-job-ref.gate +3 -0
- package/payload/gate-sdk/checks/check-action-permissions.gate +3 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +1 -1
- package/payload/gate-sdk/checks/check-action-run-path.gate +3 -0
- package/payload/gate-sdk/checks/check-action-run-shell.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.gate +2 -1
- package/payload/gate-sdk/checks/check-commit-subject.gate +1 -1
- package/payload/gate-sdk/checks/check-core-files.gate +1 -1
- package/payload/gate-sdk/checks/check-crate-arms.gate +3 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -2
- package/payload/gate-sdk/checks/check-exec-bit.gate +1 -1
- package/payload/gate-sdk/checks/check-front-end-fail-open.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.gate +2 -2
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-output.gate +1 -1
- package/payload/gate-sdk/checks/check-gate-substrate-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-graph.gate +2 -1
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +1 -1
- package/payload/gate-sdk/checks/check-identity.gate +1 -1
- package/payload/gate-sdk/checks/check-install-disposition.gate +3 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +1 -1
- package/payload/gate-sdk/checks/check-kit-registration.gate +1 -1
- package/payload/gate-sdk/checks/check-kit-roots-dialect.gate +3 -0
- package/payload/gate-sdk/checks/check-packed-links.gate +3 -0
- package/payload/gate-sdk/checks/check-path-dialect.gate +3 -0
- package/payload/gate-sdk/checks/check-pipe-membership.gate +3 -0
- package/payload/gate-sdk/checks/check-portability-floor.gate +4 -0
- package/payload/gate-sdk/checks/check-projection-roster.gate +4 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +1 -1
- package/payload/gate-sdk/checks/check-root-tiering.gate +1 -1
- package/payload/gate-sdk/checks/check-shellcheck.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +1 -1
- package/payload/gate-sdk/checks/check-tree-terms.gate +2 -1
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +1 -1
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/notes.md +3 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/bad/tree/workflows/ci.yml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/notes.md +3 -0
- package/payload/gate-sdk/gate-tests/check-action-job-ref/good/tree/workflows/ci.yml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/empty-allowlist.yml +29 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/bad/tree/workflows/gates.yml +25 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/action.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/not-actions.yml +7 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/declared.yml +69 -0
- package/payload/gate-sdk/gate-tests/check-action-permissions/good/tree/workflows/valves.yml +22 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/scripts/present.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/bad/tree/workflows/ci.yml +14 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/scripts/build.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/sub/scripts/inner.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-path/good/tree/workflows/ci.yml +36 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +4 -2
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/runner-dialect.yml +36 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -2
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/runner-dialect.yml +71 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +102 -9
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-assertion-strength.test.sh +55 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -1
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -1
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.knobs +3 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.knobs +3 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/SPEC.md +3 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/checks/check-demo.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/probe.conf +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/demo-kit/templates/guide.md +3 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/docs/enforcement.md +33 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.ps1 +5 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/bad/gate-sdk/bin/run-gates.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/args +4 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.ps1 +5 -0
- package/payload/gate-sdk/gate-tests/check-front-end-fail-open/good/gate-sdk/bin/run-gates.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +4 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +6 -12
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +5 -3
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +4 -2
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci/build-artifact.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/ci.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +4 -2
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.knobs +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci/build-artifact.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/ci.yml +16 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -3
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.knobs +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +222 -197
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +7 -2
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +3 -1
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +8 -8
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +49 -14
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +4 -4
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-eta.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-iota.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-theta.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-zeta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +8 -5
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/native/src/installer/recipe.rs +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +8 -4
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/checks/check-alpha.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-omega.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/site-kit/checks/check-psi.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/{alpha-kit → site-kit}/smoke/install.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +15 -12
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +7 -5
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/args +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/alpha-kit/lib/alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/gate-tests/beta.test.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/beta-kit/lib/beta.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/gate-sdk/lib/gate.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gate-sdk-config.knobs +7 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/bad/tree/scripts/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/args +7 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/gate-tests/alpha.test.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/alpha-kit/lib/alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/gate-tests/beta.test.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/beta-kit/lib/beta.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/checks/placeholder.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/gate-sdk/lib/gate.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-roots-dialect/good/tree/scripts/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/alpha-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/args +5 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/beta-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/bad/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/alpha-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/beta-kit/README.md +9 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/gamma-kit/SPEC.md +4 -0
- package/payload/gate-sdk/gate-tests/check-packed-links/good/scripts/gate-sdk-config.knobs +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/expect.txt +15 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/primitive.rs +19 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/producer.rs +8 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/native/src/walk.rs +13 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/bound-root.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/case-arm.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/commented.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/common-dir.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/glob-test.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/late-anchor.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/logical-readback.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/probe.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/bad/tree/two-root.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/expect.txt +13 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/commented.rs +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/local.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/namespace.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/typed.rs +10 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/verdict.rs +5 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/native/src/walk.rs +24 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/anchored.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/cd-only.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/commented.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/one-root.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/probe.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/rooted.sh +23 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/subshell.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/two-line.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-path-dialect/good/tree/verdict.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/expect.txt +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/scripts/gate-sdk-config.knobs +1 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/array-grep.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/echo-max-count.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/gate-tests/membership.test.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/loop-head.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/bad/tree/tests/relocated.test.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/full-reader.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/check-x/bad/violating.test.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/gate-tests/clean.test.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/loop-membership.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/no-pipefail.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-pipe-membership/good/tree/one-line-producer.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/expect.txt +8 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/patterns.list +4 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/empty-reason-verb +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/strings.ps1 +6 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/too-far-verb +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/bad/tree/undeclared-verb +3 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/front.ps1 +7 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/plain-verb +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/portability-patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor/good/tree/upgrade-verb +7 -0
- package/payload/gate-sdk/gate-tests/check-portability-floor.test.sh +154 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/demo-kit/checks/check-beta.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/docs/roster.md +11 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-alpha.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-gamma.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/check-plain.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gate-sdk-config.knobs +3 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/bad/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/demo-kit/checks/check-beta.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/docs/roster.md +16 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-alpha.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-delta.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-epsilon.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/check-plain.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-projection-roster/good/scripts/gates.list +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +4 -4
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +4 -4
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +25 -20
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/{check-template-registry-parity/bad/scripts/gate-sdk-config.sh → check-smoke-entry-guard/bad/scripts/gate-sdk-config.knobs} +2 -3
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +1 -1
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/session-note.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/session-note.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/drift-kit/templates/kpis.list +18 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/{check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh → check-template-registry-parity/bad/scripts/gate-sdk-config.knobs} +2 -3
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/drift-kit/templates/kpis.list +17 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +5 -5
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/accounts.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +5 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/handles.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +44 -5
- package/payload/gate-sdk/gate-tests/emit-arm-shape.test.sh +95 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +10 -10
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +10 -184
- package/payload/gate-sdk/gate-tests/reads-census.test.sh +96 -0
- package/payload/gate-sdk/gate-tests/run-arm-contract.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +64 -41
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +2 -2
- package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +121 -16
- package/payload/gate-sdk/gate-tests/run-gates-linked-worktree.test.sh +136 -0
- package/payload/gate-sdk/lib/gate.sh +231 -484
- package/payload/gate-sdk/lib/test-hermetic.sh +39 -9
- package/payload/gate-sdk/templates/check-skeleton.sh +3 -2
- package/payload/gate-sdk/templates/gates-workflow.yml +16 -32
- package/payload/gate-sdk/templates/msg-patterns.list +14 -5
- package/payload/gate-sdk/templates/portability-patterns.list +56 -0
- package/payload/guard-kit/README.md +43 -47
- package/payload/guard-kit/checks/check-door-binding.gate +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/README.md +6 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/alpha-kit/templates/alpha-config.knobs +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/args +5 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/beta-kit/lib/beta.sh +6 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/expect.txt +5 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/gate-sdk-config.knobs +4 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/scripts/guard-config.knobs +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/site/banner.md +8 -0
- package/payload/guard-kit/gate-tests/check-door-binding/bad/site/landing.md +11 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/README.md +8 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/alpha-kit/templates/settings-hooks.json +20 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/args +7 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/beta-kit/lib/beta.sh +6 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/expect.txt +1 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/gate-sdk-config.knobs +4 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/scripts/guard-config.knobs +3 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/site/mirror.md +12 -0
- package/payload/guard-kit/gate-tests/check-door-binding/good/site/register.md +24 -0
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +40 -27
- package/payload/guard-kit/gate-tests/consumer-rules.test.sh +189 -0
- package/payload/guard-kit/gate-tests/door-binding-corpus.test.sh +72 -0
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +48 -23
- package/payload/guard-kit/gate-tests/guard-config-knobs.test.sh +170 -0
- package/payload/guard-kit/gate-tests/rewrite.test.sh +73 -0
- package/payload/guard-kit/gate-tests/scan-prompts.test.sh +174 -8
- package/payload/guard-kit/gate-tests/scratch-run.test.sh +150 -13
- package/payload/guard-kit/gate-tests/worktree-confinement.test.sh +169 -0
- package/payload/guard-kit/guard-tests/background-cases.tsv +14 -5
- package/payload/guard-kit/guard-tests/cases.tsv +360 -54
- package/payload/guard-kit/guard-tests/powershell-background-cases.tsv +29 -0
- package/payload/guard-kit/guard-tests/powershell-cases.tsv +81 -0
- package/payload/guard-kit/templates/close-triage.md +15 -62
- package/payload/guard-kit/templates/guard-config.knobs +26 -0
- package/payload/guard-kit/templates/settings-allow.json +15 -0
- package/payload/guard-kit/templates/settings-hooks.json +5 -5
- package/payload/lifecycle-kit/README.md +50 -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 +98 -21
- 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/capture-linked-worktree.test.sh +53 -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 +165 -15
- 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 +4 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +33 -2
- 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 +19 -2
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +66 -7
- 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 +77 -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 +147 -431
- package/payload/lifecycle-kit/templates/lifecycle-config.knobs +1 -0
- package/payload/lifecycle-kit/templates/release-sweep.md +6 -35
- package/payload/lifecycle-kit/templates/stages/align.md +14 -82
- package/payload/lifecycle-kit/templates/stages/build.md +30 -98
- package/payload/lifecycle-kit/templates/stages/close.md +21 -170
- package/payload/lifecycle-kit/templates/stages/scope.md +42 -167
- package/payload/lifecycle-kit/templates/stages/spec.md +31 -97
- package/payload/lifecycle-kit/templates/stages/validate.md +22 -59
- package/payload/lifecycle-kit/templates/upgrade.md +6 -37
- package/payload/queue-kit/README.md +33 -48
- package/payload/queue-kit/checks/check-deferred-board-tags.gate +3 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +2 -2
- package/payload/queue-kit/checks/check-queue-hygiene.gate +2 -2
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +1 -1
- package/payload/queue-kit/checks/check-queue-sections.gate +1 -1
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +2 -2
- package/payload/queue-kit/checks/check-queue-wrap.gate +2 -2
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -2
- package/payload/queue-kit/checks/check-tag-lead-line.gate +2 -2
- package/payload/queue-kit/checks/check-task-conservation.gate +1 -1
- package/payload/queue-kit/checks/check-task-names.gate +2 -2
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/TASK-QUEUE.md +41 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/expect.txt +6 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/bad/widget-kit/README.md +3 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/TASK-QUEUE.md +39 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-deferred-board-tags/good/widget-kit/README.md +3 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +76 -31
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +12 -4
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.knobs +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +58 -19
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +8 -4
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.knobs +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget.test.sh +124 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +11 -1
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +30 -11
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +3 -1
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +22 -6
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +3 -1
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +1 -1
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +3 -1
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.knobs +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +6 -2
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +3 -3
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/worktrees/page.md +4 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.knobs +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness.test.sh +100 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +3 -1
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +20 -6
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +15 -8
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.knobs +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +13 -6
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.knobs +5 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +28 -7
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +10 -2
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -8
- package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -3
- package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +9 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +20 -6
- package/payload/queue-kit/gate-tests/entry-history.test.sh +197 -0
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +77 -73
- package/payload/queue-kit/gate-tests/queue-edges.test.sh +168 -87
- package/payload/queue-kit/gate-tests/queue-index.test.sh +30 -16
- package/payload/queue-kit/gate-tests/roadmap.test.sh +65 -58
- package/payload/queue-kit/templates/TASK-QUEUE.md +36 -23
- package/payload/queue-kit/templates/queue-config.knobs +1 -0
- package/payload/site-kit/README.md +29 -45
- package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
- package/payload/site-kit/checks/check-docs-collapsible.gate +3 -0
- 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-collapsible/bad/docs/regions.md +23 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/bad/expect.txt +4 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/plain.md +3 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/good/docs/regions.md +26 -0
- package/payload/site-kit/gate-tests/check-docs-collapsible/good/expect.txt +1 -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 +60 -88
- package/profiles.list +4 -5
- package/lib/common/digest.sh +0 -18
- package/lib/common/lock.sh +0 -75
- package/lib/common/profile.sh +0 -91
- package/lib/common/recipe.sh +0 -106
- package/lib/diff.sh +0 -66
- package/lib/doctor.sh +0 -164
- package/lib/init.sh +0 -428
- package/lib/uninstall.sh +0 -214
- package/lib/update.sh +0 -34
- package/payload/canon-kit/SPEC.md +0 -2443
- package/payload/canon-kit/checks/check-surface-duplication.sh +0 -106
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +0 -10
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +0 -10
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +0 -8
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +0 -8
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +0 -4
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +0 -4
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +0 -8
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +0 -5
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +0 -5
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +0 -6
- package/payload/canon-kit/lib/spec.sh +0 -560
- package/payload/canon-kit/smoke/install.sh +0 -58
- package/payload/canon-kit/smoke/violation.sh +0 -22
- package/payload/canon-kit/templates/canon-config.sh +0 -2
- package/payload/context-kit/SPEC.md +0 -1134
- package/payload/context-kit/bin/always-loaded.sh +0 -70
- package/payload/context-kit/bin/env-probe.sh +0 -142
- package/payload/context-kit/bin/md-index.sh +0 -80
- package/payload/context-kit/bin/md-section.sh +0 -63
- package/payload/context-kit/bin/pub-index.sh +0 -90
- package/payload/context-kit/bin/run-index-tests.sh +0 -91
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +0 -4
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +0 -12
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +0 -12
- package/payload/context-kit/index-tests/expected/toolfloor.txt +0 -23
- package/payload/context-kit/index-tests/toolfloor-cases.sh +0 -49
- package/payload/context-kit/lib/context.sh +0 -56
- package/payload/context-kit/lib/pub-lang/rust.sh +0 -26
- package/payload/context-kit/lib/pub-lang/ts.sh +0 -32
- package/payload/context-kit/lib/toolfloor.sh +0 -58
- package/payload/context-kit/smoke/agents-md.sh +0 -139
- package/payload/context-kit/smoke/install.sh +0 -64
- package/payload/context-kit/smoke/violation.sh +0 -21
- package/payload/context-kit/templates/context-config.sh +0 -2
- package/payload/delegation-kit/SPEC.md +0 -2078
- package/payload/delegation-kit/bin/run-budget-guard-tests.sh +0 -88
- package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +0 -97
- package/payload/delegation-kit/bin/run-trend-tests.sh +0 -63
- package/payload/delegation-kit/bin/run-usage-tests.sh +0 -226
- package/payload/delegation-kit/bin/usage-trend.sh +0 -120
- package/payload/delegation-kit/bin/usage-verdict.sh +0 -144
- package/payload/delegation-kit/bin/wait-probe.sh +0 -184
- package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +0 -99
- package/payload/delegation-kit/lib/delegation.sh +0 -84
- package/payload/delegation-kit/smoke/install.sh +0 -83
- package/payload/delegation-kit/smoke/violation.sh +0 -16
- package/payload/delegation-kit/templates/agent-budget-guard.sh +0 -18
- package/payload/delegation-kit/templates/agent-dispatch-guard.sh +0 -61
- package/payload/delegation-kit/templates/delegation-config.sh +0 -6
- package/payload/delegation-kit/templates/statusline-usage.sh +0 -101
- package/payload/delegation-kit/templates/subagent-stop-liveness.sh +0 -56
- package/payload/delegation-kit/templates/usage-poller.sh +0 -67
- package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +0 -20
- package/payload/doctrine-kit/SPEC.md +0 -385
- package/payload/doctrine-kit/bin/install-doctrine.sh +0 -194
- package/payload/doctrine-kit/bin/stage-rules.sh +0 -51
- package/payload/doctrine-kit/lib/doctrine.sh +0 -29
- package/payload/doctrine-kit/smoke/install.sh +0 -203
- package/payload/doctrine-kit/smoke/violation.sh +0 -13
- package/payload/drift-kit/SPEC.md +0 -1187
- package/payload/drift-kit/bin/drift-report.sh +0 -155
- package/payload/drift-kit/bin/kfric.sh +0 -61
- package/payload/drift-kit/bin/overhead-meter.sh +0 -106
- package/payload/drift-kit/bin/stage-economics.sh +0 -465
- package/payload/drift-kit/kpis/kpi-always-loaded.sh +0 -39
- package/payload/drift-kit/kpis/kpi-amendment-age.sh +0 -33
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +0 -46
- package/payload/drift-kit/kpis/kpi-gate-backlog.sh +0 -52
- package/payload/drift-kit/kpis/kpi-gate-runtime.sh +0 -31
- package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +0 -42
- package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +0 -21
- package/payload/drift-kit/kpis/kpi-overhead.sh +0 -44
- package/payload/drift-kit/kpis/kpi-price-table-age.sh +0 -68
- package/payload/drift-kit/kpis/kpi-prompt-friction.sh +0 -38
- package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +0 -74
- package/payload/drift-kit/kpis/kpi-settings-local.sh +0 -21
- package/payload/drift-kit/kpis/kpi-task-split.sh +0 -43
- package/payload/drift-kit/lib/drift.sh +0 -43
- package/payload/drift-kit/smoke/install.sh +0 -537
- package/payload/drift-kit/smoke/overhead-fixture.jsonl +0 -4
- package/payload/drift-kit/templates/drift-config.sh +0 -2
- package/payload/evidence-kit/SPEC.md +0 -740
- package/payload/evidence-kit/bin/diff-baseline.sh +0 -34
- package/payload/evidence-kit/bin/run-validate.sh +0 -124
- package/payload/evidence-kit/checks/check-producer-liveness.sh +0 -75
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +0 -7
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +0 -7
- package/payload/evidence-kit/lib/evidence.sh +0 -193
- package/payload/evidence-kit/smoke/install.sh +0 -59
- package/payload/evidence-kit/smoke/violation.sh +0 -8
- package/payload/evidence-kit/templates/evidence-config.sh +0 -2
- package/payload/gate-sdk/SPEC.md +0 -10872
- package/payload/gate-sdk/bin/gen-pre-commit.sh +0 -297
- package/payload/gate-sdk/bin/install-hooks.sh +0 -60
- package/payload/gate-sdk/bin/port-blockers.sh +0 -473
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +0 -239
- package/payload/gate-sdk/bin/run-gate-tests.sh +0 -179
- package/payload/gate-sdk/bin/upgrade-smoke.sh +0 -236
- package/payload/gate-sdk/checks/check-action-run-shell.sh +0 -223
- package/payload/gate-sdk/checks/check-crate-arms.sh +0 -62
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +0 -450
- package/payload/gate-sdk/checks/check-install-disposition.sh +0 -93
- package/payload/gate-sdk/checks/check-shellcheck.sh +0 -57
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +0 -2
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +0 -2
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +0 -4
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +0 -14
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +0 -14
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +0 -2
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +0 -6
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +0 -3
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +0 -6
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +0 -3
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +0 -9
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +0 -3
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +0 -6
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +0 -10
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +0 -5
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +0 -5
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +0 -5
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +0 -5
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +0 -211
- package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +0 -112
- package/payload/gate-sdk/lib/consumer-smoke.sh +0 -69
- package/payload/gate-sdk/lib/declaration.sh +0 -59
- package/payload/gate-sdk/lib/inject.sh +0 -80
- package/payload/gate-sdk/smoke/install.sh +0 -171
- package/payload/gate-sdk/smoke/violation.sh +0 -13
- package/payload/guard-kit/SPEC.md +0 -1415
- package/payload/guard-kit/bin/compare-settings-allow.sh +0 -115
- package/payload/guard-kit/bin/run-guard-tests.sh +0 -110
- package/payload/guard-kit/bin/scan-prompts.sh +0 -166
- package/payload/guard-kit/bin/scratch-run.sh +0 -34
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +0 -52
- package/payload/guard-kit/lib/guard.sh +0 -1014
- package/payload/guard-kit/smoke/install.sh +0 -26
- package/payload/guard-kit/templates/bash-guard.sh +0 -20
- package/payload/guard-kit/templates/escalation-guard.sh +0 -27
- package/payload/guard-kit/templates/guard-config.sh +0 -8
- package/payload/guard-kit/templates/wakeup-guard.sh +0 -20
- package/payload/lifecycle-kit/SPEC.md +0 -2884
- package/payload/lifecycle-kit/bin/cite-survey.sh +0 -81
- package/payload/lifecycle-kit/bin/enter-stage.sh +0 -380
- package/payload/lifecycle-kit/bin/file-gap.sh +0 -101
- package/payload/lifecycle-kit/bin/file-survey.sh +0 -69
- package/payload/lifecycle-kit/bin/install-lifecycle.sh +0 -36
- package/payload/lifecycle-kit/bin/session-id.sh +0 -75
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +0 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +0 -4
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +0 -4
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +0 -4
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +0 -100
- package/payload/lifecycle-kit/lib/stages.sh +0 -194
- package/payload/lifecycle-kit/smoke/install.sh +0 -434
- package/payload/lifecycle-kit/smoke/violation.sh +0 -8
- package/payload/lifecycle-kit/templates/lifecycle-config.sh +0 -2
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +0 -29
- package/payload/queue-kit/SPEC.md +0 -1436
- package/payload/queue-kit/bin/lesson-sink.sh +0 -28
- package/payload/queue-kit/bin/queue-counts.sh +0 -35
- package/payload/queue-kit/bin/queue-edges.sh +0 -78
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +0 -6
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +0 -6
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +0 -3
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +0 -3
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +0 -6
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +0 -6
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +0 -215
- package/payload/queue-kit/lib/queue.sh +0 -129
- package/payload/queue-kit/smoke/install.sh +0 -25
- package/payload/queue-kit/smoke/violation.sh +0 -8
- package/payload/queue-kit/templates/queue-config.sh +0 -2
- package/payload/site-kit/SPEC.md +0 -601
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +0 -242
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.sh +0 -7
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.sh +0 -7
- package/payload/site-kit/lib/site.sh +0 -43
- package/payload/site-kit/smoke/install.sh +0 -34
- package/payload/site-kit/smoke/violation.sh +0 -20
- /package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/{check-ported.gate → check-stage-entry.gate} +0 -0
|
@@ -1,470 +1,186 @@
|
|
|
1
|
-
The **iteration lead** — a live session that dispatches an iteration's stage
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
operator's selection **directive**, relayed to scope verbatim, never authored.
|
|
7
|
-
|
|
8
|
-
The lead is optional. An iteration runs correctly with no lead — each stage is
|
|
9
|
-
an ordinary skill invocation that stops and surfaces to the user. The lead only
|
|
10
|
-
changes where a stage session's escalations land: at a live lead that can
|
|
11
|
-
rule and resume it, instead of at a cold restart.
|
|
12
|
-
|
|
13
|
-
**First step — record the session role.** Write `lead <id>` — `<id>` from
|
|
14
|
-
`bash lifecycle-kit/bin/session-id.sh` — to the session-role marker
|
|
15
|
-
(`CONTEXT_KIT_SESSION_ROLE_FILE`, default
|
|
16
|
-
`${GATE_SDK_TMP_DIR:-.tmp}/session-role`):
|
|
1
|
+
The **iteration lead** — a live session that dispatches an iteration's stage sessions and answers their escalations, so a blocked stage resumes in place rather than restarting. It is **not a stage skill**: it stamps no evidence, moves no cursor, and joins no stage roster, running `--enter-stage` only in its non-stamping forms: `--simulate`, `--dispatch`, `--dispatch-withdraw` and `--open-lead-journal`. Its whole authority is *dispatch* and *answers* — and, once an iteration is opening, the operator's selection **directive**, relayed to scope verbatim, never authored. Deciding that one opens is not among them (§Opening an iteration).
|
|
2
|
+
|
|
3
|
+
The lead is optional. An iteration runs correctly with no lead — each stage is an ordinary skill invocation that stops and surfaces to the user. The lead only changes where a stage session's escalations land: at a live lead that can rule and resume it, instead of at a cold restart.
|
|
4
|
+
|
|
5
|
+
**First step — record the session role.** Write `lead <id>` — `<id>` from `--emit session-id` on the gate binary `GATE_SDK_NATIVE_BIN` names — to the session-role marker (`CONTEXT_KIT_SESSION_ROLE_FILE`, default `${GATE_SDK_TMP_DIR:-.tmp}/session-role`):
|
|
17
6
|
|
|
18
7
|
```bash
|
|
19
|
-
mkdir -p "${GATE_SDK_TMP_DIR:-.tmp}" && \
|
|
20
|
-
echo "lead $(
|
|
8
|
+
. gate-sdk/lib/gate.sh && mkdir -p "${GATE_SDK_TMP_DIR:-.tmp}" && \
|
|
9
|
+
echo "lead $("$(gate_native_bin_spelled)" --emit session-id)" \
|
|
21
10
|
> "${CONTEXT_KIT_SESSION_ROLE_FILE:-${GATE_SDK_TMP_DIR:-.tmp}/session-role}"
|
|
22
11
|
```
|
|
23
12
|
|
|
24
|
-
The session-context hook reads it on each re-fire and suppresses its
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(context-kit/SPEC.md §The session-context hook owns the grammar and limits).
|
|
28
|
-
Skipping the step costs nothing but the suppression. If the Bash environment
|
|
29
|
-
lacks the harness session uuid, the id derivation's newest-transcript fallback
|
|
30
|
-
can mis-pick a just-finished subagent's id — verify before writing the marker
|
|
31
|
-
(lifecycle-kit/SPEC.md §bin/session-id.sh owns the limit).
|
|
13
|
+
The session-context hook reads it on each re-fire and suppresses its executor-facing steps for this session only — the id match scopes the signal, so no other session inherits it and a stale marker self-invalidates (context-kit/SPEC.md §The session-context hook owns the grammar and limits). Skipping the step costs nothing but the suppression. If the Bash environment lacks the harness session uuid, the id derivation's newest-transcript fallback can mis-pick a just-finished subagent's id — verify before writing the marker (lifecycle-kit/SPEC.md §bin/session-id.sh owns the limit).
|
|
14
|
+
|
|
15
|
+
Then open your resume journal with `--enter-stage --open-lead-journal` on the gate binary `GATE_SDK_NATIVE_BIN` names before writing to it; never overwrite the file.
|
|
32
16
|
|
|
33
17
|
## The lead model
|
|
34
18
|
|
|
35
|
-
The lead takes one of two postures; which one — and the model tier each
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- **
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
stage
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
is a fact about an *artifact*, and no artifact distinguishes "finished" from
|
|
80
|
-
"still writing". The attested failure is exactly that gap: a lead confirmed the
|
|
81
|
-
validate stage's commit had landed with complete evidence, the tree clean, the
|
|
82
|
-
battery green and a simulated close entry cleared — then dispatched close into a
|
|
83
|
-
still-running `run-validate`. Every check passed mid-write, because the producer
|
|
84
|
-
commits its evidence and keeps going, so the terminal commit existing is fully
|
|
85
|
-
compatible with the process still executing.
|
|
86
|
-
|
|
87
|
-
**When the notification does not arrive, no single read distinguishes a
|
|
88
|
-
finished-but-unreported session from a live one.** Delivery can fail, and the
|
|
89
|
-
rule above then has no fallback — while the artifact reads a lead reaches for
|
|
90
|
-
next are the same ones it just refused. What recovers it is two signals and a
|
|
91
|
-
question: the session's absence from the harness's running-agent roster, a
|
|
92
|
-
`DONE` marker in its journal, and — decisive whenever either is ambiguous —
|
|
93
|
-
asking the session itself, which §A running session is asked, never instructed
|
|
94
|
-
already sanctions as a question rather than a command. The `DONE` check carries
|
|
95
|
-
a sharp edge worth stating rather than rediscovering: it is valid only as the
|
|
96
|
-
journal's **last line**, so any out-of-order append silently invalidates it
|
|
97
|
-
while leaving the marker plainly visible.
|
|
98
|
-
|
|
99
|
-
**Any prompt-answered signal is a start signal, never a completion one.** The
|
|
100
|
-
same lead read an operator's note about having just answered a stalled permission
|
|
101
|
-
prompt as the stage being finished. It means the opposite: an approval prompt
|
|
102
|
-
gates a command **starting**, so such a note timestamps a beginning. Stated here
|
|
103
|
-
rather than left as incident lore, because the misreading is available to any
|
|
104
|
-
lead on any harness that prompts, and it reads as good news at exactly the moment
|
|
105
|
-
the lead wants good news.
|
|
106
|
-
|
|
107
|
-
The lead never hand-derives prior-stage completeness — reading WORKFLOW-STATE
|
|
108
|
-
or the git log to decide whether a dispatch may proceed re-derives what the
|
|
109
|
-
machinery already rules on. It dispatches and trusts `enter-stage.sh`'s
|
|
110
|
-
fail-closed refusal (relayed in the stage session's report), or gates an
|
|
111
|
-
expensive dispatch cheaply first with `enter-stage.sh --simulate <stage>`
|
|
112
|
-
(lifecycle-kit/SPEC.md §bin/enter-stage.sh) — oracle-first made concrete.
|
|
113
|
-
|
|
114
|
-
**That rule and the precondition above answer different questions, and reading
|
|
115
|
-
them as one makes the pair unusable.** This one is a *gating* rule: *may stage
|
|
116
|
-
N+1 proceed?* — a question about preconditions the machinery owns, which
|
|
117
|
-
`--simulate` answers correctly and cheaply and which the lead must not re-derive
|
|
118
|
-
by hand. The precondition is a *liveness* rule: *is stage N over?* — which no
|
|
119
|
-
instantaneous read answers at all. The incident is the proof they are two
|
|
120
|
-
questions rather than one stated twice: the lead followed this rule faithfully,
|
|
121
|
-
ran `--simulate`, and the simulated entry cleared mid-write. A rule told to trust
|
|
122
|
-
an instantaneous read is not at fault for failing to answer a question about
|
|
123
|
-
duration; it was never asked. `--simulate` keeps its whole job. What it never
|
|
124
|
-
was, and must now be said not to be, is evidence that the prior stage is over.
|
|
125
|
-
|
|
126
|
-
One qualification, because `--simulate` runs every matching entry-preflight
|
|
127
|
-
command: where a consumer wires a producer-liveness gate onto that hook,
|
|
128
|
-
`--simulate` inherits it and the specific mid-write clearing above stops
|
|
129
|
-
happening. That is a real narrowing rather than a repeal — an instantaneous read
|
|
130
|
-
is still instantaneous, so a producer starting a moment later is still unseen,
|
|
131
|
-
and the gate sees only producers that claim a lock. Completion stays a fact about
|
|
132
|
-
a session; what the gate contributes is to shrink the window in which being wrong
|
|
133
|
-
about it goes undetected.
|
|
134
|
-
|
|
135
|
-
**Relay, never assert.** The lead manages on *optimal* rather than extensive
|
|
136
|
-
context, so on any topic it has not mastered it acknowledges and relays — it
|
|
137
|
-
does not hand down a tree fact as a ruling. The asymmetry is the reason: a
|
|
138
|
-
stage session writes lifecycle state and is held to oracle-first, fixture
|
|
139
|
-
pairs and a validate battery, while the lead writes no state and so has no
|
|
140
|
-
verification discipline, yet its rulings steer what stage sessions land. A
|
|
141
|
-
claim reasoned from one narrow grep and delivered as instruction spends a
|
|
142
|
-
stage session's work against it, and nothing reds. So a factual claim travels
|
|
143
|
-
as a claim with its provenance attached ("read off X, unverified"), leaving
|
|
144
|
-
the stage session — which holds the oracle — to run it. What the lead rules
|
|
145
|
-
alone is scope, envelope and priority: the things no gate can decide and no
|
|
146
|
-
grep can answer.
|
|
147
|
-
|
|
148
|
-
Whether the lead may ever run a stage *inline* is the consumer's
|
|
149
|
-
session-boundary posture (`LIFECYCLE_KIT_SESSION_BOUNDARY`,
|
|
150
|
-
lifecycle-kit/SPEC.md §Layout and configuration). Under the strict posture
|
|
151
|
-
(`stage`) the lead may never run a stage inline for an iteration it already
|
|
152
|
-
stamped — its session id is spent, and an inline run would be exactly the
|
|
153
|
-
self-reported skip `check-stage-evidence` exists to catch. Under the relaxed
|
|
154
|
-
posture (`iteration`) an inline stage run is the sanctioned fallback when
|
|
155
|
-
dispatch is blocked (e.g. the budget guard), the stamp recording the shared id
|
|
156
|
-
honestly.
|
|
19
|
+
The lead takes one of two postures; which one — and the model tier each session rides — is standing dispatch policy (the ruling-config slot below):
|
|
20
|
+
|
|
21
|
+
- **Unified** — the scope session stays live as the iteration's lead once its promotion commit lands. One session holds both scope's judgment and the dispatch loop, so every orchestration turn rides whatever tier scope ran on.
|
|
22
|
+
- **Split** — a session on a cheaper routing tier takes the lead role first and dispatches scope itself as a stage session on the judgment tier, keeping that agent resumable afterward as the iteration's **intent oracle**. The lead's own turns are routing work — dispatch, result ingestion, budget verdicts — and stop paying judgment-tier prices. The oracle is a fresh dispatch under delegation-kit's **Never dispatch a fork to narrow a child** rule (`templates/agent-execution.md`), of which this posture is the named tier-split instance: the narrowing at stake here is the model tier, and a fork inherits the dispatcher's.
|
|
23
|
+
|
|
24
|
+
Under either posture the lead dispatches a stage session as a **background agent** whose prompt is that stage's ordinary skill invocation (`/build`, `/validate`, …); the stage session executes its stage skill unchanged. Every lifecycle-state write — the entry stamp, commits, evidence — happens **in the stage session**, never in the lead.
|
|
25
|
+
|
|
26
|
+
Dispatch mechanics are delegation-kit's, unchanged: dispatch in the background with notification, honor the per-dispatch budget guard, and verify after any agent commit. The guard blocks only on PAUSE (STALE and OK advise); a deliberate override rides the `.claude/settings.local.json` env block — delegation-kit/SPEC.md §The delegation model. Load `/agent-execution` for the protocol and follow it there — it is not restated here.
|
|
27
|
+
|
|
28
|
+
**When the dispatched stage is the evidence-producing stage, the lead's verify is a read of the committed evidence — never a re-run of the producer.** This is the lifecycle instance of delegation-kit's no-producer-re-run rule (delegation-kit/SPEC.md §Verify after every agent commit, which owns the generic rule and the harm each misroute does). Read the manifest the stage committed and judge it.
|
|
29
|
+
|
|
30
|
+
**Stage N+1 is dispatched on stage N's agent completion notification — never on its hand-back report, commit, stamp, a clean tree, a green battery, or a cleared `--simulate`.** Completion is a fact about a *session*, and none of those others distinguishes "finished" from "still writing".
|
|
31
|
+
|
|
32
|
+
**When the notification does not arrive, no single read distinguishes a finished-but-unreported session from a live one.** Delivery can fail, and the rule above then has no fallback — while the artifact reads a lead reaches for next are the same ones it just refused. What recovers it is two signals and a question: the session's absence from the harness's running-agent roster, a `DONE` marker in its journal, and — decisive whenever either is ambiguous — asking the session itself, which §A running session is asked, never instructed already sanctions as a question rather than a command. The `DONE` check carries a sharp edge worth stating rather than rediscovering: it is valid only as the journal's **last line**, so any out-of-order append silently invalidates it while leaving the marker plainly visible.
|
|
33
|
+
|
|
34
|
+
**The reverse case is inspected, never waited out: a session that reported and ended its journal with `DONE` yet still reads as active.** Something of its own is holding it, such as a background child outliving the work (a self-matching waiter, say). Check the session's leftover processes (waiters, shells, worktrees) and report them, rather than waiting on a notification the holder may keep from arriving.
|
|
35
|
+
|
|
36
|
+
**Any prompt-answered signal is a start signal, never a completion one.** An approval prompt gates a command **starting**, so an operator's note about having just answered one timestamps a beginning (lifecycle-kit/SPEC.md §The state machine).
|
|
37
|
+
|
|
38
|
+
The lead never hand-derives prior-stage completeness — reading WORKFLOW-STATE or the git log to decide whether a dispatch may proceed re-derives what the machinery already rules on. It dispatches and trusts `--enter-stage`'s fail-closed refusal (relayed in the stage session's report), and it gates every stage-session dispatch with `--enter-stage --dispatch <next stage>`, which runs that read and, on a clear verdict, declares the dispatch (lifecycle-kit/SPEC.md §bin/enter-stage.sh) — oracle-first made concrete. A dispatched session that ends without entering is withdrawn with `--dispatch-withdraw <stage>`.
|
|
39
|
+
|
|
40
|
+
Where the operator rules the audit unwarranted, dispatch the gated stage with `--dispatch <stage> --waive <the ruling>`: the entering session records it, and the dispatch prompt relays it as the operator's direction.
|
|
41
|
+
|
|
42
|
+
**That read is a step rather than one of two options, and the ground is what it catches.** A would-be refusal naming a predecessor's missing resume journal is relayed while the session that owed it is still at its most likely to be resumable; unrun, the same finding arrives at the next stage's entry, by which time the owing session is usually gone and its reasoning with it.
|
|
43
|
+
|
|
44
|
+
**Its limit is stated with it, because a step whose failure mode is unstated reads as a guarantee.** It moves detection from the next stage's entry to just before the next stage's dispatch — earlier by one dispatch and by no more. It does not reach a session that ends between the lead's two reads, and where no lead runs it does not exist at all. The repair that reaches every stage session on every path is the stage template's own close — its successor read and its journal (lifecycle-kit/SPEC.md §templates/stages/); this is the backstop.
|
|
45
|
+
|
|
46
|
+
**Mandatory is not sufficient.** The step lands *after* the completion notification is in hand, never instead of waiting for it: it composes with the dispatch precondition above and never substitutes for it. A cleared `--simulate` authorizes nothing on its own.
|
|
47
|
+
|
|
48
|
+
**That rule and the precondition above answer different questions, and reading them as one makes the pair unusable.** This one is a *gating* rule: *may stage N+1 proceed?* — a question about preconditions the machinery owns, which `--simulate` answers correctly and cheaply and which the lead must not re-derive by hand. The precondition is a *liveness* rule: *is stage N over?* — which no instantaneous read answers at all. `--simulate` keeps its whole job; what it is not is evidence that the prior stage is over.
|
|
49
|
+
|
|
50
|
+
One qualification, because `--simulate` runs every matching entry-preflight command: where a consumer wires a producer-liveness gate onto that hook, `--simulate` inherits it and the specific mid-write clearing above stops happening. That is a real narrowing rather than a repeal — an instantaneous read is still instantaneous, so a producer starting a moment later is still unseen, and the gate sees only producers that claim a lock. Completion stays a fact about a session; what the gate contributes is to shrink the window in which being wrong about it goes undetected.
|
|
51
|
+
|
|
52
|
+
**Relay, never assert.** The lead manages on *optimal* rather than extensive context, so what it hands a stage session travels no stronger than the lead holds it:
|
|
53
|
+
|
|
54
|
+
- **A claim carries its tier**: measured (the command, and when it ran), inferred, or expected. A grant also carries whether it is spent, read off its target's current state at relay time.
|
|
55
|
+
- **A fix travels as the constraint it must meet**, never as the mechanism. The stage session holds the oracle and finds the mechanism.
|
|
56
|
+
- **A rule travels only to a role it binds.** Before relaying one, read whose role its owning surface names.
|
|
57
|
+
- **Operator answers that seem to conflict go back to the operator as that question**, never reconciled by inference and relayed as their words.
|
|
58
|
+
- **The upward relay too**: before routing a stage escalation to the operator, probe its cheap premises — above all one about the operator's own rulings — and relay what the probe returned.
|
|
59
|
+
|
|
60
|
+
What the lead rules alone is scope, envelope and priority: the things no gate can decide and no grep can answer.
|
|
61
|
+
|
|
62
|
+
Whether the lead may ever run a stage *inline* is the consumer's session-boundary posture (`LIFECYCLE_KIT_SESSION_BOUNDARY`, lifecycle-kit/SPEC.md §Layout and configuration). Under the strict posture (`stage`) the lead may never run a stage inline for an iteration it already stamped — its session id is spent, and an inline run would be exactly the self-reported skip `check-stage-evidence` exists to catch. Under the relaxed posture (`iteration`) an inline stage run is the sanctioned fallback when dispatch is blocked (e.g. the budget guard), the stamp recording the shared id honestly.
|
|
157
63
|
|
|
158
64
|
## Opening an iteration
|
|
159
65
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
surveys and
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
66
|
+
**Whether an iteration opens at all is the operator's decision, obtained explicitly before anything else in this section applies.** Not inferred from a queue that holds work, not read out of an instruction about what ought to be fixed, and not implied by the previous iteration having ended.
|
|
67
|
+
|
|
68
|
+
**Explicit and *separate* are not the same requirement, and only the first one is general.** Authorization arrives through **one channel, the one this consumer's binding names below** — never inferred by the lead from anything else. A channel can be explicit without being a second act, and where the bound channel is such a channel, an invoked lead holds its authorization already and asks for nothing further. The not-inferred-from clauses just above are untouched by this: what they bound is the lead's *inference*, and naming the channel a grant travels on bounds no inference at all. Where a consumer binds no channel, the default is that the lead asks and the answer is the grant — a kit that shipped a channel of its own would be shipping one harness's layout.
|
|
69
|
+
|
|
70
|
+
**A grant authorizes a stated number of opens, and absent a stated number it authorizes one.** The bound is a property of the grant, so the lead knows it at the moment it reads what it holds rather than at the far end of the iteration the grant paid for. The default is one rather than unbounded for the scale reason below, which is per-iteration: each open commits its own reset, its own stage walk, its own session per stage, so an unbounded default would let a single answer about a single iteration's worth of machinery authorize an unbounded amount of it. A grant may state a larger number. What it may not do is leave the number to the reader. **And the cardinality is *spent*, never renewed** — an iteration that opens consumes one of the grant's opens, and a grant with none left authorizes nothing.
|
|
71
|
+
|
|
72
|
+
**Nothing enforces the channel or the cardinality, and nothing can:** an authorization is a fact about a conversation, so every encoding of it is written by the same session it binds. lifecycle-kit/SPEC.md §Honest limit on the lead's open authorization records that limit, weighs the candidate mechanisms and rules them out. A lead meeting this section obeys prose here and finds no gate behind it because there is none to find.
|
|
73
|
+
|
|
74
|
+
*<open-authorization-channel: the channel through which this consumer's operator grants an open, and the cardinality one grant on that channel carries — or the statement that this consumer binds no channel, leaving the ask-and-answer default above.>*
|
|
75
|
+
|
|
76
|
+
**An instruction to fix filed work is not an authorization to open an iteration, and the lead asks.**
|
|
77
|
+
|
|
78
|
+
The lead never selects the iteration's unit set. Selection is the **scope** stage's contract — the survey, the intake boundary sweep, and the re-verification of each queued premise against the current tree are scope's first job, and a lead-made list pre-empts exactly the half that catches a stale premise. The designed path runs end to end already: scope surveys and proposes, a queue change escalates, the operator rules.
|
|
79
|
+
|
|
80
|
+
Once the open is authorized and before dispatching scope, the lead obtains the operator's **standing directive** for the iteration — a theme bounding scope's survey, never a slug list — and passes it in the scope dispatch prompt **verbatim**. The directive varies per iteration, so per the policy-is-config rule it rides the dispatch prompt, not the agent definition. Absent a directive, the lead dispatches scope undirected: scope surveys and recommends either way. **That undirected path is what an authorized iteration carrying no theme looks like, and it is nothing more** — a missing theme is not a missing authorization, and it is not a second way in.
|
|
81
|
+
|
|
82
|
+
**A directive that reaches scope through the lead is not evidence the open was authorized.** The obligation stays here, with the party that holds it, and the surveying stage runs no authorization check.
|
|
83
|
+
|
|
84
|
+
Scope's proposed unit set returns as an ordinary four-header escalation, and the lead routes it like any scope/queue change — ruled by the operator, or by the lead only where the answer is derivable from the governed surfaces (the routing rule the escalation protocol below already states).
|
|
85
|
+
|
|
86
|
+
A unit-set escalation whose Recommendation lacks its `Composition:` line, its `Supersession:` lines or its `Push need:` line (lifecycle-kit/templates/stages/scope.md, the composition test, the supersession pass and the push count) goes back to scope before it is routed: it is never relayed to the operator and never ruled, and a relay carries the verdict verbatim. The check is presence, not quality — whether a stands-alone argument persuades is for the party ruling on the set, and a lead grading it would be the lead-authored judgment on the unit set this section refuses. Returning an escalation that carries no verdict selects nothing: it asks for the test's output before anyone rules on the set.
|
|
87
|
+
|
|
88
|
+
## Closing an iteration
|
|
89
|
+
|
|
90
|
+
When the iteration's final stage completes, the lead **stops and reports what it believes is owed**, and does not open the next one — the grant that authorized this iteration is spent, and a further open takes a fresh grant the lead does not hold.
|
|
91
|
+
|
|
92
|
+
Reporting is the lead's whole remaining act there — the state of the queue as the closing stage left it, whatever was filed for the next intake, and what the lead would recommend doing about it, offered as information for a decision and never as a decision taken.
|
|
93
|
+
|
|
94
|
+
**Dispose of your journal before you report.** Every finding in it that must outlive the iteration goes to the committed channel that owns it — a gap bullet, a survey block — and a ruling goes to its governed surface; then append `DISPOSED` as the file's last line. **The knowledge-friction log is not on that list, and the omission is the instruction.** A fact you re-derived is stamped when you re-derive it; a line written here instead is the deferred capture that channel counts as none (drift-kit/SPEC.md §The knowledge-friction loop). The journal survives the boundary reset (§Economics), so this is what separates *preserved* from *drained*: an unread journal loses a finding exactly as a deleted one does, and the boundary entry announces an undisposed journal to the entering session rather than refusing it (lifecycle-kit/SPEC.md §bin/enter-stage.sh) — which is a prompt, not a substitute for doing this.
|
|
182
95
|
|
|
183
96
|
## The escalation protocol
|
|
184
97
|
|
|
185
|
-
A stage session that hits a question inside its ruling classes ends its turn
|
|
186
|
-
with a **decision-shaped escalation block** and batches every open question into
|
|
187
|
-
that one turn-end rather than forwarding singly. The block's four headers, each
|
|
188
|
-
read by the lead at its answer transition:
|
|
98
|
+
A stage session that hits a question inside its ruling classes ends its turn with a **decision-shaped escalation block** and batches every open question into that one turn-end rather than forwarding singly. The block's four headers, each read by the lead at its answer transition:
|
|
189
99
|
|
|
190
100
|
- **Question** — what is blocked.
|
|
191
101
|
- **Options** — the choice set.
|
|
192
102
|
- **Recommendation** — the default the lead can rubber-stamp.
|
|
193
103
|
- **Evidence** — what the session already verified.
|
|
194
104
|
|
|
195
|
-
The lead answers by messaging the paused session, which resumes in place with
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
ruling
|
|
204
|
-
back. A forwarded question carries the excerpt of current working state it
|
|
205
|
-
turns on: the oracle holds the iteration's intent, not the build's unfolding,
|
|
206
|
-
so the lead supplies what the question needs read. When the oracle cannot be
|
|
207
|
-
resumed, the lead answers from the governed surfaces the rulings already live
|
|
208
|
-
in — the amendments, the queue entries — and a question not derivable there
|
|
209
|
-
goes to the operator, never substituted by the lead's own judgment.
|
|
210
|
-
|
|
211
|
-
**A split ask arrives with its own test already applied.** A session the queue's
|
|
212
|
-
per-entry cap blocks may ask to split the entry, and that ask carries the
|
|
213
|
-
session's statement of which side of `queue-kit/SPEC.md`
|
|
214
|
-
§check-queue-entry-budget's split test its entry falls on. The lead rules against
|
|
215
|
-
that test rather than re-deriving one; the authorization stays the lead's, on
|
|
216
|
-
that section's own ground — a new entry is a new unit competing for the scope
|
|
217
|
-
attention that ranks both.
|
|
218
|
-
|
|
219
|
-
**One class the lead never rules, under either posture.** Reversing, demoting
|
|
220
|
-
or re-scoping a **recorded operator ruling** or a stated objective is
|
|
221
|
-
operator-class: the lead relays it, however well-grounded the escalating
|
|
222
|
-
session's finding and however urgent the fix. It is carved out precisely
|
|
223
|
-
because it reads as derivable — the ruling is written in a governed surface,
|
|
224
|
-
so a session holding contrary evidence takes that surface for stale rather than
|
|
225
|
-
for closed, and the routing rule above then hands the lead a decision it may not
|
|
226
|
-
make. The escalating session is right to escalate and right about its evidence;
|
|
227
|
-
what it may spend the evidence on is the operator's reconsideration, never the
|
|
228
|
-
reversal itself.
|
|
105
|
+
The lead answers by messaging the paused session, which resumes in place with its working state intact. That resume — not a cold restart — is the cost asymmetry the lead exists to close.
|
|
106
|
+
|
|
107
|
+
Under the split posture the lead **routes** an escalation before answering it. A question the iteration's machinery already governs — which fixture, which surface, ordering, a helper's shape — the lead rules itself. A question about the iteration's *intent* — a scope boundary, an amendment's envelope, a seam ruling — is forwarded to the intent oracle and the oracle's answer relayed back. A forwarded question carries the excerpt of current working state it turns on: the oracle holds the iteration's intent, not the build's unfolding, so the lead supplies what the question needs read. When the oracle cannot be resumed, the lead answers from the governed surfaces the rulings already live in — the amendments, the queue entries — and a question not derivable there goes to the operator, never substituted by the lead's own judgment.
|
|
108
|
+
|
|
109
|
+
**Every relayed answer arrives naming its class.** The classes are lifecycle-kit/SPEC.md §The steering vocabulary, and the lead is the one party that holds the fact: a stage session that was not told cannot recover it, and inventing it is the failure mode. So state in the relay whether what you carry is the operator's **direction** (an answer or agreement given in this session, revisable at a later scope or spec), your own **decision**, or a **grant** — and never a ruling, which arrives only through the consult skill and is already in the ruling record. Relaying your own decision as the operator's direction costs more than the reverse: it marks a call a later session may not revise alone, and it does so silently. What the recording session then writes, and where, is that session's contract to discharge.
|
|
110
|
+
|
|
111
|
+
**A split ask arrives with its own test already applied.** A session the queue's per-entry cap blocks may ask to split the entry, and that ask carries the session's statement of which side of `queue-kit/SPEC.md` §check-queue-entry-budget's split test its entry falls on. The lead rules against that test rather than re-deriving one; the authorization stays the lead's, on that section's own ground — a new entry is a new unit competing for the scope attention that ranks both.
|
|
112
|
+
|
|
113
|
+
**One class the lead never rules, under either posture.** Reversing, demoting or re-scoping a **recorded operator ruling** or a stated objective is operator-class: the lead relays it, however well-grounded the escalating session's finding and however urgent the fix. Nor does it decline a threshold-proposed entry that scope's escalation marks operator-routed. That entry has been declined twice, and it is relayed.
|
|
229
114
|
|
|
230
115
|
## Channel design
|
|
231
116
|
|
|
232
|
-
Two channels, each with one job. Routine narration and findings go to the
|
|
233
|
-
**resume journal** (a pull channel — delegation-kit's journal mechanics own
|
|
234
|
-
the rest). The **message channel** carries only the escalation classes. This
|
|
235
|
-
is how verbosity is controlled: by channel design, not by asking a session to
|
|
236
|
-
be quiet.
|
|
117
|
+
Two channels, each with one job. Routine narration and findings go to the **resume journal** (a pull channel — delegation-kit's journal mechanics own the rest). The **message channel** carries only the escalation classes. This is how verbosity is controlled: by channel design, not by asking a session to be quiet.
|
|
237
118
|
|
|
238
|
-
A pull channel is read, never consumed: the lead **does not delete** a stage
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
channel it is meant to keep reading for the rest of the unit. It is swept with
|
|
242
|
-
the rest of the scratch dir at the iteration boundary
|
|
243
|
-
(delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps).
|
|
119
|
+
A pull channel is read, never consumed: the lead **does not delete** a stage session's journal, at the post-commit checkpoint or anywhere else. A resumable session is still writing to it, and deleting it is how a lead destroys the channel it is meant to keep reading for the rest of the unit. It is swept with the rest of the scratch dir at the iteration boundary (delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps).
|
|
120
|
+
|
|
121
|
+
**The lead does not name that path.** A stage journal's path is a function of the stage (lifecycle-kit/SPEC.md §The state machine), and the entering session's own `--enter-stage` report is its one source, so a dispatch prompt carries no journal path. A lead splitting one stage across sessions puts the batch discriminator in a **heading inside** that stage's journal, never in a filename, and reads **one** pull channel per stage.
|
|
244
122
|
|
|
245
123
|
## A running session is asked, never instructed
|
|
246
124
|
|
|
247
|
-
A dispatched stage session is not a tool call the lead may re-issue. Three rules
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
**
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
them as a stall is reading the channel rather than the work. Read the artifact
|
|
263
|
-
the work writes — the evidence file, the log, the lock — which answers in one
|
|
264
|
-
call what any number of further turns will not.
|
|
265
|
-
|
|
266
|
-
**A dispatch prompt carries no duration estimate or long-run caution unless it
|
|
267
|
-
is measured.** An invented cost framing does not merely mislead: it makes the
|
|
268
|
-
receiving session plan around a run that needs no planning, and it primes the
|
|
269
|
-
lead to misread that session's ordinary turns as a stall. An oracle run that
|
|
270
|
-
fits one foreground call is dispatched as exactly that — a plain foreground
|
|
271
|
-
invocation, no backgrounding, no monitor, no pipe or redirect — and the dispatch
|
|
272
|
-
says nothing about how long it takes.
|
|
273
|
-
|
|
274
|
-
**The root cause: a duration or a count reported by a subagent is checkable, so
|
|
275
|
-
it is checked before anything is spent on it.** It is checkable against the tree,
|
|
276
|
-
or against the reporting session's own metadata — a claimed sub-step longer than
|
|
277
|
-
the whole session that reported it is disproved by arithmetic the lead already
|
|
278
|
-
holds. Relaying an unverified figure into a dispatch is what converts one
|
|
279
|
-
session's guess into standing instruction for every session after it.
|
|
125
|
+
A dispatched stage session is not a tool call the lead may re-issue. Three rules bind the lead here and each was paid for; the root cause under all three is one habit, stated after them. The section closes on the one act against a running session the lead never takes on its own authority, stopping it, and on the read owed before calling a worktree it may own stale.
|
|
126
|
+
|
|
127
|
+
**An instruction to run something is destructive when the answer is "already did".** §The lead model already forbids the lead *itself* re-running the evidence producer; this is the same harm through the other actor. When the lead does not know what a session has run, the message is a **question** — *what have you run, and what did it report?* — never a command. A question costs one turn and destroys nothing.
|
|
128
|
+
|
|
129
|
+
**A status-only turn is not evidence that a session is stuck.** Content-free turns are what a long foreground call looks like from outside, so reading two of them as a stall is reading the channel rather than the work. Read the artifact the work writes — the evidence file, the log, the lock — which answers in one call what any number of further turns will not.
|
|
130
|
+
|
|
131
|
+
**A dispatch prompt carries no duration estimate or long-run caution unless it is measured.** An invented cost framing does not merely mislead: it makes the receiving session plan around a run that needs no planning, and it primes the lead to misread that session's ordinary turns as a stall. An oracle run that fits one foreground call is dispatched as exactly that — a plain foreground invocation, no backgrounding, no monitor, no pipe or redirect — and the dispatch says nothing about how long it takes.
|
|
132
|
+
|
|
133
|
+
**The root cause: a duration or a count reported by a subagent is checkable, so it is checked before anything is spent on it.** Check it against the tree, or against the reporting session's own metadata — a claimed sub-step longer than the whole session that reported it is disproved by arithmetic the lead already holds.
|
|
134
|
+
|
|
135
|
+
**A completion notification's own usage block is a figure of that kind, and it counts the notifying turn rather than the run.** The same task id can notify more than once, so a resumed agent's second notification reports the resume turn — and a resume that only relays a finished report reads as zero tool uses over a large token count, which is the exact shape of an agent that read nothing. The two readings are indistinguishable from the notification alone, so the lead does not choose between them: it asks the dispatcher, which holds the resume history, or checks the claim against the tree.
|
|
136
|
+
|
|
137
|
+
**A running session is never stopped on the lead's authority alone.** Stopping a background stage session, or any subagent it dispatched — the harness's stop or kill, whatever it is named — takes either the operator's explicit confirmation of that stop or a grant for this iteration that names the act. A grant lives in the lead's resume journal (lifecycle-kit/SPEC.md §The steering vocabulary), so the lead reads it there rather than recalling it. The ground is a cost already stated: an interrupt destroys the session's in-flight uncommitted unit (delegation-kit/templates/agent-execution.md, the one-commit-per-unit bullet), so a stop re-buys that unit's tokens, and how much spend to discard is the operator's to choose exactly as how much to spend is (§Opening an iteration). The stall a lead most often stops a session over is the one the rules above refuse to read off the channel, so a session that looks stuck is asked, and its artifact read, before a stop is proposed at all.
|
|
138
|
+
|
|
139
|
+
**Read a worktree's provenance before you call it stale.** Before you describe a linked worktree as stale, obsolete or safe to remove, read who made it and what it holds: its branch and lock reason (`git worktree list --porcelain`), whether it is dirty (`git -C <path> status --porcelain`), its commits the main checkout lacks (`git log --oneline HEAD..<branch>`), and the journal or dispatch that names its path. A worktree a live or unreported session may own is that session's: ask it, as above. Your description names what you read.
|
|
280
140
|
|
|
281
141
|
## Policy is config, not prose
|
|
282
142
|
|
|
283
|
-
All *standing* dispatch policy — everything true of every dispatch, not the
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
and the escalate-versus-decide roster are all standing; a dispatch prompt
|
|
289
|
-
carries only what varies per dispatch — the stage skill to invoke, the batch's
|
|
290
|
-
task slugs, and pointers specific to that batch. The tell that content is
|
|
291
|
-
misplaced: the same sentence appearing in two dispatch prompts. The
|
|
292
|
-
agent-definition points at its owning docs rather than restating them
|
|
293
|
-
(content-tiering) — it cites delegation-kit's resume-journal mechanics, say,
|
|
294
|
-
never transcribes them.
|
|
295
|
-
|
|
296
|
-
The rule cuts both ways: policy binding the **lead itself** is standing too, and
|
|
297
|
-
its tracked source is this template rather than the agent definition it
|
|
298
|
-
dispatches. The completion-notification dispatch precondition (§The lead model)
|
|
299
|
-
is standing policy of exactly that kind, named here so it is stated once and not
|
|
300
|
-
re-improvised in each dispatch prompt.
|
|
301
|
-
|
|
302
|
-
*<ruling-config: the tracked agent-definition the lead dispatches and the roster
|
|
303
|
-
it carries — its path, the subagent type the dispatch names, and where the
|
|
304
|
-
ruling classes are stated.>*
|
|
143
|
+
All *standing* dispatch policy — everything true of every dispatch, not the ruling-class roster alone — lives in the tracked agent-definition the dispatch names, never in ad-hoc per-dispatch instructions, so there is one gated source of the policy rather than a second one improvised per dispatch. Journal mechanics, environment wiring, the shared-index caution, the escalation shape, and the escalate-versus-decide roster are all standing; a dispatch prompt carries only what varies per dispatch — the stage skill to invoke, the batch's task slugs, and pointers specific to that batch. The tell that content is misplaced: the same sentence appearing in two dispatch prompts. The agent-definition points at its owning docs rather than restating them (content-tiering) — it cites delegation-kit's resume-journal mechanics, say, never transcribes them.
|
|
144
|
+
|
|
145
|
+
The rule cuts both ways: policy binding the **lead itself** is standing too, and its tracked source is this template rather than the agent definition it dispatches. The completion-notification dispatch precondition (§The lead model) is standing policy of exactly that kind, named here so it is stated once and not re-improvised in each dispatch prompt.
|
|
146
|
+
|
|
147
|
+
*<ruling-config: the tracked agent-definition the lead dispatches and the roster it carries — its path, the subagent type the dispatch names, and where the ruling classes are stated.>*
|
|
305
148
|
|
|
306
149
|
## Stamps are authoritative (the load-bearing invariant)
|
|
307
150
|
|
|
308
|
-
The lead writes **no** lifecycle state — no WORKFLOW-STATE stamps, no queue
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
nothing — the stage skill owns that rule and its gate tolerance
|
|
320
|
-
(lifecycle-kit/templates/stages/build.md). Directing a batch not to stamp is
|
|
321
|
-
therefore not conflict-avoidance; it silently spends the per-session audit trail
|
|
322
|
-
the stamp exists to provide, and no later session can repair it, because
|
|
323
|
-
backdating a stamp falsifies the trail rather than restoring it.
|
|
324
|
-
|
|
325
|
-
**A recurrence you judge is still yours to record, and the gap inbox is how.**
|
|
326
|
-
Every session that judges a recurrence is obliged to stamp the date onto that
|
|
327
|
-
entry's declaration (lifecycle-kit/SPEC.md §The committed gap inbox) — and the
|
|
328
|
-
no-queue-write rule above leaves you no way to stamp one. You discharge the
|
|
329
|
-
obligation by **filing the judgment and its grounds into a gap bullet**
|
|
330
|
-
(`bin/file-gap.sh`): the session that may write the queue then stamps from your
|
|
331
|
-
prose, exactly as the drain stamps from a filer's. Doing this at the boundary is
|
|
332
|
-
safe — the entry admits a bullet the closing stage could not have drained and
|
|
333
|
-
carries it into the entering session's intake, so a boundary-filed judgment
|
|
334
|
-
reaches a judge rather than a refusal. What you must not do is leave the judgment
|
|
335
|
-
unrecorded on the ground that you cannot stamp it.
|
|
336
|
-
|
|
337
|
-
An answer that
|
|
338
|
-
amounts to a design ruling is landed **by the stage session**, in the governed
|
|
339
|
-
surface it belongs to (the amendment, the queue entry), *before* the session
|
|
340
|
-
acts on it — and a ruling whose acting session is **not imminent** is filed to
|
|
341
|
-
a durable governed surface (a queue entry, an amendment) in the moment it is
|
|
342
|
-
made, because "the stage session lands it" holds only when that session
|
|
343
|
-
exists. The message thread is transport, never a store — so a lead crash or
|
|
344
|
-
a lost transcript costs nothing the tracked surfaces do not already hold.
|
|
151
|
+
The lead writes **no** lifecycle state — no WORKFLOW-STATE stamps, no queue writes, no evidence files, no push — a push is the stage session's whose next act reads its run (lifecycle-kit/SPEC.md §The state machine). The dispatch marker is scratch, not lifecycle state. Every stamp originates in the stage session via `--enter-stage`. Lead-does-stamping is ruled out, not merely omitted (lifecycle-kit/SPEC.md §The state machine).
|
|
152
|
+
|
|
153
|
+
**The lead stamping nothing is not the batch stamping nothing**, and the two read alike from here. A dispatched batch stamps on entry like any stage session: an intra-stage split makes the second batch a *session*, not a re-entry to suppress, and a sibling stamp naming a stage the cursor already sits on moves nothing — the stage skill owns that rule and its gate tolerance (lifecycle-kit/templates/stages/build.md). Directing a batch not to stamp is therefore not conflict-avoidance; it silently spends the per-session audit trail the stamp exists to provide, and no later session can repair it.
|
|
154
|
+
|
|
155
|
+
**A recurrence you judge is still yours to record, and your discharge differs.** The no-queue-write rule above leaves you no way to stamp one, so you **file the judgment and its grounds into a gap bullet** (`--emit file-gap`) and the session that may write the queue stamps from your prose — at the boundary as safely as mid-iteration (lifecycle-kit/SPEC.md §The committed gap inbox). What you must not do is leave the judgment unrecorded on the ground that you cannot stamp it.
|
|
156
|
+
|
|
157
|
+
**While a dispatched stage session is live, write nothing into the checkout.** A stage session is live from its dispatch until its completion notification. While one is, write nothing into the checkout or any linked worktree: no file, no directory, no worktree added or removed, no `git` write, gitignored scratch included. Three writes stay yours: your resume journal, your session-role marker, and what the arms you run write for you (`--dispatch`, `--dispatch-withdraw`, `--open-lead-journal`, a budget verdict). A capture you make, a gap bullet or a survey block, goes to your journal. A probe that must write runs after the stage completes, or in a clone outside the checkout.
|
|
158
|
+
|
|
159
|
+
**File and commit your captures between dispatches.** At the first moment no dispatched stage session is live, file each held capture to its channel (`--emit file-gap`, `--emit file-survey`) and commit it on its own. A capture commit is none of the lifecycle state the invariant above enumerates, so it is yours to make. Neither capture arm makes a `git` call: judging when the tree is free is the filing session's (lifecycle-kit/SPEC.md §The committed gap inbox).
|
|
160
|
+
|
|
161
|
+
An answer that amounts to a design ruling is landed **by the stage session**, in the governed surface it belongs to (the amendment, the queue entry), *before* the session acts on it — and a ruling whose acting session is **not imminent** is filed to a durable governed surface (a queue entry, an amendment) in the moment it is made, because "the stage session lands it" holds only when that session exists. So is an answer that nothing changes: relay it as an answer to be landed, naming the surface that recorded the question, never as a close of the matter (lifecycle-kit/SPEC.md §The stamp protocol). The message thread is transport, never a store — so a lead crash or a lost transcript costs nothing the tracked surfaces do not already hold.
|
|
345
162
|
|
|
346
163
|
## Economics — batch, and compact where it pays
|
|
347
164
|
|
|
348
|
-
The prompt cache's
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
- **Batch
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
window lever, not token counts.
|
|
361
|
-
The set being batched is **every unit the iteration promoted** — every
|
|
362
|
-
top-level entry in the configured active queue sections, debt units as much as
|
|
363
|
-
feature units — never the amendment set. A debt unit converges an
|
|
364
|
-
implementation on existing spec and mints no governed name, so it carries no
|
|
365
|
-
`[spec:]` ref; keying the roster on amendments makes exactly the
|
|
366
|
-
amendment-free half of the queue invisible, and it disappears silently because
|
|
367
|
-
the units that vanish are the ones that left no artifact to miss. Derive the
|
|
368
|
-
roster from the queue, which is the record of what was promoted, and re-read
|
|
369
|
-
it rather than carrying a count.
|
|
370
|
-
- **Tier each batch to its work class.** The lead reads the **work-class**
|
|
371
|
-
labels of the deltas in a batch — via the `[spec:]` amendments the batch's
|
|
372
|
-
entries point at, where `/spec` emits one `{mechanical | design-bearing}` tag
|
|
373
|
-
per delta — and tiers the batch by their aggregate. A batch whose deltas are
|
|
374
|
-
**all mechanical** (oracle-running: a fixed verification battery, a
|
|
375
|
-
rename/merge sweep, a mechanical pin — low generative judgment) is
|
|
376
|
-
**tier-downgradeable**: a cheaper model serves it, and the dispatcher pins the
|
|
377
|
-
cheaper tier with a `model` override on that batch's dispatch. A batch carrying
|
|
378
|
-
**any design-bearing** delta (generative or verificational judgment — bounding
|
|
379
|
-
a unit set, authoring an amendment, cross-spec audit, non-obvious
|
|
380
|
-
implementation) **stays on the judgment tier**: the judgment is exactly what
|
|
381
|
-
the tier buys, and downgrading it trades a large correctness risk for a small
|
|
382
|
-
window saving. Class → live model is mapped at dispatch time, where the roster
|
|
383
|
-
dependency already belongs (agent-execution.md, same bullet). There is no
|
|
384
|
-
standing per-stage classification to bind: the batch's labels decide at
|
|
385
|
-
dispatch time, so a stage-uniform class (validate, uniformly mechanical) is a
|
|
386
|
-
**collapsed default**, not a bound roster — while a stage whose batches diverge
|
|
387
|
-
(build — a one-line hermeticity pin beside a new KPI plugin) tiers each batch
|
|
388
|
-
from its deltas' labels, which a per-stage rule could not express. Re-judge
|
|
389
|
-
every assignment when the harness model roster churns.
|
|
390
|
-
- **An intra-stage batch split is the lead's to own.** When a stage's work
|
|
391
|
-
splits into batches, those batches are **N sibling stage sessions the lead
|
|
392
|
-
dispatches and verifies** — each entering through `enter-stage.sh` as a
|
|
393
|
-
same-stage re-entry (lifecycle-kit/SPEC.md §The state machine: N sessions may
|
|
394
|
-
enter one stage, each leaving its own stamp and the cursor staying put). A stage session **never dispatches a sibling stage session**: a stage
|
|
395
|
-
that sub-dispatches its own batches nests a second supervisor at the lead's
|
|
396
|
-
tier, hidden from its budget and context accounting — the redundancy the split
|
|
397
|
-
posture exists to remove, and the clause is a dispatched stage's authority to
|
|
398
|
-
refuse. Read-only fan-outs inside a stage stay sanctioned (the delegation
|
|
399
|
-
nudge; CLAUDE.md §Agent execution). The batching *criteria* are the
|
|
400
|
-
shared-surface rule above, unchanged; this adds only the owner — the lead
|
|
401
|
-
serializes sibling batches that share a surface and may parallelize those that
|
|
402
|
-
do not, subject to the shared-index discipline.
|
|
403
|
-
- **Batch escalations.** The decision shape makes batching natural — a stage
|
|
404
|
-
session collects its open questions and sends them in one turn.
|
|
405
|
-
- **Split the lead where the tail dominates.** Most of a lead's turns are
|
|
406
|
-
tail — dispatch, result ingestion, budget verdicts — and under the unified
|
|
407
|
-
posture each one re-reads a cache carrying scope's whole working context at
|
|
408
|
-
judgment-tier prices. The split posture moves that recurring cost to the
|
|
409
|
-
routing tier and concentrates judgment-tier spend where it pays: scope
|
|
410
|
-
itself, plus one oracle turn per forwarded intent question — a cold context
|
|
411
|
-
re-warm at worst, bounded and per-question instead of per-turn. Assume the
|
|
412
|
-
oracle is cold: escalations arrive on the stages' schedule, so the TTL
|
|
413
|
-
arithmetic that leaves a lead nearly always cold (above) applies to the
|
|
414
|
-
oracle unchanged.
|
|
415
|
-
- **Compact at handoff (unified posture).** After the promotion commit lands the amendments and
|
|
416
|
-
queue entries, and before the first dispatch, `/compact` the lead's context
|
|
417
|
-
with an instruction that **keeps** per-amendment rationale, rejected
|
|
418
|
-
alternatives,
|
|
419
|
-
and the ruling-class roster, and **drops** tool output and file contents. The
|
|
420
|
-
tree is re-readable and everything ruled already lives in a governed surface,
|
|
421
|
-
so the lossy compact has a lead crash's bounded blast radius; the lead holds
|
|
422
|
-
pointers, not state. Verify the spend afterward with delegation-kit's
|
|
423
|
-
usage-verdict rather than assuming forgiveness.
|
|
424
|
-
- **Suggest a compact at the paying acceptance boundaries.** After a stage
|
|
425
|
-
session's work is accepted — its commits verified, its rulings landed in
|
|
426
|
-
governed surfaces — and before the next dispatch, the lead *suggests* a
|
|
427
|
-
compact to the operator. Compaction is operator-invoked; the lead can only
|
|
428
|
-
recommend (the honest limit), so the suggestion is one line in the lead's
|
|
429
|
-
acceptance message, never a new mechanism. Suggest where it pays, not
|
|
430
|
-
blanket: a compact pays when the remaining cold wakes times the compressible
|
|
431
|
-
residue exceed one context re-read — the early acceptance boundaries, with
|
|
432
|
-
the most residue accreted and the most wakes still ahead, pay, while the
|
|
433
|
-
late ones do not warrant the operator interruption. This is the rule, not a
|
|
434
|
-
stage roster; a consumer derives its own paying boundaries from its stage
|
|
435
|
-
set. The keep-instruction is the handoff bullet's, unchanged.
|
|
436
|
-
|
|
437
|
-
Cache-keepalive pinging is ruled out: at batched escalation rates the idle
|
|
438
|
-
re-warm pings cost more than the cold reads they avoid, burn the shared budget
|
|
439
|
-
window, and invite idle-turn drift.
|
|
165
|
+
The lead is nearly always cold — stage sessions outlive the prompt cache's TTL and escalations arrive on their schedule. So:
|
|
166
|
+
|
|
167
|
+
- **Batch dispatches by shared surface.** Neither whole-queue-in-one nor one-dispatch-per-task: batch units that share a kit or SPEC surface into one dispatch, where derived context is actually common; split where the model tier changes or a delegation-kit split trigger fires — per-batch model tiering is the dominant window lever, not token counts. **Shared surface groups a batch and does not order one, so a cut owes a second read.** Read the deltas for a *producer/consumer* edge before cutting, and keep a producer with its consumer whatever surface the two sit on. The set being batched is **every unit the iteration promoted** — every top-level entry in the configured active queue sections, debt units as much as feature units — never the amendment set, which a debt unit carries no `[spec:]` ref to join. Derive the roster from the queue, which is the record of what was promoted, and re-read it rather than carrying a count.
|
|
168
|
+
- **Tier each batch to its work class.** The lead reads the **work-class** labels of the deltas in a batch — via the `[spec:]` amendments the batch's entries point at, where `/spec` emits one `{mechanical | design-bearing}` tag per delta — and tiers the batch by their aggregate. A batch whose deltas are **all mechanical** is **tier-downgradeable**: a cheaper model serves it, and the dispatcher pins the cheaper tier with a `model` override on that batch's dispatch. A batch carrying **any design-bearing** delta **stays on the judgment tier**. Every cheaper-tier dispatch carries an **escalate-on-discovery** transition. A session that finds it must author a fix, beyond running an oracle or editing a governed record, stops before authoring it. It journals the diagnosis and escalates a re-tier. You rule that alone. Re-dispatch the rest of the work as a same-stage session on the judgment tier, pointed at the journal. Do not resume the paused session. Your ruling-config's escalation roster names the class, so a dispatched session can recognize it. Class → live model is mapped at dispatch time (agent-execution.md, same bullet). There is no standing per-stage classification to bind: the batch's labels decide at dispatch time. Re-judge every assignment when the harness model roster churns.
|
|
169
|
+
- **An intra-stage batch split is the lead's to own.** When a stage's work splits into batches, those batches are **N sibling stage sessions the lead dispatches and verifies** — each entering through `--enter-stage` as a same-stage re-entry (lifecycle-kit/SPEC.md §The state machine: N sessions may enter one stage, each leaving its own stamp and the cursor staying put). A stage session **never dispatches a sibling stage session** (lifecycle-kit/SPEC.md §templates/lead.md owns the ground), and the clause is a dispatched stage's authority to refuse. Read-only fan-outs inside a stage stay sanctioned (the delegation nudge; delegation-kit/templates/agent-execution.md). The batching *criteria* are the shared-surface rule above, unchanged; this adds only the owner — the lead serializes sibling batches that share a surface and may parallelize those that do not, subject to the shared-index discipline.
|
|
170
|
+
- **Batch escalations.** The decision shape makes batching natural — a stage session collects its open questions and sends them in one turn.
|
|
171
|
+
- **Split the lead where the tail dominates.** The split posture moves the recurring tail — dispatch, result ingestion, budget verdicts — to the routing tier and concentrates judgment-tier spend where it pays: scope itself, plus one oracle turn per forwarded intent question. Assume the oracle is cold. **The saving is a trade rather than a pure one**: splitting converts the escalations a lead rules **alone off a governed surface** into **relays**, because the routing rule (§The escalation protocol) sends an intent-class question to the oracle or the operator as its first move. A consumer picking a posture measures that trade rather than assuming it away. **How to measure it:** over one iteration, count the escalations the lead ruled alone by reading a governed surface. Near zero and the tail premise covers the whole turn set; consistently several and this limb is live for that posture. The threshold that turns such a count into a decision, and every count taken, are the consumer's — the ruling-config slot's, never this template's.
|
|
172
|
+
- **Compact at handoff (unified posture).** After the promotion commit lands the amendments and queue entries, and before the first dispatch, `/compact` the lead's context with an instruction that **keeps** per-amendment rationale, rejected alternatives, and the ruling-class roster, and **drops** tool output and file contents. Verify the spend afterward with delegation-kit's usage-verdict rather than assuming forgiveness.
|
|
173
|
+
- **Write the lead journal at every stage completion.** On each stage session's completion notification — the one event a lead already blocks on by contract — append to the lead's **own** resume journal, under the heading your first step opened, whatever a compact would otherwise lose: the batch roster and its tiering rationale, findings carried between batches, rulings made or relayed, and anything the next dispatch would have to re-derive. This is **self-executing**: a lead writes its journal unilaterally, where the compact below depends on an operator act the lead can only recommend. **The journal is transport for a durable finding and never its store.** Iteration-local working state — the batch roster and its tiering rationale, findings carried between batches, budget verdicts, what the next dispatch would re-derive — has its home here and dies with the iteration. Anything that must **outlive** the iteration — a gap, a survey, a re-derived fact, a ruling — is filed to its committed channel in the moment it is found, or — found while a dispatched stage session is live — at the first moment none is (the capture paragraph above); outside that window the journal may carry a copy for your own use and is never the only home. It is a scratch artifact with a **protected lifetime**: the iteration-boundary reset spares it by kit invariant (lifecycle-kit/SPEC.md §bin/enter-stage.sh). Protected is not permanent: the disposition step in §Closing an iteration is what keeps the file from becoming an accumulator nobody reads (delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps).
|
|
174
|
+
- **Then, optionally, suggest a compact at the paying acceptance boundaries.** After a stage session's work is accepted — its commits verified, its rulings landed in governed surfaces — the lead may *suggest* a compact to the operator, one line in the acceptance message and never a new mechanism — compaction is operator-invoked, so the lead can only recommend, which is why the journal above and not this carries the durability obligation. Suggest where it pays, not blanket — a compact pays when the remaining cold wakes times the compressible residue exceed one context re-read, so the early boundaries pay and the late ones do not warrant the interruption. This is the rule, not a stage roster; a consumer derives its own paying boundaries from its stage set. The keep-instruction is the handoff bullet's, unchanged.
|
|
175
|
+
|
|
176
|
+
Cache-keepalive pinging is ruled out: at batched escalation rates the idle re-warm pings cost more than the cold reads they avoid, burn the shared budget window, and invite idle-turn drift.
|
|
440
177
|
|
|
441
178
|
## Mechanical floor
|
|
442
179
|
|
|
443
|
-
Prompts request; guards enforce. The four-header escalation shape has an
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
SendMessage guard for its stage sessions, or leaves it inert — the mechanical
|
|
451
|
-
floor and where its opt-in lives.>*
|
|
452
|
-
|
|
453
|
-
The floor under the batching-roster rule is `check-stage-entry`'s drain-entry
|
|
454
|
-
assertion: the drain stage refuses to be entered while the active queue still
|
|
455
|
-
carries entries, so a dropped unit surfaces as a **refused entry** at the next
|
|
456
|
-
stage rather than never. That is a backstop, not the working signal — it costs
|
|
457
|
-
a dispatch to learn from. Read it early and cheaply instead: the `--simulate`
|
|
458
|
-
read §The lead model already names for gating an expensive dispatch, aimed at
|
|
459
|
-
the drain stage, returns the same verdict with no session spent. Run it
|
|
460
|
-
**before** declaring a stage's batches complete, not after — a simulate run
|
|
461
|
-
that follows the declaration confirms the drop instead of preventing it, and a
|
|
462
|
-
roster has already lost a promoted unit in practice. Keying the roster on the
|
|
463
|
-
wrong set is only one way to lose a unit: a plain miscount against the queue
|
|
464
|
-
loses one just as quietly, and neither failure reddens on its own. That is why
|
|
465
|
-
the rule is to re-read the queue rather than to key it differently.
|
|
466
|
-
|
|
467
|
-
The floor's honest limit belongs with it: it fires on the queue's *residue*, so
|
|
468
|
-
it catches a dropped unit and says nothing about a unit batched onto the wrong
|
|
469
|
-
surface or tiered wrongly. Those stay prompt-side — the ordinary
|
|
470
|
-
prompts-request/guards-enforce split rather than a gap.
|
|
180
|
+
Prompts request; guards enforce. The four-header escalation shape has an optional guard-kit mechanical floor — a SendMessage guard registered in the stage session that advises when an outbound escalation to the lead lacks the decision-shape headers (guard-kit/SPEC.md §wakeup-guard). The header grammar is kit mechanism; the ruling-class roster stays consumer config (above).
|
|
181
|
+
|
|
182
|
+
*<escalation-guard: whether this consumer wires the optional guard-kit SendMessage guard for its stage sessions, or leaves it inert — the mechanical floor and where its opt-in lives.>*
|
|
183
|
+
|
|
184
|
+
The floor under the batching-roster rule is `check-stage-entry`'s drain-entry assertion: the drain stage refuses to be entered while the active queue still carries entries, so a dropped unit surfaces as a **refused entry** at the next stage rather than never. That is a backstop, not the working signal — it costs a dispatch to learn from. Read it early and cheaply instead: the `--simulate` read §The lead model already names for gating an expensive dispatch, aimed at the drain stage, returns the same verdict with no session spent. Run it **before** declaring a stage's batches complete, not after — a simulate run that follows the declaration confirms the drop instead of preventing it. Keying the roster on the wrong set is only one way to lose a unit: a plain miscount against the queue loses one just as quietly, and neither failure reddens on its own. That is why the rule is to re-read the queue rather than to key it differently.
|
|
185
|
+
|
|
186
|
+
The floor's honest limit belongs with it: it fires on the queue's *residue*, so it catches a dropped unit and says nothing about a unit batched onto the wrong surface or tiered wrongly. Those stay prompt-side — the ordinary prompts-request/guards-enforce split rather than a gap.
|