checkwright 0.22.0 → 0.23.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 +687 -90
- package/lib/common/lock.sh +38 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +49 -33
- package/lib/diff.sh +64 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +23 -31
- package/lib/uninstall.sh +212 -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 +410 -58
- package/payload/canon-kit/checks/check-amendment-queue.sh +1 -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.sh +1 -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.sh +1 -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.sh +1 -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.sh +1 -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-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/expect.txt +4 -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/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-knob-citation.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-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 +1 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +4 -1
- package/payload/context-kit/SPEC.md +143 -10
- package/payload/context-kit/bin/env-probe.sh +19 -6
- package/payload/context-kit/checks/check-brevity.sh +1 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
- package/payload/context-kit/checks/check-memory-off.sh +1 -0
- package/payload/context-kit/checks/check-settings-paths.sh +94 -0
- package/payload/context-kit/checks/check-settings-pins.sh +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
- 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/args +1 -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/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +12 -1
- package/payload/context-kit/smoke/install.sh +1 -0
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +116 -13
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
- package/payload/delegation-kit/templates/agent-execution.md +38 -14
- 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 +102 -9
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
- 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 +82 -2
- package/payload/doctrine-kit/smoke/install.sh +90 -0
- package/payload/drift-kit/SPEC.md +13 -4
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/smoke/install.sh +28 -0
- package/payload/evidence-kit/checks/check-battery-roster.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +1 -0
- package/payload/gate-sdk/README.md +13 -0
- package/payload/gate-sdk/SPEC.md +2611 -151
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/port-blockers.sh +445 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +26 -5
- package/payload/gate-sdk/bin/run-gates.sh +8 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +52 -4
- 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 +1 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
- package/payload/gate-sdk/checks/check-core-files.sh +1 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +2 -1
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +33 -3
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +36 -5
- package/payload/gate-sdk/checks/check-graph.sh +1 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-identity.sh +1 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +1 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +3 -2
- package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -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 +1 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
- 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-gate-assertions/good/expect.txt +1 -1
- 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 +111 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +65 -4
- 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-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +111 -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 +135 -11
- 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 +42 -0
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +278 -62
- package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +49 -7
- package/payload/guard-kit/lib/guard.sh +276 -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 +11 -1
- package/payload/lifecycle-kit/SPEC.md +441 -37
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +126 -10
- package/payload/lifecycle-kit/bin/file-gap.sh +27 -10
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -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.sh +1 -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/check-close-surfaces.test.sh +1 -2
- 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.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
- 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/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +4 -0
- package/payload/lifecycle-kit/smoke/install.sh +67 -4
- package/payload/lifecycle-kit/templates/lead.md +36 -0
- package/payload/lifecycle-kit/templates/stages/close.md +30 -11
- package/payload/lifecycle-kit/templates/stages/scope.md +9 -4
- package/payload/lifecycle-kit/templates/stages/spec.md +5 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +3 -1
- package/payload/queue-kit/SPEC.md +123 -3
- 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.sh +1 -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.sh +1 -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/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/lib/queue.sh +4 -19
- package/payload/site-kit/SPEC.md +23 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/profiles.list +36 -8
- 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-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- 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-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-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/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- 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/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-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/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-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-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
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Behavioral test of bin/queue-counts.sh: the emitted section set is the
|
|
3
|
+
# *configured* task sections in configured order — not a fixed four — and the
|
|
4
|
+
# count is the top-level entry, the unit bin/queue-index.sh lists. The
|
|
5
|
+
# icebox-unset case is the discriminating one: a hardcoded implementation passes
|
|
6
|
+
# a run against this repo's own config and fails only here. queue-counts is a
|
|
7
|
+
# tool, not a gate, so it has no good/bad pair; this drives it directly.
|
|
8
|
+
#
|
|
9
|
+
# Run by run-gate-tests.sh (any <tests-dir>/*.test.sh; must exit 0).
|
|
10
|
+
set -uo pipefail
|
|
11
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
12
|
+
|
|
13
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # queue-kit/
|
|
14
|
+
BIN="$DIR/bin/queue-counts.sh"
|
|
15
|
+
SANDBOX="$(mktemp -d)"
|
|
16
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
17
|
+
: >"$SANDBOX/empty-config.sh"
|
|
18
|
+
export QUEUE_KIT_CONFIG_FILE="$SANDBOX/empty-config.sh"
|
|
19
|
+
|
|
20
|
+
fails=0
|
|
21
|
+
checks=0
|
|
22
|
+
|
|
23
|
+
eq() { # $1=label $2=got $3=want
|
|
24
|
+
checks=$((checks + 1))
|
|
25
|
+
[[ "$2" == "$3" ]] || { echo " FAIL [$1]: got '$2', want '$3'"; fails=$((fails + 1)); }
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
cat >"$SANDBOX/TASK-QUEUE.md" <<'EOF'
|
|
29
|
+
# TASK-QUEUE.md
|
|
30
|
+
|
|
31
|
+
## Iteration: demo
|
|
32
|
+
|
|
33
|
+
## New Features
|
|
34
|
+
|
|
35
|
+
- **feat-a** — do a thing.
|
|
36
|
+
- **not-an-entry** — an indented bullet is body, not a second entry.
|
|
37
|
+
- **feat-b** — do another.
|
|
38
|
+
|
|
39
|
+
## Technical Debt
|
|
40
|
+
|
|
41
|
+
## Deferred
|
|
42
|
+
|
|
43
|
+
- **defer-a** — later.
|
|
44
|
+
|
|
45
|
+
## Chill
|
|
46
|
+
|
|
47
|
+
- **chill-a** — much later.
|
|
48
|
+
|
|
49
|
+
## Done
|
|
50
|
+
|
|
51
|
+
- done-a
|
|
52
|
+
- **done-b** — a Done entry shaped like an active one, to prove Done is out.
|
|
53
|
+
|
|
54
|
+
## Lessons Learned
|
|
55
|
+
|
|
56
|
+
- **l1** [attend] — a lesson is not a task section.
|
|
57
|
+
EOF
|
|
58
|
+
|
|
59
|
+
# (a) with an icebox configured: the four configured task sections, in order,
|
|
60
|
+
# with Done and Lessons excluded and the indented bullet not counted.
|
|
61
|
+
out="$(QUEUE_KIT_ICEBOX_SECTION=Chill bash "$BIN" "$SANDBOX/TASK-QUEUE.md")"
|
|
62
|
+
eq "icebox-set" "$(tr '\t' '=' <<<"$out" | paste -sd, -)" \
|
|
63
|
+
'New Features=2,Technical Debt=0,Deferred=1,Chill=1'
|
|
64
|
+
|
|
65
|
+
# (b) the discriminating case: no icebox configured -> three lines, and the
|
|
66
|
+
# section that is no longer a task section contributes nothing.
|
|
67
|
+
out="$(bash "$BIN" "$SANDBOX/TASK-QUEUE.md")"
|
|
68
|
+
eq "icebox-unset" "$(tr '\t' '=' <<<"$out" | paste -sd, -)" \
|
|
69
|
+
'New Features=2,Technical Debt=0,Deferred=1'
|
|
70
|
+
|
|
71
|
+
# (c) renamed sections come back renamed — the tool resolves, never enumerates.
|
|
72
|
+
cat >"$SANDBOX/renamed-config.sh" <<'EOF'
|
|
73
|
+
QUEUE_KIT_ACTIVE_SECTIONS=("Work")
|
|
74
|
+
QUEUE_KIT_DEFERRED_SECTION="Someday"
|
|
75
|
+
QUEUE_KIT_ICEBOX_SECTION=""
|
|
76
|
+
EOF
|
|
77
|
+
cat >"$SANDBOX/renamed.md" <<'EOF'
|
|
78
|
+
## Work
|
|
79
|
+
|
|
80
|
+
- **w1** — one.
|
|
81
|
+
|
|
82
|
+
## Someday
|
|
83
|
+
|
|
84
|
+
- **s1** — two.
|
|
85
|
+
- **s2** — three.
|
|
86
|
+
|
|
87
|
+
## Done
|
|
88
|
+
|
|
89
|
+
- **d1** — not counted.
|
|
90
|
+
EOF
|
|
91
|
+
out="$(QUEUE_KIT_CONFIG_FILE="$SANDBOX/renamed-config.sh" bash "$BIN" "$SANDBOX/renamed.md")"
|
|
92
|
+
eq "renamed" "$(tr '\t' '=' <<<"$out" | paste -sd, -)" 'Work=1,Someday=2'
|
|
93
|
+
|
|
94
|
+
# (d) over a queue whose bullets are all top-level, the total agrees with
|
|
95
|
+
# queue_live_slugs — the two readers must not disagree about one queue's size.
|
|
96
|
+
# The fixture is the renamed one deliberately: the main fixture's indented
|
|
97
|
+
# decoy is an entry to queue_live_slugs' grammar and a body bullet to this
|
|
98
|
+
# tool's, a latent divergence between two *existing* readers that this test
|
|
99
|
+
# must not silently adopt as agreement.
|
|
100
|
+
lib_total="$(QUEUE_KIT_CONFIG_FILE="$SANDBOX/renamed-config.sh" bash -c \
|
|
101
|
+
'source "$1/lib/queue.sh"; queue_live_slugs "$2" | wc -l' _ "$DIR" "$SANDBOX/renamed.md")"
|
|
102
|
+
counts_total="$(QUEUE_KIT_CONFIG_FILE="$SANDBOX/renamed-config.sh" bash "$BIN" "$SANDBOX/renamed.md" \
|
|
103
|
+
| awk -F'\t' '{ n += $2 } END { print n + 0 }')"
|
|
104
|
+
eq "agrees-with-queue_live_slugs" "$counts_total" "$lib_total"
|
|
105
|
+
|
|
106
|
+
# (e) a missing queue file is exit 2, never an empty clean answer.
|
|
107
|
+
checks=$((checks + 1))
|
|
108
|
+
( bash "$BIN" "$SANDBOX/nope.md" >/dev/null 2>&1 )
|
|
109
|
+
[[ "$?" -eq 2 ]] || { echo " FAIL [missing-file]: expected exit 2"; fails=$((fails + 1)); }
|
|
110
|
+
|
|
111
|
+
if [[ "$fails" -gt 0 ]]; then
|
|
112
|
+
echo "queue-counts.test: $fails of $checks assertion(s) failed"
|
|
113
|
+
exit 1
|
|
114
|
+
fi
|
|
115
|
+
echo "queue-counts.test: ok ($checks assertions; configured task sections resolved, icebox derived, Done excluded, entry unit agrees with queue_live_slugs)"
|
|
116
|
+
exit 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
|
|
@@ -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,19 +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
100
|
# 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
101
|
queue_roadmap_entries() {
|
|
117
102
|
awk -v taskre="$QUEUE_TASK_RE" -v sectre="$QUEUE_SECTION_RE" '
|
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
|
|
@@ -376,6 +384,21 @@ recovery closes it. The `ALT_DOMAIN` value is a bare hostname, never a `://`
|
|
|
376
384
|
literal, so it does not itself trip the parity gate. A `# enforce:` marker rides
|
|
377
385
|
the template so that, once copied, an enforcement map projects it as a monitor.
|
|
378
386
|
|
|
387
|
+
**The arm roster is a floor, not a ceiling, and "copied verbatim" describes the
|
|
388
|
+
distribution model rather than forbidding an edit.** The copy is the consumer's
|
|
389
|
+
file: nothing syncs it back, and no gate couples the two, so a consumer may add
|
|
390
|
+
arms of its own. Which side of the seam an arm belongs on follows from what it
|
|
391
|
+
asserts. An arm implementing an invariant this kit ships belongs in the template,
|
|
392
|
+
where every consumer inherits it. An arm implementing a **consumer-local**
|
|
393
|
+
invariant belongs in that consumer's copy and must stay out of the template —
|
|
394
|
+
copied into a tree that never declared the convention it derives from, it would
|
|
395
|
+
assert something no kit ships and no consumer agreed to, which is dead config
|
|
396
|
+
that reads as coverage. An arm cannot be truer than the declaration it composes,
|
|
397
|
+
so it lives at the widest tier that declaration is true for. A consumer-local
|
|
398
|
+
arm becomes template material only if its underlying declaration becomes kit
|
|
399
|
+
mechanism — and then it arrives as an optional arm on the existing
|
|
400
|
+
set-the-env-or-delete-the-arm pattern, the way the release-note knobs already do.
|
|
401
|
+
|
|
379
402
|
The workflow's `permissions:` block is an **allowlist, not an addition** — every
|
|
380
403
|
scope it omits is `none` — so reading the tag list and the Release bodies needs
|
|
381
404
|
`contents: read` declared beside `issues: write`, and the probe step needs its own
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=docs/CNAME dir=one valve=none tier=precommit trigger=*
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: site-kit/SPEC.md §check-docs-cname-parity — the docs/CNAME host is the single gated source of truth for the docs host; no tracked file names a configured host alias other than that host in a URL
|
|
4
5
|
#
|
|
5
6
|
# usage: check-docs-cname-parity.sh [scan-root] [cname-file] [config-file]
|
|
@@ -1,5 +1,6 @@
|
|
|
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
|
|
3
4
|
# spec: site-kit/SPEC.md §check-docs-render-fidelity — every tracked docs markdown page, rendered through the Pages parser, leaks no code-span corruption symptom (a stray backtick or a raw non-HTML-element tag) into text, promotes no code-fenced heading, and renders no fewer tables than its source GFM table starts; a missing renderer fails closed
|
|
4
5
|
#
|
|
5
6
|
# usage: check-docs-render-fidelity.sh [docs-dir] [config-file]
|
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
|