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,139 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=kit:*.sh dir=one valve=none tier=precommit
|
|
3
|
+
# spec: delegation-kit/SPEC.md §Validate after every agent commit — a gate-weakening commit is blocked by shape (A gate edits stay meta-isolated; B a new path-exemption can't excuse a co-staged file)
|
|
4
|
+
#
|
|
5
|
+
# --fixture <dir> injects staged-files / added-exemptions lists; live mode reads git diff --cached.
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
9
|
+
# shellcheck source=../lib/delegation.sh
|
|
10
|
+
source "$KIT/lib/delegation.sh"
|
|
11
|
+
|
|
12
|
+
is_meta() {
|
|
13
|
+
local p="$1" pre
|
|
14
|
+
for pre in "${DELEGATION_KIT_META_PATHS[@]}"; do
|
|
15
|
+
[[ "$p" == "$pre"* ]] && return 0
|
|
16
|
+
done
|
|
17
|
+
[[ "$p" == *.md && "$p" != */* ]] && return 0 # root-level *.md is always meta
|
|
18
|
+
return 1
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
is_gate_file() {
|
|
22
|
+
local p="$1" g
|
|
23
|
+
for g in "${DELEGATION_KIT_GATE_FILES[@]}"; do
|
|
24
|
+
# shellcheck disable=SC2053 # $g is a glob pattern by design here
|
|
25
|
+
[[ "$p" == $g ]] && return 0
|
|
26
|
+
done
|
|
27
|
+
return 1
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
is_pathlike() {
|
|
31
|
+
case "$1" in
|
|
32
|
+
*/* | *'*'* | *'?'* | *'['*) return 0 ;;
|
|
33
|
+
*) return 1 ;;
|
|
34
|
+
esac
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
extract_exemptions() {
|
|
38
|
+
awk '
|
|
39
|
+
/^[[:space:]]*#[[:space:]]*exception-list:/ { tag=1; next }
|
|
40
|
+
tag==1 && /^[[:space:]]*[A-Za-z_][A-Za-z0-9_]*=\(/ {
|
|
41
|
+
tag=0; inarr=1
|
|
42
|
+
line=$0; sub(/#.*/,"",line)
|
|
43
|
+
ob=gsub(/\(/,"",line); cb=gsub(/\)/,"",line)
|
|
44
|
+
bal=ob-cb
|
|
45
|
+
if (bal<=0) inarr=0
|
|
46
|
+
next
|
|
47
|
+
}
|
|
48
|
+
inarr==1 {
|
|
49
|
+
line=$0; sub(/#.*/,"",line)
|
|
50
|
+
ob=gsub(/\(/,"",line); cb=gsub(/\)/,"",line)
|
|
51
|
+
v=line; sub(/^[[:space:]]+/,"",v); sub(/[[:space:]].*$/,"",v)
|
|
52
|
+
gsub(/\047/,"",v); gsub(/"/,"",v)
|
|
53
|
+
if (v != "" && v !~ /^[)(]/) print v
|
|
54
|
+
bal += ob - cb
|
|
55
|
+
if (bal<=0) inarr=0
|
|
56
|
+
}
|
|
57
|
+
'
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare -a STAGED=() ADDED=()
|
|
61
|
+
|
|
62
|
+
collect_live() {
|
|
63
|
+
mapfile -t STAGED < <(git diff --cached --name-only 2>/dev/null)
|
|
64
|
+
local f new old v
|
|
65
|
+
declare -A added_set=()
|
|
66
|
+
for f in "${STAGED[@]}"; do
|
|
67
|
+
is_gate_file "$f" || continue
|
|
68
|
+
new="$(git show ":$f" 2>/dev/null)" || new=""
|
|
69
|
+
old="$(git show "HEAD:$f" 2>/dev/null)" || old=""
|
|
70
|
+
declare -A old_set=()
|
|
71
|
+
while IFS= read -r v; do [[ -n "$v" ]] && old_set["$v"]=1; done \
|
|
72
|
+
< <(printf '%s\n' "$old" | extract_exemptions)
|
|
73
|
+
while IFS= read -r v; do
|
|
74
|
+
[[ -n "$v" && -z "${old_set[$v]:-}" ]] && added_set["$v"]=1
|
|
75
|
+
done < <(printf '%s\n' "$new" | extract_exemptions)
|
|
76
|
+
unset old_set
|
|
77
|
+
done
|
|
78
|
+
ADDED=("${!added_set[@]}")
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
collect_fixture() {
|
|
82
|
+
local dir="$1"
|
|
83
|
+
[[ -d "$dir" ]] || { echo "check-gate-tamper: fixture dir not found: $dir" >&2; exit 2; }
|
|
84
|
+
[[ -f "$dir/staged-files" ]] &&
|
|
85
|
+
mapfile -t STAGED < <(grep -vE '^[[:space:]]*(#|$)' "$dir/staged-files")
|
|
86
|
+
[[ -f "$dir/added-exemptions" ]] &&
|
|
87
|
+
mapfile -t ADDED < <(grep -vE '^[[:space:]]*(#|$)' "$dir/added-exemptions")
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
MODE=live
|
|
91
|
+
FIXTURE_DIR=""
|
|
92
|
+
while [[ $# -gt 0 ]]; do
|
|
93
|
+
case "$1" in
|
|
94
|
+
--fixture) MODE=fixture; FIXTURE_DIR="${2:-}"; shift 2 ;;
|
|
95
|
+
*) echo "check-gate-tamper: unknown argument: $1" >&2; exit 2 ;;
|
|
96
|
+
esac
|
|
97
|
+
done
|
|
98
|
+
|
|
99
|
+
if [[ "$MODE" == fixture ]]; then
|
|
100
|
+
collect_fixture "$FIXTURE_DIR"
|
|
101
|
+
else
|
|
102
|
+
collect_live
|
|
103
|
+
fi
|
|
104
|
+
|
|
105
|
+
viol_a=()
|
|
106
|
+
viol_b=()
|
|
107
|
+
|
|
108
|
+
# assertion A: gate-edit-isolation
|
|
109
|
+
gate_touched=0
|
|
110
|
+
for f in "${STAGED[@]}"; do is_gate_file "$f" && { gate_touched=1; break; }; done
|
|
111
|
+
if [[ "$gate_touched" -eq 1 ]]; then
|
|
112
|
+
for f in "${STAGED[@]}"; do is_meta "$f" || viol_a+=("$f"); done
|
|
113
|
+
fi
|
|
114
|
+
|
|
115
|
+
# assertion B: no-self-serving-exemption
|
|
116
|
+
for e in "${ADDED[@]}"; do
|
|
117
|
+
is_pathlike "$e" || continue
|
|
118
|
+
for f in "${STAGED[@]}"; do
|
|
119
|
+
# shellcheck disable=SC2053 # $e is a glob pattern by design here
|
|
120
|
+
[[ "$f" == $e ]] && viol_b+=("$e -> $f")
|
|
121
|
+
done
|
|
122
|
+
done
|
|
123
|
+
|
|
124
|
+
if [[ ${#viol_a[@]} -gt 0 || ${#viol_b[@]} -gt 0 ]]; then
|
|
125
|
+
if [[ ${#viol_a[@]} -gt 0 ]]; then
|
|
126
|
+
echo "check-gate-tamper: gate edit not isolated — a commit touching a gate file (${DELEGATION_KIT_GATE_FILES[*]}) may touch only meta-layer paths; these co-staged paths are not:"
|
|
127
|
+
printf ' %s\n' "${viol_a[@]}"
|
|
128
|
+
echo " help: split the gate change into its own commit (meta-layer paths only: ${DELEGATION_KIT_META_PATHS[*]} and root *.md); land the product change in a separate commit"
|
|
129
|
+
fi
|
|
130
|
+
if [[ ${#viol_b[@]} -gt 0 ]]; then
|
|
131
|
+
echo "check-gate-tamper: self-serving exemption — a newly added path/glob exemption matches a file staged in the same commit:"
|
|
132
|
+
printf ' %s\n' "${viol_b[@]}"
|
|
133
|
+
echo " help: an exemption must not excuse the very change it lands with; add the exemption in a separate commit, or drop the matched file from this commit"
|
|
134
|
+
fi
|
|
135
|
+
exit 1
|
|
136
|
+
fi
|
|
137
|
+
|
|
138
|
+
echo "GATE-TAMPER: clean (${#STAGED[@]} staged path(s); gate edits meta-isolated, no self-serving path-exemption)"
|
|
139
|
+
exit 0
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=delegation-kit/SPEC.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
|
|
3
|
+
# spec: delegation-kit/SPEC.md §One template, a resident pointer — every `the template's **<name>** rule` citation in SPEC §The delegation model resolves to a template bullet's bold lead-in (forward direction only)
|
|
4
|
+
#
|
|
5
|
+
# usage: check-rule-citation.sh [spec-file [template-file]]
|
|
6
|
+
# paths resolve relative to cwd (= repo root in a battery run); fixtures pass
|
|
7
|
+
# their own spec + template as the two positional arguments.
|
|
8
|
+
set -uo pipefail
|
|
9
|
+
|
|
10
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
11
|
+
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
12
|
+
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
13
|
+
source "$SDK/lib/gate.sh"
|
|
14
|
+
|
|
15
|
+
SPEC_FILE="${1:-delegation-kit/SPEC.md}"
|
|
16
|
+
TEMPLATE_FILE="${2:-delegation-kit/templates/agent-execution.md}"
|
|
17
|
+
for f in "$SPEC_FILE" "$TEMPLATE_FILE"; do
|
|
18
|
+
[[ -f "$f" ]] || { echo "check-rule-citation: not found: $f" >&2; exit 2; } # exit 2: fail-closed
|
|
19
|
+
done
|
|
20
|
+
|
|
21
|
+
tmpl_out="$(awk '
|
|
22
|
+
/^- \*\*/ {
|
|
23
|
+
line=$0; sub(/^- /,"",line)
|
|
24
|
+
rest=substr(line,3)
|
|
25
|
+
p=index(rest,"**")
|
|
26
|
+
if (p>0) {
|
|
27
|
+
name=substr(rest,1,p-1)
|
|
28
|
+
sub(/\.$/,"",name)
|
|
29
|
+
gsub(/`[^`]*`/,"",name)
|
|
30
|
+
print name
|
|
31
|
+
}
|
|
32
|
+
}' "$TEMPLATE_FILE")"; st=$?
|
|
33
|
+
fail_closed "$st" check-rule-citation awk
|
|
34
|
+
|
|
35
|
+
declare -A LEADIN=()
|
|
36
|
+
while IFS= read -r n; do [[ -n "$n" ]] && LEADIN["$n"]=1; done <<<"$tmpl_out"
|
|
37
|
+
|
|
38
|
+
cite_out="$(awk '
|
|
39
|
+
/^## The delegation model[[:space:]]*$/ { insec=1; next }
|
|
40
|
+
/^## / { insec=0 }
|
|
41
|
+
insec { sec = sec " " $0 }
|
|
42
|
+
END {
|
|
43
|
+
gsub(/`[^`]*`/, "", sec)
|
|
44
|
+
n=length(sec); i=1
|
|
45
|
+
while (i<=n) {
|
|
46
|
+
op=index(substr(sec,i),"**"); if (op==0) break
|
|
47
|
+
op=i+op-1; after=op+2
|
|
48
|
+
cl=index(substr(sec,after),"**"); if (cl==0) break
|
|
49
|
+
cl=after+cl-1
|
|
50
|
+
name=substr(sec,after,cl-after)
|
|
51
|
+
tail=substr(sec,cl+2)
|
|
52
|
+
if (tail ~ /^[[:space:]]+(rule|bullet)([^[:alnum:]]|$)/) {
|
|
53
|
+
c=name; sub(/\.$/,"",c); print c
|
|
54
|
+
}
|
|
55
|
+
i=cl+2
|
|
56
|
+
}
|
|
57
|
+
}' "$SPEC_FILE")"; st=$?
|
|
58
|
+
fail_closed "$st" check-rule-citation awk
|
|
59
|
+
|
|
60
|
+
unresolved=()
|
|
61
|
+
cites=0
|
|
62
|
+
while IFS= read -r c; do
|
|
63
|
+
[[ -n "$c" ]] || continue
|
|
64
|
+
cites=$((cites + 1))
|
|
65
|
+
[[ -n "${LEADIN[$c]:-}" ]] || unresolved+=("$c")
|
|
66
|
+
done <<<"$cite_out"
|
|
67
|
+
|
|
68
|
+
if [[ ${#unresolved[@]} -gt 0 ]]; then
|
|
69
|
+
echo "check-rule-citation: SPEC §The delegation model cites a rule that does not resolve to a template lead-in in $TEMPLATE_FILE:"
|
|
70
|
+
printf ' **%s**\n' "${unresolved[@]}"
|
|
71
|
+
echo " help: a citation names a template bullet's bold lead-in verbatim (minus its trailing period); fix the name or the renamed lead-in — delegation-kit/SPEC.md §One template, a resident pointer"
|
|
72
|
+
exit 1
|
|
73
|
+
fi
|
|
74
|
+
|
|
75
|
+
echo "RULE-CITATION: clean ($cites citation(s) in SPEC §The delegation model each resolve to a template lead-in; ${#LEADIN[@]} lead-in(s) available)"
|
|
76
|
+
exit 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--fixture .
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gate edit not isolated
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--fixture .
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
GATE-TAMPER: clean
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
spec.md tmpl.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
does not resolve to a template lead-in
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# fixture SPEC
|
|
2
|
+
|
|
3
|
+
## The delegation model
|
|
4
|
+
|
|
5
|
+
The template's **Supervisor owns rulings; agents surface, never guess** rule
|
|
6
|
+
resolves, but the template's **Gate-driven worklist where one exists** rule
|
|
7
|
+
names a lead-in the template does not carry — a dangling citation.
|
|
8
|
+
|
|
9
|
+
## Next section
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
spec.md tmpl.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
RULE-CITATION: clean
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# fixture SPEC
|
|
2
|
+
|
|
3
|
+
## The delegation model
|
|
4
|
+
|
|
5
|
+
Intro paragraph with a non-citation **bold** span that is not followed by the
|
|
6
|
+
keyword.
|
|
7
|
+
|
|
8
|
+
The template's **Supervisor owns rulings; agents surface, never guess** rule is
|
|
9
|
+
cited by its verbatim lead-in. The template's **Serialize on shared files;
|
|
10
|
+
≤`FIXTURE_FAN_WIDTH`-wide otherwise** rule cites a backtick-bearing name, and
|
|
11
|
+
the template's **Budget-check before *each* dispatch in a fan-out** rule cites
|
|
12
|
+
one with inner emphasis.
|
|
13
|
+
|
|
14
|
+
The grammar itself, `the template's **<name>** rule`, is fenced and must not
|
|
15
|
+
count as a citation.
|
|
16
|
+
|
|
17
|
+
## Next section
|
|
18
|
+
|
|
19
|
+
Out of scope: the template's **Supervisor owns rulings; agents surface, never
|
|
20
|
+
guess** rule cited here is outside the scanned section.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
CONSUMER BINDING — a minimal template fixture for check-rule-citation.
|
|
2
|
+
|
|
3
|
+
- **Supervisor owns rulings; agents surface, never guess.** body prose.
|
|
4
|
+
- **Serialize on shared files; ≤`FIXTURE_FAN_WIDTH`-wide otherwise.** body prose.
|
|
5
|
+
- **Budget-check before *each* dispatch in a fan-out** body prose.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: delegation-kit/SPEC.md §Layout and configuration — sourced config loader for usage-verdict + check-gate-tamper, values only
|
|
3
|
+
_dk_cfg="${DELEGATION_KIT_CONFIG_FILE:-}"
|
|
4
|
+
if [[ -n "$_dk_cfg" ]]; then
|
|
5
|
+
[[ -f "$_dk_cfg" ]] || {
|
|
6
|
+
echo "delegation-kit: DELEGATION_KIT_CONFIG_FILE not found: $_dk_cfg" >&2
|
|
7
|
+
exit 2
|
|
8
|
+
}
|
|
9
|
+
# shellcheck disable=SC1090 # consumer-supplied config, path is config
|
|
10
|
+
source "$_dk_cfg"
|
|
11
|
+
else
|
|
12
|
+
_dk_cfg="${GATE_SDK_GATES_DIR:-scripts}/delegation-config.sh"
|
|
13
|
+
if [[ -f "$_dk_cfg" ]]; then
|
|
14
|
+
# shellcheck disable=SC1090 # consumer-supplied config, path is config
|
|
15
|
+
source "$_dk_cfg"
|
|
16
|
+
fi
|
|
17
|
+
fi
|
|
18
|
+
unset _dk_cfg
|
|
19
|
+
|
|
20
|
+
[[ -v DELEGATION_KIT_USAGE_FILE ]] || DELEGATION_KIT_USAGE_FILE="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/usage.txt"
|
|
21
|
+
[[ -v DELEGATION_KIT_CRED_FILE ]] || DELEGATION_KIT_CRED_FILE="${DELEGATION_KIT_USAGE_FILE%/*}/.credentials.json"
|
|
22
|
+
[[ -v DELEGATION_KIT_PAUSE_PCT ]] || DELEGATION_KIT_PAUSE_PCT=80
|
|
23
|
+
[[ -v DELEGATION_KIT_PAUSE_PCT_7D ]] || DELEGATION_KIT_PAUSE_PCT_7D=95
|
|
24
|
+
[[ -v DELEGATION_KIT_STALE_AGE ]] || DELEGATION_KIT_STALE_AGE=600
|
|
25
|
+
[[ -v DELEGATION_KIT_LOGIN_WINDOW ]] || DELEGATION_KIT_LOGIN_WINDOW=600
|
|
26
|
+
[[ -v DELEGATION_KIT_REFRESH_CMD ]] || DELEGATION_KIT_REFRESH_CMD=""
|
|
27
|
+
[[ -v DELEGATION_KIT_REFRESH_MIN_AGE ]] || DELEGATION_KIT_REFRESH_MIN_AGE=60
|
|
28
|
+
[[ -v DELEGATION_KIT_USAGE_HISTORY ]] || DELEGATION_KIT_USAGE_HISTORY=""
|
|
29
|
+
[[ -v DELEGATION_KIT_FAN_WIDTH ]] || DELEGATION_KIT_FAN_WIDTH=2
|
|
30
|
+
|
|
31
|
+
declare -p DELEGATION_KIT_GATE_FILES &>/dev/null || DELEGATION_KIT_GATE_FILES=(
|
|
32
|
+
"${GATE_SDK_GATES_DIR:-scripts}/check-*.sh"
|
|
33
|
+
"${GATE_SDK_GATES_DIR:-scripts}/lib/gate.sh"
|
|
34
|
+
"${GATE_SDK_GATES_DIR:-scripts}/run-gate-tests.sh"
|
|
35
|
+
)
|
|
36
|
+
declare -p DELEGATION_KIT_META_PATHS &>/dev/null || DELEGATION_KIT_META_PATHS=(
|
|
37
|
+
"${GATE_SDK_GATES_DIR:-scripts}/"
|
|
38
|
+
"${GATE_SDK_WORKFLOW_DIR:-.workflow}/"
|
|
39
|
+
".claude/"
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
# spec: delegation-kit/SPEC.md §Layout and configuration — a vendored kit's edits are meta-layer by definition; when gate.sh resolves, union every kit root into META_PATHS (additive, never a filter, so a declared prefix cannot be lost)
|
|
43
|
+
_dk_gate_lib="${GATE_SDK_LIB:-${BASH_SOURCE[0]%/*}/../../gate-sdk/lib/gate.sh}"
|
|
44
|
+
if [[ -f "$_dk_gate_lib" ]]; then
|
|
45
|
+
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
46
|
+
source "$_dk_gate_lib"
|
|
47
|
+
if declare -F gate_kit_roots_rel >/dev/null; then
|
|
48
|
+
while IFS= read -r _dk_root; do
|
|
49
|
+
_dk_root="${_dk_root%/}/"
|
|
50
|
+
_dk_seen=0
|
|
51
|
+
for _dk_p in "${DELEGATION_KIT_META_PATHS[@]}"; do
|
|
52
|
+
[[ "$_dk_p" == "$_dk_root" ]] && { _dk_seen=1; break; }
|
|
53
|
+
done
|
|
54
|
+
[[ "$_dk_seen" -eq 0 ]] && DELEGATION_KIT_META_PATHS+=("$_dk_root")
|
|
55
|
+
done < <(gate_kit_roots_rel)
|
|
56
|
+
fi
|
|
57
|
+
fi
|
|
58
|
+
unset _dk_gate_lib _dk_root _dk_seen _dk_p
|
|
59
|
+
|
|
60
|
+
_dk_errs=()
|
|
61
|
+
[[ -n "$DELEGATION_KIT_USAGE_FILE" ]] || _dk_errs+=("DELEGATION_KIT_USAGE_FILE is empty")
|
|
62
|
+
[[ "$DELEGATION_KIT_PAUSE_PCT" =~ ^[0-9]+(\.[0-9]+)?$ ]] \
|
|
63
|
+
|| _dk_errs+=("DELEGATION_KIT_PAUSE_PCT must be numeric (got '$DELEGATION_KIT_PAUSE_PCT')")
|
|
64
|
+
[[ "$DELEGATION_KIT_PAUSE_PCT_7D" =~ ^[0-9]+(\.[0-9]+)?$ ]] \
|
|
65
|
+
|| _dk_errs+=("DELEGATION_KIT_PAUSE_PCT_7D must be numeric (got '$DELEGATION_KIT_PAUSE_PCT_7D')")
|
|
66
|
+
[[ "$DELEGATION_KIT_STALE_AGE" =~ ^[0-9]+$ ]] \
|
|
67
|
+
|| _dk_errs+=("DELEGATION_KIT_STALE_AGE must be a non-negative integer (got '$DELEGATION_KIT_STALE_AGE')")
|
|
68
|
+
[[ "$DELEGATION_KIT_LOGIN_WINDOW" =~ ^[0-9]+$ ]] \
|
|
69
|
+
|| _dk_errs+=("DELEGATION_KIT_LOGIN_WINDOW must be a non-negative integer (got '$DELEGATION_KIT_LOGIN_WINDOW')")
|
|
70
|
+
[[ "$DELEGATION_KIT_REFRESH_MIN_AGE" =~ ^[0-9]+$ ]] \
|
|
71
|
+
|| _dk_errs+=("DELEGATION_KIT_REFRESH_MIN_AGE must be a non-negative integer (got '$DELEGATION_KIT_REFRESH_MIN_AGE')")
|
|
72
|
+
[[ "$DELEGATION_KIT_FAN_WIDTH" =~ ^[0-9]+$ && "$DELEGATION_KIT_FAN_WIDTH" -gt 0 ]] \
|
|
73
|
+
|| _dk_errs+=("DELEGATION_KIT_FAN_WIDTH must be a positive integer (got '$DELEGATION_KIT_FAN_WIDTH')")
|
|
74
|
+
[[ ${#DELEGATION_KIT_GATE_FILES[@]} -gt 0 ]] || _dk_errs+=("DELEGATION_KIT_GATE_FILES is empty")
|
|
75
|
+
[[ ${#DELEGATION_KIT_META_PATHS[@]} -gt 0 ]] || _dk_errs+=("DELEGATION_KIT_META_PATHS is empty")
|
|
76
|
+
if [[ ${#_dk_errs[@]} -gt 0 ]]; then
|
|
77
|
+
printf 'delegation-kit: malformed delegation config — the tools cannot run:\n' >&2
|
|
78
|
+
printf ' %s\n' "${_dk_errs[@]}" >&2
|
|
79
|
+
exit 2
|
|
80
|
+
fi
|
|
81
|
+
unset _dk_errs
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: delegation-kit/SPEC.md §Testing — consumer-smoke install (README.md §Install)
|
|
3
|
+
# cwd = scratch-consumer root; SMOKE_KIT_ROOT = the vendored delegation-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
|
+
# spec: delegation-kit/SPEC.md §Testing — one hermetic env prelude for the whole file: strip the whole DELEGATION_KIT_* namespace, then pin the knobs with no per-call home, so no assertion below inherits the host's config or writes a sample through it
|
|
9
|
+
while IFS= read -r knob; do unset "$knob"; done < <(env | grep -o '^DELEGATION_KIT_[A-Za-z0-9_]*' || true)
|
|
10
|
+
export DELEGATION_KIT_USAGE_HISTORY=""
|
|
11
|
+
export DELEGATION_KIT_PAUSE_PCT=80
|
|
12
|
+
export DELEGATION_KIT_PAUSE_PCT_7D=95
|
|
13
|
+
|
|
14
|
+
cat >> scripts/gates.list <<'EOF'
|
|
15
|
+
# delegation-kit
|
|
16
|
+
check-gate-tamper
|
|
17
|
+
EOF
|
|
18
|
+
|
|
19
|
+
snap="$(mktemp)"
|
|
20
|
+
now="$(date +%s)"
|
|
21
|
+
{
|
|
22
|
+
printf 'five_hour_used_pct=95\n'
|
|
23
|
+
printf 'five_hour_resets_at=%s\n' "$(( now + 3600 ))"
|
|
24
|
+
printf 'updated_at=%s\n' "$now"
|
|
25
|
+
} > "$snap"
|
|
26
|
+
# spec: delegation-kit/SPEC.md §Testing — the cred pin stays at the invocation (gate-sdk/SPEC.md §check-test-hermetic wants line-local evidence): an absent path zeroes login_at so no ambient auth event reroutes this verdict
|
|
27
|
+
DELEGATION_KIT_CRED_FILE="$snap.nocred" bash "$SMOKE_KIT_ROOT/bin/usage-verdict.sh" "$snap" >/dev/null 2>&1 && vrc=0 || vrc=$?
|
|
28
|
+
if [[ "$vrc" -ne 1 ]]; then
|
|
29
|
+
echo "delegation-kit/smoke: usage-verdict on a live 95% reading: want exit 1 (PAUSE), got $vrc" >&2
|
|
30
|
+
rm -f "$snap"; exit 1
|
|
31
|
+
fi
|
|
32
|
+
rm -f "$snap"
|
|
33
|
+
|
|
34
|
+
# spec: delegation-kit/SPEC.md §The usage.txt contract — the poll producer through its file:// stub seam: happy path writes a contract-valid snapshot, fetch failure leaves a pre-seeded one byte-identical
|
|
35
|
+
pp="$PWD/.tmp/poller-smoke"
|
|
36
|
+
rm -rf "$pp"; mkdir -p "$pp"
|
|
37
|
+
printf '{"claudeAiOauth":{"accessToken":"smoke-stub-token","subscriptionType":"stub"}}\n' > "$pp/creds.json"
|
|
38
|
+
now="$(date +%s)"
|
|
39
|
+
printf '{"five_hour":{"utilization":12.5,"resets_at":%s},"seven_day":{"utilization":7,"resets_at":%s}}\n' \
|
|
40
|
+
"$(( now + 3600 ))" "$(( now + 86400 ))" > "$pp/stub.json"
|
|
41
|
+
poller() {
|
|
42
|
+
DELEGATION_KIT_USAGE_FILE="$pp/usage.txt" \
|
|
43
|
+
DELEGATION_KIT_CRED_FILE="$pp/creds.json" \
|
|
44
|
+
DELEGATION_KIT_ACCOUNT_CONFIG="$pp/absent.json" \
|
|
45
|
+
DELEGATION_KIT_USAGE_ENDPOINT="$1" \
|
|
46
|
+
bash "$SMOKE_KIT_ROOT/templates/usage-poller.sh"
|
|
47
|
+
}
|
|
48
|
+
poller "file://$pp/stub.json" || { echo "delegation-kit/smoke: poller happy path failed" >&2; exit 1; }
|
|
49
|
+
# spec: delegation-kit/SPEC.md §Testing — same line-local cred pin as the 95% check above
|
|
50
|
+
DELEGATION_KIT_CRED_FILE="$pp/absent.json" bash "$SMOKE_KIT_ROOT/bin/usage-verdict.sh" "$pp/usage.txt" >/dev/null || {
|
|
51
|
+
echo "delegation-kit/smoke: poller snapshot did not verdict OK" >&2; exit 1; }
|
|
52
|
+
cp "$pp/usage.txt" "$pp/usage.before"
|
|
53
|
+
if poller "file://$pp/nonexistent.json" 2>/dev/null; then
|
|
54
|
+
echo "delegation-kit/smoke: poller fetch failure exited zero" >&2; exit 1
|
|
55
|
+
fi
|
|
56
|
+
cmp -s "$pp/usage.before" "$pp/usage.txt" || {
|
|
57
|
+
echo "delegation-kit/smoke: poller fetch failure touched the snapshot" >&2; exit 1; }
|
|
58
|
+
rm -rf "$pp"
|
|
59
|
+
|
|
60
|
+
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
61
|
+
bash "$SDK/checks/check-graph.sh" --emit > .workflow/CHECK-GRAPH.html
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: delegation-kit/SPEC.md §Testing — consumer-smoke violation: co-staged gate edit + product file reddens check-gate-tamper (assertion A)
|
|
3
|
+
set -euo pipefail
|
|
4
|
+
: "${SMOKE_KIT_ROOT:?run via run-consumer-smoke.sh}"
|
|
5
|
+
|
|
6
|
+
echo "check-gate-tamper"
|
|
7
|
+
|
|
8
|
+
cat > scripts/check-smoke-gate.sh <<'EOF'
|
|
9
|
+
#!/usr/bin/env bash
|
|
10
|
+
set -uo pipefail
|
|
11
|
+
echo "SMOKE-GATE: clean"
|
|
12
|
+
exit 0
|
|
13
|
+
EOF
|
|
14
|
+
mkdir -p product
|
|
15
|
+
printf 'product code\n' > product/app.txt
|
|
16
|
+
git add scripts/check-smoke-gate.sh product/app.txt
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: delegation-kit/SPEC.md §The delegation model — consumer-copy PreToolUse(Agent) budget guard: block on PAUSE, advise otherwise; register under matcher `Agent` (§Layout and configuration)
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
|
|
5
|
+
# shellcheck disable=SC2034 # consumed by the sourced lib/guard.sh (guard_block/guard_advise)
|
|
6
|
+
GUARD_NAME="agent-budget-guard"
|
|
7
|
+
GUARD_KIT_LIB="${GUARD_KIT_LIB:-guard-kit/lib/guard.sh}"
|
|
8
|
+
VERDICT_BIN="${DELEGATION_KIT_VERDICT_BIN:-delegation-kit/bin/usage-verdict.sh}"
|
|
9
|
+
[[ -f "$GUARD_KIT_LIB" ]] || exit 0
|
|
10
|
+
# shellcheck source=/dev/null # vendored lib path is resolved at runtime; fail-open above if absent, but the lib's own exit 2 (set-but-missing config) must stay loud
|
|
11
|
+
source "$GUARD_KIT_LIB"
|
|
12
|
+
|
|
13
|
+
verdict="$(bash "$VERDICT_BIN" 2>&1)"; rc=$?
|
|
14
|
+
|
|
15
|
+
case "$rc" in
|
|
16
|
+
1) guard_block "$verdict"$'\n'"corrective: the verdict names the axis that fired — a 5h PAUSE clears when that window resets (hours); a 7-day PAUSE costs days, so pause delegation and let the supervisor carry the week. The full delegation protocol is /agent-execution. To override deliberately, raise the matching knob (DELEGATION_KIT_PAUSE_PCT for 5h, DELEGATION_KIT_PAUSE_PCT_7D for the weekly axis) via the .claude/settings.local.json env block, which the hook re-reads per fire (delegation-kit/SPEC.md §The delegation model)." ;;
|
|
17
|
+
*) guard_advise "budget verdict (agent-budget-guard): $verdict" ;;
|
|
18
|
+
esac
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
CONSUMER BINDING — create `.claude/commands/agent-execution.md` as a binding
|
|
2
|
+
shim naming this template (a header `Execute the template at <path>, applying
|
|
3
|
+
the bindings below.` then a `## Bindings` section) and bind its two slots — the
|
|
4
|
+
shared-file roster and the validate battery. The full delegated-`Agent`
|
|
5
|
+
execution protocol (any stage, any purpose — an audit, a build sweep, a one-off
|
|
6
|
+
investigation). A resident pointer in CLAUDE.md §Agent execution keeps the
|
|
7
|
+
protocol reachable from a delegating session; this skill is the complete
|
|
8
|
+
procedure.
|
|
9
|
+
|
|
10
|
+
For a **deletion, rename, or heavy cross-spec audit** dispatch, also load the
|
|
11
|
+
mechanical pre-flight in [dispatch-checklists.md](dispatch-checklists.md) — a
|
|
12
|
+
reach-through, not a change to this protocol; every rule below still applies.
|
|
13
|
+
|
|
14
|
+
- **Supervisor owns rulings; agents surface, never guess.** SECURITY and design
|
|
15
|
+
rulings (e.g. a privileged caller set, a naming collision) are decided by the
|
|
16
|
+
supervisor and handed down; an agent that hits anything its brief doesn't cover
|
|
17
|
+
stops and reports rather than choosing.
|
|
18
|
+
- **Background + notification, never poll.** Always `run_in_background`; wait for
|
|
19
|
+
the completion notification; do not read the output file. Backgrounding keeps
|
|
20
|
+
the main loop free to redirect.
|
|
21
|
+
- **Serialize on shared files; ≤`DELEGATION_KIT_FAN_WIDTH`-wide otherwise.**
|
|
22
|
+
Agents that edit a shared file (see the roster below) run one at a time —
|
|
23
|
+
dispatch, await notification, validate, dispatch the next. Independent
|
|
24
|
+
read-only units may run ≤`DELEGATION_KIT_FAN_WIDTH`-wide. **The git index and
|
|
25
|
+
HEAD are shared files for every agent that commits**, independent of
|
|
26
|
+
source-file disjointness: two committing agents racing `git add`/`git commit`
|
|
27
|
+
interleave and one sweeps the other's staged files under the wrong message. So
|
|
28
|
+
agents that each commit must be **serialized** *or* run under
|
|
29
|
+
`isolation: worktree` (own index); reserve the unlocked
|
|
30
|
+
≤`DELEGATION_KIT_FAN_WIDTH`-wide bound for **read-only** fan-outs. "No lockfile
|
|
31
|
+
churn" is a false safety signal — the index is shared regardless.
|
|
32
|
+
- **One commit per unit, sized to finish within budget.** Each unit gets its own
|
|
33
|
+
commit (+ a `[blocked-by: prior]` tag where ordered). A unit that investigates
|
|
34
|
+
long before its first commit is the only thing an interrupt can destroy —
|
|
35
|
+
split it. Trigger to split: >4 components, OR mixes mechanical + architectural
|
|
36
|
+
work, OR >300 tool calls estimated.
|
|
37
|
+
- **Gate-driven worklist where one exists.** Drive the sweep from the gate's
|
|
38
|
+
output, so an interrupt loses only the in-flight uncommitted unit and a fresh
|
|
39
|
+
session re-runs the gate to resume.
|
|
40
|
+
- **Resume journal — agent writes, supervisor deletes.** The agent `Write`s a
|
|
41
|
+
running progress journal (findings triaged, edits applied, what remains) to a
|
|
42
|
+
repo-local gitignored scratch dir in the main checkout — `.tmp/` here — never a
|
|
43
|
+
temporary worktree (deleted with the worktree) nor a system temp dir (a restart
|
|
44
|
+
wipes it); name the path **absolute into the main checkout** in the dispatch
|
|
45
|
+
prompt so a worktree-isolated agent writes to the surviving tree, not its doomed
|
|
46
|
+
one. Repo-dir-local scratch is reboot-survivable, cheap to clean, and predictable
|
|
47
|
+
across coding agents. The agent updates it as it goes; on success it appends a
|
|
48
|
+
`DONE` marker. Each finding is
|
|
49
|
+
written into the journal *inline as it is confirmed* — never "see final
|
|
50
|
+
output": the agent's return message dies with the session, so a pointer-only
|
|
51
|
+
journal makes `DONE` lie about recoverability. **Agents have no `rm`, so the
|
|
52
|
+
supervisor deletes the journal at the post-commit validation checkpoint.** A
|
|
53
|
+
journal *without* a `DONE` marker signals interruption only in a **cold read**
|
|
54
|
+
— the supervisor found a journal but never consumed the agent's return (its
|
|
55
|
+
session died before returning); there, no `DONE` = interrupted, resume from
|
|
56
|
+
it. On the ordinary path the supervisor consumed the return and ran its
|
|
57
|
+
post-commit verification, which *is* the completion attest, so the missing
|
|
58
|
+
marker is redundant, not a signal of interruption. **Caveat — a background agent's sandbox may block
|
|
59
|
+
the journal write.** `run_in_background` agents have been observed unable to
|
|
60
|
+
`Write` to the granted path and silently falling back to returning findings in
|
|
61
|
+
their final message — which makes the journal mechanic non-functional exactly
|
|
62
|
+
when it matters (a long, interruptible run). So: for a **read-only fan-out**
|
|
63
|
+
(audit, survey), the return value *is* the contract — don't rely on a journal.
|
|
64
|
+
Reserve the journal / worktree isolation for agents that **mutate files**, and
|
|
65
|
+
for those grant the journal path explicitly before dispatch rather than
|
|
66
|
+
assuming the write succeeds.
|
|
67
|
+
- **Validate after every agent commit** — a sub-agent's "passed" claim is not
|
|
68
|
+
trustworthy. Re-run the relevant gates (the sweep's own gate) and the consumer
|
|
69
|
+
validate battery below. **Diff every gate change in an agent commit before
|
|
70
|
+
accepting** — a gate modification inside a feature commit is a supervisor-owned
|
|
71
|
+
ruling; an agent blocked by a gate will weaken it (a false exemption) to make
|
|
72
|
+
its commit pass instead of fixing the code. "The gate is in my way" almost
|
|
73
|
+
always means the code doesn't fit the convention — fix the code.
|
|
74
|
+
`check-gate-tamper` is the mechanical floor under this bullet — it blocks the
|
|
75
|
+
two attested shapes (a gate edit co-staged with product code; a new path/glob
|
|
76
|
+
exemption co-staged with the file it excuses) — but it does **not** catch
|
|
77
|
+
semantic weakening inside a legitimate scripts-only commit, so the by-eye diff
|
|
78
|
+
review remains your duty (delegation-kit/SPEC.md §Validate after every agent
|
|
79
|
+
commit — the honest limit).
|
|
80
|
+
- **Budget-check before *each* dispatch in a fan-out**, not once at the start.
|
|
81
|
+
`bash delegation-kit/bin/usage-verdict.sh` (verdict exit 0/1/2 from `usage.txt` —
|
|
82
|
+
it folds in the reading-age and window-validity checks so a dead-window pct
|
|
83
|
+
can't read stale-high; a PAUSE names its axis — a 5h wall clears in hours, a
|
|
84
|
+
7-day wall in days). If the verdict is PAUSE and the work is large, pause for
|
|
85
|
+
reset. Width is the kill axis: the 5h wall fires mid-flight, and the agents
|
|
86
|
+
that bank are the ones that *finished* — ≤`DELEGATION_KIT_FAN_WIDTH`-wide
|
|
87
|
+
bounds the loss to the in-flight wave.
|
|
88
|
+
**Project the next wave's burn from the last wave's, not just the current
|
|
89
|
+
pct** — a read-heavy `DELEGATION_KIT_FAN_WIDTH`-wide sweep is far more
|
|
90
|
+
window-expensive than its
|
|
91
|
+
subagent-token total suggests, so size waves to leave the next one headroom, or
|
|
92
|
+
accept one wave per window.
|
|
93
|
+
**Do not read live budget off the statusline while parked on a dispatch.**
|
|
94
|
+
Observed: the harness statusline does not refresh while the main session waits
|
|
95
|
+
on a background agent's completion notification, so its displayed budget
|
|
96
|
+
freezes for the length of the dispatch — the longer the unit, the staler the
|
|
97
|
+
number. Poll `usage-verdict.sh` externally when you need a live reading
|
|
98
|
+
mid-dispatch (`watch -n 30 bash delegation-kit/bin/usage-verdict.sh`); this is
|
|
99
|
+
the one sanctioned poll and it does not weaken the never-poll rule above,
|
|
100
|
+
which governs waiting for *completion*. Enforcement is unaffected either way:
|
|
101
|
+
the per-dispatch budget check reads a fresh verdict at dispatch time, so a
|
|
102
|
+
pause/proceed decision is never made off the frozen display — only passive
|
|
103
|
+
display is stale.
|
|
104
|
+
- **Match the dispatched model and effort to the unit's shape.** Delegation
|
|
105
|
+
levers tokens only when selection follows the work: a read-heavy or mechanical
|
|
106
|
+
unit (audit, survey, rename/merge sweep) rides a cheaper model class via the
|
|
107
|
+
dispatch's model parameter or a dedicated agent type; a unit carrying design
|
|
108
|
+
judgment stays on the supervisor's class. Derive the class ladder from the
|
|
109
|
+
harness's **live model roster at dispatch time** — model families churn faster
|
|
110
|
+
than kit text, so a baked model-name list in any doc is drift by construction.
|
|
111
|
+
Agent-**type** selection derives the same way — from the dispatch-time
|
|
112
|
+
agent-roster descriptions, not a baked list: an audit or survey rides the type
|
|
113
|
+
whose description commits to review work, never one that disclaims it (an
|
|
114
|
+
excerpt-locator serves pure search, not audit). Selection sits with the
|
|
115
|
+
dispatching session — its context holds what selection
|
|
116
|
+
needs — and a standing choice lands in a tracked agent-type definition, never
|
|
117
|
+
per-dispatch habit.
|
|
118
|
+
- **Never revert substantial completed work on your own design judgment** —
|
|
119
|
+
especially an expensive delegated sweep. Surface the tension and wait for the
|
|
120
|
+
explicit go-ahead before discarding it: a self-judged revert forfeits the
|
|
121
|
+
sweep's whole spend and pays it again on the re-run.
|
|
122
|
+
|
|
123
|
+
## Shared-file roster
|
|
124
|
+
|
|
125
|
+
*<shared-file-roster: the files two agents must never edit concurrently, in
|
|
126
|
+
addition to the git index and HEAD (always shared for committing agents) — your
|
|
127
|
+
generated-config scripts, shared test-environment fixtures, and any amendment
|
|
128
|
+
file under active edit.>*
|
|
129
|
+
|
|
130
|
+
## Validate battery
|
|
131
|
+
|
|
132
|
+
*<validate-battery: the command set the supervisor re-runs after every agent
|
|
133
|
+
commit, never the agent's self-report — for a gate-sdk consumer the
|
|
134
|
+
`run-gates.sh` battery plus the fixture runner for each kit the sweep touched; a
|
|
135
|
+
toolchain consumer adds its compile/lint/test set, and after any rename sweeps
|
|
136
|
+
explicitly for zero-byte files a stale build cache would green.>*
|