checkwright 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -1361
- package/bin/checkwright.ps1 +157 -0
- package/bin/checkwright.sh +187 -44
- package/package.json +15 -14
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/aarch64-apple-darwin/checkwright-gates.sha256 +1 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/aarch64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/aarch64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
- package/payload/artifact/targets.list +120 -24
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates +0 -0
- package/payload/artifact/x86_64-apple-darwin/checkwright-gates.sha256 +1 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe +0 -0
- package/payload/artifact/x86_64-pc-windows-msvc/checkwright-gates.exe.sha256 +1 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +23 -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-comment-tier.gate +1 -1
- package/payload/canon-kit/checks/check-deprecation-task.gate +2 -1
- package/payload/canon-kit/checks/check-docs-cmd.gate +2 -2
- package/payload/canon-kit/checks/check-docs-link-convention.gate +1 -1
- package/payload/canon-kit/checks/check-docs-restatement-parity.gate +4 -0
- package/payload/canon-kit/checks/check-fence-command-head.gate +3 -0
- package/payload/canon-kit/checks/check-fence-run.gate +3 -0
- package/payload/canon-kit/checks/check-install-claim.gate +2 -1
- package/payload/canon-kit/checks/check-knob-citation.gate +1 -1
- package/payload/canon-kit/checks/check-manifest-count.gate +1 -1
- package/payload/canon-kit/checks/check-manifest-temporal.gate +1 -1
- package/payload/canon-kit/checks/check-md-refs.gate +1 -1
- package/payload/canon-kit/checks/check-md-unwrapped.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +2 -1
- package/payload/canon-kit/checks/check-payload-claim.gate +2 -1
- package/payload/canon-kit/checks/check-prose-bounds.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +2 -1
- package/payload/canon-kit/checks/check-prose-tells.gate +1 -1
- package/payload/canon-kit/checks/check-provenance-seam.gate +3 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +1 -1
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +1 -1
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +1 -1
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +1 -1
- package/payload/canon-kit/checks/check-spec-pointer.gate +2 -2
- package/payload/canon-kit/checks/check-surface-duplication.gate +3 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +1 -1
- package/payload/canon-kit/checks/check-tracking-claim.gate +1 -1
- package/payload/canon-kit/checks/check-unmarked-claim.gate +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-comment-tier/good/good.sh +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +37 -26
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +3 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +6 -2
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +12 -10
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +4 -1
- package/payload/canon-kit/gate-tests/check-docs-cmd.test.sh +61 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +21 -2
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/README.md +10 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/kit/index.md +11 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/kit/index.md +13 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-docs-restatement-parity/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/doc.md +16 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/bad/expect.txt +5 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/bin/run.sh +3 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/doc.md +41 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/lib/tool.sh +5 -0
- package/payload/canon-kit/gate-tests/check-fence-command-head/good/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/doc.md +32 -0
- package/payload/canon-kit/gate-tests/check-fence-run/bad/expect.txt +7 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/doc.md +31 -0
- package/payload/canon-kit/gate-tests/check-fence-run/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.knobs +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.knobs +7 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +42 -7
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +1 -2
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/{gate-sdk-config.sh → gate-sdk-config.knobs} +2 -3
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +37 -8
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +10 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +6 -6
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/doc.md +13 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/bad/scripts/canon-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/doc.md +45 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-unwrapped/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +8 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.knobs +4 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/worktrees/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +32 -13
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/CLAUDE.md +9 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/CLAUDE.md +10 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/SPEC.md +27 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-bounds.test.sh +98 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +55 -25
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +2 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.knobs +5 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +6 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/{canon-config.sh → canon-config.knobs} +2 -5
- package/payload/canon-kit/gate-tests/check-prose-tells/good/worktrees/prose.md +17 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/scripts/lifecycle-config.knobs +12 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/bad/widget-toolkit/SPEC.md +27 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/canon-config.knobs +3 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/gate-sdk-config.knobs +2 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/scripts/lifecycle-config.knobs +12 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam/good/widget-toolkit/SPEC.md +20 -0
- package/payload/canon-kit/gate-tests/check-provenance-seam.test.sh +136 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +10 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.knobs +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/vendored-kit/notes.txt +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +3 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +9 -3
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -1
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +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 +30 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/{context-config.sh → context-config.knobs} +1 -3
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/{context-config.sh → context-config.knobs} +1 -3
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +1 -1
- package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +2 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +21 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/run-gates.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +2 -1
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +48 -1
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/run-gates.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +1 -1
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/CLAUDE.md +5 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/expect.txt +2 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/scripts/context-config.knobs +4 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/surface-ceiling.txt +2 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/bad/templates/ungoverned.md +3 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/CLAUDE.md +3 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/scripts/context-config.knobs +4 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/surface-ceiling.txt +4 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet/good/templates/held.md +4 -0
- package/payload/context-kit/gate-tests/check-surface-ratchet.test.sh +76 -0
- package/payload/context-kit/index-tests/corpus/baseline.txt +1 -1
- package/payload/context-kit/index-tests/corpus/surface.md +1 -6
- package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -1
- package/payload/context-kit/templates/close-brevity.md +9 -28
- package/payload/context-kit/templates/context-config.knobs +1 -0
- package/payload/context-kit/templates/session-context.sh +43 -28
- package/payload/delegation-kit/README.md +35 -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 +23 -46
- package/payload/evidence-kit/checks/check-battery-roster.gate +1 -1
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +2 -2
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +1 -1
- package/payload/evidence-kit/checks/check-producer-liveness.gate +3 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.knobs +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.knobs +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +7 -7
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -1
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/scripts/evidence-config.knobs +4 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -1
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/scripts/evidence-config.knobs +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +134 -14
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/{evidence-config.sh → evidence-config.knobs} +3 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +5 -4
- package/payload/evidence-kit/gate-tests/diff-baseline-status.test.sh +128 -0
- package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +51 -45
- package/payload/evidence-kit/gate-tests/pre-hook.test.sh +66 -0
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +29 -16
- package/payload/evidence-kit/templates/evidence-config.knobs +1 -0
- package/payload/gate-sdk/README.md +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 +23 -10
- package/payload/gate-sdk/templates/msg-patterns.list +14 -5
- package/payload/gate-sdk/templates/portability-patterns.list +56 -0
- package/payload/guard-kit/README.md +43 -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 +149 -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 +48 -76
- package/payload/lifecycle-kit/checks/check-audit-roster.gate +3 -0
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +1 -1
- package/payload/lifecycle-kit/checks/check-dispatch-entry.gate +3 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +1 -1
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +1 -1
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +1 -1
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +1 -1
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +1 -1
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +1 -1
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +1 -1
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +2 -2
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +1 -1
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +2 -2
- package/payload/lifecycle-kit/checks/check-stamp-subject.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.gate +2 -2
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +93 -18
- package/payload/lifecycle-kit/gate-tests/boundary-stage-journal.test.sh +196 -0
- package/payload/lifecycle-kit/gate-tests/boundary-worktree-refusal.test.sh +214 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/expect.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/bad/roster.txt +34 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster/good/roster.txt +22 -0
- package/payload/lifecycle-kit/gate-tests/check-audit-roster.test.sh +101 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/worktrees/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +21 -4
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/args +6 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/head.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/marker.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/msg.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/paths.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/bad/staged.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/args +6 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/head.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/marker.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/msg.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/paths.txt +2 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry/good/staged.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-dispatch-entry.test.sh +60 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +1 -5
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +1 -5
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -2
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.knobs +2 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/worktrees/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +158 -11
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +27 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/close.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +4 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage.test.sh +73 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/args +4 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/head.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/msg.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/bad/staged.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/args +4 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/head.txt +5 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/msg.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject/good/staged.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stamp-subject.test.sh +59 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +24 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -1
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +10 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +56 -5
- package/payload/lifecycle-kit/gate-tests/dispatch-marker.test.sh +152 -0
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +23 -48
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +7 -5
- package/payload/lifecycle-kit/gate-tests/lead-journal-open.test.sh +119 -0
- package/payload/lifecycle-kit/gate-tests/preflight-valve.test.sh +170 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +5 -3
- package/payload/lifecycle-kit/gate-tests/ruling-staleness.test.sh +89 -0
- package/payload/lifecycle-kit/gate-tests/stamp-before-write.test.sh +66 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +12 -6
- package/payload/lifecycle-kit/templates/consult.md +9 -63
- package/payload/lifecycle-kit/templates/lead.md +143 -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 +26 -45
- package/payload/site-kit/checks/check-docs-cname-parity.gate +1 -1
- package/payload/site-kit/checks/check-docs-highlight-coverage.gate +4 -0
- package/payload/site-kit/checks/check-docs-liquid-parse.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +1 -1
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/scripts/site-config.knobs +2 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +2 -2
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/scripts/site-config.knobs +2 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/docs/_layouts/default.html +11 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/expect.txt +4 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/highlight-tokens.list +7 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/bad/scripts/site-config.knobs +3 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/docs/_layouts/default.html +14 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/highlight-tokens.list +7 -0
- package/payload/site-kit/gate-tests/check-docs-highlight-coverage/good/scripts/site-config.knobs +1 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/_layouts/default.html +4 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/docs/span.md +3 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/bad/expect.txt +2 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/_layouts/default.html +4 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/front.md +7 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/loop.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/plain.html +1 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/raw.md +3 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/docs/search.json +4 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-liquid-parse-parser.test.sh +62 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +40 -45
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +7 -4
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +7 -4
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +7 -4
- package/payload/site-kit/templates/site-health.yml +67 -4
- package/profiles.list +4 -5
- package/lib/common/digest.sh +0 -18
- package/lib/common/lock.sh +0 -75
- package/lib/common/profile.sh +0 -91
- package/lib/common/recipe.sh +0 -106
- package/lib/diff.sh +0 -66
- package/lib/doctor.sh +0 -164
- package/lib/init.sh +0 -428
- package/lib/uninstall.sh +0 -214
- package/lib/update.sh +0 -34
- package/payload/canon-kit/SPEC.md +0 -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,1436 +0,0 @@
|
|
|
1
|
-
# queue-kit — a git-native, agent-readable task tracker
|
|
2
|
-
|
|
3
|
-
One Markdown file is the tracker: sections are queues, bullets are tasks,
|
|
4
|
-
bold kebab-case slugs are the task handles, and square-bracket tags are the
|
|
5
|
-
state machine. The problem the kit solves: a coding agent selects work by
|
|
6
|
-
parsing, not by reading — so everything selection trusts (position, slugs,
|
|
7
|
-
tags) is grammar a gate can enforce, and everything a human writes freely
|
|
8
|
-
(task prose) is kept out of the parse path. Drift between what the prose says
|
|
9
|
-
and what a parser sees is the failure mode; all but two of the gates exist to
|
|
10
|
-
close one instance of it each. The two exceptions hold a different axis —
|
|
11
|
-
projection freshness (`check-roadmap-fresh`) and the deferred pool's
|
|
12
|
-
per-entry budget (`check-queue-entry-budget`).
|
|
13
|
-
|
|
14
|
-
The kit carries the queue grammar and its gates only; a consumer's section
|
|
15
|
-
names, wrap budget, and protocol vocabulary are config, with this repo's
|
|
16
|
-
layout as the defaults. Requires [gate-sdk](../gate-sdk/) (the gates follow
|
|
17
|
-
its four contracts and resolve through its registry).
|
|
18
|
-
|
|
19
|
-
## The queue format
|
|
20
|
-
|
|
21
|
-
The governed surface is one queue file (default `TASK-QUEUE.md`), structured
|
|
22
|
-
as `##` sections over column-0 bullets:
|
|
23
|
-
|
|
24
|
-
- **Active sections** (default `New Features`, `Technical Debt`) — the
|
|
25
|
-
pickable queue, in work-order. Selection discipline: pick the first entry
|
|
26
|
-
carrying no `[blocked-by:]` tag, in section order; do not invent work order.
|
|
27
|
-
- **The deferred section** (default `Deferred`) — parked tasks, excluded from
|
|
28
|
-
selection; `###` subsections are presentation, not semantics. An entry's
|
|
29
|
-
prose may carry a `Surfaced <date>` mark — an ungated convention recording
|
|
30
|
-
when the premise was observed. A deferred body is free prose, and four
|
|
31
|
-
bold-lead-in fields recur, each answering a question a later scope asks:
|
|
32
|
-
`Deliverable` (what landing looks like), `Why [design-pending]` (what the
|
|
33
|
-
open design actually is), `Cost while deferred`, and a closing
|
|
34
|
-
`Filed <date> by <stage>` provenance line. Three are conventions no gate
|
|
35
|
-
reads; **`Cost while deferred` is required** — the Gap-disposition rule's
|
|
36
|
-
costing, held by `check-queue-entry-budget` (§check-queue-entry-budget),
|
|
37
|
-
which also caps the entry's total length. The field's bold lead-in is
|
|
38
|
-
line-local like a tag: split across a reflow it is invisible to the scanner
|
|
39
|
-
and the entry reads as uncosted.
|
|
40
|
-
- **The icebox section** (optional, `QUEUE_KIT_ICEBOX_SECTION`, default
|
|
41
|
-
**empty** — no section, no tier) — dormant tasks compressed to one line
|
|
42
|
-
each, sitting **after the deferred section and before the done section**.
|
|
43
|
-
Live work, not history: §The icebox tier owns the tier, its grammar, its
|
|
44
|
-
eligibility rule, and the position contract a cross-kit reader depends on.
|
|
45
|
-
- **The done section** (default `Done`) — one line per completed task, the
|
|
46
|
-
bare slug only; prose about what happened lives in git history.
|
|
47
|
-
|
|
48
|
-
The **defer date** of an entry is its `Surfaced <date>` mark when present, else
|
|
49
|
-
the date on its `Filed <date>` provenance line. One definition, two readers —
|
|
50
|
-
drift-kit's deferred-age KPI and the `queue-index` arm's `--icebox-candidates`.
|
|
51
|
-
Widening, not replacing: `Surfaced` records when the premise was observed and
|
|
52
|
-
is the better premise-rot datum, `Filed` is the honest available fallback, so
|
|
53
|
-
no entry owes a migration. drift-kit re-implements the definition rather than
|
|
54
|
-
sourcing `lib/queue.sh`, because a kit dependency the other way would close a
|
|
55
|
-
cross-kit cycle; both implementations cite this section. That is the general
|
|
56
|
-
rule for this format, not a one-off for drift-kit: **a kit that cannot depend on
|
|
57
|
-
queue-kit re-implements the predicate and both ends cite this section.**
|
|
58
|
-
gate-sdk's `check-gate-exemption-tasks` re-implements it for a reason stronger
|
|
59
|
-
than a cycle — gate-sdk is the substrate every kit vendors, so depending on
|
|
60
|
-
queue-kit would invert the layering and make a queue format a precondition for
|
|
61
|
-
running any gate. The holder roster and the residue accounting for the whole set
|
|
62
|
-
live at gate-sdk/SPEC.md §check-gate-exemption-tasks, and are deliberately not
|
|
63
|
-
restated here: two hand-maintained copies of one roster are worse than one,
|
|
64
|
-
because a holder added or dropped is then owed two edits in two SPECs and only
|
|
65
|
-
the one that prompted the change is likely to get it.
|
|
66
|
-
- Any other section (an iteration header, a lessons section) is outside the
|
|
67
|
-
grammar and ignored by every gate except the file-wide hygiene axes.
|
|
68
|
-
|
|
69
|
-
**Where this format has two holders, what is compared between them is
|
|
70
|
-
classification over a corpus, never the derived literals.** The shell library
|
|
71
|
-
exposes ERE strings and an array; its compiled counterpart exposes a section
|
|
72
|
-
value and free predicates over it, so there is no value either could hand the
|
|
73
|
-
other — comparing them would compare nothing, or force one side to grow an
|
|
74
|
-
accessor whose only reader is the test. The comparable question is the one this
|
|
75
|
-
section defines: given the same queue file, do both agree on which lines are
|
|
76
|
-
section boundaries, which are task bullets, which is the lessons line, which
|
|
77
|
-
slugs are live? Two witnesses held to each other over a golden *corpus*, with no
|
|
78
|
-
committed expected file — a maintained golden is a third copy to drift, and the
|
|
79
|
-
failure the comparison exists to catch is one side edited without the other,
|
|
80
|
-
which it catches directly (§lib/queue.sh names the holder).
|
|
81
|
-
|
|
82
|
-
An entry is a column-0 `- **slug** — prose…` bullet; continuation lines are
|
|
83
|
-
indented, never column 0. An *indented* bullet with a bold lead-in is a
|
|
84
|
-
sub-task (same grammar); with a plain or italic lead-in it is a prose note
|
|
85
|
-
and is left alone. Slugs match `[a-z0-9][a-z0-9-]*` in one global, unique
|
|
86
|
-
namespace across active + deferred + icebox + sub-tasks — a slug is the task's
|
|
87
|
-
stable handle for its whole life: `[blocked-by:]` references it and the
|
|
88
|
-
done-section line carries it verbatim. The slug grammar is kit mechanism, not
|
|
89
|
-
config.
|
|
90
|
-
|
|
91
|
-
**Section order sequences an iteration; it does not rank it.** The default
|
|
92
|
-
`("New Features" "Technical Debt")` is read as selection order (§Layout and
|
|
93
|
-
configuration), and the argument for it is not that features outrank debt:
|
|
94
|
-
position starves nothing, because an active entry's residency is one iteration
|
|
95
|
-
by the drain rule — the drain stage's entry requires the active sections empty
|
|
96
|
-
(lifecycle-kit/SPEC.md §check-stage-entry) — so every promoted entry lands in
|
|
97
|
-
the same iteration whichever section holds it. What ranks is the promoting
|
|
98
|
-
stage's decision to put an entry in an active section at all; order within them
|
|
99
|
-
is a sequencing default, the posture the roadmap projection already states
|
|
100
|
-
outright for queue order generally (§The roadmap arm).
|
|
101
|
-
|
|
102
|
-
Features lead on the feature/debt asymmetry canon-kit owns (canon-kit/SPEC.md
|
|
103
|
-
§The amendment lifecycle): a feature merges an amendment into the canonical
|
|
104
|
-
spec, debt converges an implementation on the spec as it already stands.
|
|
105
|
-
Reversed, a debt entry sharing an owner doc with a sibling amendment converges
|
|
106
|
-
on text the same iteration is about to rewrite. It stays a default rather than
|
|
107
|
-
a rule — the array is consumer config, and a consumer whose iterations do not
|
|
108
|
-
mix the two kinds reorders it freely.
|
|
109
|
-
|
|
110
|
-
### The icebox tier
|
|
111
|
-
|
|
112
|
-
The deferred pool has an intake asymmetry the delivery doctrine itself creates:
|
|
113
|
-
gap disposition and scope-gated intake make filing mandatory and cheap, while
|
|
114
|
-
the only exit is *building* the entry. The icebox is the missing exit — a third
|
|
115
|
-
**live** task section holding entries whose own cost field says they are
|
|
116
|
-
dormant, each compressed to its lead line.
|
|
117
|
-
|
|
118
|
-
close-surface: TASK-QUEUE.md#Deferred advisory
|
|
119
|
-
|
|
120
|
-
`advisory` is the honest mode: no structural forcing function refuses on an
|
|
121
|
-
untriaged backlog, and inventing one would redden an unrelated commit over a
|
|
122
|
-
curation opinion. That is what makes eviction *symmetric* to promotion —
|
|
123
|
-
promotion is forced by the scoping stage's exit condition, eviction gets roster
|
|
124
|
-
visibility and an auditable skip.
|
|
125
|
-
|
|
126
|
-
**It joins the shared task adapters rather than standing outside them**, and
|
|
127
|
-
that is the whole design:
|
|
128
|
-
|
|
129
|
-
- **Eviction is a conserved move.** `check-task-conservation` diffs the live
|
|
130
|
-
slug set at HEAD against the worktree, so deferred → icebox keeps the slug
|
|
131
|
-
live and the gate stays silent. No sanctioned disappearance needs inventing,
|
|
132
|
-
and none exists — every exit from the design-pending pool is conserved:
|
|
133
|
-
deferred → icebox, icebox → deferred on real recurrence, and either → done
|
|
134
|
-
for a ruled wontfix.
|
|
135
|
-
- **One namespace, one parse.** `check-task-names` keeps slug uniqueness and
|
|
136
|
-
`[blocked-by:]` resolution across the whole pool; an iceboxed slug is a legal
|
|
137
|
-
blocker target, because it is unbuilt.
|
|
138
|
-
- **The living-prose contract keeps reaching it**, so a page citing an
|
|
139
|
-
iceboxed task stays green — correct, because the task is dormant, not landed.
|
|
140
|
-
- **Tags stay lead-line-governed**, with no gate edit.
|
|
141
|
-
|
|
142
|
-
Every gate keyed on the shared task regex therefore widens with **no change to
|
|
143
|
-
any gate file** — the widening is entirely in `lib/queue.sh`, which is what the
|
|
144
|
-
one-adapter rule was built to buy. `check-queue-prose-precondition` deliberately does not
|
|
145
|
-
reach the tier: forward-looking phrasing is normal vocabulary in a parked
|
|
146
|
-
entry, the same exemption the deferred section already carries.
|
|
147
|
-
|
|
148
|
-
**The grammar is the lead line and nothing else:**
|
|
149
|
-
|
|
150
|
-
```
|
|
151
|
-
- **<slug>** [design-pending] — <one sentence: what it is, and why it is dormant>
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
- **It carries the same `[design-pending]` tag every deferred entry carries.**
|
|
155
|
-
No `[icebox]` tag is minted: section membership *is* the state, and a tag
|
|
156
|
-
restating its own section is the two-sources defect. What generalizes across
|
|
157
|
-
the amendment lifecycle is the design-pending **section set**, not its tag
|
|
158
|
-
set. The "why it is dormant" clause is written where it fits and otherwise
|
|
159
|
-
left to the tier — membership already declares it.
|
|
160
|
-
- **No `###` subsections and no sub-tasks.** Grouping is presentation on a
|
|
161
|
-
surface whose entire purpose is minimum residency, and a sub-task is a
|
|
162
|
-
continuation line the shape rule rejects.
|
|
163
|
-
- **A `[roadmap:]`-tagged entry is not icebox-eligible**, and the rule needs no
|
|
164
|
-
new code: the roadmap parse walks the live task sections, so the tier enters
|
|
165
|
-
its walk, and `check-roadmap-fresh` then reds any `[roadmap:]` entry carrying
|
|
166
|
-
no `roadmap-summary:` declaration — which a one-line entry has nowhere to
|
|
167
|
-
put. **The enforcement is conditional:** that gate exits clean at its top
|
|
168
|
-
when `QUEUE_KIT_ROADMAP_FILE` is empty, so the guarantee holds for a consumer
|
|
169
|
-
publishing a roadmap page and degrades to convention for one that is not.
|
|
170
|
-
The eligibility rule binds either way. Keeping the tier *inside* the roadmap
|
|
171
|
-
walk rather than excluding it is deliberate: excluded, a `[roadmap:]` tag
|
|
172
|
-
that drifted into the icebox would silently drop a public commitment;
|
|
173
|
-
included, it reds.
|
|
174
|
-
- **The narrative is recoverable, not discarded.** The commit that iceboxes an
|
|
175
|
-
entry necessarily contains the removed body in its own diff, so recovery is
|
|
176
|
-
`git log -p -S'<slug>' -- <queue-file>` — a pickaxe that depends on no
|
|
177
|
-
commit-message convention. Nothing is copied into the queue to point at it.
|
|
178
|
-
**Recovery is mandatory before any ruling on the entry**, not merely
|
|
179
|
-
available: the lead line is a one-clause summary that carries neither the
|
|
180
|
-
deliverable nor the blocking design question, so promoting a dormant entry,
|
|
181
|
-
or ruling a build has subsumed one, is judged against the recovered body.
|
|
182
|
-
Ruling off the line alone is ruling off a summary written to be dropped.
|
|
183
|
-
|
|
184
|
-
**Eligibility**, judged at the closing stage: the entry's cost field opens in
|
|
185
|
-
the low class; it carries no `[roadmap:]` tag; and it has **no live promotion
|
|
186
|
-
trigger** — an entry whose promotion waits on a named expected event (a launch,
|
|
187
|
-
a first external adopter, a sibling unit landing) stays deferred, because it
|
|
188
|
-
has a trigger, just not a date.
|
|
189
|
-
|
|
190
|
-
**Nothing files directly into the icebox.** The only producer is the eviction
|
|
191
|
-
step: a newly filed finding has never been triaged and so cannot be pre-judged
|
|
192
|
-
dormant. That keeps the tier from becoming a dumping ground and keeps the
|
|
193
|
-
net-delta KPI honest.
|
|
194
|
-
|
|
195
|
-
**Position is a contract, not a preference.** The read order is pickable →
|
|
196
|
-
parked → dormant → history, and a cross-kit reader depends on the tier sitting
|
|
197
|
-
between the deferred and done sections (gate-sdk/SPEC.md
|
|
198
|
-
§check-gate-exemption-tasks). **Accepted residual, and it is quiet: no gate
|
|
199
|
-
enforces section order.** `check-queue-sections` counts occurrences per
|
|
200
|
-
required section with no positional state, and no other gate carries one. A
|
|
201
|
-
misplaced icebox surfaces only as an exemption naming an iceboxed slug
|
|
202
|
-
reddening with "no live task" — which requires such an exemption to exist.
|
|
203
|
-
Otherwise the misplacement is silent. The contract is carried by this SPEC and
|
|
204
|
-
by review rather than by a gate, and saying so is the honest form of it.
|
|
205
|
-
|
|
206
|
-
### The tag algebra
|
|
207
|
-
|
|
208
|
-
Tags are square-bracket literals with fixed spelling (mechanism, not config
|
|
209
|
-
— the one exception is the consumer-named harvest vocabulary below); every tag
|
|
210
|
-
sits on its bullet's **lead line** — the only line the parsing tools scan
|
|
211
|
-
(enforced by `check-tag-lead-line`).
|
|
212
|
-
|
|
213
|
-
Outside the queue file, living prose claims a task's queue membership with one
|
|
214
|
-
grammar: a **bold-code token** — `` **`<slug>`** `` whose token matches the
|
|
215
|
-
slug grammar — which `check-queue-slug-liveness` resolves against the live
|
|
216
|
-
slug set on the configured prose surfaces (§check-queue-slug-liveness).
|
|
217
|
-
|
|
218
|
-
Inside the queue file, that same token in **single backticks** — matching the
|
|
219
|
-
slug grammar, appearing in an entry's **body** rather than on its lead line —
|
|
220
|
-
is a **citation** of the named entry: the relation an author already drew while
|
|
221
|
-
writing about something else. The two forms are deliberately different claims.
|
|
222
|
-
The bold-code form is a *membership* claim, and a dead one is a false statement
|
|
223
|
-
`check-queue-slug-liveness` reds on; the in-body citation is a *reference*,
|
|
224
|
-
aggregated by `bin/queue-edges.sh` (§bin/queue-edges.sh) and audited by
|
|
225
|
-
nothing. The rules below make citations parseable, each covering a shape a live
|
|
226
|
-
corpus contains:
|
|
227
|
-
|
|
228
|
-
- **Resolution is against the live slug set** — `queue_live_slugs`: active,
|
|
229
|
-
deferred, and a configured icebox, the existing source of truth.
|
|
230
|
-
- **An unresolved token is not an error; it is simply not an edge.** This is the
|
|
231
|
-
load-bearing rule. Entries legitimately name *landed* work — a closed defect
|
|
232
|
-
class, a shipped contract, a settled ruling — and that citation is valuable
|
|
233
|
-
prose no gate may punish, which is why no liveness assertion reaches inward
|
|
234
|
-
from the configured prose surfaces (§check-queue-slug-liveness).
|
|
235
|
-
- **Self-citation is not an edge** — an entry naming its own slug in its own
|
|
236
|
-
body is narration, not a relation.
|
|
237
|
-
- **`[blocked-by: <slug>]` is an edge too**, and the one already-structured
|
|
238
|
-
class: including it makes an inbound set complete rather than merely
|
|
239
|
-
prose-derived.
|
|
240
|
-
|
|
241
|
-
**No relational vocabulary is declared, and that refusal is the design.** Prose
|
|
242
|
-
phrases a relation many ways and keeps inventing more, so an enumerated verb set
|
|
243
|
-
would be brittle the day it landed — and, decisively, a kit literal spelling one
|
|
244
|
-
project's relational verbs would ship that project's vocabulary as everyone's.
|
|
245
|
-
That is the provenance seam, the same reason `[roadmap:]`'s horizons and tracks
|
|
246
|
-
are consumer-configured arrays rather than kit literals. Declaring no vocabulary
|
|
247
|
-
means there is no vocabulary to leak and no consumer config to invent: a
|
|
248
|
-
relation's *kind* rides the citing line itself, quoted verbatim
|
|
249
|
-
(§bin/queue-edges.sh).
|
|
250
|
-
|
|
251
|
-
**A `relates: <kind> <slug>` declaration on the `roadmap-summary:` pattern was
|
|
252
|
-
weighed and refused.** It is precise and it carries a kind — and it is wrong
|
|
253
|
-
here on three counts. Every citation a corpus has already written would need
|
|
254
|
-
hand-authoring, the maintained-roster anti-pattern derivation-first forbids;
|
|
255
|
-
those lines would land inside entries measured against
|
|
256
|
-
`check-queue-entry-budget`'s raw-line cap, where sub-tasks do not relieve a
|
|
257
|
-
parent's budget, so precision would be paid for in evictions; and a
|
|
258
|
-
hand-declared edge can be forgotten in exactly the moment it matters, whereas a
|
|
259
|
-
citation written in prose is written because the author was already thinking
|
|
260
|
-
about the relation. The derived grammar costs zero lines in every entry and is
|
|
261
|
-
satisfied by any corpus that already cross-references — no migration, and no
|
|
262
|
-
adoption step between landing it and reading it.
|
|
263
|
-
|
|
264
|
-
- `[blocked-by: <slug>]` — the entry is unpickable until `<slug>` completes.
|
|
265
|
-
Repeat per blocker. Must resolve to a live task (active or deferred — a
|
|
266
|
-
deferred blocker stands; it is unbuilt); a blocker in the done section is a
|
|
267
|
-
*stale* tag that must be removed, because the tag alone marks a task
|
|
268
|
-
unpickable.
|
|
269
|
-
- `[design-pending]` — design-pending marker, spanning **both** design-pending
|
|
270
|
-
sections (deferred and, where configured, the icebox). queue-kit parses and
|
|
271
|
-
displays it; the placement semantics (section-wide enforcement, promotion
|
|
272
|
-
rules) are canon-kit's amendment lifecycle and land with that kit.
|
|
273
|
-
- `[spec: <file>]` — spec-ready pointer. Same split: syntax here, amendment
|
|
274
|
-
semantics in canon-kit.
|
|
275
|
-
- `[drain-exempt: <reason>]` — drain-stage residue marker: the entry
|
|
276
|
-
legitimately stays active into the drain stage (a drain-spanning feature
|
|
277
|
-
whose remaining half *is* drain-stage work). Same split: syntax here;
|
|
278
|
-
placement semantics — the drain-entry exemption, the non-empty-reason
|
|
279
|
-
grammar, the successor-entry backstop — are lifecycle-kit's
|
|
280
|
-
`check-stage-entry` assertion B. The Done move takes the tag with it
|
|
281
|
-
(done entries drop their lifecycle tags; every reader scans live task
|
|
282
|
-
sections only). The lead-line reason is a terse marker, not the audit
|
|
283
|
-
trail: `check-tag-lead-line` pins the tag to the lead line while
|
|
284
|
-
`check-queue-wrap` caps its width, so a long slug can squeeze the reason
|
|
285
|
-
to a few columns — keep it a keyword and carry the full exemption
|
|
286
|
-
rationale in the entry body.
|
|
287
|
-
- `[precondition-ok: <reason>]` — per-entry opt-out valve for
|
|
288
|
-
`check-queue-prose-precondition`.
|
|
289
|
-
- `[roadmap: <horizon>/<track>]` — public-projection marker: the entry is
|
|
290
|
-
curated onto the generated roadmap page (§The roadmap arm), under `<horizon>`
|
|
291
|
-
and labelled `<track>`. The tag's spelling is fixed mechanism; its two field
|
|
292
|
-
*values* are drawn from the consumer-configured `QUEUE_KIT_HORIZONS` and
|
|
293
|
-
`QUEUE_KIT_TRACKS` arrays — the same fixed-spelling/configured-values split
|
|
294
|
-
`[spec:]` already carries, and for the same reason: a kit literal spelling one
|
|
295
|
-
project's horizons would ship its roadmap posture as everyone's. One tag with
|
|
296
|
-
two slash-joined fields rather than two tags, because the fields are never
|
|
297
|
-
independently meaningful — a track with no horizon has no slot on the page and
|
|
298
|
-
a horizon with no track has no label in it, so splitting the pair would invent
|
|
299
|
-
two governed names where the domain has one. An entry carries at most one
|
|
300
|
-
`[roadmap:]` tag; an untagged entry is simply not projected, the normal case.
|
|
301
|
-
Placement is unconstrained by section — an active entry and a deferred entry
|
|
302
|
-
may both be projected, because the projection is about public direction, not
|
|
303
|
-
selection order. The **icebox is the one exclusion**, and it falls out of the
|
|
304
|
-
declaration rule rather than needing one: a one-line entry has nowhere to put
|
|
305
|
-
a `roadmap-summary:`, so a `[roadmap:]` tag that drifted into the tier reds
|
|
306
|
-
on assertion C wherever `QUEUE_KIT_ROADMAP_FILE` is set (§The icebox tier
|
|
307
|
-
states the knob-conditional limit on that backstop). Field validity is
|
|
308
|
-
`check-roadmap-fresh`'s assertion B.
|
|
309
|
-
|
|
310
|
-
A tagged entry also carries a **`roadmap-summary: <text>` declaration** — one
|
|
311
|
-
indented line in the entry body holding the single sentence the public page
|
|
312
|
-
prints. It is a declaration, not a tag, and the difference is the point: a tag is
|
|
313
|
-
bracketed and lead-line-scoped because its readers scan lead lines alone, while
|
|
314
|
-
this is read off a line of its own, the shape the `close-surface:` declaration
|
|
315
|
-
above already uses (and `QUEUE_KIT_PROSE_LEADS`' `Protocol:` token at column 0).
|
|
316
|
-
Spelling is fixed mechanism; `check-tag-lead-line` does not govern it, and it
|
|
317
|
-
cannot collide with the `[roadmap:` scan, which keys on the bracket.
|
|
318
|
-
|
|
319
|
-
The declaration is a **whitelist, and that is a privacy boundary before it is a
|
|
320
|
-
design one**. Only text an author explicitly marked is ever projected, so the
|
|
321
|
-
mechanism's failure mode is a thin page rather than published internal prose —
|
|
322
|
-
the direction a consumer whose queue is private and whose roadmap is not can
|
|
323
|
-
afford to fail in. The emitter reads the text verbatim, so no sentence heuristic
|
|
324
|
-
decides what a public page inherits. One line, not a block: an indented
|
|
325
|
-
declaration has roughly 81 columns behind it under the default wrap budget —
|
|
326
|
-
comfortably a sentence, and needing no block-end rule a reflow could silently
|
|
327
|
-
truncate. `check-roadmap-fresh`'s assertion C makes the tag and the declaration
|
|
328
|
-
mandatory for each other in both directions.
|
|
329
|
-
|
|
330
|
-
An entry that has been **re-filed** carries a second declaration on the same
|
|
331
|
-
pattern, `recurrence: <slug> <YYYY-MM-DD> [<YYYY-MM-DD>…]` — one indented body
|
|
332
|
-
line naming the entry's own slug, then one date per re-filing, appended in order
|
|
333
|
-
and never rewritten. The initial filing is not a recurrence and is not listed, so
|
|
334
|
-
the count is the number of dates. It is a declaration rather than a tag for the
|
|
335
|
-
reasons the paragraph above gives: its readers scan a line of its own, and it
|
|
336
|
-
marks no move across a pending/ready boundary, so it fails canon-kit's
|
|
337
|
-
further-tag test. `check-tag-lead-line` does not govern it, and it cannot collide
|
|
338
|
-
with the bracket scans.
|
|
339
|
-
|
|
340
|
-
The **self-naming slug field is mechanism, not decoration**. `check-queue-hygiene`
|
|
341
|
-
rejects any exact-duplicate non-blank line across the whole file, unnormalized, so
|
|
342
|
-
a slug-free `recurrence: <date>` on two entries stamped the same day would red the
|
|
343
|
-
gate — and same-day recurrence on two entries is exactly the case the declaration
|
|
344
|
-
exists to record. Naming the slug makes the line unique by construction. It also
|
|
345
|
-
makes the declaration resolvable by one anchored grep with no entry-boundary
|
|
346
|
-
parsing, which is what lets its two readers — lifecycle-kit's scope pre-emption
|
|
347
|
-
rule (lifecycle-kit/SPEC.md §Layout and configuration,
|
|
348
|
-
`LIFECYCLE_KIT_RECURRENCE_THRESHOLD`) and drift-kit's `kpi-incident-recurrence`
|
|
349
|
-
(drift-kit/SPEC.md §Bundled KPIs) — each read it without depending on the other's
|
|
350
|
-
kit. Self-citation is already narration rather than an edge (above), so the field
|
|
351
|
-
costs no new rule. That one-grep property is also why **no `queue-index`
|
|
352
|
-
recurrence mode exists** — the obvious home, refused: drift-kit could not call it
|
|
353
|
-
without the cycle its own KPI already records, which would leave lifecycle-kit's
|
|
354
|
-
rule as the only caller, and §The queue-index arm already resists a further mode on
|
|
355
|
-
the grounds that folding jobs together gives one tool two output grammars.
|
|
356
|
-
|
|
357
|
-
**One line with appended dates, not one line per recurrence.** The per-recurrence
|
|
358
|
-
form is byte-unique on the (slug, date) pair and is refused anyway: it grows an
|
|
359
|
-
entry linearly against `check-queue-entry-budget`'s cap, so a *machine* writer
|
|
360
|
-
could push a deferred entry past that cap and red some later, unrelated session's
|
|
361
|
-
commit — and the cap's remedy is only half self-served (§check-queue-entry-budget:
|
|
362
|
-
relocating grounds into an entry that already owns their subject is self-served
|
|
363
|
-
for a mandated write, while minting a *new* entry to hold them stays
|
|
364
|
-
authorization-gated). That ground survives the discount §check-queue-entry-budget
|
|
365
|
-
grants this declaration, **because the discount is one line**: the second and
|
|
366
|
-
later lines of a per-recurrence variant are counted like any other, so the variant
|
|
367
|
-
still grows an entry linearly against the cap. The single-line form costs **no**
|
|
368
|
-
counted line at all, which strengthens the case for it rather than weakening it.
|
|
369
|
-
Its own ceiling is
|
|
370
|
-
`check-queue-wrap`'s budget, reached after a handful of dates on a long slug, and
|
|
371
|
-
reaching it is the *correct* complaint: a slug recorded as recurring that many
|
|
372
|
-
times without anyone promoting it is a governance failure, surfaced loudly rather
|
|
373
|
-
than absorbed.
|
|
374
|
-
|
|
375
|
-
Unlike the `relates:` declaration refused above, no corpus needs migrating. The
|
|
376
|
-
line is **session-written under judgment** — the closing stage's gap-inbox drain
|
|
377
|
-
is its only mechanized producer, while any session that judges a recurrence is
|
|
378
|
-
obliged to stamp one directly, and each date records that session's ruling that
|
|
379
|
-
the finding re-occurred, read off the filed prose rather than derived from it
|
|
380
|
-
(lifecycle-kit/SPEC.md §The committed gap inbox owns the rule and the standard) —
|
|
381
|
-
and hand-read; an entry with no declaration is simply an entry that has not
|
|
382
|
-
recurred.
|
|
383
|
-
|
|
384
|
-
Two tags ride **Lessons Learned** entries — a lesson is a top-level bullet
|
|
385
|
-
under the fixed-spelling `## Lessons Learned` heading, and the `queue-index` arm
|
|
386
|
-
plus `check-tag-lead-line` read that section's lead lines too. That section is
|
|
387
|
-
one of close's inbound triage surfaces, and its forcing function is the sibling
|
|
388
|
-
of the gap inbox's — the first-stage entry refuses while it holds entries — so it
|
|
389
|
-
declares itself on the close-surface roster here:
|
|
390
|
-
|
|
391
|
-
close-surface: TASK-QUEUE.md#Lessons-Learned forced=lifecycle-kit/SPEC.md §bin/enter-stage.sh
|
|
392
|
-
|
|
393
|
-
- `[attend]` — fixed spelling, kit mechanism (the inbound channel): the filing
|
|
394
|
-
session marks a lesson as a live attention point for later sessions *of the
|
|
395
|
-
same iteration*. The `queue-index` arm emits an attention block of `[attend]`
|
|
396
|
-
lead lines (§The queue-index arm); the injection dies at the iteration
|
|
397
|
-
boundary because lifecycle-kit's first-stage entry refuses a non-empty
|
|
398
|
-
Lessons section.
|
|
399
|
-
- **Harvest tags** — `QUEUE_KIT_LESSON_TAGS` (array of bare tag names, default
|
|
400
|
-
empty) is the *one* configured exception to fixed spelling (the outbound
|
|
401
|
-
channel): the tag names, their sinks, and their handling are consumer rule
|
|
402
|
-
content — a kit literal carrying them would publish a private vocabulary
|
|
403
|
-
(the provenance seam, `check-graph`/`graph-vocab` pattern). The close ritual
|
|
404
|
-
streams a tagged entry's body through `bin/lesson-sink.sh <tag>`
|
|
405
|
-
(§bin/lesson-sink.sh), which resolves the sink from `QUEUE_KIT_LESSON_SINKS`;
|
|
406
|
-
the tracked close skill names that mechanism, never a sink value. queue-kit
|
|
407
|
-
only parses the tag's placement.
|
|
408
|
-
|
|
409
|
-
## Layout and configuration
|
|
410
|
-
|
|
411
|
-
The kit is vendored beside gate-sdk (conventionally at `queue-kit/`); its
|
|
412
|
-
gates are registered in the consumer's `gates.list` by name and resolve
|
|
413
|
-
through gate-sdk's multi-kit path. The `queue-index` arm is not among them: it
|
|
414
|
-
is a non-gate arm of the binary, registered in no `gates.list` and carrying no
|
|
415
|
-
`.gate` descriptor (§The queue-index arm).
|
|
416
|
-
|
|
417
|
-
Config follows lifecycle-kit's pattern: copy `templates/queue-config.sh`
|
|
418
|
-
into the gates dir as `queue-config.sh` (or point `QUEUE_KIT_CONFIG_FILE`
|
|
419
|
-
elsewhere) and override any knob; defaults fill what the consumer left unset,
|
|
420
|
-
and the loader exits 2 on a malformed config — a broken grammar must not gate
|
|
421
|
-
anything. A gitignored `queue-config.local.sh` beside that file sources last
|
|
422
|
-
(§lib/queue.sh) — the home for a private value a tracked config cannot carry.
|
|
423
|
-
Knobs:
|
|
424
|
-
|
|
425
|
-
- `QUEUE_KIT_QUEUE_FILE` — default `${GATE_SDK_QUEUE_FILE:-TASK-QUEUE.md}`;
|
|
426
|
-
every gate also takes the file as `$1` (fixture capability).
|
|
427
|
-
- `QUEUE_KIT_ACTIVE_SECTIONS` — array, default
|
|
428
|
-
`("New Features" "Technical Debt")`, order = selection order (§The queue
|
|
429
|
-
format argues the default).
|
|
430
|
-
- `QUEUE_KIT_DEFERRED_SECTION` / `QUEUE_KIT_DONE_SECTION` — defaults
|
|
431
|
-
`Deferred` / `Done`.
|
|
432
|
-
- `QUEUE_KIT_ICEBOX_SECTION` — default **empty**: no icebox tier at all, and no
|
|
433
|
-
kit-shaped empty section on the consumer's queue. A twelve-entry backlog has
|
|
434
|
-
no carry problem, and shipping the section anyway would leak the same posture
|
|
435
|
-
`QUEUE_KIT_HORIZONS` and `QUEUE_KIT_PROSE_SURFACE_GLOBS` already ship empty to
|
|
436
|
-
avoid. Naming the deferred section is malformed config.
|
|
437
|
-
- `QUEUE_KIT_ENTRY_LINE_CAP` — positive integer, default `50`; the per-entry
|
|
438
|
-
line cap `check-queue-entry-budget` assertion A holds over the deferred
|
|
439
|
-
section.
|
|
440
|
-
- `QUEUE_KIT_ICEBOX_AGE_DAYS` — positive integer, default `30`; the defer-date
|
|
441
|
-
age filter for the `queue-index` arm's `--icebox-candidates`, and nothing else.
|
|
442
|
-
- `QUEUE_KIT_WRAP_BUDGET` — default `100` (`check-queue-wrap` gate floor).
|
|
443
|
-
- `QUEUE_KIT_PROSE_LEADS` — array of column-0 lead tokens exempt from the
|
|
444
|
-
hygiene gate's no-prose axis, default `("Protocol:")`.
|
|
445
|
-
- `QUEUE_KIT_PROSE_SURFACE_GLOBS` — array of repo-root-relative globs naming
|
|
446
|
-
the living-prose surfaces `check-queue-slug-liveness` scans, default empty
|
|
447
|
-
(no surface makes queue claims until the consumer opts one in). Which pages
|
|
448
|
-
claim queue membership is the consumer's editorial posture — a kit literal
|
|
449
|
-
would presume a docs layout — so the kit ships none; a bold-code token on a
|
|
450
|
-
named surface is then a checked membership claim (§check-queue-slug-liveness).
|
|
451
|
-
- `QUEUE_KIT_PRECONDITION_REGEX` — the forward-precondition trigger set for
|
|
452
|
-
`check-queue-prose-precondition`, default = the shipped phrase set.
|
|
453
|
-
- `QUEUE_KIT_REQUIRED_SECTIONS` — array of `##` headings that must each appear
|
|
454
|
-
exactly once (`check-queue-sections`), default = the iteration header
|
|
455
|
-
(`Iteration:`, prefix-matched for its dynamic suffix) plus `New Features` /
|
|
456
|
-
`Technical Debt` / `Deferred` / `Done` / `Lessons Learned`. A trailing `:`
|
|
457
|
-
marks a prefix-matched heading; every other entry is matched exactly. A
|
|
458
|
-
configured `QUEUE_KIT_ICEBOX_SECTION` is **appended by derivation**, never by
|
|
459
|
-
a second consumer list: an icebox configured but absent from the file would
|
|
460
|
-
otherwise let every icebox assertion pass open on a section that is not
|
|
461
|
-
there, the exact fail-open class `check-queue-sections` exists to stop.
|
|
462
|
-
- `QUEUE_KIT_LESSON_TAGS` — array of bare harvest-tag names, default empty; the
|
|
463
|
-
consumer-named outbound lesson vocabulary (§The tag algebra), read by
|
|
464
|
-
`check-tag-lead-line` for placement. Names, sinks, and handling are consumer
|
|
465
|
-
rule content — the kit ships none.
|
|
466
|
-
- `QUEUE_KIT_LESSON_SINKS` — associative array, harvest tag → sink command,
|
|
467
|
-
default empty; read by `bin/lesson-sink.sh`, which owns resolution and the
|
|
468
|
-
fail-open default (§bin/lesson-sink.sh). A private sink value belongs in the
|
|
469
|
-
local overlay, not this tracked file.
|
|
470
|
-
- `QUEUE_KIT_ATTEND_CAP` — positive integer, default `3`; the maximum `[attend]`
|
|
471
|
-
lead lines the `queue-index` arm emits in its attention block before folding
|
|
472
|
-
the rest into an overflow note.
|
|
473
|
-
- `QUEUE_KIT_HORIZONS` — ordered array of horizon names for the `[roadmap:]`
|
|
474
|
-
tag's first field, default empty. The order is the projection's emitted
|
|
475
|
-
section order.
|
|
476
|
-
- `QUEUE_KIT_TRACKS` — array of track labels for the tag's second field,
|
|
477
|
-
default empty.
|
|
478
|
-
- `QUEUE_KIT_ROADMAP_FILE` — repo-relative path of the projection page, default
|
|
479
|
-
empty: no page, and `check-roadmap-fresh` skips clean.
|
|
480
|
-
- `QUEUE_KIT_ROADMAP_MARKER` — the marker-block token, default `roadmap`,
|
|
481
|
-
delimiting the generated span as `<!-- roadmap:begin -->` /
|
|
482
|
-
`<!-- roadmap:end -->`. One knob with two readers — the `--write` splice and
|
|
483
|
-
the gate's block locator — which must agree, so it resolves through this
|
|
484
|
-
loader rather than being re-defaulted in each.
|
|
485
|
-
|
|
486
|
-
The roadmap vocabulary is configured as a **pair**: `QUEUE_KIT_HORIZONS` or
|
|
487
|
-
`QUEUE_KIT_TRACKS` set while the other is empty is malformed config and
|
|
488
|
-
`lib/queue.sh` exits 2, per the loader's broken-grammar contract. A
|
|
489
|
-
half-configured vocabulary would silently accept every value of the
|
|
490
|
-
unconfigured field. Both empty is the unconfigured default — a consumer that
|
|
491
|
-
publishes no roadmap gets a clean skip rather than a kit-shaped one.
|
|
492
|
-
|
|
493
|
-
Cross-kit note: lifecycle-kit's `LIFECYCLE_KIT_ACTIVE_SECTIONS` carries the same
|
|
494
|
-
default. The knobs are independent (either kit runs without the other); a
|
|
495
|
-
consumer renaming its active sections sets both. The icebox section name spans
|
|
496
|
-
every kit that reads the tier, on the same independent-knob shape —
|
|
497
|
-
`QUEUE_KIT_ICEBOX_SECTION` here, `CANON_KIT_ICEBOX_SECTION` for the
|
|
498
|
-
amendment lifecycle, `DRIFT_KIT_ICEBOX_SECTION` for the queue KPIs — so a
|
|
499
|
-
consumer enabling the tier sets each of them, and one left unset degrades that
|
|
500
|
-
kit to "no icebox" rather than to a wrong section.
|
|
501
|
-
|
|
502
|
-
## Per-component contracts
|
|
503
|
-
|
|
504
|
-
### lib/queue.sh
|
|
505
|
-
|
|
506
|
-
The sourced config loader plus shared adapters: the section-regex builders
|
|
507
|
-
the gates pass to awk (both sides of every section boundary must parse
|
|
508
|
-
identically — a shared adapter removes that drift axis), and the slug/tag
|
|
509
|
-
extraction helpers. Values and adapters only, never gate structure
|
|
510
|
-
(gate-sdk's `lib/gate.sh` rule).
|
|
511
|
-
|
|
512
|
-
The loader validates what it loads: an empty or non-numeric knob is a
|
|
513
|
-
broken grammar, and the roadmap vocabulary is validated as a pair (§Layout and
|
|
514
|
-
configuration) rather than per-array, because the failure the check exists to
|
|
515
|
-
stop is one array set alone. Validation failures are collected and reported
|
|
516
|
-
together, then exit 2.
|
|
517
|
-
|
|
518
|
-
The icebox is *derived* here rather than configured twice: a non-empty
|
|
519
|
-
`QUEUE_KIT_ICEBOX_SECTION` joins both the shared task regex and the effective
|
|
520
|
-
required-sections set, and when it is empty every icebox regex is the empty
|
|
521
|
-
string so each reader degrades to "no icebox" rather than to "every section".
|
|
522
|
-
|
|
523
|
-
**That degradation is the reader's to complete, not the library's.** The empty
|
|
524
|
-
regex only *carries* the "no icebox" answer; an awk consumer must test it
|
|
525
|
-
explicitly (`iceboxre != "" && $0 ~ iceboxre`), because awk's `$0 ~ ""` matches
|
|
526
|
-
every line and an unguarded match therefore degrades to exactly the "every
|
|
527
|
-
section" reading the empty string was chosen to avoid. Any reader of an
|
|
528
|
-
optional section regex owes that guard.
|
|
529
|
-
|
|
530
|
-
`QUEUE_TASK_SECTIONS` is that composition itself — the active sections, the
|
|
531
|
-
deferred section, and a configured icebox, in configured order — exposed rather
|
|
532
|
-
than consumed and discarded. `QUEUE_TASK_RE` is built from it, and a reader that
|
|
533
|
-
needs the sections *individually* rather than as one alternation
|
|
534
|
-
(§bin/queue-counts.sh) reads the array. One composition, two shapes of the same
|
|
535
|
-
answer: a second reader recomposing the set from the three knobs is the drift
|
|
536
|
-
axis a shared adapter exists to remove.
|
|
537
|
-
|
|
538
|
-
`roadmap_entries` — `native/src/queue.rs`'s, this library holding no counterpart
|
|
539
|
-
— is the single `[roadmap:]` and `roadmap-summary:` parse, shared by the roadmap
|
|
540
|
-
arm (§The roadmap arm) and `check-roadmap-fresh` so the emitter and the gate can
|
|
541
|
-
never disagree about what an entry claims — the same one-adapter rule the section
|
|
542
|
-
regexes follow. It walks the live task sections in queue order and returns one
|
|
543
|
-
record per entry carrying **either** marking: the entry's `[roadmap:]` tag count,
|
|
544
|
-
the raw field text, the slug, the `roadmap-summary:` declaration count, and the
|
|
545
|
-
declaration's text. Emitting on either marking rather than on the tag alone is
|
|
546
|
-
what lets assertion C see a dead declaration — an entry the tag has fallen off is
|
|
547
|
-
exactly the case a tag-triggered walk cannot report.
|
|
548
|
-
|
|
549
|
-
**The record is a typed value rather than a TSV line, and that difference is a
|
|
550
|
-
deletion rather than a translation.** A tab-separated form exists only because a
|
|
551
|
-
shell function's only return channel is stdout, and such a form must carry a
|
|
552
|
-
defensive `-` in an untagged entry's field column: a tab counts as IFS
|
|
553
|
-
whitespace, so a reader splitting on it coalesces an empty column and silently
|
|
554
|
-
shifts every field after it. In-crate the five fields travel as fields, so the
|
|
555
|
-
field-count and embedded-tab hazards have no spelling and an absent field is
|
|
556
|
-
simply empty.
|
|
557
|
-
|
|
558
|
-
The in-body citation scan (§The tag algebra) is deliberately **not** here: it
|
|
559
|
-
has one reader, and this library holds adapters two or more readers share. It
|
|
560
|
-
lives in `bin/queue-edges.sh`, which sources this library for the section
|
|
561
|
-
regexes and `queue_live_slugs` it does share. A second reader of body-position
|
|
562
|
-
slug tokens is what would promote the scan into this roster.
|
|
563
|
-
|
|
564
|
-
**The one-adapter guarantee is split for `queue_live_slugs` and the section
|
|
565
|
-
regexes, and the split is machine-held rather than filed as debt.** The gates
|
|
566
|
-
that read the queue ported to the binary substrate (gate-sdk/SPEC.md §Porting a
|
|
567
|
-
gate to the binary substrate), so `check-queue-slug-liveness` and
|
|
568
|
-
`check-task-conservation` call a Rust reimplementation of that helper while
|
|
569
|
-
`bin/queue-edges.sh` keeps calling this one; the same is true of the section
|
|
570
|
-
regexes, every one of which a `bin/` script still reads directly. The split is
|
|
571
|
-
**permanent** — every `bin/` script in the kit still sources this library
|
|
572
|
-
(`grep -rl lib/queue.sh queue-kit/bin queue-kit/checks` is the roster, and the
|
|
573
|
-
`checks/` half of it is empty now that every gate here dispatches to the binary)
|
|
574
|
-
— so the
|
|
575
|
-
shell form cannot be deleted the way a ported primitive's is, and a port-time
|
|
576
|
-
byte-identity proof would expire at the next edit to either side. What holds the
|
|
577
|
-
two equal from here is `gate-tests/queue-lib-parity.test.sh`: it feeds one canned
|
|
578
|
-
corpus to both and compares their **classification** of it byte for byte
|
|
579
|
-
(§The queue format owns why classification is the comparable thing), which is
|
|
580
|
-
criterion 6's *machine-held* disposition rather than its duplication-absent one
|
|
581
|
-
(gate-sdk/SPEC.md §The port-candidate criteria, criterion 6).
|
|
582
|
-
|
|
583
|
-
The obligation covers **one helper — `queue_live_slugs` — and every derived
|
|
584
|
-
global this library exports** (`grep -n '^QUEUE_[A-Z_]*=' queue-kit/lib/queue.sh`),
|
|
585
|
-
and nothing else is owed one. The crate's `done_slugs` has no counterpart here and needs none: a shell
|
|
586
|
-
twin with no caller is a duplication removal disposes of, which enforcement-first
|
|
587
|
-
ranks above gating it, and the bound on that disposition is undocumented surface
|
|
588
|
-
— no section named it, which is what separates it from the section regexes, every
|
|
589
|
-
one of which is documented and load-bearing.
|
|
590
|
-
`roadmap_entries` is **not** in the split
|
|
591
|
-
either, for the opposite reason: its only two consumers are the roadmap arm and
|
|
592
|
-
`check-roadmap-fresh`, and both now sit on the **crate** function. The exclusion
|
|
593
|
-
is therefore **satisfied on the other substrate, not repealed** — the two still
|
|
594
|
-
cannot disagree, by the identical argument, and what would have spent it is
|
|
595
|
-
porting exactly one of the pair, which is why the arm and the gate landed in one
|
|
596
|
-
commit.
|
|
597
|
-
|
|
598
|
-
The loader sources the consumer config, then a `<config>.local.sh` overlay
|
|
599
|
-
beside it when present — last write wins. This is the tracked-name /
|
|
600
|
-
gitignored-value split (the `msg-patterns.local.list` precedent): a private
|
|
601
|
-
sink value tracked in `queue-config.sh` would itself be the leak, so it lands
|
|
602
|
-
in the gitignored overlay instead. The overlay is optional — its absence is
|
|
603
|
-
fail-open, not an error.
|
|
604
|
-
|
|
605
|
-
### The queue-index arm
|
|
606
|
-
|
|
607
|
-
A **non-gate arm of the binary** (gate-sdk/SPEC.md §The non-gate arm), reached
|
|
608
|
-
through the battery runner's `--emit` front-end:
|
|
609
|
-
`run-gates.sh --emit queue-index [<flags>] [<queue-file>]`. It registers in the
|
|
610
|
-
emitter table under the derived spelling `--emit-queue-index`, stays outside
|
|
611
|
-
`--list`, and owes no `.gate` descriptor, no `gates.list` registration and no
|
|
612
|
-
`good/`+`bad/` fixture pair. The shell tool it replaces is deleted rather than
|
|
613
|
-
retained as a dispatching shim: a shim keeps the interpreted lines the port
|
|
614
|
-
exists to retire and adds a second entry point into the emission path, which the
|
|
615
|
-
class forbids.
|
|
616
|
-
|
|
617
|
-
**The front-end is not optional dressing.** A caller that invoked the binary
|
|
618
|
-
directly would resolve platform defaults and silently ignore every consumer
|
|
619
|
-
override; the front-end sources the shell library and supplies the bridged
|
|
620
|
-
environment in front of the arm. The arm is configured — its bridged reads are
|
|
621
|
-
declared beside it in the emitter table — which is why it is a table member
|
|
622
|
-
rather than a hardcoded top-level flag: a hardcoded flag receives no
|
|
623
|
-
configuration at all, and an arm that cannot see `QUEUE_KIT_ICEBOX_SECTION`
|
|
624
|
-
silently drops the tally in every consumer that configures a tier. The derived
|
|
625
|
-
regexes the shell library built (`QUEUE_ACTIVE_RE` and its siblings) were never a
|
|
626
|
-
configuration surface, only that library's internal spelling of these knobs, so
|
|
627
|
-
none of them crosses into the arm and nothing is lost by their not crossing.
|
|
628
|
-
|
|
629
|
-
**The three modes stay three modes on one arm**, selected from the arm's own
|
|
630
|
-
argv tail — the emitter type is defined over an argv slice precisely so a mode
|
|
631
|
-
rides as a flag rather than needing a second arm. The refusal to grow a *fourth*
|
|
632
|
-
mode is unchanged, and so are the three grammars: they are the contract this port
|
|
633
|
-
preserves.
|
|
634
|
-
|
|
635
|
-
**One observable moved, and it is stated rather than absorbed.** A `--extent`
|
|
636
|
-
slug that resolves to nothing reported `queue-index: slug not found: <slug>` at
|
|
637
|
-
exit 1 and now reports the arm's error at exit **2**, because the emitter type
|
|
638
|
-
returns a `Result` and the dispatcher maps every error arm to 2. Preserving the
|
|
639
|
-
old code would mean widening the class's return contract for one mode's error
|
|
640
|
-
path; no caller reads it — `extent`'s caller is a session reading two integers —
|
|
641
|
-
so the widening is not taken. Every mode's **stdout** grammar is byte-preserved.
|
|
642
|
-
|
|
643
|
-
Compact surface of the queue for task selection — the iteration header line
|
|
644
|
-
if present, then every top-level active entry as a one-line title plus tags,
|
|
645
|
-
ready (`•`) vs blocked (`✗`) marked from the `[blocked-by:]` tag alone. Tags
|
|
646
|
-
are stripped from the one-line title leaving no residue of the separator they
|
|
647
|
-
sat beside, so an entry whose lead line is nothing but tags has no title and
|
|
648
|
-
renders as the bare slug rather than a dangling `—`; `[blocked-by:]` and
|
|
649
|
-
`[drain-exempt: <reason>]` are re-echoed after it — the two tags a picking
|
|
650
|
-
session acts on without opening the entry body.
|
|
651
|
-
`--extent <slug>` prints the inclusive line range of one entry's body (parent
|
|
652
|
-
slug → whole subtree; boundary = next sibling-or-shallower bullet, heading,
|
|
653
|
-
`---`, or EOF, including the trailing blank so a range deletion leaves no
|
|
654
|
-
double blank). `--collapse-deferred` replaces the deferred listing with a
|
|
655
|
-
per-`###`-subsection tally — generic over whatever subsection names the file
|
|
656
|
-
has (a hardcoded tally table would be consumer rule content), with
|
|
657
|
-
entries under no subsection tallied as `(top)`.
|
|
658
|
-
|
|
659
|
-
A configured icebox contributes exactly **one line** to the index —
|
|
660
|
-
`<section>: N entries` — and never an entry listing, on **both** `index`-mode
|
|
661
|
-
renderings (`--collapse-deferred` is a flag within that mode, not a mode of its
|
|
662
|
-
own; the arm's modes are `index`, `extent`, and `icebox-candidates`). The
|
|
663
|
-
tally must not reach `extent`, whose contract is two integers and nothing else.
|
|
664
|
-
The reasoning is the surface's: this output is embedded in the always-loaded
|
|
665
|
-
session-context brief, so listing the tier would re-import the very tokens the
|
|
666
|
-
tier exists to remove, while a bare count keeps it visible. An unconfigured
|
|
667
|
-
icebox emits no line at all.
|
|
668
|
-
|
|
669
|
-
`--icebox-candidates` prints the closing stage's eviction worklist over the
|
|
670
|
-
deferred section: one line per entry whose defer date (§The queue format) is
|
|
671
|
-
older than `QUEUE_KIT_ICEBOX_AGE_DAYS` **and** whose cost field opens in the low
|
|
672
|
-
class, carrying the entry's line count and that opener. An entry with no defer
|
|
673
|
-
date is listed as `(undated)` and an uncosted one as `(uncosted)` rather than
|
|
674
|
-
filtered out — an absent input appears rather than vanishing.
|
|
675
|
-
|
|
676
|
-
Both filters are deliberately **non-load-bearing**: this is a worklist filter
|
|
677
|
-
in a projection tool, not a threshold in a gate, so miscalibration costs a
|
|
678
|
-
longer or shorter review list and never a wrong disposition. That is what
|
|
679
|
-
dissolves "an eviction age threshold needs a policy owner" — the *judgment* is
|
|
680
|
-
the closing stage's, held to §The icebox tier's eligibility rule, and the
|
|
681
|
-
worklist only bounds how much it must look at. Matching a cost-class opener on
|
|
682
|
-
prose would be an unacceptable heuristic in a gate; in an advisory worklist it
|
|
683
|
-
is exactly the right ceiling. **A pool younger than the age threshold yields an
|
|
684
|
-
empty worklist**, which is correct and is not a reason to seed a tier by hand
|
|
685
|
-
against the tool: eligibility is the rule, the worklist is the convenience.
|
|
686
|
-
|
|
687
|
-
**The worklist deliberately does not filter the tier's categorical exclusions —
|
|
688
|
-
a `[roadmap:]` tag or a live promotion trigger — and that is settled, not
|
|
689
|
-
pending.** Operator-ruled 2026-08-18 on five consecutive measurements at zero
|
|
690
|
-
precision: filtering the machine-readable half would have moved the eligible
|
|
691
|
-
count from zero to zero, and the other half is a prose-parsing fork nothing
|
|
692
|
-
justifies. So the closing stage reads a row and applies §The icebox tier's
|
|
693
|
-
eligibility rule to it, which is the division of labour the paragraph above
|
|
694
|
-
already states; a row the rule excludes is a line read, not a defect.
|
|
695
|
-
|
|
696
|
-
No queue-mutating tool is added — `--extent <slug>` already yields the line
|
|
697
|
-
range an eviction deletes.
|
|
698
|
-
|
|
699
|
-
Both index renderings append an **attention block** when the `## Lessons Learned` section
|
|
700
|
-
carries `[attend]` entries (§The tag algebra): each such entry's lead line,
|
|
701
|
-
capped at `QUEUE_KIT_ATTEND_CAP` (default 3) with overflow noted as
|
|
702
|
-
`(+N more [attend])`. Lead lines only, never bodies — the block is
|
|
703
|
-
always-loaded through the session-context hook that embeds this output, so the
|
|
704
|
-
cap is its token budget. This is the inbound lesson channel reaching every
|
|
705
|
-
later session of the iteration with zero consumer-hook edits.
|
|
706
|
-
|
|
707
|
-
The age cutoff keeps its `date -d` derivation rather than moving to an in-crate
|
|
708
|
-
civil-date computation, and the reason is behaviour preservation: `date` resolves
|
|
709
|
-
the operator's local zone where an in-crate computation would resolve UTC, and a
|
|
710
|
-
port that shifts the cutoff by a day is not the behaviour-preserving port this
|
|
711
|
-
was. Its refusal on a `date` without `-d` survives with it.
|
|
712
|
-
|
|
713
|
-
This is a *task-selection* surface, walking bullet lead lines. Its sibling
|
|
714
|
-
`bin/queue-edges.sh` walks entry **bodies** to aggregate citations — a
|
|
715
|
-
different question over the same file (§bin/queue-edges.sh). They stay two
|
|
716
|
-
tools rather than one with a fourth mode, because folding them would give
|
|
717
|
-
one tool two jobs and two output grammars.
|
|
718
|
-
|
|
719
|
-
### bin/queue-counts.sh
|
|
720
|
-
|
|
721
|
-
One job: the size of each **task section**, for a caller that wants the shape of
|
|
722
|
-
the queue rather than its contents. It emits one `<section-name><TAB><count>`
|
|
723
|
-
line per task section, in configured order, and nothing else — no flags, no
|
|
724
|
-
modes, one output grammar.
|
|
725
|
-
|
|
726
|
-
The section set is **derived, never listed**: it is `QUEUE_TASK_SECTIONS`, the
|
|
727
|
-
same composition `QUEUE_TASK_RE` is built from (§lib/queue.sh). So
|
|
728
|
-
`QUEUE_KIT_DONE_SECTION` is out because Done is not a task section, a configured
|
|
729
|
-
`QUEUE_KIT_ICEBOX_SECTION` is in because the icebox is a live one, and a consumer
|
|
730
|
-
who renamed their sections gets their own names back. Nothing here enumerates a
|
|
731
|
-
section name, which is what keeps the vocabulary inside this kit when a caller
|
|
732
|
-
outside it renders the numbers.
|
|
733
|
-
|
|
734
|
-
The counted unit is the **top-level entry bullet** — the same unit
|
|
735
|
-
§The queue-index arm lists, so the index and the counters cannot report different
|
|
736
|
-
sizes for one queue. Not lines, and not bullets: an indented bullet inside an
|
|
737
|
-
entry body is body.
|
|
738
|
-
|
|
739
|
-
**Why a second tool rather than a fourth mode on the `queue-index` arm.** That
|
|
740
|
-
arm's modes are fixed at `index`, `extent` and `icebox-candidates`
|
|
741
|
-
(§The queue-index arm), on the stated grounds that folding jobs together gives one
|
|
742
|
-
tool two output grammars — the same refusal that keeps `bin/queue-edges.sh`
|
|
743
|
-
separate. A tally keyed by section name is a different job with a different
|
|
744
|
-
grammar, so it lands beside the index rather than inside it. Recorded here
|
|
745
|
-
because the next reader meeting two queue tools would otherwise read the split as
|
|
746
|
-
an oversight and merge them.
|
|
747
|
-
|
|
748
|
-
**It is invoked as a subprocess, never sourced.** `lib/queue.sh` exits 2 at
|
|
749
|
-
source time on a missing `QUEUE_KIT_CONFIG_FILE` and on any malformed-config
|
|
750
|
-
assertion — correct for a gate, and fatal for a long-lived caller that sourced
|
|
751
|
-
it. A subprocess turns that contract into a non-zero exit and empty stdout, which
|
|
752
|
-
a caller degrades on. The caller this was built for is delegation-kit's
|
|
753
|
-
statusline template, whose own contract records the degradation
|
|
754
|
-
(delegation-kit/SPEC.md §The statusline template).
|
|
755
|
-
|
|
756
|
-
### bin/queue-edges.sh
|
|
757
|
-
|
|
758
|
-
The inbound-citation aggregator: a tool, not a gate (no `# graph:` manifest),
|
|
759
|
-
following the queue-index precedent. It reads the queue, writes **stdout only**, and
|
|
760
|
-
mutates nothing.
|
|
761
|
-
|
|
762
|
-
```
|
|
763
|
-
usage: queue-edges.sh [--inbound <slug>] [queue-file]
|
|
764
|
-
default: every live slug with at least one inbound edge, and its citing entries
|
|
765
|
-
--inbound <slug>: the inbound set for one slug
|
|
766
|
-
```
|
|
767
|
-
|
|
768
|
-
**Inbound only.** An outbound view is refused for want of a reader: an entry's
|
|
769
|
-
outbound edges *are* its own body, which a session asking the question is
|
|
770
|
-
already reading. Inbound is the direction invisible without a scan of the whole
|
|
771
|
-
file — which is the entire finding this tool answers. Nothing anywhere sums an
|
|
772
|
-
entry's inbound edges into that entry's own cost and benefit, so a survey that
|
|
773
|
-
reads every sibling entry individually can still misrank a unit that several of
|
|
774
|
-
them separately depend on. The tool is that missing sum, which is also what
|
|
775
|
-
makes splitting an entry safe: a split scatters an entry's weight across
|
|
776
|
-
siblings, and this is what adds it back up.
|
|
777
|
-
|
|
778
|
-
Targets print in queue order — the order every other reader of this file walks
|
|
779
|
-
— each with its inbound count, then one line per citing edge. A slug with no
|
|
780
|
-
inbound edges is absent from the default listing and yields empty output under
|
|
781
|
-
`--inbound`; that is the normal case, not a finding. A `--inbound` slug that is
|
|
782
|
-
not live exits 1 with a message on stderr rather than printing nothing, because
|
|
783
|
-
silence from this tool has to mean "no inbound edges" and nothing else.
|
|
784
|
-
|
|
785
|
-
**Each edge carries the citing entry's slug and its citing line verbatim**
|
|
786
|
-
(surrounding whitespace stripped, since the output re-indents). This is what
|
|
787
|
-
buys a relation's *kind* without declaring a vocabulary for one: the nature of
|
|
788
|
-
the relation is already written, in the citing author's own words, by the
|
|
789
|
-
person who understood it. Quoting it beats a one-token classification from a
|
|
790
|
-
fixed set, and it is free. It also keeps the tool honest about precision — a
|
|
791
|
-
citation that is a passing mention rather than a relation is *visibly* a
|
|
792
|
-
passing mention once its line is on screen, so a reader discards it in the time
|
|
793
|
-
it takes to read one line. Recall is what the surface needs, and a
|
|
794
|
-
high-recall list whose noise self-identifies is the right trade.
|
|
795
|
-
|
|
796
|
-
A citation is attributed to the **nearest preceding slug bullet**, so a
|
|
797
|
-
sub-task cites in its own name rather than its parent's, and a lead line
|
|
798
|
-
contributes its `[blocked-by:]` tag alone — never its prose, which is title and
|
|
799
|
-
tags rather than relation.
|
|
800
|
-
|
|
801
|
-
The body-citation scan lives **in this tool, not in `lib/queue.sh`**: it has
|
|
802
|
-
exactly one reader, and the library's rule is shared adapters (§lib/queue.sh).
|
|
803
|
-
It reuses that library's section regexes and `queue_live_slugs`; a second
|
|
804
|
-
reader of body-position slugs is what would move it.
|
|
805
|
-
|
|
806
|
-
**No tracked projection, and no freshness gate.** A tracked artifact needs a
|
|
807
|
-
reader who cannot run the tool, and there is none — the one consumer is a
|
|
808
|
-
session with a shell. A generated public page like the roadmap is tracked
|
|
809
|
-
because its audience is outside the repo; this has no such audience. Against
|
|
810
|
-
that, a committed copy of derived edges over what is typically a repo's
|
|
811
|
-
highest-churn file would restale on essentially every queue edit, buying a
|
|
812
|
-
per-commit regeneration tax for zero benefit. Derivation-first is satisfied by
|
|
813
|
-
deriving on demand: that rule's "generate and freshness-gate" clause governs a
|
|
814
|
-
copy that is *needed*, and this one is not. The `queue-index` arm writes nothing
|
|
815
|
-
and is gated by nothing, for the same reason.
|
|
816
|
-
|
|
817
|
-
**Not a gate, either.** There is nothing to red: an entry with no inbound edges
|
|
818
|
-
is normal, and an entry with many is not a defect. The adjacent temptation —
|
|
819
|
-
redding on a backticked token that resolves to no live slug — is refused
|
|
820
|
-
outright, because those are overwhelmingly legitimate citations of landed work
|
|
821
|
-
(§The tag algebra), and `check-queue-slug-liveness` already owns the liveness
|
|
822
|
-
invariant on the surfaces where a dead reference *is* a false claim. Extending
|
|
823
|
-
it inward would red on good prose.
|
|
824
|
-
|
|
825
|
-
### The roadmap arm
|
|
826
|
-
|
|
827
|
-
The public-roadmap emitter: a **non-gate arm** of the gate binary
|
|
828
|
-
(gate-sdk/SPEC.md §The non-gate arm), reached as
|
|
829
|
-
`bash gate-sdk/bin/run-gates.sh --emit roadmap`, following the queue-index
|
|
830
|
-
precedent. The bare arm prints the generated block to stdout; `--write` splices
|
|
831
|
-
it between the markers in `QUEUE_KIT_ROADMAP_FILE` through the crate's shared
|
|
832
|
-
marker writer, leaving every byte outside them untouched.
|
|
833
|
-
|
|
834
|
-
**Table membership is forced rather than chosen, and the alternative is the
|
|
835
|
-
failure mode that looks like success.** An arm receives no configuration and only
|
|
836
|
-
an emitter-table member is bridged, so this tool ported as a hardcoded top-level
|
|
837
|
-
flag would resolve platform defaults and silently ignore every consumer override
|
|
838
|
-
of the horizons, the tracks, the queue path or the marker name. The table's knob
|
|
839
|
-
column is what keeps `QUEUE_KIT_HORIZONS` and `QUEUE_KIT_TRACKS` on the caller's
|
|
840
|
-
side of the bridge, which is the provenance seam holding: the crate ships the
|
|
841
|
-
projection *grammar* — the headings, the bullet shape, the placeholder, the
|
|
842
|
-
trailing blank — and not one lane name (§The tag algebra).
|
|
843
|
-
|
|
844
|
-
The section trio (`QUEUE_KIT_ACTIVE_SECTIONS`, `QUEUE_KIT_DEFERRED_SECTION`,
|
|
845
|
-
`QUEUE_KIT_ICEBOX_SECTION`) rides the same roster, because the shared adapter is
|
|
846
|
-
what scopes the scan and a knob the bridge does not carry is a knob the arm
|
|
847
|
-
cannot read. It reads the live task sections only — active, deferred, and a configured icebox,
|
|
848
|
-
never the done section, because a shipped item is history, not direction. The
|
|
849
|
-
icebox enters that walk on purpose even though no icebox entry can be
|
|
850
|
-
projectable: excluded, a `[roadmap:]` tag that drifted into the tier would
|
|
851
|
-
silently drop a public commitment; included, it reds (§The icebox tier).
|
|
852
|
-
|
|
853
|
-
The emit grammar is a contract on both sides: `check-roadmap-fresh` byte-compares
|
|
854
|
-
it and a reader consumes it as the page's body.
|
|
855
|
-
|
|
856
|
-
- One `### <horizon>` heading per configured horizon, in the knob array's own
|
|
857
|
-
order — never a sort the crate imposes — each
|
|
858
|
-
emitted even when the queue puts nothing there — an empty horizon is
|
|
859
|
-
information, and a section that vanishes when it empties reads as a page that
|
|
860
|
-
forgot it. An empty horizon carries a one-line placeholder instead of bullets.
|
|
861
|
-
- Under each, one bullet per tagged entry, in queue order:
|
|
862
|
-
``- **`<slug>`** *(<track>)* — <summary>``.
|
|
863
|
-
- The summary is the entry's `roadmap-summary:` declaration (§The tag algebra),
|
|
864
|
-
printed verbatim. Nothing else in the entry is projected — not the lead line,
|
|
865
|
-
not the body, which carries internal design rationale and cost accounting,
|
|
866
|
-
precisely the content a public page must not inherit. The emitter neither
|
|
867
|
-
summarizes nor truncates: an author decided what the page says, and an entry
|
|
868
|
-
without a single non-empty declaration contributes no bullet at all, so
|
|
869
|
-
unmarked prose cannot reach the page even with the gate bypassed.
|
|
870
|
-
|
|
871
|
-
The block ends on a blank line. That blank is load-bearing rather than cosmetic:
|
|
872
|
-
the Pages parser closes a list only on one, so without it the `:end` marker abuts
|
|
873
|
-
the last bullet and renders *inside* that list item. Both sides of the freshness
|
|
874
|
-
compare strip their trailing newlines, so the byte-compare is unaffected — the same arrangement the value-rollup emitter uses to keep a
|
|
875
|
-
table from swallowing its marker.
|
|
876
|
-
|
|
877
|
-
Honest limit — the lead line is a shared budget, and `[roadmap:]` competes for it
|
|
878
|
-
with every other tag the entry carries. Against `check-queue-wrap`'s floor a
|
|
879
|
-
`[spec: <file>]` tag is far wider than `[design-pending]`, so an entry carrying
|
|
880
|
-
a spec pointer and a long slug may have room for the `[roadmap:]` tag but none
|
|
881
|
-
for prose after it. That costs nothing now the summary lives on its own line:
|
|
882
|
-
the lead line needs room for the tag alone. It does bound the tag itself — a
|
|
883
|
-
sufficiently long slug plus spec pointer leaves no room even for that, and such an
|
|
884
|
-
entry is unprojectable until the pointer drops at the amendment's merge. A true
|
|
885
|
-
state of the queue rather than a defect to gate around: the wrap floor exists so a
|
|
886
|
-
runaway never reflows to column 0, and widening it to make room for a public page
|
|
887
|
-
would trade a parse guarantee for a presentation one.
|
|
888
|
-
|
|
889
|
-
Ordering inside a horizon is queue order, not a rank; the page states so in its
|
|
890
|
-
framing rather than implying a priority the queue does not carry. The
|
|
891
|
-
three-to-five items per horizon band is editorial posture, stated in the page's
|
|
892
|
-
framing prose, and deliberately **not gated**: a horizon legitimately holding two
|
|
893
|
-
items is a true state of the queue, and reddening a commit over it would buy a
|
|
894
|
-
curation opinion at the cost of the low-false-positive contract every gate here
|
|
895
|
-
is held to.
|
|
896
|
-
|
|
897
|
-
### check-roadmap-fresh
|
|
898
|
-
|
|
899
|
-
Invariant, in two assertions over `QUEUE_KIT_ROADMAP_FILE`:
|
|
900
|
-
|
|
901
|
-
- **(A) Freshness.** The committed marker block byte-matches the roadmap arm's
|
|
902
|
-
emission, called **in-process** rather than spawned — the arm ported in the same
|
|
903
|
-
commit, so there is no shell left to reach — on the `check-footprint-fresh` /
|
|
904
|
-
`check-value-rollup-fresh` model — diff the emission against the block and name
|
|
905
|
-
the regen command in the red output. A missing file, missing markers, or an
|
|
906
|
-
unbalanced marker pair is fail-closed (exit 2): an absent projection under a
|
|
907
|
-
configured path is a broken install, not a clean skip.
|
|
908
|
-
- **(B) Tag-field validity.** Every `[roadmap:]` tag in the live task sections
|
|
909
|
-
parses as `<horizon>/<track>` with both fields members of their configured
|
|
910
|
-
arrays. An unknown horizon or track, a missing slash, or a second `[roadmap:]`
|
|
911
|
-
tag on one entry is a violation naming the entry and the offending field.
|
|
912
|
-
- **(C) Marking parity**, in both directions. A `[roadmap:]`-tagged entry carries
|
|
913
|
-
exactly one `roadmap-summary:` declaration — none, or two, is a violation,
|
|
914
|
-
because a curated entry with no marked text would otherwise reach a reader as a
|
|
915
|
-
bullet with no prose. And a declaration on an entry whose lead line carries no
|
|
916
|
-
`[roadmap:]` tag is a violation too: a dead marking is what a dropped or
|
|
917
|
-
reflowed tag looks like from the page's side, and the tag is what decides
|
|
918
|
-
projection.
|
|
919
|
-
|
|
920
|
-
**Assertion B runs before assertion A, and the ordering is carried deliberately.**
|
|
921
|
-
A tag naming an unconfigured horizon is silently dropped from the emission, so a
|
|
922
|
-
freshness verdict taken before the fields are validated would pass a page that
|
|
923
|
-
quietly lost an item. That is a correctness property of the pair of assertions
|
|
924
|
-
rather than an implementation accident, and it is written here because a reader
|
|
925
|
-
taking the three assertions as an unordered set would lose it with nothing
|
|
926
|
-
reddening.
|
|
927
|
-
|
|
928
|
-
Assertions B and C live here rather than in `check-tag-lead-line` because this is
|
|
929
|
-
the gate that already loads the horizon and track vocabularies and the shared
|
|
930
|
-
`[roadmap:]` parse; putting them in the lead-line gate would make a placement gate
|
|
931
|
-
load a value roster and a body-scoped declaration it has no other use for.
|
|
932
|
-
`check-tag-lead-line` still governs the tag on its *placement* axis, and governs
|
|
933
|
-
the declaration not at all — it is body-scoped by design.
|
|
934
|
-
|
|
935
|
-
Calibration: `QUEUE_KIT_ROADMAP_FILE` empty is a clean skip for both assertions
|
|
936
|
-
— the correct no-op for a consumer that publishes no roadmap, matching
|
|
937
|
-
`check-queue-slug-liveness`'s empty-globs behavior. The two-argument form
|
|
938
|
-
(`[projection-file] [emit-file]`) steers assertion A off the live emitter onto
|
|
939
|
-
pre-baked fixture files, the interface both cited models carry: a freshness gate
|
|
940
|
-
offering only its bare form has no fixture that does not read the live queue, so
|
|
941
|
-
the pair's verdict would turn on tree state outside the fixture directory.
|
|
942
|
-
|
|
943
|
-
**What the fixture pair proves is bounded, and it is explicitly not the arm's
|
|
944
|
-
parity proof.** Both cases steer assertion A off the live emitter, so the pair
|
|
945
|
-
would have gone green over an arm with no implementation at all. The pair proves
|
|
946
|
-
the comparator and the two-argument plumbing; what proved the emission was the
|
|
947
|
-
transition-scoped parity run against the shell emitter, held while both existed
|
|
948
|
-
(gate-sdk/SPEC.md §The first cohort, and the rule that selects the next).
|
|
949
|
-
|
|
950
|
-
The declaration is `checks/check-roadmap-fresh.gate` — hermetic, `precommit`,
|
|
951
|
-
binary-dispatched. Its `couples=` names every crate module the gate reaches
|
|
952
|
-
transitively, the emit module and the two shared with the emit side of the
|
|
953
|
-
compare included: the generated hook's `staged_matches` trigger is derived from
|
|
954
|
-
that field, so an omitted module leaves the gate registered and green while the
|
|
955
|
-
page it holds goes stale at commit time.
|
|
956
|
-
|
|
957
|
-
### bin/lesson-sink.sh
|
|
958
|
-
|
|
959
|
-
The outbound channel's router: reads a lesson body on stdin and resolves the
|
|
960
|
-
sink for its `<tag>` argument from `QUEUE_KIT_LESSON_SINKS`. A configured entry
|
|
961
|
-
runs as a **command** with the body streamed to its stdin — a command, not a
|
|
962
|
-
path, so the sink may reformat the body into a downstream backlog's own
|
|
963
|
-
grammar; the command's exit status becomes the tool's, so a failing sink is a
|
|
964
|
-
red close step and harvest material is never half-routed to a silent fallback.
|
|
965
|
-
An unconfigured tag falls **open** to appending the body to
|
|
966
|
-
`${GATE_SDK_WORKFLOW_DIR:-.workflow}/<tag>-harvest.md` — the honest
|
|
967
|
-
manual-drain default that keeps a fresh clone (no overlay) closing cleanly and
|
|
968
|
-
preserves the staging file's documented reclaim path. A tool, not a gate (no
|
|
969
|
-
`# graph:` manifest); the consumer close skill invokes it so the tracked skill
|
|
970
|
-
names the mechanism, never a sink value, and a private sink command lives in
|
|
971
|
-
the `queue-config.local.sh` overlay (§lib/queue.sh).
|
|
972
|
-
|
|
973
|
-
### check-queue-hygiene
|
|
974
|
-
|
|
975
|
-
Invariant: the queue contains only tasks, tags, and section structure — no
|
|
976
|
-
HTML comments (provenance belongs in git history), no exact-duplicate
|
|
977
|
-
non-blank non-`---` lines (copy-paste artifacts), no column-0 prose (every
|
|
978
|
-
column-0 line is a heading, a bullet, `---`, or a configured
|
|
979
|
-
`QUEUE_KIT_PROSE_LEADS` token — the shape that carries protocol duplication
|
|
980
|
-
is banned, not semantic duplication, which is not mechanizable).
|
|
981
|
-
|
|
982
|
-
Calibration: indented lines are never flagged on the prose axis; the
|
|
983
|
-
lead-token allowance is a whole-line lead match, not a substring. Division of
|
|
984
|
-
labour with `check-queue-sections`: hygiene owns line *shape* (what a column-0
|
|
985
|
-
line may be), the sections gate owns heading *presence* (that each required
|
|
986
|
-
`##` heading exists exactly once) — neither subsumes the other.
|
|
987
|
-
|
|
988
|
-
### check-queue-sections
|
|
989
|
-
|
|
990
|
-
Invariant: the queue file carries each `QUEUE_KIT_REQUIRED_SECTIONS` heading
|
|
991
|
-
exactly once — zero occurrences (missing/typo'd) and two-or-more (accidental
|
|
992
|
-
paste) are both red. This is the fail-closed floor under every section-scoped
|
|
993
|
-
scanner: `check-amendment-queue`, `check-task-names`, `check-task-conservation`,
|
|
994
|
-
and the session-context index all locate work by `## <section>` boundaries and
|
|
995
|
-
silently find *nothing* — passing open — when a heading is dropped or
|
|
996
|
-
misspelled. A trailing `:` on a required entry marks a dynamic-suffix heading
|
|
997
|
-
(the iteration header, whose suffix is its iteration name) and is
|
|
998
|
-
prefix-matched; every other entry is matched exactly. A grep error (not a
|
|
999
|
-
no-match) is fail-closed (exit 2). The required set is the configured array
|
|
1000
|
-
**plus the derived icebox heading** (§Layout and configuration), which is what
|
|
1001
|
-
closes the half-configured hole by construction. The `# graph:` couples the
|
|
1002
|
-
queue file at `tier=precommit`.
|
|
1003
|
-
|
|
1004
|
-
### check-queue-entry-budget
|
|
1005
|
-
|
|
1006
|
-
Invariant, one statement from three sides: **a deferred entry is a costed filing
|
|
1007
|
-
— bounded above so it is not an inlined amendment, bounded below so it is not a
|
|
1008
|
-
flag-and-skip, and bounded in what it may displace, so a bound on filing never
|
|
1009
|
-
becomes a bound on the record.** The first two sides are about the entry's
|
|
1010
|
-
*size*; the third is about what the cap *spends* to stay inside it. Three
|
|
1011
|
-
assertions:
|
|
1012
|
-
|
|
1013
|
-
- **(A) Size.** No deferred entry exceeds `QUEUE_KIT_ENTRY_LINE_CAP` **counted**
|
|
1014
|
-
lines. An entry's **extent** is the lead line through the line before the next
|
|
1015
|
-
bullet at the same or shallower indent — the same extent
|
|
1016
|
-
the `queue-index` arm's `--extent` yields, so the range the gate measures is the
|
|
1017
|
-
range an eviction deletes. Its **count** is that extent less **at most one**
|
|
1018
|
-
line matching the `recurrence:` declaration grammar (§The tag algebra). Extent
|
|
1019
|
-
and count differ by that one discounted line and by nothing else, which is what
|
|
1020
|
-
keeps the equality above a statement about the *range* while the cap binds the
|
|
1021
|
-
*count*. A sub-task nests inside its parent's extent and is measured as its own
|
|
1022
|
-
entry too — and claims its own at-most-one discount, so a parent whose extent
|
|
1023
|
-
holds two declarations still discounts one.
|
|
1024
|
-
- **(B) Icebox shape.** Every icebox entry is exactly one line; a continuation
|
|
1025
|
-
line under an icebox bullet is a violation. Skips clean when
|
|
1026
|
-
`QUEUE_KIT_ICEBOX_SECTION` is empty, the empty-knob behavior
|
|
1027
|
-
`check-queue-slug-liveness` originates.
|
|
1028
|
-
- **(C) Cost present.** Every top-level deferred entry carries a
|
|
1029
|
-
`Cost while deferred` bold lead-in. Deliberately **not** applied to the
|
|
1030
|
-
icebox: a one-line entry cannot carry the field and does not need to —
|
|
1031
|
-
membership in the tier is itself the cost declaration (low, non-rotting, no
|
|
1032
|
-
live trigger). The requirement binds exactly where the section does not
|
|
1033
|
-
already imply the answer.
|
|
1034
|
-
|
|
1035
|
-
Calibration: `QUEUE_KIT_ENTRY_LINE_CAP` defaults to `50`. The cap's job is to
|
|
1036
|
-
keep compression from regrowing rather than to force the initial cut, so it is
|
|
1037
|
-
calibrated at the tail rather than the body — above the 75th percentile of a
|
|
1038
|
-
real pool, with no natural break in the distribution to read a value off. It is
|
|
1039
|
-
a stated policy with a stated purpose rather than a derived one, and it is a
|
|
1040
|
-
knob for exactly that reason. The scan is line-local: the cost field's bold
|
|
1041
|
-
lead-in must sit on one line, the same reason a tag must sit on its lead line
|
|
1042
|
-
(§check-tag-lead-line), and a lead-in split by a reflow reads as absent. (C)
|
|
1043
|
-
binds top-level entries only — a sub-task is covered by its parent's costing.
|
|
1044
|
-
|
|
1045
|
-
**The active sections are uncapped**, and the reason is structural: an active
|
|
1046
|
-
entry's residency is one iteration by the drain rule, so it has no carry to
|
|
1047
|
-
cap. The carry problem is the deferred pool's alone.
|
|
1048
|
-
|
|
1049
|
-
**Clean-path headroom.** When all three assertions hold, the clean line is
|
|
1050
|
-
followed by one line per Deferred entry — a sub-task included, since it is
|
|
1051
|
-
measured as its own entry under (A) — naming that entry's headroom to the cap:
|
|
1052
|
-
the same count assertion A already derives, one subtraction away, so exposing
|
|
1053
|
-
it costs no new computation and mints no new name. This is exposure, not a new
|
|
1054
|
-
capability: the enforcing member already computes each entry's count in order
|
|
1055
|
-
to enforce the cap, so a session sizing an edit reads the measurement instead
|
|
1056
|
-
of hand-rolling it — a hand-rolled probe carries the risk of a second spelling
|
|
1057
|
-
of the cap, a second implementation of the parse, and a mismeasured entry
|
|
1058
|
-
boundary that reads as a false cap overrun. The rejected
|
|
1059
|
-
alternative was a `--headroom <slug>` mode on the `queue-index` arm: it mints a
|
|
1060
|
-
name against that arm's standing no-fourth-mode refusal, where this
|
|
1061
|
-
exposure spends nothing beyond a print at the compiled assertion's existing
|
|
1062
|
-
computation.
|
|
1063
|
-
|
|
1064
|
-
**No collision counter is minted either, and this line is where that decision is
|
|
1065
|
-
recorded** rather than left as the absence of one. A count of how often the cap
|
|
1066
|
-
displaced a mandated write would be a second measurement of a quantity this
|
|
1067
|
-
headroom line already prints, maintained by hand, against a criterion (the split
|
|
1068
|
-
test below) that reads an entry's *composition* rather than its collision
|
|
1069
|
-
history. What a firing count would have been evidence for, the split criterion
|
|
1070
|
-
decides directly.
|
|
1071
|
-
|
|
1072
|
-
*Why one `recurrence:` line is discounted, and why exactly one.* The line is
|
|
1073
|
-
**fixed-shape and width-bounded** — §The tag algebra rules its ceiling to be
|
|
1074
|
-
`check-queue-wrap`'s budget and rules reaching that ceiling the *correct*
|
|
1075
|
-
complaint, so the discount cannot let an entry grow without bound. It is exactly
|
|
1076
|
-
the **generated-shaped content** that argued content was otherwise spent to seat,
|
|
1077
|
-
so making the count blind to it removes that trade rather than arbitrating it.
|
|
1078
|
-
And it is **one line, not a grammar-wide exemption**: the declaration's own rule
|
|
1079
|
-
is one line per entry with dates appended, so one line is the whole of what that
|
|
1080
|
-
form can claim — §The tag algebra refuses the one-line-per-recurrence variant
|
|
1081
|
-
partly *because* it grows an entry linearly against this cap, and a grammar-wide
|
|
1082
|
-
exemption would retire that refusal's ground as a side effect. The match is the
|
|
1083
|
-
declaration's own grammar — the `recurrence:` lead token, a slug, then at least
|
|
1084
|
-
one ISO date, the shape drift-kit's `kpi-incident-recurrence` already reads —
|
|
1085
|
-
with no entry-boundary or self-slug condition added, since the at-most-one bound
|
|
1086
|
-
is what does the scoping. The discount narrows the **count** only and removes
|
|
1087
|
-
nothing from the scan, so (B), which counts icebox continuation lines, and (C),
|
|
1088
|
-
which asserts a lead-in is *present*, cannot flip; (A) itself reds on
|
|
1089
|
-
*exceeding* the cap and is monotone in the count, so a smaller count reds
|
|
1090
|
-
strictly less.
|
|
1091
|
-
|
|
1092
|
-
**A mandated write is the class the cap has no self-served answer for.** A
|
|
1093
|
-
mandated write is a write on a deferred entry that another governed contract
|
|
1094
|
-
obliges the writing session to make **in the commit it is already making**, and
|
|
1095
|
-
whose obligation is citable to that contract by name. Two instances exist, both
|
|
1096
|
-
already in the tree rather than invented here: a judged `recurrence:` date and
|
|
1097
|
-
the grounds it is read from, which must land in the commit the judging session is
|
|
1098
|
-
already making because that commit is the audit artifact (lifecycle-kit/SPEC.md
|
|
1099
|
-
§The committed gap inbox); and a ruling recorded onto the entry it rules, under
|
|
1100
|
-
the recording-in-the-moment rule below. Its **producers** are the sessions those
|
|
1101
|
-
two contracts already bind — any session that judges a recurrence, the gap-inbox
|
|
1102
|
-
drain being its mechanized instance, and any session recording a
|
|
1103
|
-
ruling — both running today with no new trigger, no new field and nothing to
|
|
1104
|
-
configure; its **consumers** are that same session reading this section when
|
|
1105
|
-
assertion A blocks it, a path the gate's failure text already routes it down, and
|
|
1106
|
-
lifecycle-kit's judgment contract, which cites the class by name for the write it
|
|
1107
|
-
mandates. **What is not a mandated write, because a class that excludes nothing
|
|
1108
|
-
is not a class:** the session's own evidence for a claim, a further ground for a
|
|
1109
|
-
claim already made, a cross-reference it would like to add, a correction it could
|
|
1110
|
-
equally make in a later commit. All of those keep the reliefs they have. The test
|
|
1111
|
-
is not *how important is this* — every session believes its write matters — but
|
|
1112
|
-
*does a named contract oblige this write in this commit*.
|
|
1113
|
-
|
|
1114
|
-
**Compression is lossless; relocation is self-served for a mandated write, and
|
|
1115
|
-
the split stays authorization-gated.** An entry that will not fit is compressed
|
|
1116
|
-
by *answering* grounds, never by dropping or summarizing them away; a ground that
|
|
1117
|
-
survives unanswered is relocated into a distinct linked entry. The gate cannot
|
|
1118
|
-
hold this: it sees an entry's current extent, and judging whether a removed line
|
|
1119
|
-
was answered or discarded is semantic. So the rule is a stated authoring
|
|
1120
|
-
contract — and that third relief is **two acts wearing one name**.
|
|
1121
|
-
|
|
1122
|
-
- **Relocating grounds** into an entry that **already exists and already owns the
|
|
1123
|
-
ground's subject** is self-served when, and only when, what the cap blocks is a
|
|
1124
|
-
mandated write. The relocating session cites the mandating contract in the
|
|
1125
|
-
commit that makes the relocation, and names the target with a
|
|
1126
|
-
single-backticked slug in the entry body — already a citation under §The tag
|
|
1127
|
-
algebra and already aggregated by `bin/queue-edges.sh`, so the link needs no
|
|
1128
|
-
declaration of its own. A `relocated:` declaration is refused on the ground
|
|
1129
|
-
§The tag algebra refuses `relates:` on: it would cost a counted line against
|
|
1130
|
-
this very cap, on the entry least able to pay it.
|
|
1131
|
-
- **Splitting the unit** — minting a *new* entry to hold what would not fit —
|
|
1132
|
-
carries its own authorization, unchanged: a parent session (the iteration
|
|
1133
|
-
lead), or the operator in the absence of one, grants permission to split and
|
|
1134
|
-
issues the recipe with the ruling. A session blocked by the cap does not
|
|
1135
|
-
self-serve *that*, the same lineage as a `check-stage-entry` assertion C waiver
|
|
1136
|
-
(lifecycle-kit/SPEC.md §check-stage-entry), and the gate's failure text
|
|
1137
|
-
therefore cites this section rather than inlining the recipe.
|
|
1138
|
-
|
|
1139
|
-
**An entry is a split candidate when it carries two or more deliverables that
|
|
1140
|
-
can take different dispositions** — where *different dispositions* means one
|
|
1141
|
-
could be promoted, deferred, declined or closed while the other stays open. The
|
|
1142
|
-
test is executed by reading the entry's deliverable statements and asking
|
|
1143
|
-
whether ruling one leaves the other unruled. If it does, the entry is two units
|
|
1144
|
-
wearing one slug, and its grounds are two ground-sets sharing one cap.
|
|
1145
|
-
|
|
1146
|
-
**The counter-class is what makes it a class**, and it is stated with the
|
|
1147
|
-
criterion rather than left to inference: an entry accumulating **further
|
|
1148
|
-
grounds for one deliverable** — recurrence evidence, a repeated measurement, an
|
|
1149
|
-
answered objection, a corroborating firing — is **not** a split candidate
|
|
1150
|
-
however hard it collides. Those are one unit's history, and splitting them
|
|
1151
|
-
mints exactly the ranking peer competing with its own parent that the
|
|
1152
|
-
two-acts paragraph below names as the sharpest displacement shape. Compression
|
|
1153
|
-
by answering is the correct relief there and stays the default.
|
|
1154
|
-
|
|
1155
|
-
*Why dispositionability, and not size, age or ruling-count.* **Size** is the cap
|
|
1156
|
-
itself, so it would make the criterion circular. **Age** is refuted by the
|
|
1157
|
-
measurements a colliding pool actually produces — the collider is the most
|
|
1158
|
-
recently ruled-on entry rather than the longest-lived, which is the opposite of
|
|
1159
|
-
what a first reading of a collision log suggests. **Ruling-count** is the near
|
|
1160
|
-
miss and the one worth stating, because collisions genuinely do concentrate
|
|
1161
|
-
where rulings accumulate; it is refused because it is a **symptom shared by
|
|
1162
|
-
both classes**. An entry accumulating rulings on one deliverable collides
|
|
1163
|
-
exactly as hard as one accumulating rulings on two, so a criterion that cannot
|
|
1164
|
-
separate them licenses the split that mints a competing peer. Dispositionability
|
|
1165
|
-
separates them and is decidable by inspection, which is what an authoring
|
|
1166
|
-
contract needs.
|
|
1167
|
-
|
|
1168
|
-
**The criterion is read at the collision, and it is an input to the
|
|
1169
|
-
authorization rather than a licence.** The blocked session states which side of
|
|
1170
|
-
the test its entry falls on when it asks; the authorizing session rules with
|
|
1171
|
-
that statement in front of it. What changes is the **shape of the ask**, never
|
|
1172
|
-
who answers it. Without a test the authorizing session has only the blocked
|
|
1173
|
-
session's summary of its own entry, so the answer is a judgment call re-derived
|
|
1174
|
-
per firing — which is the mechanism behind the pattern a collision log shows:
|
|
1175
|
-
relief was always available, so the question was always answered by the
|
|
1176
|
-
cheapest relief rather than by composition. **A denied split is not a dead
|
|
1177
|
-
end**, stated so the criterion does not read as gating relief: an entry that
|
|
1178
|
-
fails the test still has compression by answering and the self-served
|
|
1179
|
-
relocation, which are the reliefs it should have been using, and an entry that
|
|
1180
|
-
passes and is denied anyway gets the denial's ground recorded on it as any
|
|
1181
|
-
other ruling would be.
|
|
1182
|
-
|
|
1183
|
-
**An authorized split records itself through the citation grammar already
|
|
1184
|
-
here** — the parent names the child and the child names the parent, each with
|
|
1185
|
-
the single-backticked slug §The tag algebra already rules a citation. A
|
|
1186
|
-
`split-of:` declaration is refused on exactly the ground `relocated:` is
|
|
1187
|
-
refused on above, so the two refusals read as one rule: it would cost a counted
|
|
1188
|
-
line against this very cap, on the two entries least able to pay it — the
|
|
1189
|
-
parent that just overflowed and the child carrying what would not fit. The
|
|
1190
|
-
backticked slug costs no line of its own, because it rides prose the split is
|
|
1191
|
-
writing anyway. **Bidirectional rather than child-to-parent alone**, because
|
|
1192
|
-
the failure a one-way citation leaves is the one this whole class is about: a
|
|
1193
|
-
reader meeting the **parent** sees an entry whose deliverable set silently
|
|
1194
|
-
shrank, with no surviving statement of what left or why, and re-derives the
|
|
1195
|
-
missing half as a gap — the same information loss the compression rule forbids,
|
|
1196
|
-
arriving through a split instead of through a deletion.
|
|
1197
|
-
|
|
1198
|
-
**The pair is an aggregated edge only while both slugs are live**, on §The tag
|
|
1199
|
-
algebra's resolution rule, and the bound is stated because the parent is the
|
|
1200
|
-
end that reaches it first: a `## Done` entry is a bare slug, so it leaves the
|
|
1201
|
-
live set and takes the parent's citation with the rest of its prose, and the
|
|
1202
|
-
edge silently stops being an edge. That is the correct outcome rather than a
|
|
1203
|
-
loss — the parent-side citation exists to stop a *live* parent reading as an
|
|
1204
|
-
entry whose deliverable set shrank, and a completed parent has no open
|
|
1205
|
-
deliverable set to misread. What it means is that the split's durable record is
|
|
1206
|
-
the **child's** citation, and the parent's is owed for exactly as long as the
|
|
1207
|
-
parent is open.
|
|
1208
|
-
|
|
1209
|
-
*Why the line falls between the two acts.* Grounds are not rankable work, so
|
|
1210
|
-
moving them into an entry that already owns their subject mints no ranking peer;
|
|
1211
|
-
a new entry *is* a new unit, competing for the scope attention that ranks both,
|
|
1212
|
-
which is a scope-class judgment and keeps the authorization. That is what stops
|
|
1213
|
-
the sharpest displacement shape — an entry too full to hold its own design half,
|
|
1214
|
-
so the half is filed as a separate entry competing with its own parent — from
|
|
1215
|
-
becoming routine under a blanket relief. And the authorization is safe to drop
|
|
1216
|
-
for the narrow act because a mandated write is by construction not
|
|
1217
|
-
discretionary: its obligation belongs to another surface and is citable, so a
|
|
1218
|
-
reader can check the trigger even though no gate reads it, and the act is
|
|
1219
|
-
net-negative on the parent by construction — a relocation that does not reduce
|
|
1220
|
-
the parent's extent is not a relocation, which assertion A enforces from the
|
|
1221
|
-
other side. **The honest limit, stated because it is real:** where no existing
|
|
1222
|
-
entry owns the ground's subject, the self-served relief is unavailable and the
|
|
1223
|
-
session is back to compressing by answering, or to asking. That is the correct
|
|
1224
|
-
outcome rather than a hole — needing to mint an entry *is* the signal that a
|
|
1225
|
-
unit, not a ground, is what would not fit.
|
|
1226
|
-
|
|
1227
|
-
*Why the cap is not widened for exceptional content.* Assertion A's bound is
|
|
1228
|
-
the amendment-inlining line above, not a length preference, so raising the
|
|
1229
|
-
number moves the number without moving the line — and the entries that would
|
|
1230
|
-
claim an exception are the likeliest ungoverned amendments. A conditional cap
|
|
1231
|
-
collapses back into authorization anyway, or it is the self-issued exemption
|
|
1232
|
-
the delegation doctrine already names as the standard failure mode. The
|
|
1233
|
-
recurrence discount is **not** that widening and must not be read as one: it
|
|
1234
|
-
changes what the count includes, never the number, and it is unconditional —
|
|
1235
|
-
no entry claims it by being exceptional.
|
|
1236
|
-
|
|
1237
|
-
**A ruling the operator restates from memory is filed in the moment.** The
|
|
1238
|
-
compression rule above is an authoring contract, so a break in it is silent, and
|
|
1239
|
-
it surfaces in one recognisable form: the operator supplies a closed decision
|
|
1240
|
-
from memory because no surface carries it any more. That restatement is the
|
|
1241
|
-
moment the content is in hand and the cheapest it will ever be, so it is filed
|
|
1242
|
-
*then*, as a **recording entry** — never noted for a later pass. Deferring the
|
|
1243
|
-
filing is not a cheaper version of it: the ruling stays exactly where it was
|
|
1244
|
-
lost from, and the next session pays the same restatement over again. A
|
|
1245
|
-
recording entry is the queue's holding pen for a decision in flight, never its
|
|
1246
|
-
home; its deliverable is the ruling landed in the surface that owns it, one
|
|
1247
|
-
owner per fact as everywhere else, and the entry is done when that surface
|
|
1248
|
-
carries it. The gate cannot hold this either, for the same reason it cannot hold
|
|
1249
|
-
compression: nothing distinguishes a sentence that was recalled from one that
|
|
1250
|
-
was read.
|
|
1251
|
-
|
|
1252
|
-
### check-queue-wrap
|
|
1253
|
-
|
|
1254
|
-
Invariant: no line exceeds the `QUEUE_KIT_WRAP_BUDGET` gate floor (default
|
|
1255
|
-
100 columns; the authoring target is ~80). The tools key on the column-0
|
|
1256
|
-
`- ` lead, so an unwrapped runaway that reflows to column 0 corrupts the
|
|
1257
|
-
parse; the tripwire fires before that lands.
|
|
1258
|
-
|
|
1259
|
-
Calibration: three exemptions mirror the wrapping convention — table rows,
|
|
1260
|
-
fenced-code blocks, and lines whose own longest token itself exceeds the budget
|
|
1261
|
-
(URL, path). That third one is narrower than "over budget because of one long
|
|
1262
|
-
token": a 101-column line whose longest token is 55 is **not** exempt, because
|
|
1263
|
-
the token still wraps. Width is Unicode code points, not bytes.
|
|
1264
|
-
|
|
1265
|
-
### check-tag-lead-line
|
|
1266
|
-
|
|
1267
|
-
Invariant: every **lead-line-scoped** tag sits on its bullet's lead line — the
|
|
1268
|
-
only line *its* readers scan; such a tag pushed to a continuation line by a
|
|
1269
|
-
reflow silently unblocks a task, masks a design-pending state, voids a drain
|
|
1270
|
-
exemption, or drops a lesson out of the attention block. Membership tracks reader semantics, not §The tag
|
|
1271
|
-
algebra: a tag is governed here when its readers scan lead lines alone, so the
|
|
1272
|
-
set is narrower than the algebra's and `[precondition-ok:]` is deliberately
|
|
1273
|
-
outside it — `check-queue-prose-precondition` honors that tag anywhere in the
|
|
1274
|
-
entry, leaving it no lead-line requirement to enforce. The governed set and
|
|
1275
|
-
scanned surface both widen with the lesson channels: `[blocked-by:]` /
|
|
1276
|
-
`[spec:]` / `[design-pending]` / `[drain-exempt:]` / `[roadmap:]` in the task
|
|
1277
|
-
sections (active + deferred), plus
|
|
1278
|
-
`[attend]` and every `QUEUE_KIT_LESSON_TAGS` name in the `## Lessons Learned`
|
|
1279
|
-
section — the section the `queue-index` arm now reads, which retires the old "parsed
|
|
1280
|
-
by no reader" exemption for it. Couples
|
|
1281
|
-
the width-only wrap gate to the tag-parsing tools over the same surface: gate
|
|
1282
|
-
the coupling, not just each side.
|
|
1283
|
-
|
|
1284
|
-
The gate states that set **once**, as a class table of `<name><terminator>`
|
|
1285
|
-
tokens (`]` for a bare tag, `:` for a field tag) from which both the match
|
|
1286
|
-
literal and the class key are derived. That single statement is the whole
|
|
1287
|
-
point: a table entry naming the tag once cannot desync its matcher from its
|
|
1288
|
-
key, and the desync had one silent direction — a key renamed without its regex
|
|
1289
|
-
leaves every downstream reader agreeing while the matcher hunts a token no
|
|
1290
|
-
entry carries, and the lead-line guard for that class dies with nothing
|
|
1291
|
-
reddening. The table is also the **derivation surface** a consumer's enum
|
|
1292
|
-
emitter reads for the tag vocabulary (this repo's `scripts/enum-sets.sh` →
|
|
1293
|
-
`check-prose-enum`), so it is the single source for the spelling on both the
|
|
1294
|
-
enforcement and the prose side.
|
|
1295
|
-
|
|
1296
|
-
Calibration: lead-class rule — a tag of class C on a continuation line is a
|
|
1297
|
-
violation only when the lead line lacks class C (prose that mentions a tag
|
|
1298
|
-
the lead already carries is tolerated); tags outside the scanned sections are
|
|
1299
|
-
parsed by no reader and ignored. Fenced-code and table lines exempt.
|
|
1300
|
-
**Single backticks are not an exemption**, and the consequence is worth stating
|
|
1301
|
-
where an author meets it: an entry body *discussing* a tag it does not carry —
|
|
1302
|
-
`` `[roadmap:]` `` inside a sentence about the roadmap arm — reds exactly as a
|
|
1303
|
-
reflowed tag would, because the class table matches the bracketed token and the
|
|
1304
|
-
lead-class rule only tolerates what the lead line already carries. So prose
|
|
1305
|
-
about a tag spells its name without the brackets. Widening the exemption to
|
|
1306
|
-
inline code is refused: the entry-body citation grammar above already puts
|
|
1307
|
-
single backticks to work as a *live* claim (§The tag algebra), so a scan that
|
|
1308
|
-
skipped them would have to skip the citation surface too.
|
|
1309
|
-
Residual accepted gap: a same-class duplicate sliding off while one stays on
|
|
1310
|
-
the lead — negligible severity, not reflow-realistic.
|
|
1311
|
-
|
|
1312
|
-
### check-task-names
|
|
1313
|
-
|
|
1314
|
-
Invariant: every entry in a live task section — active, deferred, and a
|
|
1315
|
-
configured icebox — and every sub-task leads with a valid kebab-case slug,
|
|
1316
|
-
unique across the file; every done-section entry is a bare slug only; every
|
|
1317
|
-
`[blocked-by: X]` resolves to a live task, and one pointing at a done slug is
|
|
1318
|
-
flagged stale.
|
|
1319
|
-
|
|
1320
|
-
Calibration: the live task sections share one namespace so resolution works
|
|
1321
|
-
regardless of where the target lives — an iceboxed slug is a legal blocker
|
|
1322
|
-
target, because it is unbuilt. The non-bold indented bullet is the documented
|
|
1323
|
-
prose-note escape; done slugs are validated as tokens but not cross-checked
|
|
1324
|
-
against the live namespace. Help texts cite this SPEC.
|
|
1325
|
-
|
|
1326
|
-
### check-task-conservation
|
|
1327
|
-
|
|
1328
|
-
Invariant: every live slug (active + deferred + icebox, sub-tasks included)
|
|
1329
|
-
present at HEAD is still present in the working tree — live or done. A slug
|
|
1330
|
-
vanishing from both is a lost task: the absence class diff-review reliably
|
|
1331
|
-
misses (you notice wrong things present, not right things missing).
|
|
1332
|
-
Half-applied moves, botched renames, and undocumented withdrawals all fire.
|
|
1333
|
-
|
|
1334
|
-
**Eviction to the icebox is conserved by construction** — the slug stays in the
|
|
1335
|
-
live set, so the gate stays silent and no sanctioned-disappearance escape had
|
|
1336
|
-
to be invented. The done side is where care is owed: a done entry is matched as
|
|
1337
|
-
a **bare `- <slug>` line and nothing else** — no bold, no tag, no trailing
|
|
1338
|
-
prose. An entry *carried* into the done section with its
|
|
1339
|
-
`- **<slug>** [design-pending] — …` shape intact therefore matches neither the
|
|
1340
|
-
done grammar nor the live one, lands in no set, and reds here as a lost task.
|
|
1341
|
-
Dispositioning an entry to done is a **rewrite to its slug**, not a relocation
|
|
1342
|
-
of the entry; the tag is dropped by that reduction rather than swapped.
|
|
1343
|
-
|
|
1344
|
-
Calibration: diffs `git show HEAD:<queue>` against the worktree, hence
|
|
1345
|
-
`no-fixture:` (a committed fixture has HEAD == worktree; the bad case needs
|
|
1346
|
-
an uncommitted deletion — infeasible, not a stopgap). No git baseline ⇒ clean
|
|
1347
|
-
exit (nothing to compare is not a violation). Clearing the done section is
|
|
1348
|
-
safe: only HEAD's *live* slugs are conserved. A rename intentionally fires —
|
|
1349
|
-
move the old slug to done, sweep refs.
|
|
1350
|
-
|
|
1351
|
-
**The gate is a binary subcommand, and the `no-fixture:` reason survived the
|
|
1352
|
-
port intact — what it does not excuse is parity.** The reason is structural
|
|
1353
|
-
rather than a stopgap, so it stays true on either substrate; but a member with
|
|
1354
|
-
no pair still owes the proof that both implementations agree, and it is paid by
|
|
1355
|
-
the constructed scenario gate-sdk/SPEC.md §The port-candidate criteria specifies
|
|
1356
|
-
for exactly this shape: throwaway repositories, the worktree mutated without
|
|
1357
|
-
committing, both implementations run over the same case and compared byte for
|
|
1358
|
-
byte. `git` is the one external program the gate invokes — the sanctioned floor
|
|
1359
|
-
exception — and the branch that reports a clean exit when there is no repository
|
|
1360
|
-
at all is part of what the scenario covers. The same absence of a fixture case
|
|
1361
|
-
is why gate-sdk/SPEC.md §check-gate-output reads this member's output contract
|
|
1362
|
-
off its implementation module rather than off its descriptor.
|
|
1363
|
-
|
|
1364
|
-
### check-queue-prose-precondition
|
|
1365
|
-
|
|
1366
|
-
Invariant: no active-section entry states a forward precondition in prose
|
|
1367
|
-
("revisit when …", "once X lands", "gated on …") without a `[blocked-by:]`
|
|
1368
|
-
tag — such an entry is latently blocked yet mechanically pickable as "first
|
|
1369
|
-
unblocked", because selection trusts tags, not prose. Resolution: tag the
|
|
1370
|
-
real blocker, move the entry to the deferred section, rephrase past-tense if
|
|
1371
|
-
the precondition is met, or the `[precondition-ok: <reason>]` opt-out (a
|
|
1372
|
-
queue tag, not an HTML comment, so it survives the hygiene gate).
|
|
1373
|
-
|
|
1374
|
-
Calibration: the trigger set (`QUEUE_KIT_PRECONDITION_REGEX`) is deliberately
|
|
1375
|
-
narrow — forward-looking phrasing only, past-tense narration stripped before
|
|
1376
|
-
matching — and scoped to the active sections (the deferred section uses
|
|
1377
|
-
"revisit when" as normal vocabulary and is exempt, and the icebox inherits that
|
|
1378
|
-
exemption for the same reason: forward-looking phrasing is what a parked entry
|
|
1379
|
-
is *for*). FP-bearing by
|
|
1380
|
-
construction (parsing prose intent); the blocking grade is justified by a
|
|
1381
|
-
silent pick attested in production use and the bounded scope.
|
|
1382
|
-
|
|
1383
|
-
### check-queue-slug-liveness
|
|
1384
|
-
|
|
1385
|
-
Invariant: on every prose surface named by `QUEUE_KIT_PROSE_SURFACE_GLOBS`,
|
|
1386
|
-
every slug-shaped bold-code token — `` **`<token>`** `` whose token matches the
|
|
1387
|
-
slug grammar (`[a-z0-9][a-z0-9-]*`, so a `--flag` mention falls outside) —
|
|
1388
|
-
resolves against the queue's live slug set (`lib/queue.sh`'s `queue_live_slugs`,
|
|
1389
|
-
active + deferred + icebox — a page citing an iceboxed task stays green,
|
|
1390
|
-
correctly: the task is dormant, not landed). A token naming no live task is a
|
|
1391
|
-
dead membership claim,
|
|
1392
|
-
reported by file, line, and slug. The slug set excludes done tasks by
|
|
1393
|
-
construction: prose about landed work must drop the bold-code form and cite the
|
|
1394
|
-
owning SPEC instead, so a living page can never keep calling a landed task
|
|
1395
|
-
queued.
|
|
1396
|
-
|
|
1397
|
-
The bold-code token is prose's *only* sanctioned queue-membership claim
|
|
1398
|
-
(§The tag algebra) — a grammar narrow enough for a gate to read, so the
|
|
1399
|
-
living-page current-state rule stops being a standing duty and becomes a
|
|
1400
|
-
checked contract. Default-empty knob: a consumer with no configured surface
|
|
1401
|
-
no-ops clean; the surfaces are consumer editorial config, never a kit literal
|
|
1402
|
-
(the provenance seam). Resolution direction is one-way (`dir=one`): the queue
|
|
1403
|
-
is ground truth, the prose the audited follower.
|
|
1404
|
-
|
|
1405
|
-
### templates/
|
|
1406
|
-
|
|
1407
|
-
`queue-config.sh` — the consumer config template: a two-line `# spec:` pointer
|
|
1408
|
-
to the §Layout knob table (which now includes `QUEUE_KIT_LESSON_SINKS` and its
|
|
1409
|
-
local-overlay reminder), so the table stays the one owner of the knob roster
|
|
1410
|
-
rather than a parallel copy in the template drifting against it.
|
|
1411
|
-
`TASK-QUEUE.md` — a starter queue skeleton: the sections in default order,
|
|
1412
|
-
one example entry per grammar shape shown under `Technical Debt` (the
|
|
1413
|
-
`[spec:]`-gated `New Features` carries teaching prose only, since a spec-ready
|
|
1414
|
-
example would dangle a ref). It ships battery-clean when copied verbatim — the
|
|
1415
|
-
starter-template conformance contract owned by gate-sdk/SPEC.md §Consumer smoke
|
|
1416
|
-
— and carries lifecycle-kit's iteration header as inert scaffold so a
|
|
1417
|
-
combined-tree copy clears the stage gates too.
|
|
1418
|
-
|
|
1419
|
-
Shipping this file is also what makes this kit the queue format's owner as far
|
|
1420
|
-
as an adopter's install is concerned: `checkwright init` seeds their queue from
|
|
1421
|
-
the template of the first kit in their profile that ships one, and falls back to
|
|
1422
|
-
an inline skeleton only when none does (installer/README.md §What init seeds).
|
|
1423
|
-
The declaration is the artifact rather than a roster naming this kit. Until that
|
|
1424
|
-
selection was resolved over the whole profile at once, no profile reached this
|
|
1425
|
-
kit first and no adopter ever received the file.
|
|
1426
|
-
|
|
1427
|
-
## Out of scope
|
|
1428
|
-
|
|
1429
|
-
<!-- prose-enum-exempt: names the two amendment-lifecycle tags specifically; [blocked-by:] is a dependency tag outside that lifecycle, not a dropped task-tag member -->
|
|
1430
|
-
The amendment lifecycle around `[design-pending]`/`[spec:]` (section-wide
|
|
1431
|
-
enforcement, promotion procedure, `check-amendment-queue`) is canon-kit's
|
|
1432
|
-
scope. Code-comment TODO scanning (`TODO(task:<slug>)` resolution against
|
|
1433
|
-
the queue) couples to source-file conventions and is canon-kit's, on the
|
|
1434
|
-
governed comment surface (`check-todo-task-liveness`). Task-output readers and delegation tooling are delegation-kit's
|
|
1435
|
-
scope. A consumer's protocol prose, deferred-subsection taxonomy, and task
|
|
1436
|
-
bodies are rule content and never ship.
|