checkwright 0.0.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +260 -4
- package/bin/checkwright.sh +53 -0
- package/lib/common/lock.sh +28 -0
- package/lib/common/profile.sh +58 -0
- package/lib/common/recipe.sh +93 -0
- package/lib/doctor.sh +90 -0
- package/lib/init.sh +289 -0
- package/package.json +15 -3
- package/payload/canon-kit/README.md +79 -0
- package/payload/canon-kit/SPEC.md +1410 -0
- package/payload/canon-kit/checks/check-amendment-queue.sh +116 -0
- package/payload/canon-kit/checks/check-comment-tier.sh +211 -0
- package/payload/canon-kit/checks/check-deprecation-task.sh +90 -0
- package/payload/canon-kit/checks/check-docs-cmd.sh +153 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +71 -0
- package/payload/canon-kit/checks/check-install-claim.sh +146 -0
- package/payload/canon-kit/checks/check-knob-citation.sh +117 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +239 -0
- package/payload/canon-kit/checks/check-manifest-count.sh +46 -0
- package/payload/canon-kit/checks/check-manifest-temporal.sh +83 -0
- package/payload/canon-kit/checks/check-md-refs.sh +115 -0
- package/payload/canon-kit/checks/check-prose-enum.sh +115 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +207 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +69 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +45 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +133 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +42 -0
- package/payload/canon-kit/checks/check-spec-pointer.sh +176 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +105 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +80 -0
- package/payload/canon-kit/checks/check-tracking-claim.sh +136 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +5 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +25 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +32 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +146 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.sh +6 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +21 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +98 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/bin/tool.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +18 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/demokit/index.md +5 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/demokit/index.md +6 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/SPEC.md +10 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +71 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/gate-sdk-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/SPEC.md +7 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +73 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +37 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +104 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/SPEC.md +6 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/target.md +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +127 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +15 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +21 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +20 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +63 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/doc.md +8 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/cand-tmpl.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/cand-tmpl.md +7 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +23 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/README.md +7 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/roster.list +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +86 -0
- package/payload/canon-kit/lib/spec.sh +505 -0
- package/payload/canon-kit/smoke/install.sh +36 -0
- package/payload/canon-kit/smoke/violation.sh +22 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +55 -0
- package/payload/canon-kit/templates/canon-config.sh +2 -0
- package/payload/context-kit/README.md +82 -0
- package/payload/context-kit/SPEC.md +790 -0
- package/payload/context-kit/bin/always-loaded.sh +86 -0
- package/payload/context-kit/bin/env-probe.sh +144 -0
- package/payload/context-kit/bin/footprint.sh +144 -0
- package/payload/context-kit/bin/md-index.sh +80 -0
- package/payload/context-kit/bin/md-section.sh +63 -0
- package/payload/context-kit/bin/pub-index.sh +90 -0
- package/payload/context-kit/bin/run-index-tests.sh +91 -0
- package/payload/context-kit/checks/check-brevity.sh +123 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +38 -0
- package/payload/context-kit/checks/check-memory-off.sh +112 -0
- package/payload/context-kit/checks/check-settings-pins.sh +110 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +14 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +20 -0
- package/payload/context-kit/gate-tests/check-brevity/good/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +89 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +11 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +12 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/memory/example-fact.md +6 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/memory/.gitkeep +0 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +54 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings.json +6 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings.json +6 -0
- package/payload/context-kit/index-tests/corpus/baseline.txt +2 -0
- package/payload/context-kit/index-tests/corpus/hook-sample.txt +4 -0
- package/payload/context-kit/index-tests/corpus/sample.md +23 -0
- package/payload/context-kit/index-tests/corpus/sample.rs +24 -0
- package/payload/context-kit/index-tests/corpus/sample.ts +34 -0
- package/payload/context-kit/index-tests/corpus/surface.md +6 -0
- package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -0
- package/payload/context-kit/index-tests/expected/md-index.txt +6 -0
- package/payload/context-kit/index-tests/expected/md-section.txt +6 -0
- package/payload/context-kit/index-tests/expected/pub-index-shadow.txt +2 -0
- package/payload/context-kit/index-tests/expected/pub-index-ts.txt +12 -0
- package/payload/context-kit/index-tests/expected/pub-index.txt +10 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +14 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +29 -0
- package/payload/context-kit/lib/pub-lang/rust.sh +26 -0
- package/payload/context-kit/lib/pub-lang/ts.sh +32 -0
- package/payload/context-kit/lib/toolfloor.sh +47 -0
- package/payload/context-kit/smoke/agents-md.sh +116 -0
- package/payload/context-kit/smoke/install.sh +60 -0
- package/payload/context-kit/smoke/violation.sh +21 -0
- package/payload/context-kit/templates/close-brevity.md +30 -0
- package/payload/context-kit/templates/context-config.sh +2 -0
- package/payload/context-kit/templates/session-context.sh +133 -0
- package/payload/context-kit/templates/settings-sessionstart.json +12 -0
- package/payload/delegation-kit/README.md +87 -0
- package/payload/delegation-kit/SPEC.md +792 -0
- package/payload/delegation-kit/bin/run-budget-guard-tests.sh +88 -0
- package/payload/delegation-kit/bin/run-trend-tests.sh +63 -0
- package/payload/delegation-kit/bin/run-usage-tests.sh +226 -0
- package/payload/delegation-kit/bin/usage-trend.sh +120 -0
- package/payload/delegation-kit/bin/usage-verdict.sh +144 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +139 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +76 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/added-exemptions +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +9 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +4 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +20 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +5 -0
- package/payload/delegation-kit/lib/delegation.sh +81 -0
- package/payload/delegation-kit/smoke/install.sh +61 -0
- package/payload/delegation-kit/smoke/violation.sh +16 -0
- package/payload/delegation-kit/templates/agent-budget-guard.sh +18 -0
- package/payload/delegation-kit/templates/agent-execution.md +136 -0
- package/payload/delegation-kit/templates/delegation-config.sh +2 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +60 -0
- package/payload/delegation-kit/templates/statusline-usage.sh +79 -0
- package/payload/delegation-kit/templates/usage-poller.sh +67 -0
- package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +20 -0
- package/payload/delegation-kit/usage-tests/cases.tsv +44 -0
- package/payload/delegation-kit/usage-tests/trend-history.log +20 -0
- package/payload/doctrine-kit/DOCTRINE.md +386 -0
- package/payload/doctrine-kit/README.md +70 -0
- package/payload/doctrine-kit/SPEC.md +233 -0
- package/payload/doctrine-kit/bin/install-doctrine.sh +44 -0
- package/payload/doctrine-kit/bin/stage-rules.sh +51 -0
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +216 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/AGENT.md +14 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/AGENT.md +15 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +208 -0
- package/payload/doctrine-kit/lib/doctrine.sh +29 -0
- package/payload/doctrine-kit/smoke/install.sh +24 -0
- package/payload/doctrine-kit/smoke/violation.sh +13 -0
- package/payload/drift-kit/README.md +115 -0
- package/payload/drift-kit/SPEC.md +881 -0
- package/payload/drift-kit/bin/drift-report.sh +155 -0
- package/payload/drift-kit/bin/kfric.sh +42 -0
- package/payload/drift-kit/bin/overhead-meter.sh +106 -0
- package/payload/drift-kit/bin/stage-economics.sh +311 -0
- package/payload/drift-kit/bin/trajectory.sh +242 -0
- package/payload/drift-kit/kpis/kpi-always-loaded.sh +39 -0
- package/payload/drift-kit/kpis/kpi-amendment-age.sh +33 -0
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +46 -0
- package/payload/drift-kit/kpis/kpi-gate-backlog.sh +52 -0
- package/payload/drift-kit/kpis/kpi-gate-runtime.sh +31 -0
- package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +21 -0
- package/payload/drift-kit/kpis/kpi-overhead.sh +44 -0
- package/payload/drift-kit/kpis/kpi-price-table-age.sh +68 -0
- package/payload/drift-kit/kpis/kpi-prompt-friction.sh +38 -0
- package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +74 -0
- package/payload/drift-kit/kpis/kpi-settings-local.sh +21 -0
- package/payload/drift-kit/kpis/kpi-task-split.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +348 -0
- package/payload/drift-kit/smoke/overhead-fixture.jsonl +4 -0
- package/payload/drift-kit/templates/close-knowledge.md +24 -0
- package/payload/drift-kit/templates/drift-config.sh +2 -0
- package/payload/drift-kit/templates/economics.md +45 -0
- package/payload/drift-kit/templates/kpi-deprecated-surface.sh +32 -0
- package/payload/drift-kit/templates/kpis.list +22 -0
- package/payload/drift-kit/templates/price-table.tsv +21 -0
- package/payload/evidence-kit/README.md +59 -0
- package/payload/evidence-kit/SPEC.md +261 -0
- package/payload/evidence-kit/bin/diff-baseline.sh +34 -0
- package/payload/evidence-kit/bin/run-validate.sh +82 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +103 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +104 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +84 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +107 -0
- package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +82 -0
- package/payload/evidence-kit/lib/evidence.sh +173 -0
- package/payload/evidence-kit/smoke/install.sh +45 -0
- package/payload/evidence-kit/smoke/violation.sh +8 -0
- package/payload/evidence-kit/templates/evidence-config.sh +2 -0
- package/payload/gate-sdk/README.md +124 -0
- package/payload/gate-sdk/SPEC.md +1876 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +272 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +267 -0
- package/payload/gate-sdk/bin/install-hooks.sh +48 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +112 -0
- package/payload/gate-sdk/bin/run-gate-tests.sh +128 -0
- package/payload/gate-sdk/bin/run-gates.sh +147 -0
- package/payload/gate-sdk/bin/upgrade-smoke.sh +163 -0
- package/payload/gate-sdk/checks/check-action-pinning.sh +55 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +219 -0
- package/payload/gate-sdk/checks/check-assertion-strength.sh +134 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +50 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +43 -0
- package/payload/gate-sdk/checks/check-core-files.sh +52 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +37 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +76 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +123 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +106 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +84 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +92 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +65 -0
- package/payload/gate-sdk/checks/check-graph.sh +632 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +45 -0
- package/payload/gate-sdk/checks/check-identity.sh +134 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +94 -0
- package/payload/gate-sdk/checks/check-kit-registration.sh +68 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +102 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +148 -0
- package/payload/gate-sdk/checks/check-root-tiering.sh +66 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +55 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +53 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +126 -0
- package/payload/gate-sdk/checks/check-test-hermetic.sh +119 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +61 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/mutable.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/nested/pinned.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/nested/deep.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/no-refs.yaml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/pinned.yml +10 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/ci.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/action.yml +14 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/not-actions.yml +16 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/ci.yml +106 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +88 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/msg.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +73 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/core-files.list +3 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/core-files.list +5 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/nested/also-present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/projection.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +46 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-baz.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-foo.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +20 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-baz.sh +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-foo.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/check-gamma.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/check-beta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gates.list +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +20 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +51 -0
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +55 -0
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +63 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-remotes +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-remotes +3 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +20 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +75 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/checks/check-gamma-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/README.md +16 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/beta-kit/smoke/install.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/allow.list +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/stray.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/allow.list +3 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/LICENSE +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/somedir/keep.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/warn.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/ok.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/violation.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +9 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/agent-budget-guard.sh +17 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/delegation-config.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/usage-poller.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/delegation-config.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/leaky.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/exempt.test.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/sourced.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/leak.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/clean.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/payload.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/wire.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +87 -0
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +78 -0
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +77 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +32 -0
- package/payload/gate-sdk/lib/gate.sh +216 -0
- package/payload/gate-sdk/lib/inject.sh +35 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +11 -0
- package/payload/gate-sdk/smoke/install.sh +84 -0
- package/payload/gate-sdk/smoke/violation.sh +13 -0
- package/payload/gate-sdk/templates/check-skeleton.sh +23 -0
- package/payload/gate-sdk/templates/gates-workflow.yml +55 -0
- package/payload/gate-sdk/templates/msg-patterns.list +21 -0
- package/payload/guard-kit/README.md +65 -0
- package/payload/guard-kit/SPEC.md +590 -0
- package/payload/guard-kit/bin/compare-settings-allow.sh +58 -0
- package/payload/guard-kit/bin/run-guard-tests.sh +86 -0
- package/payload/guard-kit/bin/scan-prompts.sh +166 -0
- package/payload/guard-kit/bin/scratch-run.sh +34 -0
- package/payload/guard-kit/gate-tests/scan-prompts.test.sh +70 -0
- package/payload/guard-kit/gate-tests/scratch-run.test.sh +62 -0
- package/payload/guard-kit/guard-tests/cases.tsv +117 -0
- package/payload/guard-kit/guard-tests/escalation-cases.tsv +13 -0
- package/payload/guard-kit/lib/guard.sh +448 -0
- package/payload/guard-kit/smoke/install.sh +26 -0
- package/payload/guard-kit/templates/bash-guard.sh +18 -0
- package/payload/guard-kit/templates/close-triage.md +31 -0
- package/payload/guard-kit/templates/escalation-guard.sh +27 -0
- package/payload/guard-kit/templates/guard-config.sh +2 -0
- package/payload/guard-kit/templates/settings-hooks.json +19 -0
- package/payload/guard-kit/templates/wakeup-guard.sh +20 -0
- package/payload/lifecycle-kit/README.md +106 -0
- package/payload/lifecycle-kit/SPEC.md +1492 -0
- package/payload/lifecycle-kit/bin/close-surfaces.sh +94 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +215 -0
- package/payload/lifecycle-kit/bin/file-gap.sh +43 -0
- package/payload/lifecycle-kit/bin/install-lifecycle.sh +36 -0
- package/payload/lifecycle-kit/bin/session-id.sh +75 -0
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +63 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +98 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +54 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +69 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +97 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +59 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +197 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +81 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +47 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +96 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +66 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/evidence.txt +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/evidence.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +56 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +59 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +6 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +5 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +113 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/commands/build.md +6 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +80 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/commands/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +84 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +251 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +115 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
- package/payload/lifecycle-kit/lib/stages.sh +179 -0
- package/payload/lifecycle-kit/smoke/install.sh +341 -0
- package/payload/lifecycle-kit/smoke/violation.sh +8 -0
- package/payload/lifecycle-kit/templates/lead.md +271 -0
- package/payload/lifecycle-kit/templates/lifecycle-config.sh +2 -0
- package/payload/lifecycle-kit/templates/release-sweep.md +39 -0
- package/payload/lifecycle-kit/templates/stages/align.md +65 -0
- package/payload/lifecycle-kit/templates/stages/build.md +78 -0
- package/payload/lifecycle-kit/templates/stages/close.md +122 -0
- package/payload/lifecycle-kit/templates/stages/scope.md +112 -0
- package/payload/lifecycle-kit/templates/stages/spec.md +91 -0
- package/payload/lifecycle-kit/templates/stages/validate.md +54 -0
- package/payload/lifecycle-kit/templates/upgrade.md +41 -0
- package/payload/queue-kit/README.md +78 -0
- package/payload/queue-kit/SPEC.md +797 -0
- package/payload/queue-kit/bin/lesson-sink.sh +28 -0
- package/payload/queue-kit/bin/queue-index.sh +182 -0
- package/payload/queue-kit/bin/roadmap.sh +76 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +104 -0
- package/payload/queue-kit/checks/check-queue-hygiene.sh +81 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +63 -0
- package/payload/queue-kit/checks/check-queue-sections.sh +44 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +63 -0
- package/payload/queue-kit/checks/check-queue-wrap.sh +56 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +110 -0
- package/payload/queue-kit/checks/check-tag-lead-line.sh +70 -0
- package/payload/queue-kit/checks/check-task-conservation.sh +50 -0
- package/payload/queue-kit/checks/check-task-names.sh +128 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +33 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +35 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/TASK-QUEUE.md +13 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +4 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +19 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +5 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +24 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/emit.txt +8 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +22 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/emit.txt +7 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +159 -0
- package/payload/queue-kit/gate-tests/roadmap.test.sh +197 -0
- package/payload/queue-kit/lib/queue.sh +193 -0
- package/payload/queue-kit/smoke/install.sh +22 -0
- package/payload/queue-kit/smoke/violation.sh +8 -0
- package/payload/queue-kit/templates/TASK-QUEUE.md +43 -0
- package/payload/queue-kit/templates/queue-config.sh +2 -0
- package/payload/site-kit/README.md +61 -0
- package/payload/site-kit/SPEC.md +269 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +80 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +167 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/README.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/docs/posts/2026-01-01-legacy.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/index.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/pkg/gate-tests/fixture.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/args +8 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/tree/docs/install.md +38 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/args +6 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/tree/docs/install.md +35 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +87 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +80 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +90 -0
- package/payload/site-kit/lib/site.sh +29 -0
- package/payload/site-kit/smoke/install.sh +26 -0
- package/payload/site-kit/smoke/violation.sh +20 -0
- package/payload/site-kit/templates/site-health.yml +164 -0
- package/profiles.list +53 -0
package/README.md
CHANGED
|
@@ -1,9 +1,265 @@
|
|
|
1
1
|
# Checkwright
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
The activation path for **Checkwright** — a coding-agent-assisted delivery
|
|
4
|
+
methodology shipped as installable kits: a self-testing gate SDK for
|
|
5
5
|
prose/spec/config surfaces, an evidence-stamped iteration lifecycle designed
|
|
6
6
|
for stateless agent sessions, and token-economics-aware context management.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
## What this package is
|
|
9
|
+
|
|
10
|
+
A one-shot vendoring installer. It copies pinned kit source out of its own
|
|
11
|
+
payload into your repository and commits it, then prints the commands that
|
|
12
|
+
finish the setup. What governs your tree afterwards is committed, auditable
|
|
13
|
+
source you read before you run it.
|
|
14
|
+
|
|
15
|
+
What it is not: a dependency channel. Nothing resolves at your build time,
|
|
16
|
+
nothing is fetched after this package itself, and the installer writes no
|
|
17
|
+
dependency reference, no lockfile entry pointing at a registry, and no
|
|
18
|
+
install-time lifecycle script. Remove the installer afterwards and the tree it
|
|
19
|
+
vendored keeps working — it needs nothing from a package registry again.
|
|
20
|
+
|
|
21
|
+
## Implementation
|
|
22
|
+
|
|
23
|
+
Bash. npm is the delivery vehicle, never the implementation: the `bin` entry is
|
|
24
|
+
a bash script, so a reader reviewing what they are about to run reads the one
|
|
25
|
+
language the rest of the tree is written in, and the linter that governs every
|
|
26
|
+
other script in the repository governs these too.
|
|
27
|
+
|
|
28
|
+
## Requirements
|
|
29
|
+
|
|
30
|
+
This package reaches a tree over two transports, and each carries its own
|
|
31
|
+
requirement. Fetched from npm it needs Node, for `npx`. Fetched as the tarball
|
|
32
|
+
attached to a GitHub Release it needs none — `curl`, `tar`, and `sha256sum`,
|
|
33
|
+
then `bash package/bin/checkwright.sh init`. Both requirements belong to a
|
|
34
|
+
delivery path alone: the gate battery this vendors does not use Node, no
|
|
35
|
+
delivery-path tool joins the toolchain roster, and the manual vendoring path
|
|
36
|
+
documented on the site needs neither. The toolchain the battery does assert,
|
|
37
|
+
with its version floors, is on the install page.
|
|
38
|
+
|
|
39
|
+
## Layout
|
|
40
|
+
|
|
41
|
+
- `bin/checkwright.sh` — the verb dispatcher, and the package's `bin` entry.
|
|
42
|
+
- `lib/` — one file per verb; the dispatcher's roster is this directory.
|
|
43
|
+
- `lib/common/` — modules the verbs share. The dispatcher's roster is the
|
|
44
|
+
`*.sh` files directly under `lib/`, and that glob does not descend, so a
|
|
45
|
+
shared module cannot be advertised as a verb.
|
|
46
|
+
- `payload/` — the vendored kit source, assembled at pack time from the
|
|
47
|
+
repository's own kit roots. It exists in the published tarball only, never in
|
|
48
|
+
the source tree, so no second copy of any kit is checked in.
|
|
49
|
+
- `profiles.list` — the profile rosters (below).
|
|
50
|
+
|
|
51
|
+
## init
|
|
52
|
+
|
|
53
|
+
`checkwright init` vendors the selected profile's kit source out of this
|
|
54
|
+
package's own payload into your repository and commits it. One command, and
|
|
55
|
+
what governs your tree afterwards is committed source you can read.
|
|
56
|
+
|
|
57
|
+
Three preconditions, and all three **refuse** rather than warn — a partial
|
|
58
|
+
install is the outcome none of them may produce, so every one is checked before
|
|
59
|
+
a single file is written:
|
|
60
|
+
|
|
61
|
+
- **You are inside a git work tree.** The vendored source is meant to be
|
|
62
|
+
committed; that is what makes it auditable rather than merely present.
|
|
63
|
+
- **The worktree is clean.** `init` makes one commit, and a dirty tree would
|
|
64
|
+
fold your work into it, leaving a reviewer's diff wider than what was
|
|
65
|
+
actually vendored. `--no-commit` is the valve: it writes and stages the
|
|
66
|
+
files and leaves the commit to you, so an operator who wants to compose the
|
|
67
|
+
change themselves has taken that guarantee on deliberately.
|
|
68
|
+
- **`doctor` passes.** A below-contract toolchain blocks *before* any partial
|
|
69
|
+
install, rather than halfway through one — which is why `doctor` ships in the
|
|
70
|
+
same phase as `init` rather than as a later convenience.
|
|
71
|
+
|
|
72
|
+
It writes the selected profile's kit directories, a `gates.list` seeded with
|
|
73
|
+
each kit's starting gates, the config seam files those kits need, and the
|
|
74
|
+
manifest. Then it makes **one commit** naming the profile and the version, and
|
|
75
|
+
prints the two commands that finish the setup — `gate-sdk/bin/install-hooks.sh`
|
|
76
|
+
to opt this clone into the generated hook, and `gate-sdk/bin/run-gates.sh` to
|
|
77
|
+
run the battery.
|
|
78
|
+
|
|
79
|
+
**Re-running is idempotent and non-destructive.** A second `init` reads each
|
|
80
|
+
recorded hash from the manifest: a file whose hash still matches is `init`'s to
|
|
81
|
+
rewrite, and one that has changed since is **yours** — it is reported and left
|
|
82
|
+
alone, never overwritten, unless you pass `--force`. A re-run that finds
|
|
83
|
+
nothing to change says so and exits clean; an unchanged tree is the success
|
|
84
|
+
case, not an error. A payload older than the recorded install is refused as a
|
|
85
|
+
silent downgrade — `--force` covers that refusal too, which is what makes a
|
|
86
|
+
rollback a thing you asked for rather than a thing that happened to you.
|
|
87
|
+
`--force` means the same thing in both places: overwrite what `init` would
|
|
88
|
+
otherwise protect.
|
|
89
|
+
|
|
90
|
+
`--dry-run` prints the file plan and the manifest that would be written, writes
|
|
91
|
+
nothing, and exits 0. Every mutating verb has one.
|
|
92
|
+
|
|
93
|
+
## What init seeds
|
|
94
|
+
|
|
95
|
+
Beyond the kit directories themselves, `init` writes the least that makes the
|
|
96
|
+
battery green on the tree it just made.
|
|
97
|
+
|
|
98
|
+
The **config seam is derived, never listed**: a kit's consumer config is
|
|
99
|
+
whatever `templates/*-config.sh` it ships, and the destination is always your
|
|
100
|
+
gates directory under the file's own name. A kit that grows a config template
|
|
101
|
+
is picked up with no edit here.
|
|
102
|
+
|
|
103
|
+
The **starting gate roster** is the subset a fresh consumer begins with, not
|
|
104
|
+
the kit's full roster — the same distinction gate-sdk's own README draws. A
|
|
105
|
+
gate whose subject you have not authored yet has nothing to read: canon-kit's
|
|
106
|
+
duplication gate wants a glossary, site-kit's wants a docs host, and
|
|
107
|
+
lifecycle-kit's two want a stage attestation only a stage session can write. On
|
|
108
|
+
a tree that has done nothing wrong those would red on day one, so they are
|
|
109
|
+
registered when the surface exists rather than at install. Each kit's README
|
|
110
|
+
names the full roster to grow into.
|
|
111
|
+
|
|
112
|
+
*The honest limit.* That per-kit starting roster is knowledge this installer
|
|
113
|
+
holds, and each kit's `smoke/install.sh` holds a second encoding of the same
|
|
114
|
+
fact for its own scratch consumer. The consumer smoke catches the drift that
|
|
115
|
+
matters — a roster naming a gate that fails to resolve reds it — but not a
|
|
116
|
+
kit that adds a zero-config gate this roster never learns about. Collapsing the
|
|
117
|
+
two into one per-kit source is filed as queued work, not papered over here.
|
|
118
|
+
|
|
119
|
+
## doctor
|
|
120
|
+
|
|
121
|
+
`checkwright doctor` tells you whether this machine meets the toolchain the
|
|
122
|
+
gate battery needs, and it says so in its **exit status** rather than only in
|
|
123
|
+
its output: `0` meets the contract, `1` is below it. That is what lets a CI
|
|
124
|
+
step or `init`'s own precondition check gate on the answer without parsing a
|
|
125
|
+
report — and it is why a below-contract machine is caught before any partial
|
|
126
|
+
install rather than halfway through one.
|
|
127
|
+
|
|
128
|
+
It has two behaviors, selected by where you run it rather than by a flag. Run
|
|
129
|
+
anywhere, it reports the toolchain verdict. Run inside a repository that has
|
|
130
|
+
been vendored into, it additionally reads `checkwright.lock` and reports the
|
|
131
|
+
installed release, the upstream commit it came from, the profile, and the kit
|
|
132
|
+
set.
|
|
133
|
+
|
|
134
|
+
`doctor` defines no floor of its own. It sources the toolchain roster out of
|
|
135
|
+
its own `payload/` and renders whatever verdict that roster's predicate
|
|
136
|
+
returns, so the contract keeps one owner and this stays a display of it. The
|
|
137
|
+
payload copy is the one it reads, never a copy in the tree it is inspecting:
|
|
138
|
+
at `init` time nothing has been vendored there yet, so a tree copy would not
|
|
139
|
+
exist at the moment the answer is needed.
|
|
140
|
+
|
|
141
|
+
`doctor` writes nothing, so it has no `--dry-run`. Every verb that does write
|
|
142
|
+
has one.
|
|
143
|
+
|
|
144
|
+
A third exit status, `2`, means the question could not be answered rather than
|
|
145
|
+
that the answer was bad: the package carries no payload, or the manifest
|
|
146
|
+
carries a schema key this build does not know. A build refuses an unfamiliar
|
|
147
|
+
manifest rather than guessing at the shape behind it.
|
|
148
|
+
|
|
149
|
+
## Profiles
|
|
150
|
+
|
|
151
|
+
You pick how much of the methodology to meet first. The progression is
|
|
152
|
+
`starter`, then `delegation`, then `full`, and it is a containment chain rather
|
|
153
|
+
than three unrelated menus: moving up a profile only ever adds, so nothing you
|
|
154
|
+
already vendored is taken away or rearranged underneath you.
|
|
155
|
+
|
|
156
|
+
- **`starter`** is the framework — the gate SDK on its own. You get a battery,
|
|
157
|
+
a generated pre-commit hook, and gates that already red on real defects in
|
|
158
|
+
your own tree without any configuration outside your gates directory.
|
|
159
|
+
- **`delegation`** adds every kit whose subject is the agent session itself:
|
|
160
|
+
the stage machine a session runs, the queue it selects work from, the
|
|
161
|
+
evidence a stage produces before it can close, the protocol it follows when
|
|
162
|
+
it spawns, the context budget it runs inside, the permission surface it acts
|
|
163
|
+
through, and the delivery doctrine it follows.
|
|
164
|
+
- **`full`** is everything in the payload.
|
|
165
|
+
|
|
166
|
+
`starter` and `delegation` are rosters in `profiles.list`, because neither
|
|
167
|
+
follows from the tree — each is a judgment about what an adopter should meet
|
|
168
|
+
first, and the file records the criterion behind each membership beside it.
|
|
169
|
+
`full` is derived instead: it is every kit root the payload carries, resolved
|
|
170
|
+
at run time, never a list to maintain.
|
|
171
|
+
|
|
172
|
+
## The manifest
|
|
173
|
+
|
|
174
|
+
`init` writes `checkwright.lock` at the root of the repository it vendors into,
|
|
175
|
+
and that file is tracked like everything else it writes. It is JSON, read with
|
|
176
|
+
`jq`, and it is the install-ownership record: what was installed, from which
|
|
177
|
+
upstream state, and which files this installer owns. `lib/common/lock.sh` is
|
|
178
|
+
its schema owner — the wire key, the accessors, and the hash rule live there,
|
|
179
|
+
so the verb that writes the manifest and the verbs that read it cannot drift
|
|
180
|
+
apart.
|
|
181
|
+
|
|
182
|
+
The wire key is versioned (`checkwright-lock v1`, in `CHECKWRIGHT_LOCK_SCHEMA`)
|
|
183
|
+
and a build that meets a key it does not know refuses rather than guessing at
|
|
184
|
+
the shape behind it.
|
|
185
|
+
|
|
186
|
+
| Field | Holds | Read by |
|
|
187
|
+
| --- | --- | --- |
|
|
188
|
+
| `schema` | the versioned wire key | every verb, as its first act — an unknown key is a refusal |
|
|
189
|
+
| `version` | the release the payload was cut at | `doctor` reports it; a re-run of `init` compares it against the payload's and refuses a silent downgrade |
|
|
190
|
+
| `commit` | the 40-hex commit the payload was assembled from | `doctor` prints it — it is what lets a reviewer resolve the vendored tree to an exact upstream state |
|
|
191
|
+
| `profile` | the profile selected | a re-run of `init` re-applies the same profile without asking again |
|
|
192
|
+
| `kits` | the vendored kit set | `init`'s re-run file plan, and `doctor`'s installed-set report |
|
|
193
|
+
| `files` | each written path with its content hash | `init`'s changed-file detection: a file whose hash still matches is rewritten, one that has changed is reported rather than overwritten |
|
|
194
|
+
|
|
195
|
+
A recorded hash is `git hash-object`, never `sha256sum`. Not a portability
|
|
196
|
+
detail worth burying: macOS ships `shasum` rather than `sha256sum`, and the
|
|
197
|
+
answer is not a new tool requirement — git is already something the toolchain
|
|
198
|
+
contract asserts, its object hash is content-addressed and stable, so the
|
|
199
|
+
manifest's integrity story stays inside the toolchain that contract already
|
|
200
|
+
covers.
|
|
201
|
+
|
|
202
|
+
## The consumer smoke
|
|
203
|
+
|
|
204
|
+
`consumer-smoke/run-smoke.sh` is the acceptor for everything above, and it is
|
|
205
|
+
registered as a validate suite so a bit-rotted activation path is a red
|
|
206
|
+
validate rather than a discovery at announcement.
|
|
207
|
+
|
|
208
|
+
It packs the package, installs it **from the resulting tarball with
|
|
209
|
+
`--offline`**, and drives a scratch consumer once per profile: `init`, then the
|
|
210
|
+
battery must be green, then the manifest must agree with the tree it describes
|
|
211
|
+
file by file, then a re-run must leave the tree object identical, then `doctor`
|
|
212
|
+
must exit 0 and name the installed profile. It also asserts the profile
|
|
213
|
+
invariant against the installed payload — every named kit resolves, the
|
|
214
|
+
containment chain holds, and there are at most three profiles.
|
|
215
|
+
|
|
216
|
+
A second arm drives the **download transport**: it verifies the packed tarball
|
|
217
|
+
against a digest the smoke computes, extracts it with `tar` rather than npm,
|
|
218
|
+
and runs the same `init` and the same post-conditions with `npm` and `node`
|
|
219
|
+
**masked off `PATH`**. It runs against `full` alone rather than per profile —
|
|
220
|
+
what the per-profile loop proves (the payload resolves and each profile's kit
|
|
221
|
+
set is present) is profile-dependent, while what this arm proves (the same
|
|
222
|
+
payload reached the tree without Node) is transport-independent, and `full` is
|
|
223
|
+
the largest payload with the widest `doctor` toolchain read. The smoke's
|
|
224
|
+
preflight still requires `npm` and `node`, because packing needs them; the
|
|
225
|
+
masking is around this arm's `init` only.
|
|
226
|
+
|
|
227
|
+
Two arms, two load-bearing properties, neither displacing the other. The
|
|
228
|
+
offline tarball install is what turns "this is a one-shot vendoring installer,
|
|
229
|
+
not a dependency channel" from a claim into an assertion: a package that
|
|
230
|
+
installs and runs with no registry access after the fetch is not resolving
|
|
231
|
+
anything on your behalf. The masked-`PATH` arm is what turns "the Release
|
|
232
|
+
tarball needs no Node" from a sentence into an assertion — without the masking
|
|
233
|
+
the two arms would differ only in how the bytes arrived, and a latent Node
|
|
234
|
+
dependency would pass silently on any machine that happens to have Node.
|
|
235
|
+
|
|
236
|
+
The mask is itself asserted rather than assumed: before the arm runs, each
|
|
237
|
+
masked name must resolve to the shim, so a `PATH` that quietly failed to shadow
|
|
238
|
+
the real interpreter reds instead of passing. Shims rather than deletion,
|
|
239
|
+
because dropping every `PATH` entry carrying `node` would take `/usr/bin` with
|
|
240
|
+
it wherever Node is installed there. The residue is that a payload merely
|
|
241
|
+
*probing* for a Node binary still finds a name; one that *runs* it fails loudly
|
|
242
|
+
and says which name it reached.
|
|
243
|
+
|
|
244
|
+
Its only knob is `INSTALLER_SMOKE_TMP_DIR`, and it writes nothing inside the
|
|
245
|
+
worktree. It needs a clean worktree, because the pack step refuses to stamp a
|
|
246
|
+
commit the payload does not match.
|
|
247
|
+
|
|
248
|
+
*Why the payload has no gate of its own.* The obvious sibling check would assert
|
|
249
|
+
that the packed payload matches the repository's kit roots. It is deliberately
|
|
250
|
+
not a gate: the payload exists only at pack time, so the gate would have to run
|
|
251
|
+
`npm pack` at commit time — putting a network-capable toolchain in the
|
|
252
|
+
pre-commit path and breaking the hermeticity every other gate keeps. The
|
|
253
|
+
property is covered here instead, in the tier that can afford it: the pack step
|
|
254
|
+
derives the payload from the same kit-root set the battery itself resolves, and
|
|
255
|
+
the smoke then runs `doctor` from the payload for *every* profile, so a payload
|
|
256
|
+
missing the kit `doctor` sources its toolchain roster from fails the smallest
|
|
257
|
+
profile rather than passing unnoticed. The honest residue is that no assertion
|
|
258
|
+
compares the two sets element by element — a kit dropped from the payload that
|
|
259
|
+
nothing in the smoke's path reads would not be caught here.
|
|
260
|
+
|
|
261
|
+
## Docs
|
|
262
|
+
|
|
263
|
+
<https://checkwright.dev> and <https://github.com/checkwright/checkwright>.
|
|
264
|
+
|
|
265
|
+
Apache-2.0.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: CLAUDE.md §Housekeeping — the published activation surface's entry point; npm is the delivery vehicle and bash is the implementation, so what an adopter is about to run is the one language the rest of the tree is written in
|
|
3
|
+
#
|
|
4
|
+
# usage: checkwright <verb> [args...]
|
|
5
|
+
# checkwright --help list the verbs this package carries
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
# spec: installer/README.md §Layout — resolve the symlink chain before taking the package root: npm installs the bin entry as a link in node_modules/.bin, so the unresolved path's parent is node_modules and every verb and the payload would be looked for in the wrong tree
|
|
9
|
+
SELF="${BASH_SOURCE[0]}"
|
|
10
|
+
while [[ -L "$SELF" ]]; do
|
|
11
|
+
LINK_DIR="$(cd "$(dirname "$SELF")" && pwd)"
|
|
12
|
+
SELF="$(readlink "$SELF")"
|
|
13
|
+
[[ "$SELF" == /* ]] || SELF="$LINK_DIR/$SELF"
|
|
14
|
+
done
|
|
15
|
+
INSTALLER="$(cd "$(dirname "$SELF")/.." && pwd)"
|
|
16
|
+
|
|
17
|
+
# spec: CLAUDE.md §Housekeeping — the verb roster is lib/ itself, never a list beside it: a verb is advertised because its implementation is present, so the help text cannot promise a verb the package does not carry
|
|
18
|
+
verbs() {
|
|
19
|
+
local f
|
|
20
|
+
shopt -s nullglob
|
|
21
|
+
for f in "$INSTALLER"/lib/*.sh; do f="${f##*/}"; printf '%s\n' "${f%.sh}"; done
|
|
22
|
+
shopt -u nullglob
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
usage() {
|
|
26
|
+
printf 'usage: checkwright <verb> [args...]\n\n'
|
|
27
|
+
printf 'Vendors pinned Checkwright kit source into your repository and commits it.\n'
|
|
28
|
+
printf 'Nothing is fetched after this package itself.\n\n'
|
|
29
|
+
printf 'verbs:\n'
|
|
30
|
+
local v found=0
|
|
31
|
+
while IFS= read -r v; do
|
|
32
|
+
[[ -n "$v" ]] || continue
|
|
33
|
+
found=1
|
|
34
|
+
printf ' %s\n' "$v"
|
|
35
|
+
done < <(verbs)
|
|
36
|
+
(( found )) || printf ' (none — this build carries no verbs)\n'
|
|
37
|
+
printf '\nhttps://checkwright.dev\n'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
VERB="${1:-}"
|
|
41
|
+
case "$VERB" in
|
|
42
|
+
''|-h|--help) usage; exit 0 ;;
|
|
43
|
+
esac
|
|
44
|
+
shift
|
|
45
|
+
|
|
46
|
+
IMPL="$INSTALLER/lib/$VERB.sh"
|
|
47
|
+
if [[ ! -f "$IMPL" ]]; then
|
|
48
|
+
printf 'checkwright: unknown verb: %s\n\n' "$VERB" >&2
|
|
49
|
+
usage >&2
|
|
50
|
+
exit 2
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
exec bash "$IMPL" "$@"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: installer/README.md §The manifest — sourceable owner of the checkwright.lock schema: the wire key, the field accessors, and how a recorded content hash is obtained, so the verb that writes the manifest and the verbs that read it share one definition instead of a copy each
|
|
3
|
+
|
|
4
|
+
# spec: installer/README.md §The manifest — the versioned wire key; a build refuses a schema it does not know rather than guessing at an unknown shape
|
|
5
|
+
CHECKWRIGHT_LOCK_SCHEMA="checkwright-lock v1"
|
|
6
|
+
CHECKWRIGHT_LOCK_FILE="checkwright.lock"
|
|
7
|
+
|
|
8
|
+
lock_path() { # $1 = repo root -> the manifest's path within it
|
|
9
|
+
printf '%s/%s' "${1%/}" "$CHECKWRIGHT_LOCK_FILE"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
lock_schema_ok() { # $1 = manifest path -> 0 iff .schema is the key this build knows
|
|
13
|
+
local got
|
|
14
|
+
got="$(jq -r 'if type == "object" then (.schema // "") else "" end' "$1" 2>/dev/null)" || return 1
|
|
15
|
+
[[ "$got" == "$CHECKWRIGHT_LOCK_SCHEMA" ]]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
lock_field() { # $1 = manifest path, $2 = field name -> its value, arrays space-joined, empty when absent
|
|
19
|
+
jq -r --arg f "$2" '
|
|
20
|
+
(if type == "object" then getpath([$f]) else null end)
|
|
21
|
+
| if . == null then "" elif type == "array" then join(" ") else tostring end
|
|
22
|
+
' "$1" 2>/dev/null
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
# spec: installer/README.md §The manifest — git's object hash, never sha256sum: macOS ships shasum instead, and git is already a floor-contract member, so the manifest's integrity story stays inside the toolchain the contract asserts
|
|
26
|
+
lock_hash() { # $1 = file -> the content hash a files[] entry records
|
|
27
|
+
git hash-object -- "$1"
|
|
28
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: installer/README.md §Profiles — sourceable owner of the profile rosters: it parses profiles.list, derives `full` from the payload rather than reading a row, and is the one place a profile name resolves to a kit set
|
|
3
|
+
|
|
4
|
+
# spec: installer/README.md §Profiles — the derived profile is never a row in profiles.list; a hand-maintained "all the kits" roster is drift the day a kit lands
|
|
5
|
+
PROFILE_DERIVED=full
|
|
6
|
+
|
|
7
|
+
profile_payload_kits() { # $1 = installer root -> every kit root the payload carries, sorted
|
|
8
|
+
local d
|
|
9
|
+
shopt -s nullglob
|
|
10
|
+
for d in "$1"/payload/*/; do
|
|
11
|
+
d="${d%/}"
|
|
12
|
+
printf '%s\n' "${d##*/}"
|
|
13
|
+
done
|
|
14
|
+
shopt -u nullglob
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
profile_rows() { # $1 = installer root -> the `<profile><TAB><kit>` rows, comments and blanks dropped
|
|
18
|
+
local f="$1/profiles.list"
|
|
19
|
+
[[ -f "$f" ]] || return 0
|
|
20
|
+
while IFS= read -r line; do
|
|
21
|
+
line="${line%%#*}"
|
|
22
|
+
[[ -n "${line//[[:space:]]/}" ]] || continue
|
|
23
|
+
printf '%s\n' "$line"
|
|
24
|
+
done < "$f"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
profile_names() { # $1 = installer root -> every selectable profile, the derived one last
|
|
28
|
+
local seen="" p
|
|
29
|
+
while IFS=$'\t' read -r p _; do
|
|
30
|
+
[[ -n "$p" && "$seen" != *"|$p|"* ]] || continue
|
|
31
|
+
seen="$seen|$p|"
|
|
32
|
+
printf '%s\n' "$p"
|
|
33
|
+
done < <(profile_rows "$1")
|
|
34
|
+
printf '%s\n' "$PROFILE_DERIVED"
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
profile_kits() { # $1 = installer root, $2 = profile -> its kit set in payload order, empty when the profile is unknown
|
|
38
|
+
local root="$1" want="$2" p k members="" kit
|
|
39
|
+
if [[ "$want" == "$PROFILE_DERIVED" ]]; then
|
|
40
|
+
profile_payload_kits "$root"
|
|
41
|
+
return 0
|
|
42
|
+
fi
|
|
43
|
+
while IFS=$'\t' read -r p k; do
|
|
44
|
+
[[ "$p" == "$want" ]] || continue
|
|
45
|
+
members="$members|$k|"
|
|
46
|
+
done < <(profile_rows "$root")
|
|
47
|
+
[[ -n "$members" ]] || return 0
|
|
48
|
+
# spec: installer/README.md §Profiles — emit in payload order so a roster's line order never decides install order
|
|
49
|
+
while IFS= read -r kit; do
|
|
50
|
+
[[ "$members" == *"|$kit|"* ]] && printf '%s\n' "$kit"
|
|
51
|
+
done < <(profile_payload_kits "$root")
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
profile_known() { # $1 = installer root, $2 = profile -> 0 iff it is selectable
|
|
55
|
+
local n
|
|
56
|
+
while IFS= read -r n; do [[ "$n" == "$2" ]] && return 0; done < <(profile_names "$1")
|
|
57
|
+
return 1
|
|
58
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: installer/README.md §What init seeds — sourceable owner of the per-kit install recipe: the starting gate roster a kit registers in a fresh consumer, and the seam surfaces it needs before those gates can run. Every function here prints one repo-relative path per file it wrote, which is what the manifest's files[] is built from
|
|
3
|
+
|
|
4
|
+
# spec: installer/README.md §What init seeds — the config seam is derived, never listed: a kit's consumer config is whatever `templates/*-config.sh` it ships, and the destination is always the gates dir under the file's own name
|
|
5
|
+
recipe_config_seam() { # $1 = kit payload dir, $2 = consumer root, $3 = gates dir
|
|
6
|
+
local t base dest
|
|
7
|
+
shopt -s nullglob
|
|
8
|
+
for t in "$1"/templates/*-config.sh; do
|
|
9
|
+
base="${t##*/}"
|
|
10
|
+
dest="$3/$base"
|
|
11
|
+
cp "$t" "$2/$dest" || return 1
|
|
12
|
+
printf '%s\n' "$dest"
|
|
13
|
+
done
|
|
14
|
+
shopt -u nullglob
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
# spec: installer/README.md §What init seeds — the starting roster is the subset a fresh consumer begins with, not the kit's full roster: a gate whose subject the adopter has not authored yet (a glossary, a skills directory, a docs host) would exit 2 on their tree, so it is registered when that surface exists rather than at install
|
|
18
|
+
recipe_gates() { # $1 = kit name -> the gates it registers in a fresh consumer, none for a kit that ships no zero-config gate
|
|
19
|
+
case "$1" in
|
|
20
|
+
gate-sdk)
|
|
21
|
+
printf '%s\n' check-shellcheck check-gate-output check-gate-fail-closed \
|
|
22
|
+
check-gate-fixture-coverage check-gate-exemption-tasks \
|
|
23
|
+
check-gate-assertions check-graph check-commit-msg check-tree-terms ;;
|
|
24
|
+
canon-kit)
|
|
25
|
+
printf '%s\n' check-amendment-queue check-spec-dod-singleton \
|
|
26
|
+
check-spec-derivable-section check-spec-embedded-source ;;
|
|
27
|
+
context-kit) printf '%s\n' check-brevity ;;
|
|
28
|
+
delegation-kit) printf '%s\n' check-gate-tamper ;;
|
|
29
|
+
doctrine-kit) printf '%s\n' check-doctrine-registration ;;
|
|
30
|
+
evidence-kit) printf '%s\n' check-evidence-baseline check-evidence-manifest ;;
|
|
31
|
+
# spec: installer/README.md §What init seeds — lifecycle-kit registers nothing at install: its gates read an attestation only a stage session can write, so they arm at the adopter's first stamp
|
|
32
|
+
lifecycle-kit) : ;;
|
|
33
|
+
queue-kit)
|
|
34
|
+
printf '%s\n' check-queue-hygiene check-queue-wrap check-tag-lead-line \
|
|
35
|
+
check-task-names check-task-conservation check-queue-prose-precondition ;;
|
|
36
|
+
*) : ;;
|
|
37
|
+
esac
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
recipe_needs_queue() { # $1 = kit name -> 0 iff one of its starting gates reads the queue file
|
|
41
|
+
case "$1" in canon-kit|lifecycle-kit|queue-kit) return 0 ;; *) return 1 ;; esac
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
recipe_needs_agent_file() { # $1 = kit name -> 0 iff one of its starting gates reads the always-loaded agent file
|
|
45
|
+
case "$1" in context-kit|doctrine-kit) return 0 ;; *) return 1 ;; esac
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
# spec: installer/README.md §What init seeds — a seam surface is written only when it is absent: init owns what it created, never what the adopter authored, which is what keeps a re-run non-destructive on a tree that has grown since
|
|
49
|
+
recipe_seed() { # $1 = kit name, $2 = kit payload dir, $3 = consumer root, $4 = queue file
|
|
50
|
+
local kit="$1" pay="$2" root="$3" queue="$4"
|
|
51
|
+
|
|
52
|
+
if recipe_needs_queue "$kit" && [[ ! -f "$root/$queue" ]]; then
|
|
53
|
+
if [[ -f "$pay/templates/TASK-QUEUE.md" ]]; then
|
|
54
|
+
cp "$pay/templates/TASK-QUEUE.md" "$root/$queue" || return 1
|
|
55
|
+
else
|
|
56
|
+
printf '%s\n' "# $queue" "" "## Iteration: —" "" "---" "" \
|
|
57
|
+
"## New Features" "" "## Technical Debt" "" "## Deferred" "" "## Done" \
|
|
58
|
+
> "$root/$queue" || return 1
|
|
59
|
+
fi
|
|
60
|
+
printf '%s\n' "$queue"
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
case "$kit" in
|
|
64
|
+
gate-sdk)
|
|
65
|
+
[[ -f "$pay/templates/msg-patterns.list" ]] || return 0
|
|
66
|
+
cp "$pay/templates/msg-patterns.list" "$root/$GATES_DIR/msg-patterns.list" || return 1
|
|
67
|
+
printf '%s\n' "$GATES_DIR/msg-patterns.list" ;;
|
|
68
|
+
evidence-kit)
|
|
69
|
+
mkdir -p "$root/.workflow" || return 1
|
|
70
|
+
if [[ ! -f "$root/.workflow/validate-baseline.txt" ]]; then
|
|
71
|
+
printf '%s\n' "# contract: evidence-kit/SPEC.md §Baseline manifest — held-constant validate baseline: <suite> <scenario> <status> [<slug>]" \
|
|
72
|
+
> "$root/.workflow/validate-baseline.txt" || return 1
|
|
73
|
+
printf '%s\n' ".workflow/validate-baseline.txt"
|
|
74
|
+
fi
|
|
75
|
+
if [[ ! -f "$root/.workflow/validate-evidence.txt" ]]; then
|
|
76
|
+
printf '%s\n' "# contract: evidence-manifest v1" \
|
|
77
|
+
> "$root/.workflow/validate-evidence.txt" || return 1
|
|
78
|
+
printf '%s\n' ".workflow/validate-evidence.txt"
|
|
79
|
+
fi ;;
|
|
80
|
+
lifecycle-kit)
|
|
81
|
+
mkdir -p "$root/.workflow" || return 1
|
|
82
|
+
[[ -f "$root/.workflow/WORKFLOW-STATE.txt" ]] && return 0
|
|
83
|
+
printf '%s\n' "# contract: lifecycle-kit/SPEC.md §check-stage-evidence" \
|
|
84
|
+
"# One data line per stage-skill invocation: <iteration> <stage> <session-id> <date>." \
|
|
85
|
+
"" "---" "" > "$root/.workflow/WORKFLOW-STATE.txt" || return 1
|
|
86
|
+
printf '%s\n' ".workflow/WORKFLOW-STATE.txt" ;;
|
|
87
|
+
doctrine-kit)
|
|
88
|
+
# spec: doctrine-kit/SPEC.md §install-doctrine — the reference block is the kit's own installer's to write, so init calls it rather than restating the block it emits
|
|
89
|
+
( cd "$root" && bash "$pay/bin/install-doctrine.sh" "$AGENT_FILE" "doctrine-kit/DOCTRINE.md" ) >/dev/null || return 1
|
|
90
|
+
printf '%s\n' "$AGENT_FILE" ;;
|
|
91
|
+
*) : ;;
|
|
92
|
+
esac
|
|
93
|
+
}
|
package/lib/doctor.sh
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: installer/README.md §doctor — renders the toolchain floor as an exit status so init and a CI step can gate on the verdict without parsing a report, and reads the payload's own copy of the roster because at init time nothing is vendored in the consumer's tree yet
|
|
3
|
+
#
|
|
4
|
+
# usage: checkwright doctor
|
|
5
|
+
# No --dry-run: doctor writes nothing, so it has no mutating form to guard.
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
INSTALLER="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
9
|
+
FLOOR="$INSTALLER/payload/context-kit/lib/toolfloor.sh"
|
|
10
|
+
|
|
11
|
+
case "${1:-}" in
|
|
12
|
+
'') ;;
|
|
13
|
+
-h|--help)
|
|
14
|
+
printf 'usage: checkwright doctor\n\n'
|
|
15
|
+
printf 'Reports whether this machine meets the toolchain contract, and — when run\n'
|
|
16
|
+
printf 'inside a repository that has been vendored into — what is installed there.\n'
|
|
17
|
+
printf 'Exit status is the verdict: 0 meets the contract, 1 below it.\n'
|
|
18
|
+
exit 0 ;;
|
|
19
|
+
*) printf 'checkwright doctor: unknown argument: %s\n' "$1" >&2; exit 2 ;;
|
|
20
|
+
esac
|
|
21
|
+
|
|
22
|
+
[[ -f "$FLOOR" ]] || {
|
|
23
|
+
printf 'checkwright doctor: no toolchain roster in this package (%s)\n' "${FLOOR#"$INSTALLER"/}" >&2
|
|
24
|
+
printf ' help: doctor reads the roster from the package payload, which is assembled at pack time — run it from an installed package, not from a source checkout.\n' >&2
|
|
25
|
+
exit 2
|
|
26
|
+
}
|
|
27
|
+
# shellcheck source=/dev/null # payload path, assembled at pack time
|
|
28
|
+
source "$FLOOR"
|
|
29
|
+
# shellcheck source=./common/lock.sh
|
|
30
|
+
source "$INSTALLER/lib/common/lock.sh"
|
|
31
|
+
|
|
32
|
+
# spec: context-kit/SPEC.md §bin/env-probe — both version probes read from /dev/null, and `-V` is only the fallback: a tool rejecting `--version` would otherwise reach a `-V` that reads inherited stdin and hangs
|
|
33
|
+
probe_banner() { # $1 = tool -> its raw version banner, empty when the tool is absent
|
|
34
|
+
local raw
|
|
35
|
+
command -v "$1" >/dev/null 2>&1 || return 0
|
|
36
|
+
raw="$("$1" --version 2>/dev/null </dev/null)"
|
|
37
|
+
[[ -n "$raw" ]] || raw="$("$1" -V 2>/dev/null </dev/null)"
|
|
38
|
+
[[ -n "$raw" ]] || raw="present"
|
|
39
|
+
printf '%s' "$raw"
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
# spec: installer/README.md §doctor — doctor defines no floor of its own: it renders whatever verdict the payload roster's own predicate returns, so the contract has one owner and this is a display of it
|
|
43
|
+
render() { # $1 = tool, $2 = verdict words -> one report line; sets FAILED when the member is not clean
|
|
44
|
+
local tool="$1" kind found floor
|
|
45
|
+
read -r kind found floor <<<"$2"
|
|
46
|
+
case "$kind" in
|
|
47
|
+
ok) printf ' %-12s %s\n' "$tool" "${FOUND_VERSION:-present}" ;;
|
|
48
|
+
absent) printf ' %-12s %s\n' "$tool" "NOT FOUND"; FAILED=1 ;;
|
|
49
|
+
below) printf ' %-12s %s (below the floor of %s)\n' "$tool" "$found" "$floor"; FAILED=1 ;;
|
|
50
|
+
wrong-impl) printf ' %-12s %s (not the %s implementation the contract requires)\n' "$tool" "${FOUND_VERSION:-$found}" "$TOOL_FLOOR_IMPL"; FAILED=1 ;;
|
|
51
|
+
*) printf ' %-12s could not be compared against the floor of %s\n' "$tool" "$TOOL_FLOOR_MIN"; FAILED=1 ;;
|
|
52
|
+
esac
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
FAILED=0
|
|
56
|
+
printf 'toolchain\n'
|
|
57
|
+
for elem in "${PROBE_SET[@]}"; do
|
|
58
|
+
tool_floor_parse "$elem"
|
|
59
|
+
banner="$(probe_banner "$TOOL_FLOOR_NAME")"
|
|
60
|
+
FOUND_VERSION="$(tool_floor_version "$banner")"
|
|
61
|
+
render "$TOOL_FLOOR_NAME" "$(tool_floor_check "$elem" "$banner")"
|
|
62
|
+
done
|
|
63
|
+
|
|
64
|
+
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || ROOT=""
|
|
65
|
+
[[ -n "$ROOT" ]] || ROOT="$PWD"
|
|
66
|
+
LOCK="$(lock_path "$ROOT")"
|
|
67
|
+
|
|
68
|
+
if [[ ! -f "$LOCK" ]]; then
|
|
69
|
+
printf '\nNo %s here — nothing has been vendored into this directory.\n' "$CHECKWRIGHT_LOCK_FILE"
|
|
70
|
+
elif ! command -v jq >/dev/null 2>&1; then
|
|
71
|
+
printf '\nFound %s, but jq is absent, so it cannot be read.\n' "$CHECKWRIGHT_LOCK_FILE"
|
|
72
|
+
elif ! lock_schema_ok "$LOCK"; then
|
|
73
|
+
printf 'checkwright doctor: %s carries a schema this build does not know.\n' "$LOCK" >&2
|
|
74
|
+
printf ' help: this manifest was written by a different Checkwright release. Upgrade the installer rather than letting it guess at a shape it was not built for.\n' >&2
|
|
75
|
+
exit 2
|
|
76
|
+
else
|
|
77
|
+
printf '\ninstalled\n'
|
|
78
|
+
printf ' %-12s %s\n' version "$(lock_field "$LOCK" version)"
|
|
79
|
+
printf ' %-12s %s\n' commit "$(lock_field "$LOCK" commit)"
|
|
80
|
+
printf ' %-12s %s\n' profile "$(lock_field "$LOCK" profile)"
|
|
81
|
+
printf ' %-12s %s\n' kits "$(lock_field "$LOCK" kits)"
|
|
82
|
+
fi
|
|
83
|
+
|
|
84
|
+
if (( FAILED )); then
|
|
85
|
+
printf '\nDOCTOR: below contract\n'
|
|
86
|
+
printf ' help: install or upgrade each tool reported above; the floors are the ones the gate battery needs to run, not preferences.\n'
|
|
87
|
+
exit 1
|
|
88
|
+
fi
|
|
89
|
+
printf '\nDOCTOR: clean\n'
|
|
90
|
+
exit 0
|