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
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Cross-implementation parity for the one derivation queue-kit holds twice: the
|
|
3
|
+
# shell library queue-kit/lib/queue.sh and its compiled counterpart in
|
|
4
|
+
# native/src/queue.rs. Seven live consumers still source the library, so the
|
|
5
|
+
# duplication is permanent and gets criterion 6's machine-held disposition rather
|
|
6
|
+
# than the deletion disposition a ported primitive takes
|
|
7
|
+
# (gate-sdk/SPEC.md §The port-candidate criteria, criterion 6).
|
|
8
|
+
#
|
|
9
|
+
# The two sides share no representation — the shell derives ERE strings and an
|
|
10
|
+
# array, the crate derives a Sections value and free predicates — so what is
|
|
11
|
+
# compared is *classification* over one canned corpus, never the derived literals
|
|
12
|
+
# (queue-kit/SPEC.md §The queue format). A against B directly, with no committed
|
|
13
|
+
# expected file: a maintained golden would be a third copy to drift, and the
|
|
14
|
+
# failure this exists to catch is one side edited without the other.
|
|
15
|
+
#
|
|
16
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
17
|
+
set -uo pipefail
|
|
18
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
19
|
+
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
20
|
+
source "$GATE_SDK_TEST_LIB_DIR/gate.sh"
|
|
21
|
+
|
|
22
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # queue-kit/
|
|
23
|
+
SANDBOX="$(mktemp -d)"
|
|
24
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
25
|
+
|
|
26
|
+
fails=0
|
|
27
|
+
checks=0
|
|
28
|
+
|
|
29
|
+
# spec: gate-sdk/SPEC.md §check-gate-binary-fresh — a declaration is not a dispatch: a
|
|
30
|
+
# consumer on an uncovered platform vendors the shell library with no artifact behind it, and
|
|
31
|
+
# a parity assertion there would be vacuous rather than true. The skip is declared on the
|
|
32
|
+
# clean line, in the shape the port's omitted-member roster uses, so a reader can tell "no
|
|
33
|
+
# binary here" from "parity holds". A binary that is *present* and refuses the arm is a stale
|
|
34
|
+
# binary rather than an absent one, so it fails here and check-gate-binary-fresh names it.
|
|
35
|
+
BIN="$(gate_native_bin)"
|
|
36
|
+
if [[ ! -x "$BIN" ]]; then
|
|
37
|
+
echo "queue-lib-parity.test: ok (0 assertions; skipped — no gate binary at $BIN, so nothing dispatches to the compiled twin)"
|
|
38
|
+
exit 0
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
# The corpus lives here rather than in a directory beside this runner because
|
|
42
|
+
# run-gate-tests.sh globs <tests-dir>/*/ as fixture *pairs*: a corpus directory
|
|
43
|
+
# there is a harness error, not a fixture. It exercises every branch each side
|
|
44
|
+
# has — a bold lead-in in each task section, a lessons line, a bare-slug done
|
|
45
|
+
# bullet, and a bullet in a section that is none of these — and it is driven
|
|
46
|
+
# twice, with the icebox configured and unconfigured, because the icebox
|
|
47
|
+
# matchers degrade to the empty string rather than to "every section".
|
|
48
|
+
cat >"$SANDBOX/TASK-QUEUE.md" <<'EOF'
|
|
49
|
+
# TASK-QUEUE.md
|
|
50
|
+
|
|
51
|
+
## Iteration: parity-corpus
|
|
52
|
+
|
|
53
|
+
## New Features
|
|
54
|
+
|
|
55
|
+
- **feat-a** — a bold lead-in in the first active section.
|
|
56
|
+
- **sub-a** — an indented sub-task carries the same grammar.
|
|
57
|
+
|
|
58
|
+
## Technical Debt
|
|
59
|
+
|
|
60
|
+
- **debt-a** — a bold lead-in in the second active section.
|
|
61
|
+
|
|
62
|
+
## Deferred
|
|
63
|
+
|
|
64
|
+
- **defer-a** — a bold lead-in in the deferred section.
|
|
65
|
+
|
|
66
|
+
## Chill
|
|
67
|
+
|
|
68
|
+
- **chill-a** — a bold lead-in in the section the icebox knob names.
|
|
69
|
+
|
|
70
|
+
## Done
|
|
71
|
+
|
|
72
|
+
- done-a
|
|
73
|
+
- **done-b** — a Done entry wearing an active entry's shape.
|
|
74
|
+
|
|
75
|
+
## Lessons Learned
|
|
76
|
+
|
|
77
|
+
- **l1** [attend] — the lessons heading is fixed spelling, no knob.
|
|
78
|
+
|
|
79
|
+
## Appendix
|
|
80
|
+
|
|
81
|
+
- **appendix-a** — a bullet in a section that is none of the above.
|
|
82
|
+
EOF
|
|
83
|
+
|
|
84
|
+
cat >"$SANDBOX/icebox-config.sh" <<'EOF'
|
|
85
|
+
QUEUE_KIT_ICEBOX_SECTION="Chill"
|
|
86
|
+
EOF
|
|
87
|
+
: >"$SANDBOX/no-icebox-config.sh"
|
|
88
|
+
|
|
89
|
+
# The shell side's answer is what a consumer gets when it applies the library's
|
|
90
|
+
# exported globals — the same awk the bin/ scripts run, including the explicit
|
|
91
|
+
# `iceboxre != ""` guard an unset icebox knob requires (queue-kit/SPEC.md
|
|
92
|
+
# §The icebox tier). An unguarded `$0 ~ ""` matches every line in awk, which is
|
|
93
|
+
# exactly the degradation-to-"every section" the guard exists to stop.
|
|
94
|
+
cat >"$SANDBOX/classify.awk" <<'EOF'
|
|
95
|
+
function add(v, w) { return v (v == "" ? "" : ",") w }
|
|
96
|
+
{
|
|
97
|
+
v = ""
|
|
98
|
+
if ($0 ~ sectre) v = add(v, "section")
|
|
99
|
+
if ($0 ~ activere) v = add(v, "active")
|
|
100
|
+
if ($0 ~ deferredre) v = add(v, "deferred")
|
|
101
|
+
if (iceboxre != "" && $0 ~ iceboxre) v = add(v, "icebox")
|
|
102
|
+
if ($0 ~ taskre) v = add(v, "task")
|
|
103
|
+
if ($0 ~ lessonsre) v = add(v, "lessons")
|
|
104
|
+
b = "-"
|
|
105
|
+
if ($0 ~ /^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/) {
|
|
106
|
+
match($0, /\*\*[a-z0-9][a-z0-9-]*\*\*/)
|
|
107
|
+
b = substr($0, RSTART + 2, RLENGTH - 4)
|
|
108
|
+
}
|
|
109
|
+
if (v == "" && b == "-") next
|
|
110
|
+
printf "line\t%d\t%s\t%s\n", NR, (v == "" ? "-" : v), b
|
|
111
|
+
}
|
|
112
|
+
EOF
|
|
113
|
+
|
|
114
|
+
shell_side() { # $1=config file $2=queue file
|
|
115
|
+
(
|
|
116
|
+
export QUEUE_KIT_CONFIG_FILE="$1"
|
|
117
|
+
# shellcheck source=../lib/queue.sh
|
|
118
|
+
source "$DIR/lib/queue.sh"
|
|
119
|
+
printf 'task-sections'
|
|
120
|
+
printf '\t%s' "${QUEUE_TASK_SECTIONS[@]}"
|
|
121
|
+
printf '\n'
|
|
122
|
+
awk -v sectre="$QUEUE_SECTION_RE" -v activere="$QUEUE_ACTIVE_RE" \
|
|
123
|
+
-v deferredre="$QUEUE_DEFERRED_RE" -v iceboxre="$QUEUE_ICEBOX_RE" \
|
|
124
|
+
-v taskre="$QUEUE_TASK_RE" -v lessonsre="$QUEUE_LESSONS_RE" \
|
|
125
|
+
-f "$SANDBOX/classify.awk" "$2"
|
|
126
|
+
queue_live_slugs "$2" | awk '{ print "live\t" $0 }'
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
# The compiled side is reached through the resolved command rather than a path,
|
|
131
|
+
# and every knob it reads crosses the config bridge as a resolved value exactly
|
|
132
|
+
# as a dispatched gate's does (gate-sdk/SPEC.md §lib/gate.sh): the values are
|
|
133
|
+
# taken from the shell library that computed them, so no default is duplicated
|
|
134
|
+
# and the seam this arm crosses is the one every gate already crosses.
|
|
135
|
+
native_side() { # $1=config file $2=queue file
|
|
136
|
+
(
|
|
137
|
+
export QUEUE_KIT_CONFIG_FILE="$1"
|
|
138
|
+
# shellcheck source=../lib/queue.sh
|
|
139
|
+
source "$DIR/lib/queue.sh"
|
|
140
|
+
local IFS=$'\t'
|
|
141
|
+
env "GATE_SDK_KNOB_QUEUE_KIT_ACTIVE_SECTIONS=${QUEUE_KIT_ACTIVE_SECTIONS[*]}" \
|
|
142
|
+
"GATE_SDK_KNOB_QUEUE_KIT_DEFERRED_SECTION=$QUEUE_KIT_DEFERRED_SECTION" \
|
|
143
|
+
"GATE_SDK_KNOB_QUEUE_KIT_ICEBOX_SECTION=$QUEUE_KIT_ICEBOX_SECTION" \
|
|
144
|
+
"$BIN" --queue-parity "$2"
|
|
145
|
+
)
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
compare() { # $1=label $2=config file
|
|
149
|
+
local a b arc brc
|
|
150
|
+
checks=$((checks + 1))
|
|
151
|
+
a="$(shell_side "$2" "$SANDBOX/TASK-QUEUE.md")"; arc=$?
|
|
152
|
+
b="$(native_side "$2" "$SANDBOX/TASK-QUEUE.md")"; brc=$?
|
|
153
|
+
if [[ "$arc" -ne 0 || "$brc" -ne 0 ]]; then
|
|
154
|
+
echo " FAIL [$1]: a side could not report (shell exit $arc, binary exit $brc)"
|
|
155
|
+
fails=$((fails + 1))
|
|
156
|
+
return
|
|
157
|
+
fi
|
|
158
|
+
if [[ -z "$a" ]]; then
|
|
159
|
+
echo " FAIL [$1]: the shell side classified nothing — a vacuous agreement, not a parity hold"
|
|
160
|
+
fails=$((fails + 1))
|
|
161
|
+
return
|
|
162
|
+
fi
|
|
163
|
+
if [[ "$a" != "$b" ]]; then
|
|
164
|
+
echo " FAIL [$1]: the two implementations disagree about the same queue file:"
|
|
165
|
+
diff <(printf '%s\n' "$a") <(printf '%s\n' "$b") | sed 's/^/ /'
|
|
166
|
+
fails=$((fails + 1))
|
|
167
|
+
fi
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
compare "icebox-configured" "$SANDBOX/icebox-config.sh"
|
|
171
|
+
compare "icebox-unconfigured" "$SANDBOX/no-icebox-config.sh"
|
|
172
|
+
|
|
173
|
+
# The corpus must actually reach the branches the comparison is bought for: an
|
|
174
|
+
# agreement over a corpus that classifies nothing is the vacuity this unit exists
|
|
175
|
+
# to end, arriving one layer up. Each of these is read off the shell side, the
|
|
176
|
+
# one that owns the globals under obligation.
|
|
177
|
+
corpus="$(shell_side "$SANDBOX/icebox-config.sh" "$SANDBOX/TASK-QUEUE.md")"
|
|
178
|
+
T=$'\t'
|
|
179
|
+
have() { # $1=label $2=grep -E pattern
|
|
180
|
+
checks=$((checks + 1))
|
|
181
|
+
grep -qE "$2" <<<"$corpus" || {
|
|
182
|
+
echo " FAIL [$1]: the corpus no longer exercises this branch"
|
|
183
|
+
fails=$((fails + 1))
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
have "corpus-active" "^line${T}[0-9]+${T}section,active,task${T}-$"
|
|
187
|
+
have "corpus-deferred" "^line${T}[0-9]+${T}section,deferred,task${T}-$"
|
|
188
|
+
have "corpus-icebox" "^line${T}[0-9]+${T}section,icebox,task${T}-$"
|
|
189
|
+
have "corpus-lessons" "^line${T}[0-9]+${T}section,lessons${T}-$"
|
|
190
|
+
have "corpus-plain" "^line${T}[0-9]+${T}section${T}-$"
|
|
191
|
+
have "corpus-bullet" "^line${T}[0-9]+${T}-${T}feat-a$"
|
|
192
|
+
have "corpus-done" "^line${T}[0-9]+${T}-${T}done-b$"
|
|
193
|
+
have "corpus-live" "^live${T}chill-a$"
|
|
194
|
+
|
|
195
|
+
# The discriminating case for the icebox degradation: unconfigured, the icebox
|
|
196
|
+
# section must classify as a plain section on both sides — never as every line.
|
|
197
|
+
corpus_off="$(shell_side "$SANDBOX/no-icebox-config.sh" "$SANDBOX/TASK-QUEUE.md")"
|
|
198
|
+
lack() { # $1=label $2=grep -E pattern $3=what the hit would mean
|
|
199
|
+
checks=$((checks + 1))
|
|
200
|
+
if grep -qE "$2" <<<"$corpus_off"; then
|
|
201
|
+
echo " FAIL [$1]: $3"
|
|
202
|
+
fails=$((fails + 1))
|
|
203
|
+
fi
|
|
204
|
+
}
|
|
205
|
+
lack "icebox-degrades-class" "^line${T}[0-9]+${T}[a-z,]*icebox" \
|
|
206
|
+
"an unconfigured icebox still classified a line as icebox"
|
|
207
|
+
lack "icebox-degrades-task" "^live${T}chill-a$" \
|
|
208
|
+
"an unconfigured icebox left its section a live task section"
|
|
209
|
+
|
|
210
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
211
|
+
echo "queue-lib-parity.test: $fails of $checks assertion(s) failed"
|
|
212
|
+
exit 1
|
|
213
|
+
fi
|
|
214
|
+
echo "queue-lib-parity.test: ok ($checks assertions; one helper and seven globals held to the compiled twin over one corpus, icebox configured and not)"
|
|
215
|
+
exit 0
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Behavioral test of check-roadmap-fresh assertion B and the
|
|
2
|
+
# Behavioral test of check-roadmap-fresh assertion B and the roadmap arm's emit
|
|
3
3
|
# grammar. The gate's good/bad pair proves assertion A (the byte-compare), which
|
|
4
4
|
# is the one axis a single pair can carry; B's rejection shapes and the emitter's
|
|
5
5
|
# projection rules are driven directly here. Config is isolated via
|
|
6
6
|
# QUEUE_KIT_CONFIG_FILE so the repo's queue-config.sh does not leak in.
|
|
7
7
|
#
|
|
8
|
+
# Both halves are compiled now, so both are driven through their declared entry
|
|
9
|
+
# points: gate_run resolves the gate's descriptor and its config bridge, and the
|
|
10
|
+
# battery runner's --emit front-end resolves the arm's. The sandbox is a git repo
|
|
11
|
+
# because that front-end anchors at the toplevel before it dispatches.
|
|
12
|
+
#
|
|
8
13
|
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
9
14
|
set -uo pipefail
|
|
10
15
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
11
16
|
|
|
12
17
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # queue-kit/
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
CHECKS="$DIR/checks"
|
|
19
|
+
FRONTEND="$DIR/../gate-sdk/bin/run-gates.sh"
|
|
15
20
|
SANDBOX="$(mktemp -d)"
|
|
16
21
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
22
|
+
git -C "$SANDBOX" init -q
|
|
17
23
|
|
|
18
24
|
cat >"$SANDBOX/config.sh" <<'EOF'
|
|
19
25
|
QUEUE_KIT_HORIZONS=(soon someday)
|
|
@@ -42,14 +48,18 @@ queue() { # $1=the entry lead line, $2=optional body line(s) — writes a minim
|
|
|
42
48
|
}
|
|
43
49
|
decl=' roadmap-summary: A sentence an author marked for the public page.'
|
|
44
50
|
|
|
51
|
+
emit() { # $@ = the arm's own argv tail
|
|
52
|
+
( cd "$SANDBOX" && bash "$FRONTEND" --emit roadmap "$@" 2>&1 )
|
|
53
|
+
}
|
|
54
|
+
|
|
45
55
|
# The projection page is kept fresh throughout, so every verdict below is
|
|
46
56
|
# assertion B's and never assertion A's.
|
|
47
57
|
refresh() {
|
|
48
58
|
printf 'framing\n\n<!-- roadmap:begin -->\n<!-- roadmap:end -->\n' >"$SANDBOX/ROADMAP.md"
|
|
49
|
-
|
|
59
|
+
emit --write >/dev/null
|
|
50
60
|
}
|
|
51
61
|
|
|
52
|
-
run_gate() { ( cd "$SANDBOX" &&
|
|
62
|
+
run_gate() { ( cd "$SANDBOX" && gate_run check-roadmap-fresh "$CHECKS" 2>&1 ); }
|
|
53
63
|
|
|
54
64
|
# Every field valid, one declaration -> clean.
|
|
55
65
|
queue '- **ok-thing** [roadmap: soon/alpha] — a valid entry.' "$decl"
|
|
@@ -131,7 +141,7 @@ want "both-horizon" "$out" "unknown horizon 'eventually'"
|
|
|
131
141
|
printf ' roadmap-summary: A deferred rung, said publicly.\n'
|
|
132
142
|
printf '\n## Done\n\n- shipped-thing\n\n## Lessons Learned\n'
|
|
133
143
|
} >"$SANDBOX/TASK-QUEUE.md"
|
|
134
|
-
out="$(
|
|
144
|
+
out="$(emit)"
|
|
135
145
|
want "emit-declared" "$out" '- **`live-thing`** *(alpha)* — The public sentence, and only this.'
|
|
136
146
|
absent "emit-leadprose" "$out" "LEADPROSE"
|
|
137
147
|
absent "emit-bodyprose" "$out" "BODYPROSE"
|
|
@@ -143,21 +153,21 @@ want "emit-heading" "$out" "### soon"
|
|
|
143
153
|
# The whitelist holds even with the gate bypassed: a tagged entry whose
|
|
144
154
|
# declaration is missing contributes no bullet at all rather than a naked one.
|
|
145
155
|
queue '- **unmarked** [roadmap: soon/alpha] — LEADPROSE only, nothing marked.' ' BODYPROSE here too.'
|
|
146
|
-
out="$(
|
|
156
|
+
out="$(emit)"
|
|
147
157
|
absent "bypass-slug" "$out" "unmarked"
|
|
148
158
|
absent "bypass-leadprose" "$out" "LEADPROSE"
|
|
149
159
|
absent "bypass-bodyprose" "$out" "BODYPROSE"
|
|
150
160
|
|
|
151
161
|
# An empty horizon still gets its heading, carrying the placeholder.
|
|
152
162
|
queue '- **only-soon** [roadmap: soon/alpha] — the only entry.' "$decl"
|
|
153
|
-
out="$(
|
|
163
|
+
out="$(emit)"
|
|
154
164
|
want "empty-heading" "$out" "### someday"
|
|
155
165
|
want "empty-placeholder" "$out" "_Nothing is queued under this horizon._"
|
|
156
166
|
|
|
157
167
|
# The written block ends on a blank line before the :end marker — without it the
|
|
158
168
|
# Pages parser leaves the list open and renders the marker inside the last <li>.
|
|
159
169
|
printf 'framing\n\n<!-- roadmap:begin -->\n<!-- roadmap:end -->\n' >"$SANDBOX/ROADMAP.md"
|
|
160
|
-
|
|
170
|
+
emit --write >/dev/null
|
|
161
171
|
if ! grep -B1 -F -- '<!-- roadmap:end -->' "$SANDBOX/ROADMAP.md" | head -1 | grep -qx ''; then
|
|
162
172
|
echo " FAIL [write-trailing-blank]: no blank line before the :end marker:"
|
|
163
173
|
printf ' %s\n' "$(cat "$SANDBOX/ROADMAP.md")"
|
|
@@ -166,7 +176,7 @@ fi
|
|
|
166
176
|
|
|
167
177
|
# --write leaves every byte outside the markers untouched.
|
|
168
178
|
printf 'KEEP-ABOVE\n\n<!-- roadmap:begin -->\nstale\n<!-- roadmap:end -->\n\nKEEP-BELOW\n' >"$SANDBOX/ROADMAP.md"
|
|
169
|
-
|
|
179
|
+
emit --write >/dev/null
|
|
170
180
|
page="$(cat "$SANDBOX/ROADMAP.md")"
|
|
171
181
|
want "write-above" "$page" "KEEP-ABOVE"
|
|
172
182
|
want "write-below" "$page" "KEEP-BELOW"
|
|
@@ -177,7 +187,7 @@ cat >"$SANDBOX/noroadmap.sh" <<'EOF'
|
|
|
177
187
|
QUEUE_KIT_HORIZONS=(soon someday)
|
|
178
188
|
QUEUE_KIT_TRACKS=(alpha beta)
|
|
179
189
|
EOF
|
|
180
|
-
out="$( cd "$SANDBOX" && QUEUE_KIT_CONFIG_FILE="$SANDBOX/noroadmap.sh"
|
|
190
|
+
out="$( cd "$SANDBOX" && QUEUE_KIT_CONFIG_FILE="$SANDBOX/noroadmap.sh" gate_run check-roadmap-fresh "$CHECKS" 2>&1 )"
|
|
181
191
|
code "skip-exit" "$?" 0
|
|
182
192
|
want "skip" "$out" "this consumer publishes no roadmap"
|
|
183
193
|
|
|
@@ -185,7 +195,7 @@ want "skip" "$out" "this consumer publishes no roadmap"
|
|
|
185
195
|
cat >"$SANDBOX/halfconfig.sh" <<'EOF'
|
|
186
196
|
QUEUE_KIT_HORIZONS=(soon someday)
|
|
187
197
|
EOF
|
|
188
|
-
out="$( cd "$SANDBOX" && QUEUE_KIT_CONFIG_FILE="$SANDBOX/halfconfig.sh"
|
|
198
|
+
out="$( cd "$SANDBOX" && QUEUE_KIT_CONFIG_FILE="$SANDBOX/halfconfig.sh" gate_run check-roadmap-fresh "$CHECKS" 2>&1 )"
|
|
189
199
|
code "half-exit" "$?" 2
|
|
190
200
|
want "half" "$out" "QUEUE_KIT_TRACKS is empty"
|
|
191
201
|
|
|
@@ -74,14 +74,12 @@ QUEUE_DEFERRED_RE="^## ${QUEUE_KIT_DEFERRED_SECTION}[[:space:]]*$"
|
|
|
74
74
|
# spec: queue-kit/SPEC.md §The icebox tier — an unset knob leaves a regex nothing can match, so every icebox reader degrades to "no icebox" rather than to "every section"
|
|
75
75
|
# shellcheck disable=SC2034 # consumed by sourcing gates, never within this lib
|
|
76
76
|
QUEUE_ICEBOX_RE="${QUEUE_KIT_ICEBOX_SECTION:+^## ${QUEUE_KIT_ICEBOX_SECTION}[[:space:]]*$}"
|
|
77
|
-
#
|
|
78
|
-
|
|
79
|
-
_qk_task_sections=("${QUEUE_KIT_ACTIVE_SECTIONS[@]}" "$QUEUE_KIT_DEFERRED_SECTION")
|
|
77
|
+
# spec: queue-kit/SPEC.md §lib/queue.sh — the task-section set in configured order, the one composition the task regex and every per-section reader share
|
|
78
|
+
QUEUE_TASK_SECTIONS=("${QUEUE_KIT_ACTIVE_SECTIONS[@]}" "$QUEUE_KIT_DEFERRED_SECTION")
|
|
80
79
|
# spec: queue-kit/SPEC.md §The icebox tier — the icebox is a *live* task section: joining the shared task regex is what makes eviction a conserved move and carries slug uniqueness, blocker resolution, the living-prose contract and the lead-line guard onto the tier with no gate edit
|
|
81
|
-
[[ -n "$QUEUE_KIT_ICEBOX_SECTION" ]] &&
|
|
80
|
+
[[ -n "$QUEUE_KIT_ICEBOX_SECTION" ]] && QUEUE_TASK_SECTIONS+=("$QUEUE_KIT_ICEBOX_SECTION")
|
|
82
81
|
# shellcheck disable=SC2034 # consumed by sourcing gates, never within this lib
|
|
83
|
-
QUEUE_TASK_RE="^## ($(queue_alt "${
|
|
84
|
-
unset _qk_task_sections
|
|
82
|
+
QUEUE_TASK_RE="^## ($(queue_alt "${QUEUE_TASK_SECTIONS[@]}"))[[:space:]]*$"
|
|
85
83
|
# shellcheck disable=SC2034 # consumed by sourcing gates, never within this lib
|
|
86
84
|
QUEUE_SECTION_RE="^## "
|
|
87
85
|
# spec: queue-kit/SPEC.md §The tag algebra — the Lessons heading is fixed spelling (a required-sections default), read by queue-index + check-tag-lead-line; no knob
|
|
@@ -99,68 +97,6 @@ queue_live_slugs() {
|
|
|
99
97
|
' "$1"
|
|
100
98
|
}
|
|
101
99
|
|
|
102
|
-
queue_done_slugs() {
|
|
103
|
-
awk -v donere="$QUEUE_DONE_RE" -v sectre="$QUEUE_SECTION_RE" '
|
|
104
|
-
$0 ~ donere { ind = 1; next }
|
|
105
|
-
$0 ~ sectre { ind = 0 }
|
|
106
|
-
ind && $0 ~ /^[[:space:]]*-[[:space:]]+[a-z0-9][a-z0-9-]*[[:space:]]*$/ {
|
|
107
|
-
line = $0
|
|
108
|
-
sub(/^[[:space:]]*-[[:space:]]+/, "", line)
|
|
109
|
-
sub(/[[:space:]]*$/, "", line)
|
|
110
|
-
print line
|
|
111
|
-
}
|
|
112
|
-
' "$1"
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
# spec: queue-kit/SPEC.md §bin/roadmap.sh — the one [roadmap:] + roadmap-summary: parse, shared by the emitter and check-roadmap-fresh so the two never disagree on what an entry claims. One TSV line per live entry carrying either, in queue order: <tag-count> <raw-field> <slug> <declaration-count> <summary>. The summary is the entry's roadmap-summary: declaration verbatim — a whitelist, so unmarked body prose never reaches the page.
|
|
116
|
-
queue_roadmap_entries() {
|
|
117
|
-
awk -v taskre="$QUEUE_TASK_RE" -v sectre="$QUEUE_SECTION_RE" '
|
|
118
|
-
function tagcount(line, s, n) {
|
|
119
|
-
s = line; n = 0
|
|
120
|
-
while (match(s, /\[roadmap:/)) { n++; s = substr(s, RSTART + RLENGTH) }
|
|
121
|
-
return n
|
|
122
|
-
}
|
|
123
|
-
function field(line, f) {
|
|
124
|
-
if (!match(line, /\[roadmap:[^]]*\]/)) return ""
|
|
125
|
-
f = substr(line, RSTART, RLENGTH)
|
|
126
|
-
sub(/^\[roadmap:[[:space:]]*/, "", f); sub(/[[:space:]]*\]$/, "", f)
|
|
127
|
-
return f
|
|
128
|
-
}
|
|
129
|
-
function slugof(line) {
|
|
130
|
-
if (!match(line, /\*\*[a-z0-9][a-z0-9-]*\*\*/)) return ""
|
|
131
|
-
return substr(line, RSTART + 2, RLENGTH - 4)
|
|
132
|
-
}
|
|
133
|
-
function declared(line, t) {
|
|
134
|
-
t = line
|
|
135
|
-
sub(/^[[:space:]]*roadmap-summary:[[:space:]]*/, "", t)
|
|
136
|
-
gsub(/[[:space:]]+/, " ", t)
|
|
137
|
-
sub(/^ /, "", t); sub(/ $/, "", t)
|
|
138
|
-
return t
|
|
139
|
-
}
|
|
140
|
-
# spec: queue-kit/SPEC.md §lib/queue.sh — the field column of an untagged entry prints as "-", never empty: tab counts as IFS whitespace, so a reader splitting on it coalesces an empty column and silently shifts every field after it
|
|
141
|
-
function flush( f) {
|
|
142
|
-
f = (fieldv == "" ? "-" : fieldv)
|
|
143
|
-
if (slug != "" && (ntags > 0 || nsum > 0))
|
|
144
|
-
printf "%d\t%s\t%s\t%d\t%s\n", ntags, f, slug, nsum, sumtext
|
|
145
|
-
slug = ""; ntags = 0; nsum = 0; fieldv = ""; sumtext = ""
|
|
146
|
-
}
|
|
147
|
-
$0 ~ taskre { flush(); inq = 1; next }
|
|
148
|
-
$0 ~ sectre { flush(); inq = 0; next }
|
|
149
|
-
!inq { next }
|
|
150
|
-
/^[[:space:]]*-[[:space:]]+\*\*[a-z0-9][a-z0-9-]*\*\*/ {
|
|
151
|
-
flush()
|
|
152
|
-
slug = slugof($0); ntags = tagcount($0); fieldv = field($0)
|
|
153
|
-
next
|
|
154
|
-
}
|
|
155
|
-
# spec: queue-kit/SPEC.md §The tag algebra — the declaration is body-scoped by design, so it is read off a continuation line and counted per entry
|
|
156
|
-
slug != "" && /^[[:space:]]+roadmap-summary:/ {
|
|
157
|
-
nsum++
|
|
158
|
-
if (nsum == 1) sumtext = declared($0)
|
|
159
|
-
}
|
|
160
|
-
END { flush() }
|
|
161
|
-
' "$1"
|
|
162
|
-
}
|
|
163
|
-
|
|
164
100
|
_qk_errs=()
|
|
165
101
|
[[ ${#QUEUE_KIT_ACTIVE_SECTIONS[@]} -gt 0 ]] || _qk_errs+=("QUEUE_KIT_ACTIVE_SECTIONS is empty")
|
|
166
102
|
[[ -n "$QUEUE_KIT_DEFERRED_SECTION" ]] || _qk_errs+=("QUEUE_KIT_DEFERRED_SECTION is empty")
|
package/payload/site-kit/SPEC.md
CHANGED
|
@@ -65,6 +65,14 @@ told to load but cannot find. Knobs:
|
|
|
65
65
|
`SITE_KIT_RENDERER_BATCH` is empty: one of the gate's two renderer contracts,
|
|
66
66
|
and the fallback of the pair. A consumer whose Pages stack differs points this
|
|
67
67
|
at its own renderer; an unresolvable one fails the gate closed.
|
|
68
|
+
**Its value is also a port blocker, and repointing it moves one.** The first
|
|
69
|
+
element of whatever this knob holds is an external program
|
|
70
|
+
`check-docs-render-fidelity` requires, which is what gate-sdk's criterion 7
|
|
71
|
+
screens for and what `gate-sdk/bin/port-blockers.sh` derives by resolving this
|
|
72
|
+
knob (gate-sdk/SPEC.md §port-blockers). The dependency is spelled nowhere in the
|
|
73
|
+
gate's own source, so it is recorded here, where the knob lives: a consumer who
|
|
74
|
+
points this at a renderer their payload already carries removes that blocker,
|
|
75
|
+
and one who points it at a heavier toolchain deepens it.
|
|
68
76
|
- `SITE_KIT_RENDERER_BATCH` — array, **optional**: a command rendering N
|
|
69
77
|
documents over one stream, `NUL`-terminated in both directions and
|
|
70
78
|
count-preserving, the framing specified in §check-docs-render-fidelity. Setting
|
|
@@ -93,6 +101,7 @@ kit path into a workflow whose whole distribution model is verbatim copy.
|
|
|
93
101
|
|
|
94
102
|
## check-docs-cname-parity
|
|
95
103
|
|
|
104
|
+
`checks/check-docs-cname-parity.gate` (`precommit`, binary-dispatched).
|
|
96
105
|
Invariant: no tracked file cites a `SITE_KIT_ALIASES` host in a `://` URL,
|
|
97
106
|
where the authoritative host `H` is read from `SITE_KIT_CNAME`. The CNAME file
|
|
98
107
|
must hold exactly one non-blank host line (else exit 2); `H` itself is exempt
|
|
@@ -105,8 +114,34 @@ one-line edit to the CNAME file that the gate re-propagates — the host lives i
|
|
|
105
114
|
one gated place, and drift anywhere else is caught. The scan reads tracked
|
|
106
115
|
content only, so an untracked local file is never a source; a `git ls-files`
|
|
107
116
|
error is fail-closed (exit 2). The positional form
|
|
108
|
-
`check-docs-cname-parity
|
|
109
|
-
|
|
117
|
+
`check-docs-cname-parity <scan-root> <cname-file>` lets a fixture point both at
|
|
118
|
+
a synthetic tree without touching consumer config.
|
|
119
|
+
|
|
120
|
+
**Its default scan root makes the whole tracked tree its content corpus, and
|
|
121
|
+
that is a port cost worth stating where the rule lives.** With `SITE_KIT_SCAN_ROOT`
|
|
122
|
+
unset the walk is every tracked file, so every kit's `checks/*.sh` and `*.gate`
|
|
123
|
+
is inside the corpus this gate reads *as content* — gate-sdk's criterion 4
|
|
124
|
+
verbatim, reached through the walk rather than through the trigger field. The
|
|
125
|
+
`# graph:` couple is the single literal CNAME file, so the derived
|
|
126
|
+
substrate-sensitive set never selects it and gate-sdk's conservation assertion
|
|
127
|
+
structurally cannot see the hold; it is the first worked instance in that
|
|
128
|
+
direction (gate-sdk/SPEC.md §The fourth budget batch). The discharge is the
|
|
129
|
+
general one: the fixture pair carries the arm, because `gate-tests` is pruned
|
|
130
|
+
from every live-tree walk and no port can change what is inside it. The pair's
|
|
131
|
+
good case therefore takes the default arm — no positional, scan root and CNAME
|
|
132
|
+
both off the config bridge, a fixture declaration path inside its own corpus —
|
|
133
|
+
and the bad case keeps the explicit-root arm.
|
|
134
|
+
|
|
135
|
+
**There is no third positional selecting a config file, and the ground is a
|
|
136
|
+
finding rather than a preference.** Such an argument could only work by exporting
|
|
137
|
+
`SITE_KIT_CONFIG_FILE` and re-sourcing `lib/site.sh` mid-run. A
|
|
138
|
+
`.gate`-dispatched member cannot do that: the config bridge resolves every declared knob *before* the binary starts
|
|
139
|
+
(gate-sdk/SPEC.md §lib/gate.sh), so an argument that selects which config file
|
|
140
|
+
the knobs come from arrives a process too late, and a documented flag that
|
|
141
|
+
silently changes nothing is worse than none. A fixture supplies its own alias set
|
|
142
|
+
the way any consumer does — a `site-config.sh` in the gates dir the loader
|
|
143
|
+
already resolves — which is the shape gate-sdk/SPEC.md §The third budget batch
|
|
144
|
+
settled for the same cause, and it costs the pair nothing.
|
|
110
145
|
|
|
111
146
|
## check-docs-render-fidelity
|
|
112
147
|
|
|
@@ -376,6 +411,21 @@ recovery closes it. The `ALT_DOMAIN` value is a bare hostname, never a `://`
|
|
|
376
411
|
literal, so it does not itself trip the parity gate. A `# enforce:` marker rides
|
|
377
412
|
the template so that, once copied, an enforcement map projects it as a monitor.
|
|
378
413
|
|
|
414
|
+
**The arm roster is a floor, not a ceiling, and "copied verbatim" describes the
|
|
415
|
+
distribution model rather than forbidding an edit.** The copy is the consumer's
|
|
416
|
+
file: nothing syncs it back, and no gate couples the two, so a consumer may add
|
|
417
|
+
arms of its own. Which side of the seam an arm belongs on follows from what it
|
|
418
|
+
asserts. An arm implementing an invariant this kit ships belongs in the template,
|
|
419
|
+
where every consumer inherits it. An arm implementing a **consumer-local**
|
|
420
|
+
invariant belongs in that consumer's copy and must stay out of the template —
|
|
421
|
+
copied into a tree that never declared the convention it derives from, it would
|
|
422
|
+
assert something no kit ships and no consumer agreed to, which is dead config
|
|
423
|
+
that reads as coverage. An arm cannot be truer than the declaration it composes,
|
|
424
|
+
so it lives at the widest tier that declaration is true for. A consumer-local
|
|
425
|
+
arm becomes template material only if its underlying declaration becomes kit
|
|
426
|
+
mechanism — and then it arrives as an optional arm on the existing
|
|
427
|
+
set-the-env-or-delete-the-arm pattern, the way the release-note knobs already do.
|
|
428
|
+
|
|
379
429
|
The workflow's `permissions:` block is an **allowlist, not an addition** — every
|
|
380
430
|
scope it omits is `none` — so reading the tag list and the Release bodies needs
|
|
381
431
|
`contents: read` declared beside `issues: write`, and the probe step needs its own
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=docs/CNAME,native/src/gates/docs_cname_parity.rs,native/src/fresh.rs dir=one valve=none tier=precommit trigger=*
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: site-kit/SPEC.md §check-docs-cname-parity — the docs/CNAME host is the single gated source of truth for the docs host; no tracked file names a configured host alias other than that host in a URL
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=docs/*.md,docs/*/index.md,docs/posts/*.md dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
4
|
+
# port-until: cohort-held-members-port-prerequisites
|
|
3
5
|
# spec: site-kit/SPEC.md §check-docs-render-fidelity — every tracked docs markdown page, rendered through the Pages parser, leaks no code-span corruption symptom (a stray backtick or a raw non-HTML-element tag) into text, promotes no code-fenced heading, and renders no fewer tables than its source GFM table starts; a missing renderer fails closed
|
|
4
6
|
#
|
|
5
7
|
# usage: check-docs-render-fidelity.sh [docs-dir] [config-file]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
# Point the gate at this fixture's synthetic tree
|
|
2
|
-
# tracked doc cites two configured aliases in ://URL
|
|
3
|
-
# exempt path. The
|
|
4
|
-
|
|
1
|
+
# Point the gate at this fixture's synthetic tree and CNAME — the EXPLICIT
|
|
2
|
+
# scan-root arm. A tracked doc there cites two configured aliases in ://URL
|
|
3
|
+
# form, neither under an exempt path. The alias set arrives through the knob,
|
|
4
|
+
# from this case's own scripts/site-config.sh. The gate must REJECT.
|
|
5
|
+
tree tree/CNAME
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
|
|
1
|
+
# No positional: the gate takes its DEFAULT whole-tree arm — SITE_KIT_SCAN_ROOT
|
|
2
|
+
# resolves to "." and SITE_KIT_CNAME to docs/CNAME, both through the config
|
|
3
|
+
# bridge, from this case dir. The corpus is therefore every tracked file of this
|
|
4
|
+
# case, declaration paths included, which is the criterion-4 exposure that arm
|
|
5
|
+
# creates and the reason it needs a case at all. The alias URLs sit under the
|
|
6
|
+
# pruned and the exempt path classes, so the gate must PASS.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=docs/CNAME dir=one valve=none tier=precommit
|
|
2
|
+
# no-fixture: fixture descriptor (scanned as text, never dispatched): a declaration path lying inside the corpus the default whole-tree arm scans as content, which is criterion 4's predicate verbatim
|
|
3
|
+
# spec: site-kit/SPEC.md §check-docs-cname-parity — the live site is <https://apex.example/>, the apex host, so this declaration is scanned and cleared rather than skipped
|
|
@@ -1 +1 @@
|
|
|
1
|
-
DOCS-CNAME-PARITY: clean
|
|
1
|
+
DOCS-CNAME-PARITY: clean (6 tracked file(s) under .; no alias but the docs host 'apex.example' cited in a URL)
|
|
@@ -31,4 +31,4 @@ mkdir -p .github/workflows
|
|
|
31
31
|
cp "$SMOKE_KIT_ROOT/templates/site-health.yml" .github/workflows/site-health.yml
|
|
32
32
|
|
|
33
33
|
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
34
|
-
bash "$SDK/
|
|
34
|
+
bash "$SDK/bin/run-gates.sh" --emit graph > scripts/CHECK-GRAPH.html
|
package/profiles.list
CHANGED
|
@@ -6,10 +6,19 @@
|
|
|
6
6
|
# a kit lands.
|
|
7
7
|
#
|
|
8
8
|
# The rows below are the two rosters that are not derivable, each a judgment
|
|
9
|
-
# recorded with the criterion that produced it.
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
9
|
+
# recorded with the criterion that produced it. That split is the whole contract
|
|
10
|
+
# of this file: **membership is hand-authored and shape is derived.** A row here
|
|
11
|
+
# says which kits a profile carries; nothing here says how the profiles relate,
|
|
12
|
+
# because that follows from the rows.
|
|
13
|
+
#
|
|
14
|
+
# The shape is a bounded lattice, not a chain: profiles are partially ordered by
|
|
15
|
+
# kit-set inclusion, exactly one sits below every other and exactly one above,
|
|
16
|
+
# and two profiles containing neither the other are alternatives rather than
|
|
17
|
+
# steps. The consumer smoke derives that order from these rows and the payload
|
|
18
|
+
# and asserts it — every named kit resolves, the bounds are unique, the maximum
|
|
19
|
+
# is the payload-derived profile, and moving up a comparable pair only ever adds
|
|
20
|
+
# to the gate roster. A fourth profile is admitted exactly when it fits; there is
|
|
21
|
+
# no count to raise here.
|
|
13
22
|
|
|
14
23
|
# starter — the smallest set that reaches a green battery with a working
|
|
15
24
|
# generated hook and at least one gate that reds on a real consumer defect
|
|
@@ -32,10 +41,12 @@ starter gate-sdk
|
|
|
32
41
|
#
|
|
33
42
|
# The honest consequence of the starting-subset rule, stated where the roster is
|
|
34
43
|
# read rather than only on the install page: lifecycle-kit registers **no gate**
|
|
35
|
-
# at install, because its gates
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
#
|
|
44
|
+
# at install, because none of its gates is `zero-config` — for reasons that
|
|
45
|
+
# differ across the roster rather than one reason covering it
|
|
46
|
+
# (installer/README.md §What init seeds). So an adopter who picks this profile
|
|
47
|
+
# *for* lifecycle governance gets the stage machinery vendored and nothing
|
|
48
|
+
# enforcing it until the surface each gate reads exists — a stage stamp for
|
|
49
|
+
# most, the kit's own installer for two. Vendored is not yet enforced.
|
|
39
50
|
delegation gate-sdk
|
|
40
51
|
delegation lifecycle-kit
|
|
41
52
|
delegation queue-kit
|
|
@@ -45,6 +56,23 @@ delegation context-kit
|
|
|
45
56
|
delegation guard-kit
|
|
46
57
|
delegation doctrine-kit
|
|
47
58
|
|
|
59
|
+
# prose — the smallest set that governs a repository whose artifacts are prose,
|
|
60
|
+
# on a git-only floor. gate-sdk is forced in for the same reason it is forced in
|
|
61
|
+
# starter: no runner, no hook generator, no registry. canon-kit is the kit whose
|
|
62
|
+
# subject is authored documents; every other kit's subject is either the agent
|
|
63
|
+
# session — which is delegation's criterion, and why these two are alternatives
|
|
64
|
+
# rather than steps — or a deployed site.
|
|
65
|
+
#
|
|
66
|
+
# What the adopter actually receives, stated here because a criterion that
|
|
67
|
+
# overpromises is worse than none: link, claim, staleness and pointer governance
|
|
68
|
+
# over every README.md at any depth plus the agent file, which is real for a
|
|
69
|
+
# documentation repository since a docs tree is usually a tree of READMEs. It is
|
|
70
|
+
# not governance over `docs/*.md` — neither the manifest set nor the comment
|
|
71
|
+
# surface reads that path, and widening to it is the adopter's own
|
|
72
|
+
# CANON_KIT_PROSE_SURFACE_GLOBS edit in the config seam init already delivers.
|
|
73
|
+
prose gate-sdk
|
|
74
|
+
prose canon-kit
|
|
75
|
+
|
|
48
76
|
# What `full` adds on top of delegation is the set whose subject is something
|
|
49
77
|
# other than a session: canon-kit governs authored documents, drift-kit reports
|
|
50
78
|
# trends advisorily and registers no gates, site-kit governs a deployed docs
|