checkwright 0.23.0 → 0.25.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 +175 -13
- package/lib/common/lock.sh +7 -0
- package/lib/common/recipe.sh +1 -1
- package/lib/diff.sh +2 -0
- package/lib/init.sh +40 -16
- package/lib/uninstall.sh +2 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +2 -0
- package/payload/canon-kit/SPEC.md +454 -28
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-amendment-update-target.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/checks/check-unmarked-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -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/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +18 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +85 -0
- package/payload/canon-kit/lib/spec.sh +16 -0
- package/payload/canon-kit/smoke/install.sh +3 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +17 -2
- package/payload/context-kit/README.md +6 -4
- package/payload/context-kit/SPEC.md +256 -76
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +2 -17
- package/payload/context-kit/checks/check-brevity.gate +3 -0
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
- package/payload/context-kit/checks/check-memory-off.gate +3 -0
- package/payload/context-kit/checks/check-settings-paths.gate +3 -0
- package/payload/context-kit/checks/check-settings-pins.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
- package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +1 -1
- package/payload/context-kit/smoke/agents-md.sh +16 -4
- package/payload/context-kit/smoke/install.sh +3 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/README.md +11 -1
- package/payload/delegation-kit/SPEC.md +652 -11
- package/payload/delegation-kit/bin/wait-probe.sh +184 -0
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
- package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
- package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
- package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +99 -0
- package/payload/delegation-kit/smoke/install.sh +21 -1
- package/payload/delegation-kit/templates/agent-execution.md +88 -4
- package/payload/delegation-kit/templates/subagent-stop-liveness.sh +56 -0
- package/payload/doctrine-kit/SPEC.md +1 -1
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
- package/payload/doctrine-kit/smoke/install.sh +17 -4
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +71 -7
- package/payload/drift-kit/bin/stage-economics.sh +1 -1
- package/payload/drift-kit/lib/drift.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +21 -14
- package/payload/evidence-kit/README.md +3 -1
- package/payload/evidence-kit/SPEC.md +160 -19
- package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
- package/payload/evidence-kit/lib/evidence.sh +2 -0
- package/payload/evidence-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/README.md +17 -9
- package/payload/gate-sdk/SPEC.md +4680 -295
- package/payload/gate-sdk/bin/build-native.sh +66 -1
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +37 -9
- package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
- package/payload/gate-sdk/bin/run-gates.sh +137 -13
- package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
- package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -1
- package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
- package/payload/gate-sdk/checks/check-core-files.gate +3 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +132 -15
- package/payload/gate-sdk/checks/check-graph.gate +3 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-identity.gate +3 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
- package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.gate +3 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +5 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +27 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-nospec.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-ungrounded.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kit-spec.md +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- 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/anchored.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +94 -0
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
- package/payload/gate-sdk/lib/gate.sh +232 -25
- package/payload/gate-sdk/smoke/install.sh +28 -1
- package/payload/guard-kit/README.md +4 -3
- package/payload/guard-kit/SPEC.md +578 -47
- package/payload/guard-kit/bin/compare-settings-allow.sh +36 -12
- package/payload/guard-kit/bin/run-guard-tests.sh +27 -4
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +46 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/guard-tests/background-cases.tsv +14 -0
- package/payload/guard-kit/guard-tests/cases.tsv +67 -9
- package/payload/guard-kit/lib/guard.sh +361 -18
- package/payload/guard-kit/templates/bash-guard.sh +2 -0
- package/payload/guard-kit/templates/close-triage.md +10 -3
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/lifecycle-kit/README.md +3 -2
- package/payload/lifecycle-kit/SPEC.md +509 -77
- package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
- package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/lib/stages.sh +5 -0
- package/payload/lifecycle-kit/smoke/install.sh +29 -15
- package/payload/lifecycle-kit/templates/lead.md +32 -0
- package/payload/lifecycle-kit/templates/stages/align.md +20 -2
- package/payload/lifecycle-kit/templates/stages/build.md +3 -3
- package/payload/lifecycle-kit/templates/stages/close.md +20 -6
- package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
- package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
- package/payload/queue-kit/README.md +10 -10
- package/payload/queue-kit/SPEC.md +379 -84
- package/payload/queue-kit/bin/queue-counts.sh +1 -1
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +0 -49
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +41 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
- package/payload/site-kit/smoke/install.sh +1 -1
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -124
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
- package/payload/context-kit/checks/check-memory-off.sh +0 -113
- package/payload/context-kit/checks/check-settings-paths.sh +0 -94
- package/payload/context-kit/checks/check-settings-pins.sh +0 -111
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
- package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
- package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
- package/payload/gate-sdk/checks/check-core-files.sh +0 -76
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
- package/payload/gate-sdk/checks/check-gate-assertions.sh +0 -148
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
- package/payload/gate-sdk/checks/check-graph.sh +0 -632
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
- package/payload/gate-sdk/checks/check-identity.sh +0 -135
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
- package/payload/gate-sdk/checks/check-tree-terms.sh +0 -66
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
- package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
- package/payload/queue-kit/bin/queue-index.sh +0 -182
- package/payload/queue-kit/bin/roadmap.sh +0 -76
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# spec: queue-kit/SPEC.md §bin/queue-index.sh — compact queue surface for task selection (a tool, not a gate; no # graph: manifest)
|
|
3
|
-
#
|
|
4
|
-
# usage: queue-index.sh [--collapse-deferred] [--extent <slug>] [--icebox-candidates] [queue-file]
|
|
5
|
-
# default: header + active (• ready / ✗ blocked) + deferred titles + icebox tally;
|
|
6
|
-
# --collapse-deferred: per-### tally; --extent <slug>: "<start> <end>"; --icebox-candidates: eviction worklist
|
|
7
|
-
set -uo pipefail
|
|
8
|
-
|
|
9
|
-
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
10
|
-
# shellcheck source=../lib/queue.sh
|
|
11
|
-
source "$KIT/lib/queue.sh"
|
|
12
|
-
|
|
13
|
-
mode=index; collapse=0; slug=""; file=""
|
|
14
|
-
while (($#)); do
|
|
15
|
-
case "$1" in
|
|
16
|
-
--collapse-deferred) collapse=1; shift ;;
|
|
17
|
-
--extent) mode=extent; slug="${2:-}"; shift 2 || true ;;
|
|
18
|
-
--icebox-candidates) mode=candidates; shift ;;
|
|
19
|
-
-h|--help) sed -n '3,5p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; exit 0 ;;
|
|
20
|
-
-*) echo "queue-index: unknown option: $1" >&2; exit 2 ;;
|
|
21
|
-
*) file="$1"; shift ;;
|
|
22
|
-
esac
|
|
23
|
-
done
|
|
24
|
-
FILE="${file:-$QUEUE_KIT_QUEUE_FILE}"
|
|
25
|
-
[[ -f "$FILE" ]] || { echo "queue-index: file not found: $FILE" >&2; exit 2; }
|
|
26
|
-
|
|
27
|
-
if [[ "$mode" == extent ]]; then
|
|
28
|
-
[[ -n "$slug" ]] || { echo "queue-index: --extent needs a <slug>" >&2; exit 2; }
|
|
29
|
-
range="$(awk -v slug="$slug" '
|
|
30
|
-
!found && $0 ~ /^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/ {
|
|
31
|
-
match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/)
|
|
32
|
-
if (substr($0, RSTART + 2, RLENGTH - 4) == slug) {
|
|
33
|
-
found = 1; start = NR; ind = match($0, /[^[:space:]]/) - 1; next
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
found {
|
|
37
|
-
if ($0 ~ /^#/ || $0 ~ /^---[[:space:]]*$/) { print start, NR - 1; done = 1; exit }
|
|
38
|
-
if ($0 ~ /^[[:space:]]*-[[:space:]]/ && (match($0, /[^[:space:]]/) - 1) <= ind) {
|
|
39
|
-
print start, NR - 1; done = 1; exit
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
END { if (found && !done) print start, NR }
|
|
43
|
-
' "$FILE")"
|
|
44
|
-
[[ -n "$range" ]] || { echo "queue-index: slug not found: $slug" >&2; exit 1; }
|
|
45
|
-
echo "$range"
|
|
46
|
-
exit 0
|
|
47
|
-
fi
|
|
48
|
-
|
|
49
|
-
if [[ "$mode" == candidates ]]; then
|
|
50
|
-
cutoff="$(date -d "$QUEUE_KIT_ICEBOX_AGE_DAYS days ago" +%F 2>/dev/null)" \
|
|
51
|
-
|| { echo "queue-index: cannot compute the age cutoff (date -d unavailable)" >&2; exit 2; }
|
|
52
|
-
# spec: queue-kit/SPEC.md §bin/queue-index.sh — an advisory worklist, never a verdict: the age filter only bounds how much close must look at, and the cost-class opener is printed for the reading judgment rather than matched on
|
|
53
|
-
awk -v defre="$QUEUE_DEFERRED_RE" -v sectre="$QUEUE_SECTION_RE" -v cutoff="$cutoff" '
|
|
54
|
-
function opener(t) {
|
|
55
|
-
sub(/^.*\*\*Cost while deferred:?\*\*:?[[:space:]]*/, "", t)
|
|
56
|
-
sub(/[[:space:]]*$/, "", t)
|
|
57
|
-
if (length(t) > 48) t = substr(t, 1, 47) "…"
|
|
58
|
-
return (t == "" ? "(unstated)" : t)
|
|
59
|
-
}
|
|
60
|
-
# spec: queue-kit/SPEC.md §bin/queue-index.sh — the low cost class is matched on the opener as prose, which is an unacceptable heuristic in a gate and exactly the right ceiling in an advisory worklist; an uncosted entry is listed too, because an absent input appears rather than vanishing
|
|
61
|
-
function lowclass(t) { return (t ~ /^(low|zero|bounded|cosmetic)/) }
|
|
62
|
-
function flush( d) {
|
|
63
|
-
if (slug == "") return
|
|
64
|
-
d = (surfaced != "" ? surfaced : filed)
|
|
65
|
-
if ((d == "" || d < cutoff) && (cost == "" || lowclass(cost)))
|
|
66
|
-
printf "%-46s %4dl %-11s %s\n", slug, FNR - start, \
|
|
67
|
-
(d == "" ? "(undated)" : d), (cost == "" ? "(uncosted)" : cost)
|
|
68
|
-
slug = ""; surfaced = ""; filed = ""; cost = ""
|
|
69
|
-
}
|
|
70
|
-
$0 ~ sectre { flush(); ind = ($0 ~ defre); next }
|
|
71
|
-
!ind { next }
|
|
72
|
-
/^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/ {
|
|
73
|
-
flush()
|
|
74
|
-
match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/)
|
|
75
|
-
slug = substr($0, RSTART + 2, RLENGTH - 4); start = FNR
|
|
76
|
-
}
|
|
77
|
-
slug == "" { next }
|
|
78
|
-
match($0, /Surfaced [0-9]{4}-[0-9]{2}-[0-9]{2}/) {
|
|
79
|
-
if (surfaced == "") surfaced = substr($0, RSTART + 9, 10)
|
|
80
|
-
}
|
|
81
|
-
match($0, /Filed [0-9]{4}-[0-9]{2}-[0-9]{2}/) {
|
|
82
|
-
if (filed == "") filed = substr($0, RSTART + 6, 10)
|
|
83
|
-
}
|
|
84
|
-
/\*\*Cost while deferred/ { if (cost == "") cost = opener($0) }
|
|
85
|
-
END { FNR++; flush() }
|
|
86
|
-
' "$FILE"
|
|
87
|
-
exit 0
|
|
88
|
-
fi
|
|
89
|
-
|
|
90
|
-
hdr="$(grep -m1 '^## Iteration:' "$FILE" || true)"
|
|
91
|
-
[[ -n "$hdr" ]] && { echo "$hdr"; echo ""; }
|
|
92
|
-
|
|
93
|
-
awk -v activere="$QUEUE_ACTIVE_RE" -v deferredre="$QUEUE_DEFERRED_RE" \
|
|
94
|
-
-v lessonsre="$QUEUE_LESSONS_RE" -v cap="$QUEUE_KIT_ATTEND_CAP" \
|
|
95
|
-
-v sectre="$QUEUE_SECTION_RE" -v collapse="$collapse" \
|
|
96
|
-
-v iceboxre="$QUEUE_ICEBOX_RE" -v iceboxname="$QUEUE_KIT_ICEBOX_SECTION" '
|
|
97
|
-
# spec: queue-kit/SPEC.md §bin/queue-index.sh — tags come off before the slug-and-dash strip so the dash is adjacent when that regex runs, and a title left empty renders as the bare slug rather than an orphaned separator
|
|
98
|
-
function title(line, t) {
|
|
99
|
-
t = line
|
|
100
|
-
sub(/^[[:space:]]*-[[:space:]]+/, "", t)
|
|
101
|
-
gsub(/\[[^]]*\]/, "", t)
|
|
102
|
-
sub(/^\*\*[a-z0-9][a-z0-9-]*\*\*[[:space:]]*(—[[:space:]]*)?/, "", t)
|
|
103
|
-
sub(/^[[:space:]]+/, "", t); sub(/[[:space:]]+$/, "", t)
|
|
104
|
-
if (length(t) > 64) t = substr(t, 1, 63) "…"
|
|
105
|
-
return t
|
|
106
|
-
}
|
|
107
|
-
function joined(sl, t) { return (t == "" ? sl : sl " — " t) }
|
|
108
|
-
function drainex(line, d) {
|
|
109
|
-
if (!match(line, /\[drain-exempt:[[:space:]]*[^]]+\]/)) return ""
|
|
110
|
-
d = substr(line, RSTART, RLENGTH)
|
|
111
|
-
sub(/\[drain-exempt:[[:space:]]*/, "", d); sub(/\][[:space:]]*$/, "", d)
|
|
112
|
-
return d
|
|
113
|
-
}
|
|
114
|
-
function blockers(line, s, r, b) {
|
|
115
|
-
s = line; r = ""
|
|
116
|
-
while (match(s, /\[blocked-by:[[:space:]]*[a-z0-9][a-z0-9-]*/)) {
|
|
117
|
-
b = substr(s, RSTART, RLENGTH); sub(/\[blocked-by:[[:space:]]*/, "", b)
|
|
118
|
-
r = r (r == "" ? "" : ", ") b
|
|
119
|
-
s = substr(s, RSTART + RLENGTH)
|
|
120
|
-
}
|
|
121
|
-
return r
|
|
122
|
-
}
|
|
123
|
-
$0 ~ activere { sec = "active"; next }
|
|
124
|
-
$0 ~ deferredre { sec = "deferred"; next }
|
|
125
|
-
iceboxre != "" && $0 ~ iceboxre { sec = "icebox"; next }
|
|
126
|
-
$0 ~ lessonsre { sec = "lessons"; next }
|
|
127
|
-
$0 ~ sectre { sec = "other"; next }
|
|
128
|
-
|
|
129
|
-
# spec: queue-kit/SPEC.md §bin/queue-index.sh — the icebox is a tally and never a listing: this surface is embedded in the always-loaded session brief, so listing the tier would re-import the very tokens the tier exists to remove
|
|
130
|
-
sec == "icebox" && /^-[[:space:]]/ && match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/) { ni++; next }
|
|
131
|
-
|
|
132
|
-
sec == "lessons" && /^-[[:space:]]/ && /\[attend\]/ {
|
|
133
|
-
nl++
|
|
134
|
-
if (nl <= cap) { line = $0; sub(/[[:space:]]+$/, "", line); att[nl] = line }
|
|
135
|
-
next
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
sec == "active" && /^-[[:space:]]/ && match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/) {
|
|
139
|
-
sl = substr($0, RSTART + 2, RLENGTH - 4)
|
|
140
|
-
bl = blockers($0); de = drainex($0)
|
|
141
|
-
na++; amark[na] = (bl == "" ? "•" : "✗")
|
|
142
|
-
atitle[na] = joined(sl, title($0)) \
|
|
143
|
-
(bl == "" ? "" : " [blocked-by: " bl "]") \
|
|
144
|
-
(de == "" ? "" : " [drain-exempt: " de "]")
|
|
145
|
-
next
|
|
146
|
-
}
|
|
147
|
-
sec == "deferred" && /^###[[:space:]]/ {
|
|
148
|
-
cur = $0; sub(/^###[[:space:]]+/, "", cur); sub(/[[:space:]]+$/, "", cur); next
|
|
149
|
-
}
|
|
150
|
-
sec == "deferred" && /^-[[:space:]]/ && match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/) {
|
|
151
|
-
sl = substr($0, RSTART + 2, RLENGTH - 4)
|
|
152
|
-
key = (cur == "" ? "(top)" : cur)
|
|
153
|
-
if (!(key in seen)) { seen[key] = 1; dord[++nd] = key }
|
|
154
|
-
cnt[key]++
|
|
155
|
-
dn++; dsub[dn] = key; dtitle[dn] = joined(sl, title($0))
|
|
156
|
-
next
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
END {
|
|
160
|
-
print "Active (pick the first •):"
|
|
161
|
-
if (na == 0) print " (none — active queue empty)"
|
|
162
|
-
for (i = 1; i <= na; i++) printf " %s %s\n", amark[i], atitle[i]
|
|
163
|
-
print ""
|
|
164
|
-
if (collapse == 1) {
|
|
165
|
-
print "Deferred (tally):"
|
|
166
|
-
if (nd == 0) print " (none)"
|
|
167
|
-
for (i = 1; i <= nd; i++) printf " %s: %d\n", dord[i], cnt[dord[i]]
|
|
168
|
-
} else {
|
|
169
|
-
print "Deferred:"
|
|
170
|
-
if (dn == 0) print " (none)"
|
|
171
|
-
for (i = 1; i <= dn; i++) printf " %s\n", dtitle[i]
|
|
172
|
-
}
|
|
173
|
-
if (iceboxre != "") printf "%s: %d entries\n", iceboxname, ni + 0
|
|
174
|
-
if (nl > 0) {
|
|
175
|
-
print ""
|
|
176
|
-
print "Attention (Lessons [attend], this iteration):"
|
|
177
|
-
lim = (nl < cap ? nl : cap)
|
|
178
|
-
for (i = 1; i <= lim; i++) printf " %s\n", att[i]
|
|
179
|
-
if (nl > cap) printf " (+%d more [attend])\n", nl - cap
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
' "$FILE"
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# spec: queue-kit/SPEC.md §bin/roadmap.sh — the public roadmap projected off the queue's [roadmap:] tags (a tool, not a gate; no # graph: manifest)
|
|
3
|
-
#
|
|
4
|
-
# usage: roadmap.sh [--emit|--write] [queue-file]
|
|
5
|
-
# --emit (default): print the generated block, the surface check-roadmap-fresh byte-compares.
|
|
6
|
-
# --write: splice that block between QUEUE_KIT_ROADMAP_FILE's markers, touching nothing outside them.
|
|
7
|
-
set -uo pipefail
|
|
8
|
-
|
|
9
|
-
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
10
|
-
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
11
|
-
# shellcheck source=../../gate-sdk/lib/inject.sh
|
|
12
|
-
source "$SDK/lib/inject.sh"
|
|
13
|
-
# shellcheck source=../lib/queue.sh
|
|
14
|
-
source "$KIT/lib/queue.sh"
|
|
15
|
-
|
|
16
|
-
mode="emit"; file=""
|
|
17
|
-
while (($#)); do
|
|
18
|
-
case "$1" in
|
|
19
|
-
--emit) mode="emit"; shift ;;
|
|
20
|
-
--write) mode="write"; shift ;;
|
|
21
|
-
-h|--help) sed -n '3,6p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; exit 0 ;;
|
|
22
|
-
-*) echo "roadmap: unknown option: $1" >&2; exit 2 ;;
|
|
23
|
-
*) file="$1"; shift ;;
|
|
24
|
-
esac
|
|
25
|
-
done
|
|
26
|
-
|
|
27
|
-
FILE="${file:-$QUEUE_KIT_QUEUE_FILE}"
|
|
28
|
-
[[ -f "$FILE" ]] || { echo "roadmap: queue file not found: $FILE" >&2; exit 2; }
|
|
29
|
-
[[ ${#QUEUE_KIT_HORIZONS[@]} -gt 0 ]] \
|
|
30
|
-
|| { echo "roadmap: QUEUE_KIT_HORIZONS is empty — no roadmap vocabulary is configured" >&2; exit 2; }
|
|
31
|
-
|
|
32
|
-
entries="$(queue_roadmap_entries "$FILE")"; st=$?
|
|
33
|
-
[[ "$st" -eq 0 ]] || { echo "roadmap: the queue parse failed (exit $st)" >&2; exit 2; }
|
|
34
|
-
|
|
35
|
-
# spec: queue-kit/SPEC.md §bin/roadmap.sh — every configured horizon gets its heading whether or not the queue fills it: an empty horizon is information, and a section that vanishes when it empties reads as a page that forgot it
|
|
36
|
-
emit_body() {
|
|
37
|
-
local first=1 h n ntags fieldv slug nsum summary track
|
|
38
|
-
for h in "${QUEUE_KIT_HORIZONS[@]}"; do
|
|
39
|
-
[[ "$first" -eq 1 ]] || printf '\n'
|
|
40
|
-
first=0
|
|
41
|
-
printf '### %s\n\n' "$h"
|
|
42
|
-
n=0
|
|
43
|
-
while IFS=$'\t' read -r ntags fieldv slug nsum summary; do
|
|
44
|
-
[[ -n "$slug" ]] || continue
|
|
45
|
-
[[ "$ntags" == 1 ]] || continue
|
|
46
|
-
[[ "$fieldv" == "$h/"* ]] || continue
|
|
47
|
-
track="${fieldv#*/}"
|
|
48
|
-
[[ -n "$track" && "$track" != */* ]] || continue
|
|
49
|
-
# spec: queue-kit/SPEC.md §bin/roadmap.sh — the whitelist: an entry with no single declaration contributes no prose, so unmarked body text can never reach the page even when the gate is bypassed
|
|
50
|
-
[[ "$nsum" == 1 && -n "$summary" ]] || continue
|
|
51
|
-
printf -- '- **`%s`** *(%s)* — %s\n' "$slug" "$track" "$summary"
|
|
52
|
-
n=$((n + 1))
|
|
53
|
-
done <<< "$entries"
|
|
54
|
-
[[ "$n" -gt 0 ]] || printf '%s\n' "_Nothing is queued under this horizon._"
|
|
55
|
-
done
|
|
56
|
-
# comment-tier-exempt: load-bearing blank — kramdown ends a list only on a blank
|
|
57
|
-
# line, else the :end marker abuts the last bullet and is absorbed into that <li>;
|
|
58
|
-
# command substitution strips it on both sides, so the byte-compare still holds.
|
|
59
|
-
printf '\n'
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if [[ "$mode" == emit ]]; then
|
|
63
|
-
emit_body
|
|
64
|
-
exit 0
|
|
65
|
-
fi
|
|
66
|
-
|
|
67
|
-
[[ -n "$QUEUE_KIT_ROADMAP_FILE" ]] \
|
|
68
|
-
|| { echo "roadmap: --write needs QUEUE_KIT_ROADMAP_FILE; it is empty (no projection page configured)" >&2; exit 2; }
|
|
69
|
-
[[ -f "$QUEUE_KIT_ROADMAP_FILE" ]] \
|
|
70
|
-
|| { echo "roadmap: projection page not found: $QUEUE_KIT_ROADMAP_FILE" >&2; exit 2; }
|
|
71
|
-
|
|
72
|
-
BEGIN="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:begin -->"
|
|
73
|
-
END="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:end -->"
|
|
74
|
-
action="$(emit_body | inject_marker_block "$QUEUE_KIT_ROADMAP_FILE" "$BEGIN" "$END")" \
|
|
75
|
-
|| { echo "roadmap: failed to write the roadmap block into $QUEUE_KIT_ROADMAP_FILE" >&2; exit 2; }
|
|
76
|
-
echo "roadmap: $action the $QUEUE_KIT_ROADMAP_MARKER block in $QUEUE_KIT_ROADMAP_FILE"
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
-
# install: zero-config
|
|
4
|
-
# spec: queue-kit/SPEC.md §check-queue-prose-precondition — no active entry states a forward precondition in prose without a blocked-by tag (selection trusts tags, not prose)
|
|
5
|
-
#
|
|
6
|
-
# usage: check-queue-prose-precondition.sh [queue-file]
|
|
7
|
-
# Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE); the forward
|
|
8
|
-
# trigger set is QUEUE_KIT_PRECONDITION_REGEX (matched against lowercased prose).
|
|
9
|
-
set -uo pipefail
|
|
10
|
-
|
|
11
|
-
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
12
|
-
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
13
|
-
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
14
|
-
source "$SDK/lib/gate.sh"
|
|
15
|
-
# shellcheck source=../lib/queue.sh
|
|
16
|
-
source "$KIT/lib/queue.sh"
|
|
17
|
-
|
|
18
|
-
FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
|
|
19
|
-
[[ -f "$FILE" ]] || { echo "check-queue-prose-precondition: file not found: $FILE" >&2; exit 2; }
|
|
20
|
-
|
|
21
|
-
out="$(awk -v activere="$QUEUE_ACTIVE_RE" -v sectre="$QUEUE_SECTION_RE" -v trig="$QUEUE_KIT_PRECONDITION_REGEX" '
|
|
22
|
-
function flush() {
|
|
23
|
-
if (startln == 0) return
|
|
24
|
-
b = tolower(body)
|
|
25
|
-
gsub(/\[[^]]*\]/, " ", b) # drop bracket tags/links from the prose
|
|
26
|
-
gsub(/(once|when|after)[^.,;]*(landed|shipped|merged|resolved|completed|was [a-z]+ed)/, " ", b) # strip past-tense narration
|
|
27
|
-
if (b ~ trig && !hasblock)
|
|
28
|
-
printf "%d\t%s\n", startln, lead
|
|
29
|
-
startln = 0; body = ""; lead = ""; hasblock = 0
|
|
30
|
-
}
|
|
31
|
-
$0 ~ activere { inq = 1; flush(); next }
|
|
32
|
-
$0 ~ sectre { inq = 0; flush(); next }
|
|
33
|
-
!inq { next }
|
|
34
|
-
/^-[[:space:]]/ { # a new top-level active entry
|
|
35
|
-
flush()
|
|
36
|
-
startln = FNR; lead = $0; body = $0
|
|
37
|
-
if ($0 ~ /\[blocked-by:/ || $0 ~ /\[precondition-ok:/) hasblock = 1
|
|
38
|
-
next
|
|
39
|
-
}
|
|
40
|
-
{
|
|
41
|
-
if (startln == 0) next
|
|
42
|
-
body = body " " $0
|
|
43
|
-
if ($0 ~ /\[blocked-by:/ || $0 ~ /\[precondition-ok:/) hasblock = 1
|
|
44
|
-
}
|
|
45
|
-
END { flush() }
|
|
46
|
-
' "$FILE")"; st=$?
|
|
47
|
-
fail_closed "$st" QUEUE-PROSE-PRECONDITION awk
|
|
48
|
-
|
|
49
|
-
if [[ -n "$out" ]]; then
|
|
50
|
-
echo "check-queue-prose-precondition: active entry states a forward precondition in prose"
|
|
51
|
-
echo "but carries no [blocked-by:] tag — selection trusts tags, so it is latently blocked"
|
|
52
|
-
echo "yet mechanically pickable as 'first unblocked':"
|
|
53
|
-
while IFS=$'\t' read -r ln lead; do
|
|
54
|
-
[[ -n "$ln" ]] || continue
|
|
55
|
-
echo " $FILE:$ln: $lead"
|
|
56
|
-
done <<< "$out"
|
|
57
|
-
echo " help: tag the real blocker '[blocked-by: <slug>]', or move the entry to the"
|
|
58
|
-
echo " Deferred section, or rephrase past-tense if the precondition is already"
|
|
59
|
-
echo " met, or opt out with '[precondition-ok: <reason>]' anywhere in the entry."
|
|
60
|
-
exit 1
|
|
61
|
-
fi
|
|
62
|
-
|
|
63
|
-
echo "QUEUE-PROSE-PRECONDITION: clean (no untagged forward precondition in the active sections of $FILE)"
|
|
64
|
-
exit 0
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md,ROADMAP.md,scripts/queue-config.sh dir=one valve=none tier=precommit trigger=TASK-QUEUE.md,ROADMAP.md,scripts/queue-config.sh
|
|
3
|
-
# install: on-surface
|
|
4
|
-
# spec: queue-kit/SPEC.md §check-roadmap-fresh — every [roadmap:] tag names a configured horizon and track and pairs with exactly one roadmap-summary: declaration, and the projection page's marker block is the byte-fresh emission of bin/roadmap.sh
|
|
5
|
-
#
|
|
6
|
-
# usage: check-roadmap-fresh.sh [projection-file] [emit-file]
|
|
7
|
-
# bare: compare the marker block in QUEUE_KIT_ROADMAP_FILE against `roadmap.sh --emit`.
|
|
8
|
-
# two args: compare the block extracted from projection-file to a pre-baked emit-file (hermetic fixture).
|
|
9
|
-
set -uo pipefail
|
|
10
|
-
|
|
11
|
-
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
12
|
-
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
13
|
-
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
14
|
-
source "$SDK/lib/gate.sh"
|
|
15
|
-
# shellcheck source=../lib/queue.sh
|
|
16
|
-
source "$KIT/lib/queue.sh"
|
|
17
|
-
|
|
18
|
-
PROJECTION="${1:-$QUEUE_KIT_ROADMAP_FILE}"
|
|
19
|
-
EMIT_SRC="${2:-}"
|
|
20
|
-
|
|
21
|
-
# spec: queue-kit/SPEC.md §check-roadmap-fresh — no configured page is the clean skip for a consumer that publishes no roadmap, matching check-queue-slug-liveness's empty-globs behavior
|
|
22
|
-
if [[ -z "$PROJECTION" ]]; then
|
|
23
|
-
echo "ROADMAP-FRESH: clean (QUEUE_KIT_ROADMAP_FILE empty — this consumer publishes no roadmap)"
|
|
24
|
-
exit 0
|
|
25
|
-
fi
|
|
26
|
-
|
|
27
|
-
[[ -f "$QUEUE_KIT_QUEUE_FILE" ]] \
|
|
28
|
-
|| { echo "check-roadmap-fresh: queue file not found: $QUEUE_KIT_QUEUE_FILE" >&2; exit 2; }
|
|
29
|
-
|
|
30
|
-
# spec: queue-kit/SPEC.md §check-roadmap-fresh — assertion B runs first: a tag naming an unconfigured horizon is silently dropped from the emission, so a freshness verdict taken before the fields are validated would pass a page that quietly lost an item
|
|
31
|
-
horizons=" ${QUEUE_KIT_HORIZONS[*]+"${QUEUE_KIT_HORIZONS[*]}"} "
|
|
32
|
-
tracks=" ${QUEUE_KIT_TRACKS[*]+"${QUEUE_KIT_TRACKS[*]}"} "
|
|
33
|
-
bad=()
|
|
34
|
-
tagged=0
|
|
35
|
-
while IFS=$'\t' read -r ntags fieldv slug nsum _summary; do
|
|
36
|
-
[[ -n "$slug" ]] || continue
|
|
37
|
-
|
|
38
|
-
# spec: queue-kit/SPEC.md §check-roadmap-fresh — assertion C, both directions: the tag decides projection and the declaration is the only prose that may be projected, so neither is meaningful without the other
|
|
39
|
-
if [[ "$ntags" -eq 0 ]]; then
|
|
40
|
-
bad+=("$slug: carries a roadmap-summary: declaration but no [roadmap:] tag; a dead marking is what a dropped or reflowed tag looks like from the page's side")
|
|
41
|
-
continue
|
|
42
|
-
fi
|
|
43
|
-
tagged=$((tagged + 1))
|
|
44
|
-
# spec: queue-kit/SPEC.md §check-roadmap-fresh — the declaration count and the tag's fields are independent, so both are reported in one run rather than costing the author a second round trip
|
|
45
|
-
[[ "$nsum" -eq 1 ]] \
|
|
46
|
-
|| bad+=("$slug: is [roadmap:]-tagged but carries $nsum roadmap-summary: declaration(s); exactly one is required")
|
|
47
|
-
|
|
48
|
-
if [[ "$ntags" -ne 1 ]]; then
|
|
49
|
-
bad+=("$slug: carries $ntags [roadmap:] tags; an entry takes at most one")
|
|
50
|
-
continue
|
|
51
|
-
fi
|
|
52
|
-
if [[ "$fieldv" != */* || "$fieldv" == */*/* ]]; then
|
|
53
|
-
bad+=("$slug: field '$fieldv' does not parse as <horizon>/<track>")
|
|
54
|
-
continue
|
|
55
|
-
fi
|
|
56
|
-
h="${fieldv%%/*}"; t="${fieldv#*/}"
|
|
57
|
-
[[ "$horizons" == *" $h "* ]] || bad+=("$slug: unknown horizon '$h'")
|
|
58
|
-
[[ "$tracks" == *" $t "* ]] || bad+=("$slug: unknown track '$t'")
|
|
59
|
-
done < <(queue_roadmap_entries "$QUEUE_KIT_QUEUE_FILE")
|
|
60
|
-
|
|
61
|
-
if [[ ${#bad[@]} -gt 0 ]]; then
|
|
62
|
-
echo "check-roadmap-fresh: invalid roadmap curation in $QUEUE_KIT_QUEUE_FILE"
|
|
63
|
-
echo "(an unconfigured value or an unpaired marking drops the entry off the page"
|
|
64
|
-
echo "with nothing else to notice):"
|
|
65
|
-
for b in "${bad[@]}"; do echo " $b"; done
|
|
66
|
-
echo " help: an entry joins the page with a [roadmap: <horizon>/<track>] tag on its lead"
|
|
67
|
-
echo " line, both values drawn from QUEUE_KIT_HORIZONS / QUEUE_KIT_TRACKS, plus"
|
|
68
|
-
echo " exactly one indented 'roadmap-summary: <text>' declaration in its body —"
|
|
69
|
-
echo " the only prose the public page prints (queue-kit/SPEC.md §bin/roadmap.sh)."
|
|
70
|
-
exit 1
|
|
71
|
-
fi
|
|
72
|
-
|
|
73
|
-
BEGIN="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:begin -->"
|
|
74
|
-
END="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:end -->"
|
|
75
|
-
|
|
76
|
-
# spec: queue-kit/SPEC.md §check-roadmap-fresh — a configured path with no page, no markers, or a half marker pair is a broken install, not a clean skip
|
|
77
|
-
[[ -f "$PROJECTION" ]] || { echo "check-roadmap-fresh: projection not found: $PROJECTION" >&2; exit 2; }
|
|
78
|
-
nb="$(grep -cF -- "$BEGIN" "$PROJECTION")"
|
|
79
|
-
ne="$(grep -cF -- "$END" "$PROJECTION")"
|
|
80
|
-
[[ "$nb" -eq 1 && "$ne" -eq 1 ]] || {
|
|
81
|
-
echo "check-roadmap-fresh: $PROJECTION needs exactly one '$BEGIN' + '$END' pair (found $nb and $ne)" >&2
|
|
82
|
-
exit 2
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
block="$(awk -v b="$BEGIN" -v e="$END" '
|
|
86
|
-
$0 == b { inb = 1; next }
|
|
87
|
-
$0 == e { inb = 0; next }
|
|
88
|
-
inb { print }
|
|
89
|
-
' "$PROJECTION")"; st=$?
|
|
90
|
-
fail_closed "$st" check-roadmap-fresh awk
|
|
91
|
-
|
|
92
|
-
if [[ -n "$EMIT_SRC" ]]; then
|
|
93
|
-
[[ -f "$EMIT_SRC" ]] || { echo "check-roadmap-fresh: emit source not found: $EMIT_SRC" >&2; exit 2; }
|
|
94
|
-
emitted="$(cat "$EMIT_SRC")"; st=$?
|
|
95
|
-
fail_closed "$st" check-roadmap-fresh cat
|
|
96
|
-
else
|
|
97
|
-
GEN="$KIT/bin/roadmap.sh"
|
|
98
|
-
[[ -x "$GEN" ]] || { echo "check-roadmap-fresh: emitter not found: $GEN" >&2; exit 2; }
|
|
99
|
-
emitted="$(bash "$GEN" --emit)"; st=$?
|
|
100
|
-
fail_closed "$st" check-roadmap-fresh roadmap
|
|
101
|
-
fi
|
|
102
|
-
|
|
103
|
-
if [[ "$block" != "$emitted" ]]; then
|
|
104
|
-
echo "check-roadmap-fresh: the $QUEUE_KIT_ROADMAP_MARKER block in $PROJECTION is stale vs bin/roadmap.sh:"
|
|
105
|
-
diff <(printf '%s\n' "$emitted") <(printf '%s\n' "$block") | head -20 || true
|
|
106
|
-
echo " help: regenerate — bash queue-kit/bin/roadmap.sh --write"
|
|
107
|
-
exit 1
|
|
108
|
-
fi
|
|
109
|
-
|
|
110
|
-
echo "ROADMAP-FRESH: clean (the $QUEUE_KIT_ROADMAP_MARKER block in $PROJECTION byte-matches bin/roadmap.sh; $tagged tagged entry/entries name a configured horizon and track)"
|
|
111
|
-
exit 0
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=docs/CNAME dir=one valve=none tier=precommit trigger=*
|
|
3
|
-
# install: on-surface
|
|
4
|
-
# 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
|
|
5
|
-
#
|
|
6
|
-
# usage: check-docs-cname-parity.sh [scan-root] [cname-file] [config-file]
|
|
7
|
-
# defaults SITE_KIT_SCAN_ROOT / SITE_KIT_CNAME; config-file overrides
|
|
8
|
-
# SITE_KIT_CONFIG_FILE so a fixture supplies its own SITE_KIT_ALIASES.
|
|
9
|
-
set -uo pipefail
|
|
10
|
-
|
|
11
|
-
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
12
|
-
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
13
|
-
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
14
|
-
source "$SDK/lib/gate.sh"
|
|
15
|
-
|
|
16
|
-
SCANARG="${1:-}"; CNAMEARG="${2:-}"; CONFIGARG="${3:-}"
|
|
17
|
-
[[ -n "$CONFIGARG" ]] && export SITE_KIT_CONFIG_FILE="$CONFIGARG"
|
|
18
|
-
# shellcheck source=../lib/site.sh
|
|
19
|
-
source "$KIT/lib/site.sh"
|
|
20
|
-
|
|
21
|
-
SCANROOT="${SCANARG:-$SITE_KIT_SCAN_ROOT}"; SCANROOT="${SCANROOT%/}"
|
|
22
|
-
CNAME="${CNAMEARG:-$SITE_KIT_CNAME}"
|
|
23
|
-
|
|
24
|
-
git rev-parse --git-dir >/dev/null 2>&1 || {
|
|
25
|
-
echo "check-docs-cname-parity: not a git repository — cannot enumerate tracked files" >&2; exit 2; }
|
|
26
|
-
[[ -f "$CNAME" ]] || { echo "check-docs-cname-parity: CNAME not found: $CNAME" >&2; exit 2; }
|
|
27
|
-
|
|
28
|
-
mapfile -t hlines < <(grep -v '^[[:space:]]*$' "$CNAME")
|
|
29
|
-
[[ ${#hlines[@]} -eq 1 ]] || {
|
|
30
|
-
echo "check-docs-cname-parity: $CNAME must hold exactly one host line (found ${#hlines[@]})" >&2; exit 2; }
|
|
31
|
-
H="${hlines[0]//[[:space:]]/}"
|
|
32
|
-
[[ -n "$H" ]] || { echo "check-docs-cname-parity: empty host in $CNAME" >&2; exit 2; }
|
|
33
|
-
|
|
34
|
-
declare -A IS_ALIAS=()
|
|
35
|
-
for a in "${SITE_KIT_ALIASES[@]+"${SITE_KIT_ALIASES[@]}"}"; do IS_ALIAS["$a"]=1; done
|
|
36
|
-
|
|
37
|
-
exempt_path() { # $1=path — matches any SITE_KIT_EXEMPT_PATHS glob
|
|
38
|
-
local p="$1" g
|
|
39
|
-
for g in "${SITE_KIT_EXEMPT_PATHS[@]+"${SITE_KIT_EXEMPT_PATHS[@]}"}"; do
|
|
40
|
-
# shellcheck disable=SC2053 # $g is the exempt glob, matched unquoted on purpose
|
|
41
|
-
[[ "$p" == $g ]] && return 0
|
|
42
|
-
done
|
|
43
|
-
return 1
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
listing="$(git ls-files -- "$SCANROOT")"; st=$?
|
|
47
|
-
fail_closed "$st" DOCS-CNAME-PARITY git-ls-files
|
|
48
|
-
|
|
49
|
-
files=()
|
|
50
|
-
while IFS= read -r path; do
|
|
51
|
-
[[ -n "$path" ]] || continue
|
|
52
|
-
gate_path_pruned "$path" && continue
|
|
53
|
-
exempt_path "$path" && continue
|
|
54
|
-
[[ -f "$path" ]] && files+=("$path")
|
|
55
|
-
done <<< "$listing"
|
|
56
|
-
|
|
57
|
-
if [[ ${#files[@]} -eq 0 ]]; then
|
|
58
|
-
echo "DOCS-CNAME-PARITY: clean (0 tracked file(s) under $SCANROOT; docs host is '$H')"
|
|
59
|
-
exit 0
|
|
60
|
-
fi
|
|
61
|
-
|
|
62
|
-
matches="$(grep -IHnoE '://[A-Za-z0-9.-]+' -- "${files[@]}")"; gst=$?
|
|
63
|
-
[[ "$gst" -le 1 ]] || fail_closed "$gst" DOCS-CNAME-PARITY grep
|
|
64
|
-
|
|
65
|
-
bad=()
|
|
66
|
-
while IFS= read -r m; do
|
|
67
|
-
[[ -n "$m" ]] || continue
|
|
68
|
-
host="${m##*//}"
|
|
69
|
-
[[ -n "${IS_ALIAS[$host]:-}" && "$host" != "$H" ]] || continue
|
|
70
|
-
bad+=("${m%:://*}: alias '$host' — docs host is '$H'")
|
|
71
|
-
done <<< "$matches"
|
|
72
|
-
|
|
73
|
-
if [[ ${#bad[@]} -gt 0 ]]; then
|
|
74
|
-
echo "check-docs-cname-parity: tracked file(s) cite a configured host alias other than the docs/CNAME host:"
|
|
75
|
-
printf ' %s\n' "${bad[@]}"
|
|
76
|
-
echo " help: point the URL at the docs/CNAME host '$H' (a rename is a one-file edit to the CNAME"
|
|
77
|
-
echo " that this gate then enumerates); SITE_KIT_EXEMPT_PATHS sites are exempt."
|
|
78
|
-
exit 1
|
|
79
|
-
fi
|
|
80
|
-
echo "DOCS-CNAME-PARITY: clean (${#files[@]} tracked file(s) under $SCANROOT; no alias but the docs host '$H' cited in a URL)"
|
|
81
|
-
exit 0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|