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,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Behavioral test of
|
|
2
|
+
# Behavioral test of check-survey-record — the scenarios the one-pair
|
|
3
3
|
# good/bad harness cannot hold. The fixture pair drives the gate through its
|
|
4
4
|
# hermetic file argument, which asserts grammar only, because a fixture's rev
|
|
5
5
|
# names no commit in the tree the fixture was copied into. This file covers the
|
|
@@ -13,7 +13,6 @@ set -uo pipefail
|
|
|
13
13
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
14
14
|
|
|
15
15
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
16
|
-
GATE="$DIR/checks/check-survey-record.sh"
|
|
17
16
|
SANDBOX="$(mktemp -d)"
|
|
18
17
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
19
18
|
|
|
@@ -21,7 +20,7 @@ fails=0
|
|
|
21
20
|
|
|
22
21
|
check_case() { # $1=label $2=dir $3=want-rc $4=want-substring
|
|
23
22
|
local out rc
|
|
24
|
-
out="$(cd "$2" && "$
|
|
23
|
+
out="$(cd "$2" && gate_run check-survey-record "$DIR/checks" 2>&1)"; rc=$?
|
|
25
24
|
if [[ "$rc" -ne "$3" ]]; then
|
|
26
25
|
echo " FAIL [$1]: want exit $3, got $rc -- $out"; fails=$((fails + 1)); return
|
|
27
26
|
fi
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — file-gap.sh's capture-time slug resolution: a live entry's slug in the prose
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — file-gap.sh's capture-time slug resolution raises an advisory and never a verdict: every filing writes the one plain '- <date> — <prose>' bullet, a live entry's slug in the prose asks the filer on stderr, a done slug and a Lessons-only slug and a sub-task and a hyphen-embedded near-miss ask nothing, the longest live slug is the one the advisory names, prose that denies the recurrence in words is left exactly as written, and no run touches the queue file
|
|
3
3
|
set -uo pipefail
|
|
4
4
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
5
5
|
|
|
@@ -44,51 +44,79 @@ cat >"$SANDBOX/TASK-QUEUE.md" <<'EOF'
|
|
|
44
44
|
EOF
|
|
45
45
|
|
|
46
46
|
DATE="$(date +%F)"
|
|
47
|
+
OUT=""; ERR=""
|
|
47
48
|
|
|
48
|
-
filed() { # $1=prose ->
|
|
49
|
-
local prose="$1" inbox="$SANDBOX/inbox-$RANDOM.md"
|
|
50
|
-
|
|
49
|
+
filed() { # $1=prose -> sets OUT (stdout) and ERR (stderr) of one filing into a fresh inbox
|
|
50
|
+
local prose="$1" inbox="$SANDBOX/inbox-$RANDOM.md"
|
|
51
|
+
OUT="$(cd "$SANDBOX" && env LIFECYCLE_KIT_GAP_INBOX_FILE="$inbox" \
|
|
51
52
|
LIFECYCLE_KIT_QUEUE_FILE="$SANDBOX/TASK-QUEUE.md" \
|
|
52
53
|
bash "$TOOL" "$prose" 2>"$SANDBOX/err.txt")"
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
ERR="$(cat "$SANDBOX/err.txt")"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
# the advisory's distinguishing phrase — every filing's stderr also carries the
|
|
58
|
+
# unconditional drain-window warning, so silence is asserted against this alone
|
|
59
|
+
ASKS='names live entry'
|
|
60
|
+
|
|
61
|
+
plain() { # $1=arm, $2=the prose the bullet must carry verbatim after the date
|
|
62
|
+
grep -qxF -- "file-gap: - $DATE — $2" <<<"$OUT" \
|
|
63
|
+
|| note "$1-plain" "the bullet is not the plain '- <date> — <prose>' shape: $OUT"
|
|
64
|
+
grep -q -- '^file-gap: - [0-9-]* — recurrence of' <<<"$OUT" \
|
|
65
|
+
&& note "$1-verdict" "the tool interposed a recurrence verdict into the bullet: $OUT"
|
|
55
66
|
}
|
|
56
67
|
|
|
57
68
|
qbefore="$(cat "$SANDBOX/TASK-QUEUE.md")"
|
|
58
69
|
|
|
59
|
-
# --- a live deferred slug
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
grep -qF
|
|
64
|
-
|| note live-
|
|
70
|
+
# --- a live deferred slug asks, the bullet stays plain, and the longest match wins ---
|
|
71
|
+
p='the fork-dispatch-prohibition failure mode fired again inside scope'
|
|
72
|
+
filed "$p"
|
|
73
|
+
plain live-match "$p"
|
|
74
|
+
grep -qF "$ASKS \`fork-dispatch-prohibition\`" <<<"$ERR" \
|
|
75
|
+
|| note live-ask "no point-of-capture advisory naming the longest live slug: $ERR"
|
|
76
|
+
grep -qF 'RE-FILES' <<<"$ERR" \
|
|
77
|
+
|| note live-question "the advisory does not ask the filer to state the claim: $ERR"
|
|
65
78
|
|
|
66
79
|
# --- an icebox entry is live too ---
|
|
67
|
-
|
|
68
|
-
|
|
80
|
+
p='iced-entry regressed'
|
|
81
|
+
filed "$p"
|
|
82
|
+
plain icebox "$p"
|
|
83
|
+
grep -qF "$ASKS \`iced-entry\`" <<<"$ERR" || note icebox-ask "an icebox entry did not resolve as live: $ERR"
|
|
69
84
|
|
|
70
|
-
# --- a done slug is a new defect, not a recurrence ---
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
85
|
+
# --- a done slug is a new defect, not a recurrence: no advisory at all ---
|
|
86
|
+
p='landed-and-fixed broke again after its fix landed'
|
|
87
|
+
filed "$p"
|
|
88
|
+
plain done-slug "$p"
|
|
89
|
+
grep -qF "$ASKS" <<<"$ERR" && note done-ask "a done-section slug raised the recurrence advisory: $ERR"
|
|
75
90
|
|
|
76
91
|
# --- a Lessons entry written in the entry shape is not a queue entry ---
|
|
77
|
-
|
|
78
|
-
|
|
92
|
+
p='lesson-shaped-slug came up once more'
|
|
93
|
+
filed "$p"
|
|
94
|
+
plain lesson "$p"
|
|
95
|
+
grep -qF "$ASKS" <<<"$ERR" && note lesson-ask "a Lessons lead line resolved as a live queue entry: $ERR"
|
|
79
96
|
|
|
80
97
|
# --- a sub-task is out of scope: the rule and its threshold are entry-scoped ---
|
|
81
|
-
|
|
82
|
-
|
|
98
|
+
p='nested-subtask surfaced again'
|
|
99
|
+
filed "$p"
|
|
100
|
+
plain subtask "$p"
|
|
101
|
+
grep -qF "$ASKS" <<<"$ERR" && note subtask-ask "an indented sub-task resolved as an entry: $ERR"
|
|
83
102
|
|
|
84
103
|
# --- a hyphen-embedded near-miss is not a match ---
|
|
85
|
-
|
|
86
|
-
|
|
104
|
+
p='the fork-dispatching helper is slow'
|
|
105
|
+
filed "$p"
|
|
106
|
+
plain boundary "$p"
|
|
107
|
+
grep -qF "$ASKS" <<<"$ERR" && note boundary-ask "a slug embedded in a longer hyphenated token matched: $ERR"
|
|
108
|
+
|
|
109
|
+
# --- the live instance, frozen: prose that denies the recurrence in words is left as written ---
|
|
110
|
+
p='the harness grows unbounded and nothing prunes it. NOT a recurrence of `fork-dispatch-prohibition` — the filer ruled this must be a separate cross-referencing entry.'
|
|
111
|
+
filed "$p"
|
|
112
|
+
plain denial "$p"
|
|
113
|
+
grep -qF "$ASKS \`fork-dispatch-prohibition\`" <<<"$ERR" \
|
|
114
|
+
|| note denial-ask "the advisory should still ask on a denying bullet — asking is not asserting: $ERR"
|
|
87
115
|
|
|
88
116
|
# --- no filing ever writes the queue ---
|
|
89
117
|
[[ "$qbefore" == "$(cat "$SANDBOX/TASK-QUEUE.md")" ]] \
|
|
90
118
|
|| note no-queue-write "file-gap.sh modified the queue file — the constraint the gap inbox exists to hold"
|
|
91
119
|
|
|
92
120
|
[[ "$fails" -eq 0 ]] || { echo "file-gap-recurrence.test: $fails assertion(s) failed"; exit 1; }
|
|
93
|
-
echo "file-gap-recurrence.test: clean (
|
|
121
|
+
echo "file-gap-recurrence.test: clean (every filing writes the plain bullet and no verdict, a live slug asks the filer while done/Lessons/sub-task/near-miss slugs stay silent, the longest live slug is the one named, a denying prose survives verbatim and is still asked about, and no filing writes the queue)"
|
|
94
122
|
exit 0
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — the iteration-boundary gap-inbox check end-to-end through a sandboxed enter-stage: one detector, two dispositions. The close-skipped branch refuses with the drain recovery and writes nothing; the post-close branch stamps, carries the bullets and leaves the inbox intact; the never-named and no-cursor edges take the post-close branch; and --simulate reports each branch with its recovery relayed.
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
5
|
+
|
|
6
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
7
|
+
ENTER="$DIR/bin/enter-stage.sh"
|
|
8
|
+
SANDBOX="$(mktemp -d)"
|
|
9
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
10
|
+
|
|
11
|
+
fails=0
|
|
12
|
+
note() { echo " FAIL [$1]: $2"; fails=$((fails + 1)); }
|
|
13
|
+
|
|
14
|
+
seed() { # $1=sandbox subdir $2=header iteration $3=state data lines (may be empty)
|
|
15
|
+
local sb="$SANDBOX/$1"
|
|
16
|
+
mkdir -p "$sb/.workflow" "$sb/scratch"
|
|
17
|
+
cat >"$sb/TASK-QUEUE.md" <<EOF
|
|
18
|
+
# TASK-QUEUE.md
|
|
19
|
+
|
|
20
|
+
## Iteration: $2
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## New Features
|
|
25
|
+
|
|
26
|
+
## Technical Debt
|
|
27
|
+
|
|
28
|
+
## Done
|
|
29
|
+
EOF
|
|
30
|
+
{
|
|
31
|
+
printf '# contract: lifecycle-kit/SPEC.md §check-stage-evidence\n\n---\n\n'
|
|
32
|
+
printf '%s' "$3"
|
|
33
|
+
} >"$sb/.workflow/WORKFLOW-STATE.txt"
|
|
34
|
+
printf '# contract: lifecycle-kit/SPEC.md §The committed gap inbox\n- 2026-06-05 — the first untriaged gap\n- 2026-06-06 — the second\n' \
|
|
35
|
+
>"$sb/.workflow/gap-inbox.md"
|
|
36
|
+
echo "$sb"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
run_enter() { # $1=sandbox subdir, rest=argv
|
|
40
|
+
( cd "$1" && env GATE_SDK_TMP_DIR=scratch \
|
|
41
|
+
LIFECYCLE_KIT_SESSION_ID=deadbeef03 \
|
|
42
|
+
bash "$ENTER" "${@:2}" 2>&1 )
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
CLOSED='demo-iteration scope aaaaaaaa 2026-06-01 none
|
|
46
|
+
demo-iteration close dddddddd 2026-06-04 none
|
|
47
|
+
'
|
|
48
|
+
SKIPPED='demo-iteration scope aaaaaaaa 2026-06-01 none
|
|
49
|
+
demo-iteration build bbbbbbbb 2026-06-02 none
|
|
50
|
+
'
|
|
51
|
+
|
|
52
|
+
# --- close-skipped: refuse with the drain recovery, write nothing ---
|
|
53
|
+
sk="$(seed skipped demo-iteration "$SKIPPED")"
|
|
54
|
+
cp "$sk/.workflow/WORKFLOW-STATE.txt" "$sk/s.before"
|
|
55
|
+
cp "$sk/TASK-QUEUE.md" "$sk/q.before"
|
|
56
|
+
out="$(run_enter "$sk" scope)"; rc=$?
|
|
57
|
+
[[ "$rc" -eq 1 ]] || note skipped-refuses "want exit 1 on a close-skipped boundary, got $rc -- $out"
|
|
58
|
+
grep -qF 'refused' <<<"$out" || note skipped-verdict "the refusal does not say it refused: $out"
|
|
59
|
+
grep -qF "run the closing stage's gap-drain step" <<<"$out" \
|
|
60
|
+
|| note skipped-recovery "the close-skipped refusal withheld the drain recovery: $out"
|
|
61
|
+
grep -qF 'disposition them here' <<<"$out" && note skipped-wrong-recovery "the close-skipped refusal offered the post-close recovery: $out"
|
|
62
|
+
cmp -s "$sk/s.before" "$sk/.workflow/WORKFLOW-STATE.txt" || note skipped-state "a refused entry wrote the state file"
|
|
63
|
+
cmp -s "$sk/q.before" "$sk/TASK-QUEUE.md" || note skipped-queue "a refused entry wrote the queue"
|
|
64
|
+
|
|
65
|
+
# --- close-skipped under --simulate: the branch and its recovery both relay ---
|
|
66
|
+
out="$(run_enter "$sk" --simulate scope)"; rc=$?
|
|
67
|
+
[[ "$rc" -eq 1 ]] || note skipped-sim-rc "want exit 1 from --simulate on a close-skipped boundary, got $rc -- $out"
|
|
68
|
+
grep -qF 'would be refused' <<<"$out" || note skipped-sim-verdict "--simulate did not report a would-be refusal: $out"
|
|
69
|
+
grep -qF "enter-stage (simulate): help:" <<<"$out" \
|
|
70
|
+
|| note skipped-sim-help "--simulate relayed the refusal without its recovery: $out"
|
|
71
|
+
cmp -s "$sk/s.before" "$sk/.workflow/WORKFLOW-STATE.txt" || note skipped-sim-write "--simulate wrote the state file"
|
|
72
|
+
|
|
73
|
+
# --- post-close: admit, stamp, carry the bullets, leave the inbox alone ---
|
|
74
|
+
pc="$(seed postclose demo-iteration "$CLOSED")"
|
|
75
|
+
out="$(run_enter "$pc" scope)"; rc=$?
|
|
76
|
+
[[ "$rc" -eq 0 ]] || note postclose-admits "want exit 0 on a post-close boundary, got $rc -- $out"
|
|
77
|
+
grep -qF 'intake' <<<"$out" || note postclose-advisory "the admission printed no intake advisory: $out"
|
|
78
|
+
grep -qF '2026-06-05' <<<"$out" || note postclose-names "the advisory did not name the carried bullet: $out"
|
|
79
|
+
grep -qF '2026-06-06' <<<"$out" || note postclose-names-all "the advisory did not name every carried bullet: $out"
|
|
80
|
+
grep -qF 'refused' <<<"$out" && note postclose-verdict "the admission reported a refusal: $out"
|
|
81
|
+
grep -q '^— scope deadbeef 2026' "$pc/.workflow/WORKFLOW-STATE.txt" \
|
|
82
|
+
|| note postclose-stamp "the admitted entry did not stamp"
|
|
83
|
+
grep -q '^## Iteration: —$' "$pc/TASK-QUEUE.md" || note postclose-reset "the admitted entry did not reset the header"
|
|
84
|
+
[[ "$(grep -c '^- ' "$pc/.workflow/gap-inbox.md")" -eq 2 ]] \
|
|
85
|
+
|| note postclose-inbox "the admitted entry consumed or reshaped the carried bullets — the entering session dispositions them"
|
|
86
|
+
|
|
87
|
+
# --- post-close under --simulate: reports the branch it would take, and writes nothing ---
|
|
88
|
+
sm="$(seed postclose-sim demo-iteration "$CLOSED")"
|
|
89
|
+
cp "$sm/.workflow/WORKFLOW-STATE.txt" "$sm/s.before"
|
|
90
|
+
out="$(run_enter "$sm" --simulate scope)"; rc=$?
|
|
91
|
+
[[ "$rc" -eq 0 ]] || note postclose-sim-rc "want exit 0 from --simulate on a post-close boundary, got $rc -- $out"
|
|
92
|
+
grep -qF 'would not refuse' <<<"$out" || note postclose-sim-branch "--simulate did not report the admitting branch: $out"
|
|
93
|
+
grep -qF 'would carry 2 bullet(s)' <<<"$out" \
|
|
94
|
+
|| note postclose-sim-count "--simulate did not name how many bullets it would carry: $out"
|
|
95
|
+
cmp -s "$sm/s.before" "$sm/.workflow/WORKFLOW-STATE.txt" || note postclose-sim-write "--simulate wrote the state file"
|
|
96
|
+
|
|
97
|
+
# --- the never-named closing iteration takes the post-close branch ---
|
|
98
|
+
un="$(seed unnamed '—' '— scope aaaaaaaa 2026-06-01 none
|
|
99
|
+
')"
|
|
100
|
+
out="$(run_enter "$un" scope)"; rc=$?
|
|
101
|
+
[[ "$rc" -eq 0 ]] || note unnamed-admits "a never-named closing iteration should not refuse, got $rc -- $out"
|
|
102
|
+
grep -qF 'intake' <<<"$out" || note unnamed-advisory "the never-named edge printed no intake advisory: $out"
|
|
103
|
+
|
|
104
|
+
# --- no cursor at all (a fresh consumer's first boundary) takes it too ---
|
|
105
|
+
nc="$(seed nocursor fresh-iteration '')"
|
|
106
|
+
out="$(run_enter "$nc" scope)"; rc=$?
|
|
107
|
+
[[ "$rc" -eq 0 ]] || note nocursor-admits "a boundary with no cursor should not refuse, got $rc -- $out"
|
|
108
|
+
grep -qF 'intake' <<<"$out" || note nocursor-advisory "the no-cursor edge printed no intake advisory: $out"
|
|
109
|
+
|
|
110
|
+
# --- an empty inbox is silent on both branches ---
|
|
111
|
+
ei_n=0
|
|
112
|
+
for st in "$CLOSED" "$SKIPPED"; do
|
|
113
|
+
ei_n=$((ei_n + 1))
|
|
114
|
+
ei="$(seed "empty-$ei_n" demo-iteration "$st")"
|
|
115
|
+
printf '# contract: lifecycle-kit/SPEC.md §The committed gap inbox\n' >"$ei/.workflow/gap-inbox.md"
|
|
116
|
+
out="$(run_enter "$ei" scope)"; rc=$?
|
|
117
|
+
[[ "$rc" -eq 0 ]] || note empty-inbox "a header-only inbox should not refuse either branch, got $rc -- $out"
|
|
118
|
+
grep -qF 'gap-inbox.md holds' <<<"$out" && note empty-advisory "a header-only inbox printed a carried-bullet advisory: $out"
|
|
119
|
+
done
|
|
120
|
+
|
|
121
|
+
[[ "$fails" -eq 0 ]] || { echo "gap-inbox-route.test: $fails assertion(s) failed"; exit 1; }
|
|
122
|
+
echo "gap-inbox-route.test: clean (close-skipped refuses with the drain recovery and writes nothing; post-close stamps and carries; both edges take the post-close branch; --simulate reports each branch with its recovery)"
|
|
123
|
+
exit 0
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — --rename end-to-end through a sandboxed enter-stage: both surfaces rewritten in one motion, the columns-2-to-last witness proved rather than assumed, the half-landed hand-rename healed, every refusal writing nothing, the idempotent no-op, and --simulate --rename writing nothing while prefixing every line
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
5
|
+
|
|
6
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
7
|
+
ENTER="$DIR/bin/enter-stage.sh"
|
|
8
|
+
SANDBOX="$(mktemp -d)"
|
|
9
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
10
|
+
|
|
11
|
+
fails=0
|
|
12
|
+
note() { echo " FAIL [$1]: $2"; fails=$((fails + 1)); }
|
|
13
|
+
|
|
14
|
+
seed() { # $1=sandbox subdir $2=header name $3=stamp column-1 name
|
|
15
|
+
local sb="$1" hdr="$2" col1="$3"
|
|
16
|
+
mkdir -p "$sb/.workflow"
|
|
17
|
+
cat >"$sb/TASK-QUEUE.md" <<EOF
|
|
18
|
+
# TASK-QUEUE.md
|
|
19
|
+
|
|
20
|
+
## Iteration: $hdr
|
|
21
|
+
|
|
22
|
+
## New Features
|
|
23
|
+
|
|
24
|
+
## Technical Debt
|
|
25
|
+
|
|
26
|
+
## Done
|
|
27
|
+
EOF
|
|
28
|
+
cat >"$sb/.workflow/WORKFLOW-STATE.txt" <<EOF
|
|
29
|
+
# contract: lifecycle-kit/SPEC.md §check-stage-evidence
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
$col1 scope aaaaaaaa 2026-06-01 none
|
|
34
|
+
$col1 build bbbbbbbb 2026-06-02 none
|
|
35
|
+
$col1 validate cccccccc 2026-06-03 none
|
|
36
|
+
EOF
|
|
37
|
+
cp "$sb/TASK-QUEUE.md" "$sb/queue.before"
|
|
38
|
+
cp "$sb/.workflow/WORKFLOW-STATE.txt" "$sb/state.before"
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
run_rename() { # $1=sandbox subdir, rest = argv after the tool name
|
|
42
|
+
local sb="$1"; shift
|
|
43
|
+
( cd "$sb" && env GATE_SDK_TMP_DIR="$sb/scratch" bash "$ENTER" "$@" 2>&1 )
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
fields_2_to_nf() { awk '/^---[[:space:]]*$/ { f = 1; next } f && NF { s = ""; for (i = 2; i <= NF; i++) s = s (i > 2 ? " " : "") $i; print s }' "$1"; }
|
|
47
|
+
|
|
48
|
+
unchanged() { # $1=sandbox subdir $2=assertion label
|
|
49
|
+
cmp -s "$1/queue.before" "$1/TASK-QUEUE.md" || note "$2" "the queue was written"
|
|
50
|
+
cmp -s "$1/state.before" "$1/.workflow/WORKFLOW-STATE.txt" || note "$2" "the state file was written"
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
# --- both surfaces rewritten in one motion, columns 2 through NF intact ---
|
|
54
|
+
ok="$SANDBOX/ok"
|
|
55
|
+
seed "$ok" old-name old-name
|
|
56
|
+
pre="$(fields_2_to_nf "$ok/state.before")"
|
|
57
|
+
out="$(run_rename "$ok" --rename new-name)"; rc=$?
|
|
58
|
+
[[ "$rc" -eq 0 ]] || note write "want exit 0, got $rc -- $out"
|
|
59
|
+
grep -q '^## Iteration: new-name$' "$ok/TASK-QUEUE.md" || note write-header "the queue header was not renamed"
|
|
60
|
+
[[ "$(awk '/^---[[:space:]]*$/ { f = 1; next } f && NF && $1 != "new-name" { c++ } END { print c + 0 }' \
|
|
61
|
+
"$ok/.workflow/WORKFLOW-STATE.txt")" == 0 ]] \
|
|
62
|
+
|| note write-stamps "a stamp's column 1 was left at the old name"
|
|
63
|
+
[[ "$pre" == "$(fields_2_to_nf "$ok/.workflow/WORKFLOW-STATE.txt")" ]] \
|
|
64
|
+
|| note witness "columns 2 through NF (stage, session id, date, head) moved under the rename"
|
|
65
|
+
[[ "$(wc -l <"$ok/state.before")" == "$(wc -l <"$ok/.workflow/WORKFLOW-STATE.txt")" ]] \
|
|
66
|
+
|| note witness-shape "the rename changed the state file's line count"
|
|
67
|
+
grep -qF 'commit' <<<"$out" || note report "the report does not tell the caller to commit both files: $out"
|
|
68
|
+
grep -qF 'TASK-QUEUE.md' <<<"$out" || note report-queue "the report does not name the queue: $out"
|
|
69
|
+
grep -qF 'WORKFLOW-STATE.txt' <<<"$out" || note report-state "the report does not name the state file: $out"
|
|
70
|
+
|
|
71
|
+
# --- the half-landed hand-rename heals from either side ---
|
|
72
|
+
for half in header stamps; do
|
|
73
|
+
hb="$SANDBOX/half-$half"
|
|
74
|
+
if [[ "$half" == header ]]; then seed "$hb" new-name old-name; else seed "$hb" old-name new-name; fi
|
|
75
|
+
out="$(run_rename "$hb" --rename new-name)"; rc=$?
|
|
76
|
+
[[ "$rc" -eq 0 ]] || note "heal-$half" "want exit 0, got $rc -- $out"
|
|
77
|
+
grep -q '^## Iteration: new-name$' "$hb/TASK-QUEUE.md" || note "heal-$half-header" "header not healed"
|
|
78
|
+
[[ "$(awk '/^---[[:space:]]*$/ { f = 1; next } f && NF && $1 != "new-name" { c++ } END { print c + 0 }' \
|
|
79
|
+
"$hb/.workflow/WORKFLOW-STATE.txt")" == 0 ]] || note "heal-$half-stamps" "stamps not healed"
|
|
80
|
+
done
|
|
81
|
+
|
|
82
|
+
# --- the idempotent no-op ---
|
|
83
|
+
idem="$SANDBOX/idempotent"
|
|
84
|
+
seed "$idem" same-name same-name
|
|
85
|
+
out="$(run_rename "$idem" --rename same-name)"; rc=$?
|
|
86
|
+
[[ "$rc" -eq 0 ]] || note idempotent "want exit 0, got $rc -- $out"
|
|
87
|
+
grep -qF 'idempotent no-op' <<<"$out" || note idempotent-report "the no-op was not reported as one: $out"
|
|
88
|
+
unchanged "$idem" idempotent-write
|
|
89
|
+
|
|
90
|
+
# --- every refusal writes nothing ---
|
|
91
|
+
ref="$SANDBOX/refusals"
|
|
92
|
+
for bad in "" "two words" "—" "Upper-Case" "-leading-dash"; do
|
|
93
|
+
rm -rf "$ref"; seed "$ref" old-name old-name
|
|
94
|
+
out="$(run_rename "$ref" --rename "$bad")"; rc=$?
|
|
95
|
+
[[ "$rc" -eq 2 ]] || note "refuse[$bad]" "want exit 2, got $rc -- $out"
|
|
96
|
+
unchanged "$ref" "refuse-write[$bad]"
|
|
97
|
+
done
|
|
98
|
+
rm -rf "$ref"; seed "$ref" old-name old-name
|
|
99
|
+
out="$(run_rename "$ref" --rename a b)"; rc=$?
|
|
100
|
+
[[ "$rc" -eq 2 ]] || note refuse-arity "--rename with two names: want exit 2, got $rc -- $out"
|
|
101
|
+
unchanged "$ref" refuse-arity-write
|
|
102
|
+
|
|
103
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the placeholder refusal precedes the slug grammar so its message names the writer that owns the value, not a malformed name
|
|
104
|
+
rm -rf "$ref"; seed "$ref" old-name old-name
|
|
105
|
+
out="$(run_rename "$ref" --rename "—")"
|
|
106
|
+
grep -qF 'boundary reset' <<<"$out" \
|
|
107
|
+
|| note refuse-placeholder-message "the placeholder refusal did not name the boundary reset: $out"
|
|
108
|
+
|
|
109
|
+
# --- a pre-flight refusal writes nothing: a stamp naming a stage the machine does not know ---
|
|
110
|
+
pf="$SANDBOX/preflight"
|
|
111
|
+
seed "$pf" old-name old-name
|
|
112
|
+
printf 'old-name notastage eeeeeeee 2026-06-05 none\n' >>"$pf/.workflow/WORKFLOW-STATE.txt"
|
|
113
|
+
cp "$pf/.workflow/WORKFLOW-STATE.txt" "$pf/state.before"
|
|
114
|
+
out="$(run_rename "$pf" --rename new-name)"; rc=$?
|
|
115
|
+
[[ "$rc" -eq 1 ]] || note preflight "a check-stage-evidence refusal: want exit 1, got $rc -- $out"
|
|
116
|
+
grep -qF 'STAGE-EVIDENCE' <<<"$out" || note preflight-relay "the gate's output was not relayed: $out"
|
|
117
|
+
unchanged "$pf" preflight-write
|
|
118
|
+
|
|
119
|
+
# --- --simulate --rename writes nothing and prefixes every line ---
|
|
120
|
+
sim="$SANDBOX/simulate"
|
|
121
|
+
seed "$sim" old-name old-name
|
|
122
|
+
out="$(run_rename "$sim" --simulate --rename new-name)"; rc=$?
|
|
123
|
+
[[ "$rc" -eq 0 ]] || note simulate "want exit 0, got $rc -- $out"
|
|
124
|
+
unchanged "$sim" simulate-write
|
|
125
|
+
if grep -qv '^enter-stage (simulate): ' <<<"$out"; then
|
|
126
|
+
note simulate-prefix "an unprefixed line escaped --simulate: $out"
|
|
127
|
+
fi
|
|
128
|
+
grep -qF 'new-name' <<<"$out" || note simulate-relay "the simulate report does not name the new name: $out"
|
|
129
|
+
|
|
130
|
+
simn="$SANDBOX/simulate-noop"
|
|
131
|
+
seed "$simn" same-name same-name
|
|
132
|
+
out="$(run_rename "$simn" --simulate --rename same-name)"; rc=$?
|
|
133
|
+
[[ "$rc" -eq 0 ]] || note simulate-noop "want exit 0, got $rc -- $out"
|
|
134
|
+
grep -qF 'idempotent no-op' <<<"$out" || note simulate-noop-report "the would-be no-op was not reported: $out"
|
|
135
|
+
if grep -qv '^enter-stage (simulate): ' <<<"$out"; then
|
|
136
|
+
note simulate-noop-prefix "the would-be no-op line is unprefixed: $out"
|
|
137
|
+
fi
|
|
138
|
+
unchanged "$simn" simulate-noop-write
|
|
139
|
+
|
|
140
|
+
[[ "$fails" -eq 0 ]] || { echo "rename-iteration.test: $fails assertion(s) failed"; exit 1; }
|
|
141
|
+
echo "rename-iteration.test: clean (--rename writes both surfaces with columns 2 through NF proved unchanged, heals a half-landed rename from either side, no-ops idempotently, refuses empty/non-slug/placeholder/arity and a red pre-flight with nothing written, and simulates read-only under its prefix)"
|
|
142
|
+
exit 0
|
|
@@ -32,10 +32,10 @@ EOF
|
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
demo-iteration scope aaaaaaaa 2026-06-01
|
|
36
|
-
demo-iteration build bbbbbbbb 2026-06-02
|
|
37
|
-
demo-iteration validate cccccccc 2026-06-03
|
|
38
|
-
demo-iteration close dddddddd 2026-06-04
|
|
35
|
+
demo-iteration scope aaaaaaaa 2026-06-01 none
|
|
36
|
+
demo-iteration build bbbbbbbb 2026-06-02 none
|
|
37
|
+
demo-iteration validate cccccccc 2026-06-03 none
|
|
38
|
+
demo-iteration close dddddddd 2026-06-04 none
|
|
39
39
|
EOF
|
|
40
40
|
cat >"$sb/.workflow/survey-record.md" <<'EOF'
|
|
41
41
|
# contract: lifecycle-kit/SPEC.md §The survey record — carried surveys.
|
|
@@ -89,9 +89,20 @@ grep -qF '.workflow/survey-record.md' <<<"$out" \
|
|
|
89
89
|
grep -qF 'which gates meet every port criterion?' <<<"$out" \
|
|
90
90
|
&& note boundary-headings "the boundary entry printed headings it had just discarded: $out"
|
|
91
91
|
|
|
92
|
-
# --- the gap inbox still refuses, so the asymmetry is real and not an
|
|
92
|
+
# --- the gap inbox still refuses on its close-skipped branch, so the asymmetry is real and not an
|
|
93
|
+
# --- accident: a survey owes nobody a disposition, an undrained gap owes one to a stage that can
|
|
94
|
+
# --- still run. (The post-close branch admits instead, and gap-inbox-route.test.sh owns that.)
|
|
93
95
|
gap="$SANDBOX/gap"
|
|
94
96
|
seed "$gap"
|
|
97
|
+
cat >"$gap/.workflow/WORKFLOW-STATE.txt" <<'EOF'
|
|
98
|
+
# contract: lifecycle-kit/SPEC.md §check-stage-evidence
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
demo-iteration scope aaaaaaaa 2026-06-01 none
|
|
103
|
+
demo-iteration build bbbbbbbb 2026-06-02 none
|
|
104
|
+
demo-iteration validate cccccccc 2026-06-03 none
|
|
105
|
+
EOF
|
|
95
106
|
printf '# contract: lifecycle-kit/SPEC.md §The committed gap inbox\n- 2026-06-05 — an untriaged gap\n' \
|
|
96
107
|
>"$gap/.workflow/gap-inbox.md"
|
|
97
108
|
out="$(run_enter "$gap" scope)"; rc=$?
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of templates/workflow-state-guard.sh: it blocks a Write/Edit
|
|
3
|
+
# whose target resolves to the lifecycle state file and falls through on
|
|
4
|
+
# everything else. The path-equality cases are the point — a textual comparison
|
|
5
|
+
# passes the first and fails the rest, and that is exactly how this guard is
|
|
6
|
+
# defeated in the field.
|
|
7
|
+
#
|
|
8
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
9
|
+
set -uo pipefail
|
|
10
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
11
|
+
|
|
12
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
13
|
+
GUARD="$DIR/templates/workflow-state-guard.sh"
|
|
14
|
+
LIB="$DIR/../guard-kit/lib/guard.sh"
|
|
15
|
+
command -v jq >/dev/null 2>&1 || { echo "workflow-state-guard.test: jq not found on PATH" >&2; exit 2; }
|
|
16
|
+
|
|
17
|
+
SANDBOX="$(mktemp -d)"
|
|
18
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
19
|
+
mkdir -p "$SANDBOX/.workflow" "$SANDBOX/docs"
|
|
20
|
+
printf '# contract\n\n---\n\niter build abc 2026-01-01\n' >"$SANDBOX/.workflow/WORKFLOW-STATE.txt"
|
|
21
|
+
printf 'ordinary\n' >"$SANDBOX/docs/page.md"
|
|
22
|
+
# a symlinked route to the same directory: same file, different spelling
|
|
23
|
+
ln -s .workflow "$SANDBOX/wf-link"
|
|
24
|
+
|
|
25
|
+
fails=0
|
|
26
|
+
checks=0
|
|
27
|
+
|
|
28
|
+
verdict() { # $1=json-payload -> "block" | "pass" | "advise"
|
|
29
|
+
local out rc
|
|
30
|
+
out="$(cd "$SANDBOX" && printf '%s' "$1" | GUARD_KIT_LIB="$LIB" bash "$GUARD" 2>/dev/null)"; rc=$?
|
|
31
|
+
if [[ "$rc" -eq 2 ]]; then echo block; return; fi
|
|
32
|
+
if grep -q '"additionalContext"' <<<"$out"; then echo advise; return; fi
|
|
33
|
+
if [[ "$rc" -eq 0 ]]; then echo pass; return; fi
|
|
34
|
+
echo "exit$rc"
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
want() { # $1=label $2=file_path $3=expected-verdict
|
|
38
|
+
local got
|
|
39
|
+
checks=$((checks + 1))
|
|
40
|
+
got="$(verdict "$(jq -nc --arg p "$2" '{tool_name:"Write",tool_input:{file_path:$p,content:"x"}}')")"
|
|
41
|
+
[[ "$got" == "$3" ]] || { echo " FAIL [$1]: '$2' -> $got, want $3"; fails=$((fails + 1)); }
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
# the plain spelling
|
|
45
|
+
want "relative" ".workflow/WORKFLOW-STATE.txt" block
|
|
46
|
+
# the three spellings a textual comparison misses
|
|
47
|
+
want "dot-slash" "./.workflow/WORKFLOW-STATE.txt" block
|
|
48
|
+
want "absolute" "$SANDBOX/.workflow/WORKFLOW-STATE.txt" block
|
|
49
|
+
want "through-symlink" "wf-link/WORKFLOW-STATE.txt" block
|
|
50
|
+
want "dot-dot" ".workflow/../.workflow/WORKFLOW-STATE.txt" block
|
|
51
|
+
|
|
52
|
+
# ordinary files are untouched — the guard must not become a general write block
|
|
53
|
+
want "ordinary-file" "docs/page.md" pass
|
|
54
|
+
want "sibling-in-dir" ".workflow/gap-inbox.md" pass
|
|
55
|
+
# a name that merely contains the target's is not the target
|
|
56
|
+
want "prefix-collision" ".workflow/WORKFLOW-STATE.txt.bak" pass
|
|
57
|
+
|
|
58
|
+
# a call with no file_path falls through rather than blocking
|
|
59
|
+
checks=$((checks + 1))
|
|
60
|
+
got="$(verdict '{"tool_name":"Bash","tool_input":{"command":"ls"}}')"
|
|
61
|
+
[[ "$got" == pass ]] || { echo " FAIL [no-file_path]: got $got, want pass"; fails=$((fails + 1)); }
|
|
62
|
+
|
|
63
|
+
# an Edit payload is judged the same way as a Write — the matcher covers both
|
|
64
|
+
checks=$((checks + 1))
|
|
65
|
+
got="$(verdict "$(jq -nc --arg p ".workflow/WORKFLOW-STATE.txt" \
|
|
66
|
+
'{tool_name:"Edit",tool_input:{file_path:$p,old_string:"a",new_string:"b"}}')")"
|
|
67
|
+
[[ "$got" == block ]] || { echo " FAIL [edit-payload]: got $got, want block"; fails=$((fails + 1)); }
|
|
68
|
+
|
|
69
|
+
# the relocation knob is honored: a consumer who moved the workflow dir gets a
|
|
70
|
+
# guard that follows it, and the old path stops being the state file
|
|
71
|
+
checks=$((checks + 1))
|
|
72
|
+
mkdir -p "$SANDBOX/wf2"; printf 'x\n' >"$SANDBOX/wf2/WORKFLOW-STATE.txt"
|
|
73
|
+
out="$(cd "$SANDBOX" && jq -nc '{tool_name:"Write",tool_input:{file_path:"wf2/WORKFLOW-STATE.txt",content:"x"}}' \
|
|
74
|
+
| GATE_SDK_WORKFLOW_DIR=wf2 GUARD_KIT_LIB="$LIB" bash "$GUARD" 2>/dev/null)"; rc=$?
|
|
75
|
+
[[ "$rc" -eq 2 ]] || { echo " FAIL [relocated-dir]: got exit $rc, want 2 ($out)"; fails=$((fails + 1)); }
|
|
76
|
+
|
|
77
|
+
# fail-open-but-loud: with the rule unenforceable the call is allowed and the
|
|
78
|
+
# advisory names the rule, rather than passing silently or wedging every write
|
|
79
|
+
checks=$((checks + 1))
|
|
80
|
+
# PATH is emptied of jq and readlink; bash is invoked by its absolute path so the
|
|
81
|
+
# stripped PATH cannot be mistaken for the interpreter itself going missing.
|
|
82
|
+
mkdir -p "$SANDBOX/nojq"
|
|
83
|
+
BASH_ABS="$(command -v bash)"
|
|
84
|
+
out="$(cd "$SANDBOX" && jq -nc '{tool_name:"Write",tool_input:{file_path:".workflow/WORKFLOW-STATE.txt",content:"x"}}' \
|
|
85
|
+
| PATH="$SANDBOX/nojq" GUARD_KIT_LIB="$LIB" "$BASH_ABS" "$GUARD" 2>/dev/null)"; rc=$?
|
|
86
|
+
{ [[ "$rc" -eq 0 ]] && grep -q '"additionalContext"' <<<"$out"; } \
|
|
87
|
+
|| { echo " FAIL [jq-absent]: want exit 0 with an advisory, got exit $rc: $out"; fails=$((fails + 1)); }
|
|
88
|
+
|
|
89
|
+
# an absent guard-kit lib is a clean fall-through, never a wedge
|
|
90
|
+
checks=$((checks + 1))
|
|
91
|
+
( cd "$SANDBOX" && printf '%s' '{"tool_input":{"file_path":".workflow/WORKFLOW-STATE.txt"}}' \
|
|
92
|
+
| GUARD_KIT_LIB="$SANDBOX/nope.sh" bash "$GUARD" >/dev/null 2>&1 )
|
|
93
|
+
[[ "$?" -eq 0 ]] || { echo " FAIL [absent-lib]: expected a fall-through exit 0"; fails=$((fails + 1)); }
|
|
94
|
+
|
|
95
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
96
|
+
echo "workflow-state-guard.test: $fails of $checks assertion(s) failed"
|
|
97
|
+
exit 1
|
|
98
|
+
fi
|
|
99
|
+
echo "workflow-state-guard.test: ok ($checks assertions; resolved path equality across four spellings, Write and Edit, the relocation knob, and both degradation postures)"
|
|
100
|
+
exit 0
|
|
@@ -57,6 +57,10 @@ declare -p LIFECYCLE_KIT_SHIM_DEDUP_CORPUS &>/dev/null || LIFECYCLE_KIT_SHIM_DED
|
|
|
57
57
|
|
|
58
58
|
declare -p LIFECYCLE_KIT_CLOSE_SURFACE_GLOBS &>/dev/null || LIFECYCLE_KIT_CLOSE_SURFACE_GLOBS=("*/SPEC.md")
|
|
59
59
|
|
|
60
|
+
# spec: lifecycle-kit/SPEC.md §The survey record — the surfaces held to the no-retrieval-pointer rule; the queue file alone by default because it is the one permanent surface this kit owns and where both attested firings landed, so the default is non-vacuous in every consumer and over-reaches in none
|
|
61
|
+
declare -p LIFECYCLE_KIT_PERMANENT_SURFACE_GLOBS &>/dev/null \
|
|
62
|
+
|| LIFECYCLE_KIT_PERMANENT_SURFACE_GLOBS=("$LIFECYCLE_KIT_QUEUE_FILE")
|
|
63
|
+
|
|
60
64
|
declare -p LIFECYCLE_KIT_BOUNDARY_TRUNCATE &>/dev/null || LIFECYCLE_KIT_BOUNDARY_TRUNCATE=()
|
|
61
65
|
|
|
62
66
|
declare -p LIFECYCLE_KIT_BOUNDARY_REQUIRE &>/dev/null || LIFECYCLE_KIT_BOUNDARY_REQUIRE=()
|
|
@@ -83,6 +87,11 @@ lifecycle_current_stage() {
|
|
|
83
87
|
awk '{ print $2 }' <<<"$last"
|
|
84
88
|
}
|
|
85
89
|
|
|
90
|
+
# spec: lifecycle-kit/SPEC.md §lib/stages.sh — the closing-stage predicate: success when the cursor equals the last configured stage. Hoisted because two tools must agree by construction rather than by lookalike — the filer warned at capture that no stage is left to drain a bullet is warned by the same test that later admits it at the boundary.
|
|
91
|
+
lifecycle_closing_stage_reached() {
|
|
92
|
+
[[ "$(lifecycle_current_stage "$@")" == "${LIFECYCLE_KIT_STAGES[-1]}" ]]
|
|
93
|
+
}
|
|
94
|
+
|
|
86
95
|
lifecycle_stage_known() {
|
|
87
96
|
local s
|
|
88
97
|
for s in "${LIFECYCLE_KIT_STAGES[@]}"; do
|