checkwright 0.0.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +260 -4
- package/bin/checkwright.sh +53 -0
- package/lib/common/lock.sh +28 -0
- package/lib/common/profile.sh +58 -0
- package/lib/common/recipe.sh +93 -0
- package/lib/doctor.sh +90 -0
- package/lib/init.sh +289 -0
- package/package.json +15 -3
- package/payload/canon-kit/README.md +79 -0
- package/payload/canon-kit/SPEC.md +1410 -0
- package/payload/canon-kit/checks/check-amendment-queue.sh +116 -0
- package/payload/canon-kit/checks/check-comment-tier.sh +211 -0
- package/payload/canon-kit/checks/check-deprecation-task.sh +90 -0
- package/payload/canon-kit/checks/check-docs-cmd.sh +153 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +71 -0
- package/payload/canon-kit/checks/check-install-claim.sh +146 -0
- package/payload/canon-kit/checks/check-knob-citation.sh +117 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +239 -0
- package/payload/canon-kit/checks/check-manifest-count.sh +46 -0
- package/payload/canon-kit/checks/check-manifest-temporal.sh +83 -0
- package/payload/canon-kit/checks/check-md-refs.sh +115 -0
- package/payload/canon-kit/checks/check-prose-enum.sh +115 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +207 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +69 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +45 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +133 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +42 -0
- package/payload/canon-kit/checks/check-spec-pointer.sh +176 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +105 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +80 -0
- package/payload/canon-kit/checks/check-tracking-claim.sh +136 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-tidy.md +5 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/SPEC-widget.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +15 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +25 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +32 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +146 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.sh +6 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +21 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +98 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/bin/tool.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/doc.md +18 -0
- package/payload/canon-kit/gate-tests/check-docs-cmd/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/demokit/index.md +5 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/args +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/demokit/index.md +6 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/SPEC.md +10 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-knob-citation/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +71 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/scripts/gate-sdk-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/bad/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/SPEC.md +7 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget-cli.sh +3 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling/good/widget-kit/lib/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +73 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +37 -0
- package/payload/canon-kit/gate-tests/check-manifest-count/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +104 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/SPEC.md +6 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-manifest-temporal/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/doc.md +3 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs/good/target.md +1 -0
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/bad/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-enum/good/scripts/canon-config.sh +4 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +127 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/prose.md +15 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/bad/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/prose.md +21 -0
- package/payload/canon-kit/gate-tests/check-prose-tells/good/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/SPEC.md +20 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-derivable-section/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/SPEC.md +15 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/SPEC.md +13 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +63 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC.md +16 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +19 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.sh +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/doc.md +8 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/doc.md +9 -0
- package/payload/canon-kit/gate-tests/check-spec-fence-balance/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/cand-tmpl.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/widget.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-target.md +6 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/SPEC-widget.md +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/cand-tmpl.md +7 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/scripts/canon-config.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/widget.sh +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/GLOSSARY.md +11 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/VISION.md +6 -0
- package/payload/canon-kit/gate-tests/check-surface-duplication/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/TASK-QUEUE.md +19 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +23 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/README.md +4 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/bad/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/README.md +7 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/args +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/kept.txt +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim/good/roster.list +1 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +86 -0
- package/payload/canon-kit/lib/spec.sh +505 -0
- package/payload/canon-kit/smoke/install.sh +36 -0
- package/payload/canon-kit/smoke/violation.sh +22 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +55 -0
- package/payload/canon-kit/templates/canon-config.sh +2 -0
- package/payload/context-kit/README.md +82 -0
- package/payload/context-kit/SPEC.md +790 -0
- package/payload/context-kit/bin/always-loaded.sh +86 -0
- package/payload/context-kit/bin/env-probe.sh +144 -0
- package/payload/context-kit/bin/footprint.sh +144 -0
- package/payload/context-kit/bin/md-index.sh +80 -0
- package/payload/context-kit/bin/md-section.sh +63 -0
- package/payload/context-kit/bin/pub-index.sh +90 -0
- package/payload/context-kit/bin/run-index-tests.sh +91 -0
- package/payload/context-kit/checks/check-brevity.sh +123 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +38 -0
- package/payload/context-kit/checks/check-memory-off.sh +112 -0
- package/payload/context-kit/checks/check-settings-pins.sh +110 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/CLAUDE.md +14 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity/good/CLAUDE.md +20 -0
- package/payload/context-kit/gate-tests/check-brevity/good/args +2 -0
- package/payload/context-kit/gate-tests/check-brevity/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +89 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/bad/projection.txt +11 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/args +4 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/emit.txt +12 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-footprint-fresh/good/projection.txt +12 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/bad/memory/example-fact.md +6 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/args +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/memory/.gitkeep +0 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +54 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/bad/settings.json +6 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings-pins.conf +3 -0
- package/payload/context-kit/gate-tests/check-settings-pins/good/settings.json +6 -0
- package/payload/context-kit/index-tests/corpus/baseline.txt +2 -0
- package/payload/context-kit/index-tests/corpus/hook-sample.txt +4 -0
- package/payload/context-kit/index-tests/corpus/sample.md +23 -0
- package/payload/context-kit/index-tests/corpus/sample.rs +24 -0
- package/payload/context-kit/index-tests/corpus/sample.ts +34 -0
- package/payload/context-kit/index-tests/corpus/surface.md +6 -0
- package/payload/context-kit/index-tests/expected/always-loaded.txt +1 -0
- package/payload/context-kit/index-tests/expected/md-index.txt +6 -0
- package/payload/context-kit/index-tests/expected/md-section.txt +6 -0
- package/payload/context-kit/index-tests/expected/pub-index-shadow.txt +2 -0
- package/payload/context-kit/index-tests/expected/pub-index-ts.txt +12 -0
- package/payload/context-kit/index-tests/expected/pub-index.txt +10 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +14 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +29 -0
- package/payload/context-kit/lib/pub-lang/rust.sh +26 -0
- package/payload/context-kit/lib/pub-lang/ts.sh +32 -0
- package/payload/context-kit/lib/toolfloor.sh +47 -0
- package/payload/context-kit/smoke/agents-md.sh +116 -0
- package/payload/context-kit/smoke/install.sh +60 -0
- package/payload/context-kit/smoke/violation.sh +21 -0
- package/payload/context-kit/templates/close-brevity.md +30 -0
- package/payload/context-kit/templates/context-config.sh +2 -0
- package/payload/context-kit/templates/session-context.sh +133 -0
- package/payload/context-kit/templates/settings-sessionstart.json +12 -0
- package/payload/delegation-kit/README.md +87 -0
- package/payload/delegation-kit/SPEC.md +792 -0
- package/payload/delegation-kit/bin/run-budget-guard-tests.sh +88 -0
- package/payload/delegation-kit/bin/run-trend-tests.sh +63 -0
- package/payload/delegation-kit/bin/run-usage-tests.sh +226 -0
- package/payload/delegation-kit/bin/usage-trend.sh +120 -0
- package/payload/delegation-kit/bin/usage-verdict.sh +144 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +139 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +76 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/added-exemptions +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/good/staged-files +5 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/spec.md +9 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/bad/tmpl.md +4 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/spec.md +20 -0
- package/payload/delegation-kit/gate-tests/check-rule-citation/good/tmpl.md +5 -0
- package/payload/delegation-kit/lib/delegation.sh +81 -0
- package/payload/delegation-kit/smoke/install.sh +61 -0
- package/payload/delegation-kit/smoke/violation.sh +16 -0
- package/payload/delegation-kit/templates/agent-budget-guard.sh +18 -0
- package/payload/delegation-kit/templates/agent-execution.md +136 -0
- package/payload/delegation-kit/templates/delegation-config.sh +2 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +60 -0
- package/payload/delegation-kit/templates/statusline-usage.sh +79 -0
- package/payload/delegation-kit/templates/usage-poller.sh +67 -0
- package/payload/delegation-kit/usage-tests/budget-guard-cases.tsv +20 -0
- package/payload/delegation-kit/usage-tests/cases.tsv +44 -0
- package/payload/delegation-kit/usage-tests/trend-history.log +20 -0
- package/payload/doctrine-kit/DOCTRINE.md +386 -0
- package/payload/doctrine-kit/README.md +70 -0
- package/payload/doctrine-kit/SPEC.md +233 -0
- package/payload/doctrine-kit/bin/install-doctrine.sh +44 -0
- package/payload/doctrine-kit/bin/stage-rules.sh +51 -0
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +216 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/AGENT.md +14 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/AGENT.md +15 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +12 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/args +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/expect.txt +1 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +208 -0
- package/payload/doctrine-kit/lib/doctrine.sh +29 -0
- package/payload/doctrine-kit/smoke/install.sh +24 -0
- package/payload/doctrine-kit/smoke/violation.sh +13 -0
- package/payload/drift-kit/README.md +115 -0
- package/payload/drift-kit/SPEC.md +881 -0
- package/payload/drift-kit/bin/drift-report.sh +155 -0
- package/payload/drift-kit/bin/kfric.sh +42 -0
- package/payload/drift-kit/bin/overhead-meter.sh +106 -0
- package/payload/drift-kit/bin/stage-economics.sh +311 -0
- package/payload/drift-kit/bin/trajectory.sh +242 -0
- package/payload/drift-kit/kpis/kpi-always-loaded.sh +39 -0
- package/payload/drift-kit/kpis/kpi-amendment-age.sh +33 -0
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +46 -0
- package/payload/drift-kit/kpis/kpi-gate-backlog.sh +52 -0
- package/payload/drift-kit/kpis/kpi-gate-runtime.sh +31 -0
- package/payload/drift-kit/kpis/kpi-knowledge-friction.sh +21 -0
- package/payload/drift-kit/kpis/kpi-overhead.sh +44 -0
- package/payload/drift-kit/kpis/kpi-price-table-age.sh +68 -0
- package/payload/drift-kit/kpis/kpi-prompt-friction.sh +38 -0
- package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +74 -0
- package/payload/drift-kit/kpis/kpi-settings-local.sh +21 -0
- package/payload/drift-kit/kpis/kpi-task-split.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +348 -0
- package/payload/drift-kit/smoke/overhead-fixture.jsonl +4 -0
- package/payload/drift-kit/templates/close-knowledge.md +24 -0
- package/payload/drift-kit/templates/drift-config.sh +2 -0
- package/payload/drift-kit/templates/economics.md +45 -0
- package/payload/drift-kit/templates/kpi-deprecated-surface.sh +32 -0
- package/payload/drift-kit/templates/kpis.list +22 -0
- package/payload/drift-kit/templates/price-table.tsv +21 -0
- package/payload/evidence-kit/README.md +59 -0
- package/payload/evidence-kit/SPEC.md +261 -0
- package/payload/evidence-kit/bin/diff-baseline.sh +34 -0
- package/payload/evidence-kit/bin/run-validate.sh +82 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +103 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +104 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/bad/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/TASK-QUEUE.md +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/args +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline/good/validate-baseline.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +84 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/TASK-QUEUE.md +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +3 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/validate-evidence.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +107 -0
- package/payload/evidence-kit/gate-tests/evidence-lib.test.sh +82 -0
- package/payload/evidence-kit/lib/evidence.sh +173 -0
- package/payload/evidence-kit/smoke/install.sh +45 -0
- package/payload/evidence-kit/smoke/violation.sh +8 -0
- package/payload/evidence-kit/templates/evidence-config.sh +2 -0
- package/payload/gate-sdk/README.md +124 -0
- package/payload/gate-sdk/SPEC.md +1876 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +272 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +267 -0
- package/payload/gate-sdk/bin/install-hooks.sh +48 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +112 -0
- package/payload/gate-sdk/bin/run-gate-tests.sh +128 -0
- package/payload/gate-sdk/bin/run-gates.sh +147 -0
- package/payload/gate-sdk/bin/upgrade-smoke.sh +163 -0
- package/payload/gate-sdk/checks/check-action-pinning.sh +55 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +219 -0
- package/payload/gate-sdk/checks/check-assertion-strength.sh +134 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +50 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +43 -0
- package/payload/gate-sdk/checks/check-core-files.sh +52 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +37 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +76 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +123 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +106 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +84 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +92 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +65 -0
- package/payload/gate-sdk/checks/check-graph.sh +632 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +45 -0
- package/payload/gate-sdk/checks/check-identity.sh +134 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +94 -0
- package/payload/gate-sdk/checks/check-kit-registration.sh +68 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +102 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +148 -0
- package/payload/gate-sdk/checks/check-root-tiering.sh +66 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +55 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +53 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +126 -0
- package/payload/gate-sdk/checks/check-test-hermetic.sh +119 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +61 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/mutable.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/bad/tree/nested/pinned.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/nested/deep.yml +5 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/no-refs.yaml +8 -0
- package/payload/gate-sdk/gate-tests/check-action-pinning/good/tree/pinned.yml +10 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/bad/tree/workflows/ci.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/action.yml +14 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/not-actions.yml +16 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell/good/tree/workflows/ci.yml +106 -0
- package/payload/gate-sdk/gate-tests/check-action-run-shell.test.sh +88 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/bad/smoke/install.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/bin/verdict.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-assertion-strength/good/smoke/install.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/bad/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-msg/good/patterns.list +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/bad/msg.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject/good/msg.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +73 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/core-files.list +3 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/bad/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/core-files.list +5 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/nested/also-present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-core-files/good/present.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/bad/projection.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/args +4 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/emit.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-enforcement-fresh/good/projection.txt +14 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +46 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-baz.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-foo.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +20 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-baz.sh +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-foo.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/TASK-QUEUE.md +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/gates/check-sample.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/bad/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fail-closed/good/gates/check-sample.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/check-gamma.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/check-beta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/bad/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gate-tests/check-alpha/good/.keep +0 -0
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/gates.list +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-sample.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +20 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +51 -0
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +55 -0
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +63 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/bad/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-hook-exec-bit/good/hooks/pre-commit +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/git-remotes +2 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-config-email +1 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/git-remotes +3 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-sample.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/bad/registry-doc.md +20 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/args +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +75 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/README.md +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/gamma-kit/checks/check-gamma-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/README.md +16 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/alpha-kit/checks/check-alpha-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/beta-kit/smoke/install.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/bad/sandbox-gate.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/sub/deep.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/corpus/top.md +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-reads-couples/good/sandbox-gate.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/allow.list +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/bad/root/stray.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/allow.list +3 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/LICENSE +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/README.md +1 -0
- package/payload/gate-sdk/gate-tests/check-root-tiering/good/root/somedir/keep.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/bad/warn.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/args +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-shellcheck/good/ok.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/alpha-kit/smoke/violation.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/alpha-kit/smoke/violation.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/beta-kit/smoke/install.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-smoke-entry-guard/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/args +9 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/bad/scripts/agent-budget-guard.sh +17 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/delegation-config.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/delegation-kit/templates/usage-poller.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +16 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/delegation-config.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/bad/leaky.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/args +3 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/exempt.test.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic/good/sourced.test.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +84 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/leak.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/clean.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/payload.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/projection.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/.workflow/wire.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-workflow-tiering/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +87 -0
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +78 -0
- package/payload/gate-sdk/gate-tests/run-for-path.test.sh +77 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +32 -0
- package/payload/gate-sdk/lib/gate.sh +216 -0
- package/payload/gate-sdk/lib/inject.sh +35 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +11 -0
- package/payload/gate-sdk/smoke/install.sh +84 -0
- package/payload/gate-sdk/smoke/violation.sh +13 -0
- package/payload/gate-sdk/templates/check-skeleton.sh +23 -0
- package/payload/gate-sdk/templates/gates-workflow.yml +55 -0
- package/payload/gate-sdk/templates/msg-patterns.list +21 -0
- package/payload/guard-kit/README.md +65 -0
- package/payload/guard-kit/SPEC.md +590 -0
- package/payload/guard-kit/bin/compare-settings-allow.sh +58 -0
- package/payload/guard-kit/bin/run-guard-tests.sh +86 -0
- package/payload/guard-kit/bin/scan-prompts.sh +166 -0
- package/payload/guard-kit/bin/scratch-run.sh +34 -0
- package/payload/guard-kit/gate-tests/scan-prompts.test.sh +70 -0
- package/payload/guard-kit/gate-tests/scratch-run.test.sh +62 -0
- package/payload/guard-kit/guard-tests/cases.tsv +117 -0
- package/payload/guard-kit/guard-tests/escalation-cases.tsv +13 -0
- package/payload/guard-kit/lib/guard.sh +448 -0
- package/payload/guard-kit/smoke/install.sh +26 -0
- package/payload/guard-kit/templates/bash-guard.sh +18 -0
- package/payload/guard-kit/templates/close-triage.md +31 -0
- package/payload/guard-kit/templates/escalation-guard.sh +27 -0
- package/payload/guard-kit/templates/guard-config.sh +2 -0
- package/payload/guard-kit/templates/settings-hooks.json +19 -0
- package/payload/guard-kit/templates/wakeup-guard.sh +20 -0
- package/payload/lifecycle-kit/README.md +106 -0
- package/payload/lifecycle-kit/SPEC.md +1492 -0
- package/payload/lifecycle-kit/bin/close-surfaces.sh +94 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +215 -0
- package/payload/lifecycle-kit/bin/file-gap.sh +43 -0
- package/payload/lifecycle-kit/bin/install-lifecycle.sh +36 -0
- package/payload/lifecycle-kit/bin/session-id.sh +75 -0
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +63 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +98 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +54 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +69 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +97 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +59 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +197 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +81 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +47 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +96 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/owners/inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +66 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/evidence.txt +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/bad/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/evidence.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-head.md +8 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition/good/queue-work.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +56 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/AGENT.md +11 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +59 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/.gitattributes +6 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +5 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +113 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/commands/build.md +6 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/corpus.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +80 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/commands/build.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/bad/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/commands/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding/good/templates/build.md +7 -0
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +84 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +7 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +251 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +6 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/TASK-QUEUE.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +115 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/args +1 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/align.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/build.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/close.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/scope.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/commands/validate.md +2 -0
- package/payload/lifecycle-kit/gate-tests/check-stage-skill-coverage/good/expect.txt +1 -0
- package/payload/lifecycle-kit/lib/stages.sh +179 -0
- package/payload/lifecycle-kit/smoke/install.sh +341 -0
- package/payload/lifecycle-kit/smoke/violation.sh +8 -0
- package/payload/lifecycle-kit/templates/lead.md +271 -0
- package/payload/lifecycle-kit/templates/lifecycle-config.sh +2 -0
- package/payload/lifecycle-kit/templates/release-sweep.md +39 -0
- package/payload/lifecycle-kit/templates/stages/align.md +65 -0
- package/payload/lifecycle-kit/templates/stages/build.md +78 -0
- package/payload/lifecycle-kit/templates/stages/close.md +122 -0
- package/payload/lifecycle-kit/templates/stages/scope.md +112 -0
- package/payload/lifecycle-kit/templates/stages/spec.md +91 -0
- package/payload/lifecycle-kit/templates/stages/validate.md +54 -0
- package/payload/lifecycle-kit/templates/upgrade.md +41 -0
- package/payload/queue-kit/README.md +78 -0
- package/payload/queue-kit/SPEC.md +797 -0
- package/payload/queue-kit/bin/lesson-sink.sh +28 -0
- package/payload/queue-kit/bin/queue-index.sh +182 -0
- package/payload/queue-kit/bin/roadmap.sh +76 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +104 -0
- package/payload/queue-kit/checks/check-queue-hygiene.sh +81 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +63 -0
- package/payload/queue-kit/checks/check-queue-sections.sh +44 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +63 -0
- package/payload/queue-kit/checks/check-queue-wrap.sh +56 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +110 -0
- package/payload/queue-kit/checks/check-tag-lead-line.sh +70 -0
- package/payload/queue-kit/checks/check-task-conservation.sh +50 -0
- package/payload/queue-kit/checks/check-task-names.sh +128 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +33 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +35 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-prose-precondition/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/TASK-QUEUE.md +13 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-sections/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/TASK-QUEUE.md +17 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/docs/page.md +4 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/bad/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/TASK-QUEUE.md +19 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/docs/page.md +5 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-slug-liveness/good/scripts/queue-config.sh +3 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-queue-wrap/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +24 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/emit.txt +8 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +22 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/emit.txt +7 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +30 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/TASK-QUEUE.md +18 -0
- package/payload/queue-kit/gate-tests/check-task-names/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/TASK-QUEUE.md +25 -0
- package/payload/queue-kit/gate-tests/check-task-names/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +159 -0
- package/payload/queue-kit/gate-tests/roadmap.test.sh +197 -0
- package/payload/queue-kit/lib/queue.sh +193 -0
- package/payload/queue-kit/smoke/install.sh +22 -0
- package/payload/queue-kit/smoke/violation.sh +8 -0
- package/payload/queue-kit/templates/TASK-QUEUE.md +43 -0
- package/payload/queue-kit/templates/queue-config.sh +2 -0
- package/payload/site-kit/README.md +61 -0
- package/payload/site-kit/SPEC.md +269 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +80 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +167 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/tree/README.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +5 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/site-config.sh +7 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/CNAME +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/docs/posts/2026-01-01-legacy.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/index.md +4 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/tree/pkg/gate-tests/fixture.md +5 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/args +8 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/bad/tree/docs/install.md +38 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/args +6 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/expect.txt +1 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity/good/tree/docs/install.md +35 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-foreign.test.sh +87 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-span.test.sh +80 -0
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-table.test.sh +90 -0
- package/payload/site-kit/lib/site.sh +29 -0
- package/payload/site-kit/smoke/install.sh +26 -0
- package/payload/site-kit/smoke/violation.sh +20 -0
- package/payload/site-kit/templates/site-health.yml +164 -0
- package/profiles.list +53 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
# site-kit — deployment-truth governance for a repo-served docs site
|
|
2
|
+
|
|
3
|
+
A docs site served from the repository (GitHub Pages and equivalents) has two
|
|
4
|
+
truths a gate battery must keep straight: what the *tree* says about the site's
|
|
5
|
+
host, and whether the *live deployment* is actually up. site-kit gates the
|
|
6
|
+
tree-side truths — the cited host, and whether each page renders faithfully
|
|
7
|
+
through the platform's own parser — and ships a template for the deployment
|
|
8
|
+
liveness, holding the boundary between gate and monitor so neither leaks into
|
|
9
|
+
the other.
|
|
10
|
+
|
|
11
|
+
## The monitor boundary
|
|
12
|
+
|
|
13
|
+
A gate verifies the tree: it is deterministic, hermetic, and reds only on a
|
|
14
|
+
cause a commit produced, which is what lets it block a merge without false
|
|
15
|
+
positives. A live-site probe is none of those — it reds on DNS, a Pages
|
|
16
|
+
incident, or a stalled certificate renewal, none of which any commit caused.
|
|
17
|
+
Enforcing deployment truth through a pre-commit or CI gate would break both the
|
|
18
|
+
low-false-positive contract and the CI backstop's checkout-plus-bash
|
|
19
|
+
hermeticity (gate-sdk/SPEC.md §Enforcement tiers). So the deployment probe is
|
|
20
|
+
*monitoring*, not a gate: it ships as `templates/site-health.yml`, a scheduled
|
|
21
|
+
workflow a consumer copies, and signals through an issue and a red run of its
|
|
22
|
+
own, never a blocked merge. The tree-honesty half — that the repo never *cites*
|
|
23
|
+
a stale host — is a real gate, because that is a property of the tree.
|
|
24
|
+
|
|
25
|
+
## Layout and configuration
|
|
26
|
+
|
|
27
|
+
The kit is vendored beside gate-sdk (conventionally at `site-kit/`); its gate
|
|
28
|
+
is registered in the consumer's `gates.list` by name and resolves through
|
|
29
|
+
gate-sdk's multi-kit path. `check-docs-cname-parity` registers where a docs
|
|
30
|
+
site with a gated host exists; a consumer without one simply omits it.
|
|
31
|
+
|
|
32
|
+
Config follows the kit pattern: copy a `site-config.sh` into the gates dir (or
|
|
33
|
+
point `SITE_KIT_CONFIG_FILE` elsewhere) and override any knob; defaults fill
|
|
34
|
+
what the consumer left unset, and the loader exits 2 on a config path it was
|
|
35
|
+
told to load but cannot find. Knobs:
|
|
36
|
+
|
|
37
|
+
- `SITE_KIT_CNAME` — the CNAME file holding the one authoritative host line,
|
|
38
|
+
default `docs/CNAME`.
|
|
39
|
+
- `SITE_KIT_ALIASES` — array, default empty: every reachable host that is *not*
|
|
40
|
+
the cited docs host and must therefore never appear in a `://` URL in the
|
|
41
|
+
tree. Rule content by nature, so it is consumer config — a kit literal
|
|
42
|
+
carrying it would publish a project's host names across the provenance seam.
|
|
43
|
+
- `SITE_KIT_SCAN_ROOT` — the `git ls-files` root the gate walks, default `.`.
|
|
44
|
+
- `SITE_KIT_EXEMPT_PATHS` — array of path globs skipped during the scan,
|
|
45
|
+
default `("*/gate-tests/*" "*docs/posts/*")`: fixture trees deliberately cite
|
|
46
|
+
aliases, and dated posts are immutable published artifacts.
|
|
47
|
+
- `SITE_KIT_DOCS_DIR` — the docs-site root `check-docs-render-fidelity` walks
|
|
48
|
+
for tracked markdown pages, default `docs`.
|
|
49
|
+
- `SITE_KIT_RENDERER` — array, the stdin→stdout GFM-to-HTML command
|
|
50
|
+
`check-docs-render-fidelity` renders each page through, default the kramdown
|
|
51
|
+
CLI invocation with GFM input — `ruby -e '…Kramdown::Document…input: "GFM"…'`,
|
|
52
|
+
the parser GitHub Pages pins. A consumer whose Pages stack differs points this
|
|
53
|
+
at its own renderer; an unresolvable one fails the gate closed.
|
|
54
|
+
- `SITE_KIT_CONFIG_FILE` — the loader override; when set it must resolve, else
|
|
55
|
+
the gate exits 2 rather than silently run on defaults.
|
|
56
|
+
|
|
57
|
+
## check-docs-cname-parity
|
|
58
|
+
|
|
59
|
+
Invariant: no tracked file cites a `SITE_KIT_ALIASES` host in a `://` URL,
|
|
60
|
+
where the authoritative host `H` is read from `SITE_KIT_CNAME`. The CNAME file
|
|
61
|
+
must hold exactly one non-blank host line (else exit 2); `H` itself is exempt
|
|
62
|
+
even when listed among the aliases, so a canonical apex that doubles as a
|
|
63
|
+
redirect target is cited freely. The scan enumerates tracked files under
|
|
64
|
+
`SITE_KIT_SCAN_ROOT` via `git ls-files`, drops the gate-sdk prune set and every
|
|
65
|
+
`SITE_KIT_EXEMPT_PATHS` glob, and greps the survivors for `://<host>`; a host
|
|
66
|
+
that is a configured alias other than `H` is a finding. A rename is thus a
|
|
67
|
+
one-line edit to the CNAME file that the gate re-propagates — the host lives in
|
|
68
|
+
one gated place, and drift anywhere else is caught. The scan reads tracked
|
|
69
|
+
content only, so an untracked local file is never a source; a `git ls-files`
|
|
70
|
+
error is fail-closed (exit 2). The positional form
|
|
71
|
+
`check-docs-cname-parity.sh [scan-root] [cname-file] [config-file]` lets a
|
|
72
|
+
fixture point all three at a synthetic tree without touching consumer config.
|
|
73
|
+
|
|
74
|
+
## check-docs-render-fidelity
|
|
75
|
+
|
|
76
|
+
Invariant: every tracked markdown page under `SITE_KIT_DOCS_DIR`, rendered
|
|
77
|
+
through the Pages parser, leaks no code-span corruption symptom into
|
|
78
|
+
rendered text — neither a literal backtick nor a raw non-HTML-element tag
|
|
79
|
+
surviving outside a code context — promotes no code-fenced line into a heading,
|
|
80
|
+
and renders no fewer tables than its source GFM table starts. GitHub Pages
|
|
81
|
+
renders through kramdown's GFM parser, which diverges from github.com's cmark:
|
|
82
|
+
consecutive fenced blocks inside one list item corrupt the page — the second
|
|
83
|
+
fence prints literally and a `#`-leading skeleton line becomes a heading — so a
|
|
84
|
+
tree that reads green on github.com can ship a garbled Pages site with no gate in
|
|
85
|
+
the path. This gate is the faithful-artifact-verification class mechanized for
|
|
86
|
+
that artifact: it renders the real output and asserts the observed leakage class,
|
|
87
|
+
rather than trusting the source.
|
|
88
|
+
|
|
89
|
+
The leakage class has more than one root cause, and the assertion keys on the
|
|
90
|
+
**shared symptom** rather than on any single cause — one low-false-positive
|
|
91
|
+
assertion covering every shape that leaves the same signature. The causes
|
|
92
|
+
observed on this tree: (1) a code span that wraps across a line break whose
|
|
93
|
+
continuation begins with a block-level or generic XML tag; (2) a single-line code
|
|
94
|
+
span whose embedded angle-bracket token (a placeholder such as `<verdict>` or
|
|
95
|
+
`<n>`) is consumed as a raw HTML span before the span can close, no line break
|
|
96
|
+
involved; (3) a code span nesting escaped backticks alongside such a token. All
|
|
97
|
+
three are the same kramdown behavior — parsing blocks before spans, it treats the
|
|
98
|
+
angle-bracket token as the start of an HTML block, severing the span so it emits
|
|
99
|
+
raw HTML that swallows the rest of the page (`gettalong/kramdown#843`, closed
|
|
100
|
+
works-as-designed: a documented, permanent divergence, not a pending fix). A
|
|
101
|
+
severed span never forms the closing fence run, so it leaves not a multi-backtick
|
|
102
|
+
marker but a **single** stray backtick and a **raw placeholder tag** in the
|
|
103
|
+
rendered text — which is exactly the symptom the assertion keys on, so the gate is
|
|
104
|
+
a standing defense against the whole class rather than a stopgap against one
|
|
105
|
+
backtick-fence shape of it.
|
|
106
|
+
|
|
107
|
+
**Reach is `SITE_KIT_DOCS_DIR`, and stays there.** A repo-root page has no site
|
|
108
|
+
URL and is served by the forge's own CommonMark view, so a kramdown-only
|
|
109
|
+
divergence there is not reader-visible and this gate is right not to walk it.
|
|
110
|
+
The renderer-to-surface map is a consumer's own documentation concern, not a
|
|
111
|
+
widened scan.
|
|
112
|
+
|
|
113
|
+
The scan enumerates tracked `*.md` files under `SITE_KIT_DOCS_DIR` via
|
|
114
|
+
`git ls-files` (every underscore-prefixed directory segment excluded — those are
|
|
115
|
+
Jekyll internals, not published pages), strips Jekyll front matter so it renders
|
|
116
|
+
exactly the body kramdown sees, and asserts three properties per page:
|
|
117
|
+
|
|
118
|
+
1. **No span-corruption leakage** — the rendered HTML's text content, taken
|
|
119
|
+
after the `<pre>` blocks and inline `<code>` spans are removed (a legitimate
|
|
120
|
+
backtick renders inside `<code>` and a legitimate embedded tag renders as
|
|
121
|
+
escaped entities inside it, so both are excluded before the check), carries
|
|
122
|
+
neither of two symptoms: (a) **any literal backtick** — a single stray one,
|
|
123
|
+
not only a `` `{3,} `` fence run — and (b) **any raw tag whose element name is
|
|
124
|
+
not a known HTML element**, matched by name so an attribute-bearing legitimate
|
|
125
|
+
tag (`<a href…>`) is excluded and a placeholder token (`<verdict>`, `<n>`,
|
|
126
|
+
`<KIT>`) is not. Content inside an `<svg>` or `<math>` subtree is exempt from
|
|
127
|
+
(b), tracked by open/close depth: those two roots open foreign content whose
|
|
128
|
+
vocabularies (`<circle>`, `<mi>`) are not HTML element names, so scanning them
|
|
129
|
+
by the HTML set would red a page for legitimate inline markup. The exemption is
|
|
130
|
+
scoped to the subtree rather than granted to the names, so a bare `<path>` or
|
|
131
|
+
`<use>` outside any `<svg>` still reds as the placeholder token it is. Keep
|
|
132
|
+
such a subtree on one source line: kramdown severs a foreign root split across
|
|
133
|
+
a line break, emitting its tail as escaped text, and that is a real render
|
|
134
|
+
divergence the gate is right to red.
|
|
135
|
+
Either symptom is the signature of a code span or fenced block
|
|
136
|
+
the parser failed to form, regardless of which construct confused it: a
|
|
137
|
+
backtick that never paired, or a placeholder tag kramdown passed through as a
|
|
138
|
+
raw HTML block. The two are complementary — a swallowed page region whose own
|
|
139
|
+
inline code re-leaks as literal backticks trips (a), while a swallowed
|
|
140
|
+
backtick-free region (pure prose or headings) trips only (b) — so neither
|
|
141
|
+
alone covers the class and the assertion keys on both.
|
|
142
|
+
2. **No heading leakage** — the count of rendered heading elements never exceeds
|
|
143
|
+
the count of source heading lines the gate's own fence-aware scan (cmark
|
|
144
|
+
rules: ATX and setext, both skipped inside a fenced or `~`-fenced block)
|
|
145
|
+
places outside any code context. A surplus rendered heading is a `#` line
|
|
146
|
+
promoted out of a broken code block.
|
|
147
|
+
3. **No table leakage** — the count of rendered `<table>` elements is never
|
|
148
|
+
*less than* the count of source GFM table starts the same fence-aware scan
|
|
149
|
+
places outside code. A table start is a pipe-carrying row immediately
|
|
150
|
+
followed by a delimiter row (dashes, colons, pipes — the `| --- |` shape).
|
|
151
|
+
The direction is one-sided: rendered may *exceed* source (a raw-HTML
|
|
152
|
+
`<table>` in source is legitimate and renders without a GFM start); only a
|
|
153
|
+
deficit reds. A deficit is a source table that shipped as literal-pipe
|
|
154
|
+
paragraph text — kramdown terminates a table only on a blank line, so a
|
|
155
|
+
table whose last row abuts a following non-blank line collapses into a
|
|
156
|
+
paragraph.
|
|
157
|
+
|
|
158
|
+
The renderer is the gate's oracle. Before scanning, the gate probes it on a
|
|
159
|
+
one-line document; an unresolvable or non-producing renderer exits 2 with a help
|
|
160
|
+
line naming the dependency (ruby plus the kramdown-parser-gfm gem, or a
|
|
161
|
+
`SITE_KIT_RENDERER` override) — a gate that cannot run its oracle refuses, never
|
|
162
|
+
a false clean. That dependency joins the *consumer's* toolchain only when the
|
|
163
|
+
consumer registers this gate; it stays outside env-probe's probe-set floor, and
|
|
164
|
+
`docs/install.md`'s Requirements prose states the tier (SPEC-os-support.md owns
|
|
165
|
+
that page's ruling). A consumer with no published docs site simply omits the
|
|
166
|
+
gate by the registry-not-array convention and never installs the dependency.
|
|
167
|
+
|
|
168
|
+
The false-positive floor is the assertion's hard boundary, deliberately set. The
|
|
169
|
+
backtick symptom rests on a property of well-formed markdown: every backtick
|
|
170
|
+
belongs to a code span, which renders inside `<code>` and is excluded from the
|
|
171
|
+
scanned text, so a backtick surviving into paragraph, heading, or list text is a
|
|
172
|
+
code span that failed to form — not legitimate prose. Its one residual
|
|
173
|
+
legitimate case is documenting the backtick *character* itself; the faithful way
|
|
174
|
+
to do that is a doubled-backtick code span, which renders the character inside
|
|
175
|
+
`<code>` — excluded from the scan — so the honest form does not trip the gate and
|
|
176
|
+
only the fragile bare-backtick form would. The raw-tag symptom rests on
|
|
177
|
+
the HTML-element allowlist: kramdown passes an unrecognized `<name>` through
|
|
178
|
+
verbatim as raw HTML, while a `<name>` whose element is in the HTML standard is
|
|
179
|
+
legitimate markup — so a tag matched by element name against that set is
|
|
180
|
+
excluded, and only a token outside it (a placeholder kramdown mistook for an HTML
|
|
181
|
+
block) reds. Its residual legitimate case is a page that deliberately embeds a
|
|
182
|
+
*non-standard* element (a custom element or web component); a placeholder meant
|
|
183
|
+
as literal prose is instead written as a code span (`` `<verdict>` `` renders
|
|
184
|
+
`<code><verdict></code>`) and never surfaces as a raw tag. Both floors hold
|
|
185
|
+
empirically: across the tracked corpus each symptom fires on exactly the
|
|
186
|
+
corrupted pages and no clean page. The element set is generic mechanism — the
|
|
187
|
+
HTML standard's element list is universal render truth, not consumer rule
|
|
188
|
+
content — so it is a kit built-in, not a config seam; a consumer that
|
|
189
|
+
legitimately ships non-standard elements in a docs page is the narrow accepted
|
|
190
|
+
false positive, and if that demand ever attests, an optional allowlist-extension
|
|
191
|
+
knob is the config-via-env answer, deferred until then rather than built against
|
|
192
|
+
a case no page presents.
|
|
193
|
+
|
|
194
|
+
Honest limit: this is not a full render-diff between the two parsers. It
|
|
195
|
+
mechanizes the observed leakage class — the code-span corruption symptom (a
|
|
196
|
+
surviving backtick or raw placeholder tag), headings, and tables — and stays
|
|
197
|
+
silent on divergences that corrupt none of the three. The first assertion keys
|
|
198
|
+
on the shared symptom rather than a multi-backtick fence run, so it implements
|
|
199
|
+
the severed-span defense (`gettalong/kramdown#843`) the section describes — prose
|
|
200
|
+
and assertion cover the same class. The table count can be
|
|
201
|
+
masked by an offsetting raw-HTML `<table>` on the same page: one collapsed GFM
|
|
202
|
+
table plus one HTML table balances the counts. The table detector is
|
|
203
|
+
deliberately conservative (delimiter-row anchored), so a table kramdown accepts
|
|
204
|
+
but the scan does not count can only *under*-count source starts — which
|
|
205
|
+
false-cleans, never false-reds. The observed table incident (2026-07-13): the
|
|
206
|
+
value page's generated rollup table abutted its `:end` marker and shipped as a
|
|
207
|
+
literal-pipe paragraph with the gate silent; the emitter fix (a trailing blank
|
|
208
|
+
line) landed then, and this assertion mechanizes the channel. The good/bad
|
|
209
|
+
fixture pair exercises the span-corruption symptom (a bad page whose severed span
|
|
210
|
+
leaks a stray backtick and a raw placeholder tag, a good page whose faithful code
|
|
211
|
+
spans render clean) alongside the fence/heading case. Because that bad page would
|
|
212
|
+
red on its fence run alone, the span assertion also carries its own hermetic unit
|
|
213
|
+
test isolating it — a page with no fence, no surplus heading and no table, whose
|
|
214
|
+
only defect is the severed span, reds span-only and clears in the
|
|
215
|
+
doubled-backtick form — so a widening that reds nothing new cannot pass. The
|
|
216
|
+
table assertion likewise carries its own unit test (a collapsed table reds
|
|
217
|
+
table-only, a trailing blank clears).
|
|
218
|
+
The positional form `check-docs-render-fidelity.sh [docs-dir] [config-file]`
|
|
219
|
+
lets a fixture point the docs dir and renderer at a synthetic tree without
|
|
220
|
+
touching consumer config. `precommit` tier, coupling the docs tree.
|
|
221
|
+
|
|
222
|
+
Parser-version fidelity (a second honest limit). The oracle is faithful to the
|
|
223
|
+
*parser* GitHub Pages uses (kramdown with GFM input), not necessarily to the
|
|
224
|
+
exact kramdown *version* Pages pins: a locally-installed kramdown that differs
|
|
225
|
+
in patch or minor version from the Pages-locked one can render a construct
|
|
226
|
+
differently, so a green local run is not a categorical proof for a divergence
|
|
227
|
+
introduced between the two versions. The exact-pin recipe closes that gap for a
|
|
228
|
+
consumer that needs it: point `SITE_KIT_RENDERER` at a version-locked bundle —
|
|
229
|
+
a `bundle exec ruby …Kramdown…` invocation whose `Gemfile.lock` pins kramdown
|
|
230
|
+
(and `kramdown-parser-gfm`) to the versions the `github-pages` gem resolves — so
|
|
231
|
+
the oracle and the deploy render byte-for-byte the same parser build. The kit
|
|
232
|
+
does not auto-resolve that pin: fetching the Pages-locked gemset at gate time
|
|
233
|
+
would break the hermetic no-network render contract the oracle depends on (a
|
|
234
|
+
gate must run offline and deterministically), so the pin stays a consumer's
|
|
235
|
+
deliberate `SITE_KIT_RENDERER` override, not kit-run machinery.
|
|
236
|
+
|
|
237
|
+
## lib/site.sh
|
|
238
|
+
|
|
239
|
+
The sourced config loader: it loads `SITE_KIT_CONFIG_FILE` (or the gates-dir
|
|
240
|
+
`site-config.sh` when that env is unset), then fills every knob's default, so a
|
|
241
|
+
gate and a fixture read one resolved configuration. It carries no gate logic —
|
|
242
|
+
structure stays in the check, values in config, defaults here.
|
|
243
|
+
|
|
244
|
+
## templates/site-health.yml
|
|
245
|
+
|
|
246
|
+
The scheduled live-site probe, copied verbatim into a consumer's
|
|
247
|
+
`.github/workflows/`. It reads the apex host from the CNAME file (the same
|
|
248
|
+
source the gate trusts), then checks: the apex answers 200 over HTTPS, `www`
|
|
249
|
+
and `http` redirect to the canonical origin, an optional `ALT_DOMAIN` redirect
|
|
250
|
+
keeps its path, and the certificate is more than a fortnight from expiry. A
|
|
251
|
+
failure opens or updates a single `site-health` issue and reds the run;
|
|
252
|
+
recovery closes it. The `ALT_DOMAIN` value is a bare hostname, never a `://`
|
|
253
|
+
literal, so it does not itself trip the parity gate. A `# enforce:` marker rides
|
|
254
|
+
the template so that, once copied, an enforcement map projects it as a monitor.
|
|
255
|
+
|
|
256
|
+
The template is starter-template-conformant: the kit's `smoke/install.sh`
|
|
257
|
+
installs it verbatim as governed surface, so a regression that made it red any
|
|
258
|
+
vendored kit's gate would surface in the consumer smoke rather than at a
|
|
259
|
+
consumer.
|
|
260
|
+
|
|
261
|
+
## Out of scope
|
|
262
|
+
|
|
263
|
+
The kit does not resolve DNS, provision certificates, or configure the host
|
|
264
|
+
platform — those are the deployment's concerns, surfaced by the monitor, not
|
|
265
|
+
governed by a gate. It does not gate the *content* of the docs site (links,
|
|
266
|
+
commands, prose): that is canon-kit's charge over the governed doc set —
|
|
267
|
+
`check-docs-render-fidelity` gates how a page *renders*, never what it says. And
|
|
268
|
+
it holds no opinion on which host a project uses — only that the tree cites one,
|
|
269
|
+
and that the CNAME file names it.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=docs/CNAME dir=one valve=none tier=precommit trigger=*
|
|
3
|
+
# spec: site-kit/SPEC.md §check-docs-cname-parity — the docs/CNAME host is the single gated source of truth for the docs host; no tracked file names a configured host alias other than that host in a URL
|
|
4
|
+
#
|
|
5
|
+
# usage: check-docs-cname-parity.sh [scan-root] [cname-file] [config-file]
|
|
6
|
+
# defaults SITE_KIT_SCAN_ROOT / SITE_KIT_CNAME; config-file overrides
|
|
7
|
+
# SITE_KIT_CONFIG_FILE so a fixture supplies its own SITE_KIT_ALIASES.
|
|
8
|
+
set -uo pipefail
|
|
9
|
+
|
|
10
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
11
|
+
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
12
|
+
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
13
|
+
source "$SDK/lib/gate.sh"
|
|
14
|
+
|
|
15
|
+
SCANARG="${1:-}"; CNAMEARG="${2:-}"; CONFIGARG="${3:-}"
|
|
16
|
+
[[ -n "$CONFIGARG" ]] && export SITE_KIT_CONFIG_FILE="$CONFIGARG"
|
|
17
|
+
# shellcheck source=../lib/site.sh
|
|
18
|
+
source "$KIT/lib/site.sh"
|
|
19
|
+
|
|
20
|
+
SCANROOT="${SCANARG:-$SITE_KIT_SCAN_ROOT}"; SCANROOT="${SCANROOT%/}"
|
|
21
|
+
CNAME="${CNAMEARG:-$SITE_KIT_CNAME}"
|
|
22
|
+
|
|
23
|
+
git rev-parse --git-dir >/dev/null 2>&1 || {
|
|
24
|
+
echo "check-docs-cname-parity: not a git repository — cannot enumerate tracked files" >&2; exit 2; }
|
|
25
|
+
[[ -f "$CNAME" ]] || { echo "check-docs-cname-parity: CNAME not found: $CNAME" >&2; exit 2; }
|
|
26
|
+
|
|
27
|
+
mapfile -t hlines < <(grep -v '^[[:space:]]*$' "$CNAME")
|
|
28
|
+
[[ ${#hlines[@]} -eq 1 ]] || {
|
|
29
|
+
echo "check-docs-cname-parity: $CNAME must hold exactly one host line (found ${#hlines[@]})" >&2; exit 2; }
|
|
30
|
+
H="${hlines[0]//[[:space:]]/}"
|
|
31
|
+
[[ -n "$H" ]] || { echo "check-docs-cname-parity: empty host in $CNAME" >&2; exit 2; }
|
|
32
|
+
|
|
33
|
+
declare -A IS_ALIAS=()
|
|
34
|
+
for a in "${SITE_KIT_ALIASES[@]+"${SITE_KIT_ALIASES[@]}"}"; do IS_ALIAS["$a"]=1; done
|
|
35
|
+
|
|
36
|
+
exempt_path() { # $1=path — matches any SITE_KIT_EXEMPT_PATHS glob
|
|
37
|
+
local p="$1" g
|
|
38
|
+
for g in "${SITE_KIT_EXEMPT_PATHS[@]+"${SITE_KIT_EXEMPT_PATHS[@]}"}"; do
|
|
39
|
+
# shellcheck disable=SC2053 # $g is the exempt glob, matched unquoted on purpose
|
|
40
|
+
[[ "$p" == $g ]] && return 0
|
|
41
|
+
done
|
|
42
|
+
return 1
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
listing="$(git ls-files -- "$SCANROOT")"; st=$?
|
|
46
|
+
fail_closed "$st" DOCS-CNAME-PARITY git-ls-files
|
|
47
|
+
|
|
48
|
+
files=()
|
|
49
|
+
while IFS= read -r path; do
|
|
50
|
+
[[ -n "$path" ]] || continue
|
|
51
|
+
gate_path_pruned "$path" && continue
|
|
52
|
+
exempt_path "$path" && continue
|
|
53
|
+
[[ -f "$path" ]] && files+=("$path")
|
|
54
|
+
done <<< "$listing"
|
|
55
|
+
|
|
56
|
+
if [[ ${#files[@]} -eq 0 ]]; then
|
|
57
|
+
echo "DOCS-CNAME-PARITY: clean (0 tracked file(s) under $SCANROOT; docs host is '$H')"
|
|
58
|
+
exit 0
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
matches="$(grep -IHnoE '://[A-Za-z0-9.-]+' -- "${files[@]}")"; gst=$?
|
|
62
|
+
[[ "$gst" -le 1 ]] || fail_closed "$gst" DOCS-CNAME-PARITY grep
|
|
63
|
+
|
|
64
|
+
bad=()
|
|
65
|
+
while IFS= read -r m; do
|
|
66
|
+
[[ -n "$m" ]] || continue
|
|
67
|
+
host="${m##*//}"
|
|
68
|
+
[[ -n "${IS_ALIAS[$host]:-}" && "$host" != "$H" ]] || continue
|
|
69
|
+
bad+=("${m%:://*}: alias '$host' — docs host is '$H'")
|
|
70
|
+
done <<< "$matches"
|
|
71
|
+
|
|
72
|
+
if [[ ${#bad[@]} -gt 0 ]]; then
|
|
73
|
+
echo "check-docs-cname-parity: tracked file(s) cite a configured host alias other than the docs/CNAME host:"
|
|
74
|
+
printf ' %s\n' "${bad[@]}"
|
|
75
|
+
echo " help: point the URL at the docs/CNAME host '$H' (a rename is a one-file edit to the CNAME"
|
|
76
|
+
echo " that this gate then enumerates); SITE_KIT_EXEMPT_PATHS sites are exempt."
|
|
77
|
+
exit 1
|
|
78
|
+
fi
|
|
79
|
+
echo "DOCS-CNAME-PARITY: clean (${#files[@]} tracked file(s) under $SCANROOT; no alias but the docs host '$H' cited in a URL)"
|
|
80
|
+
exit 0
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# graph: couples=docs/*.md,docs/*/index.md,docs/posts/*.md dir=one valve=none tier=precommit
|
|
3
|
+
# spec: site-kit/SPEC.md §check-docs-render-fidelity — every tracked docs markdown page, rendered through the Pages parser, leaks no code-span corruption symptom (a stray backtick or a raw non-HTML-element tag) into text, promotes no code-fenced heading, and renders no fewer tables than its source GFM table starts; a missing renderer fails closed
|
|
4
|
+
#
|
|
5
|
+
# usage: check-docs-render-fidelity.sh [docs-dir] [config-file]
|
|
6
|
+
# defaults SITE_KIT_DOCS_DIR; config-file overrides SITE_KIT_CONFIG_FILE so a
|
|
7
|
+
# fixture supplies its own SITE_KIT_RENDERER / docs dir.
|
|
8
|
+
set -uo pipefail
|
|
9
|
+
|
|
10
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
11
|
+
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
12
|
+
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
13
|
+
source "$SDK/lib/gate.sh"
|
|
14
|
+
|
|
15
|
+
DOCSARG="${1:-}"; CONFIGARG="${2:-}"
|
|
16
|
+
[[ -n "$CONFIGARG" ]] && export SITE_KIT_CONFIG_FILE="$CONFIGARG"
|
|
17
|
+
# shellcheck source=../lib/site.sh
|
|
18
|
+
source "$KIT/lib/site.sh"
|
|
19
|
+
|
|
20
|
+
DOCS="${DOCSARG:-$SITE_KIT_DOCS_DIR}"; DOCS="${DOCS%/}"
|
|
21
|
+
|
|
22
|
+
git rev-parse --git-dir >/dev/null 2>&1 || {
|
|
23
|
+
echo "check-docs-render-fidelity: not a git repository — cannot enumerate tracked pages" >&2; exit 2; }
|
|
24
|
+
[[ -d "$DOCS" ]] || { echo "check-docs-render-fidelity: docs dir not found: $DOCS" >&2; exit 2; }
|
|
25
|
+
|
|
26
|
+
probe="$(printf '# probe\n' | "${SITE_KIT_RENDERER[@]}" 2>/dev/null)"; pst=$?
|
|
27
|
+
if [[ "$pst" -ne 0 || -z "$probe" ]]; then
|
|
28
|
+
echo "check-docs-render-fidelity: renderer '${SITE_KIT_RENDERER[*]}' could not run (exit $pst)" >&2
|
|
29
|
+
echo " help: install the Pages parser — ruby plus the kramdown-parser-gfm gem — or point" >&2
|
|
30
|
+
echo " SITE_KIT_RENDERER at a stdin->stdout GFM-to-HTML command" >&2
|
|
31
|
+
exit 2
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
listing="$(git ls-files -- "$DOCS")"; st=$?
|
|
35
|
+
fail_closed "$st" DOCS-RENDER-FIDELITY git-ls-files
|
|
36
|
+
|
|
37
|
+
pages=()
|
|
38
|
+
while IFS= read -r p; do
|
|
39
|
+
[[ -n "$p" ]] || continue
|
|
40
|
+
[[ "$p" == *.md ]] || continue
|
|
41
|
+
case "/$p/" in */_*/*) continue ;; esac # exclude every underscore-prefixed dir segment (Jekyll internals)
|
|
42
|
+
gate_path_pruned "$p" && continue
|
|
43
|
+
[[ -f "$p" ]] && pages+=("$p")
|
|
44
|
+
done <<< "$listing"
|
|
45
|
+
|
|
46
|
+
if [[ ${#pages[@]} -eq 0 ]]; then
|
|
47
|
+
echo "DOCS-RENDER-FIDELITY: clean (0 tracked markdown page(s) under $DOCS)"
|
|
48
|
+
exit 0
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
strip_fm='NR==1 && $0=="---" { fm=1; next } fm==1 && $0=="---" { fm=0; next } fm==1 { next } { print }'
|
|
52
|
+
|
|
53
|
+
rendered_scan='
|
|
54
|
+
BEGIN {
|
|
55
|
+
inpre=0; leak=0; h=0; tbl=0; fgn=0
|
|
56
|
+
# spec: site-kit/SPEC.md §check-docs-render-fidelity — the known-HTML-element set is a kit built-in, not a config seam
|
|
57
|
+
split("a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd label legend li link main map mark menu meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script search section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr", A, " ")
|
|
58
|
+
for (i in A) HTMLEL[A[i]]=1
|
|
59
|
+
}
|
|
60
|
+
{
|
|
61
|
+
t=$0
|
|
62
|
+
while (match(t, /<h[1-6][ >]/)) { h++; t=substr(t, RSTART+RLENGTH) }
|
|
63
|
+
u=$0
|
|
64
|
+
while (match(u, /<table[ >]/)) { tbl++; u=substr(u, RSTART+RLENGTH) }
|
|
65
|
+
if (inpre) { if ($0 ~ /<\/pre>/) inpre=0; next }
|
|
66
|
+
if ($0 ~ /<pre/) { inpre=1; next }
|
|
67
|
+
s=$0
|
|
68
|
+
gsub(/<code[^>]*>[^<]*<\/code>/, "", s)
|
|
69
|
+
# spec: site-kit/SPEC.md §check-docs-render-fidelity — symptom (b), scanned before the tag-strip below so the placeholder tag is still present
|
|
70
|
+
w=s
|
|
71
|
+
while (match(w, /<\/?[A-Za-z][A-Za-z0-9]*[^>]*>/)) {
|
|
72
|
+
nm=substr(w, RSTART, RLENGTH); w=substr(w, RSTART+RLENGTH)
|
|
73
|
+
closing=(nm ~ /^<\//); selfclose=(nm ~ /\/>[ \t]*$/)
|
|
74
|
+
sub(/^<\/?/, "", nm); sub(/[^A-Za-z0-9].*/, "", nm)
|
|
75
|
+
nm=tolower(nm)
|
|
76
|
+
# spec: site-kit/SPEC.md §check-docs-render-fidelity — foreign-content subtree, tracked by depth so an unknown name inside it is legitimate SVG/MathML vocabulary rather than a leaked placeholder
|
|
77
|
+
if (nm == "svg" || nm == "math") {
|
|
78
|
+
if (closing) { if (fgn > 0) fgn-- } else if (!selfclose) fgn++
|
|
79
|
+
continue
|
|
80
|
+
}
|
|
81
|
+
if (fgn > 0) continue
|
|
82
|
+
if (!(nm in HTMLEL)) leak=1
|
|
83
|
+
}
|
|
84
|
+
# spec: site-kit/SPEC.md §check-docs-render-fidelity — symptom (a), any literal backtick, not only a fence run
|
|
85
|
+
gsub(/<[^>]*>/, "", s)
|
|
86
|
+
if (s ~ /`/) leak=1
|
|
87
|
+
}
|
|
88
|
+
END { print leak+0, h+0, tbl+0 }'
|
|
89
|
+
|
|
90
|
+
source_headings='
|
|
91
|
+
BEGIN { infence=0; fchar=""; flen=0; count=0; prevblank=1; previsatx=0 }
|
|
92
|
+
{
|
|
93
|
+
s=$0; n=0
|
|
94
|
+
while (substr(s,1,1)==" ") { s=substr(s,2); n++ }
|
|
95
|
+
isfence=0; fc=""; fl=0
|
|
96
|
+
if (n<=3 && (s ~ /^`{3,}/ || s ~ /^~{3,}/)) {
|
|
97
|
+
fc=substr(s,1,1); m=s
|
|
98
|
+
while (substr(m,1,1)==fc) { fl++; m=substr(m,2) }
|
|
99
|
+
isfence=1
|
|
100
|
+
}
|
|
101
|
+
if (infence) {
|
|
102
|
+
if (isfence && fc==fchar && fl>=flen && s ~ ("^" fchar "{" flen ",}[ \t]*$")) infence=0
|
|
103
|
+
prevblank=($0 ~ /^[ \t]*$/); previsatx=0; next
|
|
104
|
+
}
|
|
105
|
+
if (isfence) { infence=1; fchar=fc; flen=fl; prevblank=0; previsatx=0; next }
|
|
106
|
+
if (n<=3 && (s ~ /^=+[ \t]*$/ || s ~ /^-+[ \t]*$/) && prevblank==0 && previsatx==0) {
|
|
107
|
+
count++; prevblank=1; previsatx=0; next
|
|
108
|
+
}
|
|
109
|
+
if (n<=3 && s ~ /^#{1,6}([ \t]|$)/) { count++; prevblank=0; previsatx=1; next }
|
|
110
|
+
prevblank=($0 ~ /^[ \t]*$/); previsatx=0
|
|
111
|
+
}
|
|
112
|
+
END { print count+0 }'
|
|
113
|
+
|
|
114
|
+
# spec: site-kit/SPEC.md §check-docs-render-fidelity — count source GFM table starts (a pipe row followed by a | --- | delimiter row) outside code fences
|
|
115
|
+
source_tables='
|
|
116
|
+
BEGIN { infence=0; fchar=""; flen=0; count=0; prevpipe=0 }
|
|
117
|
+
{
|
|
118
|
+
s=$0; n=0
|
|
119
|
+
while (substr(s,1,1)==" ") { s=substr(s,2); n++ }
|
|
120
|
+
isfence=0; fc=""; fl=0
|
|
121
|
+
if (n<=3 && (s ~ /^`{3,}/ || s ~ /^~{3,}/)) {
|
|
122
|
+
fc=substr(s,1,1); m=s
|
|
123
|
+
while (substr(m,1,1)==fc) { fl++; m=substr(m,2) }
|
|
124
|
+
isfence=1
|
|
125
|
+
}
|
|
126
|
+
if (infence) {
|
|
127
|
+
if (isfence && fc==fchar && fl>=flen && s ~ ("^" fchar "{" flen ",}[ \t]*$")) infence=0
|
|
128
|
+
prevpipe=0; next
|
|
129
|
+
}
|
|
130
|
+
if (isfence) { infence=1; fchar=fc; flen=fl; prevpipe=0; next }
|
|
131
|
+
isdelim = (n<=3 && s ~ /^\|?[ \t:|-]*-[ \t:|-]*$/ && s ~ /\|/)
|
|
132
|
+
if (isdelim && prevpipe==1) { count++; prevpipe=0; next }
|
|
133
|
+
if ($0 ~ /^[ \t]*$/) { prevpipe=0; next }
|
|
134
|
+
prevpipe = (index($0, "|") > 0) ? 1 : 0
|
|
135
|
+
}
|
|
136
|
+
END { print count+0 }'
|
|
137
|
+
|
|
138
|
+
findings=()
|
|
139
|
+
for page in "${pages[@]}"; do
|
|
140
|
+
body="$(awk "$strip_fm" "$page")"; bst=$?
|
|
141
|
+
fail_closed "$bst" DOCS-RENDER-FIDELITY front-matter-strip
|
|
142
|
+
html="$(printf '%s\n' "$body" | "${SITE_KIT_RENDERER[@]}")"; rst=$?
|
|
143
|
+
fail_closed "$rst" DOCS-RENDER-FIDELITY renderer
|
|
144
|
+
|
|
145
|
+
read -r leak rcount rtbl < <(printf '%s\n' "$html" | awk "$rendered_scan"); ast=$?
|
|
146
|
+
fail_closed "$ast" DOCS-RENDER-FIDELITY rendered-scan
|
|
147
|
+
scount="$(printf '%s\n' "$body" | awk "$source_headings")"; sst=$?
|
|
148
|
+
fail_closed "$sst" DOCS-RENDER-FIDELITY source-scan
|
|
149
|
+
stbl="$(printf '%s\n' "$body" | awk "$source_tables")"; tst=$?
|
|
150
|
+
fail_closed "$tst" DOCS-RENDER-FIDELITY source-table-scan
|
|
151
|
+
|
|
152
|
+
[[ "$leak" -eq 1 ]] && findings+=("$page: a code-span corruption symptom (a stray backtick, or a raw non-HTML-element tag) leaked into rendered text — a code span or fenced block failed to parse")
|
|
153
|
+
[[ "$rcount" -gt "$scount" ]] && findings+=("$page: $rcount rendered heading(s) exceed $scount source heading(s) outside code — a code-fenced '#' line was promoted")
|
|
154
|
+
[[ "$rtbl" -lt "$stbl" ]] && findings+=("$page: $rtbl rendered table(s) fall short of $stbl source GFM table start(s) — a table collapsed into literal-pipe paragraph text (a row abutting a non-blank line)")
|
|
155
|
+
done
|
|
156
|
+
|
|
157
|
+
if [[ ${#findings[@]} -gt 0 ]]; then
|
|
158
|
+
echo "check-docs-render-fidelity: rendered docs page(s) diverge from source under the Pages parser:"
|
|
159
|
+
printf ' %s\n' "${findings[@]}"
|
|
160
|
+
echo " help: restructure the offending block so kramdown's GFM parser renders it faithfully — an"
|
|
161
|
+
echo " indented (4-space) code block avoids the consecutive-fence and unclosed-fence leakage"
|
|
162
|
+
echo " class; a doubled-backtick code span kept on one line (never split across a newline"
|
|
163
|
+
echo " before a <word> token) avoids the severed-span class."
|
|
164
|
+
exit 1
|
|
165
|
+
fi
|
|
166
|
+
echo "DOCS-RENDER-FIDELITY: clean (${#pages[@]} tracked markdown page(s) under $DOCS render with no span-corruption, heading, or table leakage)"
|
|
167
|
+
exit 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
alias 'alt.example'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
apex.example
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Point the gate at this fixture's synthetic tree, CNAME, and alias config. It
|
|
2
|
+
# cites the apex host plus alias URLs, but every alias URL sits under an exempt
|
|
3
|
+
# path class (*docs/posts/* immutable posts, */gate-tests/* fixtures). The gate
|
|
4
|
+
# must PASS.
|
|
5
|
+
tree tree/CNAME site-config.sh
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DOCS-CNAME-PARITY: clean
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
apex.example
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Point the gate at this fixture's synthetic docs tree. Two real bug shapes ride
|
|
2
|
+
# this page. (1) The Install skeleton: consecutive fenced blocks inside one list
|
|
3
|
+
# item, where the second fence prints literally and the '# contract:' line is
|
|
4
|
+
# promoted to a heading under kramdown-GFM. (2) The Verdict-line section: a
|
|
5
|
+
# single-backtick span carrying an angle-bracket placeholder, severed by
|
|
6
|
+
# kramdown's block-before-span parse so it leaks BOTH assertion-1 symptoms — a
|
|
7
|
+
# stray backtick and a raw non-HTML-element tag. The gate must REJECT.
|
|
8
|
+
tree/docs
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
leaked into rendered text
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Install
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Install
|
|
6
|
+
|
|
7
|
+
Vendor the kit, then:
|
|
8
|
+
|
|
9
|
+
1. Copy the config into place.
|
|
10
|
+
|
|
11
|
+
2. Give the queue file its header and each evidence file its skeleton — the
|
|
12
|
+
stage-stamp file and the lesson-disposition file
|
|
13
|
+
(`LESSON_EVIDENCE_FILE`, both boundary-reset to their header):
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
## Iteration: —
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
# contract: lifecycle-kit/SPEC.md §check-stage-evidence
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
# contract: lifecycle-kit/SPEC.md §check-lesson-disposition
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
3. Adopt the skills in your agent-skill directory.
|
|
31
|
+
|
|
32
|
+
## Verdict line
|
|
33
|
+
|
|
34
|
+
The consequence clause appends after the ` -> <verdict>` arrow, leaving it
|
|
35
|
+
disjoint from the width invariant below. A single-backtick span whose content
|
|
36
|
+
carries an angle-bracket placeholder is severed by kramdown's block-before-span
|
|
37
|
+
parse: the span never closes, so the page leaks a stray backtick *and* a raw
|
|
38
|
+
`<verdict>` tag into rendered text — both symptoms of assertion 1.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Point the gate at this fixture's synthetic docs tree — the faithful
|
|
2
|
+
# counterpart of every shape the bad page corrupts. The Install skeleton uses
|
|
3
|
+
# indented (4-space) code blocks; the Verdict-line section uses a
|
|
4
|
+
# doubled-backtick span kept on one line, so the placeholder renders as escaped
|
|
5
|
+
# entities inside a code element. The gate must PASS.
|
|
6
|
+
tree/docs
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DOCS-RENDER-FIDELITY: clean
|