checkwright 0.0.1 → 0.18.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 +260 -4
- package/bin/checkwright.sh +53 -0
- package/lib/common/lock.sh +28 -0
- package/lib/common/profile.sh +58 -0
- package/lib/common/recipe.sh +93 -0
- package/lib/doctor.sh +90 -0
- package/lib/init.sh +289 -0
- package/package.json +15 -3
- package/payload/canon-kit/README.md +79 -0
- package/payload/canon-kit/SPEC.md +1410 -0
- package/payload/canon-kit/checks/check-amendment-queue.sh +116 -0
- package/payload/canon-kit/checks/check-comment-tier.sh +211 -0
- package/payload/canon-kit/checks/check-deprecation-task.sh +90 -0
- package/payload/canon-kit/checks/check-docs-cmd.sh +153 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +71 -0
- package/payload/canon-kit/checks/check-install-claim.sh +146 -0
- package/payload/canon-kit/checks/check-knob-citation.sh +117 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +239 -0
- package/payload/canon-kit/checks/check-manifest-count.sh +46 -0
- package/payload/canon-kit/checks/check-manifest-temporal.sh +83 -0
- package/payload/canon-kit/checks/check-md-refs.sh +115 -0
- package/payload/canon-kit/checks/check-prose-enum.sh +115 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +207 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +69 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +45 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +133 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +42 -0
- package/payload/canon-kit/checks/check-spec-pointer.sh +176 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +105 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +80 -0
- package/payload/canon-kit/checks/check-tracking-claim.sh +136 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +5 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +25 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +32 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +146 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.sh +6 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +21 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +98 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/bin/tool.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +18 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/demokit/index.md +5 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/demokit/index.md +6 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/SPEC.md +10 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +71 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/gate-sdk-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/SPEC.md +7 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +73 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +37 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +104 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/SPEC.md +6 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/target.md +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +127 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +15 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +21 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +20 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +63 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/doc.md +8 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-target.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/cand-tmpl.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/cand-tmpl.md +7 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +23 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/README.md +7 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/roster.list +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +86 -0
- package/payload/canon-kit/lib/spec.sh +505 -0
- package/payload/canon-kit/smoke/install.sh +36 -0
- package/payload/canon-kit/smoke/violation.sh +22 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +55 -0
- package/payload/canon-kit/templates/canon-config.sh +2 -0
- package/payload/context-kit/README.md +82 -0
- package/payload/context-kit/SPEC.md +790 -0
- package/payload/context-kit/bin/always-loaded.sh +86 -0
- package/payload/context-kit/bin/env-probe.sh +144 -0
- package/payload/context-kit/bin/footprint.sh +144 -0
- package/payload/context-kit/bin/md-index.sh +80 -0
- package/payload/context-kit/bin/md-section.sh +63 -0
- package/payload/context-kit/bin/pub-index.sh +90 -0
- package/payload/context-kit/bin/run-index-tests.sh +91 -0
- package/payload/context-kit/checks/check-brevity.sh +123 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +38 -0
- package/payload/context-kit/checks/check-memory-off.sh +112 -0
- package/payload/context-kit/checks/check-settings-pins.sh +110 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +14 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +20 -0
- package/payload/context-kit/gate-tests/check-brevity/good/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +89 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +11 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +12 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/memory/example-fact.md +6 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/memory/.gitkeep +0 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +54 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings.json +6 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings.json +6 -0
- package/payload/context-kit/index-tests/corpus/baseline.txt +2 -0
- package/payload/context-kit/index-tests/corpus/hook-sample.txt +4 -0
- package/payload/context-kit/index-tests/corpus/sample.md +23 -0
- package/payload/context-kit/index-tests/corpus/sample.rs +24 -0
- package/payload/context-kit/index-tests/corpus/sample.ts +34 -0
- package/payload/context-kit/index-tests/corpus/surface.md +6 -0
- package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -0
- package/payload/context-kit/index-tests/expected/md-index.txt +6 -0
- package/payload/context-kit/index-tests/expected/md-section.txt +6 -0
- package/payload/context-kit/index-tests/expected/pub-index-shadow.txt +2 -0
- package/payload/context-kit/index-tests/expected/pub-index-ts.txt +12 -0
- package/payload/context-kit/index-tests/expected/pub-index.txt +10 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +14 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +29 -0
- package/payload/context-kit/lib/pub-lang/rust.sh +26 -0
- package/payload/context-kit/lib/pub-lang/ts.sh +32 -0
- package/payload/context-kit/lib/toolfloor.sh +47 -0
- package/payload/context-kit/smoke/agents-md.sh +116 -0
- package/payload/context-kit/smoke/install.sh +60 -0
- package/payload/context-kit/smoke/violation.sh +21 -0
- package/payload/context-kit/templates/close-brevity.md +30 -0
- package/payload/context-kit/templates/context-config.sh +2 -0
- package/payload/context-kit/templates/session-context.sh +133 -0
- package/payload/context-kit/templates/settings-sessionstart.json +12 -0
- package/payload/delegation-kit/README.md +87 -0
- package/payload/delegation-kit/SPEC.md +792 -0
- package/payload/delegation-kit/bin/run-budget-guard-tests.sh +88 -0
- package/payload/delegation-kit/bin/run-trend-tests.sh +63 -0
- package/payload/delegation-kit/bin/run-usage-tests.sh +226 -0
- package/payload/delegation-kit/bin/usage-trend.sh +120 -0
- package/payload/delegation-kit/bin/usage-verdict.sh +144 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +139 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +76 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/added-exemptions +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +9 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +4 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +20 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +5 -0
- package/payload/delegation-kit/lib/delegation.sh +81 -0
- package/payload/delegation-kit/smoke/install.sh +61 -0
- package/payload/delegation-kit/smoke/violation.sh +16 -0
- package/payload/delegation-kit/templates/agent-budget-guard.sh +18 -0
- package/payload/delegation-kit/templates/agent-execution.md +136 -0
- package/payload/delegation-kit/templates/delegation-config.sh +2 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +60 -0
- package/payload/delegation-kit/templates/statusline-usage.sh +79 -0
- package/payload/delegation-kit/templates/usage-poller.sh +67 -0
- package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +20 -0
- package/payload/delegation-kit/usage-tests/cases.tsv +44 -0
- package/payload/delegation-kit/usage-tests/trend-history.log +20 -0
- package/payload/doctrine-kit/DOCTRINE.md +386 -0
- package/payload/doctrine-kit/README.md +70 -0
- package/payload/doctrine-kit/SPEC.md +233 -0
- package/payload/doctrine-kit/bin/install-doctrine.sh +44 -0
- package/payload/doctrine-kit/bin/stage-rules.sh +51 -0
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +216 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/AGENT.md +14 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/AGENT.md +15 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +208 -0
- package/payload/doctrine-kit/lib/doctrine.sh +29 -0
- package/payload/doctrine-kit/smoke/install.sh +24 -0
- package/payload/doctrine-kit/smoke/violation.sh +13 -0
- package/payload/drift-kit/README.md +115 -0
- package/payload/drift-kit/SPEC.md +881 -0
- package/payload/drift-kit/bin/drift-report.sh +155 -0
- package/payload/drift-kit/bin/kfric.sh +42 -0
- package/payload/drift-kit/bin/overhead-meter.sh +106 -0
- package/payload/drift-kit/bin/stage-economics.sh +311 -0
- package/payload/drift-kit/bin/trajectory.sh +242 -0
- package/payload/drift-kit/kpis/kpi-always-loaded.sh +39 -0
- package/payload/drift-kit/kpis/kpi-amendment-age.sh +33 -0
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +46 -0
- package/payload/drift-kit/kpis/kpi-gate-backlog.sh +52 -0
- package/payload/drift-kit/kpis/kpi-gate-runtime.sh +31 -0
- package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +21 -0
- package/payload/drift-kit/kpis/kpi-overhead.sh +44 -0
- package/payload/drift-kit/kpis/kpi-price-table-age.sh +68 -0
- package/payload/drift-kit/kpis/kpi-prompt-friction.sh +38 -0
- package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +74 -0
- package/payload/drift-kit/kpis/kpi-settings-local.sh +21 -0
- package/payload/drift-kit/kpis/kpi-task-split.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +348 -0
- package/payload/drift-kit/smoke/overhead-fixture.jsonl +4 -0
- package/payload/drift-kit/templates/close-knowledge.md +24 -0
- package/payload/drift-kit/templates/drift-config.sh +2 -0
- package/payload/drift-kit/templates/economics.md +45 -0
- package/payload/drift-kit/templates/kpi-deprecated-surface.sh +32 -0
- package/payload/drift-kit/templates/kpis.list +22 -0
- package/payload/drift-kit/templates/price-table.tsv +21 -0
- package/payload/evidence-kit/README.md +59 -0
- package/payload/evidence-kit/SPEC.md +261 -0
- package/payload/evidence-kit/bin/diff-baseline.sh +34 -0
- package/payload/evidence-kit/bin/run-validate.sh +82 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +103 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +104 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +84 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +107 -0
- package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +82 -0
- package/payload/evidence-kit/lib/evidence.sh +173 -0
- package/payload/evidence-kit/smoke/install.sh +45 -0
- package/payload/evidence-kit/smoke/violation.sh +8 -0
- package/payload/evidence-kit/templates/evidence-config.sh +2 -0
- package/payload/gate-sdk/README.md +124 -0
- package/payload/gate-sdk/SPEC.md +1876 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +272 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +267 -0
- package/payload/gate-sdk/bin/install-hooks.sh +48 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +112 -0
- package/payload/gate-sdk/bin/run-gate-tests.sh +128 -0
- package/payload/gate-sdk/bin/run-gates.sh +147 -0
- package/payload/gate-sdk/bin/upgrade-smoke.sh +163 -0
- package/payload/gate-sdk/checks/check-action-pinning.sh +55 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +219 -0
- package/payload/gate-sdk/checks/check-assertion-strength.sh +134 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +50 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +43 -0
- package/payload/gate-sdk/checks/check-core-files.sh +52 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +37 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +76 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +123 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +106 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +84 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +92 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +65 -0
- package/payload/gate-sdk/checks/check-graph.sh +632 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +45 -0
- package/payload/gate-sdk/checks/check-identity.sh +134 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +94 -0
- package/payload/gate-sdk/checks/check-kit-registration.sh +68 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +102 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +148 -0
- package/payload/gate-sdk/checks/check-root-tiering.sh +66 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +55 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +53 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +126 -0
- package/payload/gate-sdk/checks/check-test-hermetic.sh +119 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +61 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/mutable.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/nested/pinned.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/nested/deep.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/no-refs.yaml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/pinned.yml +10 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/ci.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/action.yml +14 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/not-actions.yml +16 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/ci.yml +106 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +88 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/args +2 -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 +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/msg.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +73 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/core-files.list +3 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/core-files.list +5 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/nested/also-present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/projection.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +46 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-baz.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-foo.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +20 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-baz.sh +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-foo.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/check-gamma.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/check-beta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gates.list +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +20 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +51 -0
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +55 -0
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +63 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-remotes +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-remotes +3 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +20 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +75 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/checks/check-gamma-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/README.md +16 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/beta-kit/smoke/install.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/allow.list +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/stray.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/allow.list +3 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/LICENSE +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/somedir/keep.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/warn.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/ok.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/violation.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +9 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/agent-budget-guard.sh +17 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/delegation-config.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/usage-poller.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/delegation-config.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/leaky.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/exempt.test.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/sourced.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/args +2 -0
- 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 +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/leak.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/clean.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/payload.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/wire.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +87 -0
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +78 -0
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +77 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +32 -0
- package/payload/gate-sdk/lib/gate.sh +216 -0
- package/payload/gate-sdk/lib/inject.sh +35 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +11 -0
- package/payload/gate-sdk/smoke/install.sh +84 -0
- package/payload/gate-sdk/smoke/violation.sh +13 -0
- package/payload/gate-sdk/templates/check-skeleton.sh +23 -0
- package/payload/gate-sdk/templates/gates-workflow.yml +55 -0
- package/payload/gate-sdk/templates/msg-patterns.list +21 -0
- package/payload/guard-kit/README.md +65 -0
- package/payload/guard-kit/SPEC.md +590 -0
- package/payload/guard-kit/bin/compare-settings-allow.sh +58 -0
- package/payload/guard-kit/bin/run-guard-tests.sh +86 -0
- package/payload/guard-kit/bin/scan-prompts.sh +166 -0
- package/payload/guard-kit/bin/scratch-run.sh +34 -0
- package/payload/guard-kit/gate-tests/scan-prompts.test.sh +70 -0
- package/payload/guard-kit/gate-tests/scratch-run.test.sh +62 -0
- package/payload/guard-kit/guard-tests/cases.tsv +117 -0
- package/payload/guard-kit/guard-tests/escalation-cases.tsv +13 -0
- package/payload/guard-kit/lib/guard.sh +448 -0
- package/payload/guard-kit/smoke/install.sh +26 -0
- package/payload/guard-kit/templates/bash-guard.sh +18 -0
- package/payload/guard-kit/templates/close-triage.md +31 -0
- package/payload/guard-kit/templates/escalation-guard.sh +27 -0
- package/payload/guard-kit/templates/guard-config.sh +2 -0
- package/payload/guard-kit/templates/settings-hooks.json +19 -0
- package/payload/guard-kit/templates/wakeup-guard.sh +20 -0
- package/payload/lifecycle-kit/README.md +106 -0
- package/payload/lifecycle-kit/SPEC.md +1492 -0
- package/payload/lifecycle-kit/bin/close-surfaces.sh +94 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +215 -0
- package/payload/lifecycle-kit/bin/file-gap.sh +43 -0
- package/payload/lifecycle-kit/bin/install-lifecycle.sh +36 -0
- package/payload/lifecycle-kit/bin/session-id.sh +75 -0
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +63 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +98 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +54 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +69 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +97 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +59 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +197 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +81 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +47 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +96 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +66 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/evidence.txt +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/evidence.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +56 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +59 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +6 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +5 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +113 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/commands/build.md +6 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +80 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/commands/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +84 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +251 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +115 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
- package/payload/lifecycle-kit/lib/stages.sh +179 -0
- package/payload/lifecycle-kit/smoke/install.sh +341 -0
- package/payload/lifecycle-kit/smoke/violation.sh +8 -0
- package/payload/lifecycle-kit/templates/lead.md +271 -0
- package/payload/lifecycle-kit/templates/lifecycle-config.sh +2 -0
- package/payload/lifecycle-kit/templates/release-sweep.md +39 -0
- package/payload/lifecycle-kit/templates/stages/align.md +65 -0
- package/payload/lifecycle-kit/templates/stages/build.md +78 -0
- package/payload/lifecycle-kit/templates/stages/close.md +122 -0
- package/payload/lifecycle-kit/templates/stages/scope.md +112 -0
- package/payload/lifecycle-kit/templates/stages/spec.md +91 -0
- package/payload/lifecycle-kit/templates/stages/validate.md +54 -0
- package/payload/lifecycle-kit/templates/upgrade.md +41 -0
- package/payload/queue-kit/README.md +78 -0
- package/payload/queue-kit/SPEC.md +797 -0
- package/payload/queue-kit/bin/lesson-sink.sh +28 -0
- package/payload/queue-kit/bin/queue-index.sh +182 -0
- package/payload/queue-kit/bin/roadmap.sh +76 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +104 -0
- package/payload/queue-kit/checks/check-queue-hygiene.sh +81 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +63 -0
- package/payload/queue-kit/checks/check-queue-sections.sh +44 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +63 -0
- package/payload/queue-kit/checks/check-queue-wrap.sh +56 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +110 -0
- package/payload/queue-kit/checks/check-tag-lead-line.sh +70 -0
- package/payload/queue-kit/checks/check-task-conservation.sh +50 -0
- package/payload/queue-kit/checks/check-task-names.sh +128 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +33 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +35 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +15 -0
- 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 +25 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/TASK-QUEUE.md +13 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +4 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +19 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +5 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +24 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/emit.txt +8 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +22 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/emit.txt +7 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +159 -0
- package/payload/queue-kit/gate-tests/roadmap.test.sh +197 -0
- package/payload/queue-kit/lib/queue.sh +193 -0
- package/payload/queue-kit/smoke/install.sh +22 -0
- package/payload/queue-kit/smoke/violation.sh +8 -0
- package/payload/queue-kit/templates/TASK-QUEUE.md +43 -0
- package/payload/queue-kit/templates/queue-config.sh +2 -0
- package/payload/site-kit/README.md +61 -0
- package/payload/site-kit/SPEC.md +269 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +80 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +167 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/README.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/docs/posts/2026-01-01-legacy.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/index.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/pkg/gate-tests/fixture.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/args +8 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/tree/docs/install.md +38 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/args +6 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/tree/docs/install.md +35 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +87 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +80 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +90 -0
- package/payload/site-kit/lib/site.sh +29 -0
- package/payload/site-kit/smoke/install.sh +26 -0
- package/payload/site-kit/smoke/violation.sh +20 -0
- package/payload/site-kit/templates/site-health.yml +164 -0
- package/profiles.list +53 -0
|
@@ -0,0 +1,797 @@
|
|
|
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 one of the gates exist to
|
|
10
|
+
close one instance of it each.
|
|
11
|
+
|
|
12
|
+
The kit carries the queue grammar and its gates only; a consumer's section
|
|
13
|
+
names, wrap budget, and protocol vocabulary are config, with this repo's
|
|
14
|
+
layout as the defaults. Requires [gate-sdk](../gate-sdk/) (the gates follow
|
|
15
|
+
its four contracts and resolve through its registry).
|
|
16
|
+
|
|
17
|
+
## The queue format
|
|
18
|
+
|
|
19
|
+
The governed surface is one queue file (default `TASK-QUEUE.md`), structured
|
|
20
|
+
as `##` sections over column-0 bullets:
|
|
21
|
+
|
|
22
|
+
- **Active sections** (default `New Features`, `Technical Debt`) — the
|
|
23
|
+
pickable queue, in work-order. Selection discipline: pick the first entry
|
|
24
|
+
carrying no `[blocked-by:]` tag, in section order; do not invent work order.
|
|
25
|
+
- **The deferred section** (default `Deferred`) — parked tasks, excluded from
|
|
26
|
+
selection; `###` subsections are presentation, not semantics. An entry's
|
|
27
|
+
prose may carry a `Surfaced <date>` mark — an ungated convention recording
|
|
28
|
+
when the premise was observed. A deferred body is free prose, and four
|
|
29
|
+
bold-lead-in fields recur, each answering a question a later scope asks:
|
|
30
|
+
`Deliverable` (what landing looks like), `Why [design-pending]` (what the
|
|
31
|
+
open design actually is), `Cost while deferred`, and a closing
|
|
32
|
+
`Filed <date> by <stage>` provenance line. Three are conventions no gate
|
|
33
|
+
reads; **`Cost while deferred` is required** — the Gap-disposition rule's
|
|
34
|
+
costing, held by `check-queue-entry-budget` (§check-queue-entry-budget),
|
|
35
|
+
which also caps the entry's total length. The field's bold lead-in is
|
|
36
|
+
line-local like a tag: split across a reflow it is invisible to the scanner
|
|
37
|
+
and the entry reads as uncosted.
|
|
38
|
+
- **The icebox section** (optional, `QUEUE_KIT_ICEBOX_SECTION`, default
|
|
39
|
+
**empty** — no section, no tier) — dormant tasks compressed to one line
|
|
40
|
+
each, sitting **after the deferred section and before the done section**.
|
|
41
|
+
Live work, not history: §The icebox tier owns the tier, its grammar, its
|
|
42
|
+
eligibility rule, and the position contract a cross-kit reader depends on.
|
|
43
|
+
- **The done section** (default `Done`) — one line per completed task, the
|
|
44
|
+
bare slug only; prose about what happened lives in git history.
|
|
45
|
+
|
|
46
|
+
The **defer date** of an entry is its `Surfaced <date>` mark when present, else
|
|
47
|
+
the date on its `Filed <date>` provenance line. One definition, two readers —
|
|
48
|
+
drift-kit's deferred-age KPI and `bin/queue-index.sh --icebox-candidates`.
|
|
49
|
+
Widening, not replacing: `Surfaced` records when the premise was observed and
|
|
50
|
+
is the better premise-rot datum, `Filed` is the honest available fallback, so
|
|
51
|
+
no entry owes a migration. drift-kit re-implements the definition rather than
|
|
52
|
+
sourcing `lib/queue.sh`, because a kit dependency the other way would close a
|
|
53
|
+
cross-kit cycle; both implementations cite this section.
|
|
54
|
+
- Any other section (an iteration header, a lessons section) is outside the
|
|
55
|
+
grammar and ignored by every gate except the file-wide hygiene axes.
|
|
56
|
+
|
|
57
|
+
An entry is a column-0 `- **slug** — prose…` bullet; continuation lines are
|
|
58
|
+
indented, never column 0. An *indented* bullet with a bold lead-in is a
|
|
59
|
+
sub-task (same grammar); with a plain or italic lead-in it is a prose note
|
|
60
|
+
and is left alone. Slugs match `[a-z0-9][a-z0-9-]*` in one global, unique
|
|
61
|
+
namespace across active + deferred + icebox + sub-tasks — a slug is the task's
|
|
62
|
+
stable handle for its whole life: `[blocked-by:]` references it and the
|
|
63
|
+
done-section line carries it verbatim. The slug grammar is kit mechanism, not
|
|
64
|
+
config.
|
|
65
|
+
|
|
66
|
+
**Section order sequences an iteration; it does not rank it.** The default
|
|
67
|
+
`("New Features" "Technical Debt")` is read as selection order (§Layout and
|
|
68
|
+
configuration), and the argument for it is not that features outrank debt:
|
|
69
|
+
position starves nothing, because an active entry's residency is one iteration
|
|
70
|
+
by the drain rule — the drain stage's entry requires the active sections empty
|
|
71
|
+
(lifecycle-kit/SPEC.md §check-stage-entry) — so every promoted entry lands in
|
|
72
|
+
the same iteration whichever section holds it. What ranks is the promoting
|
|
73
|
+
stage's decision to put an entry in an active section at all; order within them
|
|
74
|
+
is a sequencing default, the posture the roadmap projection already states
|
|
75
|
+
outright for queue order generally (§bin/roadmap.sh).
|
|
76
|
+
|
|
77
|
+
Features lead on the feature/debt asymmetry canon-kit owns (canon-kit/SPEC.md
|
|
78
|
+
§The amendment lifecycle): a feature merges an amendment into the canonical
|
|
79
|
+
spec, debt converges an implementation on the spec as it already stands.
|
|
80
|
+
Reversed, a debt entry sharing an owner doc with a sibling amendment converges
|
|
81
|
+
on text the same iteration is about to rewrite. It stays a default rather than
|
|
82
|
+
a rule — the array is consumer config, and a consumer whose iterations do not
|
|
83
|
+
mix the two kinds reorders it freely.
|
|
84
|
+
|
|
85
|
+
### The icebox tier
|
|
86
|
+
|
|
87
|
+
The deferred pool has an intake asymmetry the delivery doctrine itself creates:
|
|
88
|
+
gap disposition and scope-gated intake make filing mandatory and cheap, while
|
|
89
|
+
the only exit is *building* the entry. The icebox is the missing exit — a third
|
|
90
|
+
**live** task section holding entries whose own cost field says they are
|
|
91
|
+
dormant, each compressed to its lead line.
|
|
92
|
+
|
|
93
|
+
close-surface: TASK-QUEUE.md#Deferred advisory
|
|
94
|
+
|
|
95
|
+
`advisory` is the honest mode: no structural forcing function refuses on an
|
|
96
|
+
untriaged backlog, and inventing one would redden an unrelated commit over a
|
|
97
|
+
curation opinion. That is what makes eviction *symmetric* to promotion —
|
|
98
|
+
promotion is forced by the scoping stage's exit condition, eviction gets roster
|
|
99
|
+
visibility and an auditable skip.
|
|
100
|
+
|
|
101
|
+
**It joins the shared task adapters rather than standing outside them**, and
|
|
102
|
+
that is the whole design:
|
|
103
|
+
|
|
104
|
+
- **Eviction is a conserved move.** `check-task-conservation` diffs the live
|
|
105
|
+
slug set at HEAD against the worktree, so deferred → icebox keeps the slug
|
|
106
|
+
live and the gate stays silent. No sanctioned disappearance needs inventing,
|
|
107
|
+
and none exists — every exit from the design-pending pool is conserved:
|
|
108
|
+
deferred → icebox, icebox → deferred on real recurrence, and either → done
|
|
109
|
+
for a ruled wontfix.
|
|
110
|
+
- **One namespace, one parse.** `check-task-names` keeps slug uniqueness and
|
|
111
|
+
`[blocked-by:]` resolution across the whole pool; an iceboxed slug is a legal
|
|
112
|
+
blocker target, because it is unbuilt.
|
|
113
|
+
- **The living-prose contract keeps reaching it**, so a page citing an
|
|
114
|
+
iceboxed task stays green — correct, because the task is dormant, not landed.
|
|
115
|
+
- **Tags stay lead-line-governed**, with no gate edit.
|
|
116
|
+
|
|
117
|
+
Every gate keyed on the shared task regex therefore widens with **no change to
|
|
118
|
+
any gate file** — the widening is entirely in `lib/queue.sh`, which is what the
|
|
119
|
+
one-adapter rule was built to buy. `check-queue-prose-precondition` deliberately does not
|
|
120
|
+
reach the tier: forward-looking phrasing is normal vocabulary in a parked
|
|
121
|
+
entry, the same exemption the deferred section already carries.
|
|
122
|
+
|
|
123
|
+
**The grammar is the lead line and nothing else:**
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
- **<slug>** [design-pending] — <one sentence: what it is, and why it is dormant>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
- **It carries the same `[design-pending]` tag every deferred entry carries.**
|
|
130
|
+
No `[icebox]` tag is minted: section membership *is* the state, and a tag
|
|
131
|
+
restating its own section is the two-sources defect. What generalizes across
|
|
132
|
+
the amendment lifecycle is the design-pending **section set**, not its tag
|
|
133
|
+
set. The "why it is dormant" clause is written where it fits and otherwise
|
|
134
|
+
left to the tier — membership already declares it.
|
|
135
|
+
- **No `###` subsections and no sub-tasks.** Grouping is presentation on a
|
|
136
|
+
surface whose entire purpose is minimum residency, and a sub-task is a
|
|
137
|
+
continuation line the shape rule rejects.
|
|
138
|
+
- **A `[roadmap:]`-tagged entry is not icebox-eligible**, and the rule needs no
|
|
139
|
+
new code: the roadmap parse walks the live task sections, so the tier enters
|
|
140
|
+
its walk, and `check-roadmap-fresh` then reds any `[roadmap:]` entry carrying
|
|
141
|
+
no `roadmap-summary:` declaration — which a one-line entry has nowhere to
|
|
142
|
+
put. **The enforcement is conditional:** that gate exits clean at its top
|
|
143
|
+
when `QUEUE_KIT_ROADMAP_FILE` is empty, so the guarantee holds for a consumer
|
|
144
|
+
publishing a roadmap page and degrades to convention for one that is not.
|
|
145
|
+
The eligibility rule binds either way. Keeping the tier *inside* the roadmap
|
|
146
|
+
walk rather than excluding it is deliberate: excluded, a `[roadmap:]` tag
|
|
147
|
+
that drifted into the icebox would silently drop a public commitment;
|
|
148
|
+
included, it reds.
|
|
149
|
+
- **The narrative is recoverable, not discarded.** The commit that iceboxes an
|
|
150
|
+
entry necessarily contains the removed body in its own diff, so recovery is
|
|
151
|
+
`git log -p -S'<slug>' -- <queue-file>` — a pickaxe that depends on no
|
|
152
|
+
commit-message convention. Nothing is copied into the queue to point at it.
|
|
153
|
+
|
|
154
|
+
**Eligibility**, judged at the closing stage: the entry's cost field opens in
|
|
155
|
+
the low class; it carries no `[roadmap:]` tag; and it has **no live promotion
|
|
156
|
+
trigger** — an entry whose promotion waits on a named expected event (a launch,
|
|
157
|
+
a first external adopter, a sibling unit landing) stays deferred, because it
|
|
158
|
+
has a trigger, just not a date.
|
|
159
|
+
|
|
160
|
+
**Nothing files directly into the icebox.** The only producer is the eviction
|
|
161
|
+
step: a newly filed finding has never been triaged and so cannot be pre-judged
|
|
162
|
+
dormant. That keeps the tier from becoming a dumping ground and keeps the
|
|
163
|
+
net-delta KPI honest.
|
|
164
|
+
|
|
165
|
+
**Position is a contract, not a preference.** The read order is pickable →
|
|
166
|
+
parked → dormant → history, and a cross-kit reader depends on the tier sitting
|
|
167
|
+
between the deferred and done sections (gate-sdk/SPEC.md
|
|
168
|
+
§check-gate-exemption-tasks). **Accepted residual, and it is quiet: no gate
|
|
169
|
+
enforces section order.** `check-queue-sections` counts occurrences per
|
|
170
|
+
required section with no positional state, and no other gate carries one. A
|
|
171
|
+
misplaced icebox surfaces only as an exemption naming an iceboxed slug
|
|
172
|
+
reddening with "no live task" — which requires such an exemption to exist.
|
|
173
|
+
Otherwise the misplacement is silent. The contract is carried by this SPEC and
|
|
174
|
+
by review rather than by a gate, and saying so is the honest form of it.
|
|
175
|
+
|
|
176
|
+
### The tag algebra
|
|
177
|
+
|
|
178
|
+
Tags are square-bracket literals with fixed spelling (mechanism, not config
|
|
179
|
+
— the one exception is the consumer-named harvest vocabulary below); every tag
|
|
180
|
+
sits on its bullet's **lead line** — the only line the parsing tools scan
|
|
181
|
+
(enforced by `check-tag-lead-line`).
|
|
182
|
+
|
|
183
|
+
Outside the queue file, living prose claims a task's queue membership with one
|
|
184
|
+
grammar: a **bold-code token** — `` **`<slug>`** `` whose token matches the
|
|
185
|
+
slug grammar — which `check-queue-slug-liveness` resolves against the live
|
|
186
|
+
slug set on the configured prose surfaces (§check-queue-slug-liveness).
|
|
187
|
+
|
|
188
|
+
- `[blocked-by: <slug>]` — the entry is unpickable until `<slug>` completes.
|
|
189
|
+
Repeat per blocker. Must resolve to a live task (active or deferred — a
|
|
190
|
+
deferred blocker stands; it is unbuilt); a blocker in the done section is a
|
|
191
|
+
*stale* tag that must be removed, because the tag alone marks a task
|
|
192
|
+
unpickable.
|
|
193
|
+
- `[design-pending]` — design-pending marker, spanning **both** design-pending
|
|
194
|
+
sections (deferred and, where configured, the icebox). queue-kit parses and
|
|
195
|
+
displays it; the placement semantics (section-wide enforcement, promotion
|
|
196
|
+
rules) are canon-kit's amendment lifecycle and land with that kit.
|
|
197
|
+
- `[spec: <file>]` — spec-ready pointer. Same split: syntax here, amendment
|
|
198
|
+
semantics in canon-kit.
|
|
199
|
+
- `[drain-exempt: <reason>]` — drain-stage residue marker: the entry
|
|
200
|
+
legitimately stays active into the drain stage (a drain-spanning feature
|
|
201
|
+
whose remaining half *is* drain-stage work). Same split: syntax here;
|
|
202
|
+
placement semantics — the drain-entry exemption, the non-empty-reason
|
|
203
|
+
grammar, the successor-entry backstop — are lifecycle-kit's
|
|
204
|
+
`check-stage-entry` assertion B. The Done move takes the tag with it
|
|
205
|
+
(done entries drop their lifecycle tags; every reader scans live task
|
|
206
|
+
sections only). The lead-line reason is a terse marker, not the audit
|
|
207
|
+
trail: `check-tag-lead-line` pins the tag to the lead line while
|
|
208
|
+
`check-queue-wrap` caps its width, so a long slug can squeeze the reason
|
|
209
|
+
to a few columns — keep it a keyword and carry the full exemption
|
|
210
|
+
rationale in the entry body.
|
|
211
|
+
- `[precondition-ok: <reason>]` — per-entry opt-out valve for
|
|
212
|
+
`check-queue-prose-precondition`.
|
|
213
|
+
- `[roadmap: <horizon>/<track>]` — public-projection marker: the entry is
|
|
214
|
+
curated onto the generated roadmap page (§bin/roadmap.sh), under `<horizon>`
|
|
215
|
+
and labelled `<track>`. The tag's spelling is fixed mechanism; its two field
|
|
216
|
+
*values* are drawn from the consumer-configured `QUEUE_KIT_HORIZONS` and
|
|
217
|
+
`QUEUE_KIT_TRACKS` arrays — the same fixed-spelling/configured-values split
|
|
218
|
+
`[spec:]` already carries, and for the same reason: a kit literal spelling one
|
|
219
|
+
project's horizons would ship its roadmap posture as everyone's. One tag with
|
|
220
|
+
two slash-joined fields rather than two tags, because the fields are never
|
|
221
|
+
independently meaningful — a track with no horizon has no slot on the page and
|
|
222
|
+
a horizon with no track has no label in it, so splitting the pair would invent
|
|
223
|
+
two governed names where the domain has one. An entry carries at most one
|
|
224
|
+
`[roadmap:]` tag; an untagged entry is simply not projected, the normal case.
|
|
225
|
+
Placement is unconstrained by section — an active entry and a deferred entry
|
|
226
|
+
may both be projected, because the projection is about public direction, not
|
|
227
|
+
selection order. The **icebox is the one exclusion**, and it falls out of the
|
|
228
|
+
declaration rule rather than needing one: a one-line entry has nowhere to put
|
|
229
|
+
a `roadmap-summary:`, so a `[roadmap:]` tag that drifted into the tier reds
|
|
230
|
+
on assertion C wherever `QUEUE_KIT_ROADMAP_FILE` is set (§The icebox tier
|
|
231
|
+
states the knob-conditional limit on that backstop). Field validity is
|
|
232
|
+
`check-roadmap-fresh`'s assertion B.
|
|
233
|
+
|
|
234
|
+
A tagged entry also carries a **`roadmap-summary: <text>` declaration** — one
|
|
235
|
+
indented line in the entry body holding the single sentence the public page
|
|
236
|
+
prints. It is a declaration, not a tag, and the difference is the point: a tag is
|
|
237
|
+
bracketed and lead-line-scoped because its readers scan lead lines alone, while
|
|
238
|
+
this is read off a line of its own, the shape the `close-surface:` declaration
|
|
239
|
+
above already uses (and `QUEUE_KIT_PROSE_LEADS`' `Protocol:` token at column 0).
|
|
240
|
+
Spelling is fixed mechanism; `check-tag-lead-line` does not govern it, and it
|
|
241
|
+
cannot collide with the `[roadmap:` scan, which keys on the bracket.
|
|
242
|
+
|
|
243
|
+
The declaration is a **whitelist, and that is a privacy boundary before it is a
|
|
244
|
+
design one**. Only text an author explicitly marked is ever projected, so the
|
|
245
|
+
mechanism's failure mode is a thin page rather than published internal prose —
|
|
246
|
+
the direction a consumer whose queue is private and whose roadmap is not can
|
|
247
|
+
afford to fail in. The emitter reads the text verbatim, so no sentence heuristic
|
|
248
|
+
decides what a public page inherits. One line, not a block: an indented
|
|
249
|
+
declaration has roughly 81 columns behind it under the default wrap budget —
|
|
250
|
+
comfortably a sentence, and needing no block-end rule a reflow could silently
|
|
251
|
+
truncate. `check-roadmap-fresh`'s assertion C makes the tag and the declaration
|
|
252
|
+
mandatory for each other in both directions.
|
|
253
|
+
|
|
254
|
+
Two tags ride **Lessons Learned** entries — a lesson is a top-level bullet
|
|
255
|
+
under the fixed-spelling `## Lessons Learned` heading, and `bin/queue-index.sh`
|
|
256
|
+
plus `check-tag-lead-line` read that section's lead lines too. That section is
|
|
257
|
+
one of close's inbound triage surfaces, and its forcing function is the sibling
|
|
258
|
+
of the gap inbox's — the first-stage entry refuses while it holds entries — so it
|
|
259
|
+
declares itself on the close-surface roster here:
|
|
260
|
+
|
|
261
|
+
close-surface: TASK-QUEUE.md#Lessons-Learned forced=lifecycle-kit/SPEC.md §bin/enter-stage.sh
|
|
262
|
+
|
|
263
|
+
- `[attend]` — fixed spelling, kit mechanism (the inbound channel): the filing
|
|
264
|
+
session marks a lesson as a live attention point for later sessions *of the
|
|
265
|
+
same iteration*. `queue-index.sh` emits an attention block of `[attend]`
|
|
266
|
+
lead lines (§bin/queue-index.sh); the injection dies at the iteration
|
|
267
|
+
boundary because lifecycle-kit's first-stage entry refuses a non-empty
|
|
268
|
+
Lessons section.
|
|
269
|
+
- **Harvest tags** — `QUEUE_KIT_LESSON_TAGS` (array of bare tag names, default
|
|
270
|
+
empty) is the *one* configured exception to fixed spelling (the outbound
|
|
271
|
+
channel): the tag names, their sinks, and their handling are consumer rule
|
|
272
|
+
content — a kit literal carrying them would publish a private vocabulary
|
|
273
|
+
(the provenance seam, `check-graph`/`graph-vocab` pattern). The close ritual
|
|
274
|
+
streams a tagged entry's body through `bin/lesson-sink.sh <tag>`
|
|
275
|
+
(§bin/lesson-sink.sh), which resolves the sink from `QUEUE_KIT_LESSON_SINKS`;
|
|
276
|
+
the tracked close skill names that mechanism, never a sink value. queue-kit
|
|
277
|
+
only parses the tag's placement.
|
|
278
|
+
|
|
279
|
+
## Layout and configuration
|
|
280
|
+
|
|
281
|
+
The kit is vendored beside gate-sdk (conventionally at `queue-kit/`); its
|
|
282
|
+
gates are registered in the consumer's `gates.list` by name and resolve
|
|
283
|
+
through gate-sdk's multi-kit path. `bin/queue-index.sh` is a tool, not a gate
|
|
284
|
+
(no `# graph:` manifest).
|
|
285
|
+
|
|
286
|
+
Config follows lifecycle-kit's pattern: copy `templates/queue-config.sh`
|
|
287
|
+
into the gates dir as `queue-config.sh` (or point `QUEUE_KIT_CONFIG_FILE`
|
|
288
|
+
elsewhere) and override any knob; defaults fill what the consumer left unset,
|
|
289
|
+
and the loader exits 2 on a malformed config — a broken grammar must not gate
|
|
290
|
+
anything. A gitignored `queue-config.local.sh` beside that file sources last
|
|
291
|
+
(§lib/queue.sh) — the home for a private value a tracked config cannot carry.
|
|
292
|
+
Knobs:
|
|
293
|
+
|
|
294
|
+
- `QUEUE_KIT_QUEUE_FILE` — default `${GATE_SDK_QUEUE_FILE:-TASK-QUEUE.md}`;
|
|
295
|
+
every gate also takes the file as `$1` (fixture capability).
|
|
296
|
+
- `QUEUE_KIT_ACTIVE_SECTIONS` — array, default
|
|
297
|
+
`("New Features" "Technical Debt")`, order = selection order (§The queue
|
|
298
|
+
format argues the default).
|
|
299
|
+
- `QUEUE_KIT_DEFERRED_SECTION` / `QUEUE_KIT_DONE_SECTION` — defaults
|
|
300
|
+
`Deferred` / `Done`.
|
|
301
|
+
- `QUEUE_KIT_ICEBOX_SECTION` — default **empty**: no icebox tier at all, and no
|
|
302
|
+
kit-shaped empty section on the consumer's queue. A twelve-entry backlog has
|
|
303
|
+
no carry problem, and shipping the section anyway would leak the same posture
|
|
304
|
+
`QUEUE_KIT_HORIZONS` and `QUEUE_KIT_PROSE_SURFACE_GLOBS` already ship empty to
|
|
305
|
+
avoid. Naming the deferred section is malformed config.
|
|
306
|
+
- `QUEUE_KIT_ENTRY_LINE_CAP` — positive integer, default `50`; the per-entry
|
|
307
|
+
line cap `check-queue-entry-budget` assertion A holds over the deferred
|
|
308
|
+
section.
|
|
309
|
+
- `QUEUE_KIT_ICEBOX_AGE_DAYS` — positive integer, default `30`; the defer-date
|
|
310
|
+
age filter for `bin/queue-index.sh --icebox-candidates`, and nothing else.
|
|
311
|
+
- `QUEUE_KIT_WRAP_BUDGET` — default `100` (`check-queue-wrap` gate floor).
|
|
312
|
+
- `QUEUE_KIT_PROSE_LEADS` — array of column-0 lead tokens exempt from the
|
|
313
|
+
hygiene gate's no-prose axis, default `("Protocol:")`.
|
|
314
|
+
- `QUEUE_KIT_PROSE_SURFACE_GLOBS` — array of repo-root-relative globs naming
|
|
315
|
+
the living-prose surfaces `check-queue-slug-liveness` scans, default empty
|
|
316
|
+
(no surface makes queue claims until the consumer opts one in). Which pages
|
|
317
|
+
claim queue membership is the consumer's editorial posture — a kit literal
|
|
318
|
+
would presume a docs layout — so the kit ships none; a bold-code token on a
|
|
319
|
+
named surface is then a checked membership claim (§check-queue-slug-liveness).
|
|
320
|
+
- `QUEUE_KIT_PRECONDITION_REGEX` — the forward-precondition trigger set for
|
|
321
|
+
`check-queue-prose-precondition`, default = the shipped phrase set.
|
|
322
|
+
- `QUEUE_KIT_REQUIRED_SECTIONS` — array of `##` headings that must each appear
|
|
323
|
+
exactly once (`check-queue-sections`), default = the iteration header
|
|
324
|
+
(`Iteration:`, prefix-matched for its dynamic suffix) plus `New Features` /
|
|
325
|
+
`Technical Debt` / `Deferred` / `Done` / `Lessons Learned`. A trailing `:`
|
|
326
|
+
marks a prefix-matched heading; every other entry is matched exactly. A
|
|
327
|
+
configured `QUEUE_KIT_ICEBOX_SECTION` is **appended by derivation**, never by
|
|
328
|
+
a second consumer list: an icebox configured but absent from the file would
|
|
329
|
+
otherwise let every icebox assertion pass open on a section that is not
|
|
330
|
+
there, the exact fail-open class `check-queue-sections` exists to stop.
|
|
331
|
+
- `QUEUE_KIT_LESSON_TAGS` — array of bare harvest-tag names, default empty; the
|
|
332
|
+
consumer-named outbound lesson vocabulary (§The tag algebra), read by
|
|
333
|
+
`check-tag-lead-line` for placement. Names, sinks, and handling are consumer
|
|
334
|
+
rule content — the kit ships none.
|
|
335
|
+
- `QUEUE_KIT_LESSON_SINKS` — associative array, harvest tag → sink command,
|
|
336
|
+
default empty; read by `bin/lesson-sink.sh`, which owns resolution and the
|
|
337
|
+
fail-open default (§bin/lesson-sink.sh). A private sink value belongs in the
|
|
338
|
+
local overlay, not this tracked file.
|
|
339
|
+
- `QUEUE_KIT_ATTEND_CAP` — positive integer, default `3`; the maximum `[attend]`
|
|
340
|
+
lead lines `bin/queue-index.sh` emits in its attention block before folding
|
|
341
|
+
the rest into an overflow note.
|
|
342
|
+
- `QUEUE_KIT_HORIZONS` — ordered array of horizon names for the `[roadmap:]`
|
|
343
|
+
tag's first field, default empty. The order is the projection's emitted
|
|
344
|
+
section order.
|
|
345
|
+
- `QUEUE_KIT_TRACKS` — array of track labels for the tag's second field,
|
|
346
|
+
default empty.
|
|
347
|
+
- `QUEUE_KIT_ROADMAP_FILE` — repo-relative path of the projection page, default
|
|
348
|
+
empty: no page, and `check-roadmap-fresh` skips clean.
|
|
349
|
+
- `QUEUE_KIT_ROADMAP_MARKER` — the marker-block token, default `roadmap`,
|
|
350
|
+
delimiting the generated span as `<!-- roadmap:begin -->` /
|
|
351
|
+
`<!-- roadmap:end -->`. One knob with two readers — the `--write` splice and
|
|
352
|
+
the gate's block locator — which must agree, so it resolves through this
|
|
353
|
+
loader rather than being re-defaulted in each.
|
|
354
|
+
|
|
355
|
+
The roadmap vocabulary is configured as a **pair**: `QUEUE_KIT_HORIZONS` or
|
|
356
|
+
`QUEUE_KIT_TRACKS` set while the other is empty is malformed config and
|
|
357
|
+
`lib/queue.sh` exits 2, per the loader's broken-grammar contract. A
|
|
358
|
+
half-configured vocabulary would silently accept every value of the
|
|
359
|
+
unconfigured field. Both empty is the unconfigured default — a consumer that
|
|
360
|
+
publishes no roadmap gets a clean skip rather than a kit-shaped one.
|
|
361
|
+
|
|
362
|
+
Cross-kit note: lifecycle-kit's `LIFECYCLE_KIT_ACTIVE_SECTIONS` carries the same
|
|
363
|
+
default. The knobs are independent (either kit runs without the other); a
|
|
364
|
+
consumer renaming its active sections sets both. The icebox section name spans
|
|
365
|
+
every kit that reads the tier, on the same independent-knob shape —
|
|
366
|
+
`QUEUE_KIT_ICEBOX_SECTION` here, `CANON_KIT_ICEBOX_SECTION` for the
|
|
367
|
+
amendment lifecycle, `DRIFT_KIT_ICEBOX_SECTION` for the queue KPIs — so a
|
|
368
|
+
consumer enabling the tier sets each of them, and one left unset degrades that
|
|
369
|
+
kit to "no icebox" rather than to a wrong section.
|
|
370
|
+
|
|
371
|
+
## Per-component contracts
|
|
372
|
+
|
|
373
|
+
### lib/queue.sh
|
|
374
|
+
|
|
375
|
+
The sourced config loader plus shared adapters: the section-regex builders
|
|
376
|
+
the gates pass to awk (both sides of every section boundary must parse
|
|
377
|
+
identically — a shared adapter removes that drift axis), and the slug/tag
|
|
378
|
+
extraction helpers. Values and adapters only, never gate structure
|
|
379
|
+
(gate-sdk's `lib/gate.sh` rule).
|
|
380
|
+
|
|
381
|
+
The loader validates what it loads: an empty or non-numeric knob is a
|
|
382
|
+
broken grammar, and the roadmap vocabulary is validated as a pair (§Layout and
|
|
383
|
+
configuration) rather than per-array, because the failure the check exists to
|
|
384
|
+
stop is one array set alone. Validation failures are collected and reported
|
|
385
|
+
together, then exit 2.
|
|
386
|
+
|
|
387
|
+
The icebox is *derived* here rather than configured twice: a non-empty
|
|
388
|
+
`QUEUE_KIT_ICEBOX_SECTION` joins both the shared task regex and the effective
|
|
389
|
+
required-sections set, and when it is empty every icebox regex is the empty
|
|
390
|
+
string so each reader degrades to "no icebox" rather than to "every section".
|
|
391
|
+
|
|
392
|
+
`queue_roadmap_entries <queue-file>` is the single `[roadmap:]` and
|
|
393
|
+
`roadmap-summary:` parse, shared by `bin/roadmap.sh` and `check-roadmap-fresh` so
|
|
394
|
+
the emitter and the gate can never disagree about what an entry claims — the same
|
|
395
|
+
one-adapter rule the section regexes follow. It walks the live task sections in
|
|
396
|
+
queue order and prints one tab-separated line per entry carrying **either**
|
|
397
|
+
marking: the entry's `[roadmap:]` tag count, the raw field text, the slug, the
|
|
398
|
+
`roadmap-summary:` declaration count, and the declaration's text. Emitting on
|
|
399
|
+
either marking rather than on the tag alone is what lets assertion C see a dead
|
|
400
|
+
declaration — an entry the tag has fallen off is exactly the case a
|
|
401
|
+
tag-triggered walk cannot report. An untagged entry's field column prints as `-`
|
|
402
|
+
rather than empty, because a tab counts as IFS whitespace: a reader splitting on
|
|
403
|
+
it coalesces an empty column and silently shifts every field after it, so a
|
|
404
|
+
fixed-arity line must never carry one.
|
|
405
|
+
|
|
406
|
+
The loader sources the consumer config, then a `<config>.local.sh` overlay
|
|
407
|
+
beside it when present — last write wins. This is the tracked-name /
|
|
408
|
+
gitignored-value split (the `msg-patterns.local.list` precedent): a private
|
|
409
|
+
sink value tracked in `queue-config.sh` would itself be the leak, so it lands
|
|
410
|
+
in the gitignored overlay instead. The overlay is optional — its absence is
|
|
411
|
+
fail-open, not an error.
|
|
412
|
+
|
|
413
|
+
### bin/queue-index.sh
|
|
414
|
+
|
|
415
|
+
Compact surface of the queue for task selection — the iteration header line
|
|
416
|
+
if present, then every top-level active entry as a one-line title plus tags,
|
|
417
|
+
ready (`•`) vs blocked (`✗`) marked from the `[blocked-by:]` tag alone. Tags
|
|
418
|
+
are stripped from the one-line title leaving no residue of the separator they
|
|
419
|
+
sat beside, so an entry whose lead line is nothing but tags has no title and
|
|
420
|
+
renders as the bare slug rather than a dangling `—`; `[blocked-by:]` and
|
|
421
|
+
`[drain-exempt: <reason>]` are re-echoed after it — the two tags a picking
|
|
422
|
+
session acts on without opening the entry body.
|
|
423
|
+
`--extent <slug>` prints the inclusive line range of one entry's body (parent
|
|
424
|
+
slug → whole subtree; boundary = next sibling-or-shallower bullet, heading,
|
|
425
|
+
`---`, or EOF, including the trailing blank so a range deletion leaves no
|
|
426
|
+
double blank). `--collapse-deferred` replaces the deferred listing with a
|
|
427
|
+
per-`###`-subsection tally — generic over whatever subsection names the file
|
|
428
|
+
has (a hardcoded tally table would be consumer rule content), with
|
|
429
|
+
entries under no subsection tallied as `(top)`.
|
|
430
|
+
|
|
431
|
+
A configured icebox contributes exactly **one line** to the index —
|
|
432
|
+
`<section>: N entries` — and never an entry listing, on **both** `index`-mode
|
|
433
|
+
renderings (`--collapse-deferred` is a flag within that mode, not a mode of its
|
|
434
|
+
own; the tool's modes are `index`, `extent`, and `icebox-candidates`). The
|
|
435
|
+
tally must not reach `extent`, whose contract is two integers and nothing else.
|
|
436
|
+
The reasoning is the surface's: this output is embedded in the always-loaded
|
|
437
|
+
session-context brief, so listing the tier would re-import the very tokens the
|
|
438
|
+
tier exists to remove, while a bare count keeps it visible. An unconfigured
|
|
439
|
+
icebox emits no line at all.
|
|
440
|
+
|
|
441
|
+
`--icebox-candidates` prints the closing stage's eviction worklist over the
|
|
442
|
+
deferred section: one line per entry whose defer date (§The queue format) is
|
|
443
|
+
older than `QUEUE_KIT_ICEBOX_AGE_DAYS` **and** whose cost field opens in the low
|
|
444
|
+
class, carrying the entry's line count and that opener. An entry with no defer
|
|
445
|
+
date is listed as `(undated)` and an uncosted one as `(uncosted)` rather than
|
|
446
|
+
filtered out — an absent input appears rather than vanishing.
|
|
447
|
+
|
|
448
|
+
Both filters are deliberately **non-load-bearing**: this is a worklist filter
|
|
449
|
+
in a projection tool, not a threshold in a gate, so miscalibration costs a
|
|
450
|
+
longer or shorter review list and never a wrong disposition. That is what
|
|
451
|
+
dissolves "an eviction age threshold needs a policy owner" — the *judgment* is
|
|
452
|
+
the closing stage's, held to §The icebox tier's eligibility rule, and the
|
|
453
|
+
worklist only bounds how much it must look at. Matching a cost-class opener on
|
|
454
|
+
prose would be an unacceptable heuristic in a gate; in an advisory worklist it
|
|
455
|
+
is exactly the right ceiling. **A pool younger than the age threshold yields an
|
|
456
|
+
empty worklist**, which is correct and is not a reason to seed a tier by hand
|
|
457
|
+
against the tool: eligibility is the rule, the worklist is the convenience.
|
|
458
|
+
|
|
459
|
+
No queue-mutating tool is added — `--extent <slug>` already yields the line
|
|
460
|
+
range an eviction deletes.
|
|
461
|
+
|
|
462
|
+
Both index renderings append an **attention block** when the `## Lessons Learned` section
|
|
463
|
+
carries `[attend]` entries (§The tag algebra): each such entry's lead line,
|
|
464
|
+
capped at `QUEUE_KIT_ATTEND_CAP` (default 3) with overflow noted as
|
|
465
|
+
`(+N more [attend])`. Lead lines only, never bodies — the block is
|
|
466
|
+
always-loaded through the session-context hook that embeds this output, so the
|
|
467
|
+
cap is its token budget. This is the inbound lesson channel reaching every
|
|
468
|
+
later session of the iteration with zero consumer-hook edits.
|
|
469
|
+
|
|
470
|
+
### bin/roadmap.sh
|
|
471
|
+
|
|
472
|
+
The public-roadmap emitter: a tool, not a gate (no `# graph:` manifest),
|
|
473
|
+
following `bin/queue-index.sh`. `--emit` prints the generated block to stdout;
|
|
474
|
+
`--write` splices it between the markers in `QUEUE_KIT_ROADMAP_FILE` through
|
|
475
|
+
gate-sdk's `inject_marker_block`, leaving every byte outside them untouched. It
|
|
476
|
+
reads the live task sections only — active, deferred, and a configured icebox,
|
|
477
|
+
never the done section, because a shipped item is history, not direction. The
|
|
478
|
+
icebox enters that walk on purpose even though no icebox entry can be
|
|
479
|
+
projectable: excluded, a `[roadmap:]` tag that drifted into the tier would
|
|
480
|
+
silently drop a public commitment; included, it reds (§The icebox tier).
|
|
481
|
+
|
|
482
|
+
The emit grammar is a contract on both sides: `check-roadmap-fresh` byte-compares
|
|
483
|
+
it and a reader consumes it as the page's body.
|
|
484
|
+
|
|
485
|
+
- One `### <horizon>` heading per configured horizon, in configured order, each
|
|
486
|
+
emitted even when the queue puts nothing there — an empty horizon is
|
|
487
|
+
information, and a section that vanishes when it empties reads as a page that
|
|
488
|
+
forgot it. An empty horizon carries a one-line placeholder instead of bullets.
|
|
489
|
+
- Under each, one bullet per tagged entry, in queue order:
|
|
490
|
+
``- **`<slug>`** *(<track>)* — <summary>``.
|
|
491
|
+
- The summary is the entry's `roadmap-summary:` declaration (§The tag algebra),
|
|
492
|
+
printed verbatim. Nothing else in the entry is projected — not the lead line,
|
|
493
|
+
not the body, which carries internal design rationale and cost accounting,
|
|
494
|
+
precisely the content a public page must not inherit. The emitter neither
|
|
495
|
+
summarizes nor truncates: an author decided what the page says, and an entry
|
|
496
|
+
without a single non-empty declaration contributes no bullet at all, so
|
|
497
|
+
unmarked prose cannot reach the page even with the gate bypassed.
|
|
498
|
+
|
|
499
|
+
The block ends on a blank line. That blank is load-bearing rather than cosmetic:
|
|
500
|
+
the Pages parser closes a list only on one, so without it the `:end` marker abuts
|
|
501
|
+
the last bullet and renders *inside* that list item. Command substitution strips
|
|
502
|
+
the trailing newline on both sides of the freshness compare, so the byte-compare
|
|
503
|
+
is unaffected — the same arrangement `gen-value-rollup.sh` uses to keep a table
|
|
504
|
+
from swallowing its marker.
|
|
505
|
+
|
|
506
|
+
Honest limit — the lead line is a shared budget, and `[roadmap:]` competes for it
|
|
507
|
+
with every other tag the entry carries. Against `check-queue-wrap`'s floor a
|
|
508
|
+
`[spec: <file>]` tag is far wider than `[design-pending]`, so an entry carrying
|
|
509
|
+
a spec pointer and a long slug may have room for the `[roadmap:]` tag but none
|
|
510
|
+
for prose after it. That costs nothing now the summary lives on its own line:
|
|
511
|
+
the lead line needs room for the tag alone. It does bound the tag itself — a
|
|
512
|
+
sufficiently long slug plus spec pointer leaves no room even for that, and such an
|
|
513
|
+
entry is unprojectable until the pointer drops at the amendment's merge. A true
|
|
514
|
+
state of the queue rather than a defect to gate around: the wrap floor exists so a
|
|
515
|
+
runaway never reflows to column 0, and widening it to make room for a public page
|
|
516
|
+
would trade a parse guarantee for a presentation one.
|
|
517
|
+
|
|
518
|
+
Ordering inside a horizon is queue order, not a rank; the page states so in its
|
|
519
|
+
framing rather than implying a priority the queue does not carry. The
|
|
520
|
+
three-to-five items per horizon band is editorial posture, stated in the page's
|
|
521
|
+
framing prose, and deliberately **not gated**: a horizon legitimately holding two
|
|
522
|
+
items is a true state of the queue, and reddening a commit over it would buy a
|
|
523
|
+
curation opinion at the cost of the low-false-positive contract every gate here
|
|
524
|
+
is held to.
|
|
525
|
+
|
|
526
|
+
### check-roadmap-fresh
|
|
527
|
+
|
|
528
|
+
Invariant, in two assertions over `QUEUE_KIT_ROADMAP_FILE`:
|
|
529
|
+
|
|
530
|
+
- **(A) Freshness.** The committed marker block byte-matches
|
|
531
|
+
`bin/roadmap.sh --emit`, on the `check-footprint-fresh` /
|
|
532
|
+
`check-value-rollup-fresh` model — diff the emission against the block and name
|
|
533
|
+
the regen command in the red output. A missing file, missing markers, or an
|
|
534
|
+
unbalanced marker pair is fail-closed (exit 2): an absent projection under a
|
|
535
|
+
configured path is a broken install, not a clean skip.
|
|
536
|
+
- **(B) Tag-field validity.** Every `[roadmap:]` tag in the live task sections
|
|
537
|
+
parses as `<horizon>/<track>` with both fields members of their configured
|
|
538
|
+
arrays. An unknown horizon or track, a missing slash, or a second `[roadmap:]`
|
|
539
|
+
tag on one entry is a violation naming the entry and the offending field.
|
|
540
|
+
- **(C) Marking parity**, in both directions. A `[roadmap:]`-tagged entry carries
|
|
541
|
+
exactly one `roadmap-summary:` declaration — none, or two, is a violation,
|
|
542
|
+
because a curated entry with no marked text would otherwise reach a reader as a
|
|
543
|
+
bullet with no prose. And a declaration on an entry whose lead line carries no
|
|
544
|
+
`[roadmap:]` tag is a violation too: a dead marking is what a dropped or
|
|
545
|
+
reflowed tag looks like from the page's side, and the tag is what decides
|
|
546
|
+
projection.
|
|
547
|
+
|
|
548
|
+
Assertions B and C live here rather than in `check-tag-lead-line` because this is
|
|
549
|
+
the gate that already loads the horizon and track vocabularies and the shared
|
|
550
|
+
`[roadmap:]` parse; putting them in the lead-line gate would make a placement gate
|
|
551
|
+
load a value roster and a body-scoped declaration it has no other use for.
|
|
552
|
+
`check-tag-lead-line` still governs the tag on its *placement* axis, and governs
|
|
553
|
+
the declaration not at all — it is body-scoped by design.
|
|
554
|
+
|
|
555
|
+
Calibration: `QUEUE_KIT_ROADMAP_FILE` empty is a clean skip for both assertions
|
|
556
|
+
— the correct no-op for a consumer that publishes no roadmap, matching
|
|
557
|
+
`check-queue-slug-liveness`'s empty-globs behavior. The two-argument form
|
|
558
|
+
(`[projection-file] [emit-file]`) steers assertion A off the live emitter onto
|
|
559
|
+
pre-baked fixture files, the interface both cited models carry: a freshness gate
|
|
560
|
+
offering only its bare form has no fixture that does not read the live queue, so
|
|
561
|
+
the pair's verdict would turn on tree state outside the fixture directory.
|
|
562
|
+
|
|
563
|
+
### bin/lesson-sink.sh
|
|
564
|
+
|
|
565
|
+
The outbound channel's router: reads a lesson body on stdin and resolves the
|
|
566
|
+
sink for its `<tag>` argument from `QUEUE_KIT_LESSON_SINKS`. A configured entry
|
|
567
|
+
runs as a **command** with the body streamed to its stdin — a command, not a
|
|
568
|
+
path, so the sink may reformat the body into a downstream backlog's own
|
|
569
|
+
grammar; the command's exit status becomes the tool's, so a failing sink is a
|
|
570
|
+
red close step and harvest material is never half-routed to a silent fallback.
|
|
571
|
+
An unconfigured tag falls **open** to appending the body to
|
|
572
|
+
`${GATE_SDK_WORKFLOW_DIR:-.workflow}/<tag>-harvest.md` — the honest
|
|
573
|
+
manual-drain default that keeps a fresh clone (no overlay) closing cleanly and
|
|
574
|
+
preserves the staging file's documented reclaim path. A tool, not a gate (no
|
|
575
|
+
`# graph:` manifest); the consumer close skill invokes it so the tracked skill
|
|
576
|
+
names the mechanism, never a sink value, and a private sink command lives in
|
|
577
|
+
the `queue-config.local.sh` overlay (§lib/queue.sh).
|
|
578
|
+
|
|
579
|
+
### check-queue-hygiene
|
|
580
|
+
|
|
581
|
+
Invariant: the queue contains only tasks, tags, and section structure — no
|
|
582
|
+
HTML comments (provenance belongs in git history), no exact-duplicate
|
|
583
|
+
non-blank non-`---` lines (copy-paste artifacts), no column-0 prose (every
|
|
584
|
+
column-0 line is a heading, a bullet, `---`, or a configured
|
|
585
|
+
`QUEUE_KIT_PROSE_LEADS` token — the shape that carries protocol duplication
|
|
586
|
+
is banned, not semantic duplication, which is not mechanizable).
|
|
587
|
+
|
|
588
|
+
Calibration: indented lines are never flagged on the prose axis; the
|
|
589
|
+
lead-token allowance is a whole-line lead match, not a substring. Division of
|
|
590
|
+
labour with `check-queue-sections`: hygiene owns line *shape* (what a column-0
|
|
591
|
+
line may be), the sections gate owns heading *presence* (that each required
|
|
592
|
+
`##` heading exists exactly once) — neither subsumes the other.
|
|
593
|
+
|
|
594
|
+
### check-queue-sections
|
|
595
|
+
|
|
596
|
+
Invariant: the queue file carries each `QUEUE_KIT_REQUIRED_SECTIONS` heading
|
|
597
|
+
exactly once — zero occurrences (missing/typo'd) and two-or-more (accidental
|
|
598
|
+
paste) are both red. This is the fail-closed floor under every section-scoped
|
|
599
|
+
scanner: `check-amendment-queue`, `check-task-names`, `check-task-conservation`,
|
|
600
|
+
and the session-context index all locate work by `## <section>` boundaries and
|
|
601
|
+
silently find *nothing* — passing open — when a heading is dropped or
|
|
602
|
+
misspelled. A trailing `:` on a required entry marks a dynamic-suffix heading
|
|
603
|
+
(the iteration header, whose suffix is its iteration name) and is
|
|
604
|
+
prefix-matched; every other entry is matched exactly. A grep error (not a
|
|
605
|
+
no-match) is fail-closed (exit 2). The required set is the configured array
|
|
606
|
+
**plus the derived icebox heading** (§Layout and configuration), which is what
|
|
607
|
+
closes the half-configured hole by construction. The `# graph:` couples the
|
|
608
|
+
queue file at `tier=precommit`.
|
|
609
|
+
|
|
610
|
+
### check-queue-entry-budget
|
|
611
|
+
|
|
612
|
+
Invariant, one statement from two sides: **a deferred entry is a costed filing
|
|
613
|
+
— bounded above so it is not an inlined amendment, bounded below so it is not a
|
|
614
|
+
flag-and-skip.** Three assertions:
|
|
615
|
+
|
|
616
|
+
- **(A) Size.** No deferred entry exceeds `QUEUE_KIT_ENTRY_LINE_CAP` lines,
|
|
617
|
+
counted as the lead line through the line before the next bullet at the same
|
|
618
|
+
or shallower indent — the same extent `bin/queue-index.sh --extent` yields, so
|
|
619
|
+
the range the gate measures is the range an eviction deletes. A sub-task
|
|
620
|
+
nests inside its parent's extent and is measured as its own entry too.
|
|
621
|
+
- **(B) Icebox shape.** Every icebox entry is exactly one line; a continuation
|
|
622
|
+
line under an icebox bullet is a violation. Skips clean when
|
|
623
|
+
`QUEUE_KIT_ICEBOX_SECTION` is empty, the empty-knob behavior
|
|
624
|
+
`check-queue-slug-liveness` originates.
|
|
625
|
+
- **(C) Cost present.** Every top-level deferred entry carries a
|
|
626
|
+
`Cost while deferred` bold lead-in. Deliberately **not** applied to the
|
|
627
|
+
icebox: a one-line entry cannot carry the field and does not need to —
|
|
628
|
+
membership in the tier is itself the cost declaration (low, non-rotting, no
|
|
629
|
+
live trigger). The requirement binds exactly where the section does not
|
|
630
|
+
already imply the answer.
|
|
631
|
+
|
|
632
|
+
Calibration: `QUEUE_KIT_ENTRY_LINE_CAP` defaults to `50`. The cap's job is to
|
|
633
|
+
keep compression from regrowing rather than to force the initial cut, so it is
|
|
634
|
+
calibrated at the tail rather than the body — above the 75th percentile of a
|
|
635
|
+
real pool, with no natural break in the distribution to read a value off. It is
|
|
636
|
+
a stated policy with a stated purpose rather than a derived one, and it is a
|
|
637
|
+
knob for exactly that reason. The scan is line-local: the cost field's bold
|
|
638
|
+
lead-in must sit on one line, the same reason a tag must sit on its lead line
|
|
639
|
+
(§check-tag-lead-line), and a lead-in split by a reflow reads as absent. (C)
|
|
640
|
+
binds top-level entries only — a sub-task is covered by its parent's costing.
|
|
641
|
+
|
|
642
|
+
**The active sections are uncapped**, and the reason is structural: an active
|
|
643
|
+
entry's residency is one iteration by the drain rule, so it has no carry to
|
|
644
|
+
cap. The carry problem is the deferred pool's alone.
|
|
645
|
+
|
|
646
|
+
### check-queue-wrap
|
|
647
|
+
|
|
648
|
+
Invariant: no line exceeds the `QUEUE_KIT_WRAP_BUDGET` gate floor (default
|
|
649
|
+
100 columns; the authoring target is ~80). The tools key on the column-0
|
|
650
|
+
`- ` lead, so an unwrapped runaway that reflows to column 0 corrupts the
|
|
651
|
+
parse; the tripwire fires before that lands.
|
|
652
|
+
|
|
653
|
+
Calibration: three exemptions mirror the wrapping convention — table rows,
|
|
654
|
+
fenced-code blocks, and lines over budget solely due to one unbreakable token
|
|
655
|
+
(URL, path). Width is Unicode code points, not bytes.
|
|
656
|
+
|
|
657
|
+
### check-tag-lead-line
|
|
658
|
+
|
|
659
|
+
Invariant: every **lead-line-scoped** tag sits on its bullet's lead line — the
|
|
660
|
+
only line *its* readers scan; such a tag pushed to a continuation line by a
|
|
661
|
+
reflow silently unblocks a task, masks a design-pending state, voids a drain
|
|
662
|
+
exemption, or drops a lesson out of the attention block. Membership tracks reader semantics, not §The tag
|
|
663
|
+
algebra: a tag is governed here when its readers scan lead lines alone, so the
|
|
664
|
+
set is narrower than the algebra's and `[precondition-ok:]` is deliberately
|
|
665
|
+
outside it — `check-queue-prose-precondition` honors that tag anywhere in the
|
|
666
|
+
entry, leaving it no lead-line requirement to enforce. The governed set and
|
|
667
|
+
scanned surface both widen with the lesson channels: `[blocked-by:]` /
|
|
668
|
+
`[spec:]` / `[design-pending]` / `[drain-exempt:]` / `[roadmap:]` in the task
|
|
669
|
+
sections (active + deferred), plus
|
|
670
|
+
`[attend]` and every `QUEUE_KIT_LESSON_TAGS` name in the `## Lessons Learned`
|
|
671
|
+
section — the section `queue-index.sh` now reads, which retires the old "parsed
|
|
672
|
+
by no reader" exemption for it. Couples
|
|
673
|
+
the width-only wrap gate to the tag-parsing tools over the same surface: gate
|
|
674
|
+
the coupling, not just each side.
|
|
675
|
+
|
|
676
|
+
The gate states that set **once**, as a class table of `<name><terminator>`
|
|
677
|
+
tokens (`]` for a bare tag, `:` for a field tag) from which both the match
|
|
678
|
+
literal and the class key are derived. That single statement is the whole
|
|
679
|
+
point: a table entry naming the tag once cannot desync its matcher from its
|
|
680
|
+
key, and the desync had one silent direction — a key renamed without its regex
|
|
681
|
+
leaves every downstream reader agreeing while the matcher hunts a token no
|
|
682
|
+
entry carries, and the lead-line guard for that class dies with nothing
|
|
683
|
+
reddening. The table is also the **derivation surface** a consumer's enum
|
|
684
|
+
emitter reads for the tag vocabulary (this repo's `scripts/enum-sets.sh` →
|
|
685
|
+
`check-prose-enum`), so it is the single source for the spelling on both the
|
|
686
|
+
enforcement and the prose side.
|
|
687
|
+
|
|
688
|
+
Calibration: lead-class rule — a tag of class C on a continuation line is a
|
|
689
|
+
violation only when the lead line lacks class C (prose that mentions a tag
|
|
690
|
+
the lead already carries is tolerated); tags outside the scanned sections are
|
|
691
|
+
parsed by no reader and ignored. Fenced-code and table lines exempt.
|
|
692
|
+
Residual accepted gap: a same-class duplicate sliding off while one stays on
|
|
693
|
+
the lead — negligible severity, not reflow-realistic.
|
|
694
|
+
|
|
695
|
+
### check-task-names
|
|
696
|
+
|
|
697
|
+
Invariant: every entry in a live task section — active, deferred, and a
|
|
698
|
+
configured icebox — and every sub-task leads with a valid kebab-case slug,
|
|
699
|
+
unique across the file; every done-section entry is a bare slug only; every
|
|
700
|
+
`[blocked-by: X]` resolves to a live task, and one pointing at a done slug is
|
|
701
|
+
flagged stale.
|
|
702
|
+
|
|
703
|
+
Calibration: the live task sections share one namespace so resolution works
|
|
704
|
+
regardless of where the target lives — an iceboxed slug is a legal blocker
|
|
705
|
+
target, because it is unbuilt. The non-bold indented bullet is the documented
|
|
706
|
+
prose-note escape; done slugs are validated as tokens but not cross-checked
|
|
707
|
+
against the live namespace. Help texts cite this SPEC.
|
|
708
|
+
|
|
709
|
+
### check-task-conservation
|
|
710
|
+
|
|
711
|
+
Invariant: every live slug (active + deferred + icebox, sub-tasks included)
|
|
712
|
+
present at HEAD is still present in the working tree — live or done. A slug
|
|
713
|
+
vanishing from both is a lost task: the absence class diff-review reliably
|
|
714
|
+
misses (you notice wrong things present, not right things missing).
|
|
715
|
+
Half-applied moves, botched renames, and undocumented withdrawals all fire.
|
|
716
|
+
|
|
717
|
+
**Eviction to the icebox is conserved by construction** — the slug stays in the
|
|
718
|
+
live set, so the gate stays silent and no sanctioned-disappearance escape had
|
|
719
|
+
to be invented. The done side is where care is owed: a done entry is matched as
|
|
720
|
+
a **bare `- <slug>` line and nothing else** — no bold, no tag, no trailing
|
|
721
|
+
prose. An entry *carried* into the done section with its
|
|
722
|
+
`- **<slug>** [design-pending] — …` shape intact therefore matches neither the
|
|
723
|
+
done grammar nor the live one, lands in no set, and reds here as a lost task.
|
|
724
|
+
Dispositioning an entry to done is a **rewrite to its slug**, not a relocation
|
|
725
|
+
of the entry; the tag is dropped by that reduction rather than swapped.
|
|
726
|
+
|
|
727
|
+
Calibration: diffs `git show HEAD:<queue>` against the worktree, hence
|
|
728
|
+
`no-fixture:` (a committed fixture has HEAD == worktree; the bad case needs
|
|
729
|
+
an uncommitted deletion — infeasible, not a stopgap). No git baseline ⇒ clean
|
|
730
|
+
exit (nothing to compare is not a violation). Clearing the done section is
|
|
731
|
+
safe: only HEAD's *live* slugs are conserved. A rename intentionally fires —
|
|
732
|
+
move the old slug to done, sweep refs.
|
|
733
|
+
|
|
734
|
+
### check-queue-prose-precondition
|
|
735
|
+
|
|
736
|
+
Invariant: no active-section entry states a forward precondition in prose
|
|
737
|
+
("revisit when …", "once X lands", "gated on …") without a `[blocked-by:]`
|
|
738
|
+
tag — such an entry is latently blocked yet mechanically pickable as "first
|
|
739
|
+
unblocked", because selection trusts tags, not prose. Resolution: tag the
|
|
740
|
+
real blocker, move the entry to the deferred section, rephrase past-tense if
|
|
741
|
+
the precondition is met, or the `[precondition-ok: <reason>]` opt-out (a
|
|
742
|
+
queue tag, not an HTML comment, so it survives the hygiene gate).
|
|
743
|
+
|
|
744
|
+
Calibration: the trigger set (`QUEUE_KIT_PRECONDITION_REGEX`) is deliberately
|
|
745
|
+
narrow — forward-looking phrasing only, past-tense narration stripped before
|
|
746
|
+
matching — and scoped to the active sections (the deferred section uses
|
|
747
|
+
"revisit when" as normal vocabulary and is exempt, and the icebox inherits that
|
|
748
|
+
exemption for the same reason: forward-looking phrasing is what a parked entry
|
|
749
|
+
is *for*). FP-bearing by
|
|
750
|
+
construction (parsing prose intent); the blocking grade is justified by a
|
|
751
|
+
silent pick attested in production use and the bounded scope.
|
|
752
|
+
|
|
753
|
+
### check-queue-slug-liveness
|
|
754
|
+
|
|
755
|
+
Invariant: on every prose surface named by `QUEUE_KIT_PROSE_SURFACE_GLOBS`,
|
|
756
|
+
every slug-shaped bold-code token — `` **`<token>`** `` whose token matches the
|
|
757
|
+
slug grammar (`[a-z0-9][a-z0-9-]*`, so a `--flag` mention falls outside) —
|
|
758
|
+
resolves against the queue's live slug set (`lib/queue.sh`'s `queue_live_slugs`,
|
|
759
|
+
active + deferred + icebox — a page citing an iceboxed task stays green,
|
|
760
|
+
correctly: the task is dormant, not landed). A token naming no live task is a
|
|
761
|
+
dead membership claim,
|
|
762
|
+
reported by file, line, and slug. The slug set excludes done tasks by
|
|
763
|
+
construction: prose about landed work must drop the bold-code form and cite the
|
|
764
|
+
owning SPEC instead, so a living page can never keep calling a landed task
|
|
765
|
+
queued.
|
|
766
|
+
|
|
767
|
+
The bold-code token is prose's *only* sanctioned queue-membership claim
|
|
768
|
+
(§The tag algebra) — a grammar narrow enough for a gate to read, so the
|
|
769
|
+
living-page current-state rule stops being a standing duty and becomes a
|
|
770
|
+
checked contract. Default-empty knob: a consumer with no configured surface
|
|
771
|
+
no-ops clean; the surfaces are consumer editorial config, never a kit literal
|
|
772
|
+
(the provenance seam). Resolution direction is one-way (`dir=one`): the queue
|
|
773
|
+
is ground truth, the prose the audited follower.
|
|
774
|
+
|
|
775
|
+
### templates/
|
|
776
|
+
|
|
777
|
+
`queue-config.sh` — the consumer config template documenting every knob (the
|
|
778
|
+
`# spec:` pointer to the §Layout knob table, which now includes
|
|
779
|
+
`QUEUE_KIT_LESSON_SINKS` and its local-overlay reminder).
|
|
780
|
+
`TASK-QUEUE.md` — a starter queue skeleton: the sections in default order,
|
|
781
|
+
one example entry per grammar shape shown under `Technical Debt` (the
|
|
782
|
+
`[spec:]`-gated `New Features` carries teaching prose only, since a spec-ready
|
|
783
|
+
example would dangle a ref). It ships battery-clean when copied verbatim — the
|
|
784
|
+
starter-template conformance contract owned by gate-sdk/SPEC.md §Consumer smoke
|
|
785
|
+
— and carries lifecycle-kit's iteration header as inert scaffold so a
|
|
786
|
+
combined-tree copy clears the stage gates too.
|
|
787
|
+
|
|
788
|
+
## Out of scope
|
|
789
|
+
|
|
790
|
+
<!-- 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 -->
|
|
791
|
+
The amendment lifecycle around `[design-pending]`/`[spec:]` (section-wide
|
|
792
|
+
enforcement, promotion procedure, `check-amendment-queue`) is canon-kit's
|
|
793
|
+
scope. Code-comment TODO scanning (`TODO(task:<slug>)` resolution against
|
|
794
|
+
the queue) couples to source-file conventions and is canon-kit's, on the
|
|
795
|
+
governed comment surface (`check-todo-task-liveness`). Task-output readers and delegation tooling are delegation-kit's
|
|
796
|
+
scope. A consumer's protocol prose, deferred-subsection taxonomy, and task
|
|
797
|
+
bodies are rule content and never ship.
|