checkwright 0.23.0 → 0.25.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 +175 -13
- package/lib/common/lock.sh +7 -0
- package/lib/common/recipe.sh +1 -1
- package/lib/diff.sh +2 -0
- package/lib/init.sh +40 -16
- package/lib/uninstall.sh +2 -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 +2 -0
- package/payload/canon-kit/SPEC.md +454 -28
- package/payload/canon-kit/checks/check-amendment-queue.gate +3 -0
- package/payload/canon-kit/checks/check-amendment-update-target.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.gate +3 -0
- package/payload/canon-kit/checks/check-unmarked-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/SPEC-orphan.md +6 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/TASK-QUEUE.md +7 -2
- package/payload/canon-kit/gate-tests/check-amendment-queue/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +4 -4
- package/payload/canon-kit/gate-tests/check-knob-default-coupling.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/SPEC-wire.md +18 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/expect.txt +3 -1
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/bad/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC-wire.md +22 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/SPEC.md +17 -0
- package/payload/canon-kit/gate-tests/check-spec-embedded-source/good/widget.proto +13 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +18 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +85 -0
- package/payload/canon-kit/lib/spec.sh +16 -0
- package/payload/canon-kit/smoke/install.sh +3 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +17 -2
- package/payload/context-kit/README.md +6 -4
- package/payload/context-kit/SPEC.md +256 -76
- package/payload/context-kit/bin/always-loaded.sh +5 -21
- package/payload/context-kit/bin/env-probe.sh +2 -17
- package/payload/context-kit/checks/check-brevity.gate +3 -0
- package/payload/context-kit/checks/check-footprint-fresh.gate +3 -0
- package/payload/context-kit/checks/check-memory-off.gate +3 -0
- package/payload/context-kit/checks/check-settings-paths.gate +3 -0
- package/payload/context-kit/checks/check-settings-pins.gate +3 -0
- package/payload/context-kit/gate-tests/check-brevity.test.sh +3 -2
- package/payload/context-kit/gate-tests/check-memory-off/bad/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off/good/scripts/context-config.sh +4 -0
- package/payload/context-kit/gate-tests/check-memory-off.test.sh +18 -4
- package/payload/context-kit/gate-tests/check-settings-pins.test.sh +70 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +5 -5
- package/payload/context-kit/index-tests/toolfloor-cases.sh +5 -5
- package/payload/context-kit/lib/context.sh +56 -0
- package/payload/context-kit/lib/toolfloor.sh +1 -1
- package/payload/context-kit/smoke/agents-md.sh +16 -4
- package/payload/context-kit/smoke/install.sh +3 -2
- package/payload/context-kit/templates/session-context.sh +5 -5
- package/payload/delegation-kit/README.md +11 -1
- package/payload/delegation-kit/SPEC.md +652 -11
- package/payload/delegation-kit/bin/wait-probe.sh +184 -0
- package/payload/delegation-kit/checks/check-agent-tier-explicit.gate +3 -0
- package/payload/delegation-kit/checks/check-gate-tamper.gate +3 -0
- package/payload/delegation-kit/checks/check-rule-citation.gate +3 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/added-exemptions +5 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper/bad/expect.txt +2 -0
- package/payload/delegation-kit/gate-tests/check-gate-tamper.test.sh +108 -0
- package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +99 -0
- package/payload/delegation-kit/smoke/install.sh +21 -1
- package/payload/delegation-kit/templates/agent-execution.md +88 -4
- package/payload/delegation-kit/templates/subagent-stop-liveness.sh +56 -0
- package/payload/doctrine-kit/SPEC.md +1 -1
- package/payload/doctrine-kit/checks/check-doctrine-registration.gate +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +2 -3
- package/payload/doctrine-kit/smoke/install.sh +17 -4
- package/payload/drift-kit/README.md +2 -2
- package/payload/drift-kit/SPEC.md +71 -7
- package/payload/drift-kit/bin/stage-economics.sh +1 -1
- package/payload/drift-kit/lib/drift.sh +43 -0
- package/payload/drift-kit/smoke/install.sh +21 -14
- package/payload/evidence-kit/README.md +3 -1
- package/payload/evidence-kit/SPEC.md +160 -19
- package/payload/evidence-kit/checks/check-battery-roster.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.gate +3 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.gate +3 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +42 -2
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +4 -3
- package/payload/evidence-kit/gate-tests/check-evidence-baseline.test.sh +8 -5
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/WORKFLOW-STATE.txt +1 -1
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/scripts/evidence-config.sh +9 -0
- package/payload/evidence-kit/gate-tests/check-evidence-manifest.test.sh +6 -4
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +42 -1
- package/payload/evidence-kit/lib/evidence.sh +2 -0
- package/payload/evidence-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/README.md +17 -9
- package/payload/gate-sdk/SPEC.md +4680 -295
- package/payload/gate-sdk/bin/build-native.sh +66 -1
- package/payload/gate-sdk/bin/install-hooks.sh +14 -2
- package/payload/gate-sdk/bin/port-blockers.sh +37 -9
- package/payload/gate-sdk/bin/run-gate-tests.sh +1 -2
- package/payload/gate-sdk/bin/run-gates.sh +137 -13
- package/payload/gate-sdk/bin/upgrade-smoke.sh +21 -16
- package/payload/gate-sdk/checks/check-action-run-shell.sh +2 -1
- package/payload/gate-sdk/checks/check-commit-msg.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-subject.gate +3 -0
- package/payload/gate-sdk/checks/check-core-files.gate +3 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +1 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-assertions.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-binary-fresh.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-output.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +132 -15
- package/payload/gate-sdk/checks/check-graph.gate +3 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.gate +3 -0
- package/payload/gate-sdk/checks/check-identity.gate +3 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-enum.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.gate +3 -0
- package/payload/gate-sdk/checks/check-reads-couples.gate +3 -0
- package/payload/gate-sdk/checks/check-root-tiering.gate +3 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.gate +3 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-commit-subject.test.sh +17 -12
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/dump.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/bad/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/dump.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-exec-bit/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-exec-bit.test.sh +3 -4
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +5 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +27 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +26 -4
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/args +6 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/args +8 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/kitroot/checks/check-vendored.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-descriptor.gate +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/scripts/check-held.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks.test.sh +77 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +4 -5
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +9 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-bare.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-both.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-heldtwice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-nospec.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-twice.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-ungrounded.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +2 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kit-spec.md +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +49 -4
- package/payload/gate-sdk/gate-tests/check-graph/bad/SPEC-example-gate.md +15 -5
- package/payload/gate-sdk/gate-tests/check-graph/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-example-gate.md +27 -5
- package/payload/gate-sdk/gate-tests/check-graph/good/SPEC-second-gate.md +12 -0
- package/payload/gate-sdk/gate-tests/check-graph-cap.test.sh +5 -4
- package/payload/gate-sdk/gate-tests/check-graph-refs.test.sh +14 -12
- package/payload/gate-sdk/gate-tests/check-graph-theme.test.sh +43 -17
- package/payload/gate-sdk/gate-tests/check-graph-tree.test.sh +190 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/gh-hosts.yml +9 -0
- package/payload/gate-sdk/gate-tests/check-identity/bad/identity.conf +4 -2
- package/payload/gate-sdk/gate-tests/check-identity/bad/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/gh-hosts.yml +11 -0
- package/payload/gate-sdk/gate-tests/check-identity/good/identity.conf +5 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/scripts/gate-sdk-config.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-identity.test.sh +114 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/bad/gates.list +4 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-kit-enum/good/gates.list +5 -2
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/README.md +15 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/delta-kit/checks/check-delta-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/bad/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/args +3 -1
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/README.md +13 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/delta-kit/checks/check-delta-one.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/README.md +14 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/epsilon-kit/checks/check-eps-two.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-readme-roster/good/scripts/gate-sdk-config.sh +1 -1
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +87 -89
- package/payload/gate-sdk/gate-tests/check-template-copy-parity/good/scripts/agent-budget-guard.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-template-copy-parity.test.sh +56 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +94 -0
- package/payload/gate-sdk/gate-tests/declaration-lib-parity.test.sh +211 -0
- package/payload/gate-sdk/gate-tests/enforcement-map.test.sh +16 -15
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +94 -1
- package/payload/gate-sdk/lib/gate.sh +232 -25
- package/payload/gate-sdk/smoke/install.sh +28 -1
- package/payload/guard-kit/README.md +4 -3
- package/payload/guard-kit/SPEC.md +578 -47
- package/payload/guard-kit/bin/compare-settings-allow.sh +36 -12
- package/payload/guard-kit/bin/run-guard-tests.sh +27 -4
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +46 -1
- package/payload/guard-kit/gate-tests/git-mutation-under-producer.test.sh +105 -0
- package/payload/guard-kit/guard-tests/background-cases.tsv +14 -0
- package/payload/guard-kit/guard-tests/cases.tsv +67 -9
- package/payload/guard-kit/lib/guard.sh +361 -18
- package/payload/guard-kit/templates/bash-guard.sh +2 -0
- package/payload/guard-kit/templates/close-triage.md +10 -3
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/lifecycle-kit/README.md +3 -2
- package/payload/lifecycle-kit/SPEC.md +509 -77
- package/payload/lifecycle-kit/bin/enter-stage.sh +72 -33
- package/payload/lifecycle-kit/bin/file-gap.sh +2 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/boundary-scratch-wipe.test.sh +4 -4
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -1
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/bad/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry/good/.workflow/WORKFLOW-STATE.txt +3 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +22 -22
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/bad/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence/good/.workflow/WORKFLOW-STATE.txt +2 -2
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +120 -10
- package/payload/lifecycle-kit/gate-tests/gap-inbox-route.test.sh +123 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +11 -11
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +16 -5
- package/payload/lifecycle-kit/lib/stages.sh +5 -0
- package/payload/lifecycle-kit/smoke/install.sh +29 -15
- package/payload/lifecycle-kit/templates/lead.md +32 -0
- package/payload/lifecycle-kit/templates/stages/align.md +20 -2
- package/payload/lifecycle-kit/templates/stages/build.md +3 -3
- package/payload/lifecycle-kit/templates/stages/close.md +20 -6
- package/payload/lifecycle-kit/templates/stages/scope.md +20 -1
- package/payload/lifecycle-kit/templates/stages/spec.md +1 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +1 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +1 -1
- package/payload/queue-kit/README.md +10 -10
- package/payload/queue-kit/SPEC.md +379 -84
- package/payload/queue-kit/bin/queue-counts.sh +1 -1
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +1 -1
- package/payload/queue-kit/checks/check-queue-prose-precondition.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.gate +3 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +15 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +2 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +7 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -1
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +1 -1
- package/payload/queue-kit/gate-tests/queue-index.test.sh +55 -119
- package/payload/queue-kit/gate-tests/roadmap.test.sh +22 -12
- package/payload/queue-kit/lib/queue.sh +0 -49
- package/payload/queue-kit/smoke/install.sh +1 -1
- package/payload/site-kit/SPEC.md +41 -2
- package/payload/site-kit/checks/check-docs-cname-parity.gate +3 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/args +5 -4
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/args +6 -5
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/checks/check-sample.gate +3 -0
- package/payload/site-kit/gate-tests/check-docs-cname-parity/good/expect.txt +1 -1
- package/payload/site-kit/smoke/install.sh +1 -1
- package/payload/canon-kit/checks/check-amendment-queue.sh +0 -117
- package/payload/canon-kit/checks/check-docs-link-convention.sh +0 -79
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +0 -240
- package/payload/canon-kit/checks/check-prose-tells.sh +0 -208
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +0 -134
- package/payload/context-kit/bin/footprint.sh +0 -144
- package/payload/context-kit/checks/check-brevity.sh +0 -124
- package/payload/context-kit/checks/check-footprint-fresh.sh +0 -39
- package/payload/context-kit/checks/check-memory-off.sh +0 -113
- package/payload/context-kit/checks/check-settings-paths.sh +0 -94
- package/payload/context-kit/checks/check-settings-pins.sh +0 -111
- package/payload/context-kit/gate-tests/check-memory-off/bad/args +0 -1
- package/payload/context-kit/gate-tests/check-memory-off/good/args +0 -1
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +0 -62
- package/payload/delegation-kit/checks/check-gate-tamper.sh +0 -140
- package/payload/delegation-kit/checks/check-rule-citation.sh +0 -77
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +0 -246
- package/payload/drift-kit/bin/trajectory.sh +0 -242
- package/payload/evidence-kit/checks/check-battery-roster.sh +0 -87
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +0 -104
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +0 -105
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/bad/args +0 -3
- package/payload/evidence-kit/gate-tests/check-evidence-manifest/good/args +0 -3
- package/payload/gate-sdk/bin/enforcement-map.sh +0 -273
- package/payload/gate-sdk/checks/check-commit-msg.sh +0 -51
- package/payload/gate-sdk/checks/check-commit-subject.sh +0 -44
- package/payload/gate-sdk/checks/check-core-files.sh +0 -76
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +0 -38
- package/payload/gate-sdk/checks/check-exec-bit.sh +0 -96
- package/payload/gate-sdk/checks/check-gate-assertions.sh +0 -148
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +0 -107
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +0 -106
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +0 -85
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +0 -93
- package/payload/gate-sdk/checks/check-gate-output.sh +0 -103
- package/payload/gate-sdk/checks/check-graph.sh +0 -632
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +0 -46
- package/payload/gate-sdk/checks/check-identity.sh +0 -135
- package/payload/gate-sdk/checks/check-kit-enum.sh +0 -95
- package/payload/gate-sdk/checks/check-readme-roster.sh +0 -108
- package/payload/gate-sdk/checks/check-reads-couples.sh +0 -200
- package/payload/gate-sdk/checks/check-root-tiering.sh +0 -67
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +0 -127
- package/payload/gate-sdk/checks/check-tree-terms.sh +0 -66
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +0 -85
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/bad/args +0 -1
- package/payload/gate-sdk/gate-tests/check-identity/good/args +0 -1
- package/payload/lifecycle-kit/bin/close-surfaces.sh +0 -94
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +0 -64
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +0 -198
- package/payload/queue-kit/bin/queue-index.sh +0 -182
- package/payload/queue-kit/bin/roadmap.sh +0 -76
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +0 -64
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +0 -111
- package/payload/site-kit/checks/check-docs-cname-parity.sh +0 -81
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/{gates → scripts}/check-sample.sh +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{check-gamma.sh → scripts/check-gamma.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/bad/{gates.list → scripts/gates.list} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{check-beta.sh → scripts/check-beta.sh} +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/bad/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gate-tests → scripts/gate-tests}/check-alpha/good/.keep +0 -0
- /package/payload/gate-sdk/gate-tests/check-gate-fixture-coverage/good/{gates.list → scripts/gates.list} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/bad/{site-config.sh → scripts/site-config.sh} +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/CNAME +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree → docs}/index.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/docs → docs}/posts/2026-01-01-legacy.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{tree/pkg → pkg}/gate-tests/fixture.md +0 -0
- /package/payload/site-kit/gate-tests/check-docs-cname-parity/good/{site-config.sh → scripts/site-config.sh} +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — the iteration-boundary gap-inbox check end-to-end through a sandboxed enter-stage: one detector, two dispositions. The close-skipped branch refuses with the drain recovery and writes nothing; the post-close branch stamps, carries the bullets and leaves the inbox intact; the never-named and no-cursor edges take the post-close branch; and --simulate reports each branch with its recovery relayed.
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
5
|
+
|
|
6
|
+
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # lifecycle-kit/
|
|
7
|
+
ENTER="$DIR/bin/enter-stage.sh"
|
|
8
|
+
SANDBOX="$(mktemp -d)"
|
|
9
|
+
trap 'rm -rf "$SANDBOX"' EXIT
|
|
10
|
+
|
|
11
|
+
fails=0
|
|
12
|
+
note() { echo " FAIL [$1]: $2"; fails=$((fails + 1)); }
|
|
13
|
+
|
|
14
|
+
seed() { # $1=sandbox subdir $2=header iteration $3=state data lines (may be empty)
|
|
15
|
+
local sb="$SANDBOX/$1"
|
|
16
|
+
mkdir -p "$sb/.workflow" "$sb/scratch"
|
|
17
|
+
cat >"$sb/TASK-QUEUE.md" <<EOF
|
|
18
|
+
# TASK-QUEUE.md
|
|
19
|
+
|
|
20
|
+
## Iteration: $2
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## New Features
|
|
25
|
+
|
|
26
|
+
## Technical Debt
|
|
27
|
+
|
|
28
|
+
## Done
|
|
29
|
+
EOF
|
|
30
|
+
{
|
|
31
|
+
printf '# contract: lifecycle-kit/SPEC.md §check-stage-evidence\n\n---\n\n'
|
|
32
|
+
printf '%s' "$3"
|
|
33
|
+
} >"$sb/.workflow/WORKFLOW-STATE.txt"
|
|
34
|
+
printf '# contract: lifecycle-kit/SPEC.md §The committed gap inbox\n- 2026-06-05 — the first untriaged gap\n- 2026-06-06 — the second\n' \
|
|
35
|
+
>"$sb/.workflow/gap-inbox.md"
|
|
36
|
+
echo "$sb"
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
run_enter() { # $1=sandbox subdir, rest=argv
|
|
40
|
+
( cd "$1" && env GATE_SDK_TMP_DIR=scratch \
|
|
41
|
+
LIFECYCLE_KIT_SESSION_ID=deadbeef03 \
|
|
42
|
+
bash "$ENTER" "${@:2}" 2>&1 )
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
CLOSED='demo-iteration scope aaaaaaaa 2026-06-01 none
|
|
46
|
+
demo-iteration close dddddddd 2026-06-04 none
|
|
47
|
+
'
|
|
48
|
+
SKIPPED='demo-iteration scope aaaaaaaa 2026-06-01 none
|
|
49
|
+
demo-iteration build bbbbbbbb 2026-06-02 none
|
|
50
|
+
'
|
|
51
|
+
|
|
52
|
+
# --- close-skipped: refuse with the drain recovery, write nothing ---
|
|
53
|
+
sk="$(seed skipped demo-iteration "$SKIPPED")"
|
|
54
|
+
cp "$sk/.workflow/WORKFLOW-STATE.txt" "$sk/s.before"
|
|
55
|
+
cp "$sk/TASK-QUEUE.md" "$sk/q.before"
|
|
56
|
+
out="$(run_enter "$sk" scope)"; rc=$?
|
|
57
|
+
[[ "$rc" -eq 1 ]] || note skipped-refuses "want exit 1 on a close-skipped boundary, got $rc -- $out"
|
|
58
|
+
grep -qF 'refused' <<<"$out" || note skipped-verdict "the refusal does not say it refused: $out"
|
|
59
|
+
grep -qF "run the closing stage's gap-drain step" <<<"$out" \
|
|
60
|
+
|| note skipped-recovery "the close-skipped refusal withheld the drain recovery: $out"
|
|
61
|
+
grep -qF 'disposition them here' <<<"$out" && note skipped-wrong-recovery "the close-skipped refusal offered the post-close recovery: $out"
|
|
62
|
+
cmp -s "$sk/s.before" "$sk/.workflow/WORKFLOW-STATE.txt" || note skipped-state "a refused entry wrote the state file"
|
|
63
|
+
cmp -s "$sk/q.before" "$sk/TASK-QUEUE.md" || note skipped-queue "a refused entry wrote the queue"
|
|
64
|
+
|
|
65
|
+
# --- close-skipped under --simulate: the branch and its recovery both relay ---
|
|
66
|
+
out="$(run_enter "$sk" --simulate scope)"; rc=$?
|
|
67
|
+
[[ "$rc" -eq 1 ]] || note skipped-sim-rc "want exit 1 from --simulate on a close-skipped boundary, got $rc -- $out"
|
|
68
|
+
grep -qF 'would be refused' <<<"$out" || note skipped-sim-verdict "--simulate did not report a would-be refusal: $out"
|
|
69
|
+
grep -qF "enter-stage (simulate): help:" <<<"$out" \
|
|
70
|
+
|| note skipped-sim-help "--simulate relayed the refusal without its recovery: $out"
|
|
71
|
+
cmp -s "$sk/s.before" "$sk/.workflow/WORKFLOW-STATE.txt" || note skipped-sim-write "--simulate wrote the state file"
|
|
72
|
+
|
|
73
|
+
# --- post-close: admit, stamp, carry the bullets, leave the inbox alone ---
|
|
74
|
+
pc="$(seed postclose demo-iteration "$CLOSED")"
|
|
75
|
+
out="$(run_enter "$pc" scope)"; rc=$?
|
|
76
|
+
[[ "$rc" -eq 0 ]] || note postclose-admits "want exit 0 on a post-close boundary, got $rc -- $out"
|
|
77
|
+
grep -qF 'intake' <<<"$out" || note postclose-advisory "the admission printed no intake advisory: $out"
|
|
78
|
+
grep -qF '2026-06-05' <<<"$out" || note postclose-names "the advisory did not name the carried bullet: $out"
|
|
79
|
+
grep -qF '2026-06-06' <<<"$out" || note postclose-names-all "the advisory did not name every carried bullet: $out"
|
|
80
|
+
grep -qF 'refused' <<<"$out" && note postclose-verdict "the admission reported a refusal: $out"
|
|
81
|
+
grep -q '^— scope deadbeef 2026' "$pc/.workflow/WORKFLOW-STATE.txt" \
|
|
82
|
+
|| note postclose-stamp "the admitted entry did not stamp"
|
|
83
|
+
grep -q '^## Iteration: —$' "$pc/TASK-QUEUE.md" || note postclose-reset "the admitted entry did not reset the header"
|
|
84
|
+
[[ "$(grep -c '^- ' "$pc/.workflow/gap-inbox.md")" -eq 2 ]] \
|
|
85
|
+
|| note postclose-inbox "the admitted entry consumed or reshaped the carried bullets — the entering session dispositions them"
|
|
86
|
+
|
|
87
|
+
# --- post-close under --simulate: reports the branch it would take, and writes nothing ---
|
|
88
|
+
sm="$(seed postclose-sim demo-iteration "$CLOSED")"
|
|
89
|
+
cp "$sm/.workflow/WORKFLOW-STATE.txt" "$sm/s.before"
|
|
90
|
+
out="$(run_enter "$sm" --simulate scope)"; rc=$?
|
|
91
|
+
[[ "$rc" -eq 0 ]] || note postclose-sim-rc "want exit 0 from --simulate on a post-close boundary, got $rc -- $out"
|
|
92
|
+
grep -qF 'would not refuse' <<<"$out" || note postclose-sim-branch "--simulate did not report the admitting branch: $out"
|
|
93
|
+
grep -qF 'would carry 2 bullet(s)' <<<"$out" \
|
|
94
|
+
|| note postclose-sim-count "--simulate did not name how many bullets it would carry: $out"
|
|
95
|
+
cmp -s "$sm/s.before" "$sm/.workflow/WORKFLOW-STATE.txt" || note postclose-sim-write "--simulate wrote the state file"
|
|
96
|
+
|
|
97
|
+
# --- the never-named closing iteration takes the post-close branch ---
|
|
98
|
+
un="$(seed unnamed '—' '— scope aaaaaaaa 2026-06-01 none
|
|
99
|
+
')"
|
|
100
|
+
out="$(run_enter "$un" scope)"; rc=$?
|
|
101
|
+
[[ "$rc" -eq 0 ]] || note unnamed-admits "a never-named closing iteration should not refuse, got $rc -- $out"
|
|
102
|
+
grep -qF 'intake' <<<"$out" || note unnamed-advisory "the never-named edge printed no intake advisory: $out"
|
|
103
|
+
|
|
104
|
+
# --- no cursor at all (a fresh consumer's first boundary) takes it too ---
|
|
105
|
+
nc="$(seed nocursor fresh-iteration '')"
|
|
106
|
+
out="$(run_enter "$nc" scope)"; rc=$?
|
|
107
|
+
[[ "$rc" -eq 0 ]] || note nocursor-admits "a boundary with no cursor should not refuse, got $rc -- $out"
|
|
108
|
+
grep -qF 'intake' <<<"$out" || note nocursor-advisory "the no-cursor edge printed no intake advisory: $out"
|
|
109
|
+
|
|
110
|
+
# --- an empty inbox is silent on both branches ---
|
|
111
|
+
ei_n=0
|
|
112
|
+
for st in "$CLOSED" "$SKIPPED"; do
|
|
113
|
+
ei_n=$((ei_n + 1))
|
|
114
|
+
ei="$(seed "empty-$ei_n" demo-iteration "$st")"
|
|
115
|
+
printf '# contract: lifecycle-kit/SPEC.md §The committed gap inbox\n' >"$ei/.workflow/gap-inbox.md"
|
|
116
|
+
out="$(run_enter "$ei" scope)"; rc=$?
|
|
117
|
+
[[ "$rc" -eq 0 ]] || note empty-inbox "a header-only inbox should not refuse either branch, got $rc -- $out"
|
|
118
|
+
grep -qF 'gap-inbox.md holds' <<<"$out" && note empty-advisory "a header-only inbox printed a carried-bullet advisory: $out"
|
|
119
|
+
done
|
|
120
|
+
|
|
121
|
+
[[ "$fails" -eq 0 ]] || { echo "gap-inbox-route.test: $fails assertion(s) failed"; exit 1; }
|
|
122
|
+
echo "gap-inbox-route.test: clean (close-skipped refuses with the drain recovery and writes nothing; post-close stamps and carries; both edges take the post-close branch; --simulate reports each branch with its recovery)"
|
|
123
|
+
exit 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — --rename end-to-end through a sandboxed enter-stage: both surfaces rewritten in one motion, the columns-2-
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — --rename end-to-end through a sandboxed enter-stage: both surfaces rewritten in one motion, the columns-2-to-last witness proved rather than assumed, the half-landed hand-rename healed, every refusal writing nothing, the idempotent no-op, and --simulate --rename writing nothing while prefixing every line
|
|
3
3
|
set -uo pipefail
|
|
4
4
|
source "$(dirname "${BASH_SOURCE[0]}")/../../gate-sdk/lib/test-hermetic.sh"
|
|
5
5
|
|
|
@@ -30,9 +30,9 @@ EOF
|
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
|
-
$col1 scope aaaaaaaa 2026-06-01
|
|
34
|
-
$col1 build bbbbbbbb 2026-06-02
|
|
35
|
-
$col1 validate cccccccc 2026-06-03
|
|
33
|
+
$col1 scope aaaaaaaa 2026-06-01 none
|
|
34
|
+
$col1 build bbbbbbbb 2026-06-02 none
|
|
35
|
+
$col1 validate cccccccc 2026-06-03 none
|
|
36
36
|
EOF
|
|
37
37
|
cp "$sb/TASK-QUEUE.md" "$sb/queue.before"
|
|
38
38
|
cp "$sb/.workflow/WORKFLOW-STATE.txt" "$sb/state.before"
|
|
@@ -43,25 +43,25 @@ run_rename() { # $1=sandbox subdir, rest = argv after the tool name
|
|
|
43
43
|
( cd "$sb" && env GATE_SDK_TMP_DIR="$sb/scratch" bash "$ENTER" "$@" 2>&1 )
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
fields_2_to_nf() { awk '/^---[[:space:]]*$/ { f = 1; next } f && NF { s = ""; for (i = 2; i <= NF; i++) s = s (i > 2 ? " " : "") $i; print s }' "$1"; }
|
|
47
47
|
|
|
48
48
|
unchanged() { # $1=sandbox subdir $2=assertion label
|
|
49
49
|
cmp -s "$1/queue.before" "$1/TASK-QUEUE.md" || note "$2" "the queue was written"
|
|
50
50
|
cmp -s "$1/state.before" "$1/.workflow/WORKFLOW-STATE.txt" || note "$2" "the state file was written"
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
# --- both surfaces rewritten in one motion, columns 2
|
|
53
|
+
# --- both surfaces rewritten in one motion, columns 2 through NF intact ---
|
|
54
54
|
ok="$SANDBOX/ok"
|
|
55
55
|
seed "$ok" old-name old-name
|
|
56
|
-
pre="$(
|
|
56
|
+
pre="$(fields_2_to_nf "$ok/state.before")"
|
|
57
57
|
out="$(run_rename "$ok" --rename new-name)"; rc=$?
|
|
58
58
|
[[ "$rc" -eq 0 ]] || note write "want exit 0, got $rc -- $out"
|
|
59
59
|
grep -q '^## Iteration: new-name$' "$ok/TASK-QUEUE.md" || note write-header "the queue header was not renamed"
|
|
60
60
|
[[ "$(awk '/^---[[:space:]]*$/ { f = 1; next } f && NF && $1 != "new-name" { c++ } END { print c + 0 }' \
|
|
61
61
|
"$ok/.workflow/WORKFLOW-STATE.txt")" == 0 ]] \
|
|
62
62
|
|| note write-stamps "a stamp's column 1 was left at the old name"
|
|
63
|
-
[[ "$pre" == "$(
|
|
64
|
-
|| note witness "columns 2
|
|
63
|
+
[[ "$pre" == "$(fields_2_to_nf "$ok/.workflow/WORKFLOW-STATE.txt")" ]] \
|
|
64
|
+
|| note witness "columns 2 through NF (stage, session id, date, head) moved under the rename"
|
|
65
65
|
[[ "$(wc -l <"$ok/state.before")" == "$(wc -l <"$ok/.workflow/WORKFLOW-STATE.txt")" ]] \
|
|
66
66
|
|| note witness-shape "the rename changed the state file's line count"
|
|
67
67
|
grep -qF 'commit' <<<"$out" || note report "the report does not tell the caller to commit both files: $out"
|
|
@@ -109,7 +109,7 @@ grep -qF 'boundary reset' <<<"$out" \
|
|
|
109
109
|
# --- a pre-flight refusal writes nothing: a stamp naming a stage the machine does not know ---
|
|
110
110
|
pf="$SANDBOX/preflight"
|
|
111
111
|
seed "$pf" old-name old-name
|
|
112
|
-
printf 'old-name notastage eeeeeeee 2026-06-05\n' >>"$pf/.workflow/WORKFLOW-STATE.txt"
|
|
112
|
+
printf 'old-name notastage eeeeeeee 2026-06-05 none\n' >>"$pf/.workflow/WORKFLOW-STATE.txt"
|
|
113
113
|
cp "$pf/.workflow/WORKFLOW-STATE.txt" "$pf/state.before"
|
|
114
114
|
out="$(run_rename "$pf" --rename new-name)"; rc=$?
|
|
115
115
|
[[ "$rc" -eq 1 ]] || note preflight "a check-stage-evidence refusal: want exit 1, got $rc -- $out"
|
|
@@ -138,5 +138,5 @@ fi
|
|
|
138
138
|
unchanged "$simn" simulate-noop-write
|
|
139
139
|
|
|
140
140
|
[[ "$fails" -eq 0 ]] || { echo "rename-iteration.test: $fails assertion(s) failed"; exit 1; }
|
|
141
|
-
echo "rename-iteration.test: clean (--rename writes both surfaces with columns 2
|
|
141
|
+
echo "rename-iteration.test: clean (--rename writes both surfaces with columns 2 through NF proved unchanged, heals a half-landed rename from either side, no-ops idempotently, refuses empty/non-slug/placeholder/arity and a red pre-flight with nothing written, and simulates read-only under its prefix)"
|
|
142
142
|
exit 0
|
|
@@ -32,10 +32,10 @@ EOF
|
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
demo-iteration scope aaaaaaaa 2026-06-01
|
|
36
|
-
demo-iteration build bbbbbbbb 2026-06-02
|
|
37
|
-
demo-iteration validate cccccccc 2026-06-03
|
|
38
|
-
demo-iteration close dddddddd 2026-06-04
|
|
35
|
+
demo-iteration scope aaaaaaaa 2026-06-01 none
|
|
36
|
+
demo-iteration build bbbbbbbb 2026-06-02 none
|
|
37
|
+
demo-iteration validate cccccccc 2026-06-03 none
|
|
38
|
+
demo-iteration close dddddddd 2026-06-04 none
|
|
39
39
|
EOF
|
|
40
40
|
cat >"$sb/.workflow/survey-record.md" <<'EOF'
|
|
41
41
|
# contract: lifecycle-kit/SPEC.md §The survey record — carried surveys.
|
|
@@ -89,9 +89,20 @@ grep -qF '.workflow/survey-record.md' <<<"$out" \
|
|
|
89
89
|
grep -qF 'which gates meet every port criterion?' <<<"$out" \
|
|
90
90
|
&& note boundary-headings "the boundary entry printed headings it had just discarded: $out"
|
|
91
91
|
|
|
92
|
-
# --- the gap inbox still refuses, so the asymmetry is real and not an
|
|
92
|
+
# --- the gap inbox still refuses on its close-skipped branch, so the asymmetry is real and not an
|
|
93
|
+
# --- accident: a survey owes nobody a disposition, an undrained gap owes one to a stage that can
|
|
94
|
+
# --- still run. (The post-close branch admits instead, and gap-inbox-route.test.sh owns that.)
|
|
93
95
|
gap="$SANDBOX/gap"
|
|
94
96
|
seed "$gap"
|
|
97
|
+
cat >"$gap/.workflow/WORKFLOW-STATE.txt" <<'EOF'
|
|
98
|
+
# contract: lifecycle-kit/SPEC.md §check-stage-evidence
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
demo-iteration scope aaaaaaaa 2026-06-01 none
|
|
103
|
+
demo-iteration build bbbbbbbb 2026-06-02 none
|
|
104
|
+
demo-iteration validate cccccccc 2026-06-03 none
|
|
105
|
+
EOF
|
|
95
106
|
printf '# contract: lifecycle-kit/SPEC.md §The committed gap inbox\n- 2026-06-05 — an untriaged gap\n' \
|
|
96
107
|
>"$gap/.workflow/gap-inbox.md"
|
|
97
108
|
out="$(run_enter "$gap" scope)"; rc=$?
|
|
@@ -87,6 +87,11 @@ lifecycle_current_stage() {
|
|
|
87
87
|
awk '{ print $2 }' <<<"$last"
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
# spec: lifecycle-kit/SPEC.md §lib/stages.sh — the closing-stage predicate: success when the cursor equals the last configured stage. Hoisted because two tools must agree by construction rather than by lookalike — the filer warned at capture that no stage is left to drain a bullet is warned by the same test that later admits it at the boundary.
|
|
91
|
+
lifecycle_closing_stage_reached() {
|
|
92
|
+
[[ "$(lifecycle_current_stage "$@")" == "${LIFECYCLE_KIT_STAGES[-1]}" ]]
|
|
93
|
+
}
|
|
94
|
+
|
|
90
95
|
lifecycle_stage_known() {
|
|
91
96
|
local s
|
|
92
97
|
for s in "${LIFECYCLE_KIT_STAGES[@]}"; do
|
|
@@ -60,7 +60,7 @@ cat > .workflow/WORKFLOW-STATE.txt <<EOF
|
|
|
60
60
|
|
|
61
61
|
---
|
|
62
62
|
|
|
63
|
-
— scope smoke001 $(date +%F)
|
|
63
|
+
— scope smoke001 $(date +%F) $(git rev-parse --short HEAD)
|
|
64
64
|
EOF
|
|
65
65
|
|
|
66
66
|
# spec: lifecycle-kit/SPEC.md §check-survey-record — file a real block off the seed commit so the
|
|
@@ -76,7 +76,7 @@ bash "$SMOKE_KIT_ROOT/bin/file-survey.sh" \
|
|
|
76
76
|
bash "$SMOKE_KIT_ROOT/bin/install-lifecycle.sh" >/dev/null
|
|
77
77
|
|
|
78
78
|
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
79
|
-
bash "$SDK/
|
|
79
|
+
bash "$SDK/bin/run-gates.sh" --emit graph > scripts/CHECK-GRAPH.html
|
|
80
80
|
|
|
81
81
|
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — exercise enter-stage end-to-end under .tmp (advisory tool, no fixture pair)
|
|
82
82
|
es="$PWD/.tmp/enter-stage-smoke"
|
|
@@ -98,7 +98,7 @@ cat > "$es/.workflow/WORKFLOW-STATE.txt" <<'EOF'
|
|
|
98
98
|
|
|
99
99
|
---
|
|
100
100
|
|
|
101
|
-
prev-iter close ffffffff 2020-01-01
|
|
101
|
+
prev-iter close ffffffff 2020-01-01 none
|
|
102
102
|
EOF
|
|
103
103
|
|
|
104
104
|
es_run() {
|
|
@@ -113,15 +113,15 @@ esq="$es/TASK-QUEUE.md"; ess="$es/.workflow/WORKFLOW-STATE.txt"; d="$(date +%F)"
|
|
|
113
113
|
|
|
114
114
|
es_run scope >/dev/null
|
|
115
115
|
grep -q "^## Iteration: —\$" "$esq" || { echo "smoke(enter-stage): scope header wrong" >&2; exit 1; }
|
|
116
|
-
grep -
|
|
116
|
+
grep -Eq "^— scope aabbccdd $d ([0-9a-f]{7,40}|none)\$" "$ess" || { echo "smoke(enter-stage): scope stamp missing or carries no head field" >&2; exit 1; }
|
|
117
117
|
if grep -q 'prev-iter' "$ess"; then echo "smoke(enter-stage): state not truncated on reset" >&2; exit 1; fi
|
|
118
118
|
|
|
119
119
|
# spec: lifecycle-kit/SPEC.md §The stamp protocol — a non-boundary entry writes the evidence file ONLY: the cursor advances by the appended stamp and the queue is byte-identical afterwards
|
|
120
120
|
cp "$esq" "$es/q.before"
|
|
121
121
|
es_run align >/dev/null
|
|
122
122
|
cmp -s "$es/q.before" "$esq" || { echo "smoke(enter-stage): a non-boundary entry wrote the queue" >&2; exit 1; }
|
|
123
|
-
grep -
|
|
124
|
-
grep -
|
|
123
|
+
grep -Eq "^— align aabbccdd $d ([0-9a-f]{7,40}|none)\$" "$ess" || { echo "smoke(enter-stage): align stamp missing or carries no head field" >&2; exit 1; }
|
|
124
|
+
grep -Eq "^— scope aabbccdd $d ([0-9a-f]{7,40}|none)\$" "$ess" || { echo "smoke(enter-stage): scope stamp lost on append" >&2; exit 1; }
|
|
125
125
|
[[ "$(awk '/^---[[:space:]]*$/{f=1;next} f && NF {l=$2} END{print l}' "$ess")" == align ]] \
|
|
126
126
|
|| { echo "smoke(enter-stage): cursor did not advance to align" >&2; exit 1; }
|
|
127
127
|
|
|
@@ -153,7 +153,7 @@ cat > "$ess" <<EOF
|
|
|
153
153
|
|
|
154
154
|
---
|
|
155
155
|
|
|
156
|
-
pf-iter build aabbccdd $d
|
|
156
|
+
pf-iter build aabbccdd $d none
|
|
157
157
|
EOF
|
|
158
158
|
cat > "$es/preflight-stub.sh" <<'STUB'
|
|
159
159
|
#!/usr/bin/env bash
|
|
@@ -184,7 +184,7 @@ touch "$es/preflight-ok"
|
|
|
184
184
|
es_pf_run validate >/dev/null || { echo "smoke(enter-stage): green preflight should let the entry through" >&2; exit 1; }
|
|
185
185
|
[[ "$(awk '/^---[[:space:]]*$/{f=1;next} f && NF {l=$2} END{print l}' "$ess")" == validate ]] \
|
|
186
186
|
|| { echo "smoke(enter-stage): green preflight did not advance the cursor to validate" >&2; exit 1; }
|
|
187
|
-
grep -
|
|
187
|
+
grep -Eq "^pf-iter validate aabbccdd $d ([0-9a-f]{7,40}|none)\$" "$ess" || { echo "smoke(enter-stage): green preflight did not stamp" >&2; exit 1; }
|
|
188
188
|
|
|
189
189
|
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — --simulate: would-no-op, would-pass, would-refuse; read-only and prefix-marked in all three
|
|
190
190
|
cp "$esq" "$es/q.before"; cp "$ess" "$es/s.before"
|
|
@@ -334,7 +334,7 @@ EOF
|
|
|
334
334
|
|
|
335
335
|
---
|
|
336
336
|
|
|
337
|
-
$1 close aabbccdd $d
|
|
337
|
+
$1 close aabbccdd $d none
|
|
338
338
|
EOF
|
|
339
339
|
}
|
|
340
340
|
cat > "$br/stages.sh" <<STAGES
|
|
@@ -373,7 +373,7 @@ write_br_fixture — # (d)
|
|
|
373
373
|
printf '# contract\n' > "$brd"
|
|
374
374
|
br_run scope >/dev/null || { echo "smoke(enter-stage): boundary-require should skip a never-named closing iteration" >&2; exit 1; }
|
|
375
375
|
|
|
376
|
-
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — the iteration-boundary
|
|
376
|
+
# spec: lifecycle-kit/SPEC.md §The committed gap inbox — the iteration-boundary gap-inbox check: one detector, two dispositions. A close-skipped boundary refuses (the Lessons-refusal contract, nothing written); a post-close one admits and carries the bullets; an empty (header-only) inbox passes either way.
|
|
377
377
|
gp="$es/gap-inbox"; mkdir -p "$gp/.workflow"
|
|
378
378
|
gpq="$gp/TASK-QUEUE.md"; gps="$gp/.workflow/WORKFLOW-STATE.txt"; gpi="$gp/.workflow/gap-inbox.md"
|
|
379
379
|
cat > "$gpq" <<EOF
|
|
@@ -388,13 +388,17 @@ cat > "$gpq" <<EOF
|
|
|
388
388
|
## Done
|
|
389
389
|
## Lessons Learned
|
|
390
390
|
EOF
|
|
391
|
-
|
|
391
|
+
gp_seed_state() { # $1 = the last stage the closing iteration reached
|
|
392
|
+
cat > "$gps" <<EOF
|
|
392
393
|
# contract
|
|
393
394
|
|
|
394
395
|
---
|
|
395
396
|
|
|
396
|
-
gap-iter
|
|
397
|
+
gap-iter scope aabbccdd $d none
|
|
398
|
+
gap-iter $1 aabbccdd $d none
|
|
397
399
|
EOF
|
|
400
|
+
}
|
|
401
|
+
gp_seed_state build
|
|
398
402
|
cat > "$gp/stages.sh" <<STAGES
|
|
399
403
|
# shellcheck shell=bash
|
|
400
404
|
LIFECYCLE_KIT_GAP_INBOX_FILE=$gpi
|
|
@@ -408,12 +412,22 @@ gp_run() {
|
|
|
408
412
|
LIFECYCLE_KIT_CONFIG_FILE="$gp/stages.sh" \
|
|
409
413
|
bash "$SMOKE_KIT_ROOT/bin/enter-stage.sh" "$@"
|
|
410
414
|
}
|
|
411
|
-
printf '# contract: gap inbox\n- 2026-07-17 — an untriaged gap bullet\n' > "$gpi" # (a) non-empty inbox → refuse, nothing written
|
|
415
|
+
printf '# contract: gap inbox\n- 2026-07-17 — an untriaged gap bullet\n' > "$gpi" # (a) close-skipped + non-empty inbox → refuse, nothing written
|
|
412
416
|
cp "$gpq" "$gp/q.before"; cp "$gps" "$gp/s.before"
|
|
413
|
-
if gp_run scope >/dev/null 2>&1; then echo "smoke(enter-stage): should refuse a boundary entry while the gap inbox holds bullets" >&2; exit 1; fi
|
|
417
|
+
if gp_run scope >/dev/null 2>&1; then echo "smoke(enter-stage): should refuse a boundary entry while the gap inbox holds bullets and the closing stage was skipped" >&2; exit 1; fi
|
|
414
418
|
cmp -s "$gp/s.before" "$gps" || { echo "smoke(enter-stage): wrote state on a gap-inbox refusal" >&2; exit 1; }
|
|
415
419
|
cmp -s "$gp/q.before" "$gpq" || { echo "smoke(enter-stage): wrote queue on a gap-inbox refusal" >&2; exit 1; }
|
|
416
|
-
|
|
420
|
+
gp_sim="$(gp_run --simulate scope 2>&1)" || true
|
|
421
|
+
grep -q 'would be refused' <<<"$gp_sim" || { echo "smoke(enter-stage): --simulate did not relay the close-skipped gap-inbox refusal -- $gp_sim" >&2; exit 1; }
|
|
422
|
+
grep -q 'help:' <<<"$gp_sim" || { echo "smoke(enter-stage): --simulate relayed a refusal without its recovery -- $gp_sim" >&2; exit 1; }
|
|
423
|
+
gp_seed_state close # (b) post-close + non-empty inbox → admit, carrying the bullets
|
|
424
|
+
gp_out="$(gp_run scope 2>&1)" || { echo "smoke(enter-stage): a post-close gap inbox should not refuse a boundary entry -- $gp_out" >&2; exit 1; }
|
|
425
|
+
grep -q 'intake' <<<"$gp_out" || { echo "smoke(enter-stage): the post-close admission printed no carried-bullet advisory -- $gp_out" >&2; exit 1; }
|
|
426
|
+
grep -q '2026-07-17' <<<"$gp_out" || { echo "smoke(enter-stage): the post-close advisory did not name the carried bullet -- $gp_out" >&2; exit 1; }
|
|
427
|
+
grep -q '^- 2026-07-17' "$gpi" || { echo "smoke(enter-stage): the admitted entry consumed the carried bullet" >&2; exit 1; }
|
|
428
|
+
grep -q "^## Iteration: —\$" "$gpq" || { echo "smoke(enter-stage): the post-close admission did not reset the header" >&2; exit 1; }
|
|
429
|
+
printf '# contract: gap inbox\n' > "$gpi" # (c) header-only inbox → boundary entry proceeds
|
|
430
|
+
gp_seed_state close
|
|
417
431
|
gp_run scope >/dev/null || { echo "smoke(enter-stage): a header-only gap inbox should not refuse a boundary entry" >&2; exit 1; }
|
|
418
432
|
grep -q "^## Iteration: —\$" "$gpq" || { echo "smoke(enter-stage): gap-inbox pass did not reset the header" >&2; exit 1; }
|
|
419
433
|
|
|
@@ -84,6 +84,18 @@ still-running `run-validate`. Every check passed mid-write, because the producer
|
|
|
84
84
|
commits its evidence and keeps going, so the terminal commit existing is fully
|
|
85
85
|
compatible with the process still executing.
|
|
86
86
|
|
|
87
|
+
**When the notification does not arrive, no single read distinguishes a
|
|
88
|
+
finished-but-unreported session from a live one.** Delivery can fail, and the
|
|
89
|
+
rule above then has no fallback — while the artifact reads a lead reaches for
|
|
90
|
+
next are the same ones it just refused. What recovers it is two signals and a
|
|
91
|
+
question: the session's absence from the harness's running-agent roster, a
|
|
92
|
+
`DONE` marker in its journal, and — decisive whenever either is ambiguous —
|
|
93
|
+
asking the session itself, which §A running session is asked, never instructed
|
|
94
|
+
already sanctions as a question rather than a command. The `DONE` check carries
|
|
95
|
+
a sharp edge worth stating rather than rediscovering: it is valid only as the
|
|
96
|
+
journal's **last line**, so any out-of-order append silently invalidates it
|
|
97
|
+
while leaving the marker plainly visible.
|
|
98
|
+
|
|
87
99
|
**Any prompt-answered signal is a start signal, never a completion one.** The
|
|
88
100
|
same lead read an operator's note about having just answered a stalled permission
|
|
89
101
|
prompt as the stage being finished. It means the opposite: an approval prompt
|
|
@@ -196,6 +208,14 @@ resumed, the lead answers from the governed surfaces the rulings already live
|
|
|
196
208
|
in — the amendments, the queue entries — and a question not derivable there
|
|
197
209
|
goes to the operator, never substituted by the lead's own judgment.
|
|
198
210
|
|
|
211
|
+
**A split ask arrives with its own test already applied.** A session the queue's
|
|
212
|
+
per-entry cap blocks may ask to split the entry, and that ask carries the
|
|
213
|
+
session's statement of which side of `queue-kit/SPEC.md`
|
|
214
|
+
§check-queue-entry-budget's split test its entry falls on. The lead rules against
|
|
215
|
+
that test rather than re-deriving one; the authorization stays the lead's, on
|
|
216
|
+
that section's own ground — a new entry is a new unit competing for the scope
|
|
217
|
+
attention that ranks both.
|
|
218
|
+
|
|
199
219
|
**One class the lead never rules, under either posture.** Reversing, demoting
|
|
200
220
|
or re-scoping a **recorded operator ruling** or a stated objective is
|
|
201
221
|
operator-class: the lead relays it, however well-grounded the escalating
|
|
@@ -302,6 +322,18 @@ therefore not conflict-avoidance; it silently spends the per-session audit trail
|
|
|
302
322
|
the stamp exists to provide, and no later session can repair it, because
|
|
303
323
|
backdating a stamp falsifies the trail rather than restoring it.
|
|
304
324
|
|
|
325
|
+
**A recurrence you judge is still yours to record, and the gap inbox is how.**
|
|
326
|
+
Every session that judges a recurrence is obliged to stamp the date onto that
|
|
327
|
+
entry's declaration (lifecycle-kit/SPEC.md §The committed gap inbox) — and the
|
|
328
|
+
no-queue-write rule above leaves you no way to stamp one. You discharge the
|
|
329
|
+
obligation by **filing the judgment and its grounds into a gap bullet**
|
|
330
|
+
(`bin/file-gap.sh`): the session that may write the queue then stamps from your
|
|
331
|
+
prose, exactly as the drain stamps from a filer's. Doing this at the boundary is
|
|
332
|
+
safe — the entry admits a bullet the closing stage could not have drained and
|
|
333
|
+
carries it into the entering session's intake, so a boundary-filed judgment
|
|
334
|
+
reaches a judge rather than a refusal. What you must not do is leave the judgment
|
|
335
|
+
unrecorded on the ground that you cannot stamp it.
|
|
336
|
+
|
|
305
337
|
An answer that
|
|
306
338
|
amounts to a design ruling is landed **by the stage session**, in the governed
|
|
307
339
|
surface it belongs to (the amendment, the queue entry), *before* the session
|
|
@@ -4,7 +4,7 @@ battery>* as one gate. Exit condition: no unresolved conflicts or terminology
|
|
|
4
4
|
drift.
|
|
5
5
|
|
|
6
6
|
**First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh
|
|
7
|
-
align`: it appends `<iteration> align <session-id> <date>` to
|
|
7
|
+
align`: it appends `<iteration> align <session-id> <date> <head>` to
|
|
8
8
|
`.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp
|
|
9
9
|
proves invocation, not faithful execution), reading `<session-id>` from
|
|
10
10
|
`bin/session-id.sh`
|
|
@@ -31,7 +31,7 @@ rule). The arriving stage stamps its own entry as its first step
|
|
|
31
31
|
Trigger 3 is mechanized at build entry: `check-stage-entry` assertion C blocks
|
|
32
32
|
the build entry when the on-disk amendments carry a cross-component signal and
|
|
33
33
|
no `<iter> align` stamp exists. To skip the audit anyway, the user must
|
|
34
|
-
explicitly rule it unwarranted and a `<iter> align-waived <session> <date>`
|
|
34
|
+
explicitly rule it unwarranted and a `<iter> align-waived <session> <date> <head>`
|
|
35
35
|
line is recorded in `.workflow/WORKFLOW-STATE.txt` — never self-issued by the
|
|
36
36
|
entering build session (lifecycle-kit/SPEC.md §check-stage-entry).
|
|
37
37
|
|
|
@@ -62,6 +62,24 @@ deliverable, so check it against what the deltas actually mandate rather than
|
|
|
62
62
|
against the sentence it heads. And every `## Existing sections updated` entry
|
|
63
63
|
must name the delta that owns it (canon-kit/templates/SPEC-amendment.md).
|
|
64
64
|
|
|
65
|
+
**A grammar the amendment states about a tool's behaviour is run against that
|
|
66
|
+
tool.** An amendment modelling something outside itself — a filter language, an
|
|
67
|
+
option parser, a file format — is a *claim about a program*, and reading it is
|
|
68
|
+
not testing it. One invocation settles it. Attested: an amendment specified a
|
|
69
|
+
pin-path grammar admitting a leading bracket step, the gate refused any path not
|
|
70
|
+
opening with `.`, and the tool being modelled read a leading `["k"]` as an array
|
|
71
|
+
literal rather than an index — a three-way disagreement that passed authoring and
|
|
72
|
+
this audit and was caught by the first differential run at build.
|
|
73
|
+
|
|
74
|
+
**The `## Existing sections updated` roster is checked from the tree, not from
|
|
75
|
+
the amendment.** A roster entry with no delta is visible on the document; a
|
|
76
|
+
*surface with no entry* is not, because the evidence is in the tree. When a delta
|
|
77
|
+
replaces a literal — a version, a floor, a policy phrase — grep the tree for the
|
|
78
|
+
old one and reconcile every survivor against the roster. Attested twice in one
|
|
79
|
+
iteration, both times a documentation surface reading as commentary that the
|
|
80
|
+
grep found and the amendment did not name (`amendment-roster-omission-detection`
|
|
81
|
+
owns whether any of this is gateable).
|
|
82
|
+
|
|
65
83
|
**Every amendment's "wires cleanly against the current tree" is a hypothesis,
|
|
66
84
|
and the align audit is its first test.** Authoring a producer silently asserts
|
|
67
85
|
the consumer's read side already matches — it rarely does. Verify every
|
|
@@ -19,12 +19,12 @@ consistency gate>* and refuse to stamp if it is red — fix the drift first (or
|
|
|
19
19
|
prior stage is scope, whose exit the entry already re-fires — **except** when
|
|
20
20
|
`check-stage-entry` assertion C fires: a cross-component amendment signal with
|
|
21
21
|
no align stamp blocks the entry until the iteration carries either an align
|
|
22
|
-
stamp or an explicit `<iter> align-waived <session> <date>` waiver line,
|
|
22
|
+
stamp or an explicit `<iter> align-waived <session> <date> <head>` waiver line,
|
|
23
23
|
written **only on the user's explicit ruling** — never self-issued by this
|
|
24
24
|
entering session.
|
|
25
25
|
|
|
26
26
|
**First step — stamp evidence.** Run lifecycle-kit's
|
|
27
|
-
`bin/enter-stage.sh build`: it appends `<iteration> build <session-id> <date>`
|
|
27
|
+
`bin/enter-stage.sh build`: it appends `<iteration> build <session-id> <date> <head>`
|
|
28
28
|
to `.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the
|
|
29
29
|
stamp proves invocation, not faithful execution), reading `<session-id>` from
|
|
30
30
|
`bin/session-id.sh`
|
|
@@ -43,7 +43,7 @@ a session reset at a task boundary; reach for mid-task summarization only as
|
|
|
43
43
|
a fallback before a commit, never as the routine per-task reset.
|
|
44
44
|
|
|
45
45
|
**Every session still stamps** — re-run `bin/enter-stage.sh build` each
|
|
46
|
-
session: it appends a fresh `<iter> build <session-id> <date>` line with this
|
|
46
|
+
session: it appends a fresh `<iter> build <session-id> <date> <head>` line with this
|
|
47
47
|
session's id, so WORKFLOW-STATE keeps the per-session audit trail
|
|
48
48
|
(`check-stage-evidence` tolerates multiple `build` stamps). A sibling stamp
|
|
49
49
|
naming `build` leaves the cursor where it already is, so there is no
|
|
@@ -3,7 +3,7 @@ merge. Exit condition: Done and Lessons Learned sections cleared (harvestable
|
|
|
3
3
|
lessons promoted first).
|
|
4
4
|
|
|
5
5
|
**First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh
|
|
6
|
-
close`: it appends `<iteration> close <session-id> <date>` to
|
|
6
|
+
close`: it appends `<iteration> close <session-id> <date> <head>` to
|
|
7
7
|
`.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp
|
|
8
8
|
proves invocation, not faithful execution), reading `<session-id>` from
|
|
9
9
|
`bin/session-id.sh`
|
|
@@ -87,11 +87,24 @@ session.
|
|
|
87
87
|
dispositioned *as a claim*: say so, and let the promoted entry carry the
|
|
88
88
|
unverified premise openly (§The committed gap inbox rules why this sits at the
|
|
89
89
|
drain and not at filing time).
|
|
90
|
-
The next iteration's
|
|
91
|
-
(§bin/enter-stage.sh), so an undrained gap blocks the
|
|
92
|
-
crossing it silently.
|
|
90
|
+
The next iteration's first-stage entry refuses a non-empty inbox **when this
|
|
91
|
+
stage was skipped** (§bin/enter-stage.sh), so an undrained gap blocks the
|
|
92
|
+
boundary rather than crossing it silently.
|
|
93
|
+
**A finding your own later steps generate postdates this drain, and it routes
|
|
94
|
+
to the inbox like any other.** The audits, the lesson disposition, the
|
|
95
|
+
staleness read and the release disposition all run after this step, so what
|
|
96
|
+
they turn up has no drainer left in this iteration. File it (`bin/file-gap.sh`)
|
|
97
|
+
and let it be carried: the next first-stage entry admits it and takes it as
|
|
98
|
+
that session's intake (§The committed gap inbox). Do **not** back-date it into
|
|
99
|
+
a drain that has already run — a second pass over an inbox your own later
|
|
100
|
+
steps keep refilling is the loop that shape was rejected for.
|
|
93
101
|
**Judge the recurrence, in addition to the disposition — you are the judge,
|
|
94
|
-
and nothing upstream ruled.**
|
|
102
|
+
and nothing upstream ruled.** That framing is the **general** contract rather
|
|
103
|
+
than this stage's local one — every session that judges a recurrence is obliged
|
|
104
|
+
to stamp it, and this drain is only its mechanized instance (§The committed gap
|
|
105
|
+
inbox owns the rule and what a stamp outside a drain owes instead). Your
|
|
106
|
+
obligation here is undiminished by that reach.
|
|
107
|
+
A slug appearing in a bullet is an *input*, never
|
|
95
108
|
a verdict; the question is whether the finding **re-occurred** or is merely
|
|
96
109
|
being cited, corrected, or argued against, and the bullet's prose is your
|
|
97
110
|
grounds (the filer was asked at capture to write the claim there). State the
|
|
@@ -107,7 +120,8 @@ session.
|
|
|
107
120
|
gains nothing. A slug that resolves only in the done section is not a
|
|
108
121
|
recurrence — the finding recurred after its fix landed, which is a new defect,
|
|
109
122
|
and it files as one.
|
|
110
|
-
3. **Sweep the inbound triage surfaces** — run
|
|
123
|
+
3. **Sweep the inbound triage surfaces** — run
|
|
124
|
+
`bash gate-sdk/bin/run-gates.sh --emit close-surfaces` and
|
|
111
125
|
disposition every row (§The close-surface roster). The roster is derived, not
|
|
112
126
|
enumerated here or in the binding below: a `forced=` row has a structural
|
|
113
127
|
forcing function and cannot be skipped silently; an `advisory` row may be
|
|
@@ -12,7 +12,7 @@ amendment-readiness gate green>*.
|
|
|
12
12
|
*resets* the evidence file: it truncates `.workflow/WORKFLOW-STATE.txt` back
|
|
13
13
|
to its header (dropping the prior iteration's stamps — git history is the
|
|
14
14
|
permanent audit trail; the gates only ever read the current iteration), stamps
|
|
15
|
-
`— scope <session-id> <date>` under the unnamed-iteration sentinel, and sets
|
|
15
|
+
`— scope <session-id> <date> <head>` under the unnamed-iteration sentinel, and sets
|
|
16
16
|
the queue header to `## Iteration: —`. It reads `<session-id>`
|
|
17
17
|
from `bin/session-id.sh` itself (the newest transcript — never hand-picked),
|
|
18
18
|
uses `date +%F`, and refuses (writing nothing) if `check-stage-entry` is red.
|
|
@@ -28,6 +28,25 @@ later stages append. Honest limit: the stamp proves the skill was *invoked*,
|
|
|
28
28
|
not that the work was done faithfully — it forces deliberate invocation and an
|
|
29
29
|
audit trail, nothing more.
|
|
30
30
|
|
|
31
|
+
**Second step — take the carried gap bullets, if the entry reported any.** The
|
|
32
|
+
entry admits a boundary whose gap inbox holds bullets the closing stage could
|
|
33
|
+
not have drained, and prints them as an advisory naming them this session's
|
|
34
|
+
intake (lifecycle-kit/SPEC.md §The committed gap inbox owns why it admits rather
|
|
35
|
+
than refuses). Each carried bullet gets **exactly one** disposition — promoted to
|
|
36
|
+
a queue entry, fixed inline this session, or discarded with cause in the commit
|
|
37
|
+
message — after which this session truncates the inbox to its `# contract:`
|
|
38
|
+
header **in the same commit**. That is the drain's own disposition set, run by
|
|
39
|
+
the stage that can now legally run it; no linked-and-skipped middle state, per
|
|
40
|
+
the gap-disposition rule, and deleting a bullet without a disposition is not a
|
|
41
|
+
drain.
|
|
42
|
+
Two properties are obliged rather than suggested. The disposition happens
|
|
43
|
+
**after the stamp**, in-stage — that is the whole point of admitting the entry,
|
|
44
|
+
since a pre-stamp queue write is attributed to a stage that has not started. And
|
|
45
|
+
a promoted entry's provenance sentence carries the **bullet's own date** and
|
|
46
|
+
names the iteration whose close generated it, because the finding's disposition
|
|
47
|
+
lands in this iteration's ledger while the finding belongs to the last one; a
|
|
48
|
+
record that is late and says so is what that trade buys.
|
|
49
|
+
|
|
31
50
|
## Session ritual
|
|
32
51
|
|
|
33
52
|
*<ritual: your scope ritual: index the governing docs before reading them
|
|
@@ -20,7 +20,7 @@ a skipped `spec` cannot ship a feature without its amendment (the same
|
|
|
20
20
|
procedural-plus-one-gated-backstop shape as the audit stage's own trigger).
|
|
21
21
|
|
|
22
22
|
**First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh spec`:
|
|
23
|
-
it appends `<iteration> spec <session-id> <date>` to
|
|
23
|
+
it appends `<iteration> spec <session-id> <date> <head>` to
|
|
24
24
|
`.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp
|
|
25
25
|
proves invocation, not faithful execution), reading `<session-id>` from
|
|
26
26
|
`bin/session-id.sh` (the newest transcript — never hand-picked), using
|
|
@@ -5,7 +5,7 @@ unsatisfiable while any suite is tracked-red on a deferred blocker; each
|
|
|
5
5
|
held-constant red line carries the live task slug that blocks it>*.
|
|
6
6
|
|
|
7
7
|
**First step — stamp evidence.** Run lifecycle-kit's `bin/enter-stage.sh
|
|
8
|
-
validate`: it appends `<iteration> validate <session-id> <date>` to
|
|
8
|
+
validate`: it appends `<iteration> validate <session-id> <date> <head>` to
|
|
9
9
|
`.workflow/WORKFLOW-STATE.txt` (required by `check-stage-evidence`; the stamp
|
|
10
10
|
proves invocation, not faithful execution), reading `<session-id>` from
|
|
11
11
|
`bin/session-id.sh`
|
|
@@ -26,4 +26,4 @@ _resolve() { readlink -f -- "$1" 2>/dev/null || printf '%s' "${1#./}"; }
|
|
|
26
26
|
|
|
27
27
|
[[ "$(_resolve "$path")" == "$(_resolve "$STATE_FILE")" ]] || exit 0
|
|
28
28
|
|
|
29
|
-
guard_block "$STATE_FILE is written by lifecycle-kit's bin/enter-stage.sh, never by hand — run 'bash lifecycle-kit/bin/enter-stage.sh <stage>' to stamp, or 'bash lifecycle-kit/bin/enter-stage.sh --rename <name>' to rename the iteration (it rewrites the queue header and column 1 of every stamp in one motion, proving columns 2
|
|
29
|
+
guard_block "$STATE_FILE is written by lifecycle-kit's bin/enter-stage.sh, never by hand — run 'bash lifecycle-kit/bin/enter-stage.sh <stage>' to stamp, or 'bash lifecycle-kit/bin/enter-stage.sh --rename <name>' to rename the iteration (it rewrites the queue header and column 1 of every stamp in one motion, proving columns 2 through NF unchanged). The stamp *is* the stage transition, so a hand-written line moves the cursor for every reader for the rest of the session, and every gate that would catch it fires only at commit: an uncommitted hand-stamp is never seen at all. If enter-stage refuses, that refusal is a gate verdict to resolve at its source, not to write around."
|