checkwright 0.22.0 → 0.24.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 +855 -96
- package/lib/common/lock.sh +45 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +50 -34
- package/lib/diff.sh +66 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +62 -46
- package/lib/uninstall.sh +214 -0
- package/lib/update.sh +34 -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 +1 -0
- package/payload/canon-kit/SPEC.md +527 -63
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
- package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
- package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-install-claim.gate +3 -0
- package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
- package/payload/canon-kit/checks/check-md-refs.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
- package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
- package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
- package/payload/canon-kit/checks/check-tracking-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-comment-tier/bad/.workflow/fixture-state.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -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 +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
- 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-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
- package/payload/canon-kit/lib/spec.sh +91 -62
- package/payload/canon-kit/smoke/install.sh +2 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +10 -5
- package/payload/context-kit/SPEC.md +364 -62
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +21 -23
- 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-paths/bad/expect.txt +3 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +27 -4
- package/payload/context-kit/smoke/install.sh +4 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +400 -22
- 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/smoke/install.sh +1 -1
- package/payload/delegation-kit/templates/agent-execution.md +109 -18
- package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
- package/payload/doctrine-kit/DOCTRINE.md +86 -12
- package/payload/doctrine-kit/README.md +7 -3
- package/payload/doctrine-kit/SPEC.md +103 -10
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +84 -5
- package/payload/doctrine-kit/smoke/install.sh +106 -3
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +84 -11
- package/payload/drift-kit/bin/kfric.sh +21 -2
- 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 +49 -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 +43 -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 +23 -7
- package/payload/gate-sdk/SPEC.md +6402 -291
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +473 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +27 -7
- package/payload/gate-sdk/bin/run-gates.sh +30 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +70 -17
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- 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 +62 -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.sh +32 -6
- 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 +109 -14
- 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 +93 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-kit-registration.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 +2 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +2 -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-crate-arms/bad/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
- 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/good/expect.txt +1 -1
- 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/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +110 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +7 -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-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/gates.list +4 -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/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +4 -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 +110 -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-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -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-kit-registration.test.sh +6 -5
- 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-test-hermetic-smoke.test.sh +2 -3
- 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 +204 -1
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
- package/payload/gate-sdk/lib/gate.sh +353 -22
- package/payload/gate-sdk/lib/inject.sh +25 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
- package/payload/gate-sdk/smoke/install.sh +47 -1
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +477 -82
- package/payload/guard-kit/bin/run-guard-tests.sh +7 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +84 -14
- package/payload/guard-kit/lib/guard.sh +440 -54
- package/payload/guard-kit/templates/close-triage.md +5 -5
- package/payload/guard-kit/templates/settings-hooks.json +7 -1
- package/payload/lifecycle-kit/README.md +14 -3
- package/payload/lifecycle-kit/SPEC.md +929 -93
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +193 -38
- package/payload/lifecycle-kit/bin/file-gap.sh +29 -12
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.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 +2 -3
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
- 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 +24 -25
- 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 +129 -15
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +9 -0
- package/payload/lifecycle-kit/smoke/install.sh +96 -19
- package/payload/lifecycle-kit/templates/lead.md +60 -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 +48 -15
- package/payload/lifecycle-kit/templates/stages/scope.md +29 -5
- package/payload/lifecycle-kit/templates/stages/spec.md +6 -2
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +12 -10
- package/payload/queue-kit/SPEC.md +411 -74
- package/payload/queue-kit/bin/queue-counts.sh +35 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
- package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
- package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
- package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
- package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
- package/payload/queue-kit/checks/check-task-names.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 +116 -0
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +4 -68
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +52 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +2 -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/profiles.list +36 -8
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -116
- package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
- package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
- package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -78
- package/payload/canon-kit/checks/check-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -239
- package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
- package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
- package/payload/canon-kit/checks/check-md-refs.sh +0 -128
- package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
- package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -207
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -133
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
- package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
- package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -123
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -38
- package/payload/context-kit/checks/check-memory-off.sh +0 -112
- package/payload/context-kit/checks/check-settings-pins.sh +0 -110
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -61
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -139
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -76
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -216
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -86
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -103
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -104
- 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 -272
- package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -50
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -43
- package/payload/gate-sdk/checks/check-core-files.sh +0 -75
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -37
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -95
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -105
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -84
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -92
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -73
- package/payload/gate-sdk/checks/check-graph.sh +0 -631
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -45
- package/payload/gate-sdk/checks/check-identity.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -94
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -107
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -199
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -66
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -126
- package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
- package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -84
- 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 -63
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -197
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
- package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
- 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-entry-budget.sh +0 -106
- package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -63
- package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
- package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -110
- package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
- package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
- package/payload/queue-kit/checks/check-task-names.sh +0 -128
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -80
- /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/bad/args +0 -0
- /package/payload/context-kit/gate-tests/{check-memory-off → check-settings-paths}/good/args +0 -0
- /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,81 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
-
# spec: queue-kit/SPEC.md §check-queue-hygiene — the queue holds only tasks, tags, and structure: no HTML comments, no duplicate lines, no column-0 prose
|
|
4
|
-
#
|
|
5
|
-
# usage: check-queue-hygiene.sh [queue-file]
|
|
6
|
-
# Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE).
|
|
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/gate.sh
|
|
12
|
-
source "$SDK/lib/gate.sh"
|
|
13
|
-
# shellcheck source=../lib/queue.sh
|
|
14
|
-
source "$KIT/lib/queue.sh"
|
|
15
|
-
|
|
16
|
-
FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
|
|
17
|
-
[[ -f "$FILE" ]] || { echo "check-queue-hygiene: file not found: $FILE" >&2; exit 2; }
|
|
18
|
-
|
|
19
|
-
out="$(awk -v leads="$(printf '%s\n' "${QUEUE_KIT_PROSE_LEADS[@]+"${QUEUE_KIT_PROSE_LEADS[@]}"}")" '
|
|
20
|
-
BEGIN { nl = split(leads, L, "\n") }
|
|
21
|
-
{
|
|
22
|
-
if ($0 ~ /<!--/ || $0 ~ /-->/)
|
|
23
|
-
printf "html\t%d\t%s\n", FNR, $0
|
|
24
|
-
|
|
25
|
-
if ($0 ~ /^[^[:space:]]/) { # column-0, non-blank line
|
|
26
|
-
ok = 0
|
|
27
|
-
if ($0 ~ /^#/) ok = 1 # heading
|
|
28
|
-
else if ($0 ~ /^-[[:space:]]/) ok = 1 # bullet
|
|
29
|
-
else if ($0 ~ /^---[[:space:]]*$/) ok = 1 # rule
|
|
30
|
-
else {
|
|
31
|
-
for (i = 1; i <= nl; i++)
|
|
32
|
-
if (L[i] != "" && index($0, L[i]) == 1) { ok = 1; break }
|
|
33
|
-
}
|
|
34
|
-
if (!ok) printf "prose\t%d\t%s\n", FNR, $0
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if ($0 !~ /^[[:space:]]*$/ && $0 !~ /^---[[:space:]]*$/) {
|
|
38
|
-
if ($0 in seen)
|
|
39
|
-
printf "dup\t%d\t%s (first seen at line %d)\n", FNR, $0, seen[$0]
|
|
40
|
-
else
|
|
41
|
-
seen[$0] = FNR
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
' "$FILE")"; st=$?
|
|
45
|
-
fail_closed "$st" QUEUE-HYGIENE awk
|
|
46
|
-
|
|
47
|
-
html=(); prose=(); dup=()
|
|
48
|
-
while IFS=$'\t' read -r class ln text; do
|
|
49
|
-
[[ -n "$class" ]] || continue
|
|
50
|
-
case "$class" in
|
|
51
|
-
html) html+=("$FILE:$ln: $text") ;;
|
|
52
|
-
prose) prose+=("$FILE:$ln: $text") ;;
|
|
53
|
-
dup) dup+=("$FILE:$ln: $text") ;;
|
|
54
|
-
esac
|
|
55
|
-
done <<< "$out"
|
|
56
|
-
|
|
57
|
-
if [[ ${#html[@]} -gt 0 || ${#prose[@]} -gt 0 || ${#dup[@]} -gt 0 ]]; then
|
|
58
|
-
if [[ ${#html[@]} -gt 0 ]]; then
|
|
59
|
-
echo "check-queue-hygiene: HTML comment(s) in the queue (provenance belongs in git history):"
|
|
60
|
-
printf ' %s\n' "${html[@]}"
|
|
61
|
-
echo " help: delete the comment; record the why in the commit message, not the queue."
|
|
62
|
-
fi
|
|
63
|
-
if [[ ${#dup[@]} -gt 0 ]]; then
|
|
64
|
-
[[ ${#html[@]} -gt 0 ]] && echo ""
|
|
65
|
-
echo "check-queue-hygiene: exact-duplicate line(s) (copy-paste artifact):"
|
|
66
|
-
printf ' %s\n' "${dup[@]}"
|
|
67
|
-
echo " help: remove the duplicate; if two tasks genuinely share wording, differentiate them."
|
|
68
|
-
fi
|
|
69
|
-
if [[ ${#prose[@]} -gt 0 ]]; then
|
|
70
|
-
{ [[ ${#html[@]} -gt 0 ]] || [[ ${#dup[@]} -gt 0 ]]; } && echo ""
|
|
71
|
-
echo "check-queue-hygiene: column-0 prose (every column-0 line must be a heading,"
|
|
72
|
-
echo "a '- ' bullet, '---', or a configured QUEUE_KIT_PROSE_LEADS lead):"
|
|
73
|
-
printf ' %s\n' "${prose[@]}"
|
|
74
|
-
echo " help: indent the prose to a continuation line under its bullet, or (for a"
|
|
75
|
-
echo " recurring protocol lead) add its token to QUEUE_KIT_PROSE_LEADS."
|
|
76
|
-
fi
|
|
77
|
-
exit 1
|
|
78
|
-
fi
|
|
79
|
-
|
|
80
|
-
echo "QUEUE-HYGIENE: clean (no HTML comments, no duplicate lines, no column-0 prose in $FILE)"
|
|
81
|
-
exit 0
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
-
# 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)
|
|
4
|
-
#
|
|
5
|
-
# usage: check-queue-prose-precondition.sh [queue-file]
|
|
6
|
-
# Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE); the forward
|
|
7
|
-
# trigger set is QUEUE_KIT_PRECONDITION_REGEX (matched against lowercased prose).
|
|
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
|
-
# shellcheck source=../lib/queue.sh
|
|
15
|
-
source "$KIT/lib/queue.sh"
|
|
16
|
-
|
|
17
|
-
FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
|
|
18
|
-
[[ -f "$FILE" ]] || { echo "check-queue-prose-precondition: file not found: $FILE" >&2; exit 2; }
|
|
19
|
-
|
|
20
|
-
out="$(awk -v activere="$QUEUE_ACTIVE_RE" -v sectre="$QUEUE_SECTION_RE" -v trig="$QUEUE_KIT_PRECONDITION_REGEX" '
|
|
21
|
-
function flush() {
|
|
22
|
-
if (startln == 0) return
|
|
23
|
-
b = tolower(body)
|
|
24
|
-
gsub(/\[[^]]*\]/, " ", b) # drop bracket tags/links from the prose
|
|
25
|
-
gsub(/(once|when|after)[^.,;]*(landed|shipped|merged|resolved|completed|was [a-z]+ed)/, " ", b) # strip past-tense narration
|
|
26
|
-
if (b ~ trig && !hasblock)
|
|
27
|
-
printf "%d\t%s\n", startln, lead
|
|
28
|
-
startln = 0; body = ""; lead = ""; hasblock = 0
|
|
29
|
-
}
|
|
30
|
-
$0 ~ activere { inq = 1; flush(); next }
|
|
31
|
-
$0 ~ sectre { inq = 0; flush(); next }
|
|
32
|
-
!inq { next }
|
|
33
|
-
/^-[[:space:]]/ { # a new top-level active entry
|
|
34
|
-
flush()
|
|
35
|
-
startln = FNR; lead = $0; body = $0
|
|
36
|
-
if ($0 ~ /\[blocked-by:/ || $0 ~ /\[precondition-ok:/) hasblock = 1
|
|
37
|
-
next
|
|
38
|
-
}
|
|
39
|
-
{
|
|
40
|
-
if (startln == 0) next
|
|
41
|
-
body = body " " $0
|
|
42
|
-
if ($0 ~ /\[blocked-by:/ || $0 ~ /\[precondition-ok:/) hasblock = 1
|
|
43
|
-
}
|
|
44
|
-
END { flush() }
|
|
45
|
-
' "$FILE")"; st=$?
|
|
46
|
-
fail_closed "$st" QUEUE-PROSE-PRECONDITION awk
|
|
47
|
-
|
|
48
|
-
if [[ -n "$out" ]]; then
|
|
49
|
-
echo "check-queue-prose-precondition: active entry states a forward precondition in prose"
|
|
50
|
-
echo "but carries no [blocked-by:] tag — selection trusts tags, so it is latently blocked"
|
|
51
|
-
echo "yet mechanically pickable as 'first unblocked':"
|
|
52
|
-
while IFS=$'\t' read -r ln lead; do
|
|
53
|
-
[[ -n "$ln" ]] || continue
|
|
54
|
-
echo " $FILE:$ln: $lead"
|
|
55
|
-
done <<< "$out"
|
|
56
|
-
echo " help: tag the real blocker '[blocked-by: <slug>]', or move the entry to the"
|
|
57
|
-
echo " Deferred section, or rephrase past-tense if the precondition is already"
|
|
58
|
-
echo " met, or opt out with '[precondition-ok: <reason>]' anywhere in the entry."
|
|
59
|
-
exit 1
|
|
60
|
-
fi
|
|
61
|
-
|
|
62
|
-
echo "QUEUE-PROSE-PRECONDITION: clean (no untagged forward precondition in the active sections of $FILE)"
|
|
63
|
-
exit 0
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
-
# spec: queue-kit/SPEC.md §check-queue-sections — the queue carries each required ## section heading exactly once, the fail-closed floor under every section-scoped scanner
|
|
4
|
-
#
|
|
5
|
-
# usage: check-queue-sections.sh [queue-file]
|
|
6
|
-
# Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE).
|
|
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/gate.sh
|
|
12
|
-
source "$SDK/lib/gate.sh"
|
|
13
|
-
# shellcheck source=../lib/queue.sh
|
|
14
|
-
source "$KIT/lib/queue.sh"
|
|
15
|
-
|
|
16
|
-
FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
|
|
17
|
-
[[ -f "$FILE" ]] || { echo "check-queue-sections: file not found: $FILE" >&2; exit 2; }
|
|
18
|
-
|
|
19
|
-
missing=(); dup=()
|
|
20
|
-
for sec in "${QUEUE_KIT_REQUIRED_SECTIONS[@]}"; do
|
|
21
|
-
if [[ "$sec" == *: ]]; then re="^## ${sec}"; else re="^## ${sec}[[:space:]]*\$"; fi
|
|
22
|
-
n="$(grep -cE -- "$re" "$FILE")"; gst=$?
|
|
23
|
-
if [[ "$gst" -ge 2 ]]; then
|
|
24
|
-
echo "check-queue-sections: grep failed on '$re' (exit $gst) — cannot verify" >&2
|
|
25
|
-
exit 2
|
|
26
|
-
fi
|
|
27
|
-
if [[ "$n" -eq 0 ]]; then missing+=("$sec")
|
|
28
|
-
elif [[ "$n" -gt 1 ]]; then dup+=("$sec ($n occurrences)")
|
|
29
|
-
fi
|
|
30
|
-
done
|
|
31
|
-
|
|
32
|
-
if [[ ${#missing[@]} -gt 0 || ${#dup[@]} -gt 0 ]]; then
|
|
33
|
-
echo "check-queue-sections: required '##' section(s) not present exactly once in $FILE"
|
|
34
|
-
echo "(every section-scoped scanner — amendment-queue, task-names, conservation, the"
|
|
35
|
-
echo "session-context index — locates work by these headings and finds nothing when one drops):"
|
|
36
|
-
for s in "${missing[@]}"; do echo " missing: ## $s"; done
|
|
37
|
-
for s in "${dup[@]}"; do echo " duplicate: ## $s"; done
|
|
38
|
-
echo " help: restore the heading (spelled exactly), or remove the duplicate. The"
|
|
39
|
-
echo " required set is QUEUE_KIT_REQUIRED_SECTIONS (queue-config.sh)."
|
|
40
|
-
exit 1
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
echo "QUEUE-SECTIONS: clean (${#QUEUE_KIT_REQUIRED_SECTIONS[@]} required section(s) each present once in $FILE)"
|
|
44
|
-
exit 0
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md,scripts/*.sh dir=one valve=none tier=precommit
|
|
3
|
-
# spec: queue-kit/SPEC.md §check-queue-slug-liveness — every slug-shaped bold-code token in a configured prose surface resolves against the queue's live slug set
|
|
4
|
-
#
|
|
5
|
-
# usage: check-queue-slug-liveness.sh [scan-root] (default '.')
|
|
6
|
-
# Scans QUEUE_KIT_PROSE_SURFACE_GLOBS (empty default: no-op) under the root.
|
|
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/gate.sh
|
|
12
|
-
source "$SDK/lib/gate.sh"
|
|
13
|
-
# shellcheck source=../lib/queue.sh
|
|
14
|
-
source "$KIT/lib/queue.sh"
|
|
15
|
-
|
|
16
|
-
ROOT="${1:-.}"
|
|
17
|
-
[[ -d "$ROOT" ]] || { echo "check-queue-slug-liveness: not a directory: $ROOT" >&2; exit 2; }
|
|
18
|
-
|
|
19
|
-
files=()
|
|
20
|
-
if [[ ${#QUEUE_KIT_PROSE_SURFACE_GLOBS[@]} -gt 0 ]]; then
|
|
21
|
-
shopt -s nullglob globstar
|
|
22
|
-
for g in "${QUEUE_KIT_PROSE_SURFACE_GLOBS[@]}"; do
|
|
23
|
-
for f in "$ROOT"/$g; do [[ -f "$f" ]] && files+=("$f"); done
|
|
24
|
-
done
|
|
25
|
-
shopt -u nullglob globstar
|
|
26
|
-
fi
|
|
27
|
-
|
|
28
|
-
if [[ ${#files[@]} -eq 0 ]]; then
|
|
29
|
-
echo "QUEUE-SLUG-LIVENESS: clean (no prose surface configured in QUEUE_KIT_PROSE_SURFACE_GLOBS — nothing to resolve)"
|
|
30
|
-
exit 0
|
|
31
|
-
fi
|
|
32
|
-
|
|
33
|
-
QUEUE="$QUEUE_KIT_QUEUE_FILE"
|
|
34
|
-
[[ -f "$QUEUE" ]] || QUEUE="$ROOT/$QUEUE_KIT_QUEUE_FILE"
|
|
35
|
-
[[ -f "$QUEUE" ]] || { echo "check-queue-slug-liveness: queue file not found: $QUEUE_KIT_QUEUE_FILE" >&2; exit 2; }
|
|
36
|
-
|
|
37
|
-
live_str="$(queue_live_slugs "$QUEUE" | tr '\n' ' ')"; st=${PIPESTATUS[0]}
|
|
38
|
-
fail_closed "$st" QUEUE-SLUG-LIVENESS queue_live_slugs
|
|
39
|
-
|
|
40
|
-
out="$(awk -v live="$live_str" '
|
|
41
|
-
BEGIN { n = split(live, a, " "); for (i = 1; i <= n; i++) L[a[i]] = 1 }
|
|
42
|
-
{
|
|
43
|
-
s = $0
|
|
44
|
-
while (match(s, /\*\*`[a-z0-9][a-z0-9-]*`\*\*/)) {
|
|
45
|
-
tok = substr(s, RSTART + 3, RLENGTH - 6)
|
|
46
|
-
if (!(tok in L)) printf "%s:%d:%s\n", FILENAME, FNR, tok
|
|
47
|
-
s = substr(s, RSTART + RLENGTH)
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
' "${files[@]}")"; st=$?
|
|
51
|
-
fail_closed "$st" QUEUE-SLUG-LIVENESS awk
|
|
52
|
-
|
|
53
|
-
if [[ -n "$out" ]]; then
|
|
54
|
-
echo "check-queue-slug-liveness: bold-code token claims queue membership but names no live task:"
|
|
55
|
-
while IFS= read -r line; do printf ' %s\n' "$line"; done <<< "$out"
|
|
56
|
-
echo " help: a **\`slug\`** token claims the slug is a live queue task. If the task"
|
|
57
|
-
echo " landed, drop the bold-code form and cite its owning SPEC; otherwise fix"
|
|
58
|
-
echo " the slug or restore the task to the queue."
|
|
59
|
-
exit 1
|
|
60
|
-
fi
|
|
61
|
-
|
|
62
|
-
echo "QUEUE-SLUG-LIVENESS: clean (${#files[@]} prose surface(s) scanned; every slug-shaped bold-code token resolves to a live task in $QUEUE)"
|
|
63
|
-
exit 0
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
-
# spec: queue-kit/SPEC.md §check-queue-wrap — no queue line exceeds the wrap budget (Unicode code points), so a runaway never reflows to column 0
|
|
4
|
-
#
|
|
5
|
-
# usage: check-queue-wrap.sh [queue-file]
|
|
6
|
-
# Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE); the floor is
|
|
7
|
-
# QUEUE_KIT_WRAP_BUDGET (default 100; the authoring target is ~80).
|
|
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
|
-
# shellcheck source=../lib/queue.sh
|
|
15
|
-
source "$KIT/lib/queue.sh"
|
|
16
|
-
|
|
17
|
-
FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
|
|
18
|
-
[[ -f "$FILE" ]] || { echo "check-queue-wrap: file not found: $FILE" >&2; exit 2; }
|
|
19
|
-
|
|
20
|
-
# comment-tier-exempt: the code-point width trick is below SPEC altitude
|
|
21
|
-
# LC_ALL=C makes awk bytewise; cplen() subtracts UTF-8 continuation bytes (0x80–0xBF) to recover width.
|
|
22
|
-
out="$(LC_ALL=C awk -v budget="$QUEUE_KIT_WRAP_BUDGET" '
|
|
23
|
-
function cplen(s, t, cont) {
|
|
24
|
-
t = s
|
|
25
|
-
cont = gsub(/[\200-\277]/, "", t)
|
|
26
|
-
return length(s) - cont
|
|
27
|
-
}
|
|
28
|
-
/^[[:space:]]*```/ { fence = !fence; next } # fenced-code delimiter: exempt, toggle
|
|
29
|
-
fence { next } # inside a fenced block: exempt
|
|
30
|
-
/^[[:space:]]*\|/ { next } # table row: exempt
|
|
31
|
-
{
|
|
32
|
-
w = cplen($0)
|
|
33
|
-
if (w <= budget) next
|
|
34
|
-
maxtok = 0
|
|
35
|
-
n = split($0, T, /[[:space:]]+/)
|
|
36
|
-
for (i = 1; i <= n; i++) { tl = cplen(T[i]); if (tl > maxtok) maxtok = tl }
|
|
37
|
-
if (maxtok > budget) next # one unbreakable token (URL/path): no wrap helps
|
|
38
|
-
printf "%d\t%d\t%s\n", FNR, w, $0
|
|
39
|
-
}
|
|
40
|
-
' "$FILE")"; st=$?
|
|
41
|
-
fail_closed "$st" QUEUE-WRAP awk
|
|
42
|
-
|
|
43
|
-
if [[ -n "$out" ]]; then
|
|
44
|
-
echo "check-queue-wrap: line(s) over the $QUEUE_KIT_WRAP_BUDGET-column budget (a runaway"
|
|
45
|
-
echo "that reflows to column 0 corrupts the '- ' lead the tools key on):"
|
|
46
|
-
while IFS=$'\t' read -r ln w text; do
|
|
47
|
-
[[ -n "$ln" ]] || continue
|
|
48
|
-
echo " $FILE:$ln: $w cols — $text"
|
|
49
|
-
done <<< "$out"
|
|
50
|
-
echo " help: hard-wrap the line at ~80 columns. Exempt already: table rows,"
|
|
51
|
-
echo " fenced code, and a line over budget solely from one unbreakable token."
|
|
52
|
-
exit 1
|
|
53
|
-
fi
|
|
54
|
-
|
|
55
|
-
echo "QUEUE-WRAP: clean (no line exceeds $QUEUE_KIT_WRAP_BUDGET columns in $FILE)"
|
|
56
|
-
exit 0
|
|
@@ -1,110 +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
|
-
# 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
|
|
4
|
-
#
|
|
5
|
-
# usage: check-roadmap-fresh.sh [projection-file] [emit-file]
|
|
6
|
-
# bare: compare the marker block in QUEUE_KIT_ROADMAP_FILE against `roadmap.sh --emit`.
|
|
7
|
-
# two args: compare the block extracted from projection-file to a pre-baked emit-file (hermetic fixture).
|
|
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
|
-
# shellcheck source=../lib/queue.sh
|
|
15
|
-
source "$KIT/lib/queue.sh"
|
|
16
|
-
|
|
17
|
-
PROJECTION="${1:-$QUEUE_KIT_ROADMAP_FILE}"
|
|
18
|
-
EMIT_SRC="${2:-}"
|
|
19
|
-
|
|
20
|
-
# 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
|
|
21
|
-
if [[ -z "$PROJECTION" ]]; then
|
|
22
|
-
echo "ROADMAP-FRESH: clean (QUEUE_KIT_ROADMAP_FILE empty — this consumer publishes no roadmap)"
|
|
23
|
-
exit 0
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
[[ -f "$QUEUE_KIT_QUEUE_FILE" ]] \
|
|
27
|
-
|| { echo "check-roadmap-fresh: queue file not found: $QUEUE_KIT_QUEUE_FILE" >&2; exit 2; }
|
|
28
|
-
|
|
29
|
-
# 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
|
|
30
|
-
horizons=" ${QUEUE_KIT_HORIZONS[*]+"${QUEUE_KIT_HORIZONS[*]}"} "
|
|
31
|
-
tracks=" ${QUEUE_KIT_TRACKS[*]+"${QUEUE_KIT_TRACKS[*]}"} "
|
|
32
|
-
bad=()
|
|
33
|
-
tagged=0
|
|
34
|
-
while IFS=$'\t' read -r ntags fieldv slug nsum _summary; do
|
|
35
|
-
[[ -n "$slug" ]] || continue
|
|
36
|
-
|
|
37
|
-
# 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
|
|
38
|
-
if [[ "$ntags" -eq 0 ]]; then
|
|
39
|
-
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")
|
|
40
|
-
continue
|
|
41
|
-
fi
|
|
42
|
-
tagged=$((tagged + 1))
|
|
43
|
-
# 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
|
|
44
|
-
[[ "$nsum" -eq 1 ]] \
|
|
45
|
-
|| bad+=("$slug: is [roadmap:]-tagged but carries $nsum roadmap-summary: declaration(s); exactly one is required")
|
|
46
|
-
|
|
47
|
-
if [[ "$ntags" -ne 1 ]]; then
|
|
48
|
-
bad+=("$slug: carries $ntags [roadmap:] tags; an entry takes at most one")
|
|
49
|
-
continue
|
|
50
|
-
fi
|
|
51
|
-
if [[ "$fieldv" != */* || "$fieldv" == */*/* ]]; then
|
|
52
|
-
bad+=("$slug: field '$fieldv' does not parse as <horizon>/<track>")
|
|
53
|
-
continue
|
|
54
|
-
fi
|
|
55
|
-
h="${fieldv%%/*}"; t="${fieldv#*/}"
|
|
56
|
-
[[ "$horizons" == *" $h "* ]] || bad+=("$slug: unknown horizon '$h'")
|
|
57
|
-
[[ "$tracks" == *" $t "* ]] || bad+=("$slug: unknown track '$t'")
|
|
58
|
-
done < <(queue_roadmap_entries "$QUEUE_KIT_QUEUE_FILE")
|
|
59
|
-
|
|
60
|
-
if [[ ${#bad[@]} -gt 0 ]]; then
|
|
61
|
-
echo "check-roadmap-fresh: invalid roadmap curation in $QUEUE_KIT_QUEUE_FILE"
|
|
62
|
-
echo "(an unconfigured value or an unpaired marking drops the entry off the page"
|
|
63
|
-
echo "with nothing else to notice):"
|
|
64
|
-
for b in "${bad[@]}"; do echo " $b"; done
|
|
65
|
-
echo " help: an entry joins the page with a [roadmap: <horizon>/<track>] tag on its lead"
|
|
66
|
-
echo " line, both values drawn from QUEUE_KIT_HORIZONS / QUEUE_KIT_TRACKS, plus"
|
|
67
|
-
echo " exactly one indented 'roadmap-summary: <text>' declaration in its body —"
|
|
68
|
-
echo " the only prose the public page prints (queue-kit/SPEC.md §bin/roadmap.sh)."
|
|
69
|
-
exit 1
|
|
70
|
-
fi
|
|
71
|
-
|
|
72
|
-
BEGIN="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:begin -->"
|
|
73
|
-
END="<!-- ${QUEUE_KIT_ROADMAP_MARKER}:end -->"
|
|
74
|
-
|
|
75
|
-
# 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
|
|
76
|
-
[[ -f "$PROJECTION" ]] || { echo "check-roadmap-fresh: projection not found: $PROJECTION" >&2; exit 2; }
|
|
77
|
-
nb="$(grep -cF -- "$BEGIN" "$PROJECTION")"
|
|
78
|
-
ne="$(grep -cF -- "$END" "$PROJECTION")"
|
|
79
|
-
[[ "$nb" -eq 1 && "$ne" -eq 1 ]] || {
|
|
80
|
-
echo "check-roadmap-fresh: $PROJECTION needs exactly one '$BEGIN' + '$END' pair (found $nb and $ne)" >&2
|
|
81
|
-
exit 2
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
block="$(awk -v b="$BEGIN" -v e="$END" '
|
|
85
|
-
$0 == b { inb = 1; next }
|
|
86
|
-
$0 == e { inb = 0; next }
|
|
87
|
-
inb { print }
|
|
88
|
-
' "$PROJECTION")"; st=$?
|
|
89
|
-
fail_closed "$st" check-roadmap-fresh awk
|
|
90
|
-
|
|
91
|
-
if [[ -n "$EMIT_SRC" ]]; then
|
|
92
|
-
[[ -f "$EMIT_SRC" ]] || { echo "check-roadmap-fresh: emit source not found: $EMIT_SRC" >&2; exit 2; }
|
|
93
|
-
emitted="$(cat "$EMIT_SRC")"; st=$?
|
|
94
|
-
fail_closed "$st" check-roadmap-fresh cat
|
|
95
|
-
else
|
|
96
|
-
GEN="$KIT/bin/roadmap.sh"
|
|
97
|
-
[[ -x "$GEN" ]] || { echo "check-roadmap-fresh: emitter not found: $GEN" >&2; exit 2; }
|
|
98
|
-
emitted="$(bash "$GEN" --emit)"; st=$?
|
|
99
|
-
fail_closed "$st" check-roadmap-fresh roadmap
|
|
100
|
-
fi
|
|
101
|
-
|
|
102
|
-
if [[ "$block" != "$emitted" ]]; then
|
|
103
|
-
echo "check-roadmap-fresh: the $QUEUE_KIT_ROADMAP_MARKER block in $PROJECTION is stale vs bin/roadmap.sh:"
|
|
104
|
-
diff <(printf '%s\n' "$emitted") <(printf '%s\n' "$block") | head -20 || true
|
|
105
|
-
echo " help: regenerate — bash queue-kit/bin/roadmap.sh --write"
|
|
106
|
-
exit 1
|
|
107
|
-
fi
|
|
108
|
-
|
|
109
|
-
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)"
|
|
110
|
-
exit 0
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
-
# spec: queue-kit/SPEC.md §check-tag-lead-line — every governed tag (blocked-by/spec/design-pending/drain-exempt/roadmap in the task sections, attend + configured lesson tags in Lessons) sits on its bullet's lead line, the only line the tag readers scan
|
|
4
|
-
#
|
|
5
|
-
# usage: check-tag-lead-line.sh [queue-file]
|
|
6
|
-
# Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE).
|
|
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/gate.sh
|
|
12
|
-
source "$SDK/lib/gate.sh"
|
|
13
|
-
# shellcheck source=../lib/queue.sh
|
|
14
|
-
source "$KIT/lib/queue.sh"
|
|
15
|
-
|
|
16
|
-
FILE="${1:-$QUEUE_KIT_QUEUE_FILE}"
|
|
17
|
-
[[ -f "$FILE" ]] || { echo "check-tag-lead-line: file not found: $FILE" >&2; exit 2; }
|
|
18
|
-
|
|
19
|
-
lessontags="${QUEUE_KIT_LESSON_TAGS[*]+"${QUEUE_KIT_LESSON_TAGS[*]}"}"
|
|
20
|
-
out="$(awk -v taskre="$QUEUE_TASK_RE" -v lessonsre="$QUEUE_LESSONS_RE" \
|
|
21
|
-
-v sectre="$QUEUE_SECTION_RE" -v lessontags="$lessontags" '
|
|
22
|
-
# spec: queue-kit/SPEC.md §check-tag-lead-line — one class table, each entry the tag name plus its bracket terminator; the match literal and the arr[] key both come off it, and scripts/enum-sets.sh reads this same table
|
|
23
|
-
BEGIN {
|
|
24
|
-
ncls = split("blocked-by: spec: design-pending] attend] drain-exempt: roadmap:", cls, " ")
|
|
25
|
-
nlt = split(lessontags, lt, " ")
|
|
26
|
-
}
|
|
27
|
-
function classes(line, arr, i, nm, term) {
|
|
28
|
-
delete arr
|
|
29
|
-
for (i = 1; i <= ncls; i++) {
|
|
30
|
-
term = substr(cls[i], length(cls[i]))
|
|
31
|
-
nm = substr(cls[i], 1, length(cls[i]) - 1)
|
|
32
|
-
if (index(line, "[" nm term)) arr[nm] = 1
|
|
33
|
-
}
|
|
34
|
-
for (i = 1; i <= nlt; i++)
|
|
35
|
-
if (index(line, "[" lt[i] "]")) arr[lt[i]] = 1
|
|
36
|
-
}
|
|
37
|
-
$0 ~ taskre { inscan = 1; leadfnr = 0; delete leadcls; next }
|
|
38
|
-
$0 ~ lessonsre { inscan = 1; leadfnr = 0; delete leadcls; next }
|
|
39
|
-
$0 ~ sectre { inscan = 0; leadfnr = 0; delete leadcls; next }
|
|
40
|
-
!inscan { next }
|
|
41
|
-
/^[[:space:]]*```/ { fence = !fence; next }
|
|
42
|
-
fence { next }
|
|
43
|
-
/^[[:space:]]*\|/ { next } # table row: exempt
|
|
44
|
-
/^[[:space:]]*-[[:space:]]/ { # bullet lead line
|
|
45
|
-
classes($0, leadcls); leadfnr = FNR; next
|
|
46
|
-
}
|
|
47
|
-
{
|
|
48
|
-
if (leadfnr == 0) next # continuation with no owning bullet
|
|
49
|
-
classes($0, cont)
|
|
50
|
-
for (k in cont)
|
|
51
|
-
if (!(k in leadcls))
|
|
52
|
-
printf "%d\t%s\t%d\n", FNR, k, leadfnr
|
|
53
|
-
}
|
|
54
|
-
' "$FILE")"; st=$?
|
|
55
|
-
fail_closed "$st" TAG-LEAD-LINE awk
|
|
56
|
-
|
|
57
|
-
if [[ -n "$out" ]]; then
|
|
58
|
-
echo "check-tag-lead-line: tag(s) pushed off the bullet lead line (a tag reader"
|
|
59
|
-
echo "scans only the lead; a tag on a continuation line silently stops counting):"
|
|
60
|
-
while IFS=$'\t' read -r ln cls lead; do
|
|
61
|
-
[[ -n "$ln" ]] || continue
|
|
62
|
-
echo " $FILE:$ln: [$cls] on a continuation line; lead line $lead carries no [$cls]"
|
|
63
|
-
done <<< "$out"
|
|
64
|
-
echo " help: move the tag back onto the bullet's lead line (the '- ...' line). If a"
|
|
65
|
-
echo " reflow pushed it there, re-wrap so the lead line carries the tag."
|
|
66
|
-
exit 1
|
|
67
|
-
fi
|
|
68
|
-
|
|
69
|
-
echo "TAG-LEAD-LINE: clean (every governed tag in the task + Lessons sections is on its bullet lead line in $FILE)"
|
|
70
|
-
exit 0
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# graph: couples=TASK-QUEUE.md dir=one valve=none tier=precommit
|
|
3
|
-
# no-fixture: HEAD-vs-worktree diff — a committed fixture has HEAD == worktree, so the loss case (an uncommitted deletion) has no static-fixture representation (queue-kit/SPEC.md §check-task-conservation).
|
|
4
|
-
# spec: queue-kit/SPEC.md §check-task-conservation — every live slug present at HEAD is still present (live or done) in the working tree
|
|
5
|
-
#
|
|
6
|
-
# usage: check-task-conservation.sh [queue-file]
|
|
7
|
-
# Defaults to the configured queue file (QUEUE_KIT_QUEUE_FILE). Diffs
|
|
8
|
-
# `git show HEAD:<queue>` against the worktree; no git baseline ⇒ clean exit.
|
|
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
|
-
|
|
20
|
-
git rev-parse --git-dir >/dev/null 2>&1 || {
|
|
21
|
-
echo "TASK-CONSERVATION: clean (no git repository — no HEAD baseline to compare)"; exit 0; }
|
|
22
|
-
|
|
23
|
-
head_tmp="$(mktemp)"
|
|
24
|
-
trap 'rm -f "$head_tmp"' EXIT
|
|
25
|
-
if ! git show "HEAD:$FILE" >"$head_tmp" 2>/dev/null; then
|
|
26
|
-
echo "TASK-CONSERVATION: clean ($FILE not at HEAD — no prior live slugs to conserve)"; exit 0
|
|
27
|
-
fi
|
|
28
|
-
[[ -f "$FILE" ]] || { echo "check-task-conservation: worktree file not found: $FILE" >&2; exit 2; }
|
|
29
|
-
|
|
30
|
-
declare -A present=()
|
|
31
|
-
while IFS= read -r s; do [[ -n "$s" ]] && present["$s"]=1; done < <(queue_live_slugs "$FILE")
|
|
32
|
-
while IFS= read -r s; do [[ -n "$s" ]] && present["$s"]=1; done < <(queue_done_slugs "$FILE")
|
|
33
|
-
|
|
34
|
-
lost=(); conserved=0
|
|
35
|
-
while IFS= read -r s; do
|
|
36
|
-
[[ -n "$s" ]] || continue
|
|
37
|
-
if [[ -n "${present[$s]:-}" ]]; then conserved=$((conserved + 1)); else lost+=("$s"); fi
|
|
38
|
-
done < <(queue_live_slugs "$head_tmp")
|
|
39
|
-
|
|
40
|
-
if [[ ${#lost[@]} -gt 0 ]]; then
|
|
41
|
-
echo "check-task-conservation: live slug(s) present at HEAD but gone from the working"
|
|
42
|
-
echo "tree — neither live nor done (a lost task; the absence class diff-review misses):"
|
|
43
|
-
printf ' %s\n' "${lost[@]}"
|
|
44
|
-
echo " help: restore the entry, or move its slug to the done section if it completed."
|
|
45
|
-
echo " A rename must move the old slug to done and sweep every [blocked-by:] ref."
|
|
46
|
-
exit 1
|
|
47
|
-
fi
|
|
48
|
-
|
|
49
|
-
echo "TASK-CONSERVATION: clean ($conserved HEAD live slug(s) all still present in $FILE)"
|
|
50
|
-
exit 0
|