checkwright 0.0.1 → 0.17.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 +78 -0
- package/payload/canon-kit/SPEC.md +1264 -0
- package/payload/canon-kit/checks/check-amendment-queue.sh +115 -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-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-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 +475 -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 +785 -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 +780 -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 +828 -0
- package/payload/drift-kit/bin/drift-report.sh +152 -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 +44 -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-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 +1861 -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 +1469 -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/skills/align.md +65 -0
- package/payload/lifecycle-kit/templates/skills/build.md +78 -0
- package/payload/lifecycle-kit/templates/skills/close.md +122 -0
- package/payload/lifecycle-kit/templates/skills/release-sweep.md +39 -0
- package/payload/lifecycle-kit/templates/skills/scope.md +112 -0
- package/payload/lifecycle-kit/templates/skills/spec.md +91 -0
- package/payload/lifecycle-kit/templates/skills/upgrade.md +41 -0
- package/payload/lifecycle-kit/templates/skills/validate.md +54 -0
- package/payload/queue-kit/README.md +62 -0
- package/payload/queue-kit/SPEC.md +366 -0
- package/payload/queue-kit/bin/lesson-sink.sh +28 -0
- package/payload/queue-kit/bin/queue-index.sh +131 -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-tag-lead-line.sh +66 -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-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-tag-lead-line/bad/TASK-QUEUE.md +22 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +29 -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 +118 -0
- package/payload/queue-kit/lib/queue.sh +107 -0
- package/payload/queue-kit/smoke/install.sh +21 -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 +263 -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,341 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: gate-sdk/SPEC.md §Consumer smoke — lifecycle-kit consumer-smoke install (README.md §Install)
|
|
3
|
+
# cwd = scratch-consumer root; SMOKE_KIT_ROOT = the vendored lifecycle-kit copy.
|
|
4
|
+
set -euo pipefail
|
|
5
|
+
: "${SMOKE_KIT_ROOT:?run via run-consumer-smoke.sh}"
|
|
6
|
+
SDK="$SMOKE_KIT_ROOT/../gate-sdk" # the vendored gate-sdk beside this kit
|
|
7
|
+
|
|
8
|
+
cat >> scripts/gates.list <<'EOF'
|
|
9
|
+
# lifecycle-kit
|
|
10
|
+
check-stage-evidence
|
|
11
|
+
check-stage-entry
|
|
12
|
+
EOF
|
|
13
|
+
|
|
14
|
+
if [[ ! -f TASK-QUEUE.md ]]; then
|
|
15
|
+
cat > TASK-QUEUE.md <<'EOF'
|
|
16
|
+
# TASK-QUEUE.md — smoke consumer work queue
|
|
17
|
+
|
|
18
|
+
## Iteration: —
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## New Features
|
|
23
|
+
|
|
24
|
+
## Technical Debt
|
|
25
|
+
|
|
26
|
+
## Deferred
|
|
27
|
+
|
|
28
|
+
## Done
|
|
29
|
+
EOF
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
mkdir -p .workflow
|
|
33
|
+
cat > .workflow/WORKFLOW-STATE.txt <<EOF
|
|
34
|
+
# contract: lifecycle-kit/SPEC.md §check-stage-evidence
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
— scope smoke001 $(date +%F)
|
|
39
|
+
EOF
|
|
40
|
+
|
|
41
|
+
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
42
|
+
bash "$SDK/checks/check-graph.sh" --emit > .workflow/CHECK-GRAPH.html
|
|
43
|
+
|
|
44
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — exercise enter-stage end-to-end under .tmp (advisory tool, no fixture pair)
|
|
45
|
+
es="$PWD/.tmp/enter-stage-smoke"
|
|
46
|
+
rm -rf "$es"; mkdir -p "$es/.workflow" "$es/sessions" "$es/tmp"
|
|
47
|
+
: > "$es/sessions/aabbccdd-0000-0000-0000-000000000000.jsonl"
|
|
48
|
+
cat > "$es/TASK-QUEUE.md" <<'EOF'
|
|
49
|
+
# smoke queue
|
|
50
|
+
## Iteration: prev-iter
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## New Features
|
|
55
|
+
## Technical Debt
|
|
56
|
+
## Deferred
|
|
57
|
+
## Done
|
|
58
|
+
EOF
|
|
59
|
+
cat > "$es/.workflow/WORKFLOW-STATE.txt" <<'EOF'
|
|
60
|
+
# contract
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
prev-iter close ffffffff 2020-01-01
|
|
65
|
+
EOF
|
|
66
|
+
|
|
67
|
+
es_run() {
|
|
68
|
+
env -u CLAUDE_CODE_SESSION_ID -u CLAUDE_CODE_CHILD_SESSION -u LIFECYCLE_KIT_SESSION_ID \
|
|
69
|
+
LIFECYCLE_KIT_QUEUE_FILE="$es/TASK-QUEUE.md" \
|
|
70
|
+
LIFECYCLE_KIT_STATE_FILE="$es/.workflow/WORKFLOW-STATE.txt" \
|
|
71
|
+
LIFECYCLE_KIT_SESSIONS_DIR="$es/sessions" \
|
|
72
|
+
GATE_SDK_TMP_DIR="$es/tmp" \
|
|
73
|
+
bash "$SMOKE_KIT_ROOT/bin/enter-stage.sh" "$@"
|
|
74
|
+
}
|
|
75
|
+
esq="$es/TASK-QUEUE.md"; ess="$es/.workflow/WORKFLOW-STATE.txt"; d="$(date +%F)"
|
|
76
|
+
|
|
77
|
+
es_run scope >/dev/null
|
|
78
|
+
grep -q "^## Iteration: —\$" "$esq" || { echo "smoke(enter-stage): scope header wrong" >&2; exit 1; }
|
|
79
|
+
grep -q "^— scope aabbccdd $d\$" "$ess" || { echo "smoke(enter-stage): scope stamp missing" >&2; exit 1; }
|
|
80
|
+
if grep -q 'prev-iter' "$ess"; then echo "smoke(enter-stage): state not truncated on reset" >&2; exit 1; fi
|
|
81
|
+
|
|
82
|
+
# spec: lifecycle-kit/SPEC.md §The stamp protocol — a non-boundary entry writes the evidence file ONLY: the cursor advances by the appended stamp and the queue is byte-identical afterwards
|
|
83
|
+
cp "$esq" "$es/q.before"
|
|
84
|
+
es_run align >/dev/null
|
|
85
|
+
cmp -s "$es/q.before" "$esq" || { echo "smoke(enter-stage): a non-boundary entry wrote the queue" >&2; exit 1; }
|
|
86
|
+
grep -q "^— align aabbccdd $d\$" "$ess" || { echo "smoke(enter-stage): align stamp missing" >&2; exit 1; }
|
|
87
|
+
grep -q "^— scope aabbccdd $d\$" "$ess" || { echo "smoke(enter-stage): scope stamp lost on append" >&2; exit 1; }
|
|
88
|
+
[[ "$(awk '/^---[[:space:]]*$/{f=1;next} f && NF {l=$2} END{print l}' "$ess")" == align ]] \
|
|
89
|
+
|| { echo "smoke(enter-stage): cursor did not advance to align" >&2; exit 1; }
|
|
90
|
+
|
|
91
|
+
es_run align >/dev/null
|
|
92
|
+
if [[ "$(grep -c "^— align aabbccdd " "$ess")" -ne 1 ]]; then
|
|
93
|
+
echo "smoke(enter-stage): idempotent re-entry duplicated the align stamp" >&2; exit 1
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
grep -v '^## Iteration:' "$esq" > "$es/q.headerless"; cp "$es/q.headerless" "$esq"
|
|
97
|
+
cp "$esq" "$es/q.before"; cp "$ess" "$es/s.before"
|
|
98
|
+
if es_run build >/dev/null 2>&1; then echo "smoke(enter-stage): should refuse a headerless queue" >&2; exit 1; fi
|
|
99
|
+
cmp -s "$es/s.before" "$ess" || { echo "smoke(enter-stage): wrote state on a refusal" >&2; exit 1; }
|
|
100
|
+
cmp -s "$es/q.before" "$esq" || { echo "smoke(enter-stage): wrote queue on a refusal" >&2; exit 1; }
|
|
101
|
+
|
|
102
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — LIFECYCLE_KIT_ENTRY_PREFLIGHT: a red entry command refuses the entry (no writes), a green one lets it through
|
|
103
|
+
cat > "$esq" <<'EOF'
|
|
104
|
+
# smoke queue
|
|
105
|
+
## Iteration: pf-iter
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## New Features
|
|
110
|
+
## Technical Debt
|
|
111
|
+
## Deferred
|
|
112
|
+
## Done
|
|
113
|
+
EOF
|
|
114
|
+
cat > "$ess" <<EOF
|
|
115
|
+
# contract
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
pf-iter build aabbccdd $d
|
|
120
|
+
EOF
|
|
121
|
+
cat > "$es/preflight-stub.sh" <<'STUB'
|
|
122
|
+
#!/usr/bin/env bash
|
|
123
|
+
[[ -f "$(dirname "$0")/preflight-ok" ]]
|
|
124
|
+
STUB
|
|
125
|
+
chmod +x "$es/preflight-stub.sh"
|
|
126
|
+
cat > "$es/stages.sh" <<STAGES
|
|
127
|
+
# shellcheck shell=bash
|
|
128
|
+
LIFECYCLE_KIT_ENTRY_PREFLIGHT=('validate=$es/preflight-stub.sh')
|
|
129
|
+
STAGES
|
|
130
|
+
|
|
131
|
+
es_pf_run() {
|
|
132
|
+
env -u CLAUDE_CODE_SESSION_ID -u CLAUDE_CODE_CHILD_SESSION -u LIFECYCLE_KIT_SESSION_ID \
|
|
133
|
+
LIFECYCLE_KIT_QUEUE_FILE="$esq" \
|
|
134
|
+
LIFECYCLE_KIT_STATE_FILE="$ess" \
|
|
135
|
+
LIFECYCLE_KIT_SESSIONS_DIR="$es/sessions" \
|
|
136
|
+
GATE_SDK_TMP_DIR="$es/tmp" \
|
|
137
|
+
LIFECYCLE_KIT_CONFIG_FILE="$es/stages.sh" \
|
|
138
|
+
bash "$SMOKE_KIT_ROOT/bin/enter-stage.sh" "$@"
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
cp "$esq" "$es/q.before"; cp "$ess" "$es/s.before"
|
|
142
|
+
if es_pf_run validate >/dev/null 2>&1; then echo "smoke(enter-stage): red preflight should refuse the entry" >&2; exit 1; fi
|
|
143
|
+
cmp -s "$es/s.before" "$ess" || { echo "smoke(enter-stage): wrote state on a preflight refusal" >&2; exit 1; }
|
|
144
|
+
cmp -s "$es/q.before" "$esq" || { echo "smoke(enter-stage): wrote queue on a preflight refusal" >&2; exit 1; }
|
|
145
|
+
|
|
146
|
+
touch "$es/preflight-ok"
|
|
147
|
+
es_pf_run validate >/dev/null || { echo "smoke(enter-stage): green preflight should let the entry through" >&2; exit 1; }
|
|
148
|
+
[[ "$(awk '/^---[[:space:]]*$/{f=1;next} f && NF {l=$2} END{print l}' "$ess")" == validate ]] \
|
|
149
|
+
|| { echo "smoke(enter-stage): green preflight did not advance the cursor to validate" >&2; exit 1; }
|
|
150
|
+
grep -q "^pf-iter validate aabbccdd $d\$" "$ess" || { echo "smoke(enter-stage): green preflight did not stamp" >&2; exit 1; }
|
|
151
|
+
|
|
152
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — --simulate: would-no-op, would-pass, would-refuse; read-only and prefix-marked in all three
|
|
153
|
+
cp "$esq" "$es/q.before"; cp "$ess" "$es/s.before"
|
|
154
|
+
out="$(es_pf_run --simulate validate 2>&1)" || { echo "smoke(enter-stage): --simulate of a stamped stage should exit 0" >&2; exit 1; }
|
|
155
|
+
grep -q "idempotent no-op" <<<"$out" || { echo "smoke(enter-stage): --simulate did not report the would-be no-op: $out" >&2; exit 1; }
|
|
156
|
+
out="$(es_pf_run --simulate close 2>&1)" || { echo "smoke(enter-stage): --simulate of a clean entry should exit 0" >&2; exit 1; }
|
|
157
|
+
grep -q "would proceed" <<<"$out" || { echo "smoke(enter-stage): --simulate did not report would-proceed: $out" >&2; exit 1; }
|
|
158
|
+
if out="$(es_pf_run --simulate build 2>&1)"; then
|
|
159
|
+
echo "smoke(enter-stage): --simulate of an unstamped predecessor should exit 1" >&2; exit 1
|
|
160
|
+
fi
|
|
161
|
+
grep -q "would refuse" <<<"$out" || { echo "smoke(enter-stage): --simulate did not relay the refusal: $out" >&2; exit 1; }
|
|
162
|
+
if grep -qv "^enter-stage (simulate): " <<<"$out"; then
|
|
163
|
+
echo "smoke(enter-stage): --simulate emitted an unprefixed line: $out" >&2; exit 1
|
|
164
|
+
fi
|
|
165
|
+
cmp -s "$es/s.before" "$ess" || { echo "smoke(enter-stage): --simulate wrote state" >&2; exit 1; }
|
|
166
|
+
cmp -s "$es/q.before" "$esq" || { echo "smoke(enter-stage): --simulate wrote queue" >&2; exit 1; }
|
|
167
|
+
|
|
168
|
+
# spec: lifecycle-kit/SPEC.md §bin/install-lifecycle.sh — exercise the injector + check-lifecycle-registration end-to-end under .tmp (advisory tool, no fixture pair)
|
|
169
|
+
il="$es/agent"; mkdir -p "$il"
|
|
170
|
+
cat > "$il/CLAUDE.md" <<'EOF'
|
|
171
|
+
# Scratch agent file
|
|
172
|
+
|
|
173
|
+
Resident context the consumer keeps.
|
|
174
|
+
EOF
|
|
175
|
+
il_run() { LIFECYCLE_KIT_AGENT_FILE="$il/CLAUDE.md" bash "$SMOKE_KIT_ROOT/bin/install-lifecycle.sh" "$@"; }
|
|
176
|
+
il_gate() { LIFECYCLE_KIT_AGENT_FILE="$il/CLAUDE.md" bash "$SMOKE_KIT_ROOT/checks/check-lifecycle-registration.sh" "$@"; }
|
|
177
|
+
|
|
178
|
+
il_run >/dev/null
|
|
179
|
+
grep -q "<!-- lifecycle-kit:begin -->" "$il/CLAUDE.md" || { echo "smoke(install-lifecycle): block not injected" >&2; exit 1; }
|
|
180
|
+
il_gate >/dev/null || { echo "smoke(install-lifecycle): a freshly installed block should pass the parity gate" >&2; exit 1; }
|
|
181
|
+
|
|
182
|
+
cp "$il/CLAUDE.md" "$il/before"
|
|
183
|
+
il_run >/dev/null
|
|
184
|
+
cmp -s "$il/before" "$il/CLAUDE.md" || { echo "smoke(install-lifecycle): re-run was not idempotent" >&2; exit 1; }
|
|
185
|
+
|
|
186
|
+
sed -i 's#`/close`##' "$il/CLAUDE.md"
|
|
187
|
+
if il_gate >/dev/null 2>&1; then echo "smoke(install-lifecycle): a staled block should redden the parity gate" >&2; exit 1; fi
|
|
188
|
+
|
|
189
|
+
# spec: lifecycle-kit/SPEC.md §bin/install-lifecycle.sh — exercise the merge-attribute + driver-config steps and check-merge-attrs end-to-end in a scratch git repo (advisory tool, no fixture pair)
|
|
190
|
+
ma="$es/merge-attrs"; mkdir -p "$ma"
|
|
191
|
+
git -C "$ma" init -q
|
|
192
|
+
printf '# Scratch agent file\n' > "$ma/CLAUDE.md"
|
|
193
|
+
( cd "$ma" && bash "$SMOKE_KIT_ROOT/bin/install-lifecycle.sh" >/dev/null )
|
|
194
|
+
grep -q "^# lifecycle-kit:merge:begin\$" "$ma/.gitattributes" || { echo "smoke(install-lifecycle): merge-attribute block not injected into .gitattributes" >&2; exit 1; }
|
|
195
|
+
grep -q "^\.workflow/WORKFLOW-STATE.txt merge=iteration-scoped\$" "$ma/.gitattributes" || { echo "smoke(install-lifecycle): state-file merge attribute missing" >&2; exit 1; }
|
|
196
|
+
[[ "$(git -C "$ma" config --get merge.iteration-scoped.driver)" == "true" ]] || { echo "smoke(install-lifecycle): keep-ours driver not registered in git config" >&2; exit 1; }
|
|
197
|
+
( cd "$ma" && bash "$SMOKE_KIT_ROOT/checks/check-merge-attrs.sh" >/dev/null ) || { echo "smoke(install-lifecycle): a freshly installed .gitattributes should pass the parity gate" >&2; exit 1; }
|
|
198
|
+
|
|
199
|
+
cp "$ma/.gitattributes" "$ma/before"
|
|
200
|
+
( cd "$ma" && bash "$SMOKE_KIT_ROOT/bin/install-lifecycle.sh" >/dev/null )
|
|
201
|
+
cmp -s "$ma/before" "$ma/.gitattributes" || { echo "smoke(install-lifecycle): merge-attribute re-run was not idempotent" >&2; exit 1; }
|
|
202
|
+
|
|
203
|
+
printf 'README.md merge=iteration-scoped\n' >> "$ma/.gitattributes" # smuggled reverse-edge line
|
|
204
|
+
if ( cd "$ma" && bash "$SMOKE_KIT_ROOT/checks/check-merge-attrs.sh" >/dev/null 2>&1 ); then
|
|
205
|
+
echo "smoke(install-lifecycle): a smuggled out-of-set merge attribute should redden the parity gate" >&2; exit 1
|
|
206
|
+
fi
|
|
207
|
+
|
|
208
|
+
# spec: lifecycle-kit/SPEC.md §bin/session-id.sh — the derivation order: env-first, agent- strip, widened + child-narrowed subagents scan (advisory tool, no fixture pair)
|
|
209
|
+
SID="$SMOKE_KIT_ROOT/bin/session-id.sh"
|
|
210
|
+
sid="$es/sid"; mkdir -p "$sid"
|
|
211
|
+
sid_run() { env -u CLAUDE_CODE_SESSION_ID -u CLAUDE_CODE_CHILD_SESSION -u LIFECYCLE_KIT_SESSION_ID -u LIFECYCLE_KIT_SESSIONS_DIR "$@" bash "$SID"; }
|
|
212
|
+
|
|
213
|
+
o="$(sid_run LIFECYCLE_KIT_SESSION_ID=agent-deadbeefcafe0000)" # source 1, agent- strip
|
|
214
|
+
[[ "$o" == "deadbeef" ]] || { echo "smoke(session-id): override did not strip agent- (got '$o')" >&2; exit 1; }
|
|
215
|
+
o="$(sid_run CLAUDE_CODE_SESSION_ID=abcdef0123456789)" # source 2 (CHILD unset)
|
|
216
|
+
[[ "$o" == "abcdef01" ]] || { echo "smoke(session-id): harness session id not used (got '$o')" >&2; exit 1; }
|
|
217
|
+
|
|
218
|
+
lead="11112222-3333-4444-5555-666677778888" # source 2 skipped when CHILD set → narrowed scan
|
|
219
|
+
mkdir -p "$sid/tree/$lead/subagents"
|
|
220
|
+
: > "$sid/tree/$lead/subagents/agent-aaaabbbbccccdddd.jsonl"
|
|
221
|
+
: > "$sid/tree/$lead.jsonl"
|
|
222
|
+
touch -d '2020-01-01T00:00:00' "$sid/tree/$lead/subagents/agent-aaaabbbbccccdddd.jsonl"
|
|
223
|
+
touch -d '2025-01-01T00:00:00' "$sid/tree/$lead.jsonl" # lead top-level newer, yet excluded
|
|
224
|
+
o="$(sid_run CLAUDE_CODE_CHILD_SESSION=1 CLAUDE_CODE_SESSION_ID=$lead LIFECYCLE_KIT_SESSIONS_DIR=$sid/tree)"
|
|
225
|
+
[[ "$o" == "aaaabbbb" ]] || { echo "smoke(session-id): dispatched child did not narrow to subagents (got '$o')" >&2; exit 1; }
|
|
226
|
+
|
|
227
|
+
spur="ccccdddd-1111-2222-3333-444455556666" # spurious flag: empty subagents/ + top-level transcript → fall back to env uuid
|
|
228
|
+
mkdir -p "$sid/spur/$spur/subagents" # subagents/ dir exists but empty
|
|
229
|
+
: > "$sid/spur/$spur.jsonl"
|
|
230
|
+
o="$(sid_run CLAUDE_CODE_CHILD_SESSION=1 CLAUDE_CODE_SESSION_ID=$spur LIFECYCLE_KIT_SESSIONS_DIR=$sid/spur)"
|
|
231
|
+
[[ "$o" == "ccccdddd" ]] || { echo "smoke(session-id): spurious flag did not fall back to top-level uuid (got '$o')" >&2; exit 1; }
|
|
232
|
+
|
|
233
|
+
mkdir -p "$sid/tree2/somelead/subagents" # source 3 widened glob, no env id vars
|
|
234
|
+
: > "$sid/tree2/somelead/subagents/agent-9999888877776666.jsonl"
|
|
235
|
+
o="$(sid_run LIFECYCLE_KIT_SESSIONS_DIR=$sid/tree2)"
|
|
236
|
+
[[ "$o" == "99998888" ]] || { echo "smoke(session-id): widened subagents glob did not resolve (got '$o')" >&2; exit 1; }
|
|
237
|
+
|
|
238
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — LIFECYCLE_KIT_BOUNDARY_REQUIRE: at the iteration boundary each member must carry a line naming the closing iteration, else refuse (fail-closed on a missing file); a never-named (—) closing iteration skips the check
|
|
239
|
+
br="$es/boundary-require"; mkdir -p "$br/.workflow"
|
|
240
|
+
brq="$br/TASK-QUEUE.md"; brs="$br/.workflow/WORKFLOW-STATE.txt"; brd="$br/.workflow/release-disposition.txt"
|
|
241
|
+
write_br_fixture() { # $1 = header (and stamp) iteration name
|
|
242
|
+
cat > "$brq" <<EOF
|
|
243
|
+
# smoke queue
|
|
244
|
+
## Iteration: $1
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## New Features
|
|
249
|
+
## Technical Debt
|
|
250
|
+
## Deferred
|
|
251
|
+
## Done
|
|
252
|
+
EOF
|
|
253
|
+
cat > "$brs" <<EOF
|
|
254
|
+
# contract
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
$1 close aabbccdd $d
|
|
259
|
+
EOF
|
|
260
|
+
}
|
|
261
|
+
cat > "$br/stages.sh" <<STAGES
|
|
262
|
+
# shellcheck shell=bash
|
|
263
|
+
LIFECYCLE_KIT_BOUNDARY_REQUIRE=($brd)
|
|
264
|
+
STAGES
|
|
265
|
+
br_run() {
|
|
266
|
+
env -u CLAUDE_CODE_SESSION_ID -u CLAUDE_CODE_CHILD_SESSION -u LIFECYCLE_KIT_SESSION_ID \
|
|
267
|
+
LIFECYCLE_KIT_QUEUE_FILE="$brq" \
|
|
268
|
+
LIFECYCLE_KIT_STATE_FILE="$brs" \
|
|
269
|
+
LIFECYCLE_KIT_SESSIONS_DIR="$es/sessions" \
|
|
270
|
+
GATE_SDK_TMP_DIR="$es/tmp" \
|
|
271
|
+
LIFECYCLE_KIT_CONFIG_FILE="$br/stages.sh" \
|
|
272
|
+
bash "$SMOKE_KIT_ROOT/bin/enter-stage.sh" "$@"
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
write_br_fixture closing-iter # (a) member missing the closing-iteration line → refuse
|
|
276
|
+
printf '# contract\n' > "$brd"
|
|
277
|
+
cp "$brq" "$br/q.before"; cp "$brs" "$br/s.before"
|
|
278
|
+
if br_run scope >/dev/null 2>&1; then echo "smoke(enter-stage): boundary-require should refuse a member missing the closing-iteration line" >&2; exit 1; fi
|
|
279
|
+
cmp -s "$br/s.before" "$brs" || { echo "smoke(enter-stage): wrote state on a boundary-require refusal" >&2; exit 1; }
|
|
280
|
+
cmp -s "$br/q.before" "$brq" || { echo "smoke(enter-stage): wrote queue on a boundary-require refusal" >&2; exit 1; }
|
|
281
|
+
|
|
282
|
+
write_br_fixture closing-iter # (b) member absent from disk → fail-closed refusal
|
|
283
|
+
rm -f "$brd"
|
|
284
|
+
cp "$brs" "$br/s.before"
|
|
285
|
+
if br_run scope >/dev/null 2>&1; then echo "smoke(enter-stage): boundary-require should fail closed on an absent member" >&2; exit 1; fi
|
|
286
|
+
cmp -s "$br/s.before" "$brs" || { echo "smoke(enter-stage): wrote state on a fail-closed boundary-require refusal" >&2; exit 1; }
|
|
287
|
+
|
|
288
|
+
write_br_fixture closing-iter # (c) member names the closing iteration → boundary entry proceeds
|
|
289
|
+
printf '# contract\n\nclosing-iter release none — smoke basis\n' > "$brd"
|
|
290
|
+
br_run scope >/dev/null || { echo "smoke(enter-stage): boundary-require should pass when the member names the closing iteration" >&2; exit 1; }
|
|
291
|
+
grep -q "^## Iteration: —\$" "$brq" || { echo "smoke(enter-stage): boundary-require pass did not reset the header" >&2; exit 1; }
|
|
292
|
+
|
|
293
|
+
write_br_fixture — # (d) never-named (—) closing iteration skips the check even with no line
|
|
294
|
+
printf '# contract\n' > "$brd"
|
|
295
|
+
br_run scope >/dev/null || { echo "smoke(enter-stage): boundary-require should skip a never-named closing iteration" >&2; exit 1; }
|
|
296
|
+
|
|
297
|
+
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — the iteration-boundary entry refuses while the gap inbox holds bullets (the Lessons-refusal contract); an empty (header-only) inbox passes
|
|
298
|
+
gp="$es/gap-inbox"; mkdir -p "$gp/.workflow"
|
|
299
|
+
gpq="$gp/TASK-QUEUE.md"; gps="$gp/.workflow/WORKFLOW-STATE.txt"; gpi="$gp/.workflow/gap-inbox.md"
|
|
300
|
+
cat > "$gpq" <<EOF
|
|
301
|
+
# smoke queue
|
|
302
|
+
## Iteration: gap-iter
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## New Features
|
|
307
|
+
## Technical Debt
|
|
308
|
+
## Deferred
|
|
309
|
+
## Done
|
|
310
|
+
## Lessons Learned
|
|
311
|
+
EOF
|
|
312
|
+
cat > "$gps" <<EOF
|
|
313
|
+
# contract
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
gap-iter close aabbccdd $d
|
|
318
|
+
EOF
|
|
319
|
+
cat > "$gp/stages.sh" <<STAGES
|
|
320
|
+
# shellcheck shell=bash
|
|
321
|
+
LIFECYCLE_KIT_GAP_INBOX_FILE=$gpi
|
|
322
|
+
STAGES
|
|
323
|
+
gp_run() {
|
|
324
|
+
env -u CLAUDE_CODE_SESSION_ID -u CLAUDE_CODE_CHILD_SESSION -u LIFECYCLE_KIT_SESSION_ID \
|
|
325
|
+
LIFECYCLE_KIT_QUEUE_FILE="$gpq" \
|
|
326
|
+
LIFECYCLE_KIT_STATE_FILE="$gps" \
|
|
327
|
+
LIFECYCLE_KIT_SESSIONS_DIR="$es/sessions" \
|
|
328
|
+
GATE_SDK_TMP_DIR="$es/tmp" \
|
|
329
|
+
LIFECYCLE_KIT_CONFIG_FILE="$gp/stages.sh" \
|
|
330
|
+
bash "$SMOKE_KIT_ROOT/bin/enter-stage.sh" "$@"
|
|
331
|
+
}
|
|
332
|
+
printf '# contract: gap inbox\n- 2026-07-17 — an untriaged gap bullet\n' > "$gpi" # (a) non-empty inbox → refuse, nothing written
|
|
333
|
+
cp "$gpq" "$gp/q.before"; cp "$gps" "$gp/s.before"
|
|
334
|
+
if gp_run scope >/dev/null 2>&1; then echo "smoke(enter-stage): should refuse a boundary entry while the gap inbox holds bullets" >&2; exit 1; fi
|
|
335
|
+
cmp -s "$gp/s.before" "$gps" || { echo "smoke(enter-stage): wrote state on a gap-inbox refusal" >&2; exit 1; }
|
|
336
|
+
cmp -s "$gp/q.before" "$gpq" || { echo "smoke(enter-stage): wrote queue on a gap-inbox refusal" >&2; exit 1; }
|
|
337
|
+
printf '# contract: gap inbox\n' > "$gpi" # (b) header-only inbox → boundary entry proceeds
|
|
338
|
+
gp_run scope >/dev/null || { echo "smoke(enter-stage): a header-only gap inbox should not refuse a boundary entry" >&2; exit 1; }
|
|
339
|
+
grep -q "^## Iteration: —\$" "$gpq" || { echo "smoke(enter-stage): gap-inbox pass did not reset the header" >&2; exit 1; }
|
|
340
|
+
|
|
341
|
+
rm -rf "$es"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: gate-sdk/SPEC.md §Consumer smoke — lifecycle-kit consumer-smoke violation: renames the header's iteration out from under the stamps, reddening check-stage-evidence's name-axis (staleness) assertion
|
|
3
|
+
set -euo pipefail
|
|
4
|
+
: "${SMOKE_KIT_ROOT:?run via run-consumer-smoke.sh}"
|
|
5
|
+
|
|
6
|
+
echo "check-stage-evidence"
|
|
7
|
+
|
|
8
|
+
sed -i 's/^## Iteration: .*$/## Iteration: renamed-out-of-band/' TASK-QUEUE.md
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
The **iteration lead** — a live session that dispatches an iteration's stage
|
|
2
|
+
sessions and answers their escalations, so a blocked stage resumes in place
|
|
3
|
+
rather than restarting. It is **not a stage skill**: it invokes no
|
|
4
|
+
`enter-stage.sh`, stamps no evidence, moves no cursor, and joins no stage
|
|
5
|
+
roster. Its whole authority is *dispatch* and *answers* — and, at iteration open, the
|
|
6
|
+
operator's selection **directive**, relayed to scope verbatim, never authored.
|
|
7
|
+
|
|
8
|
+
The lead is optional. An iteration runs correctly with no lead — each stage is
|
|
9
|
+
an ordinary skill invocation that stops and surfaces to the user. The lead only
|
|
10
|
+
changes where a stage session's escalations land: at a live lead that can
|
|
11
|
+
rule and resume it, instead of at a cold restart.
|
|
12
|
+
|
|
13
|
+
**First step — record the session role.** Write `lead <id>` — `<id>` from
|
|
14
|
+
`bash lifecycle-kit/bin/session-id.sh` — to the session-role marker
|
|
15
|
+
(`CONTEXT_KIT_SESSION_ROLE_FILE`, default
|
|
16
|
+
`${GATE_SDK_TMP_DIR:-.tmp}/session-role`):
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
mkdir -p "${GATE_SDK_TMP_DIR:-.tmp}" && \
|
|
20
|
+
echo "lead $(bash lifecycle-kit/bin/session-id.sh)" \
|
|
21
|
+
> "${CONTEXT_KIT_SESSION_ROLE_FILE:-${GATE_SDK_TMP_DIR:-.tmp}/session-role}"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The session-context hook reads it on each re-fire and suppresses its
|
|
25
|
+
executor-facing steps for this session only — the id match scopes the signal,
|
|
26
|
+
so no other session inherits it and a stale marker self-invalidates
|
|
27
|
+
(context-kit/SPEC.md §The session-context hook owns the grammar and limits).
|
|
28
|
+
Skipping the step costs nothing but the suppression. If the Bash environment
|
|
29
|
+
lacks the harness session uuid, the id derivation's newest-transcript fallback
|
|
30
|
+
can mis-pick a just-finished subagent's id — verify before writing the marker
|
|
31
|
+
(lifecycle-kit/SPEC.md §bin/session-id.sh owns the limit).
|
|
32
|
+
|
|
33
|
+
## The lead model
|
|
34
|
+
|
|
35
|
+
The lead takes one of two postures; which one — and the model tier each
|
|
36
|
+
session rides — is standing dispatch policy (the ruling-config slot below):
|
|
37
|
+
|
|
38
|
+
- **Unified** — the scope session stays live as the iteration's lead once its
|
|
39
|
+
promotion commit lands. One session holds both scope's judgment and the
|
|
40
|
+
dispatch loop, so every orchestration turn rides whatever tier scope ran on.
|
|
41
|
+
- **Split** — a session on a cheaper routing tier takes the lead role first
|
|
42
|
+
and dispatches scope itself as a stage session on the judgment tier, keeping
|
|
43
|
+
that agent resumable afterward as the iteration's **intent oracle**. The
|
|
44
|
+
lead's own turns are routing work — dispatch, result ingestion, budget
|
|
45
|
+
verdicts — and stop paying judgment-tier prices. The oracle must be a fresh
|
|
46
|
+
dispatch, never a fork: a fork inherits the dispatcher's model, which is
|
|
47
|
+
exactly the tier split this posture exists to make.
|
|
48
|
+
|
|
49
|
+
Under either posture the lead dispatches a stage session as a **background
|
|
50
|
+
agent** whose prompt is that stage's ordinary skill invocation (`/build`,
|
|
51
|
+
`/validate`, …); the stage session executes its stage skill unchanged. Every
|
|
52
|
+
lifecycle-state write — the entry stamp, commits, evidence — happens **in the
|
|
53
|
+
stage session**, never in the lead.
|
|
54
|
+
|
|
55
|
+
Dispatch mechanics are delegation-kit's, unchanged: dispatch in the background
|
|
56
|
+
with notification, honor the per-dispatch budget guard, and validate after any
|
|
57
|
+
agent commit. The guard blocks only on PAUSE (STALE and OK advise); a deliberate
|
|
58
|
+
override rides the `.claude/settings.local.json` env block — delegation-kit/SPEC.md
|
|
59
|
+
§The delegation model. Load `/agent-execution` for the protocol and follow it
|
|
60
|
+
there — it is not restated here.
|
|
61
|
+
|
|
62
|
+
The lead never hand-derives prior-stage completeness — reading WORKFLOW-STATE
|
|
63
|
+
or the git log to decide whether a dispatch may proceed re-derives what the
|
|
64
|
+
machinery already rules on. It dispatches and trusts `enter-stage.sh`'s
|
|
65
|
+
fail-closed refusal (relayed in the stage session's report), or gates an
|
|
66
|
+
expensive dispatch cheaply first with `enter-stage.sh --simulate <stage>`
|
|
67
|
+
(lifecycle-kit/SPEC.md §bin/enter-stage.sh) — oracle-first made concrete.
|
|
68
|
+
|
|
69
|
+
Whether the lead may ever run a stage *inline* is the consumer's
|
|
70
|
+
session-boundary posture (`LIFECYCLE_KIT_SESSION_BOUNDARY`,
|
|
71
|
+
lifecycle-kit/SPEC.md §Layout and configuration). Under the strict posture
|
|
72
|
+
(`stage`) the lead may never run a stage inline for an iteration it already
|
|
73
|
+
stamped — its session id is spent, and an inline run would be exactly the
|
|
74
|
+
self-reported skip `check-stage-evidence` exists to catch. Under the relaxed
|
|
75
|
+
posture (`iteration`) an inline stage run is the sanctioned fallback when
|
|
76
|
+
dispatch is blocked (e.g. the budget guard), the stamp recording the shared id
|
|
77
|
+
honestly.
|
|
78
|
+
|
|
79
|
+
## Opening an iteration
|
|
80
|
+
|
|
81
|
+
The lead never selects the iteration's unit set. Selection is the **scope**
|
|
82
|
+
stage's contract — the survey, the intake boundary sweep, and the
|
|
83
|
+
re-verification of each queued premise against the current tree are scope's
|
|
84
|
+
first job, and a lead-made list pre-empts exactly the half that catches a stale
|
|
85
|
+
premise. The designed path runs end to end already: scope surveys and proposes,
|
|
86
|
+
a queue change escalates, the operator rules.
|
|
87
|
+
|
|
88
|
+
Before dispatching scope, the lead obtains the operator's **standing directive**
|
|
89
|
+
for the iteration — a theme bounding scope's survey, never a slug list — and
|
|
90
|
+
passes it in the scope dispatch prompt **verbatim**. The directive varies per
|
|
91
|
+
iteration, so per the policy-is-config rule it rides the dispatch prompt, not the
|
|
92
|
+
agent definition. Absent a directive, the lead dispatches scope undirected: scope
|
|
93
|
+
surveys and recommends either way.
|
|
94
|
+
|
|
95
|
+
Scope's proposed unit set returns as an ordinary four-header escalation, and the
|
|
96
|
+
lead routes it like any scope/queue change — ruled by the operator, or by the
|
|
97
|
+
lead only where the answer is derivable from the governed surfaces (the routing
|
|
98
|
+
rule the escalation protocol below already states).
|
|
99
|
+
|
|
100
|
+
The anti-pattern, named: a lead-authored menu restates the operator's own queue
|
|
101
|
+
view from staler data, costs a round trip, and skips the premise re-verification
|
|
102
|
+
that has already caught a false filed premise in practice.
|
|
103
|
+
|
|
104
|
+
## The escalation protocol
|
|
105
|
+
|
|
106
|
+
A stage session that hits a question inside its ruling classes ends its turn
|
|
107
|
+
with a **decision-shaped escalation block** and batches every open question into
|
|
108
|
+
that one turn-end rather than forwarding singly. The block's four headers, each
|
|
109
|
+
read by the lead at its answer transition:
|
|
110
|
+
|
|
111
|
+
- **Question** — what is blocked.
|
|
112
|
+
- **Options** — the choice set.
|
|
113
|
+
- **Recommendation** — the default the lead can rubber-stamp.
|
|
114
|
+
- **Evidence** — what the session already verified.
|
|
115
|
+
|
|
116
|
+
The lead answers by messaging the paused session, which resumes in place with
|
|
117
|
+
its working state intact. That resume — not a cold restart — is the cost
|
|
118
|
+
asymmetry the lead exists to close.
|
|
119
|
+
|
|
120
|
+
Under the split posture the lead **routes** an escalation before answering it.
|
|
121
|
+
A question the iteration's machinery already governs — which fixture, which
|
|
122
|
+
surface, ordering, a helper's shape — the lead rules itself. A question about
|
|
123
|
+
the iteration's *intent* — a scope boundary, an amendment's envelope, a seam
|
|
124
|
+
ruling — is forwarded to the intent oracle and the oracle's answer relayed
|
|
125
|
+
back. A forwarded question carries the excerpt of current working state it
|
|
126
|
+
turns on: the oracle holds the iteration's intent, not the build's unfolding,
|
|
127
|
+
so the lead supplies what the question needs read. When the oracle cannot be
|
|
128
|
+
resumed, the lead answers from the governed surfaces the rulings already live
|
|
129
|
+
in — the amendments, the queue entries — and a question not derivable there
|
|
130
|
+
goes to the operator, never substituted by the lead's own judgment.
|
|
131
|
+
|
|
132
|
+
## Channel design
|
|
133
|
+
|
|
134
|
+
Two channels, each with one job. Routine narration and findings go to the
|
|
135
|
+
**resume journal** (a pull channel — delegation-kit's journal mechanics apply
|
|
136
|
+
unchanged). The **message channel** carries only the escalation classes. This
|
|
137
|
+
is how verbosity is controlled: by channel design, not by asking a session to
|
|
138
|
+
be quiet.
|
|
139
|
+
|
|
140
|
+
## Policy is config, not prose
|
|
141
|
+
|
|
142
|
+
All *standing* dispatch policy — everything true of every dispatch, not the
|
|
143
|
+
ruling-class roster alone — lives in the tracked agent-definition the dispatch
|
|
144
|
+
names, never in ad-hoc per-dispatch instructions, so there is one gated source
|
|
145
|
+
of the policy rather than a second one improvised per dispatch. Journal
|
|
146
|
+
mechanics, environment wiring, the shared-index caution, the escalation shape,
|
|
147
|
+
and the escalate-versus-decide roster are all standing; a dispatch prompt
|
|
148
|
+
carries only what varies per dispatch — the stage skill to invoke, the batch's
|
|
149
|
+
task slugs, and pointers specific to that batch. The tell that content is
|
|
150
|
+
misplaced: the same sentence appearing in two dispatch prompts. The
|
|
151
|
+
agent-definition points at its owning docs rather than restating them
|
|
152
|
+
(content-tiering) — it cites delegation-kit's resume-journal mechanics, say,
|
|
153
|
+
never transcribes them.
|
|
154
|
+
|
|
155
|
+
*<ruling-config: the tracked agent-definition the lead dispatches and the roster
|
|
156
|
+
it carries — its path, the subagent type the dispatch names, and where the
|
|
157
|
+
ruling classes are stated.>*
|
|
158
|
+
|
|
159
|
+
## Stamps are authoritative (the load-bearing invariant)
|
|
160
|
+
|
|
161
|
+
The lead writes **no** lifecycle state — no WORKFLOW-STATE stamps, no queue
|
|
162
|
+
writes, no evidence files. Every stamp originates in the stage session via
|
|
163
|
+
`enter-stage.sh` (lifecycle-kit/SPEC.md §The state machine). Lead-does-stamping
|
|
164
|
+
is ruled out, not merely omitted: it breaks this invariant, and under the
|
|
165
|
+
`stage` posture of `LIFECYCLE_KIT_SESSION_BOUNDARY` a lead stamp is exactly the
|
|
166
|
+
self-reported skip `check-stage-evidence` exists to catch. An answer that
|
|
167
|
+
amounts to a design ruling is landed **by the stage session**, in the governed
|
|
168
|
+
surface it belongs to (the amendment, the queue entry), *before* the session
|
|
169
|
+
acts on it — and a ruling whose acting session is **not imminent** is filed to
|
|
170
|
+
a durable governed surface (a queue entry, an amendment) in the moment it is
|
|
171
|
+
made, because "the stage session lands it" holds only when that session
|
|
172
|
+
exists. The message thread is transport, never a store — so a lead crash or
|
|
173
|
+
a lost transcript costs nothing the tracked surfaces do not already hold.
|
|
174
|
+
|
|
175
|
+
## Economics — batch, and compact where it pays
|
|
176
|
+
|
|
177
|
+
The prompt cache's short TTL means a sporadically questioned lead pays a full
|
|
178
|
+
context re-warm on each cold question: stage sessions outlive the TTL and
|
|
179
|
+
escalations arrive on their schedule, so the lead is nearly always cold. Two
|
|
180
|
+
consequences:
|
|
181
|
+
|
|
182
|
+
- **Batch dispatches by shared surface.** Both naive granularities are ruled
|
|
183
|
+
out: whole-queue-in-one rides past every split trigger the delegation protocol
|
|
184
|
+
names, and one-dispatch-per-task pays context setup times N while buying no
|
|
185
|
+
parallelism (committing agents serialize on the shared git index regardless).
|
|
186
|
+
Batch units that share a kit or SPEC surface into one dispatch, where derived
|
|
187
|
+
context is actually common; split where the model tier changes or a
|
|
188
|
+
delegation-kit split trigger fires — per-batch model tiering is the dominant
|
|
189
|
+
window lever, not token counts.
|
|
190
|
+
- **Tier each batch to its work class.** The lead reads the **work-class**
|
|
191
|
+
labels of the deltas in a batch — via the `[spec:]` amendments the batch's
|
|
192
|
+
entries point at, where `/spec` emits one `{mechanical | design-bearing}` tag
|
|
193
|
+
per delta — and tiers the batch by their aggregate. A batch whose deltas are
|
|
194
|
+
**all mechanical** (oracle-running: a fixed verification battery, a
|
|
195
|
+
rename/merge sweep, a mechanical pin — low generative judgment) is
|
|
196
|
+
**tier-downgradeable**: a cheaper model serves it, and the dispatcher pins the
|
|
197
|
+
cheaper tier with a `model` override on that batch's dispatch. A batch carrying
|
|
198
|
+
**any design-bearing** delta (generative or verificational judgment — bounding
|
|
199
|
+
a unit set, authoring an amendment, cross-spec audit, non-obvious
|
|
200
|
+
implementation) **stays on the judgment tier**: the judgment is exactly what
|
|
201
|
+
the tier buys, and downgrading it trades a large correctness risk for a small
|
|
202
|
+
window saving. Class → live model is mapped at dispatch time, where the roster
|
|
203
|
+
dependency already belongs (agent-execution.md, same bullet). There is no
|
|
204
|
+
standing per-stage classification to bind: the batch's labels decide at
|
|
205
|
+
dispatch time, so a stage-uniform class (validate, uniformly mechanical) is a
|
|
206
|
+
**collapsed default**, not a bound roster — while a stage whose batches diverge
|
|
207
|
+
(build — a one-line hermeticity pin beside a new KPI plugin) tiers each batch
|
|
208
|
+
from its deltas' labels, which a per-stage rule could not express. Re-judge
|
|
209
|
+
every assignment when the harness model roster churns.
|
|
210
|
+
- **An intra-stage batch split is the lead's to own.** When a stage's work
|
|
211
|
+
splits into batches, those batches are **N sibling stage sessions the lead
|
|
212
|
+
dispatches and validates** — each entering through `enter-stage.sh` as a
|
|
213
|
+
same-stage re-entry (lifecycle-kit/SPEC.md §The state machine: N sessions may
|
|
214
|
+
enter one stage, each leaving its own stamp and the cursor staying put). A stage session **never dispatches a sibling stage session**: a stage
|
|
215
|
+
that sub-dispatches its own batches nests a second supervisor at the lead's
|
|
216
|
+
tier, hidden from its budget and context accounting — the redundancy the split
|
|
217
|
+
posture exists to remove, and the clause is a dispatched stage's authority to
|
|
218
|
+
refuse. Read-only fan-outs inside a stage stay sanctioned (the delegation
|
|
219
|
+
nudge; CLAUDE.md §Agent execution). The batching *criteria* are the
|
|
220
|
+
shared-surface rule above, unchanged; this adds only the owner — the lead
|
|
221
|
+
serializes sibling batches that share a surface and may parallelize those that
|
|
222
|
+
do not, subject to the shared-index discipline.
|
|
223
|
+
- **Batch escalations.** The decision shape makes batching natural — a stage
|
|
224
|
+
session collects its open questions and sends them in one turn.
|
|
225
|
+
- **Split the lead where the tail dominates.** Most of a lead's turns are
|
|
226
|
+
tail — dispatch, result ingestion, budget verdicts — and under the unified
|
|
227
|
+
posture each one re-reads a cache carrying scope's whole working context at
|
|
228
|
+
judgment-tier prices. The split posture moves that recurring cost to the
|
|
229
|
+
routing tier and concentrates judgment-tier spend where it pays: scope
|
|
230
|
+
itself, plus one oracle turn per forwarded intent question — a cold context
|
|
231
|
+
re-warm at worst, bounded and per-question instead of per-turn. Assume the
|
|
232
|
+
oracle is cold: escalations arrive on the stages' schedule, so the TTL
|
|
233
|
+
arithmetic that leaves a lead nearly always cold (above) applies to the
|
|
234
|
+
oracle unchanged.
|
|
235
|
+
- **Compact at handoff (unified posture).** After the promotion commit lands the amendments and
|
|
236
|
+
queue entries, and before the first dispatch, `/compact` the lead's context
|
|
237
|
+
with an instruction that **keeps** per-amendment rationale, rejected
|
|
238
|
+
alternatives,
|
|
239
|
+
and the ruling-class roster, and **drops** tool output and file contents. The
|
|
240
|
+
tree is re-readable and everything ruled already lives in a governed surface,
|
|
241
|
+
so the lossy compact has a lead crash's bounded blast radius; the lead holds
|
|
242
|
+
pointers, not state. Verify the spend afterward with delegation-kit's
|
|
243
|
+
usage-verdict rather than assuming forgiveness.
|
|
244
|
+
- **Suggest a compact at the paying acceptance boundaries.** After a stage
|
|
245
|
+
session's work is accepted — its commits validated, its rulings landed in
|
|
246
|
+
governed surfaces — and before the next dispatch, the lead *suggests* a
|
|
247
|
+
compact to the operator. Compaction is operator-invoked; the lead can only
|
|
248
|
+
recommend (the honest limit), so the suggestion is one line in the lead's
|
|
249
|
+
acceptance message, never a new mechanism. Suggest where it pays, not
|
|
250
|
+
blanket: a compact pays when the remaining cold wakes times the compressible
|
|
251
|
+
residue exceed one context re-read — the early acceptance boundaries, with
|
|
252
|
+
the most residue accreted and the most wakes still ahead, pay, while the
|
|
253
|
+
late ones do not warrant the operator interruption. This is the rule, not a
|
|
254
|
+
stage roster; a consumer derives its own paying boundaries from its stage
|
|
255
|
+
set. The keep-instruction is the handoff bullet's, unchanged.
|
|
256
|
+
|
|
257
|
+
Cache-keepalive pinging is ruled out: at batched escalation rates the idle
|
|
258
|
+
re-warm pings cost more than the cold reads they avoid, burn the shared budget
|
|
259
|
+
window, and invite idle-turn drift.
|
|
260
|
+
|
|
261
|
+
## Mechanical floor — the escalation-shape guard
|
|
262
|
+
|
|
263
|
+
Prompts request; guards enforce. The four-header escalation shape has an
|
|
264
|
+
optional guard-kit mechanical floor — a SendMessage guard registered in the
|
|
265
|
+
stage session that advises when an outbound escalation to the lead lacks the
|
|
266
|
+
decision-shape headers (guard-kit/SPEC.md §wakeup-guard). The header grammar is
|
|
267
|
+
kit mechanism; the ruling-class roster stays consumer config (above).
|
|
268
|
+
|
|
269
|
+
*<escalation-guard: whether this consumer wires the optional guard-kit
|
|
270
|
+
SendMessage guard for its stage sessions, or leaves it inert — the mechanical
|
|
271
|
+
floor and where its opt-in lives.>*
|