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
package/lib/uninstall.sh
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: installer/README.md §uninstall — reverses an install against the roster init recorded and nothing else: an entry whose content is still what init wrote is removed, an entry you have edited since is kept and reported, and the manifest is narrowed over the survivors rather than deleted, so ownership of a file that is still on disk never lapses
|
|
3
|
+
#
|
|
4
|
+
# usage: checkwright uninstall [--dry-run] [--force] [--no-commit]
|
|
5
|
+
# Each flag is described by --help.
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
INSTALLER="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
9
|
+
PAYLOAD="$INSTALLER/payload"
|
|
10
|
+
# shellcheck source=./common/lock.sh
|
|
11
|
+
source "$INSTALLER/lib/common/lock.sh"
|
|
12
|
+
# spec: installer/README.md §What init seeds — sourced for the consumer-layout names, so the agent file this verb trims is the one init wrote rather than a second spelling of the path
|
|
13
|
+
# shellcheck source=./common/recipe.sh
|
|
14
|
+
source "$INSTALLER/lib/common/recipe.sh"
|
|
15
|
+
|
|
16
|
+
DRY=0; FORCE=0; DO_COMMIT=1
|
|
17
|
+
while [[ $# -gt 0 ]]; do
|
|
18
|
+
case "$1" in
|
|
19
|
+
--dry-run) DRY=1; shift ;;
|
|
20
|
+
--force) FORCE=1; shift ;;
|
|
21
|
+
--no-commit) DO_COMMIT=0; shift ;;
|
|
22
|
+
-h|--help)
|
|
23
|
+
printf 'usage: checkwright uninstall [--dry-run] [--force] [--no-commit]\n\n'
|
|
24
|
+
printf 'Removes the files init recorded in %s and commits the removal.\n' "$CHECKWRIGHT_LOCK_FILE"
|
|
25
|
+
printf 'Nothing outside that roster is touched. A file you have edited since\n'
|
|
26
|
+
printf 'init wrote it is kept and reported; --force removes it anyway.\n'
|
|
27
|
+
exit 0 ;;
|
|
28
|
+
*) printf 'checkwright uninstall: unknown argument: %s\n' "$1" >&2; exit 2 ;;
|
|
29
|
+
esac
|
|
30
|
+
done
|
|
31
|
+
|
|
32
|
+
die() { printf 'checkwright uninstall: %s\n' "$1" >&2; [[ -n "${2:-}" ]] && printf ' help: %s\n' "$2" >&2; exit "${3:-2}"; }
|
|
33
|
+
|
|
34
|
+
# spec: installer/README.md §init — every precondition refuses rather than warns and all of them are checked before anything is removed, for init's own reason: a partial removal is the outcome none of them may produce
|
|
35
|
+
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" \
|
|
36
|
+
|| die "not inside a git work tree" \
|
|
37
|
+
"uninstall stages and commits the removal the same way init committed the install, so it needs the repository it is reversing."
|
|
38
|
+
|
|
39
|
+
LOCK="$(lock_path "$ROOT")"
|
|
40
|
+
[[ -f "$LOCK" ]] || die "no $CHECKWRIGHT_LOCK_FILE at $ROOT" \
|
|
41
|
+
"init is the verb that makes an install, and the manifest it writes is the only record of which files are this installer's to remove. Without one there is nothing here to reverse."
|
|
42
|
+
lock_schema_ok "$LOCK" || die "$CHECKWRIGHT_LOCK_FILE carries a schema this build does not know" \
|
|
43
|
+
"this manifest was written by a different Checkwright release. Upgrade the installer rather than letting it guess at a shape it was not built for."
|
|
44
|
+
|
|
45
|
+
# spec: installer/README.md §init — the clean-worktree precondition is init's, on the same terms: one commit is made, and a dirty tree would fold your work into it; --no-commit is the same valve
|
|
46
|
+
if (( ! DRY )) && (( DO_COMMIT )) && [[ -n "$(git -C "$ROOT" status --porcelain)" ]]; then
|
|
47
|
+
die "the worktree is not clean" \
|
|
48
|
+
"uninstall makes one commit, and a dirty tree would fold your work into it — so a reviewer's diff would no longer be the whole of what was removed. Commit or stash first, or pass --no-commit to stage the removal yourself." 1
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
PROFILE="$(lock_field "$LOCK" profile)"
|
|
52
|
+
VERSION="$(lock_field "$LOCK" version)"
|
|
53
|
+
KITS=()
|
|
54
|
+
read -r -a KITS <<<"$(lock_field "$LOCK" kits)"
|
|
55
|
+
GATES_LIST="$(lock_own_file "$LOCK" "$GATES_DIR/gates.list")"
|
|
56
|
+
|
|
57
|
+
kits_include() { # $1 = kit name -> 0 iff the manifest records it as vendored
|
|
58
|
+
local k
|
|
59
|
+
for k in ${KITS[@]+"${KITS[@]}"}; do [[ "$k" == "$1" ]] && return 0; done
|
|
60
|
+
return 1
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
# spec: installer/README.md §uninstall — the removal rule is claim() seen from the other side, and it needs no new data: init records each path at the hash it last wrote there, so a hash that still matches marks a file that is init's to remove and one that differs marks a file that is yours to keep. A recorded path already off the tree is a no-op rather than an error — it left the roster the moment it left the tree
|
|
64
|
+
REMOVE=(); KEEP=(); GONE=()
|
|
65
|
+
declare -A KEPT_HASH=(); declare -A ROSTER=()
|
|
66
|
+
while IFS=$'\t' read -r p h; do
|
|
67
|
+
[[ -n "$p" ]] || continue
|
|
68
|
+
ROSTER["$p"]=1
|
|
69
|
+
if [[ ! -f "$ROOT/$p" ]]; then GONE+=("$p"); continue; fi
|
|
70
|
+
if (( FORCE )) || [[ "$(lock_hash "$ROOT/$p")" == "$h" ]]; then
|
|
71
|
+
REMOVE+=("$p")
|
|
72
|
+
else
|
|
73
|
+
KEEP+=("$p"); KEPT_HASH["$p"]="$h"
|
|
74
|
+
fi
|
|
75
|
+
done < <(jq -r 'if (.files | type) == "object" then (.files | to_entries[] | "\(.key)\t\(.value)") else empty end' "$LOCK")
|
|
76
|
+
|
|
77
|
+
# spec: installer/README.md §uninstall — the agent file is the one entry that is a span rather than a file, so the branch where it is kept still owes the doctrine block a removal: the block is prose you did not write, in the file whose purpose is to steer agent sessions, pointing at a doctrine file this verb just removed. The trim is scoped to that span alone — a marker block init never wrote is never a files[] entry, so it is never this verb's to touch
|
|
78
|
+
TRIM_AGENT=0
|
|
79
|
+
DOCTRINE_REMOVER="$PAYLOAD/doctrine-kit/bin/install-doctrine.sh"
|
|
80
|
+
if [[ -n "${KEPT_HASH[$AGENT_FILE]:-}" ]] && kits_include doctrine-kit; then
|
|
81
|
+
TRIM_AGENT=1
|
|
82
|
+
[[ -f "$DOCTRINE_REMOVER" ]] || die "this package carries no payload copy of doctrine-kit's installer" \
|
|
83
|
+
"the doctrine block is trimmed through the kit's own installer so the removal path adds no second copy of the marker strings, and this run needs it because $AGENT_FILE is being kept. Run uninstall from an installed package rather than a source checkout."
|
|
84
|
+
fi
|
|
85
|
+
|
|
86
|
+
# spec: installer/README.md §uninstall — the hook opt-in is reported, not rewritten: git config is outside the ownership roster, and a core.hooksPath naming a directory that no longer exists is inert rather than breaking, so there is nothing to justify writing outside the contract. The resolver needs no kits guard: it asks the manifest for the exact path init writes, which a residual manifest simply does not record
|
|
87
|
+
HOOKS_LINE=""
|
|
88
|
+
hooks_path="$(git -C "$ROOT" config --get core.hooksPath 2>/dev/null)"
|
|
89
|
+
if [[ -n "$hooks_path" && -n "$GATES_LIST" && "$GATES_LIST" == */* ]]; then
|
|
90
|
+
gates_dir="${GATES_LIST%/*}"
|
|
91
|
+
rel="${hooks_path#"$ROOT"/}"
|
|
92
|
+
[[ "$rel" == "$gates_dir" || "$rel" == "$gates_dir"/* ]] \
|
|
93
|
+
&& HOOKS_LINE="git config --unset core.hooksPath"
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
# spec: installer/README.md §The manifest — the survivors carry the hash init recorded, never the tree's: an entry rewritten at your hash would read as unchanged on the next install and let it write straight through you, which is the one defect the residual manifest exists to prevent
|
|
97
|
+
residual() {
|
|
98
|
+
local p
|
|
99
|
+
for p in ${KEEP[@]+"${KEEP[@]}"}; do printf '%s\t%s\n' "$p" "${KEPT_HASH[$p]}"; done | lock_emit
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
ancestors() { # $1 = repo-relative path -> each of its directories, deepest first
|
|
103
|
+
local d="$1"
|
|
104
|
+
while [[ "$d" == */* ]]; do d="${d%/*}"; printf '%s\n' "$d"; done
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
# spec: installer/README.md §uninstall — a file you added inside a vendored directory is not on the roster, so it is never removed; the plan names it because a directory left behind holding only your own files is a surprise worth spending a line on before the run rather than after
|
|
108
|
+
adopter_added() {
|
|
109
|
+
local kit f
|
|
110
|
+
for kit in ${KITS[@]+"${KITS[@]}"}; do
|
|
111
|
+
[[ -d "$ROOT/$kit" ]] || continue
|
|
112
|
+
while IFS= read -r f; do
|
|
113
|
+
[[ -n "$f" && -z "${ROSTER[$f]:-}" ]] && printf '%s\n' "$f"
|
|
114
|
+
done < <(cd "$ROOT" && find "$kit" -type f | LC_ALL=C sort)
|
|
115
|
+
done
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
by_top_dir() { # repo-relative paths on stdin -> '<top-level dir or file> <count>' lines
|
|
119
|
+
awk -F/ '{ print (NF > 1 ? $1 "/" : $0) }' | LC_ALL=C sort | uniq -c \
|
|
120
|
+
| awk '{ printf " %-32s %d file(s)\n", $2, $1 }'
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
# spec: installer/README.md §uninstall — a run with nothing to remove says so and exits 0: the install is still there, so narrowing the manifest here would disown an install that has not ended
|
|
124
|
+
if [[ ${#REMOVE[@]} -eq 0 ]]; then
|
|
125
|
+
printf 'UNINSTALL: nothing to remove — of %d recorded file(s), %d have changed since init wrote them and %d are already gone.\n' \
|
|
126
|
+
"$(( ${#KEEP[@]} + ${#GONE[@]} ))" "${#KEEP[@]}" "${#GONE[@]}"
|
|
127
|
+
[[ ${#KEEP[@]} -gt 0 ]] && printf ' help: they are yours, so uninstall leaves them. Pass --force to remove them anyway.\n'
|
|
128
|
+
exit 0
|
|
129
|
+
fi
|
|
130
|
+
|
|
131
|
+
if (( DRY )); then
|
|
132
|
+
printf 'checkwright uninstall --dry-run (profile: %s, version: %s)\n\n' "$PROFILE" "$VERSION"
|
|
133
|
+
printf 'would remove %d file(s):\n' "${#REMOVE[@]}"
|
|
134
|
+
printf '%s\n' "${REMOVE[@]}" | by_top_dir
|
|
135
|
+
printf 'would then remove every directory those files empty.\n'
|
|
136
|
+
if [[ ${#KEEP[@]} -gt 0 ]]; then
|
|
137
|
+
printf '\nwould keep %d file(s) you have changed since init wrote them (--force to remove them anyway):\n' "${#KEEP[@]}"
|
|
138
|
+
printf ' %s\n' "${KEEP[@]}"
|
|
139
|
+
fi
|
|
140
|
+
[[ ${#GONE[@]} -gt 0 ]] && printf '\n%d recorded file(s) are already off the tree — nothing to do for them.\n' "${#GONE[@]}"
|
|
141
|
+
added="$(adopter_added)"
|
|
142
|
+
if [[ -n "$added" ]]; then
|
|
143
|
+
printf '\nwould leave %d file(s) you added inside a vendored directory:\n' "$(grep -c . <<<"$added")"
|
|
144
|
+
while IFS= read -r f; do printf ' %s\n' "$f"; done <<<"$added"
|
|
145
|
+
fi
|
|
146
|
+
(( TRIM_AGENT )) && printf '\nwould trim the doctrine block out of %s, which is being kept, and leave the rest of it alone.\n' "$AGENT_FILE"
|
|
147
|
+
if [[ ${#KEEP[@]} -eq 0 ]]; then
|
|
148
|
+
printf '\nwould delete %s — nothing recorded would survive.\n' "$CHECKWRIGHT_LOCK_FILE"
|
|
149
|
+
else
|
|
150
|
+
printf '\nwould rewrite %s over the %d kept file(s), at the hashes init recorded:\n' "$CHECKWRIGHT_LOCK_FILE" "${#KEEP[@]}"
|
|
151
|
+
residual
|
|
152
|
+
fi
|
|
153
|
+
[[ -n "$HOOKS_LINE" ]] && printf '\nwould print this for you to run yourself:\n %s\n' "$HOOKS_LINE"
|
|
154
|
+
printf '\nDRY RUN: nothing was written.\n'
|
|
155
|
+
exit 0
|
|
156
|
+
fi
|
|
157
|
+
|
|
158
|
+
for p in "${REMOVE[@]}"; do rm -f "$ROOT/$p" || die "could not remove $p"; done
|
|
159
|
+
|
|
160
|
+
# spec: installer/README.md §uninstall — pruning is bottom-up and only ever removes a directory that is now empty: uninstall removes files it owns, never directories it merely emptied around, so one left holding anything at all is left alone
|
|
161
|
+
while IFS= read -r d; do
|
|
162
|
+
rmdir "$ROOT/$d" 2>/dev/null
|
|
163
|
+
done < <(for p in "${REMOVE[@]}"; do ancestors "$p"; done | LC_ALL=C sort -ru)
|
|
164
|
+
|
|
165
|
+
TRIMMED=0
|
|
166
|
+
if (( TRIM_AGENT )); then
|
|
167
|
+
# spec: doctrine-kit/SPEC.md §install-doctrine — the trim runs through the payload's copy of the kit's own installer, exactly as init's injection does, so the marker strings keep their one writer and the removal works once the vendored kit is gone
|
|
168
|
+
trim_out="$( cd "$ROOT" && bash "$DOCTRINE_REMOVER" --remove "$AGENT_FILE" 2>&1 )" \
|
|
169
|
+
|| die "the doctrine block could not be trimmed out of $AGENT_FILE: $trim_out"
|
|
170
|
+
TRIMMED=1
|
|
171
|
+
fi
|
|
172
|
+
|
|
173
|
+
if [[ ${#KEEP[@]} -eq 0 ]]; then
|
|
174
|
+
rm -f "$LOCK" || die "could not remove $CHECKWRIGHT_LOCK_FILE"
|
|
175
|
+
elif residual > "$LOCK.tmp"; then
|
|
176
|
+
mv "$LOCK.tmp" "$LOCK" || die "could not rewrite $CHECKWRIGHT_LOCK_FILE"
|
|
177
|
+
else
|
|
178
|
+
rm -f "$LOCK.tmp"
|
|
179
|
+
die "could not rewrite $CHECKWRIGHT_LOCK_FILE over the kept file(s)"
|
|
180
|
+
fi
|
|
181
|
+
|
|
182
|
+
# spec: installer/README.md §uninstall — the staged set is the removals and the manifest disposition, and a kept file is never among them: staging a file left for the adopter is the same defect init's written-set/roster split exists to prevent, and it stays one when the write is a removal
|
|
183
|
+
STAGE=()
|
|
184
|
+
while IFS= read -r -d '' p; do STAGE+=("$p"); done < <(git -C "$ROOT" ls-files -z -- "${REMOVE[@]}")
|
|
185
|
+
if [[ -f "$LOCK" ]] || git -C "$ROOT" ls-files --error-unmatch -- "$CHECKWRIGHT_LOCK_FILE" >/dev/null 2>&1; then
|
|
186
|
+
STAGE+=("$CHECKWRIGHT_LOCK_FILE")
|
|
187
|
+
fi
|
|
188
|
+
[[ ${#STAGE[@]} -gt 0 ]] && { git -C "$ROOT" add -- "${STAGE[@]}" || die "could not stage the removal"; }
|
|
189
|
+
|
|
190
|
+
if [[ ${#KEEP[@]} -gt 0 ]]; then
|
|
191
|
+
printf '\n%d file(s) have changed since init wrote them and were kept:\n' "${#KEEP[@]}"
|
|
192
|
+
printf ' %s\n' "${KEEP[@]}"
|
|
193
|
+
printf ' help: they are yours. %s now records those paths and nothing else, at the hashes init wrote, so a future init still protects them rather than writing through them.\n' \
|
|
194
|
+
"$CHECKWRIGHT_LOCK_FILE"
|
|
195
|
+
fi
|
|
196
|
+
(( TRIMMED )) && printf '\ntrimmed the doctrine block out of %s and left the change unstaged — the rest of that file is yours to review.\n' "$AGENT_FILE"
|
|
197
|
+
|
|
198
|
+
if git -C "$ROOT" diff --cached --quiet; then
|
|
199
|
+
printf '\nUNINSTALL: removed %d file(s), none of which this repository was tracking — nothing to commit.\n' "${#REMOVE[@]}"
|
|
200
|
+
else
|
|
201
|
+
if (( DO_COMMIT )); then
|
|
202
|
+
git -C "$ROOT" commit -q -m "chore: remove Checkwright kits ($PROFILE, v$VERSION)" \
|
|
203
|
+
|| die "the commit failed — the removal is staged; commit it yourself to finish" "" 1
|
|
204
|
+
printf '\nUNINSTALL: removed %d file(s), kept %d, and committed the removal.\n' "${#REMOVE[@]}" "${#KEEP[@]}"
|
|
205
|
+
else
|
|
206
|
+
printf '\nUNINSTALL: removed %d file(s), kept %d and staged the removal — --no-commit, so the commit is yours.\n' \
|
|
207
|
+
"${#REMOVE[@]}" "${#KEEP[@]}"
|
|
208
|
+
fi
|
|
209
|
+
fi
|
|
210
|
+
|
|
211
|
+
[[ -n "$HOOKS_LINE" ]] && printf '\nthis clone still points at the hooks directory that was just removed. Undo that yourself with:\n %s\n' "$HOOKS_LINE"
|
|
212
|
+
exit 0
|
package/lib/update.sh
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: installer/README.md §update — update is init with one added precondition and its argv forwarded verbatim: checkwright.lock must already exist, so a verb named update can manage an install but never perform the first one. Every init flag stays valid, including --profile, --force, --no-commit and --dry-run, so the mutating-verb --dry-run obligation is discharged by delegation rather than a second implementation that could drift from it
|
|
3
|
+
#
|
|
4
|
+
# usage: checkwright update [--profile <name>] [--dry-run] [--force] [--no-commit]
|
|
5
|
+
# Every init flag stays valid; see 'checkwright init --help' for what each one does.
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
INSTALLER="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
9
|
+
# shellcheck source=./common/lock.sh
|
|
10
|
+
source "$INSTALLER/lib/common/lock.sh"
|
|
11
|
+
|
|
12
|
+
# spec: installer/README.md §init — -h/--help is intercepted first and answers on its own, outside any repository precondition, exactly as every other verb's --help does
|
|
13
|
+
for arg in "$@"; do
|
|
14
|
+
case "$arg" in
|
|
15
|
+
-h|--help)
|
|
16
|
+
printf 'usage: checkwright update [--profile <name>] [--dry-run] [--force] [--no-commit]\n\n'
|
|
17
|
+
printf 'Runs checkwright init with the same arguments, refusing when there is no\n'
|
|
18
|
+
printf 'existing install for it to update. Every init flag is valid here — see\n'
|
|
19
|
+
printf "'checkwright init --help' for what each one does.\n"
|
|
20
|
+
exit 0 ;;
|
|
21
|
+
esac
|
|
22
|
+
done
|
|
23
|
+
|
|
24
|
+
die() { printf 'checkwright update: %s\n' "$1" >&2; [[ -n "${2:-}" ]] && printf ' help: %s\n' "$2" >&2; exit "${3:-2}"; }
|
|
25
|
+
|
|
26
|
+
# spec: installer/README.md §update — the one added precondition, and the whole behavioral difference from init: checkwright.lock must already exist at the repository root, so a verb named update never performs a first install. It checks existence only and no more — a present-but-unreadable schema, a stale downgrade, a below-contract toolchain, and every other init precondition are init's own checks, one call away, and repeating any of them here would be a second copy that could drift from the original. Not being inside a git work tree at all is not this verb's precondition to own either: init's own "not inside a git work tree" refusal already exists and already names the accurate remedy, so an unresolvable root here just falls through to it rather than being reported as an absent manifest
|
|
27
|
+
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)"
|
|
28
|
+
if [[ -n "$ROOT" ]] && [[ ! -f "$(lock_path "$ROOT")" ]]; then
|
|
29
|
+
die "no $CHECKWRIGHT_LOCK_FILE at $ROOT" \
|
|
30
|
+
"update manages an install init already made; there isn't one yet. Run 'checkwright init' first."
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# spec: installer/README.md §init — everything else, including --dry-run, --force and --no-commit, is init's own contract, unrepeated here
|
|
34
|
+
exec bash "$INSTALLER/lib/init.sh" "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "checkwright",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Vendors pinned Checkwright kit source into your repository and commits it — a coding-agent-assisted delivery methodology (gate SDK, evidence-stamped lifecycle, agent context economics).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
21
|
"checkwright": {
|
|
22
|
-
"commit": "
|
|
22
|
+
"commit": "aa518573c57fa0b036a1f6887444f5d334579c22"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a43fd8912ea5329668ddc95c3b9cbc046092645e5df4879aceb42230723194df checkwright-gates
|
|
@@ -37,6 +37,7 @@ reads the tag syntax [queue-kit](../queue-kit/) defines.
|
|
|
37
37
|
check-knob-citation # knob values stated only in the owning SPEC
|
|
38
38
|
check-knob-default-coupling # source knob defaults agree with the owning SPEC
|
|
39
39
|
check-manifest-count # no bare cardinal over a governed collection
|
|
40
|
+
check-measured-claim # needs a measured-claim oracle (marked claims re-measured)
|
|
40
41
|
check-manifest-temporal # no temporal narration in manifest prose
|
|
41
42
|
check-tracking-claim # a path's tracking status in prose agrees with git
|
|
42
43
|
check-prose-enum # partial enumeration of a governed set
|