checkwright 0.0.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +260 -4
- package/bin/checkwright.sh +53 -0
- package/lib/common/lock.sh +28 -0
- package/lib/common/profile.sh +58 -0
- package/lib/common/recipe.sh +93 -0
- package/lib/doctor.sh +90 -0
- package/lib/init.sh +289 -0
- package/package.json +15 -3
- package/payload/canon-kit/README.md +78 -0
- package/payload/canon-kit/SPEC.md +1264 -0
- package/payload/canon-kit/checks/check-amendment-queue.sh +115 -0
- package/payload/canon-kit/checks/check-comment-tier.sh +211 -0
- package/payload/canon-kit/checks/check-deprecation-task.sh +90 -0
- package/payload/canon-kit/checks/check-docs-cmd.sh +153 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +71 -0
- package/payload/canon-kit/checks/check-knob-citation.sh +117 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +239 -0
- package/payload/canon-kit/checks/check-manifest-count.sh +46 -0
- package/payload/canon-kit/checks/check-manifest-temporal.sh +83 -0
- package/payload/canon-kit/checks/check-md-refs.sh +115 -0
- package/payload/canon-kit/checks/check-prose-enum.sh +115 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +207 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +69 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +45 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +133 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +42 -0
- package/payload/canon-kit/checks/check-spec-pointer.sh +176 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +105 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +80 -0
- package/payload/canon-kit/checks/check-tracking-claim.sh +136 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +5 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +25 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +32 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +146 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.sh +6 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +21 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +98 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/bin/tool.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +18 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/demokit/index.md +5 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/demokit/index.md +6 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/SPEC.md +10 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +71 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/gate-sdk-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/SPEC.md +7 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +73 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +37 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +104 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/SPEC.md +6 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/target.md +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +127 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +15 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +21 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +20 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +63 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/doc.md +8 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/cand-tmpl.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/cand-tmpl.md +7 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +23 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/README.md +7 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/roster.list +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +86 -0
- package/payload/canon-kit/lib/spec.sh +475 -0
- package/payload/canon-kit/smoke/install.sh +36 -0
- package/payload/canon-kit/smoke/violation.sh +22 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +55 -0
- package/payload/canon-kit/templates/canon-config.sh +2 -0
- package/payload/context-kit/README.md +82 -0
- package/payload/context-kit/SPEC.md +785 -0
- package/payload/context-kit/bin/always-loaded.sh +86 -0
- package/payload/context-kit/bin/env-probe.sh +144 -0
- package/payload/context-kit/bin/footprint.sh +144 -0
- package/payload/context-kit/bin/md-index.sh +80 -0
- package/payload/context-kit/bin/md-section.sh +63 -0
- package/payload/context-kit/bin/pub-index.sh +90 -0
- package/payload/context-kit/bin/run-index-tests.sh +91 -0
- package/payload/context-kit/checks/check-brevity.sh +123 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +38 -0
- package/payload/context-kit/checks/check-memory-off.sh +112 -0
- package/payload/context-kit/checks/check-settings-pins.sh +110 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +14 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +20 -0
- package/payload/context-kit/gate-tests/check-brevity/good/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +89 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +11 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +12 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/memory/example-fact.md +6 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/memory/.gitkeep +0 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +54 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings.json +6 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings.json +6 -0
- package/payload/context-kit/index-tests/corpus/baseline.txt +2 -0
- package/payload/context-kit/index-tests/corpus/hook-sample.txt +4 -0
- package/payload/context-kit/index-tests/corpus/sample.md +23 -0
- package/payload/context-kit/index-tests/corpus/sample.rs +24 -0
- package/payload/context-kit/index-tests/corpus/sample.ts +34 -0
- package/payload/context-kit/index-tests/corpus/surface.md +6 -0
- package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -0
- package/payload/context-kit/index-tests/expected/md-index.txt +6 -0
- package/payload/context-kit/index-tests/expected/md-section.txt +6 -0
- package/payload/context-kit/index-tests/expected/pub-index-shadow.txt +2 -0
- package/payload/context-kit/index-tests/expected/pub-index-ts.txt +12 -0
- package/payload/context-kit/index-tests/expected/pub-index.txt +10 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +14 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +29 -0
- package/payload/context-kit/lib/pub-lang/rust.sh +26 -0
- package/payload/context-kit/lib/pub-lang/ts.sh +32 -0
- package/payload/context-kit/lib/toolfloor.sh +47 -0
- package/payload/context-kit/smoke/agents-md.sh +116 -0
- package/payload/context-kit/smoke/install.sh +60 -0
- package/payload/context-kit/smoke/violation.sh +21 -0
- package/payload/context-kit/templates/close-brevity.md +30 -0
- package/payload/context-kit/templates/context-config.sh +2 -0
- package/payload/context-kit/templates/session-context.sh +133 -0
- package/payload/context-kit/templates/settings-sessionstart.json +12 -0
- package/payload/delegation-kit/README.md +87 -0
- package/payload/delegation-kit/SPEC.md +780 -0
- package/payload/delegation-kit/bin/run-budget-guard-tests.sh +88 -0
- package/payload/delegation-kit/bin/run-trend-tests.sh +63 -0
- package/payload/delegation-kit/bin/run-usage-tests.sh +226 -0
- package/payload/delegation-kit/bin/usage-trend.sh +120 -0
- package/payload/delegation-kit/bin/usage-verdict.sh +144 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +139 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +76 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/added-exemptions +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +9 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +4 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +20 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +5 -0
- package/payload/delegation-kit/lib/delegation.sh +81 -0
- package/payload/delegation-kit/smoke/install.sh +61 -0
- package/payload/delegation-kit/smoke/violation.sh +16 -0
- package/payload/delegation-kit/templates/agent-budget-guard.sh +18 -0
- package/payload/delegation-kit/templates/agent-execution.md +136 -0
- package/payload/delegation-kit/templates/delegation-config.sh +2 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +60 -0
- package/payload/delegation-kit/templates/statusline-usage.sh +79 -0
- package/payload/delegation-kit/templates/usage-poller.sh +67 -0
- package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +20 -0
- package/payload/delegation-kit/usage-tests/cases.tsv +44 -0
- package/payload/delegation-kit/usage-tests/trend-history.log +20 -0
- package/payload/doctrine-kit/DOCTRINE.md +386 -0
- package/payload/doctrine-kit/README.md +70 -0
- package/payload/doctrine-kit/SPEC.md +233 -0
- package/payload/doctrine-kit/bin/install-doctrine.sh +44 -0
- package/payload/doctrine-kit/bin/stage-rules.sh +51 -0
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +216 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/AGENT.md +14 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/AGENT.md +15 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +208 -0
- package/payload/doctrine-kit/lib/doctrine.sh +29 -0
- package/payload/doctrine-kit/smoke/install.sh +24 -0
- package/payload/doctrine-kit/smoke/violation.sh +13 -0
- package/payload/drift-kit/README.md +115 -0
- package/payload/drift-kit/SPEC.md +828 -0
- package/payload/drift-kit/bin/drift-report.sh +152 -0
- package/payload/drift-kit/bin/kfric.sh +42 -0
- package/payload/drift-kit/bin/overhead-meter.sh +106 -0
- package/payload/drift-kit/bin/stage-economics.sh +311 -0
- package/payload/drift-kit/bin/trajectory.sh +242 -0
- package/payload/drift-kit/kpis/kpi-always-loaded.sh +39 -0
- package/payload/drift-kit/kpis/kpi-amendment-age.sh +33 -0
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +44 -0
- package/payload/drift-kit/kpis/kpi-gate-backlog.sh +52 -0
- package/payload/drift-kit/kpis/kpi-gate-runtime.sh +31 -0
- package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +21 -0
- package/payload/drift-kit/kpis/kpi-overhead.sh +44 -0
- package/payload/drift-kit/kpis/kpi-price-table-age.sh +68 -0
- package/payload/drift-kit/kpis/kpi-prompt-friction.sh +38 -0
- package/payload/drift-kit/kpis/kpi-settings-local.sh +21 -0
- package/payload/drift-kit/kpis/kpi-task-split.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +348 -0
- package/payload/drift-kit/smoke/overhead-fixture.jsonl +4 -0
- package/payload/drift-kit/templates/close-knowledge.md +24 -0
- package/payload/drift-kit/templates/drift-config.sh +2 -0
- package/payload/drift-kit/templates/economics.md +45 -0
- package/payload/drift-kit/templates/kpi-deprecated-surface.sh +32 -0
- package/payload/drift-kit/templates/kpis.list +22 -0
- package/payload/drift-kit/templates/price-table.tsv +21 -0
- package/payload/evidence-kit/README.md +59 -0
- package/payload/evidence-kit/SPEC.md +261 -0
- package/payload/evidence-kit/bin/diff-baseline.sh +34 -0
- package/payload/evidence-kit/bin/run-validate.sh +82 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +103 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +104 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +84 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +107 -0
- package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +82 -0
- package/payload/evidence-kit/lib/evidence.sh +173 -0
- package/payload/evidence-kit/smoke/install.sh +45 -0
- package/payload/evidence-kit/smoke/violation.sh +8 -0
- package/payload/evidence-kit/templates/evidence-config.sh +2 -0
- package/payload/gate-sdk/README.md +124 -0
- package/payload/gate-sdk/SPEC.md +1861 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +272 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +267 -0
- package/payload/gate-sdk/bin/install-hooks.sh +48 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +112 -0
- package/payload/gate-sdk/bin/run-gate-tests.sh +128 -0
- package/payload/gate-sdk/bin/run-gates.sh +147 -0
- package/payload/gate-sdk/bin/upgrade-smoke.sh +163 -0
- package/payload/gate-sdk/checks/check-action-pinning.sh +55 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +219 -0
- package/payload/gate-sdk/checks/check-assertion-strength.sh +134 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +50 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +43 -0
- package/payload/gate-sdk/checks/check-core-files.sh +52 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +37 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +76 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +123 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +106 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +84 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +92 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +65 -0
- package/payload/gate-sdk/checks/check-graph.sh +632 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +45 -0
- package/payload/gate-sdk/checks/check-identity.sh +134 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +94 -0
- package/payload/gate-sdk/checks/check-kit-registration.sh +68 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +102 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +148 -0
- package/payload/gate-sdk/checks/check-root-tiering.sh +66 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +55 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +53 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +126 -0
- package/payload/gate-sdk/checks/check-test-hermetic.sh +119 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +61 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/mutable.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/nested/pinned.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/nested/deep.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/no-refs.yaml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/pinned.yml +10 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/ci.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/action.yml +14 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/not-actions.yml +16 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/ci.yml +106 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +88 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/msg.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +73 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/core-files.list +3 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/core-files.list +5 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/nested/also-present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/projection.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +46 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-baz.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-foo.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +20 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-baz.sh +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-foo.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/check-gamma.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/check-beta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gates.list +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +20 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +51 -0
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +55 -0
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +63 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-remotes +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-remotes +3 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +20 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +75 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/checks/check-gamma-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/README.md +16 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/beta-kit/smoke/install.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/allow.list +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/stray.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/allow.list +3 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/LICENSE +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/somedir/keep.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/warn.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/ok.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/violation.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +9 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/agent-budget-guard.sh +17 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/delegation-config.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/usage-poller.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/delegation-config.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/leaky.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/exempt.test.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/sourced.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/leak.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/clean.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/payload.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/wire.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +87 -0
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +78 -0
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +77 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +32 -0
- package/payload/gate-sdk/lib/gate.sh +216 -0
- package/payload/gate-sdk/lib/inject.sh +35 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +11 -0
- package/payload/gate-sdk/smoke/install.sh +84 -0
- package/payload/gate-sdk/smoke/violation.sh +13 -0
- package/payload/gate-sdk/templates/check-skeleton.sh +23 -0
- package/payload/gate-sdk/templates/gates-workflow.yml +55 -0
- package/payload/gate-sdk/templates/msg-patterns.list +21 -0
- package/payload/guard-kit/README.md +65 -0
- package/payload/guard-kit/SPEC.md +590 -0
- package/payload/guard-kit/bin/compare-settings-allow.sh +58 -0
- package/payload/guard-kit/bin/run-guard-tests.sh +86 -0
- package/payload/guard-kit/bin/scan-prompts.sh +166 -0
- package/payload/guard-kit/bin/scratch-run.sh +34 -0
- package/payload/guard-kit/gate-tests/scan-prompts.test.sh +70 -0
- package/payload/guard-kit/gate-tests/scratch-run.test.sh +62 -0
- package/payload/guard-kit/guard-tests/cases.tsv +117 -0
- package/payload/guard-kit/guard-tests/escalation-cases.tsv +13 -0
- package/payload/guard-kit/lib/guard.sh +448 -0
- package/payload/guard-kit/smoke/install.sh +26 -0
- package/payload/guard-kit/templates/bash-guard.sh +18 -0
- package/payload/guard-kit/templates/close-triage.md +31 -0
- package/payload/guard-kit/templates/escalation-guard.sh +27 -0
- package/payload/guard-kit/templates/guard-config.sh +2 -0
- package/payload/guard-kit/templates/settings-hooks.json +19 -0
- package/payload/guard-kit/templates/wakeup-guard.sh +20 -0
- package/payload/lifecycle-kit/README.md +106 -0
- package/payload/lifecycle-kit/SPEC.md +1469 -0
- package/payload/lifecycle-kit/bin/close-surfaces.sh +94 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +215 -0
- package/payload/lifecycle-kit/bin/file-gap.sh +43 -0
- package/payload/lifecycle-kit/bin/install-lifecycle.sh +36 -0
- package/payload/lifecycle-kit/bin/session-id.sh +75 -0
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +63 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +98 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +54 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +69 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +97 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +59 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +197 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +81 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +47 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +96 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +66 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/evidence.txt +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/evidence.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +56 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +59 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +6 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +5 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +113 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/commands/build.md +6 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +80 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/commands/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +84 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +251 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +115 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
- package/payload/lifecycle-kit/lib/stages.sh +179 -0
- package/payload/lifecycle-kit/smoke/install.sh +341 -0
- package/payload/lifecycle-kit/smoke/violation.sh +8 -0
- package/payload/lifecycle-kit/templates/lead.md +271 -0
- package/payload/lifecycle-kit/templates/lifecycle-config.sh +2 -0
- package/payload/lifecycle-kit/templates/skills/align.md +65 -0
- package/payload/lifecycle-kit/templates/skills/build.md +78 -0
- package/payload/lifecycle-kit/templates/skills/close.md +122 -0
- package/payload/lifecycle-kit/templates/skills/release-sweep.md +39 -0
- package/payload/lifecycle-kit/templates/skills/scope.md +112 -0
- package/payload/lifecycle-kit/templates/skills/spec.md +91 -0
- package/payload/lifecycle-kit/templates/skills/upgrade.md +41 -0
- package/payload/lifecycle-kit/templates/skills/validate.md +54 -0
- package/payload/queue-kit/README.md +62 -0
- package/payload/queue-kit/SPEC.md +366 -0
- package/payload/queue-kit/bin/lesson-sink.sh +28 -0
- package/payload/queue-kit/bin/queue-index.sh +131 -0
- package/payload/queue-kit/checks/check-queue-hygiene.sh +81 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +63 -0
- package/payload/queue-kit/checks/check-queue-sections.sh +44 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +63 -0
- package/payload/queue-kit/checks/check-queue-wrap.sh +56 -0
- package/payload/queue-kit/checks/check-tag-lead-line.sh +66 -0
- package/payload/queue-kit/checks/check-task-conservation.sh +50 -0
- package/payload/queue-kit/checks/check-task-names.sh +128 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/TASK-QUEUE.md +13 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +4 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +19 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +5 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +22 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +29 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +118 -0
- package/payload/queue-kit/lib/queue.sh +107 -0
- package/payload/queue-kit/smoke/install.sh +21 -0
- package/payload/queue-kit/smoke/violation.sh +8 -0
- package/payload/queue-kit/templates/TASK-QUEUE.md +43 -0
- package/payload/queue-kit/templates/queue-config.sh +2 -0
- package/payload/site-kit/README.md +61 -0
- package/payload/site-kit/SPEC.md +263 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +80 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +167 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/README.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/docs/posts/2026-01-01-legacy.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/index.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/pkg/gate-tests/fixture.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/args +8 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/tree/docs/install.md +38 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/args +6 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/tree/docs/install.md +35 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +87 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +80 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +90 -0
- package/payload/site-kit/lib/site.sh +29 -0
- package/payload/site-kit/smoke/install.sh +26 -0
- package/payload/site-kit/smoke/violation.sh +20 -0
- package/payload/site-kit/templates/site-health.yml +164 -0
- package/profiles.list +53 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral coverage the one good/bad pair cannot hold: the knob's owning SPEC is
|
|
3
|
+
# resolved by its prefix, not the citing file's kit (a widget-kit source citing a
|
|
4
|
+
# GATE_SDK_ knob couples to gate-sdk's SPEC); a default the owning SPEC never states
|
|
5
|
+
# fires "stated nowhere"; and the three skip classes — a descriptively-stated
|
|
6
|
+
# default, a guarded array, an empty fallback, and a deferral expression whose tail
|
|
7
|
+
# the SPEC states — are counted, not flagged. A GATE_SDK_KIT_DIRS override makes two
|
|
8
|
+
# sandbox kits the whole roster, deterministic and independent of the real tree.
|
|
9
|
+
#
|
|
10
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
11
|
+
set -uo pipefail
|
|
12
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
13
|
+
|
|
14
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # canon-kit/
|
|
15
|
+
GATE="$DIR/checks/check-knob-default-coupling.sh"
|
|
16
|
+
SANDBOX="$(mktemp -d)"
|
|
17
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
18
|
+
|
|
19
|
+
fails=0
|
|
20
|
+
mkdir -p "$SANDBOX/gate-sdk" "$SANDBOX/widget-kit/lib"
|
|
21
|
+
|
|
22
|
+
run_gate() { # echoes gate output; roster is the two sandbox kits
|
|
23
|
+
( cd "$SANDBOX" && env GATE_SDK_KIT_DIRS="gate-sdk widget-kit" GATE_SDK_ROOT="$DIR/../gate-sdk" "$GATE" 2>&1 )
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
check_case() { # $1=label $2=want-rc $3=want-substring
|
|
27
|
+
local label="$1" want="$2" sub="$3" out rc
|
|
28
|
+
out="$(run_gate)"; rc=$?
|
|
29
|
+
if [[ "$rc" -ne "$want" ]]; then
|
|
30
|
+
echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
|
|
31
|
+
fi
|
|
32
|
+
if [[ -n "$sub" ]] && ! grep -qF -- "$sub" <<<"$out"; then
|
|
33
|
+
echo " FAIL [$label]: exit $rc OK but output lacks '$sub':"; printf ' %s\n' "$out"
|
|
34
|
+
fails=$((fails + 1))
|
|
35
|
+
fi
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
# gate-sdk owns GATE_SDK_QUEUE_FILE and states its default; widget-kit source cites
|
|
39
|
+
# it (cross-kit) and defines its own knobs the three skip classes cover. All clean.
|
|
40
|
+
cat >"$SANDBOX/gate-sdk/SPEC.md" <<'EOF'
|
|
41
|
+
# gate-sdk — SPEC
|
|
42
|
+
|
|
43
|
+
- `GATE_SDK_QUEUE_FILE` — default `TASK-QUEUE.md`.
|
|
44
|
+
EOF
|
|
45
|
+
cat >"$SANDBOX/widget-kit/SPEC.md" <<'EOF'
|
|
46
|
+
# widget-kit — SPEC
|
|
47
|
+
|
|
48
|
+
- `WIDGET_KIT_TRIGGER_REGEX` — default = the shipped phrase set.
|
|
49
|
+
- `WIDGET_KIT_INHERITED` — default `${GATE_SDK_QUEUE_FILE:-TASK-QUEUE.md}`.
|
|
50
|
+
EOF
|
|
51
|
+
cat >"$SANDBOX/widget-kit/lib/widget.sh" <<'EOF'
|
|
52
|
+
#!/usr/bin/env bash
|
|
53
|
+
: "${GATE_SDK_QUEUE_FILE:-TASK-QUEUE.md}" # owning SPEC is gate-sdk's
|
|
54
|
+
: "${WIDGET_KIT_TRIGGER_REGEX:-a|b(c|d)}" # descriptively stated — skip
|
|
55
|
+
: "${WIDGET_KIT_INHERITED:-TASK-QUEUE.md}" # deferral tail the SPEC states — clean
|
|
56
|
+
: "${WIDGET_KIT_PRUNE:-}" # empty fallback (set -u guard) — skip
|
|
57
|
+
[[ -v WIDGET_KIT_SECTIONS ]] || WIDGET_KIT_SECTIONS=(a b) # array default — skip
|
|
58
|
+
EOF
|
|
59
|
+
check_case "cross-kit-owner-and-skips-clean" 0 "KNOB-DEFAULT-COUPLING: clean"
|
|
60
|
+
|
|
61
|
+
# A knob whose owning SPEC states no default at all fires "stated nowhere".
|
|
62
|
+
cat >"$SANDBOX/widget-kit/lib/widget.sh" <<'EOF'
|
|
63
|
+
#!/usr/bin/env bash
|
|
64
|
+
: "${WIDGET_KIT_UNDOCUMENTED:-value.md}"
|
|
65
|
+
EOF
|
|
66
|
+
check_case "absent-default-fires" 1 "stated nowhere in the owning SPEC"
|
|
67
|
+
|
|
68
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
69
|
+
echo "check-knob-default-coupling.test.sh: $fails case(s) failed"
|
|
70
|
+
exit 1
|
|
71
|
+
fi
|
|
72
|
+
echo "check-knob-default-coupling.test.sh: clean (cross-kit owning SPEC + descriptive/array/empty/deferral skips + absent-default fires)"
|
|
73
|
+
exit 0
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Widget — a manifest restating governed totals
|
|
2
|
+
|
|
3
|
+
This kit ships six gates today. The registry is the owner of that number, yet
|
|
4
|
+
this prose pins its own copy, which drifts the moment a gate lands.
|
|
5
|
+
|
|
6
|
+
It also claims three KPIs, a second restated total.
|
|
7
|
+
|
|
8
|
+
A modifier wedged between the cardinal and the noun hides the same pin: the
|
|
9
|
+
widget enforces nine generic rules, and three governed stages sequence them.
|
|
10
|
+
|
|
11
|
+
Naming an ordered collection's endpoints pins it twice over — rules 1-8 rot on
|
|
12
|
+
the next append, as does the battery's gates 1-42.
|
|
13
|
+
|
|
14
|
+
A prose wrap hides the same pin from a per-line scan: this suite ships two
|
|
15
|
+
governed gates today, its cardinal and noun straddling the line break.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
restated collection total
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Widget — a manifest whose counts all cite or are exempt
|
|
2
|
+
|
|
3
|
+
The widget's gates live in `gates.list`; the doc names that owner rather than
|
|
4
|
+
pinning a total, so nothing here restates a governed collection's size.
|
|
5
|
+
|
|
6
|
+
Thresholds and rates are rules, not totals: a suite needs at least three gates,
|
|
7
|
+
runs up to twelve checks, and ≥ 2 kits must vendor it; each stage fans out to
|
|
8
|
+
five gates per kit.
|
|
9
|
+
|
|
10
|
+
Partitions classify, they do not count: all but two stages are idempotent.
|
|
11
|
+
|
|
12
|
+
A bound stays a bound across a prose wrap: a suite needs at least three
|
|
13
|
+
gates, the paragraph-join reading the comparator that precedes the cardinal.
|
|
14
|
+
|
|
15
|
+
Proportions restate no total on either side, numerator or denominator:
|
|
16
|
+
|
|
17
|
+
- three of the twelve gates were red last release
|
|
18
|
+
- six of the gates are meta-gates
|
|
19
|
+
- nine out of ten kits vendor the runner unchanged
|
|
20
|
+
|
|
21
|
+
A modifier wedge wider than the window reads as prose: nine plainly generic scanning rules.
|
|
22
|
+
|
|
23
|
+
A cardinal named in `six gates` inline code is a meta-reference, and a fenced
|
|
24
|
+
example is skipped entirely:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
This kit ships six gates and seven checks.
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Singleton idioms use the word "one", outside the cardinal grammar: one owner
|
|
31
|
+
per fact, one iteration per kit.
|
|
32
|
+
|
|
33
|
+
The count of contracts is not a governed collection here, so honoring the four
|
|
34
|
+
contracts reads clean.
|
|
35
|
+
|
|
36
|
+
<!-- manifest-count-exempt: this line legitimately fixes the historical total -->
|
|
37
|
+
The pilot shipped with six gates before the registry existed.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
MANIFEST-COUNT: clean
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of the config-driven paths the one-pair good/bad harness
|
|
3
|
+
# cannot hold with stock defaults: a consumer-appended collection noun and the
|
|
4
|
+
# CANON_KIT_COUNT_ALLOWED_PHRASES containment exemption. The allowlist ships
|
|
5
|
+
# empty, so only a config that both governs a noun and allowlists a phrase
|
|
6
|
+
# containing it exercises the exemption — which run-gate-tests passes to no
|
|
7
|
+
# fixture. The good/bad pair covers the cardinal+noun shapes (adjacent, wedged,
|
|
8
|
+
# noun-then-range, wrapped) and the mechanical exemptions (threshold, per,
|
|
9
|
+
# partition, partitive, inline-code, fence, per-site marker); these cases cover
|
|
10
|
+
# the knobs, plus the paragraph-join edges the pair's expect.txt substring
|
|
11
|
+
# cannot pin: which physical line a wrapped span reports at, that the join never
|
|
12
|
+
# double-reports a same-line hit, and that a paragraph break blocks the join.
|
|
13
|
+
#
|
|
14
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
15
|
+
set -uo pipefail
|
|
16
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
17
|
+
|
|
18
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # canon-kit/
|
|
19
|
+
GATE="$DIR/checks/check-manifest-count.sh"
|
|
20
|
+
SANDBOX="$(mktemp -d)"
|
|
21
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
22
|
+
|
|
23
|
+
fails=0
|
|
24
|
+
|
|
25
|
+
cat >"$SANDBOX/cfg.sh" <<'EOF'
|
|
26
|
+
CANON_KIT_COUNT_COLLECTIONS=("contracts")
|
|
27
|
+
CANON_KIT_COUNT_ALLOWED_PHRASES=("the four contracts")
|
|
28
|
+
EOF
|
|
29
|
+
|
|
30
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
31
|
+
# consumer — SPEC
|
|
32
|
+
|
|
33
|
+
The gate suite honors the four contracts, a fixed named set the doc may cite.
|
|
34
|
+
|
|
35
|
+
A growing collection is different: this kit ships six contracts now.
|
|
36
|
+
EOF
|
|
37
|
+
|
|
38
|
+
check_case() { # $1=label $2=want-rc $3=want-substring $4..=env assignments
|
|
39
|
+
local label="$1" want="$2" sub="$3"; shift 3
|
|
40
|
+
local out rc
|
|
41
|
+
out="$(cd "$SANDBOX" && env "$@" "$GATE" 2>&1)"; rc=$?
|
|
42
|
+
if [[ "$rc" -ne "$want" ]]; then
|
|
43
|
+
echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
|
|
44
|
+
fi
|
|
45
|
+
if [[ -n "$sub" ]] && ! grep -qF -- "$sub" <<<"$out"; then
|
|
46
|
+
echo " FAIL [$label]: exit $rc OK but output lacks '$sub':"; printf ' %s\n' "$out"
|
|
47
|
+
fails=$((fails + 1))
|
|
48
|
+
fi
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
# Consumer governs "contracts": the growing "six contracts" total trips, while
|
|
52
|
+
# the allowlisted fixed set "the four contracts" is exempt — so the run fails
|
|
53
|
+
# on the growing total and its message never names the allowlisted phrase.
|
|
54
|
+
check_case "governed-noun-trips" 1 "six contracts" CANON_KIT_CONFIG_FILE="$SANDBOX/cfg.sh"
|
|
55
|
+
|
|
56
|
+
out="$(cd "$SANDBOX" && env CANON_KIT_CONFIG_FILE="$SANDBOX/cfg.sh" "$GATE" 2>&1)"
|
|
57
|
+
if grep -qF -- "four contracts" <<<"$out"; then
|
|
58
|
+
echo " FAIL [allowlist-exempt]: allowlisted 'the four contracts' was flagged:"
|
|
59
|
+
printf ' %s\n' "$out"; fails=$((fails + 1))
|
|
60
|
+
fi
|
|
61
|
+
|
|
62
|
+
# Stock defaults do not govern "contracts", so the same manifest is clean —
|
|
63
|
+
# a non-governed count-noun is never a hit, allowlist or not.
|
|
64
|
+
check_case "ungoverned-noun-clean" 0 "MANIFEST-COUNT: clean"
|
|
65
|
+
|
|
66
|
+
# The paragraph-join window: a total split across a prose wrap is reported at the
|
|
67
|
+
# span's *first* physical line (the cardinal's), not the line the noun completes
|
|
68
|
+
# it on, and a per-line hit is never double-reported by the join.
|
|
69
|
+
mkdir -p "$SANDBOX/wrap"
|
|
70
|
+
cat >"$SANDBOX/wrap/SPEC.md" <<'EOF'
|
|
71
|
+
# wrap — SPEC
|
|
72
|
+
|
|
73
|
+
Prose that pins a total across the
|
|
74
|
+
wrap: this suite ships two
|
|
75
|
+
governed gates today.
|
|
76
|
+
EOF
|
|
77
|
+
out="$(cd "$SANDBOX/wrap" && "$GATE" 2>&1)"; rc=$?
|
|
78
|
+
if [[ "$rc" -ne 1 ]]; then
|
|
79
|
+
echo " FAIL [wrap-flagged]: want exit 1, got $rc -- $out"; fails=$((fails + 1))
|
|
80
|
+
elif ! grep -qF -- "SPEC.md:4 restated collection total: two" <<<"$out"; then
|
|
81
|
+
echo " FAIL [wrap-first-line]: wrapped total not reported at its first physical line:"
|
|
82
|
+
printf ' %s\n' "$out"; fails=$((fails + 1))
|
|
83
|
+
elif [[ "$(grep -c 'restated collection total' <<<"$out")" -ne 1 ]]; then
|
|
84
|
+
echo " FAIL [wrap-single-report]: the join double-reported a span:"
|
|
85
|
+
printf ' %s\n' "$out"; fails=$((fails + 1))
|
|
86
|
+
fi
|
|
87
|
+
|
|
88
|
+
# A blank line ends the paragraph, so a cardinal and a noun that merely abut
|
|
89
|
+
# across a paragraph break never join into a phantom total.
|
|
90
|
+
cat >"$SANDBOX/wrap/SPEC.md" <<'EOF'
|
|
91
|
+
# wrap — SPEC
|
|
92
|
+
|
|
93
|
+
The registry holds two
|
|
94
|
+
|
|
95
|
+
gates own their own totals, per `gates.list`.
|
|
96
|
+
EOF
|
|
97
|
+
check_case "paragraph-break-no-join" 0 "MANIFEST-COUNT: clean"
|
|
98
|
+
|
|
99
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
100
|
+
echo "check-manifest-count.test.sh: $fails case(s) failed"
|
|
101
|
+
exit 1
|
|
102
|
+
fi
|
|
103
|
+
echo "check-manifest-count.test.sh: clean (governed-noun trip + allowlist containment + ungoverned-noun clean + wrapped-total first-line report + paragraph-break non-join)"
|
|
104
|
+
exit 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
temporal-narration marker
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Widget — a current-behavior manifest
|
|
2
|
+
|
|
3
|
+
The widget scans one designated file and emits a report; it couples to
|
|
4
|
+
`graph.txt`. Everything here states what the widget does today.
|
|
5
|
+
|
|
6
|
+
A marker named in inline code like `previously` or `formerly` is a
|
|
7
|
+
meta-reference to the vocabulary, not narration, so it never trips the gate.
|
|
8
|
+
|
|
9
|
+
<!-- manifest-temporal-exempt: legitimately documents the prior name -->
|
|
10
|
+
The setting was renamed from `old_key`; this note is deliberate provenance.
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
# a fenced example may quote a marker: previously, no longer, used to be
|
|
14
|
+
echo current-behavior-only
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The report lists each rule and its owner.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
MANIFEST-TEMPORAL: clean
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
doc.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
is not a tracked file or directory
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
doc.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
MD-REFS: clean
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# target
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of the self-repo blob-link pass the one-pair good/bad harness
|
|
3
|
+
# cannot hold: it runs each case with `cd casedir` inside *this* repo, so its
|
|
4
|
+
# origin is fixed and its self-repo links would break for a consumer whose
|
|
5
|
+
# origin differs. These cases build throwaway git repos with a controlled
|
|
6
|
+
# origin, so the origin-derived identity, the git@/https normalization, and the
|
|
7
|
+
# no-origin skip are exercised hermetically.
|
|
8
|
+
#
|
|
9
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
10
|
+
set -uo pipefail
|
|
11
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
12
|
+
|
|
13
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # canon-kit/
|
|
14
|
+
GATE="$DIR/checks/check-md-refs.sh"
|
|
15
|
+
|
|
16
|
+
fails=0
|
|
17
|
+
|
|
18
|
+
# Build a throwaway git repo with $1 as origin (empty ⇒ no origin) and a doc.md
|
|
19
|
+
# carrying the link line $2; target.md holds one "## Target Heading" section.
|
|
20
|
+
make_repo() { # $1=origin-url $2=doc-link-line -> echoes the sandbox path
|
|
21
|
+
local origin="$1" link="$2" sb
|
|
22
|
+
sb="$(mktemp -d)"
|
|
23
|
+
git -C "$sb" init -q
|
|
24
|
+
git -C "$sb" config user.email t@example.com
|
|
25
|
+
git -C "$sb" config user.name test
|
|
26
|
+
[[ -n "$origin" ]] && git -C "$sb" remote add origin "$origin"
|
|
27
|
+
printf '# target\n\n## Target Heading\n' >"$sb/target.md"
|
|
28
|
+
printf '# doc\n\n%s\n' "$link" >"$sb/doc.md"
|
|
29
|
+
git -C "$sb" add -A
|
|
30
|
+
printf '%s' "$sb"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
check_case() { # $1=label $2=origin $3=link $4=want-rc $5=want-substring $6..=env
|
|
34
|
+
local label="$1" origin="$2" link="$3" want="$4" sub="$5"; shift 5
|
|
35
|
+
local sb out rc
|
|
36
|
+
sb="$(make_repo "$origin" "$link")"
|
|
37
|
+
out="$(cd "$sb" && env "$@" "$GATE" doc.md 2>&1)"; rc=$?
|
|
38
|
+
rm -rf "$sb"
|
|
39
|
+
if [[ "$rc" -ne "$want" ]]; then
|
|
40
|
+
echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
|
|
41
|
+
fi
|
|
42
|
+
if [[ -n "$sub" ]] && ! grep -qF -- "$sub" <<<"$out"; then
|
|
43
|
+
echo " FAIL [$label]: exit $rc OK but output lacks '$sub':"; printf ' %s\n' "$out"
|
|
44
|
+
fails=$((fails + 1))
|
|
45
|
+
fi
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
BLOB=https://github.com/acme/widget/blob/master
|
|
49
|
+
|
|
50
|
+
# git@ origin: a self-repo link to a tracked path + real anchor resolves.
|
|
51
|
+
check_case "gitat-good" "git@github.com:acme/widget.git" \
|
|
52
|
+
"See [spec]($BLOB/target.md#target-heading)." 0 "1 self-repo reference link"
|
|
53
|
+
|
|
54
|
+
# https origin normalizes to the same identity — the same link resolves.
|
|
55
|
+
check_case "https-good" "https://github.com/acme/widget.git" \
|
|
56
|
+
"See [spec]($BLOB/target.md#target-heading)." 0 "1 self-repo reference link"
|
|
57
|
+
|
|
58
|
+
# A self-repo link to a path no git tracks is a dangle, caught.
|
|
59
|
+
check_case "dangling-path" "git@github.com:acme/widget.git" \
|
|
60
|
+
"See [spec]($BLOB/missing.md)." 1 "is not a git-tracked file"
|
|
61
|
+
|
|
62
|
+
# A tracked path with an anchor that slugs to no heading is caught.
|
|
63
|
+
check_case "bad-anchor" "git@github.com:acme/widget.git" \
|
|
64
|
+
"See [spec]($BLOB/target.md#no-such-heading)." 1 "no heading in"
|
|
65
|
+
|
|
66
|
+
# No origin ⇒ the pass is skipped: the same dangling link is treated as an
|
|
67
|
+
# external URL and never resolved, so the doc is clean.
|
|
68
|
+
check_case "no-origin-skip" "" \
|
|
69
|
+
"See [spec]($BLOB/missing.md)." 0 "0 self-repo reference link"
|
|
70
|
+
|
|
71
|
+
# The blob ref is a knob: a link on a different ref than the configured one is
|
|
72
|
+
# not a self-repo link (foreign identity), so it is skipped, not resolved.
|
|
73
|
+
check_case "ref-knob" "git@github.com:acme/widget.git" \
|
|
74
|
+
"See [spec](https://github.com/acme/widget/blob/main/missing.md)." 0 \
|
|
75
|
+
"0 self-repo reference link" CANON_KIT_DOCS_BLOB_REF=master
|
|
76
|
+
|
|
77
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
78
|
+
echo "check-md-refs.test.sh: $fails case(s) failed"
|
|
79
|
+
exit 1
|
|
80
|
+
fi
|
|
81
|
+
echo "check-md-refs.test.sh: clean (self-repo pass: git@/https identity, dangle, bad anchor, no-origin skip, ref knob — 6 cases)"
|
|
82
|
+
exit 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
but omits: gamma
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: canon-kit/SPEC.md §check-prose-enum — fixture consumer config: one three-member set so the pair exercises the gate the empty default would clean-skip
|
|
3
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
4
|
+
CANON_KIT_ENUM_SETS_CMD='printf "sig\talpha\nsig\tbeta\nsig\tgamma\n"'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Good — complete lists, scattered mentions, and marked subsets
|
|
2
|
+
|
|
3
|
+
The signals alpha, beta, gamma are the whole set, named in one hand list,
|
|
4
|
+
so nothing dropped out.
|
|
5
|
+
|
|
6
|
+
A lone mention of alpha is not a list; beta turns up in a wholly separate
|
|
7
|
+
clause much later in this same paragraph, never adjacent to it, so the two
|
|
8
|
+
read as mentions, not an enumeration.
|
|
9
|
+
|
|
10
|
+
Illustrative subsets mark themselves as partial: signals such as alpha and
|
|
11
|
+
beta cover the common path.
|
|
12
|
+
|
|
13
|
+
A partitive names a selection, not the set: any of alpha, beta may fire first.
|
|
14
|
+
|
|
15
|
+
<!-- prose-enum-exempt: alpha and beta are the fast pair; gamma is the slow fallback, not a dropped member -->
|
|
16
|
+
The fast pair alpha/beta short-circuits before gamma is ever consulted.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
PROSE-ENUM: clean
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: canon-kit/SPEC.md §check-prose-enum — fixture consumer config: one three-member set so the pair exercises the gate the empty default would clean-skip
|
|
3
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
4
|
+
CANON_KIT_ENUM_SETS_CMD='printf "sig\talpha\nsig\tbeta\nsig\tgamma\n"'
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of the config-driven paths the one-pair good/bad harness
|
|
3
|
+
# cannot hold: the empty-default clean skip, the fail-closed escapes (a sets
|
|
4
|
+
# command that errors, a line that does not parse), bracketed-vs-bare member
|
|
5
|
+
# matching, multi-set independence, and the subset/partitive/per-site exempt
|
|
6
|
+
# escapes. The good/bad pair covers a bare comma hand list dropping a member
|
|
7
|
+
# and the marked-subset good cases with the stock printf set; these cases reach
|
|
8
|
+
# what a single set command and manifest cannot.
|
|
9
|
+
#
|
|
10
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
11
|
+
set -uo pipefail
|
|
12
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
13
|
+
|
|
14
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # canon-kit/
|
|
15
|
+
GATE="$DIR/checks/check-prose-enum.sh"
|
|
16
|
+
SANDBOX="$(mktemp -d)"
|
|
17
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
18
|
+
|
|
19
|
+
fails=0
|
|
20
|
+
|
|
21
|
+
check_case() { # $1=label $2=want-rc $3=want-substring $4..=env assignments
|
|
22
|
+
local label="$1" want="$2" sub="$3"; shift 3
|
|
23
|
+
local out rc
|
|
24
|
+
out="$(cd "$SANDBOX" && env "$@" "$GATE" 2>&1)"; rc=$?
|
|
25
|
+
if [[ "$rc" -ne "$want" ]]; then
|
|
26
|
+
echo " FAIL [$label]: want exit $want, got $rc -- $out"; fails=$((fails + 1)); return
|
|
27
|
+
fi
|
|
28
|
+
if [[ -n "$sub" ]] && ! grep -qF -- "$sub" <<<"$out"; then
|
|
29
|
+
echo " FAIL [$label]: exit $rc OK but output lacks '$sub':"; printf ' %s\n' "$out"
|
|
30
|
+
fails=$((fails + 1))
|
|
31
|
+
fi
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
# The empty default is a clean skip: no declared sets, nothing to check.
|
|
35
|
+
check_case "empty-default-skip" 0 "CANON_KIT_ENUM_SETS_CMD unset"
|
|
36
|
+
|
|
37
|
+
cat >"$SANDBOX/three.sh" <<'EOF'
|
|
38
|
+
CANON_KIT_ENUM_SETS_CMD='printf "sig\talpha\nsig\tbeta\nsig\tgamma\n"'
|
|
39
|
+
EOF
|
|
40
|
+
|
|
41
|
+
# Fail-closed: a sets command that errors is treated as failure, never a false clean.
|
|
42
|
+
cat >"$SANDBOX/boom.sh" <<'EOF'
|
|
43
|
+
CANON_KIT_ENUM_SETS_CMD='echo hi; exit 4'
|
|
44
|
+
EOF
|
|
45
|
+
check_case "cmd-error-fail-closed" 2 "" CANON_KIT_CONFIG_FILE="$SANDBOX/boom.sh"
|
|
46
|
+
|
|
47
|
+
# Fail-closed: an emitted line with no tab does not parse.
|
|
48
|
+
cat >"$SANDBOX/notab.sh" <<'EOF'
|
|
49
|
+
CANON_KIT_ENUM_SETS_CMD='printf "sig-no-tab-here\n"'
|
|
50
|
+
EOF
|
|
51
|
+
check_case "cmd-unparsable-fail-closed" 2 "" CANON_KIT_CONFIG_FILE="$SANDBOX/notab.sh"
|
|
52
|
+
|
|
53
|
+
# Bracketed matching: the same member reads inside [alpha] tag syntax, so a
|
|
54
|
+
# bracketed hand list that drops gamma trips just as a bare list does — the path
|
|
55
|
+
# the bare-form pair never exercises.
|
|
56
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
57
|
+
# bracketed
|
|
58
|
+
|
|
59
|
+
The `[alpha]`/`[beta]` tags are the pair, a bracketed hand list.
|
|
60
|
+
EOF
|
|
61
|
+
check_case "bracketed-incomplete-trips" 1 "but omits: gamma" CANON_KIT_CONFIG_FILE="$SANDBOX/three.sh"
|
|
62
|
+
|
|
63
|
+
# A complete bracketed hand list names every member, so it is clean.
|
|
64
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
65
|
+
# bracketed complete
|
|
66
|
+
|
|
67
|
+
The `[alpha]`, `[beta]`, `[gamma]` tags are the whole set.
|
|
68
|
+
EOF
|
|
69
|
+
check_case "bracketed-complete-clean" 0 "PROSE-ENUM: clean" CANON_KIT_CONFIG_FILE="$SANDBOX/three.sh"
|
|
70
|
+
|
|
71
|
+
# Scattered mentions are not a hand list: two members far apart in one paragraph
|
|
72
|
+
# with non-separator prose between them never engage.
|
|
73
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
74
|
+
# scattered
|
|
75
|
+
|
|
76
|
+
alpha opens the run; only much later, after unrelated prose, does beta close it.
|
|
77
|
+
EOF
|
|
78
|
+
check_case "scattered-mentions-clean" 0 "PROSE-ENUM: clean" CANON_KIT_CONFIG_FILE="$SANDBOX/three.sh"
|
|
79
|
+
|
|
80
|
+
# Multi-set independence: one complete set is clean while another incomplete set
|
|
81
|
+
# in the same paragraph trips, and the finding names only the drifted set.
|
|
82
|
+
cat >"$SANDBOX/two.sh" <<'EOF'
|
|
83
|
+
CANON_KIT_ENUM_SETS_CMD='printf "col\tred\ncol\tgreen\nsig\talpha\nsig\tbeta\nsig\tgamma\n"'
|
|
84
|
+
EOF
|
|
85
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
86
|
+
# two sets
|
|
87
|
+
|
|
88
|
+
The colors red, green are complete; the signals alpha, beta drop one.
|
|
89
|
+
EOF
|
|
90
|
+
check_case "multiset-only-drifted-trips" 1 "set 'sig' lists 2 of 3" CANON_KIT_CONFIG_FILE="$SANDBOX/two.sh"
|
|
91
|
+
out="$(cd "$SANDBOX" && env CANON_KIT_CONFIG_FILE="$SANDBOX/two.sh" "$GATE" 2>&1)"
|
|
92
|
+
if grep -qF -- "set 'col'" <<<"$out"; then
|
|
93
|
+
echo " FAIL [multiset-complete-quiet]: the complete 'col' set was flagged:"
|
|
94
|
+
printf ' %s\n' "$out"; fails=$((fails + 1))
|
|
95
|
+
fi
|
|
96
|
+
|
|
97
|
+
# The subset marker escapes: an explicitly illustrative list is not a drifted one.
|
|
98
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
99
|
+
# subset marked
|
|
100
|
+
|
|
101
|
+
Common signals such as alpha, beta cover most runs.
|
|
102
|
+
EOF
|
|
103
|
+
check_case "subset-marker-escape" 0 "PROSE-ENUM: clean" CANON_KIT_CONFIG_FILE="$SANDBOX/three.sh"
|
|
104
|
+
|
|
105
|
+
# The partitive marker escapes: a selection from the set is not an enumeration of it.
|
|
106
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
107
|
+
# partitive
|
|
108
|
+
|
|
109
|
+
On startup any of alpha, beta may fire before the rest.
|
|
110
|
+
EOF
|
|
111
|
+
check_case "partitive-marker-escape" 0 "PROSE-ENUM: clean" CANON_KIT_CONFIG_FILE="$SANDBOX/three.sh"
|
|
112
|
+
|
|
113
|
+
# The per-site marker escapes on the line above the offending list.
|
|
114
|
+
cat >"$SANDBOX/SPEC.md" <<'EOF'
|
|
115
|
+
# per-site exempt
|
|
116
|
+
|
|
117
|
+
<!-- prose-enum-exempt: alpha and beta are the fast pair, gamma the fallback -->
|
|
118
|
+
The fast pair alpha/beta short-circuits.
|
|
119
|
+
EOF
|
|
120
|
+
check_case "per-site-exempt-escape" 0 "PROSE-ENUM: clean" CANON_KIT_CONFIG_FILE="$SANDBOX/three.sh"
|
|
121
|
+
|
|
122
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
123
|
+
echo "check-prose-enum.test.sh: $fails case(s) failed"
|
|
124
|
+
exit 1
|
|
125
|
+
fi
|
|
126
|
+
echo "check-prose-enum.test.sh: clean (empty-skip + fail-closed error/parse + bracketed match + scattered non-engage + multiset independence + subset/partitive/per-site escapes)"
|
|
127
|
+
exit 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mechanical AI-prose tell
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Sample Page
|
|
2
|
+
|
|
3
|
+
## First section
|
|
4
|
+
|
|
5
|
+
It's worth noting that the pipeline runs green — every time — without fail — really, and XYZ is leaned on throughout while the reader never learns what XYZ stands for.
|
|
6
|
+
|
|
7
|
+
The result is not slow — it's correct. The design is not clever, but it's plainly clear. Two contrast turns land inside one section.
|
|
8
|
+
|
|
9
|
+
The gate runs fast. The gate blocks bugs. The gate reports sins. The gate exits clean.
|
|
10
|
+
|
|
11
|
+
We ship the alpha, the beta, and the gamma. We test the north, the south, and the east. We log the red, the green, and the blue.
|
|
12
|
+
|
|
13
|
+
## Second section
|
|
14
|
+
|
|
15
|
+
Suffice it to say the consumer's own throat-clearing phrase trips the same assertion the bundled set does, because the gate reads the union of both.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: canon-kit/SPEC.md §check-prose-tells — the fixture opts in one prose surface so the gate has something to scan
|
|
3
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
4
|
+
CANON_KIT_PROSE_TELL_GLOBS=("prose.md")
|
|
5
|
+
|
|
6
|
+
# comment-tier-exempt: the base array stays at its bundled default so the trip proves the union, not a replacement
|
|
7
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
8
|
+
CANON_KIT_PROSE_TELL_PHRASES_EXTRA=("Suffice it to say")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
PROSE-TELLS: clean
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Guide Title
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
The tool checks prose. Each surface is scanned once and a clean run says so on a single line that names what it looked at and why that scope is the right one to hold.
|
|
6
|
+
|
|
7
|
+
This paragraph is deliberately varied in its cadence. Some sentences stay short. Others stretch on for a good while and carry several clauses before they finally arrive at a natural stop the reader can feel. A couple sit in between.
|
|
8
|
+
|
|
9
|
+
The API rides the shipped allow-list and ZFS rides the consumer's own extra list, so neither trips the undefined-abbreviation tell and the union of the two sets is what the gate reads.
|
|
10
|
+
|
|
11
|
+
## Reference
|
|
12
|
+
|
|
13
|
+
- **scope** — the surface set the gate scans, chosen by the consumer's editorial posture.
|
|
14
|
+
- **valve** — the inline exemption that holds a deliberate stylistic choice clean.
|
|
15
|
+
- **threshold** — the knob that sets where a mechanical pattern tips into a tell.
|
|
16
|
+
- **fixture** — the executable pair that pins each boundary the gate asserts.
|
|
17
|
+
|
|
18
|
+
Each item above is one em-dash of a well-formed definition list, so the unitized model reads four clean units where the old blank-line-block model saw one four-em-dash paragraph and false-tripped.
|
|
19
|
+
|
|
20
|
+
<!-- prose-tell-exempt: a deliberate dash cluster kept to demonstrate the valve -->
|
|
21
|
+
This kept line leans on the em-dash — again — and once more — yet the valve holds it clean.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# shellcheck shell=bash
|
|
2
|
+
# spec: canon-kit/SPEC.md §check-prose-tells — the fixture opts in one prose surface so the gate has something to scan
|
|
3
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
4
|
+
CANON_KIT_PROSE_TELL_GLOBS=("prose.md")
|
|
5
|
+
|
|
6
|
+
# comment-tier-exempt: the base array is left at its bundled default on purpose — the _EXTRA token must clear assertion D by union, which a restated base set would prove nothing about
|
|
7
|
+
# shellcheck disable=SC2034 # consumed by canon-kit/lib/spec.sh after sourcing
|
|
8
|
+
CANON_KIT_PROSE_TELL_ABBR_ALLOW_EXTRA=("ZFS")
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# widget — SPEC
|
|
2
|
+
|
|
3
|
+
## Directory Structure
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
src/
|
|
7
|
+
widget.rs
|
|
8
|
+
gadget.rs
|
|
9
|
+
thing.rs
|
|
10
|
+
parts/
|
|
11
|
+
left.rs
|
|
12
|
+
right.rs
|
|
13
|
+
lib/
|
|
14
|
+
helper.rs
|
|
15
|
+
shared.rs
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Behaviour
|
|
19
|
+
|
|
20
|
+
A widget is processed once, in arrival order.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fenced (banned heading
|