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,81 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §The survey record — the citation affordance: emits one record block as an inline-ready snippet, so carrying a finding onto a permanent surface is one command rather than a pointer that dies at the next boundary
|
|
3
|
+
# usage: cite-survey.sh "<heading-substring>" (one, non-empty)
|
|
4
|
+
# writes the matched block's heading and all four witness fields to stdout as
|
|
5
|
+
# markdown for the author to paste; exit 2 on no match, an ambiguous match, or an empty record
|
|
6
|
+
set -uo pipefail
|
|
7
|
+
|
|
8
|
+
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
9
|
+
# shellcheck source=../lib/stages.sh
|
|
10
|
+
source "$KIT/lib/stages.sh"
|
|
11
|
+
|
|
12
|
+
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
|
13
|
+
cd "$REPO_ROOT" 2>/dev/null || exit 1
|
|
14
|
+
|
|
15
|
+
usage() {
|
|
16
|
+
printf 'usage: %s [-h|--help] [--] "<heading-substring>"\n' "$(basename "$0")"
|
|
17
|
+
printf ' emits the one matching block of %s as an inline-ready snippet\n' \
|
|
18
|
+
"$LIFECYCLE_KIT_SURVEY_RECORD_FILE"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
# spec: gate-sdk/SPEC.md §The bin/-tool contract — free-text positionals validate shape, not only arity: help is stdout at exit 0, an unrecognized leading '-' is refused, '--' ends option processing
|
|
22
|
+
if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
|
|
23
|
+
usage
|
|
24
|
+
exit 0
|
|
25
|
+
fi
|
|
26
|
+
if [[ "${1:-}" == "--" ]]; then
|
|
27
|
+
shift
|
|
28
|
+
else
|
|
29
|
+
for _cs_arg in "$@"; do
|
|
30
|
+
[[ "$_cs_arg" == -* ]] || continue
|
|
31
|
+
printf '%s: unrecognized option: %s — a substring beginning with "-" is passed after a "--" separator\n' \
|
|
32
|
+
"$(basename "$0")" "$_cs_arg" >&2
|
|
33
|
+
usage >&2
|
|
34
|
+
exit 2
|
|
35
|
+
done
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
if [[ $# -ne 1 || -z "${1:-}" ]]; then
|
|
39
|
+
usage >&2
|
|
40
|
+
exit 2
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
RECORD="$LIFECYCLE_KIT_SURVEY_RECORD_FILE"
|
|
44
|
+
if [[ ! -f "$RECORD" ]]; then
|
|
45
|
+
printf 'cite-survey: no survey record at %s — nothing to cite.\n' "$RECORD" >&2
|
|
46
|
+
exit 2
|
|
47
|
+
fi
|
|
48
|
+
|
|
49
|
+
mapfile -t _cs_headings < <(grep -n '^## ' "$RECORD" | grep -F -- "$1" || true)
|
|
50
|
+
if [[ "${#_cs_headings[@]}" -eq 0 ]]; then
|
|
51
|
+
printf 'cite-survey: no block heading in %s contains: %s\n' "$RECORD" "$1" >&2
|
|
52
|
+
printf 'cite-survey: the record carries these headings —\n' >&2
|
|
53
|
+
grep '^## ' "$RECORD" >&2 || printf ' (none)\n' >&2
|
|
54
|
+
exit 2
|
|
55
|
+
fi
|
|
56
|
+
# spec: lifecycle-kit/SPEC.md §The survey record — an ambiguous substring is a refusal rather than a first-match guess: the author asked for one finding and a silently-chosen sibling would be pasted onto a permanent surface as if it were the one they read
|
|
57
|
+
if [[ "${#_cs_headings[@]}" -gt 1 ]]; then
|
|
58
|
+
printf 'cite-survey: %s block headings contain "%s" — narrow the substring:\n' "${#_cs_headings[@]}" "$1" >&2
|
|
59
|
+
printf ' %s\n' "${_cs_headings[@]}" >&2
|
|
60
|
+
exit 2
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
_cs_start="${_cs_headings[0]%%:*}"
|
|
64
|
+
|
|
65
|
+
block="$(awk -v start="$_cs_start" '
|
|
66
|
+
FNR == start { inb = 1; print; next }
|
|
67
|
+
inb && /^## / { exit }
|
|
68
|
+
inb && /^- (corpus|oracle|rev|finding): / { print }
|
|
69
|
+
' "$RECORD")"; st=$?
|
|
70
|
+
[[ "$st" -eq 0 ]] || {
|
|
71
|
+
printf 'cite-survey: awk exited %s reading %s — the block could not be extracted.\n' "$st" "$RECORD" >&2
|
|
72
|
+
exit 2
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
heading="$(head -1 <<<"$block")"
|
|
76
|
+
heading="${heading#\#\# }"
|
|
77
|
+
|
|
78
|
+
printf '%s\n' "$block" | awk -v h="$heading" '
|
|
79
|
+
NR == 1 { printf "**Carried survey — %s**\n", h; next }
|
|
80
|
+
{ print }
|
|
81
|
+
'
|
|
@@ -5,24 +5,140 @@ set -uo pipefail
|
|
|
5
5
|
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
6
6
|
# shellcheck source=../lib/stages.sh
|
|
7
7
|
source "$KIT/lib/stages.sh"
|
|
8
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the kit's bin/ layer depends on gate-sdk, declared at load rather than inside the one arm that dispatches a gate: this tool resolves check-stage-evidence through gate_command instead of by script path, and writing a second dispatch resolver here is the duplicate the substrate exists to remove
|
|
9
|
+
SDK="${GATE_SDK_ROOT:-$KIT/../gate-sdk}"
|
|
10
|
+
# shellcheck source=../../gate-sdk/lib/gate.sh
|
|
11
|
+
source "$SDK/lib/gate.sh"
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the unnamed-iteration placeholder, resolved once: the boundary reset's header rewrite and bootstrap stamp, the boundary-require skip, and --rename's refusal to write it all read this rather than repeating the glyph
|
|
14
|
+
UNNAMED="—"
|
|
15
|
+
|
|
16
|
+
usage() {
|
|
17
|
+
printf 'usage: %s [--simulate] <stage> (stage ∈ %s)\n' "$(basename "$0")" "${LIFECYCLE_KIT_STAGES[*]}"
|
|
18
|
+
printf ' %s [--simulate] --rename <name> (rename the iteration: queue header + column 1 of every stamp)\n' "$(basename "$0")"
|
|
19
|
+
printf ' %s [-h|--help]\n' "$(basename "$0")"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
# spec: gate-sdk/SPEC.md §The bin/-tool contract — the help half; this tool's positionals are membership-validated, so it owes usage on stdout at exit 0 but no leading-'-' refusal
|
|
23
|
+
if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
|
|
24
|
+
usage
|
|
25
|
+
exit 0
|
|
26
|
+
fi
|
|
10
27
|
|
|
11
28
|
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — --simulate: read-only preflight, every line prefixed 'enter-stage (simulate):' so a transcript can never read as a stamp
|
|
12
29
|
sim=0
|
|
13
30
|
if [[ "${1:-}" == "--simulate" ]]; then sim=1; shift; fi
|
|
14
31
|
sim_relay() { local l; while IFS= read -r l; do echo "enter-stage (simulate): $l"; done <<<"$1"; }
|
|
15
32
|
|
|
33
|
+
QUEUE="$LIFECYCLE_KIT_QUEUE_FILE"
|
|
34
|
+
STATE="$LIFECYCLE_KIT_STATE_FILE"
|
|
35
|
+
|
|
36
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — --rename: the two-surface iteration rename in one motion, no stamp appended and no stage token written, so the cursor is untouched and this is not stage motion
|
|
37
|
+
if [[ "${1:-}" == "--rename" ]]; then
|
|
38
|
+
rn_name="${2:-}"
|
|
39
|
+
if [[ $# -ne 2 ]]; then
|
|
40
|
+
echo "enter-stage: --rename takes exactly one <name> — nothing written." >&2
|
|
41
|
+
usage >&2
|
|
42
|
+
exit 2
|
|
43
|
+
fi
|
|
44
|
+
if [[ -z "$rn_name" ]]; then
|
|
45
|
+
echo "enter-stage: --rename <name> is empty — nothing written." >&2
|
|
46
|
+
exit 2
|
|
47
|
+
fi
|
|
48
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the placeholder refusal precedes the slug grammar that would already reject it, so a session trying to un-name an iteration is told which writer owns that value rather than that its name is malformed
|
|
49
|
+
if [[ "$rn_name" == "$UNNAMED" ]]; then
|
|
50
|
+
echo "enter-stage: --rename must not write the unnamed placeholder '$UNNAMED' — only the iteration-boundary reset writes it; nothing written." >&2
|
|
51
|
+
exit 2
|
|
52
|
+
fi
|
|
53
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the slug grammar is a refusal because column 1 is whitespace-delimited: a two-word name silently shifts every field of every stamp
|
|
54
|
+
if [[ ! "$rn_name" =~ ^[a-z0-9][a-z0-9-]*$ ]]; then
|
|
55
|
+
echo "enter-stage: --rename '$rn_name' is not a queue slug ([a-z0-9][a-z0-9-]*) — nothing written." >&2
|
|
56
|
+
exit 2
|
|
57
|
+
fi
|
|
58
|
+
[[ -f "$QUEUE" ]] || { echo "enter-stage: queue file not found: $QUEUE" >&2; exit 2; }
|
|
59
|
+
[[ -f "$STATE" ]] || { echo "enter-stage: state file not found: $STATE" >&2; exit 2; }
|
|
60
|
+
|
|
61
|
+
rn_hdr="$(lifecycle_header "$QUEUE")"
|
|
62
|
+
if [[ -z "$rn_hdr" ]]; then
|
|
63
|
+
echo "enter-stage: no '## Iteration:' header in $QUEUE — nothing written." >&2
|
|
64
|
+
exit 2
|
|
65
|
+
fi
|
|
66
|
+
rn_cur="$(lifecycle_header_iter "$rn_hdr")"
|
|
67
|
+
rn_moves="$(awk -v n="$rn_name" '/^---[[:space:]]*$/ { f = 1; next } f && NF && $1 != n { c++ } END { print c + 0 }' "$STATE")"
|
|
68
|
+
if [[ "$rn_cur" == "$rn_name" && "$rn_moves" == 0 ]]; then
|
|
69
|
+
if [[ "$sim" == 1 ]]; then
|
|
70
|
+
echo "enter-stage (simulate): the iteration is already named '$rn_name' in $QUEUE and in every stamp of $STATE — the real rename would be an idempotent no-op."
|
|
71
|
+
exit 0
|
|
72
|
+
fi
|
|
73
|
+
echo "enter-stage: the iteration is already named '$rn_name' in $QUEUE and in every stamp of $STATE — idempotent no-op, nothing written."
|
|
74
|
+
exit 0
|
|
75
|
+
fi
|
|
76
|
+
|
|
77
|
+
rn_tmpdir="${GATE_SDK_TMP_DIR:-.tmp}"
|
|
78
|
+
mkdir -p "$rn_tmpdir"
|
|
79
|
+
rn_tmpqueue="$rn_tmpdir/enter-stage.rename.queue.$$"
|
|
80
|
+
rn_tmpstate="$rn_tmpdir/enter-stage.rename.state.$$"
|
|
81
|
+
trap 'rm -f "$rn_tmpqueue" "$rn_tmpstate"' EXIT
|
|
82
|
+
|
|
83
|
+
awk -v n="$rn_name" '
|
|
84
|
+
!d && /^## Iteration:/ { print "## Iteration: " n; d = 1; next }
|
|
85
|
+
{ print }
|
|
86
|
+
' "$QUEUE" > "$rn_tmpqueue"
|
|
87
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — every data line's column 1 is rewritten, not only the last: the first-stage entry truncates the state file, so every line below the separator belongs to the current iteration by construction — which is what check-stage-evidence asserts — and rewriting all of them heals a half-landed hand-rename
|
|
88
|
+
awk -v n="$rn_name" '
|
|
89
|
+
!f { print; if ($0 ~ /^---[[:space:]]*$/) f = 1; next }
|
|
90
|
+
!NF { print; next }
|
|
91
|
+
{ $1 = n; print }
|
|
92
|
+
' "$STATE" > "$rn_tmpstate"
|
|
93
|
+
|
|
94
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the columns-2-4 witness: the writer proves it touched only the field it meant to, which is the content predicate a PreToolUse guard would have to reconstruct a pre-edit file to compute
|
|
95
|
+
rn_fields() { awk '/^---[[:space:]]*$/ { f = 1; next } f && NF { print $2, $3, $4 }' "$1"; }
|
|
96
|
+
if [[ "$(rn_fields "$STATE")" != "$(rn_fields "$rn_tmpstate")" ]]; then
|
|
97
|
+
echo "enter-stage: the rename would alter columns 2-4 (stage, session id, date) of $STATE — refusing, nothing written." >&2
|
|
98
|
+
exit 2
|
|
99
|
+
fi
|
|
100
|
+
|
|
101
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the rename pre-flight names the gate and never a substrate: gate_command yields the shell script's one-element argv or the binary's, prefixed by its bridged knobs, and the two positional arguments ride unchanged because that argv is prefix-shaped. An argv the bridge refused to build is exit 2 — the verdict the dispatcher gives it — never a rename that proceeds unchecked.
|
|
102
|
+
mapfile -t rn_argv < <(gate_command check-stage-evidence "$KIT/checks")
|
|
103
|
+
if [[ ${#rn_argv[@]} -eq 0 ]]; then
|
|
104
|
+
echo "enter-stage: check-stage-evidence could not be dispatched (see above) — the rename could not be pre-flighted; nothing written." >&2
|
|
105
|
+
exit 2
|
|
106
|
+
fi
|
|
107
|
+
if ! rn_pre="$("${rn_argv[@]}" "$rn_tmpqueue" "$rn_tmpstate" 2>&1)"; then
|
|
108
|
+
if [[ "$sim" == 1 ]]; then
|
|
109
|
+
echo "enter-stage (simulate): check-stage-evidence would refuse the rename to '$rn_name':" >&2
|
|
110
|
+
sim_relay "$rn_pre" >&2
|
|
111
|
+
exit 1
|
|
112
|
+
fi
|
|
113
|
+
echo "enter-stage: check-stage-evidence refuses the rename to '$rn_name' — nothing written:" >&2
|
|
114
|
+
printf '%s\n' "$rn_pre" >&2
|
|
115
|
+
exit 1
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
if [[ "$sim" == 1 ]]; then
|
|
119
|
+
echo "enter-stage (simulate): --rename '$rn_name' would rewrite both surfaces — no write:"
|
|
120
|
+
sim_relay "$QUEUE: '## Iteration: $rn_cur' -> '## Iteration: $rn_name'"
|
|
121
|
+
sim_relay "$STATE: column 1 of $rn_moves stamp(s) -> '$rn_name'; columns 2-4 proved unchanged"
|
|
122
|
+
exit 0
|
|
123
|
+
fi
|
|
124
|
+
|
|
125
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the rename is a whole-file rewrite by construction (every data line's column 1 moves), which is why it is the writer's own mode rather than an append like the stamp path
|
|
126
|
+
mv "$rn_tmpqueue" "$QUEUE"
|
|
127
|
+
mv "$rn_tmpstate" "$STATE"
|
|
128
|
+
trap - EXIT
|
|
129
|
+
echo "enter-stage: renamed the iteration to '$rn_name' — header in $QUEUE, column 1 of $rn_moves stamp(s) in $STATE; columns 2-4 proved unchanged."
|
|
130
|
+
echo " next: commit $QUEUE and $STATE together — the rename writes both, and check-stage-evidence requires them to agree."
|
|
131
|
+
exit 0
|
|
132
|
+
fi
|
|
133
|
+
|
|
16
134
|
stage="${1:-}"
|
|
17
|
-
if [[ -z "$stage" ]]; then usage; exit 2; fi
|
|
135
|
+
if [[ -z "$stage" ]]; then usage >&2; exit 2; fi
|
|
18
136
|
if ! lifecycle_stage_known "$stage"; then
|
|
19
137
|
echo "enter-stage: '$stage' is not a lifecycle stage (${LIFECYCLE_KIT_STAGES[*]})" >&2
|
|
20
|
-
usage
|
|
138
|
+
usage >&2
|
|
21
139
|
exit 2
|
|
22
140
|
fi
|
|
23
141
|
|
|
24
|
-
QUEUE="$LIFECYCLE_KIT_QUEUE_FILE"
|
|
25
|
-
STATE="$LIFECYCLE_KIT_STATE_FILE"
|
|
26
142
|
[[ -f "$QUEUE" ]] || { echo "enter-stage: queue file not found: $QUEUE" >&2; exit 2; }
|
|
27
143
|
[[ -f "$STATE" ]] || { echo "enter-stage: state file not found: $STATE" >&2; exit 2; }
|
|
28
144
|
|
|
@@ -30,7 +146,7 @@ hdr="$(lifecycle_header "$QUEUE")"
|
|
|
30
146
|
cur_iter="$(lifecycle_header_iter "$hdr")"
|
|
31
147
|
if [[ "$stage" == "$LIFECYCLE_KIT_FIRST_STAGE" ]]; then
|
|
32
148
|
first=1
|
|
33
|
-
stamp_iter="
|
|
149
|
+
stamp_iter="$UNNAMED"
|
|
34
150
|
else
|
|
35
151
|
first=0
|
|
36
152
|
stamp_iter="$cur_iter"
|
|
@@ -64,8 +180,8 @@ wiped=()
|
|
|
64
180
|
|
|
65
181
|
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — the pre-flight hand-off: the cursor is the last stamp, so the temp file carrying the candidate transition is the STATE file, not the queue. The boundary reset additionally renames the header (dropping any residual pre-upgrade [stage:] field), so the first stage passes a temp queue too; every later entry passes the live queue untouched — stage motion no longer writes it.
|
|
66
182
|
if [[ "$first" == 1 ]]; then
|
|
67
|
-
awk '
|
|
68
|
-
!d && /^## Iteration:/ { print "## Iteration:
|
|
183
|
+
awk -v u="$UNNAMED" '
|
|
184
|
+
!d && /^## Iteration:/ { print "## Iteration: " u; d = 1; next }
|
|
69
185
|
{ print }
|
|
70
186
|
' "$QUEUE" > "$tmpqueue"
|
|
71
187
|
header_only="$(awk '{ print } /^---[[:space:]]*$/ { exit }' "$STATE")"
|
|
@@ -144,7 +260,7 @@ if [[ "$first" == 1 && -f "$LIFECYCLE_KIT_GAP_INBOX_FILE" ]]; then
|
|
|
144
260
|
fi
|
|
145
261
|
|
|
146
262
|
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — LIFECYCLE_KIT_BOUNDARY_REQUIRE: at the iteration boundary each member must carry a data line whose first token is the closing iteration's name, else the entry refuses (fail-closed on a missing file); a never-named (—) closing iteration has nothing to disposition and skips the check. Runs after the Lessons refusal and before the boundary truncation, the same refusal contract.
|
|
147
|
-
if [[ "$first" == 1 && "$cur_iter" != "
|
|
263
|
+
if [[ "$first" == 1 && "$cur_iter" != "$UNNAMED" ]]; then
|
|
148
264
|
for br in ${LIFECYCLE_KIT_BOUNDARY_REQUIRE[@]+"${LIFECYCLE_KIT_BOUNDARY_REQUIRE[@]}"}; do
|
|
149
265
|
req_msg=""
|
|
150
266
|
if [[ ! -f "$br" ]]; then
|
|
@@ -202,7 +318,7 @@ if [[ "$first" == 1 && -d "$tmpdir" ]]; then
|
|
|
202
318
|
fi
|
|
203
319
|
|
|
204
320
|
if [[ "$first" == 1 ]]; then
|
|
205
|
-
echo "enter-stage: iteration-boundary reset — stamped '$stamp_line'; header set to '## Iteration:
|
|
321
|
+
echo "enter-stage: iteration-boundary reset — stamped '$stamp_line'; header set to '## Iteration: $UNNAMED'."
|
|
206
322
|
echo " next: commit $QUEUE and $STATE together (the boundary reset writes both), hook enabled."
|
|
207
323
|
else
|
|
208
324
|
echo "enter-stage: stamped '$stamp_line'; the cursor is now '$stage' (no queue write — stage motion never touches it)."
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — the capture affordance; stamps the bullet grammar, no caller-side redirect (the kfric.sh pattern)
|
|
3
3
|
# usage: file-gap.sh "<gap prose>" (required, non-empty)
|
|
4
4
|
# appends one dated bullet '- <YYYY-MM-DD> — <gap prose>' to the committed gap inbox; exit 2 on misuse
|
|
5
|
-
# a prose naming a live queue slug
|
|
5
|
+
# a prose naming a live queue slug additionally raises a stderr advisory; the bullet is unchanged
|
|
6
6
|
set -uo pipefail
|
|
7
7
|
|
|
8
8
|
KIT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
@@ -13,11 +13,30 @@ REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
|
|
13
13
|
cd "$REPO_ROOT" 2>/dev/null || exit 1
|
|
14
14
|
|
|
15
15
|
usage() {
|
|
16
|
-
printf 'usage: %s "<gap prose>"\n' "$(basename "$0")"
|
|
16
|
+
printf 'usage: %s [-h|--help] [--] "<gap prose>"\n' "$(basename "$0")"
|
|
17
|
+
printf ' appends one dated bullet to %s; "--" files prose beginning with "-"\n' \
|
|
18
|
+
"$LIFECYCLE_KIT_GAP_INBOX_FILE"
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
# spec: gate-sdk/SPEC.md §The bin/-tool contract — free-text positionals validate shape, not only arity: help is stdout at exit 0, an unrecognized leading '-' is refused, '--' ends option processing
|
|
22
|
+
if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
|
|
20
23
|
usage
|
|
24
|
+
exit 0
|
|
25
|
+
fi
|
|
26
|
+
if [[ "${1:-}" == "--" ]]; then
|
|
27
|
+
shift
|
|
28
|
+
else
|
|
29
|
+
for _fg_arg in "$@"; do
|
|
30
|
+
[[ "$_fg_arg" == -* ]] || continue
|
|
31
|
+
printf '%s: unrecognized option: %s — prose beginning with "-" is filed after a "--" separator\n' \
|
|
32
|
+
"$(basename "$0")" "$_fg_arg" >&2
|
|
33
|
+
usage >&2
|
|
34
|
+
exit 2
|
|
35
|
+
done
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
if [[ $# -ne 1 || -z "${1:-}" ]]; then
|
|
39
|
+
usage >&2
|
|
21
40
|
exit 2
|
|
22
41
|
fi
|
|
23
42
|
|
|
@@ -27,7 +46,7 @@ mkdir -p "$(dirname "$INBOX")" 2>/dev/null || true
|
|
|
27
46
|
[[ -f "$INBOX" ]] \
|
|
28
47
|
|| printf '# contract: lifecycle-kit/SPEC.md §The committed gap inbox — append-only mid-iteration gap capture, close-drained; one bullet per gap below.\n' > "$INBOX"
|
|
29
48
|
|
|
30
|
-
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — resolve the prose against the live slug set: every column-0 entry bullet outside the fixed-spelling Lessons section, which is active + deferred + configured icebox with done excluded by grammar (a bare-slug line) and Lessons by name (a lesson may be written in the entry shape); longest match wins, and this awk is lifecycle-kit's own rather than queue-kit's queue_live_slugs, which would close a cross-kit cycle
|
|
49
|
+
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — resolve the prose against the live slug set to raise the advisory, never to stamp a verdict: every column-0 entry bullet outside the fixed-spelling Lessons section, which is active + deferred + configured icebox with done excluded by grammar (a bare-slug line) and Lessons by name (a lesson may be written in the entry shape); longest match wins, and this awk is lifecycle-kit's own rather than queue-kit's queue_live_slugs, which would close a cross-kit cycle
|
|
31
50
|
_fg_slug=""
|
|
32
51
|
if [[ -f "$LIFECYCLE_KIT_QUEUE_FILE" ]]; then
|
|
33
52
|
_fg_slug="$(awk -v prose="$1" '
|
|
@@ -58,16 +77,14 @@ if [[ -f "$LIFECYCLE_KIT_QUEUE_FILE" ]]; then
|
|
|
58
77
|
' "$LIFECYCLE_KIT_QUEUE_FILE" 2>/dev/null)"
|
|
59
78
|
fi
|
|
60
79
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
else
|
|
64
|
-
line="- $(date +%F) — $1"
|
|
65
|
-
fi
|
|
80
|
+
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — one bullet shape for every filing, matching or not: the tool records the observation and never interposes a verdict
|
|
81
|
+
line="- $(date +%F) — $1"
|
|
66
82
|
printf '%s\n' "$line" >> "$INBOX"
|
|
67
83
|
printf 'file-gap: %s\n' "$line"
|
|
68
84
|
|
|
85
|
+
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — the advisory asks rather than asserts: a slug in the prose is an input to the drain's judgment, so the question goes to the one party who can answer it while the finding is still in mind
|
|
69
86
|
if [[ -n "$_fg_slug" ]]; then
|
|
70
|
-
printf 'file-gap: this
|
|
87
|
+
printf 'file-gap: this prose names live entry `%s`. If this bullet RE-FILES that finding, say so in the prose and say why; if it merely cites, corrects, or argues against that entry, say it is DISTINCT and why. The closing stage'"'"'s drain judges the recurrence and reads what you wrote — it has nothing else to go on.\n' \
|
|
71
88
|
"$_fg_slug" >&2
|
|
72
89
|
fi
|
|
73
90
|
|
|
@@ -13,11 +13,30 @@ REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
|
|
13
13
|
cd "$REPO_ROOT" 2>/dev/null || exit 1
|
|
14
14
|
|
|
15
15
|
usage() {
|
|
16
|
-
printf 'usage: %s "<question>" "<corpus>" "<oracle>" "<finding>"\n' "$(basename "$0")"
|
|
16
|
+
printf 'usage: %s [-h|--help] [--] "<question>" "<corpus>" "<oracle>" "<finding>"\n' "$(basename "$0")"
|
|
17
|
+
printf ' appends one dated block to %s; "--" files a field beginning with "-"\n' \
|
|
18
|
+
"$LIFECYCLE_KIT_SURVEY_RECORD_FILE"
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
# spec: gate-sdk/SPEC.md §The bin/-tool contract — free-text positionals validate shape, not only arity: the refusal scans every positional, since arity alone leaves a flag safe in no slot but the first
|
|
22
|
+
if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
|
|
20
23
|
usage
|
|
24
|
+
exit 0
|
|
25
|
+
fi
|
|
26
|
+
if [[ "${1:-}" == "--" ]]; then
|
|
27
|
+
shift
|
|
28
|
+
else
|
|
29
|
+
for _fs_arg in "$@"; do
|
|
30
|
+
[[ "$_fs_arg" == -* ]] || continue
|
|
31
|
+
printf '%s: unrecognized option: %s — a field beginning with "-" is filed after a "--" separator\n' \
|
|
32
|
+
"$(basename "$0")" "$_fs_arg" >&2
|
|
33
|
+
usage >&2
|
|
34
|
+
exit 2
|
|
35
|
+
done
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
if [[ $# -ne 4 || -z "${1:-}" || -z "${2:-}" || -z "${3:-}" || -z "${4:-}" ]]; then
|
|
39
|
+
usage >&2
|
|
21
40
|
exit 2
|
|
22
41
|
fi
|
|
23
42
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=.workflow/*,kit:SPEC.md,.claude/commands/*.md,.gitignore dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: lifecycle-kit/SPEC.md §check-close-surfaces — the derived close-surface roster is complete and moded: no undeclared capture surface, every declaration carries a mode with a well-formed forced= citation, every capture-tier declaration names a reclaim command
|
|
4
5
|
#
|
|
5
6
|
# usage: check-close-surfaces.sh [scan-root] (derives through bin/close-surfaces.sh)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=.workflow/gap-inbox.md dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-gap-inbox-neutrality — the capture surface records observations: every bullet is '- <YYYY-MM-DD> — <prose>', and no bullet's prose opens with the retired 'recurrence of `<slug>`:' verdict
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=TASK-QUEUE.md,.workflow/lesson-evidence.txt dir=one valve=none tier=precommit
|
|
2
|
+
# install: never
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-lesson-disposition — every Lessons entry present at HEAD and gone from the worktree leaves a well-formed disposition stamp in the evidence file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=CLAUDE.md,lifecycle-kit/lib/stages.sh dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-lifecycle-registration — the always-loaded agent file carries a lifecycle-kit marker block whose content byte-matches the block regenerated from the live stage machine, fail-closed when the target or a marker is missing
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=.gitattributes,lifecycle-kit/lib/stages.sh dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-merge-attrs — bidirectional parity between the derived iteration-scoped supersede set and the merge=iteration-scoped lines in .gitattributes (a smuggled ours-driver attribute on a path outside the set is the reverse-direction safety edge), plus forward-only parity for the derived union set (the gap inbox must carry merge=union; the git-native union driver is legitimate consumer usage elsewhere, so no reverse edge)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=TASK-QUEUE.md,*/SPEC.md,kit:lib/stages.sh dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-scratch-citation — no permanent surface carries a retrieval pointer into a boundary-truncated one, because that pointer resolves to nothing at the next iteration boundary
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=.claude/commands/*.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/stages/*.md dir=one valve=none tier=precommit
|
|
2
|
+
# install: never
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-shim-restatement — no binding shim shares an >=N-word normalized n-gram with the dedup corpus (CLAUDE.md + every kit's templates)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=.claude/commands/*.md,lifecycle-kit/templates/stages/*.md,lifecycle-kit/templates/lead.md,lifecycle-kit/templates/release-sweep.md,lifecycle-kit/templates/upgrade.md,lifecycle-kit/templates/consult.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
|
|
2
|
+
# install: never
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-skill-binding — every binding-shim skill names an existing template and binds exactly that template's slot set
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=TASK-QUEUE.md,.workflow/WORKFLOW-STATE.txt dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: lifecycle-kit/SPEC.md §check-stage-entry — prior-stage invocation-stamp ordering + drain-entry queue-empty + audit-trigger signal
|
|
4
5
|
set -uo pipefail
|
|
5
6
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=TASK-QUEUE.md,.workflow/WORKFLOW-STATE.txt dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-stage-evidence — stamp grammar + name-axis agreement (staleness) between the header and every stamp; cross-stage session-id distinctness
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=.claude/commands/*.md dir=one valve=none tier=precommit
|
|
2
|
+
# install: never
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-stage-skill-coverage — the configured stage set and the skills dir cover each other: every stage has a skill, every enter-stage-invoking skill names a live stage
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# graph: couples=.workflow/survey-record.md dir=one valve=none tier=precommit
|
|
2
|
+
# install: on-surface
|
|
3
|
+
# spec: lifecycle-kit/SPEC.md §check-survey-record — every survey block carries its whole witness: the four keys in order, a full-sha rev naming a real commit, a non-empty corpus and a non-empty oracle
|
|
@@ -12,7 +12,6 @@ set -uo pipefail
|
|
|
12
12
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
13
13
|
|
|
14
14
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
15
|
-
GATE="$DIR/checks/check-close-surfaces.sh"
|
|
16
15
|
SANDBOX="$(mktemp -d)"
|
|
17
16
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
18
17
|
|
|
@@ -20,7 +19,7 @@ fails=0
|
|
|
20
19
|
|
|
21
20
|
check_case() { # $1=label $2=dir $3=want-rc $4=want-substring
|
|
22
21
|
local out rc
|
|
23
|
-
out="$("$
|
|
22
|
+
out="$(gate_run check-close-surfaces "$DIR/checks" "$2" 2>&1)"; rc=$?
|
|
24
23
|
if [[ "$rc" -ne "$3" ]]; then
|
|
25
24
|
echo " FAIL [$1]: want exit $3, got $rc -- $out"; fails=$((fails + 1)); return
|
|
26
25
|
fi
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# contract: lifecycle-kit/SPEC.md §The committed gap inbox — append-only mid-iteration gap capture, close-drained; one bullet per gap below.
|
|
2
|
+
- 2026-01-02 — recurrence of `queue-slug-liveness`: the liveness scan missed a slug the drain later found by hand.
|
|
3
|
+
- 2026-01-03 — the vendored hook drifts from the manifest and nothing catches it until a later commit reds.
|
|
4
|
+
* 2026-01-04 - a bullet that abandoned the grammar entirely.
|
|
5
|
+
- the date is missing from this bullet, so nothing dates the finding.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
GAP-INBOX-NEUTRALITY: clean (3 bullet(s)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# contract: lifecycle-kit/SPEC.md §The committed gap inbox — append-only mid-iteration gap capture, close-drained; one bullet per gap below.
|
|
2
|
+
- 2026-01-02 — the vendored hook drifts from the manifest and nothing catches it until a later commit reds.
|
|
3
|
+
- 2026-01-03 — the release runbook's step 6 names a flag the workflow no longer passes. This re-files `release-channel-flag-unheld`: the same unpassed flag, observed a second time on a different tag, so the drain should judge it a recurrence rather than a fresh entry.
|
|
4
|
+
- 2026-01-04 — the drain skipped a bullet whose prose named `queue-slug-liveness` only to argue it is a *distinct* finding; recording the distinction here so the drain reads the grounds rather than the mention.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Behavioral test of
|
|
2
|
+
# Behavioral test of check-lesson-disposition — the scenarios the one
|
|
3
3
|
# good/bad pair cannot hold: (A) a malformed disposition line reds on grammar;
|
|
4
4
|
# (B) a Lessons entry still present in the worktree is not a removal, so it
|
|
5
5
|
# needs no stamp; (C) a stored prefix matches a longer lead line (prefix join).
|
|
@@ -9,7 +9,6 @@ set -uo pipefail
|
|
|
9
9
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
10
10
|
|
|
11
11
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
12
|
-
GATE="$DIR/checks/check-lesson-disposition.sh"
|
|
13
12
|
SANDBOX="$(mktemp -d)"
|
|
14
13
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
15
14
|
|
|
@@ -17,7 +16,7 @@ fails=0
|
|
|
17
16
|
|
|
18
17
|
check_case() { # $1=label $2=want-rc $3=want-substring $4=head $5=work $6=evid
|
|
19
18
|
local out rc
|
|
20
|
-
out="$("$
|
|
19
|
+
out="$(gate_run check-lesson-disposition "$DIR/checks" "$4" "$5" "$6" 2>&1)"; rc=$?
|
|
21
20
|
if [[ "$rc" -ne "$2" ]]; then
|
|
22
21
|
echo " FAIL [$1]: want exit $2, got $rc -- $out"; fails=$((fails + 1)); return
|
|
23
22
|
fi
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Behavioral test of
|
|
2
|
+
# Behavioral test of check-lifecycle-registration — the scenarios the
|
|
3
3
|
# one-pair good/bad harness cannot hold. The good/bad fixture pair covers the
|
|
4
4
|
# byte-lockstep-clean case and the stale-block case; this drives the
|
|
5
5
|
# block-absent finding, the unpaired-marker fail-closed, and the
|
|
@@ -10,7 +10,6 @@ set -uo pipefail
|
|
|
10
10
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
11
11
|
|
|
12
12
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
13
|
-
GATE="$DIR/checks/check-lifecycle-registration.sh"
|
|
14
13
|
SANDBOX="$(mktemp -d)"
|
|
15
14
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
16
15
|
|
|
@@ -18,7 +17,7 @@ fails=0
|
|
|
18
17
|
|
|
19
18
|
check_case() { # $1=label $2=sandbox-dir $3=want-rc $4=want-substring
|
|
20
19
|
local out rc
|
|
21
|
-
out="$(cd "$2" && "$
|
|
20
|
+
out="$(cd "$2" && gate_run check-lifecycle-registration "$DIR/checks" AGENT.md 2>&1)"; rc=$?
|
|
22
21
|
if [[ "$rc" -ne "$3" ]]; then
|
|
23
22
|
echo " FAIL [$1]: want exit $3, got $rc -- $out"; fails=$((fails + 1)); return
|
|
24
23
|
fi
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# Behavioral test of
|
|
2
|
+
# Behavioral test of check-merge-attrs — the scenarios the one-pair
|
|
3
3
|
# good/bad harness cannot hold. The good/bad fixture pair (run-gate-tests.sh)
|
|
4
4
|
# covers the reverse-direction safety edge (a merge=iteration-scoped attribute
|
|
5
5
|
# on a path outside the derived set); this file covers the forward direction (a
|
|
@@ -14,7 +14,6 @@ set -uo pipefail
|
|
|
14
14
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
15
15
|
|
|
16
16
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
17
|
-
GATE="$DIR/checks/check-merge-attrs.sh"
|
|
18
17
|
SANDBOX="$(mktemp -d)"
|
|
19
18
|
trap 'rm -rf "$SANDBOX"' EXIT
|
|
20
19
|
|
|
@@ -22,7 +21,7 @@ fails=0
|
|
|
22
21
|
|
|
23
22
|
check_case() { # $1=label $2=dir $3=want-rc $4=want-substring
|
|
24
23
|
local out rc
|
|
25
|
-
out="$(cd "$2" && "$
|
|
24
|
+
out="$(cd "$2" && gate_run check-merge-attrs "$DIR/checks" 2>&1)"; rc=$?
|
|
26
25
|
if [[ "$rc" -ne "$3" ]]; then
|
|
27
26
|
echo " FAIL [$1]: want exit $3, got $rc -- $out"; fails=$((fails + 1)); return
|
|
28
27
|
fi
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
point a reader into per-iteration scratch
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Queue — the three retrieval-pointer forms, none of them tagged
|
|
2
|
+
|
|
3
|
+
- **single-line-colon** — the attested `prose-profile` form, colon and path on one physical line.
|
|
4
|
+
Full finding and its two-command witness: `.workflow/survey-record.md`
|
|
5
|
+
|
|
6
|
+
- **markdown-link** — the pointer as a link target rather than a trailing token.
|
|
7
|
+
The rest of the census lives in [the survey record](.workflow/survey-record.md) and is not
|
|
8
|
+
repeated here.
|
|
9
|
+
|
|
10
|
+
- **wrapped-colon** — the live shape: the colon ends one physical line and the path opens the next,
|
|
11
|
+
so a scanner reading physical lines in isolation clears it with no tag needed.
|
|
12
|
+
The census and its two-command witness:
|
|
13
|
+
`.workflow/survey-record.md`. Everything else in this entry is prose.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SCRATCH-CITATION: clean
|