checkwright 0.21.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 +1013 -50
- package/lib/common/digest.sh +18 -0
- package/lib/common/lock.sh +40 -0
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +56 -43
- package/lib/diff.sh +64 -0
- package/lib/doctor.sh +81 -7
- package/lib/init.sh +167 -52
- package/lib/uninstall.sh +212 -0
- package/lib/update.sh +34 -0
- package/package.json +2 -2
- package/payload/artifact/targets.list +30 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -0
- package/payload/canon-kit/README.md +2 -0
- package/payload/canon-kit/SPEC.md +666 -59
- 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 +12 -4
- 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/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +29 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/OUTSIDE.md +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/bad/docs/index.md +3 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/OUTSIDE.md +4 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention/good/docs/methodology.md +8 -0
- package/payload/canon-kit/gate-tests/check-docs-link-convention.test.sh +94 -0
- 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 +32 -8
- 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-payload-claim/bad/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/install.md +19 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/posts/note.md +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/bad/scripts/payload-claims.sh +7 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/README.md +15 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/expect.txt +2 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/install.md +20 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/posts/note.md +6 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/canon-config.sh +8 -0
- package/payload/canon-kit/gate-tests/check-payload-claim/good/scripts/payload-claims.sh +7 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +27 -4
- 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 +4 -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/bad/widget.sh +1 -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-spec-pointer/good/widget.sh +1 -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 +109 -70
- package/payload/canon-kit/smoke/install.sh +21 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +9 -2
- package/payload/context-kit/README.md +4 -1
- package/payload/context-kit/SPEC.md +166 -9
- 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 +4 -1
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +499 -26
- package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +97 -0
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +2 -1
- package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
- package/payload/delegation-kit/lib/delegation.sh +1 -0
- package/payload/delegation-kit/smoke/install.sh +2 -1
- package/payload/delegation-kit/templates/agent-dispatch-guard.sh +61 -0
- package/payload/delegation-kit/templates/agent-execution.md +127 -12
- package/payload/delegation-kit/templates/delegation-config.sh +4 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +1 -1
- package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
- package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +30 -0
- package/payload/doctrine-kit/DOCTRINE.md +112 -11
- package/payload/doctrine-kit/README.md +12 -3
- package/payload/doctrine-kit/SPEC.md +163 -11
- package/payload/doctrine-kit/bin/install-doctrine.sh +167 -17
- 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 +167 -1
- package/payload/drift-kit/README.md +3 -2
- package/payload/drift-kit/SPEC.md +264 -22
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/bin/stage-economics.sh +157 -3
- package/payload/drift-kit/kpis/kpi-incident-recurrence.sh +42 -0
- package/payload/drift-kit/smoke/install.sh +183 -1
- package/payload/drift-kit/templates/economics.md +9 -0
- package/payload/drift-kit/templates/kpis.list +6 -1
- package/payload/evidence-kit/README.md +20 -6
- package/payload/evidence-kit/SPEC.md +355 -17
- package/payload/evidence-kit/bin/run-validate.sh +51 -9
- package/payload/evidence-kit/checks/check-battery-roster.sh +87 -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 +35 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/runner.md +14 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/bad/scripts/evidence-config.sh +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/runner.md +14 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster/good/scripts/evidence-config.sh +7 -0
- package/payload/evidence-kit/gate-tests/check-battery-roster.test.sh +68 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/args +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/expect.txt +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/bad/run-validate.lock +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/args +1 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/expect.txt +2 -0
- package/payload/evidence-kit/gate-tests/check-producer-liveness/good/run-validate.lock +1 -0
- package/payload/evidence-kit/gate-tests/producer-lock.test.sh +109 -0
- package/payload/evidence-kit/lib/evidence.sh +18 -0
- package/payload/evidence-kit/smoke/install.sh +17 -3
- package/payload/gate-sdk/README.md +17 -1
- package/payload/gate-sdk/SPEC.md +4427 -92
- 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 +32 -2
- package/payload/gate-sdk/bin/port-blockers.sh +445 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +129 -2
- package/payload/gate-sdk/bin/run-gate-tests.sh +61 -9
- package/payload/gate-sdk/bin/run-gates.sh +37 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +55 -7
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +3 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +3 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +4 -1
- 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 +28 -4
- 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 +21 -1
- package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +107 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +7 -7
- 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 +41 -3
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +333 -0
- package/payload/gate-sdk/checks/check-graph.sh +5 -5
- 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 +6 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +71 -21
- 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-action-run-shell.test.sh +16 -1
- package/payload/gate-sdk/gate-tests/check-core-files.test.sh +64 -0
- 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-binary-fresh/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/kitroot/checks/check-vendored.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stamp.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/bad/stub-bin +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/kitroot/checks/check-vendored.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/scripts/gates.list +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stamp.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh/good/stub-bin +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-binary-fresh.test.sh +81 -0
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/TASK-QUEUE.md +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/expect.txt +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/bad/gates/check-sample.sh +3 -1
- package/payload/gate-sdk/gate-tests/check-gate-exemption-tasks/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-sample.sh +1 -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/check-sample.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -0
- 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/bad/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/conservation.md +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/impl/gate.rs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kitroot/check-orphan.rs +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/publish.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-dup.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-orphan.gate +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gate-sdk-config.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/stub-bin +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/targets.list +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/args +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/conservation.md +8 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/impl/gate.rs +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kitroot/check-other.rs +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/publish.yml +15 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-alpha.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-ported.gate +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gate-sdk-config.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/stub-bin +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/targets.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +184 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-reads-couples.test.sh +139 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/templates/widgets.list +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/alpha-kit/widgets/widget-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/args +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/templates/widgets.list +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-one.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/alpha-kit/widgets/widget-two.sh +3 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/args +8 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/rules.list +5 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/beta-kit/templates/table.tsv +4 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-template-registry-parity/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/lib-declaration.test.sh +4 -4
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +151 -1
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
- package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +144 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +41 -4
- package/payload/gate-sdk/lib/gate.sh +208 -9
- package/payload/gate-sdk/lib/inject.sh +46 -1
- package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
- package/payload/gate-sdk/smoke/install.sh +61 -1
- package/payload/guard-kit/README.md +18 -14
- package/payload/guard-kit/SPEC.md +366 -72
- package/payload/guard-kit/bin/compare-settings-allow.sh +40 -7
- package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +64 -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 +277 -54
- package/payload/guard-kit/templates/close-triage.md +38 -10
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/guard-kit/templates/settings-hooks.json +7 -1
- package/payload/lifecycle-kit/README.md +12 -1
- package/payload/lifecycle-kit/SPEC.md +991 -41
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +139 -13
- package/payload/lifecycle-kit/bin/file-gap.sh +60 -2
- package/payload/lifecycle-kit/bin/file-survey.sh +69 -0
- 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/bad/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs/good/.gitattributes +1 -0
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +3 -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/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/expect.txt +4 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/bad/record.md +18 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record/good/record.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +83 -0
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +122 -0
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +102 -0
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +12 -2
- package/payload/lifecycle-kit/smoke/install.sh +83 -4
- package/payload/lifecycle-kit/templates/consult.md +73 -0
- package/payload/lifecycle-kit/templates/lead.md +139 -7
- package/payload/lifecycle-kit/templates/stages/align.md +12 -0
- package/payload/lifecycle-kit/templates/stages/build.md +8 -0
- package/payload/lifecycle-kit/templates/stages/close.md +45 -5
- package/payload/lifecycle-kit/templates/stages/scope.md +42 -3
- package/payload/lifecycle-kit/templates/stages/spec.md +13 -1
- package/payload/lifecycle-kit/templates/stages/validate.md +8 -0
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +6 -1
- package/payload/queue-kit/SPEC.md +350 -6
- package/payload/queue-kit/bin/queue-counts.sh +35 -0
- package/payload/queue-kit/bin/queue-edges.sh +78 -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/check-queue-hygiene/good/TASK-QUEUE.md +5 -0
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-edges.test.sh +130 -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/queue-kit/smoke/install.sh +4 -1
- package/payload/queue-kit/templates/TASK-QUEUE.md +3 -0
- package/payload/site-kit/SPEC.md +64 -27
- 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/payload/site-kit/smoke/install.sh +9 -1
- package/profiles.list +36 -8
- package/payload/canon-kit/checks/check-comment-tier.sh +0 -211
- 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-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 -180
- 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-action-gh-repo.sh +0 -321
- package/payload/gate-sdk/checks/check-action-pinning.sh +0 -55
- 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-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/queue-kit/checks/check-queue-entry-budget.sh +0 -104
- 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
|
@@ -42,9 +42,11 @@ session rides — is standing dispatch policy (the ruling-config slot below):
|
|
|
42
42
|
and dispatches scope itself as a stage session on the judgment tier, keeping
|
|
43
43
|
that agent resumable afterward as the iteration's **intent oracle**. The
|
|
44
44
|
lead's own turns are routing work — dispatch, result ingestion, budget
|
|
45
|
-
verdicts — and stop paying judgment-tier prices. The oracle
|
|
46
|
-
dispatch
|
|
47
|
-
|
|
45
|
+
verdicts — and stop paying judgment-tier prices. The oracle is a fresh
|
|
46
|
+
dispatch under delegation-kit's **Never dispatch a fork to narrow a child**
|
|
47
|
+
rule (`templates/agent-execution.md`), of which this posture is the named
|
|
48
|
+
tier-split instance: the narrowing at stake here is the model tier, and a
|
|
49
|
+
fork inherits the dispatcher's.
|
|
48
50
|
|
|
49
51
|
Under either posture the lead dispatches a stage session as a **background
|
|
50
52
|
agent** whose prompt is that stage's ordinary skill invocation (`/build`,
|
|
@@ -53,12 +55,43 @@ lifecycle-state write — the entry stamp, commits, evidence — happens **in th
|
|
|
53
55
|
stage session**, never in the lead.
|
|
54
56
|
|
|
55
57
|
Dispatch mechanics are delegation-kit's, unchanged: dispatch in the background
|
|
56
|
-
with notification, honor the per-dispatch budget guard, and
|
|
58
|
+
with notification, honor the per-dispatch budget guard, and verify after any
|
|
57
59
|
agent commit. The guard blocks only on PAUSE (STALE and OK advise); a deliberate
|
|
58
60
|
override rides the `.claude/settings.local.json` env block — delegation-kit/SPEC.md
|
|
59
61
|
§The delegation model. Load `/agent-execution` for the protocol and follow it
|
|
60
62
|
there — it is not restated here.
|
|
61
63
|
|
|
64
|
+
**When the dispatched stage is the evidence-producing stage, the lead's verify
|
|
65
|
+
is a read of the committed evidence — never a re-run of the producer.** This is
|
|
66
|
+
the lifecycle instance of delegation-kit's no-producer-re-run rule
|
|
67
|
+
(delegation-kit/SPEC.md §Verify after every agent commit, which owns the generic
|
|
68
|
+
rule and why re-running is safe for work and unsafe for evidence); only a stage
|
|
69
|
+
roster knows which stage that is, which is why the instance lands here. Both
|
|
70
|
+
misroutes are attested and the harm splits between them: re-running the whole
|
|
71
|
+
gate battery writes nothing under the workflow directory, so it is inert on the
|
|
72
|
+
evidence and merely wasted; re-running the evidence producer, the manifest's
|
|
73
|
+
sole writer, mutates or duplicates the committed record. Read the manifest the
|
|
74
|
+
stage committed and judge it.
|
|
75
|
+
|
|
76
|
+
**Stage N+1 is dispatched on stage N's agent completion notification — never on
|
|
77
|
+
its commit, its stamp, a clean tree, a green battery, or a cleared
|
|
78
|
+
`--simulate`.** Completion is a fact about a *session*; every one of those others
|
|
79
|
+
is a fact about an *artifact*, and no artifact distinguishes "finished" from
|
|
80
|
+
"still writing". The attested failure is exactly that gap: a lead confirmed the
|
|
81
|
+
validate stage's commit had landed with complete evidence, the tree clean, the
|
|
82
|
+
battery green and a simulated close entry cleared — then dispatched close into a
|
|
83
|
+
still-running `run-validate`. Every check passed mid-write, because the producer
|
|
84
|
+
commits its evidence and keeps going, so the terminal commit existing is fully
|
|
85
|
+
compatible with the process still executing.
|
|
86
|
+
|
|
87
|
+
**Any prompt-answered signal is a start signal, never a completion one.** The
|
|
88
|
+
same lead read an operator's note about having just answered a stalled permission
|
|
89
|
+
prompt as the stage being finished. It means the opposite: an approval prompt
|
|
90
|
+
gates a command **starting**, so such a note timestamps a beginning. Stated here
|
|
91
|
+
rather than left as incident lore, because the misreading is available to any
|
|
92
|
+
lead on any harness that prompts, and it reads as good news at exactly the moment
|
|
93
|
+
the lead wants good news.
|
|
94
|
+
|
|
62
95
|
The lead never hand-derives prior-stage completeness — reading WORKFLOW-STATE
|
|
63
96
|
or the git log to decide whether a dispatch may proceed re-derives what the
|
|
64
97
|
machinery already rules on. It dispatches and trusts `enter-stage.sh`'s
|
|
@@ -66,6 +99,40 @@ fail-closed refusal (relayed in the stage session's report), or gates an
|
|
|
66
99
|
expensive dispatch cheaply first with `enter-stage.sh --simulate <stage>`
|
|
67
100
|
(lifecycle-kit/SPEC.md §bin/enter-stage.sh) — oracle-first made concrete.
|
|
68
101
|
|
|
102
|
+
**That rule and the precondition above answer different questions, and reading
|
|
103
|
+
them as one makes the pair unusable.** This one is a *gating* rule: *may stage
|
|
104
|
+
N+1 proceed?* — a question about preconditions the machinery owns, which
|
|
105
|
+
`--simulate` answers correctly and cheaply and which the lead must not re-derive
|
|
106
|
+
by hand. The precondition is a *liveness* rule: *is stage N over?* — which no
|
|
107
|
+
instantaneous read answers at all. The incident is the proof they are two
|
|
108
|
+
questions rather than one stated twice: the lead followed this rule faithfully,
|
|
109
|
+
ran `--simulate`, and the simulated entry cleared mid-write. A rule told to trust
|
|
110
|
+
an instantaneous read is not at fault for failing to answer a question about
|
|
111
|
+
duration; it was never asked. `--simulate` keeps its whole job. What it never
|
|
112
|
+
was, and must now be said not to be, is evidence that the prior stage is over.
|
|
113
|
+
|
|
114
|
+
One qualification, because `--simulate` runs every matching entry-preflight
|
|
115
|
+
command: where a consumer wires a producer-liveness gate onto that hook,
|
|
116
|
+
`--simulate` inherits it and the specific mid-write clearing above stops
|
|
117
|
+
happening. That is a real narrowing rather than a repeal — an instantaneous read
|
|
118
|
+
is still instantaneous, so a producer starting a moment later is still unseen,
|
|
119
|
+
and the gate sees only producers that claim a lock. Completion stays a fact about
|
|
120
|
+
a session; what the gate contributes is to shrink the window in which being wrong
|
|
121
|
+
about it goes undetected.
|
|
122
|
+
|
|
123
|
+
**Relay, never assert.** The lead manages on *optimal* rather than extensive
|
|
124
|
+
context, so on any topic it has not mastered it acknowledges and relays — it
|
|
125
|
+
does not hand down a tree fact as a ruling. The asymmetry is the reason: a
|
|
126
|
+
stage session writes lifecycle state and is held to oracle-first, fixture
|
|
127
|
+
pairs and a validate battery, while the lead writes no state and so has no
|
|
128
|
+
verification discipline, yet its rulings steer what stage sessions land. A
|
|
129
|
+
claim reasoned from one narrow grep and delivered as instruction spends a
|
|
130
|
+
stage session's work against it, and nothing reds. So a factual claim travels
|
|
131
|
+
as a claim with its provenance attached ("read off X, unverified"), leaving
|
|
132
|
+
the stage session — which holds the oracle — to run it. What the lead rules
|
|
133
|
+
alone is scope, envelope and priority: the things no gate can decide and no
|
|
134
|
+
grep can answer.
|
|
135
|
+
|
|
69
136
|
Whether the lead may ever run a stage *inline* is the consumer's
|
|
70
137
|
session-boundary posture (`LIFECYCLE_KIT_SESSION_BOUNDARY`,
|
|
71
138
|
lifecycle-kit/SPEC.md §Layout and configuration). Under the strict posture
|
|
@@ -129,6 +196,17 @@ resumed, the lead answers from the governed surfaces the rulings already live
|
|
|
129
196
|
in — the amendments, the queue entries — and a question not derivable there
|
|
130
197
|
goes to the operator, never substituted by the lead's own judgment.
|
|
131
198
|
|
|
199
|
+
**One class the lead never rules, under either posture.** Reversing, demoting
|
|
200
|
+
or re-scoping a **recorded operator ruling** or a stated objective is
|
|
201
|
+
operator-class: the lead relays it, however well-grounded the escalating
|
|
202
|
+
session's finding and however urgent the fix. It is carved out precisely
|
|
203
|
+
because it reads as derivable — the ruling is written in a governed surface,
|
|
204
|
+
so a session holding contrary evidence takes that surface for stale rather than
|
|
205
|
+
for closed, and the routing rule above then hands the lead a decision it may not
|
|
206
|
+
make. The escalating session is right to escalate and right about its evidence;
|
|
207
|
+
what it may spend the evidence on is the operator's reconsideration, never the
|
|
208
|
+
reversal itself.
|
|
209
|
+
|
|
132
210
|
## Channel design
|
|
133
211
|
|
|
134
212
|
Two channels, each with one job. Routine narration and findings go to the
|
|
@@ -144,6 +222,42 @@ channel it is meant to keep reading for the rest of the unit. It is swept with
|
|
|
144
222
|
the rest of the scratch dir at the iteration boundary
|
|
145
223
|
(delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps).
|
|
146
224
|
|
|
225
|
+
## A running session is asked, never instructed
|
|
226
|
+
|
|
227
|
+
A dispatched stage session is not a tool call the lead may re-issue. Three rules
|
|
228
|
+
bind the lead here and each was paid for; the root cause under all three is one
|
|
229
|
+
habit, stated last.
|
|
230
|
+
|
|
231
|
+
**An instruction to run something is destructive when the answer is "already
|
|
232
|
+
did".** §The lead model already forbids the lead *itself* re-running the evidence
|
|
233
|
+
producer; this is the same harm through the other actor. When the lead does not
|
|
234
|
+
know what a session has run, the message is a **question** — *what have you run,
|
|
235
|
+
and what did it report?* — never a command. Attested: a stage whose oracle had
|
|
236
|
+
completed and written its evidence rows was told to run it again; the runner
|
|
237
|
+
truncates its artifact on start, the rows were uncommitted, and they were lost
|
|
238
|
+
and had to be regenerated. A question costs one turn and destroys nothing.
|
|
239
|
+
|
|
240
|
+
**A status-only turn is not evidence that a session is stuck.** Content-free
|
|
241
|
+
turns are what a long foreground call looks like from outside, so reading two of
|
|
242
|
+
them as a stall is reading the channel rather than the work. Read the artifact
|
|
243
|
+
the work writes — the evidence file, the log, the lock — which answers in one
|
|
244
|
+
call what any number of further turns will not.
|
|
245
|
+
|
|
246
|
+
**A dispatch prompt carries no duration estimate or long-run caution unless it
|
|
247
|
+
is measured.** An invented cost framing does not merely mislead: it makes the
|
|
248
|
+
receiving session plan around a run that needs no planning, and it primes the
|
|
249
|
+
lead to misread that session's ordinary turns as a stall. An oracle run that
|
|
250
|
+
fits one foreground call is dispatched as exactly that — a plain foreground
|
|
251
|
+
invocation, no backgrounding, no monitor, no pipe or redirect — and the dispatch
|
|
252
|
+
says nothing about how long it takes.
|
|
253
|
+
|
|
254
|
+
**The root cause: a duration or a count reported by a subagent is checkable, so
|
|
255
|
+
it is checked before anything is spent on it.** It is checkable against the tree,
|
|
256
|
+
or against the reporting session's own metadata — a claimed sub-step longer than
|
|
257
|
+
the whole session that reported it is disproved by arithmetic the lead already
|
|
258
|
+
holds. Relaying an unverified figure into a dispatch is what converts one
|
|
259
|
+
session's guess into standing instruction for every session after it.
|
|
260
|
+
|
|
147
261
|
## Policy is config, not prose
|
|
148
262
|
|
|
149
263
|
All *standing* dispatch policy — everything true of every dispatch, not the
|
|
@@ -159,6 +273,12 @@ agent-definition points at its owning docs rather than restating them
|
|
|
159
273
|
(content-tiering) — it cites delegation-kit's resume-journal mechanics, say,
|
|
160
274
|
never transcribes them.
|
|
161
275
|
|
|
276
|
+
The rule cuts both ways: policy binding the **lead itself** is standing too, and
|
|
277
|
+
its tracked source is this template rather than the agent definition it
|
|
278
|
+
dispatches. The completion-notification dispatch precondition (§The lead model)
|
|
279
|
+
is standing policy of exactly that kind, named here so it is stated once and not
|
|
280
|
+
re-improvised in each dispatch prompt.
|
|
281
|
+
|
|
162
282
|
*<ruling-config: the tracked agent-definition the lead dispatches and the roster
|
|
163
283
|
it carries — its path, the subagent type the dispatch names, and where the
|
|
164
284
|
ruling classes are stated.>*
|
|
@@ -170,7 +290,19 @@ writes, no evidence files. Every stamp originates in the stage session via
|
|
|
170
290
|
`enter-stage.sh` (lifecycle-kit/SPEC.md §The state machine). Lead-does-stamping
|
|
171
291
|
is ruled out, not merely omitted: it breaks this invariant, and under the
|
|
172
292
|
`stage` posture of `LIFECYCLE_KIT_SESSION_BOUNDARY` a lead stamp is exactly the
|
|
173
|
-
self-reported skip `check-stage-evidence` exists to catch.
|
|
293
|
+
self-reported skip `check-stage-evidence` exists to catch.
|
|
294
|
+
|
|
295
|
+
**The lead stamping nothing is not the batch stamping nothing**, and the two
|
|
296
|
+
read alike from here. A dispatched batch stamps on entry like any stage session:
|
|
297
|
+
an intra-stage split makes the second batch a *session*, not a re-entry to
|
|
298
|
+
suppress, and a sibling stamp naming a stage the cursor already sits on moves
|
|
299
|
+
nothing — the stage skill owns that rule and its gate tolerance
|
|
300
|
+
(lifecycle-kit/templates/stages/build.md). Directing a batch not to stamp is
|
|
301
|
+
therefore not conflict-avoidance; it silently spends the per-session audit trail
|
|
302
|
+
the stamp exists to provide, and no later session can repair it, because
|
|
303
|
+
backdating a stamp falsifies the trail rather than restoring it.
|
|
304
|
+
|
|
305
|
+
An answer that
|
|
174
306
|
amounts to a design ruling is landed **by the stage session**, in the governed
|
|
175
307
|
surface it belongs to (the amendment, the queue entry), *before* the session
|
|
176
308
|
acts on it — and a ruling whose acting session is **not imminent** is filed to
|
|
@@ -225,7 +357,7 @@ consequences:
|
|
|
225
357
|
every assignment when the harness model roster churns.
|
|
226
358
|
- **An intra-stage batch split is the lead's to own.** When a stage's work
|
|
227
359
|
splits into batches, those batches are **N sibling stage sessions the lead
|
|
228
|
-
dispatches and
|
|
360
|
+
dispatches and verifies** — each entering through `enter-stage.sh` as a
|
|
229
361
|
same-stage re-entry (lifecycle-kit/SPEC.md §The state machine: N sessions may
|
|
230
362
|
enter one stage, each leaving its own stamp and the cursor staying put). A stage session **never dispatches a sibling stage session**: a stage
|
|
231
363
|
that sub-dispatches its own batches nests a second supervisor at the lead's
|
|
@@ -258,7 +390,7 @@ consequences:
|
|
|
258
390
|
pointers, not state. Verify the spend afterward with delegation-kit's
|
|
259
391
|
usage-verdict rather than assuming forgiveness.
|
|
260
392
|
- **Suggest a compact at the paying acceptance boundaries.** After a stage
|
|
261
|
-
session's work is accepted — its commits
|
|
393
|
+
session's work is accepted — its commits verified, its rulings landed in
|
|
262
394
|
governed surfaces — and before the next dispatch, the lead *suggests* a
|
|
263
395
|
compact to the operator. Compaction is operator-invoked; the lead can only
|
|
264
396
|
recommend (the honest limit), so the suggestion is one line in the lead's
|
|
@@ -41,8 +41,20 @@ entering build session (lifecycle-kit/SPEC.md §check-stage-entry).
|
|
|
41
41
|
naming inconsistencies, undocumented contracts, contradictions; name the
|
|
42
42
|
entry grammar any backfill task filed from a finding is written against.>* Resolve every
|
|
43
43
|
finding in the affected spec or amendment — never ad-hoc, never deferred.
|
|
44
|
+
When both could hold it, **the surviving surface wins**: an amendment is deleted
|
|
45
|
+
at merge, so a correction written into one and deleted in the same commit that
|
|
46
|
+
lands it leaves no trace in history at all — the diff shows a file added and
|
|
47
|
+
removed, and the reasoning is unrecoverable by any later reader. Land it in the
|
|
48
|
+
canonical spec the amendment merges into, and let the amendment cite it.
|
|
44
49
|
Commit all spec changes in a single `chore:` commit.
|
|
45
50
|
|
|
51
|
+
**A sweep is a survey — check the record before you buy one, and file the one
|
|
52
|
+
you buy.** The audit fan-out above is the most expensive survey any stage
|
|
53
|
+
dispatches. Before dispatching it, read the survey record and run the witness on
|
|
54
|
+
any block whose heading already answers your question; afterwards, file the
|
|
55
|
+
finding a later stage will want. Both halves, and what a passing witness
|
|
56
|
+
licenses you to cite, are lifecycle-kit/SPEC.md §The survey record.
|
|
57
|
+
|
|
46
58
|
**Audit the amendment against itself before auditing it against the tree.** Two
|
|
47
59
|
defects are visible on the amendment alone and both survive a green battery. An
|
|
48
60
|
author-stated count ("three things and no fourth") is an assertion about the
|
|
@@ -69,6 +69,14 @@ widening asserted behavior, user-facing semantics) stops and surfaces to the
|
|
|
69
69
|
user — never pick a "conservative alternative" silently. A *cross-component
|
|
70
70
|
causal gap* is not a TODO: stop, resolve it this session, update the spec.
|
|
71
71
|
|
|
72
|
+
**Don't re-buy the roster the stage before you already bought.** Where
|
|
73
|
+
implementing a task sends you across a corpus — every call site of a helper,
|
|
74
|
+
every spec citing a name — read the survey record first: a block whose heading
|
|
75
|
+
answers your question, whose corpus is unmoved since its recorded rev and whose
|
|
76
|
+
oracle still returns the same verdict, is cited rather than re-surveyed, and one
|
|
77
|
+
whose witness fails narrows the dispatch to what moved. File the surveys you buy
|
|
78
|
+
(lifecycle-kit/SPEC.md §The survey record).
|
|
79
|
+
|
|
72
80
|
**Declare a gate you land or tighten, in the unit that lands it.** A unit that
|
|
73
81
|
lands a new gate or makes an existing one stricter appends that gate's bare name
|
|
74
82
|
to the tightened-gates declaration surface,
|
|
@@ -27,6 +27,13 @@ a red `check-stage-entry` at the next iteration's entry; filing to Deferred
|
|
|
27
27
|
keeps the boundary clean (lifecycle-kit/SPEC.md §check-stage-entry owns the
|
|
28
28
|
deferred-filing model for ruled-but-unpromoted work).
|
|
29
29
|
|
|
30
|
+
**The survey record is not a close surface.** It carries no disposition
|
|
31
|
+
obligation and blocks no boundary — the next first-stage entry truncates it,
|
|
32
|
+
and that is the whole reclaim (lifecycle-kit/SPEC.md §The survey record). Close
|
|
33
|
+
owes it exactly one thing: a survey close *buys* while triaging is filed like
|
|
34
|
+
any other, so a finding worth an iteration's carry does not die with this
|
|
35
|
+
session.
|
|
36
|
+
|
|
30
37
|
1. **Process Lessons Learned** → durable rules or debt tasks, then clear the
|
|
31
38
|
section. **Give each entry an explicit disposition before clearing, and
|
|
32
39
|
stamp it** — one line per entry into `LIFECYCLE_KIT_LESSON_EVIDENCE_FILE`
|
|
@@ -68,9 +75,38 @@ deferred-filing model for ruled-but-unpromoted work).
|
|
|
68
75
|
feeds the staleness read (an aged bullet is a signal, not a free pass).
|
|
69
76
|
Draining is not deleting: a bullet naming a concrete unfixed gap must become a
|
|
70
77
|
task or a fix, not evaporate — the same clearing-is-not-processing rule as
|
|
71
|
-
Lessons.
|
|
78
|
+
Lessons.
|
|
79
|
+
**Re-verify before dispositioning.** A bullet's prose is the filer's claim, not
|
|
80
|
+
an established fact: capture is deliberately frictionless, so nothing upstream
|
|
81
|
+
checked it and a bullet can assert a mechanism its filer inferred rather than
|
|
82
|
+
ran. Per bullet, name the claim the disposition turns on and the command that
|
|
83
|
+
establishes it, run that command, and disposition against what it returned.
|
|
84
|
+
Record the outcome in the close commit message beside the bullet's disposition
|
|
85
|
+
— which bullets were re-verified and what fell — so a corrected premise is
|
|
86
|
+
visible rather than silently absorbed. A claim no cheap command settles is
|
|
87
|
+
dispositioned *as a claim*: say so, and let the promoted entry carry the
|
|
88
|
+
unverified premise openly (§The committed gap inbox rules why this sits at the
|
|
89
|
+
drain and not at filing time).
|
|
90
|
+
The next iteration's scope entry refuses a non-empty inbox
|
|
72
91
|
(§bin/enter-stage.sh), so an undrained gap blocks the boundary rather than
|
|
73
92
|
crossing it silently.
|
|
93
|
+
**Judge the recurrence, in addition to the disposition — you are the judge,
|
|
94
|
+
and nothing upstream ruled.** A slug appearing in a bullet is an *input*, never
|
|
95
|
+
a verdict; the question is whether the finding **re-occurred** or is merely
|
|
96
|
+
being cited, corrected, or argued against, and the bullet's prose is your
|
|
97
|
+
grounds (the filer was asked at capture to write the claim there). State the
|
|
98
|
+
call in the close commit message beside the bullet's disposition — a
|
|
99
|
+
**declined** match stated as explicitly as a stamped one, since an unstated
|
|
100
|
+
decline is indistinguishable from an unread bullet. On a judged recurrence,
|
|
101
|
+
append the bullet's date to that entry's `recurrence:` declaration (creating
|
|
102
|
+
the line when absent), **in this same queue-writing commit** — never *instead
|
|
103
|
+
of* the bullet's own disposition. That same-commit rule is load-bearing rather
|
|
104
|
+
than housekeeping: the declaration is no longer re-derivable, so this commit
|
|
105
|
+
*is* the audit artifact, carrying the judgment beside the prose it was made
|
|
106
|
+
from. It is idempotent per (slug, date): a slug already carrying today's date
|
|
107
|
+
gains nothing. A slug that resolves only in the done section is not a
|
|
108
|
+
recurrence — the finding recurred after its fix landed, which is a new defect,
|
|
109
|
+
and it files as one.
|
|
74
110
|
3. **Sweep the inbound triage surfaces** — run `bin/close-surfaces.sh` and
|
|
75
111
|
disposition every row (§The close-surface roster). The roster is derived, not
|
|
76
112
|
enumerated here or in the binding below: a `forced=` row has a structural
|
|
@@ -100,10 +136,14 @@ deferred-filing model for ruled-but-unpromoted work).
|
|
|
100
136
|
execute its release procedure or stamp an explicit no-release line. Silence
|
|
101
137
|
is not a disposition — a close that says nothing about release is incomplete.
|
|
102
138
|
Stamp one line into the consumer-named disposition-evidence file:
|
|
103
|
-
`<iteration> release <version|none
|
|
104
|
-
`check-lesson-disposition` contract shape at the release boundary, the
|
|
105
|
-
lineage release-sweep's stamp follows) — `<version>` is the tag applied,
|
|
106
|
-
`none` states the both-None (or consumer-equivalent) outcome
|
|
139
|
+
`<iteration> release <version|none|deferred:<version>> — <one-line basis>`
|
|
140
|
+
(the `check-lesson-disposition` contract shape at the release boundary, the
|
|
141
|
+
same lineage release-sweep's stamp follows) — `<version>` is the tag applied,
|
|
142
|
+
`none` states the both-None (or consumer-equivalent) outcome, and
|
|
143
|
+
`deferred:<version>` records criteria that were met while the release was held
|
|
144
|
+
back, flooring the next qualifying note at that version. A consumer's release
|
|
145
|
+
policy may make deferral the default disposition, so this third form is the
|
|
146
|
+
common one under such a policy rather than an exception. Ordering: a tag
|
|
107
147
|
names a commit, so the tag-and-host-release half of the procedure runs *after*
|
|
108
148
|
the iteration's final commit lands; the note-authoring and stamp halves ride
|
|
109
149
|
the close commits themselves.
|
|
@@ -55,6 +55,23 @@ and the proposed unit set is escalated for ruling before promotion: to the lead
|
|
|
55
55
|
under the split posture, to the user directly under none — the stage's ordinary
|
|
56
56
|
stop. The destination changes; the proposal step does not.
|
|
57
57
|
|
|
58
|
+
A **deferred** entry whose recurrence count has reached
|
|
59
|
+
`LIFECYCLE_KIT_RECURRENCE_THRESHOLD` enters the proposed unit set **regardless of
|
|
60
|
+
theme**, and rides that same escalation. The directive still bounds the survey;
|
|
61
|
+
what it may no longer do is silently outrank a counted recurrence. The count is
|
|
62
|
+
the number of dates on the entry's `recurrence:` declaration
|
|
63
|
+
(queue-kit/SPEC.md §The tag algebra) — one anchored grep over the deferred
|
|
64
|
+
section, no tool and no queue-kit dependency. Each of those dates is a **judged**
|
|
65
|
+
recurrence, stamped by a session that read the grounds rather than derived from a
|
|
66
|
+
string match, so a count reaching the threshold is a signal to act on rather than
|
|
67
|
+
a number to sanity-check first. It is scoped to deferred entries
|
|
68
|
+
because promotion is the decision it forces; an entry already active is being
|
|
69
|
+
built. **The collision is decided, not resolved in the theme's favour**: the rule
|
|
70
|
+
does not promote, it puts the unit in front of the authority this stage already
|
|
71
|
+
escalates to. An automatic promotion would be a second intake path around
|
|
72
|
+
scope-gated intake, and the failure this rule answers was never that the ruling
|
|
73
|
+
went the wrong way — it was that the collision never reached anyone.
|
|
74
|
+
|
|
58
75
|
**Weigh the iteration's cost before opening it — the economic composition test.**
|
|
59
76
|
A lone sub-threshold unit may not justify a whole iteration's fixed cost: either
|
|
60
77
|
bundle related-surface deferred entries into the iteration, or argue the unit is
|
|
@@ -64,6 +81,14 @@ lifecycle-kit/templates/lead.md §Economics and applied there to dispatch
|
|
|
64
81
|
batching; scope applies the same principle one axis over, to iteration
|
|
65
82
|
composition. Cite it and weigh it here; do not re-derive the economics.
|
|
66
83
|
|
|
84
|
+
**Scope's censuses are the ones later stages most often re-buy, so record
|
|
85
|
+
them.** A roster built by applying a criterion set to a corpus dies with this
|
|
86
|
+
session's context unless it is written down, and the stage that needs it next
|
|
87
|
+
has no artifact to read. File it, and read the record before dispatching a
|
|
88
|
+
survey of your own: lifecycle-kit/SPEC.md §The survey record owns the block
|
|
89
|
+
grammar, the two-command witness, and the rule that a carried survey is cited
|
|
90
|
+
only while that witness holds.
|
|
91
|
+
|
|
67
92
|
**Authoring the promoted features' amendments is scope's — unless the roster
|
|
68
93
|
splits out a dedicated authoring stage.** Where it does, that stage authors the
|
|
69
94
|
amendment(s) and pairs the feature entries into the queue, and scope keeps only
|
|
@@ -84,10 +109,24 @@ A premise inherited from a queued task ("clean/mechanical", "already filed",
|
|
|
84
109
|
"dead code") is a dated hypothesis — re-verify it against the current tree
|
|
85
110
|
before building on it, whether or not this stage goes on to author.
|
|
86
111
|
|
|
112
|
+
That re-verifies the entry's *own* claims — which is the half a survey already
|
|
113
|
+
reads. The other half is what the **rest of the queue** says about that entry:
|
|
114
|
+
its inbound citations, summed. Reading sibling entries one at a time never
|
|
115
|
+
produces that sum, so a unit that several siblings separately converge on,
|
|
116
|
+
subsume, or block against can be read carefully and still ranked low — the
|
|
117
|
+
failure is aggregation, not retrieval, and no amount of following
|
|
118
|
+
cross-references fixes it. So before ranking a candidate, aggregate its inbound
|
|
119
|
+
edges (queue-kit/SPEC.md §bin/queue-edges.sh) and read what cites it. The
|
|
120
|
+
promotion dividend lives in the total and in no single entry, which is also why
|
|
121
|
+
splitting an entry is safe only against that total: a split scatters an entry's
|
|
122
|
+
weight across siblings, and the sum is what puts it back together.
|
|
123
|
+
|
|
87
124
|
When done, **set the iteration name without waiting for confirmation** and
|
|
88
|
-
inform the user:
|
|
89
|
-
the
|
|
90
|
-
|
|
125
|
+
inform the user: run `bash lifecycle-kit/bin/enter-stage.sh --rename <name>`,
|
|
126
|
+
which writes both surfaces — the queue header and column 1 of every stamp — in
|
|
127
|
+
one motion and names them for the one commit they ride in. Never edit either by
|
|
128
|
+
hand: `check-stage-evidence` requires every stamp's iteration to match the
|
|
129
|
+
header's, and the state file has one sanctioned writer.
|
|
91
130
|
The header carries the *name axis alone* — there is no stage field to set, and
|
|
92
131
|
no stage field to advance. The *arriving* stage's skill moves the cursor by
|
|
93
132
|
stamping, as that skill's first step. Invoking the next skill is the
|
|
@@ -57,9 +57,21 @@ never a hand-picked subset, and never silence a probe's stderr — a `2>/dev/nul
|
|
|
57
57
|
on a path grep reads a bad path as "no reader", manufacturing the false negative
|
|
58
58
|
that hides a cross-component reader.
|
|
59
59
|
|
|
60
|
+
**The roster you need may already have been bought.** Authoring routinely wants
|
|
61
|
+
an evidence-backed roster over some corpus, and the stage before you may have
|
|
62
|
+
bought exactly that one. Read the survey record first and, where a block's
|
|
63
|
+
heading answers your question, run its witness — a clean corpus diff since the
|
|
64
|
+
recorded rev plus an unchanged oracle verdict licenses citing the finding
|
|
65
|
+
instead of re-buying it, and a moved one narrows the dispatch to the delta. File
|
|
66
|
+
what you buy. The contract is lifecycle-kit/SPEC.md §The survey record.
|
|
67
|
+
|
|
60
68
|
**Label every delta with its work class.** In the amendment's §What changes,
|
|
61
69
|
every delta carries a **work-class** tag — either **mechanical** or
|
|
62
|
-
**design-bearing
|
|
70
|
+
**design-bearing** — written **inline, at the end of the delta's own lead
|
|
71
|
+
sentence**, never collected into a separate roster at the section's head or
|
|
72
|
+
foot. A roster is a second copy of the labelling that drifts from the deltas it
|
|
73
|
+
labels the moment one is split or reordered, and its reader (the lead, at
|
|
74
|
+
batch-cut) is scanning the deltas themselves. A delta is **mechanical** when executing it demands only
|
|
63
75
|
oracle-running — running a fixed verification battery, a rename/merge sweep, a
|
|
64
76
|
mechanical pin — with low generative judgment. It is **design-bearing** when
|
|
65
77
|
executing it demands generative or verificational judgment — authoring a
|
|
@@ -39,6 +39,14 @@ the work should be done ⇒ the lessons section, dispositioned at close.
|
|
|
39
39
|
Undone work parked as a lesson evaporates; a process insight parked as a
|
|
40
40
|
task rots.
|
|
41
41
|
|
|
42
|
+
**Excavation that spans a corpus is a survey, not a triage.** When a red sends
|
|
43
|
+
you across a whole corpus rather than into one failure, check the survey record
|
|
44
|
+
before dispatching that sweep and file its finding afterwards — the next
|
|
45
|
+
iteration's stages read it, and the record is discarded at the boundary anyway
|
|
46
|
+
(lifecycle-kit/SPEC.md §The survey record). Keep it distinct from the evidence
|
|
47
|
+
manifest below: that one records what your suites did, this one what a sweep
|
|
48
|
+
found.
|
|
49
|
+
|
|
42
50
|
**Record the evidence.** Append one line per suite to your per-iteration
|
|
43
51
|
evidence manifest (suite, log digest, verdict, date) and commit it at validate
|
|
44
52
|
completion — the evidence does not exist at the entry stamp, so it rides a
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# spec: lifecycle-kit/SPEC.md §check-stage-evidence — consumer-copy PreToolUse(Write|Edit) hook: the stage stamp is bin/enter-stage.sh's to write, and every gate that would catch a hand-stamp fires only at commit
|
|
3
|
+
set -uo pipefail
|
|
4
|
+
|
|
5
|
+
# shellcheck disable=SC2034 # consumed by the sourced lib/guard.sh (guard_block)
|
|
6
|
+
GUARD_NAME="workflow-state-guard"
|
|
7
|
+
GUARD_KIT_LIB="${GUARD_KIT_LIB:-guard-kit/lib/guard.sh}"
|
|
8
|
+
[[ -f "$GUARD_KIT_LIB" ]] || exit 0
|
|
9
|
+
# shellcheck source=/dev/null # vendored lib path is resolved at runtime; fail-open above if absent, but the lib's own exit 2 (set-but-missing config) must stay loud
|
|
10
|
+
source "$GUARD_KIT_LIB"
|
|
11
|
+
|
|
12
|
+
STATE_FILE="${GATE_SDK_WORKFLOW_DIR:-.workflow}/WORKFLOW-STATE.txt"
|
|
13
|
+
|
|
14
|
+
input="$(cat 2>/dev/null || true)"
|
|
15
|
+
|
|
16
|
+
# spec: guard-kit/SPEC.md §The guard framework — fail-open-but-loud: the rule turns on a payload field and on path resolution, so a call it cannot judge is allowed with an advisory naming the unenforced rule; guard_advise is itself jq-backed, so this branch emits the envelope directly rather than reaching for a primitive its own trigger disabled
|
|
17
|
+
if ! command -v jq >/dev/null 2>&1 || ! command -v readlink >/dev/null 2>&1; then
|
|
18
|
+
printf '%s\n' '{"hookSpecificOutput":{"hookEventName":"PreToolUse","additionalContext":"workflow-state-guard: jq or readlink is unavailable, so the direct-edit rule for the lifecycle state file could not be enforced on this call. That file has one sanctioned writer, lifecycle-kit bin/enter-stage.sh."}}'
|
|
19
|
+
exit 0
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
path="$(guard_read_path <<<"$input")" || exit 0
|
|
23
|
+
|
|
24
|
+
# spec: lifecycle-kit/SPEC.md §check-stage-evidence — resolved comparison, never textual: an absolute path, a ./ prefix and a path reaching the file through a symlinked directory all name one file, and a textual match catches only the spelling it was written against
|
|
25
|
+
_resolve() { readlink -f -- "$1" 2>/dev/null || printf '%s' "${1#./}"; }
|
|
26
|
+
|
|
27
|
+
[[ "$(_resolve "$path")" == "$(_resolve "$STATE_FILE")" ]] || exit 0
|
|
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-4 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."
|
|
@@ -6,7 +6,9 @@ square-bracket tags (`[blocked-by:]`, `[design-pending]`, `[spec:]`,
|
|
|
6
6
|
`[drain-exempt:]`, `[roadmap:]`, `[precondition-ok:]`, plus the Lessons Learned
|
|
7
7
|
channel's `[attend]` and the consumer-named harvest tags) are the state machine.
|
|
8
8
|
Gates hold the grammar a coding agent selects work by, a
|
|
9
|
-
`queue-index.sh` tool renders the compact selection surface,
|
|
9
|
+
`queue-index.sh` tool renders the compact selection surface, a `queue-counts.sh`
|
|
10
|
+
tool tallies each task section for a status readout, a `queue-edges.sh`
|
|
11
|
+
tool sums the citations pointing *at* an entry, and a `roadmap.sh`
|
|
10
12
|
tool projects the entries curated with `[roadmap:]` onto a generated public page.
|
|
11
13
|
|
|
12
14
|
Why: an agent picks work by *parsing*, not reading — so everything selection
|
|
@@ -62,6 +64,9 @@ bash queue-kit/bin/queue-index.sh # header + active (• r
|
|
|
62
64
|
bash queue-kit/bin/queue-index.sh --collapse-deferred # deferred as a per-### tally
|
|
63
65
|
bash queue-kit/bin/queue-index.sh --extent <slug> # inclusive line range of one entry's subtree
|
|
64
66
|
bash queue-kit/bin/queue-index.sh --icebox-candidates # the closing stage's eviction worklist
|
|
67
|
+
bash queue-kit/bin/queue-counts.sh # "<section><TAB><count>" per task section, in configured order
|
|
68
|
+
bash queue-kit/bin/queue-edges.sh # every live slug with inbound citations, and the entries citing it
|
|
69
|
+
bash queue-kit/bin/queue-edges.sh --inbound <slug> # one slug's inbound set, each edge with its citing line verbatim
|
|
65
70
|
bash queue-kit/bin/lesson-sink.sh <tag> # route a harvested lesson body to its configured sink
|
|
66
71
|
bash queue-kit/bin/roadmap.sh --emit # the public roadmap block, to stdout
|
|
67
72
|
bash queue-kit/bin/roadmap.sh --write # splice it into the configured projection page
|