checkwright 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +687 -90
- package/lib/common/lock.sh +38 -9
- package/lib/common/profile.sh +33 -0
- package/lib/common/recipe.sh +49 -33
- package/lib/diff.sh +64 -0
- package/lib/doctor.sh +67 -42
- package/lib/init.sh +23 -31
- package/lib/uninstall.sh +212 -0
- package/lib/update.sh +34 -0
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +1 -0
- package/payload/canon-kit/SPEC.md +410 -58
- package/payload/canon-kit/checks/check-amendment-queue.sh +1 -0
- package/payload/canon-kit/checks/check-comment-tier.gate +3 -0
- package/payload/canon-kit/checks/check-deprecation-task.gate +3 -0
- package/payload/canon-kit/checks/check-docs-cmd.gate +3 -0
- package/payload/canon-kit/checks/check-docs-link-convention.sh +1 -0
- package/payload/canon-kit/checks/check-install-claim.gate +3 -0
- package/payload/canon-kit/checks/check-knob-citation.gate +3 -0
- package/payload/canon-kit/checks/check-knob-default-coupling.sh +1 -0
- package/payload/canon-kit/checks/check-manifest-count.gate +3 -0
- package/payload/canon-kit/checks/check-manifest-temporal.gate +3 -0
- package/payload/canon-kit/checks/check-md-refs.gate +3 -0
- package/payload/canon-kit/checks/check-measured-claim.gate +3 -0
- package/payload/canon-kit/checks/check-payload-claim.gate +3 -0
- package/payload/canon-kit/checks/check-prose-enum.gate +3 -0
- package/payload/canon-kit/checks/check-prose-tells.sh +1 -0
- package/payload/canon-kit/checks/check-spec-derivable-section.gate +3 -0
- package/payload/canon-kit/checks/check-spec-dod-singleton.gate +3 -0
- package/payload/canon-kit/checks/check-spec-embedded-source.sh +1 -0
- package/payload/canon-kit/checks/check-spec-fence-balance.gate +3 -0
- package/payload/canon-kit/checks/check-spec-pointer.gate +3 -0
- package/payload/canon-kit/checks/check-surface-duplication.sh +1 -0
- package/payload/canon-kit/checks/check-todo-task-liveness.gate +3 -0
- package/payload/canon-kit/checks/check-tracking-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/.workflow/fixture-state.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/bad.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/expect.txt +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/bad/templates/bad-tmpl.sh +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.gate +4 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.rs +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier/good/templates/good-tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +3 -2
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/scripts/canon-config.sh +6 -5
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-deprecation-task.test.sh +4 -3
- package/payload/canon-kit/gate-tests/check-knob-citation.test.sh +2 -2
- package/payload/canon-kit/gate-tests/check-manifest-count/good/SPEC.md +4 -0
- package/payload/canon-kit/gate-tests/check-manifest-count.test.sh +27 -5
- package/payload/canon-kit/gate-tests/check-md-refs.test.sh +61 -9
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/SPEC.md +12 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/SPEC.md +23 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-measured-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-measured-claim.test.sh +90 -0
- package/payload/canon-kit/gate-tests/check-prose-enum.test.sh +3 -3
- package/payload/canon-kit/gate-tests/check-spec-dod-singleton.test.sh +21 -7
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/.workflow/fixture-state.txt +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-spec-pointer/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/bad.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/bad/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/.workflow/fixture-state.txt +3 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/expect.txt +1 -1
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.gate +2 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/good.rs +4 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/templates/tmpl.sh +5 -0
- package/payload/canon-kit/gate-tests/check-tracking-claim.test.sh +1 -2
- package/payload/canon-kit/lib/spec.sh +91 -62
- package/payload/canon-kit/smoke/install.sh +1 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +4 -1
- package/payload/context-kit/README.md +4 -1
- package/payload/context-kit/SPEC.md +143 -10
- package/payload/context-kit/bin/env-probe.sh +19 -6
- package/payload/context-kit/checks/check-brevity.sh +1 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +1 -0
- package/payload/context-kit/checks/check-memory-off.sh +1 -0
- package/payload/context-kit/checks/check-settings-paths.sh +94 -0
- package/payload/context-kit/checks/check-settings-pins.sh +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/expect.txt +3 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/settings.json +12 -0
- package/payload/context-kit/gate-tests/check-settings-paths/bad/tools/real-tool.sh +4 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/args +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/expect.txt +1 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/settings.json +16 -0
- package/payload/context-kit/gate-tests/check-settings-paths/good/tools/real-tool.sh +4 -0
- package/payload/context-kit/index-tests/expected/toolfloor.txt +9 -0
- package/payload/context-kit/index-tests/toolfloor-cases.sh +20 -0
- package/payload/context-kit/lib/toolfloor.sh +15 -4
- package/payload/context-kit/smoke/agents-md.sh +12 -1
- package/payload/context-kit/smoke/install.sh +1 -0
- package/payload/delegation-kit/README.md +3 -3
- package/payload/delegation-kit/SPEC.md +116 -13
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +1 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -0
- package/payload/delegation-kit/checks/check-rule-citation.sh +1 -0
- package/payload/delegation-kit/templates/agent-execution.md +38 -14
- package/payload/delegation-kit/templates/statusline-usage.sh +23 -1
- package/payload/doctrine-kit/DOCTRINE.md +86 -12
- package/payload/doctrine-kit/README.md +7 -3
- package/payload/doctrine-kit/SPEC.md +102 -9
- package/payload/doctrine-kit/bin/install-doctrine.sh +83 -13
- package/payload/doctrine-kit/checks/check-doctrine-registration.sh +41 -11
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/bad/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration/good/DOCTRINE.md +3 -0
- package/payload/doctrine-kit/gate-tests/check-doctrine-registration.test.sh +82 -2
- package/payload/doctrine-kit/smoke/install.sh +90 -0
- package/payload/drift-kit/SPEC.md +13 -4
- package/payload/drift-kit/bin/kfric.sh +21 -2
- package/payload/drift-kit/smoke/install.sh +28 -0
- package/payload/evidence-kit/checks/check-battery-roster.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-baseline.sh +1 -0
- package/payload/evidence-kit/checks/check-evidence-manifest.sh +1 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +1 -0
- package/payload/gate-sdk/README.md +13 -0
- package/payload/gate-sdk/SPEC.md +2611 -151
- package/payload/gate-sdk/bin/build-native.sh +38 -0
- package/payload/gate-sdk/bin/enforcement-map.sh +2 -1
- package/payload/gate-sdk/bin/gen-pre-commit.sh +23 -3
- package/payload/gate-sdk/bin/port-blockers.sh +445 -0
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +8 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +26 -5
- package/payload/gate-sdk/bin/run-gates.sh +8 -2
- package/payload/gate-sdk/bin/upgrade-smoke.sh +52 -4
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +1 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +1 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -0
- package/payload/gate-sdk/checks/check-assertion-strength.gate +3 -0
- package/payload/gate-sdk/checks/check-commit-msg.sh +1 -0
- package/payload/gate-sdk/checks/check-commit-subject.sh +1 -0
- package/payload/gate-sdk/checks/check-core-files.sh +1 -0
- package/payload/gate-sdk/checks/check-crate-arms.sh +61 -0
- package/payload/gate-sdk/checks/check-enforcement-fresh.sh +1 -0
- package/payload/gate-sdk/checks/check-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +31 -6
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +2 -1
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fail-closed.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-fixture-coverage.sh +1 -0
- package/payload/gate-sdk/checks/check-gate-output.sh +33 -3
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +36 -5
- package/payload/gate-sdk/checks/check-graph.sh +1 -0
- package/payload/gate-sdk/checks/check-hook-exec-bit.sh +1 -0
- package/payload/gate-sdk/checks/check-identity.sh +1 -0
- package/payload/gate-sdk/checks/check-install-disposition.sh +92 -0
- package/payload/gate-sdk/checks/check-kit-enum.sh +1 -0
- package/payload/gate-sdk/checks/check-kit-registration.gate +3 -0
- package/payload/gate-sdk/checks/check-readme-roster.sh +1 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +3 -2
- package/payload/gate-sdk/checks/check-root-tiering.sh +1 -0
- package/payload/gate-sdk/checks/check-shellcheck.sh +1 -0
- package/payload/gate-sdk/checks/check-smoke-entry-guard.gate +3 -0
- package/payload/gate-sdk/checks/check-template-copy-parity.sh +1 -0
- package/payload/gate-sdk/checks/check-template-registry-parity.gate +3 -0
- package/payload/gate-sdk/checks/check-test-hermetic.gate +3 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +1 -0
- package/payload/gate-sdk/checks/check-workflow-tiering.sh +2 -1
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/crate/src/lib.rs +12 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/bad/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/Cargo.toml +7 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/crate/src/lib.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-crate-arms/good/scripts/gate-sdk-config.sh +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/expect.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/bad/native/src/gates/native_sample.rs +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/check-native-sample.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-output/good/gates.list +1 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/Cargo.toml +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-output/good/native/src/gates/native_sample.rs +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-output.test.sh +111 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity.test.sh +65 -4
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-delta.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/checks/check-epsilon.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/alpha-kit/smoke/install.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/installer/lib/common/recipe.sh +9 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/bad/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-alpha.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-beta.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/checks/check-gamma.sh +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/alpha-kit/smoke/install.sh +8 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/args +6 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/expect.txt +1 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/installer/lib/common/recipe.sh +10 -0
- package/payload/gate-sdk/gate-tests/check-install-disposition/good/scripts/gate-sdk-config.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-kit-registration.test.sh +6 -5
- package/payload/gate-sdk/gate-tests/check-test-hermetic-smoke.test.sh +2 -3
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +111 -1
- package/payload/gate-sdk/gate-tests/run-dispatch-streams.test.sh +73 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +24 -12
- package/payload/gate-sdk/lib/gate.sh +135 -11
- package/payload/gate-sdk/lib/inject.sh +25 -0
- package/payload/gate-sdk/lib/test-hermetic.sh +26 -0
- package/payload/gate-sdk/smoke/install.sh +42 -0
- package/payload/guard-kit/README.md +14 -11
- package/payload/guard-kit/SPEC.md +278 -62
- package/payload/guard-kit/bin/run-guard-tests.sh +1 -0
- package/payload/guard-kit/gate-tests/guard-read-path.test.sh +52 -0
- package/payload/guard-kit/guard-tests/cases.tsv +49 -7
- package/payload/guard-kit/lib/guard.sh +276 -54
- package/payload/guard-kit/templates/close-triage.md +5 -5
- package/payload/guard-kit/templates/settings-hooks.json +7 -1
- package/payload/lifecycle-kit/README.md +11 -1
- package/payload/lifecycle-kit/SPEC.md +441 -37
- package/payload/lifecycle-kit/bin/cite-survey.sh +81 -0
- package/payload/lifecycle-kit/bin/enter-stage.sh +126 -10
- package/payload/lifecycle-kit/bin/file-gap.sh +27 -10
- package/payload/lifecycle-kit/bin/file-survey.sh +21 -2
- package/payload/lifecycle-kit/checks/check-close-surfaces.sh +1 -0
- package/payload/lifecycle-kit/checks/check-gap-inbox-neutrality.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lesson-disposition.gate +3 -0
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.gate +3 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.gate +3 -0
- package/payload/lifecycle-kit/checks/check-scratch-citation.gate +3 -0
- package/payload/lifecycle-kit/checks/check-shim-restatement.gate +3 -0
- package/payload/lifecycle-kit/checks/check-skill-binding.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-entry.sh +1 -0
- package/payload/lifecycle-kit/checks/check-stage-evidence.gate +3 -0
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.gate +3 -0
- package/payload/lifecycle-kit/checks/check-survey-record.gate +3 -0
- package/payload/lifecycle-kit/gate-tests/check-close-surfaces.test.sh +1 -2
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/expect.txt +3 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/bad/gap-inbox.md +5 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/args +2 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-gap-inbox-neutrality/good/gap-inbox.md +4 -0
- package/payload/lifecycle-kit/gate-tests/check-lesson-disposition.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-lifecycle-registration.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-merge-attrs.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/bad/surfaces/queue.md +13 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/expect.txt +1 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/scripts/lifecycle-config.sh +4 -0
- package/payload/lifecycle-kit/gate-tests/check-scratch-citation/good/surfaces/queue.md +31 -0
- package/payload/lifecycle-kit/gate-tests/check-shim-restatement.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-skill-binding.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-entry.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/check-stage-evidence.test.sh +9 -5
- package/payload/lifecycle-kit/gate-tests/check-survey-record.test.sh +2 -3
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +54 -26
- package/payload/lifecycle-kit/gate-tests/rename-iteration.test.sh +142 -0
- package/payload/lifecycle-kit/gate-tests/workflow-state-guard.test.sh +100 -0
- package/payload/lifecycle-kit/lib/stages.sh +4 -0
- package/payload/lifecycle-kit/smoke/install.sh +67 -4
- package/payload/lifecycle-kit/templates/lead.md +36 -0
- package/payload/lifecycle-kit/templates/stages/close.md +30 -11
- package/payload/lifecycle-kit/templates/stages/scope.md +9 -4
- package/payload/lifecycle-kit/templates/stages/spec.md +5 -1
- package/payload/lifecycle-kit/templates/workflow-state-guard.sh +29 -0
- package/payload/queue-kit/README.md +3 -1
- package/payload/queue-kit/SPEC.md +123 -3
- package/payload/queue-kit/bin/queue-counts.sh +35 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.gate +3 -0
- package/payload/queue-kit/checks/check-queue-hygiene.gate +3 -0
- package/payload/queue-kit/checks/check-queue-prose-precondition.sh +1 -0
- package/payload/queue-kit/checks/check-queue-sections.gate +3 -0
- package/payload/queue-kit/checks/check-queue-slug-liveness.gate +3 -0
- package/payload/queue-kit/checks/check-queue-wrap.gate +3 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +1 -0
- package/payload/queue-kit/checks/check-tag-lead-line.gate +3 -0
- package/payload/queue-kit/checks/check-task-conservation.gate +4 -0
- package/payload/queue-kit/checks/check-task-names.gate +3 -0
- package/payload/queue-kit/gate-tests/queue-counts.test.sh +116 -0
- package/payload/queue-kit/gate-tests/queue-lib-parity.test.sh +215 -0
- package/payload/queue-kit/lib/queue.sh +4 -19
- package/payload/site-kit/SPEC.md +23 -0
- package/payload/site-kit/checks/check-docs-cname-parity.sh +1 -0
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +1 -0
- package/profiles.list +36 -8
- package/payload/canon-kit/checks/check-comment-tier.sh +0 -216
- package/payload/canon-kit/checks/check-deprecation-task.sh +0 -90
- package/payload/canon-kit/checks/check-docs-cmd.sh +0 -153
- package/payload/canon-kit/checks/check-install-claim.sh +0 -146
- package/payload/canon-kit/checks/check-knob-citation.sh +0 -117
- package/payload/canon-kit/checks/check-manifest-count.sh +0 -46
- package/payload/canon-kit/checks/check-manifest-temporal.sh +0 -83
- package/payload/canon-kit/checks/check-md-refs.sh +0 -128
- package/payload/canon-kit/checks/check-payload-claim.sh +0 -133
- package/payload/canon-kit/checks/check-prose-enum.sh +0 -115
- package/payload/canon-kit/checks/check-spec-derivable-section.sh +0 -69
- package/payload/canon-kit/checks/check-spec-dod-singleton.sh +0 -45
- package/payload/canon-kit/checks/check-spec-fence-balance.sh +0 -42
- package/payload/canon-kit/checks/check-spec-pointer.sh +0 -187
- package/payload/canon-kit/checks/check-todo-task-liveness.sh +0 -80
- package/payload/canon-kit/checks/check-tracking-claim.sh +0 -136
- package/payload/gate-sdk/checks/check-assertion-strength.sh +0 -134
- package/payload/gate-sdk/checks/check-kit-registration.sh +0 -68
- package/payload/gate-sdk/checks/check-smoke-entry-guard.sh +0 -53
- package/payload/gate-sdk/checks/check-template-registry-parity.sh +0 -81
- package/payload/gate-sdk/checks/check-test-hermetic.sh +0 -119
- package/payload/lifecycle-kit/checks/check-lesson-disposition.sh +0 -98
- package/payload/lifecycle-kit/checks/check-lifecycle-registration.sh +0 -54
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +0 -69
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +0 -97
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +0 -59
- package/payload/lifecycle-kit/checks/check-stage-evidence.sh +0 -81
- package/payload/lifecycle-kit/checks/check-stage-skill-coverage.sh +0 -47
- package/payload/lifecycle-kit/checks/check-survey-record.sh +0 -102
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +0 -106
- package/payload/queue-kit/checks/check-queue-hygiene.sh +0 -81
- package/payload/queue-kit/checks/check-queue-sections.sh +0 -44
- package/payload/queue-kit/checks/check-queue-slug-liveness.sh +0 -63
- package/payload/queue-kit/checks/check-queue-wrap.sh +0 -56
- package/payload/queue-kit/checks/check-tag-lead-line.sh +0 -70
- package/payload/queue-kit/checks/check-task-conservation.sh +0 -50
- package/payload/queue-kit/checks/check-task-names.sh +0 -128
|
@@ -182,6 +182,73 @@ than left out — an omitted `model:` resolves to the literal `inherit`, so
|
|
|
182
182
|
omission spells the dispatcher's tier rather than a neutral absence, and
|
|
183
183
|
`check-agent-tier-explicit` is that clause's oracle over the tracked surface.
|
|
184
184
|
|
|
185
|
+
**Isolation's second purpose, and why the cost objection does not land.** The
|
|
186
|
+
template's **A read-only claim is made by isolation, not by sentence** rule
|
|
187
|
+
states the disposition and carries none of its grounds, which are these. "It has
|
|
188
|
+
no Edit tool" is not the safety property it reads as: every agent type available
|
|
189
|
+
for audit-shaped work carries write tools, or at least a shell that reaches
|
|
190
|
+
`git`, so a toolset is never narrowed by the brief describing it. And the
|
|
191
|
+
isolation is not purely a cost — the harness auto-cleans a worktree left
|
|
192
|
+
unchanged, so the worktree survives **iff** the agent was not in fact read-only,
|
|
193
|
+
which makes one mechanism both the confinement and its own detector. Gitignoring
|
|
194
|
+
the worktree path trades that free `git status` signal away, which is why the
|
|
195
|
+
rule's second cost sends the parent to an explicit `git worktree list` at the
|
|
196
|
+
reaping boundary instead.
|
|
197
|
+
|
|
198
|
+
**`worktree.baseRef` is vendor configuration, and choosing it is the consumer's
|
|
199
|
+
job.** The template's **Isolation charges three harness costs, and paying them
|
|
200
|
+
is the parent's job** rule names the knob and both of its values rather than a
|
|
201
|
+
choice, because a vendoring consumer inherits the template and never a settings
|
|
202
|
+
file. A consumer that dispatches isolated agents therefore sets the knob
|
|
203
|
+
deliberately instead of inheriting the default, and — where its harness config is
|
|
204
|
+
gated — pins it, through the general settings-pin mechanism (context-kit/SPEC.md
|
|
205
|
+
§check-settings-pins) rather than anything this kit ships. What is ruled is that
|
|
206
|
+
the value be *chosen*, never which value: a consumer wanting a clean tree per
|
|
207
|
+
dispatch is right to stay on the default. No knob joins delegation-kit's own
|
|
208
|
+
roster for it (§Layout and configuration) — this is harness configuration, not
|
|
209
|
+
kit configuration, and a kit knob shadowing a vendor setting would be a second
|
|
210
|
+
source for one value. Recorded so a later reader does not read the omission as an
|
|
211
|
+
oversight and close it.
|
|
212
|
+
|
|
213
|
+
**Why that cost names a knob and not a measurement.** "The worktree is cut at
|
|
214
|
+
the remote tracking ref, so staleness equals the unpushed backlog" describes the
|
|
215
|
+
`fresh` value alone; stated as universal it is false, and it reached shipped,
|
|
216
|
+
consumer-facing doctrine on seven attestations — every one taken under that
|
|
217
|
+
default, not one of them bearing on whether the behavior was configurable.
|
|
218
|
+
Repeated confirmation of a behavior is not evidence about its mutability, and
|
|
219
|
+
each re-confirmation made the mechanism feel more settled and so suppressed the
|
|
220
|
+
configuration probe that would have settled it. Hence the rule's shape: name the
|
|
221
|
+
knob and both values, and leave any measurement attributed to the configuration
|
|
222
|
+
it was taken under. It follows that no parent "owes the doubt back" for a
|
|
223
|
+
structural defect here — there is none, and the discipline below costs one line
|
|
224
|
+
in a prompt.
|
|
225
|
+
|
|
226
|
+
**The child-side rev discipline is kept as defence in depth, and the first
|
|
227
|
+
ground alone is sufficient.** The parent cannot read the child's *effective*
|
|
228
|
+
setting — `baseRef` resolves on the dispatching machine's merged settings,
|
|
229
|
+
nothing in the dispatch payload carries it and nothing returns it — so a parent
|
|
230
|
+
assuming either value is asserting an unverified premise about a third-party
|
|
231
|
+
tool, which is the move that produced the false doctrine above. Second, a
|
|
232
|
+
vendoring consumer inherits the template and not a settings file, so for every
|
|
233
|
+
consumer that has not set the knob the discipline is the whole protection. Third,
|
|
234
|
+
even a repo that pins the knob is not covered end to end: a managed tier and a
|
|
235
|
+
command-line override outrank a project settings file and lie outside any repo's
|
|
236
|
+
reach. It is also nearly free and self-verifying — one command whose output *is*
|
|
237
|
+
the evidence — so under a holding pin it degrades from load-bearing to a cheap
|
|
238
|
+
assertion rather than becoming dead weight.
|
|
239
|
+
|
|
240
|
+
**The untracked half reaches no configuration at all, and its disposition is
|
|
241
|
+
refusal.** An isolated child sees only committed state, so the third cost is a
|
|
242
|
+
ruling rather than a mitigation: no value of the knob helps and naming a rev does
|
|
243
|
+
not either. Attested twice — a sweep sent to triage an untracked capture log read
|
|
244
|
+
an empty file and reported its corpus absent, and a settings-overlay comparison
|
|
245
|
+
saw no overlay because the local settings file is uncommitted. Both returned a
|
|
246
|
+
confident "nothing there", indistinguishable in shape from a clean result, which
|
|
247
|
+
makes it the worse of the two failure modes. It binds *against* the read-only
|
|
248
|
+
rule rather than beside it: a read-only claim is made by isolation, and isolation
|
|
249
|
+
is what blinds the read, so a claimed-read-only sweep over an untracked corpus
|
|
250
|
+
has no correct form at all.
|
|
251
|
+
|
|
185
252
|
**The dispatch-shape rules are one mechanism, seen from several sides.** The template's **Never dispatch
|
|
186
253
|
a fork to narrow a child**, **A read-only claim is made by isolation, not by
|
|
187
254
|
sentence**, and **A child's only upward route is a durable artifact** rules are
|
|
@@ -677,7 +744,7 @@ three failure modes a raw percentage reading leaves open:
|
|
|
677
744
|
percentage printing OK invites a dispatch the budget may not afford, which
|
|
678
745
|
is what the reroute exists to prevent; a lagging *high* percentage
|
|
679
746
|
suppressed into STALE waves that dispatch through, because STALE is
|
|
680
|
-
advisory and never blocks (§
|
|
747
|
+
advisory and never blocks (§usage-verdict). An unconditional
|
|
681
748
|
reroute closes the first and opens the second, so it must fire on the
|
|
682
749
|
non-blocking outcome only: inside the window an at-or-over reading still
|
|
683
750
|
exits 1 on whichever axis fired, and an under-threshold one still exits 2.
|
|
@@ -864,17 +931,9 @@ overridable via `DELEGATION_KIT_CRED_FILE` / `DELEGATION_KIT_ACCOUNT_CONFIG`).
|
|
|
864
931
|
It ships no `tokens_in` / `tokens_out` producer: this harness's payload
|
|
865
932
|
carries no cumulative token count, so under the dead-producer rule the keys
|
|
866
933
|
stay defined here for third-party producers but no dead producer is shipped.
|
|
867
|
-
Beyond the snapshot write it renders a status bar
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
header, the stage from the lifecycle evidence file's **last data line**. Both
|
|
871
|
-
are repo-root-relative reads in the template's existing hardcode style — a
|
|
872
|
-
consumer-owned template adds no knob. With no cursor to read (no evidence file,
|
|
873
|
-
or one truncated to its preamble at an iteration boundary) the readout degrades
|
|
874
|
-
to the iteration alone rather than printing a dangling separator or a partial
|
|
875
|
-
parse — self-contained ANSI, no external asset
|
|
876
|
-
(§Out of scope). The snapshot write is the contract; the bar is
|
|
877
|
-
reference UX a consumer may restyle or discard. The source is pluggable
|
|
934
|
+
Beyond the snapshot write it renders a status bar (§The statusline template).
|
|
935
|
+
The snapshot write is the contract; the bar is reference UX a consumer may
|
|
936
|
+
restyle or discard. The source is pluggable
|
|
878
937
|
(`DELEGATION_KIT_USAGE_FILE`), so no
|
|
879
938
|
single-operator `CLAUDE_CONFIG_DIR` assumption is baked in.
|
|
880
939
|
|
|
@@ -937,6 +996,50 @@ append-only (the tmp-prune / boundary-truncate conventions own cleanup), and
|
|
|
937
996
|
carries operator-local account identifiers, so it lives under the gitignored
|
|
938
997
|
measurement dir and never reaches a tracked file.
|
|
939
998
|
|
|
999
|
+
### The statusline template
|
|
1000
|
+
|
|
1001
|
+
`templates/statusline-usage.sh` renders model/effort, a context gauge, the 5h
|
|
1002
|
+
and 7d windows with reset countdowns, an `iteration@stage` readout, and a queue
|
|
1003
|
+
counter group. Self-contained ANSI, no external asset (§Out of scope).
|
|
1004
|
+
|
|
1005
|
+
The `iteration@stage` readout's two halves come from two surfaces: the iteration
|
|
1006
|
+
from the queue header, the stage from the lifecycle evidence file's **last data
|
|
1007
|
+
line**. Both are repo-root-relative reads in the template's existing hardcode
|
|
1008
|
+
style — a consumer-owned template adds no knob. With no cursor to read (no
|
|
1009
|
+
evidence file, or one truncated to its preamble at an iteration boundary) the
|
|
1010
|
+
readout degrades to the iteration alone rather than printing a dangling
|
|
1011
|
+
separator or a partial parse.
|
|
1012
|
+
|
|
1013
|
+
**The counter group** is a compact `N12 T3 D48 I7` tally of the queue's task
|
|
1014
|
+
sections, appended last. The template does not know how many sections exist,
|
|
1015
|
+
what they are called, or which tiers the set contains: it runs
|
|
1016
|
+
queue-kit's `bin/queue-counts.sh` and renders whatever
|
|
1017
|
+
`<section-name><TAB><count>` lines come back, labelling each with the initial of
|
|
1018
|
+
the name it was handed (queue-kit/SPEC.md §bin/queue-counts.sh). The section
|
|
1019
|
+
vocabulary therefore stays entirely inside the kit that owns it — there is
|
|
1020
|
+
nothing here for a later editor to hardcode. As soon as two returned names share
|
|
1021
|
+
an initial, **every** label widens to two characters, so a colliding pair stays
|
|
1022
|
+
distinguishable and the group stays aligned rather than only the collision
|
|
1023
|
+
changing width.
|
|
1024
|
+
|
|
1025
|
+
**It is a subprocess call, and that is the contract, not an implementation
|
|
1026
|
+
detail.** The counter's library exits 2 at *source* time on a malformed queue
|
|
1027
|
+
config; sourced into this shell it would take the whole status bar down — model,
|
|
1028
|
+
context gauge, both rate-limit gauges — over a component worth four characters.
|
|
1029
|
+
As a subprocess the same fault is a non-zero exit the render absorbs. An absent
|
|
1030
|
+
or non-executable counter, a non-zero exit, and empty output all drop the group
|
|
1031
|
+
and change nothing else about the bar, matching the two degradations the
|
|
1032
|
+
template already performs (an absent queue file drops the iteration; an absent
|
|
1033
|
+
evidence file drops the `@stage` suffix). The existence guard is kept even
|
|
1034
|
+
though every installer profile carrying this template also carries queue-kit,
|
|
1035
|
+
because a future profile pairing differently would otherwise turn a roster fact
|
|
1036
|
+
into a broken status bar.
|
|
1037
|
+
|
|
1038
|
+
The render cost is one subprocess per statusline fire, which is the kit's most
|
|
1039
|
+
frequent trigger by a wide margin (§The usage.txt contract). A full scan of a
|
|
1040
|
+
~3,600-line queue measures in single-digit milliseconds, so the group needs no
|
|
1041
|
+
cache — recorded so a later session does not add one on suspicion.
|
|
1042
|
+
|
|
940
1043
|
## Trend reporter
|
|
941
1044
|
|
|
942
1045
|
`bin/usage-trend.sh` reads the history log and reports how the footprint
|
|
@@ -995,7 +1098,7 @@ delegation-kit/
|
|
|
995
1098
|
templates/dispatch-checklists.md # deletion/rename/audit pre-flight, reached by a pointer
|
|
996
1099
|
templates/agent-budget-guard.sh # PreToolUse(Agent) budget guard
|
|
997
1100
|
templates/agent-dispatch-guard.sh # PreToolUse(Agent) dispatch-shape guard (D1/D2/D3)
|
|
998
|
-
templates/statusline-usage.sh # push usage.txt producer (statusline hook) + status bar
|
|
1101
|
+
templates/statusline-usage.sh # push usage.txt producer (statusline hook) + status bar incl. the queue counter group
|
|
999
1102
|
templates/usage-poller.sh # poll usage.txt producer (timer-driven, fail-soft)
|
|
1000
1103
|
templates/delegation-config.sh # knob overrides (arrays live here)
|
|
1001
1104
|
smoke/install.sh
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=.claude/agents/*.md dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: delegation-kit/SPEC.md §check-agent-tier-explicit — every agent definition under the scanned directory declares a `model:` field in its frontmatter (an explicit `inherit` passes; only omission reds)
|
|
4
5
|
#
|
|
5
6
|
# usage: check-agent-tier-explicit.sh [agent-dir]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=kit:*.sh dir=one valve=none tier=precommit
|
|
3
|
+
# install: zero-config
|
|
3
4
|
# spec: delegation-kit/SPEC.md §Verify after every agent commit — a gate-weakening commit is blocked by shape (A gate edits stay meta-isolated; B a new path-exemption can't excuse a co-staged file)
|
|
4
5
|
#
|
|
5
6
|
# --fixture <dir> injects staged-files / added-exemptions lists; live mode reads git diff --cached.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# graph: couples=delegation-kit/SPEC.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
|
|
3
|
+
# install: on-surface
|
|
3
4
|
# spec: delegation-kit/SPEC.md §One template, a resident pointer — every `the template's **<name>** rule` citation in SPEC §The delegation model resolves to a template bullet's bold lead-in (forward direction only)
|
|
4
5
|
#
|
|
5
6
|
# usage: check-rule-citation.sh [spec-file [template-file]]
|
|
@@ -86,20 +86,33 @@ drift: do not delete it on sight, and when either rule changes here, propagate.
|
|
|
86
86
|
model). Grounds measured rather than asserted: in one audited iteration ten
|
|
87
87
|
of twenty-four dispatched agents were forks, carrying 20.90 USD of 158.70 USD
|
|
88
88
|
of priced burn.
|
|
89
|
-
- **A read-only claim is made by isolation, not by sentence.** A
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
89
|
+
- **A read-only claim is made by isolation, not by sentence.** A brief saying
|
|
90
|
+
"read-only, no edits" makes no claim: a subagent inherits its toolset from its
|
|
91
|
+
**type**, never from the instruction text. The claim is made by
|
|
92
|
+
`isolation: worktree`. Take it for an agent that *will* commit — an **own
|
|
93
|
+
index**, the **Serialize on shared files** rule above — and for any agent
|
|
94
|
+
*claimed* read-only, as **write confinement**. Grounds for this rule and the
|
|
95
|
+
next: delegation-kit/SPEC.md §The delegation model.
|
|
96
|
+
- **Isolation charges three harness costs, and paying them is the parent's job.**
|
|
97
|
+
**(1) The worktree's base is configuration, and the default is not HEAD.**
|
|
98
|
+
`worktree.baseRef` selects it: `fresh` (the default) branches from
|
|
99
|
+
`origin/<default-branch>`, `head` from the dispatcher's local HEAD. Set it
|
|
100
|
+
deliberately, and pin it, before you design around it. Under `fresh` a child
|
|
101
|
+
reads the *pre-change* tree: read your exposure with
|
|
102
|
+
`git log origin/<default-branch>..HEAD` before dispatching. Naming a commit in
|
|
103
|
+
the prompt does not make the checkout that commit, so state the rev and have
|
|
104
|
+
the child verify it with `git rev-parse HEAD` and read every target with
|
|
105
|
+
`git show <rev>:<path>`. **A child whose target is unreadable at that rev stops
|
|
106
|
+
and says so**, and never falls back to the dispatch prompt's own paraphrase of
|
|
107
|
+
it. **(2) The worktree lands inside the repo and untracked**, so an in-flight
|
|
108
|
+
isolated agent reads as a dirty tree and aborts every clean-tree precondition —
|
|
109
|
+
a consumer smoke, a packaging step, any commit. Gitignore the path, and reap
|
|
110
|
+
agents at the boundary with `git worktree list` rather than off `git status`.
|
|
111
|
+
**(3) An isolated child sees only committed state.** Untracked and gitignored
|
|
112
|
+
files are in no commit, so no base ref reaches them and naming a rev does not
|
|
113
|
+
help. **A sweep whose corpus includes an untracked surface is not delegable to
|
|
114
|
+
an isolated agent**: read that surface yourself, or pass its content in the
|
|
115
|
+
prompt.
|
|
103
116
|
- **One commit per unit, sized to finish within budget.** Each unit gets its own
|
|
104
117
|
commit (+ a `[blocked-by: prior]` tag where ordered). A unit that investigates
|
|
105
118
|
long before its first commit is the only thing an interrupt can destroy —
|
|
@@ -220,6 +233,17 @@ drift: do not delete it on sight, and when either rule changes here, propagate.
|
|
|
220
233
|
semantic weakening inside a legitimate scripts-only commit, so the by-eye diff
|
|
221
234
|
review remains your duty (delegation-kit/SPEC.md §Verify after every agent
|
|
222
235
|
commit — the honest limit).
|
|
236
|
+
- **A child's citation is a pointer to verify, never evidence in itself.** A
|
|
237
|
+
returned `file:line` is not checked by confirming the range resolves: that
|
|
238
|
+
catches a wrong number and misses a wrong spelling, a moved passage, and a
|
|
239
|
+
sibling instance the sweep never reported. **Re-read the passage** in the parent
|
|
240
|
+
before acting on it. Both halves are attested here — a census that fabricated a
|
|
241
|
+
`file:line` and a negative claim, both false; and a re-verification of nineteen
|
|
242
|
+
agent-sourced cites that found no bad ranges yet still surfaced a marker cited
|
|
243
|
+
under a spelling the tree does not use, plus an entire family member the census
|
|
244
|
+
never mentioned. Quotation with attribution is precisely the signal a reader uses
|
|
245
|
+
to decide a claim has already been checked, so an unverified one defeats normal
|
|
246
|
+
trust rather than merely being wrong.
|
|
223
247
|
- **Budget-check before *each* dispatch in a fan-out**, not once at the start.
|
|
224
248
|
`bash delegation-kit/bin/usage-verdict.sh` (verdict exit 0/1/2 from `usage.txt` —
|
|
225
249
|
it folds in the reading-age and window-validity checks so a dead-window pct
|
|
@@ -42,7 +42,24 @@ _remaining() {
|
|
|
42
42
|
else printf '%dh%dm' "$hours" "$minutes"; fi
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
# spec: delegation-kit/SPEC.md §The statusline template — the section vocabulary is the counter tool's, never this template's: each label is the initial of a name the tool returned, widened to two characters for every counter as soon as two returned names share one, so a colliding pair stays readable and the group stays aligned
|
|
46
|
+
_counters() {
|
|
47
|
+
local name n labels=() nums=() dup=0 out="" i j w=1
|
|
48
|
+
while IFS=$'\t' read -r name n; do
|
|
49
|
+
[ -n "$name" ] && { labels+=("$name"); nums+=("$n"); }
|
|
50
|
+
done <<< "$1"
|
|
51
|
+
[ "${#labels[@]}" -gt 0 ] || return
|
|
52
|
+
for (( i = 0; i < ${#labels[@]}; i++ )); do
|
|
53
|
+
for (( j = i + 1; j < ${#labels[@]}; j++ )); do
|
|
54
|
+
[ "${labels[i]:0:1}" = "${labels[j]:0:1}" ] && dup=1
|
|
55
|
+
done
|
|
56
|
+
done
|
|
57
|
+
[ "$dup" -eq 1 ] && w=2
|
|
58
|
+
for (( i = 0; i < ${#labels[@]}; i++ )); do out+="${out:+ }${labels[i]:0:$w}${nums[i]}"; done
|
|
59
|
+
printf '%s' "$out"
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
ITER=""; STAGE=""; COUNTS=""
|
|
46
63
|
ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
|
|
47
64
|
if [ -n "$ROOT" ] && [ -f "$ROOT/TASK-QUEUE.md" ]; then
|
|
48
65
|
HEADER=$(grep -m1 '^## Iteration:' "$ROOT/TASK-QUEUE.md")
|
|
@@ -52,6 +69,10 @@ fi
|
|
|
52
69
|
if [ -n "$ROOT" ] && [ -f "$ROOT/.workflow/WORKFLOW-STATE.txt" ]; then
|
|
53
70
|
STAGE=$(awk '/^---[[:space:]]*$/ { f = 1; next } f && NF { l = $2 } END { print l }' "$ROOT/.workflow/WORKFLOW-STATE.txt")
|
|
54
71
|
fi
|
|
72
|
+
# spec: delegation-kit/SPEC.md §The statusline template — a subprocess and never a source: the counter's library exits 2 at source time on a malformed queue config, which in this shell would take the whole status bar down for a component worth four characters
|
|
73
|
+
if [ -n "$ROOT" ] && [ -x "$ROOT/queue-kit/bin/queue-counts.sh" ]; then
|
|
74
|
+
COUNTS=$(bash "$ROOT/queue-kit/bin/queue-counts.sh" 2>/dev/null) || COUNTS=""
|
|
75
|
+
fi
|
|
55
76
|
|
|
56
77
|
USAGE_FILE="${DELEGATION_KIT_USAGE_FILE:-${CLAUDE_CONFIG_DIR:-$HOME/.claude}/usage.txt}"
|
|
57
78
|
CRED_FILE="${DELEGATION_KIT_CRED_FILE:-${USAGE_FILE%/*}/.credentials.json}"
|
|
@@ -76,4 +97,5 @@ SB="[${MODEL:-?}${EFFORT:+-$EFFORT}]·ctx $(_gauge "$CTX")"
|
|
|
76
97
|
SB="$SB·5h $(_gauge "${FIVE_H:-0}")"; [ -n "$FIVE_H_RESETS" ] && SB="$SB $(_remaining "$FIVE_H_RESETS")"
|
|
77
98
|
[ -n "$SEVEN_D" ] && { SB="$SB·7d $(_gauge "$SEVEN_D")"; [ -n "$SEVEN_D_RESETS" ] && SB="$SB $(_remaining "$SEVEN_D_RESETS")"; }
|
|
78
99
|
[ -n "$ITER" ] && SB="$SB·⟳ ${ITER}${STAGE:+@$STAGE}"
|
|
100
|
+
[ -n "$COUNTS" ] && { GROUP=$(_counters "$COUNTS"); [ -n "$GROUP" ] && SB="$SB·$GROUP"; }
|
|
79
101
|
printf '%s\n' "$SB"
|
|
@@ -25,6 +25,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
25
25
|
ground truth. One owner means one thing to keep true.
|
|
26
26
|
*Enforced by:* the anti-restatement gate family — the comment-tier and
|
|
27
27
|
manifest/prose gates in [canon-kit/SPEC.md](../canon-kit/SPEC.md).
|
|
28
|
+
*Digest:* one content tier per surface; point, never restate.
|
|
28
29
|
|
|
29
30
|
2. **Enforcement-first.** On any fix or redundancy finding, name the defect
|
|
30
31
|
class *and* the mechanism that catches it, and land both in one unit; a green
|
|
@@ -57,6 +58,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
57
58
|
a gate is the only carrier of intent that survives a fresh context window.
|
|
58
59
|
*Enforced by:* the meta-gate contracts every gate must satisfy —
|
|
59
60
|
[gate-sdk/SPEC.md](../gate-sdk/SPEC.md).
|
|
61
|
+
*Digest:* the fix and the gate that catches it land in one unit; removing the duplication outranks gating it.
|
|
60
62
|
|
|
61
63
|
3. **De-literalization.** Prose cites names; code or the owning SPEC owns values.
|
|
62
64
|
Knob defaults, shared constants, and derivable rosters are stated once at
|
|
@@ -83,6 +85,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
83
85
|
`internal-identifier-restatement` seed member of the close-stage audit
|
|
84
86
|
roster (`.workflow/audit-roster.txt`), a stated authoring duty due on
|
|
85
87
|
heavy-SPEC contract edits and at release prep.
|
|
88
|
+
*Digest:* prose cites names; code or the owning SPEC owns values.
|
|
86
89
|
|
|
87
90
|
4. **Derivation-first.** A fact a tool can derive from the tree is derived at
|
|
88
91
|
use time, never maintained as its own surface. The ladder: derive; else
|
|
@@ -104,6 +107,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
104
107
|
[gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §check-graph, and the
|
|
105
108
|
bare-cardinal gate in [canon-kit/SPEC.md](../canon-kit/SPEC.md)
|
|
106
109
|
§check-manifest-count.
|
|
110
|
+
*Digest:* derive the derivable (a roster, a count), never maintain it; a needed copy is generated and freshness-gated.
|
|
107
111
|
|
|
108
112
|
5. **Always-loaded shape.** A rule in the always-loaded agent file is one line —
|
|
109
113
|
the convention plus a pointer; its mechanism, rosters, and defaults live
|
|
@@ -113,6 +117,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
113
117
|
task; a one-line pointer pays once and loads the detail only when needed.
|
|
114
118
|
*Enforced by:* the brevity budget in
|
|
115
119
|
[context-kit/SPEC.md](../context-kit/SPEC.md) §The brevity gate.
|
|
120
|
+
*Digest:* one line per rule here; the mechanism behind the pointer.
|
|
116
121
|
|
|
117
122
|
6. **Load-trigger residency.** The always-loaded file earns a rule only when no
|
|
118
123
|
stage, skill, or tool-call trigger exists to load it; anything a trigger can
|
|
@@ -124,6 +129,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
124
129
|
[lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) and the tool-call hook seam in
|
|
125
130
|
[guard-kit/SPEC.md](../guard-kit/SPEC.md), which give every triggered rule a home
|
|
126
131
|
that loads on demand.
|
|
132
|
+
*Digest:* resident only when no stage, skill, or tool loads it.
|
|
127
133
|
|
|
128
134
|
7. **Widest-true-tier placement.** A fact lands at the widest tier where it holds
|
|
129
135
|
for every reader of that tier: kit-shipped surface when true for every
|
|
@@ -136,6 +142,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
136
142
|
*Enforced by:* the binding-slot grammar in
|
|
137
143
|
[lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §check-skill-binding, the seam
|
|
138
144
|
marker between kit-shipped and consumer-tracked tiers.
|
|
145
|
+
*Digest:* the widest tier true for every reader of it.
|
|
139
146
|
|
|
140
147
|
8. **Oracle-first.** A check's output is its interface: run the gate instead of
|
|
141
148
|
emulating it, and treat a red run — including a red commit attempt, where the
|
|
@@ -160,6 +167,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
160
167
|
[gate-sdk/SPEC.md](../gate-sdk/SPEC.md) — the `clean` and `help:` lines are
|
|
161
168
|
written to be that interface — and the targeted-run resolver reachable through
|
|
162
169
|
the generated hook.
|
|
170
|
+
*Digest:* run the gate, never emulate it; a red run is the feedback channel.
|
|
163
171
|
|
|
164
172
|
9. **Spec-over-precedent.** A gate-enforced doc is ground truth: read the
|
|
165
173
|
owner, never mine git history or a prior session's artifacts for how to do
|
|
@@ -176,6 +184,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
176
184
|
a fact with no owner gets one, shrinking the space where history is the
|
|
177
185
|
only oracle. No scanner sees *how* a session derived a choice; this rule
|
|
178
186
|
is judgment with a capture mechanism, not a gate.
|
|
187
|
+
*Digest:* the owner doc is ground truth; history answers what happened, never what is correct.
|
|
179
188
|
|
|
180
189
|
10. **Gap disposition.** A gap a session surfaces but will not close this
|
|
181
190
|
session — a coverage hole, a design defect, an escaping class — is *costed*,
|
|
@@ -198,6 +207,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
198
207
|
queue's Deferred section for design gaps and the knowledge-friction log
|
|
199
208
|
([drift-kit/SPEC.md](../drift-kit/SPEC.md) §The knowledge-friction loop) for
|
|
200
209
|
fact gaps.
|
|
210
|
+
*Digest:* a gap you defer is costed and filed, never flagged-and-skipped.
|
|
201
211
|
|
|
202
212
|
11. **Scope-gated intake.** Delivery work enters only through the scope gate. A
|
|
203
213
|
new initiative raised mid-session — an operator or lead feature request, a
|
|
@@ -222,10 +232,48 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
222
232
|
intake it names is scope's — the survey that bounds an iteration's units
|
|
223
233
|
([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The state machine) — and the
|
|
224
234
|
filed form rides the queue's Deferred section.
|
|
235
|
+
*Digest:* a mid-session initiative is filed as a costed Deferred entry by default, never started; work enters only through scope.
|
|
236
|
+
|
|
237
|
+
12. **Probe-before-assertion.** A claim about the tree, the harness, or a tool's
|
|
238
|
+
behavior that one cheap command would settle is probed before it is
|
|
239
|
+
asserted, and what the probe returned travels with the claim. The bar is
|
|
240
|
+
*availability, not confidence*: a claim is unprobed if a command that would
|
|
241
|
+
have settled it was there to run and was not, however well-reasoned the
|
|
242
|
+
assertion. This is Oracle-first's design-time sibling and the two divide
|
|
243
|
+
cleanly — that rule governs the claim a gate already decides and says run the
|
|
244
|
+
gate; this one governs the claim made at scope, at spec, in a survey, or in a
|
|
245
|
+
dispatch, where no oracle is running and standing one up costs a grep. It
|
|
246
|
+
binds a *relayed* claim as hard as an authored one: forwarding an unverified
|
|
247
|
+
premise is asserting it, and the forwarder owns the probe the originator
|
|
248
|
+
skipped. It binds **outbound** claims too, and that reach does not follow
|
|
249
|
+
from the inward examples: proposing that the operator file a report, open an
|
|
250
|
+
issue, or escalate to a vendor asserts the thing is *unreported* — a claim
|
|
251
|
+
about the world the proposal presumes, and one search from settled. Attested:
|
|
252
|
+
a session drafted a complete vendor bug report and handed it over; the issue
|
|
253
|
+
was already documented upstream, with duplicates. The operator searched, the
|
|
254
|
+
session had not — and that same session had been corrected once that day for
|
|
255
|
+
relaying an unverified premise, so holding the general rule is what failed to
|
|
256
|
+
prevent the outbound instance. That is why the case is named here rather than
|
|
257
|
+
left to be derived from the rule.
|
|
258
|
+
*Under agent work:* an agent's prose reads identically whether it was
|
|
259
|
+
measured or inferred, so an unprobed premise enters the record
|
|
260
|
+
indistinguishable from a verified one and is inherited downstream as settled
|
|
261
|
+
fact. Each hand-off raises its apparent authority without adding evidence,
|
|
262
|
+
and the correction cost lands on whichever later session finally runs the
|
|
263
|
+
command — by which point the claim has shaped the work built on it.
|
|
264
|
+
*Enforced by:* judgment with a capture mechanism, not a gate — whether a
|
|
265
|
+
claim was probed is not machine-decidable (the Enforcement-first
|
|
266
|
+
false-positive carve-out, on Gap disposition's model). Its capture surfaces
|
|
267
|
+
are the survey record's witness discipline and the queue's practice of
|
|
268
|
+
dating premise corrections into entry bodies
|
|
269
|
+
([lifecycle-kit/SPEC.md](../lifecycle-kit/SPEC.md) §The survey record);
|
|
270
|
+
`probe-before-assertion-doctrine` in the queue holds the open question of
|
|
271
|
+
whether any slice of the class is mechanizable.
|
|
272
|
+
*Digest:* a claim one cheap command would settle is probed before it is asserted; relaying an unverified premise is asserting it.
|
|
225
273
|
|
|
226
274
|
## Engineering-craft rules
|
|
227
275
|
|
|
228
|
-
|
|
276
|
+
13. **Spec-invariant test naming.** A test of a spec-mandated invariant encodes
|
|
229
277
|
that invariant in its *name*; the SPEC's test-requirement section owns which
|
|
230
278
|
invariants a test must cover. A spec-clause *comment* on the test is not a
|
|
231
279
|
substitute — it duplicates what the name should carry and rots silently when
|
|
@@ -239,7 +287,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
239
287
|
carry the invariant.
|
|
240
288
|
*Stages:* build, validate
|
|
241
289
|
|
|
242
|
-
|
|
290
|
+
14. **Test from the real consumer's runtime.** Verify a contract from the runtime
|
|
243
291
|
of its real consumer, never a more lenient stand-in; a failure at a higher
|
|
244
292
|
test layer with no failing test at the layer below is a coverage gap in the
|
|
245
293
|
lower layer, closed there first.
|
|
@@ -252,7 +300,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
252
300
|
baseline turns a dropped layer into a red validate.
|
|
253
301
|
*Stages:* build, validate
|
|
254
302
|
|
|
255
|
-
|
|
303
|
+
15. **Inspectable-run discipline.** A component a test or an automation spawns
|
|
256
304
|
must emit a readable log to an inspectable path — never a muted sink; on a
|
|
257
305
|
failure, read that evidence before theorizing. A run you cannot inspect
|
|
258
306
|
barely beats a guess.
|
|
@@ -265,7 +313,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
265
313
|
trusting its self-report.
|
|
266
314
|
*Stages:* build, validate
|
|
267
315
|
|
|
268
|
-
|
|
316
|
+
16. **Rename is a full-surface sweep.** A rename sweeps every surface in
|
|
269
317
|
lockstep — prose, fixtures, and docs, not only the compiler-checked
|
|
270
318
|
identifiers; the done-gate is a text-level completeness check, not the
|
|
271
319
|
type-checker, and an in-progress rename is verified by a completeness scan
|
|
@@ -280,7 +328,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
280
328
|
vocabulary stays with the consumer.
|
|
281
329
|
*Stages:* build
|
|
282
330
|
|
|
283
|
-
|
|
331
|
+
17. **Config edits are merges, not rewrites.** Edit a config or settings file
|
|
284
332
|
with targeted, string-scoped edits, never a full-file write reconstructed
|
|
285
333
|
from a partial read — a whole-file write built from part of the file
|
|
286
334
|
silently drops everything the write did not carry. And validate an
|
|
@@ -297,7 +345,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
297
345
|
gate asserts a given edit was a merge rather than a rewrite.
|
|
298
346
|
*Stages:* build
|
|
299
347
|
|
|
300
|
-
|
|
348
|
+
18. **Re-verify volatile state before a git history rewrite.** Verify HEAD
|
|
301
349
|
(`git log --oneline -3`) before an amend or squash; after a `git reset
|
|
302
350
|
--soft`, re-stage and verify the staged content (`git show :<path>`) before
|
|
303
351
|
committing — the soft reset keeps the old index snapshot; write any `git
|
|
@@ -315,7 +363,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
315
363
|
because each command is legitimate.
|
|
316
364
|
*Stages:* build, close
|
|
317
365
|
|
|
318
|
-
|
|
366
|
+
19. **Entering another repo's tree, read its governance first.** A cross-repo
|
|
319
367
|
edit re-reads that repo's agent file and README and checks its branch
|
|
320
368
|
freshness every time — a second repo's model drifts independently of this
|
|
321
369
|
one's, so a remembered version of its rules is a stale premise.
|
|
@@ -327,7 +375,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
327
375
|
governance was reread.
|
|
328
376
|
*Stages:* build
|
|
329
377
|
|
|
330
|
-
|
|
378
|
+
20. **Naming: drop the qualifier the context supplies — only when every consumer
|
|
331
379
|
has that context.** A name that travels into a flat namespace keeps its
|
|
332
380
|
qualifier; default to the shorter form and reject the vacuous one, but a
|
|
333
381
|
name that loses the context which disambiguated it must carry the qualifier
|
|
@@ -342,7 +390,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
342
390
|
is its written form.
|
|
343
391
|
*Stages:* scope, build
|
|
344
392
|
|
|
345
|
-
|
|
393
|
+
21. **Reuse a co-located consumer's data before designing a new path.** For an
|
|
346
394
|
embedded or co-located actor, first ask whether it can read a co-located
|
|
347
395
|
consumer's already-fetched data before minting a new stream, grant, or
|
|
348
396
|
fetch — a "which path" framing can hide a "no path needed" answer.
|
|
@@ -355,7 +403,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
355
403
|
reaching for an existing owner before minting a second source.
|
|
356
404
|
*Stages:* scope, build
|
|
357
405
|
|
|
358
|
-
|
|
406
|
+
22. **A resolver gate's flagged key is a fork, not a verdict.** A name-resolution
|
|
359
407
|
gate that finds a silent drop has found either dead config to remove *or*
|
|
360
408
|
promised-but-unwired config to build — one signature, opposite fixes; only
|
|
361
409
|
the owning SPEC distinguishes them, so verify intent against the SPEC before
|
|
@@ -371,7 +419,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
371
419
|
never which way it should be closed.
|
|
372
420
|
*Stages:* build
|
|
373
421
|
|
|
374
|
-
|
|
422
|
+
23. **Quiet green, loud red.** A batch runner's success is one summary line
|
|
375
423
|
carrying its scope counts (the count doubling as the roster-collapse
|
|
376
424
|
tripwire); failure output is verbatim and never quiets. Per-item success
|
|
377
425
|
banners are an opt-in reading, not the default — the red path is the
|
|
@@ -385,7 +433,7 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
385
433
|
([gate-sdk/SPEC.md](../gate-sdk/SPEC.md) §run-gates).
|
|
386
434
|
*Stages:* build
|
|
387
435
|
|
|
388
|
-
|
|
436
|
+
24. **An assertion reports the size of the set it ranged over.** A verification a
|
|
389
437
|
session writes — a scan, a probe, a predicate under edit — whose subject is a
|
|
390
438
|
set prints that set's size beside its verdict, because an exit code cannot
|
|
391
439
|
distinguish *asserted and held* from *asserted nothing*: both are zero
|
|
@@ -411,3 +459,29 @@ link — an application of the load-trigger residency rule to the doctrine itsel
|
|
|
411
459
|
something its assertion ranges over is a property of a session act that
|
|
412
460
|
leaves no residue in the tree, so that third stays judgment.
|
|
413
461
|
*Stages:* build, validate
|
|
462
|
+
|
|
463
|
+
25. **A third-party tool's behavior is a configuration question first.** Before
|
|
464
|
+
designing any mitigation around a tool you do not control, probe its
|
|
465
|
+
configuration surface and its issue tracker; a design question is what is
|
|
466
|
+
left after both come back empty. Repeated confirmation of a *behavior* is
|
|
467
|
+
evidence about the behavior and none at all about its *mutability*, so an
|
|
468
|
+
attestation count pushes confidence the wrong way — each re-confirmation
|
|
469
|
+
makes the mechanism feel settled and suppresses the config probe that would
|
|
470
|
+
retire it. The corollary reads the mitigation rather than the tool: a
|
|
471
|
+
workaround that keeps *growing* — more candidates, more unenforceable prose,
|
|
472
|
+
a hand payment per use — is itself evidence of solving the wrong problem,
|
|
473
|
+
because a correct fix converges and this shape accretes. When the workaround
|
|
474
|
+
outgrows the thing it works around, stop and re-probe the premise.
|
|
475
|
+
*Under agent work:* an agent inherits a prior session's symptom evidence as a
|
|
476
|
+
settled mechanism and designs against it, and symptom evidence accumulates
|
|
477
|
+
across sessions without any hand-off ever bearing on whether the symptom is
|
|
478
|
+
configurable — so the premise hardens exactly as the sessions that could
|
|
479
|
+
cheaply falsify it multiply.
|
|
480
|
+
*Enforced by:* judgment, not a gate, and for the reason Probe-before-assertion
|
|
481
|
+
states — whether a session probed a vendor's settings schema leaves no residue
|
|
482
|
+
in the tree. The two divide by *target*: that rule governs a claim about the
|
|
483
|
+
tree or the harness that a local command settles; this one governs a claim
|
|
484
|
+
about an external tool, where the probe leaves the tree entirely. Its capture
|
|
485
|
+
surface is the queue's design-pending tier, where a mitigation's growing
|
|
486
|
+
candidate list is the readable signal the corollary names.
|
|
487
|
+
*Stages:* scope, spec, build
|
|
@@ -13,12 +13,16 @@ doctrine upgrade. See [SPEC.md](SPEC.md#the-doctrine-deliverable) for why that
|
|
|
13
13
|
reference-not-copy boundary is the mechanism.
|
|
14
14
|
|
|
15
15
|
The installer — `bin/install-doctrine.sh` — inserts or replaces the reference
|
|
16
|
-
block between fixed markers, idempotently.
|
|
16
|
+
block between fixed markers, idempotently. It does not carry the digest: each
|
|
17
|
+
bullet is derived from the summary its rule states in a `*Digest:*` trailer, so
|
|
18
|
+
the digest names every methodology rule by construction and a rule cannot land
|
|
19
|
+
in the doctrine but miss the block every consumer installs. The gate —
|
|
17
20
|
`check-doctrine-registration` — holds the block honest: it asserts the
|
|
18
21
|
always-loaded file carries the markdown link *and* keeps its methodology-rule
|
|
19
22
|
digest in per-rule lockstep with the doctrine (each rule digested or declared
|
|
20
|
-
trimmed, no digest bullet orphaned), and
|
|
21
|
-
well-formed `*Stages:*` routing
|
|
23
|
+
trimmed, no digest bullet orphaned), and that each rule carries its one
|
|
24
|
+
well-formed per-rule trailer — `*Stages:*` routing on the craft register,
|
|
25
|
+
`*Digest:*` on the methodology register — fail-closed when a scanned file or
|
|
22
26
|
heading is missing.
|
|
23
27
|
|
|
24
28
|
The emitter — `bin/stage-rules.sh <stage>` — reads those trailers and prints the
|