checkwright 0.20.0 → 0.22.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 +385 -19
- package/lib/common/digest.sh +18 -0
- package/lib/common/lock.sh +11 -0
- package/lib/common/recipe.sh +8 -11
- package/lib/doctor.sh +49 -0
- package/lib/init.sh +152 -29
- 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 +1 -0
- package/payload/canon-kit/SPEC.md +281 -26
- package/payload/canon-kit/checks/check-comment-tier.sh +7 -2
- package/payload/canon-kit/checks/check-docs-link-convention.sh +11 -4
- package/payload/canon-kit/checks/check-md-refs.sh +22 -9
- package/payload/canon-kit/checks/check-payload-claim.sh +133 -0
- package/payload/canon-kit/checks/check-prose-enum.sh +1 -1
- package/payload/canon-kit/checks/check-spec-pointer.sh +15 -4
- package/payload/canon-kit/gate-tests/check-comment-tier/good/good.sh +3 -0
- package/payload/canon-kit/gate-tests/check-comment-tier.test.sh +26 -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-manifest-count.test.sh +5 -3
- 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 +24 -1
- package/payload/canon-kit/gate-tests/check-spec-pointer/bad/expect.txt +1 -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/widget.sh +1 -0
- package/payload/canon-kit/lib/spec.sh +22 -12
- package/payload/canon-kit/smoke/install.sh +20 -1
- package/payload/canon-kit/templates/SPEC-amendment.md +5 -1
- package/payload/context-kit/SPEC.md +38 -7
- package/payload/context-kit/lib/toolfloor.sh +1 -1
- package/payload/context-kit/smoke/install.sh +3 -1
- package/payload/delegation-kit/README.md +2 -1
- package/payload/delegation-kit/SPEC.md +590 -48
- package/payload/delegation-kit/bin/run-dispatch-guard-tests.sh +97 -0
- package/payload/delegation-kit/checks/check-agent-tier-explicit.sh +61 -0
- package/payload/delegation-kit/checks/check-gate-tamper.sh +1 -1
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/agents/silent.md +7 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/args +1 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/bad/expect.txt +1 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-cheap.md +7 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/agents/explicit-inherit.md +8 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/args +1 -0
- package/payload/delegation-kit/gate-tests/check-agent-tier-explicit/good/expect.txt +1 -0
- package/payload/delegation-kit/lib/delegation.sh +3 -0
- package/payload/delegation-kit/smoke/install.sh +3 -1
- package/payload/delegation-kit/templates/agent-dispatch-guard.sh +61 -0
- package/payload/delegation-kit/templates/agent-execution.md +171 -15
- package/payload/delegation-kit/templates/delegation-config.sh +4 -0
- package/payload/delegation-kit/templates/dispatch-checklists.md +1 -1
- package/payload/delegation-kit/usage-tests/dispatch-guard-cases.tsv +30 -0
- package/payload/doctrine-kit/DOCTRINE.md +27 -0
- package/payload/doctrine-kit/README.md +5 -0
- package/payload/doctrine-kit/SPEC.md +62 -3
- package/payload/doctrine-kit/bin/install-doctrine.sh +84 -4
- package/payload/doctrine-kit/smoke/install.sh +77 -1
- package/payload/drift-kit/README.md +3 -2
- package/payload/drift-kit/SPEC.md +253 -20
- 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 +155 -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 +86 -0
- package/payload/evidence-kit/checks/check-producer-liveness.sh +34 -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 +4 -1
- package/payload/gate-sdk/SPEC.md +1955 -79
- package/payload/gate-sdk/bin/gen-pre-commit.sh +13 -3
- package/payload/gate-sdk/bin/run-consumer-smoke.sh +121 -1
- package/payload/gate-sdk/bin/run-gate-tests.sh +40 -9
- package/payload/gate-sdk/bin/run-gates.sh +32 -3
- package/payload/gate-sdk/bin/upgrade-smoke.sh +3 -3
- package/payload/gate-sdk/checks/check-action-gh-repo.gate +2 -0
- package/payload/gate-sdk/checks/check-action-pinning.gate +2 -0
- package/payload/gate-sdk/checks/check-action-run-shell.sh +3 -1
- package/payload/gate-sdk/checks/check-core-files.sh +27 -4
- package/payload/gate-sdk/checks/check-exec-bit.sh +20 -1
- package/payload/gate-sdk/checks/check-gate-binary-fresh.sh +106 -0
- package/payload/gate-sdk/checks/check-gate-exemption-tasks.sh +6 -7
- package/payload/gate-sdk/checks/check-gate-output.sh +9 -1
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +302 -0
- package/payload/gate-sdk/checks/check-graph.sh +7 -8
- package/payload/gate-sdk/checks/check-readme-roster.sh +5 -0
- package/payload/gate-sdk/checks/check-reads-couples.sh +73 -22
- package/payload/gate-sdk/checks/check-template-registry-parity.sh +81 -0
- package/payload/gate-sdk/checks/check-tree-terms.sh +11 -7
- 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-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-sample.sh +1 -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-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 +123 -0
- 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/lib-declaration.test.sh +4 -4
- package/payload/gate-sdk/gate-tests/lib-gate.test.sh +41 -1
- package/payload/gate-sdk/gate-tests/run-gate-tests.test.sh +144 -0
- package/payload/gate-sdk/lib/consumer-smoke.sh +26 -1
- package/payload/gate-sdk/lib/gate.sh +104 -13
- package/payload/gate-sdk/lib/inject.sh +21 -1
- package/payload/gate-sdk/smoke/install.sh +19 -1
- package/payload/guard-kit/README.md +4 -3
- package/payload/guard-kit/SPEC.md +88 -10
- package/payload/guard-kit/bin/compare-settings-allow.sh +40 -7
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +64 -0
- package/payload/guard-kit/lib/guard.sh +1 -0
- package/payload/guard-kit/templates/close-triage.md +35 -7
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/lifecycle-kit/README.md +1 -0
- package/payload/lifecycle-kit/SPEC.md +589 -33
- package/payload/lifecycle-kit/bin/enter-stage.sh +13 -3
- package/payload/lifecycle-kit/bin/file-gap.sh +42 -1
- package/payload/lifecycle-kit/bin/file-survey.sh +50 -0
- package/payload/lifecycle-kit/checks/check-merge-attrs.sh +1 -1
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +1 -1
- package/payload/lifecycle-kit/checks/check-survey-record.sh +102 -0
- 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 +1 -0
- 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 +84 -0
- package/payload/lifecycle-kit/gate-tests/file-gap-recurrence.test.sh +94 -0
- package/payload/lifecycle-kit/gate-tests/survey-record-entry.test.sh +102 -0
- package/payload/lifecycle-kit/lib/stages.sh +8 -2
- package/payload/lifecycle-kit/smoke/install.sh +17 -1
- package/payload/lifecycle-kit/templates/consult.md +73 -0
- package/payload/lifecycle-kit/templates/lead.md +141 -10
- 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 +25 -4
- package/payload/lifecycle-kit/templates/stages/scope.md +34 -0
- package/payload/lifecycle-kit/templates/stages/spec.md +8 -0
- package/payload/lifecycle-kit/templates/stages/validate.md +8 -0
- package/payload/queue-kit/README.md +4 -1
- package/payload/queue-kit/SPEC.md +230 -6
- package/payload/queue-kit/bin/queue-edges.sh +78 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +5 -3
- package/payload/queue-kit/gate-tests/check-queue-hygiene/good/TASK-QUEUE.md +5 -0
- package/payload/queue-kit/gate-tests/queue-edges.test.sh +130 -0
- 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 +135 -29
- package/payload/site-kit/checks/check-docs-render-fidelity.sh +100 -27
- package/payload/site-kit/gate-tests/check-docs-render-fidelity-batch.test.sh +158 -0
- package/payload/site-kit/lib/site.sh +16 -2
- package/payload/site-kit/smoke/install.sh +9 -1
- package/payload/gate-sdk/checks/check-action-gh-repo.sh +0 -321
- package/payload/gate-sdk/checks/check-action-pinning.sh +0 -55
|
@@ -51,6 +51,9 @@ declare -p LIFECYCLE_KIT_SHIM_DEDUP_CORPUS &>/dev/null || LIFECYCLE_KIT_SHIM_DED
|
|
|
51
51
|
[[ -v LIFECYCLE_KIT_STATE_FILE ]] || LIFECYCLE_KIT_STATE_FILE="${GATE_SDK_WORKFLOW_DIR:-.workflow}/WORKFLOW-STATE.txt"
|
|
52
52
|
[[ -v LIFECYCLE_KIT_LESSON_EVIDENCE_FILE ]] || LIFECYCLE_KIT_LESSON_EVIDENCE_FILE="${GATE_SDK_WORKFLOW_DIR:-.workflow}/lesson-evidence.txt"
|
|
53
53
|
[[ -v LIFECYCLE_KIT_GAP_INBOX_FILE ]] || LIFECYCLE_KIT_GAP_INBOX_FILE="${GATE_SDK_WORKFLOW_DIR:-.workflow}/gap-inbox.md"
|
|
54
|
+
[[ -v LIFECYCLE_KIT_SURVEY_RECORD_FILE ]] || LIFECYCLE_KIT_SURVEY_RECORD_FILE="${GATE_SDK_WORKFLOW_DIR:-.workflow}/survey-record.md"
|
|
55
|
+
|
|
56
|
+
[[ -v LIFECYCLE_KIT_RECURRENCE_THRESHOLD ]] || LIFECYCLE_KIT_RECURRENCE_THRESHOLD=2
|
|
54
57
|
|
|
55
58
|
declare -p LIFECYCLE_KIT_CLOSE_SURFACE_GLOBS &>/dev/null || LIFECYCLE_KIT_CLOSE_SURFACE_GLOBS=("*/SPEC.md")
|
|
56
59
|
|
|
@@ -88,9 +91,9 @@ lifecycle_stage_known() {
|
|
|
88
91
|
return 1
|
|
89
92
|
}
|
|
90
93
|
|
|
91
|
-
# spec: lifecycle-kit/SPEC.md §Multi-operator semantics — the iteration-scoped supersede set: exactly the surfaces enter-stage.sh truncates at the iteration boundary (the state file, the kit-owned
|
|
94
|
+
# spec: lifecycle-kit/SPEC.md §Multi-operator semantics — the iteration-scoped supersede set: exactly the surfaces enter-stage.sh truncates at the iteration boundary (the state file, the two kit-owned built-ins, and every LIFECYCLE_KIT_BOUNDARY_TRUNCATE member). Derived here so the installer's .gitattributes block and check-merge-attrs's parity check read one set and cannot drift.
|
|
92
95
|
lifecycle_supersede_set() {
|
|
93
|
-
printf '%s\n' "$LIFECYCLE_KIT_STATE_FILE" "$LIFECYCLE_KIT_LESSON_EVIDENCE_FILE"
|
|
96
|
+
printf '%s\n' "$LIFECYCLE_KIT_STATE_FILE" "$LIFECYCLE_KIT_LESSON_EVIDENCE_FILE" "$LIFECYCLE_KIT_SURVEY_RECORD_FILE"
|
|
94
97
|
local m
|
|
95
98
|
for m in ${LIFECYCLE_KIT_BOUNDARY_TRUNCATE[@]+"${LIFECYCLE_KIT_BOUNDARY_TRUNCATE[@]}"}; do
|
|
96
99
|
printf '%s\n' "$m"
|
|
@@ -134,8 +137,11 @@ _lc_errs=()
|
|
|
134
137
|
[[ -n "$LIFECYCLE_KIT_SKILLS_DIR" ]] || _lc_errs+=("LIFECYCLE_KIT_SKILLS_DIR is empty")
|
|
135
138
|
[[ -n "$LIFECYCLE_KIT_LESSON_EVIDENCE_FILE" ]] || _lc_errs+=("LIFECYCLE_KIT_LESSON_EVIDENCE_FILE is empty")
|
|
136
139
|
[[ -n "$LIFECYCLE_KIT_GAP_INBOX_FILE" ]] || _lc_errs+=("LIFECYCLE_KIT_GAP_INBOX_FILE is empty")
|
|
140
|
+
[[ -n "$LIFECYCLE_KIT_SURVEY_RECORD_FILE" ]] || _lc_errs+=("LIFECYCLE_KIT_SURVEY_RECORD_FILE is empty")
|
|
137
141
|
[[ "$LIFECYCLE_KIT_SHIM_NGRAM" =~ ^[1-9][0-9]*$ ]] \
|
|
138
142
|
|| _lc_errs+=("LIFECYCLE_KIT_SHIM_NGRAM '$LIFECYCLE_KIT_SHIM_NGRAM' is not a positive integer")
|
|
143
|
+
[[ "$LIFECYCLE_KIT_RECURRENCE_THRESHOLD" =~ ^[1-9][0-9]*$ ]] \
|
|
144
|
+
|| _lc_errs+=("LIFECYCLE_KIT_RECURRENCE_THRESHOLD '$LIFECYCLE_KIT_RECURRENCE_THRESHOLD' is not a positive integer")
|
|
139
145
|
[[ "$LIFECYCLE_KIT_SESSION_BOUNDARY" == stage || "$LIFECYCLE_KIT_SESSION_BOUNDARY" == iteration ]] \
|
|
140
146
|
|| _lc_errs+=("LIFECYCLE_KIT_SESSION_BOUNDARY '$LIFECYCLE_KIT_SESSION_BOUNDARY' is neither 'stage' nor 'iteration'")
|
|
141
147
|
lifecycle_stage_known "$LIFECYCLE_KIT_FIRST_STAGE" \
|
|
@@ -9,6 +9,10 @@ cat >> scripts/gates.list <<'EOF'
|
|
|
9
9
|
# lifecycle-kit
|
|
10
10
|
check-stage-evidence
|
|
11
11
|
check-stage-entry
|
|
12
|
+
check-close-surfaces
|
|
13
|
+
check-merge-attrs
|
|
14
|
+
check-lifecycle-registration
|
|
15
|
+
check-survey-record
|
|
12
16
|
EOF
|
|
13
17
|
|
|
14
18
|
if [[ ! -f TASK-QUEUE.md ]]; then
|
|
@@ -38,8 +42,20 @@ cat > .workflow/WORKFLOW-STATE.txt <<EOF
|
|
|
38
42
|
— scope smoke001 $(date +%F)
|
|
39
43
|
EOF
|
|
40
44
|
|
|
45
|
+
# spec: lifecycle-kit/SPEC.md §check-survey-record — file a real block off the seed commit so the
|
|
46
|
+
# gate's registration exercises its actual grammar + rev-existence assertions, not the absent-record
|
|
47
|
+
# inert pass (the optional-surface case that gate is designed never to redden on)
|
|
48
|
+
bash "$SMOKE_KIT_ROOT/bin/file-survey.sh" \
|
|
49
|
+
"smoke: does a freshly vendored install leave a survey record check-survey-record can parse" \
|
|
50
|
+
".workflow/survey-record.md" \
|
|
51
|
+
"bash checks/check-survey-record.sh" \
|
|
52
|
+
"yes — a filed block naming the seed commit parses clean" >/dev/null
|
|
53
|
+
|
|
54
|
+
# spec: lifecycle-kit/README.md §Install — step 4 points the consumer's own always-loaded agent file at the machine; run it on the consumer, not only on a scratch copy, or check-lifecycle-registration has nothing to hold
|
|
55
|
+
bash "$SMOKE_KIT_ROOT/bin/install-lifecycle.sh" >/dev/null
|
|
56
|
+
|
|
41
57
|
bash "$SDK/bin/gen-pre-commit.sh" --write >/dev/null
|
|
42
|
-
bash "$SDK/checks/check-graph.sh" --emit >
|
|
58
|
+
bash "$SDK/checks/check-graph.sh" --emit > scripts/CHECK-GRAPH.html
|
|
43
59
|
|
|
44
60
|
# spec: lifecycle-kit/SPEC.md §bin/enter-stage.sh — exercise enter-stage end-to-end under .tmp (advisory tool, no fixture pair)
|
|
45
61
|
es="$PWD/.tmp/enter-stage-smoke"
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
The `consult` skill — an operator strategy session whose conclusions leave the
|
|
2
|
+
transcript. Not an iteration stage: it invokes no `enter-stage.sh`, stamps no
|
|
3
|
+
`WORKFLOW-STATE.txt`, and holds no cursor, so it may run before an iteration
|
|
4
|
+
opens, between stages, or across an iteration boundary. Exit condition:
|
|
5
|
+
every ruling the operator closed in the session has landed in a governed
|
|
6
|
+
surface, every alternative refused along the way is recorded with the grounds it
|
|
7
|
+
was refused on, and every always-loaded surface those rulings stale is
|
|
8
|
+
corrected, flagged, or filed as work.
|
|
9
|
+
|
|
10
|
+
A consultation that ends with its rulings still in the transcript has not
|
|
11
|
+
exited. That is the failure this skill exists to stop — a strategy session whose
|
|
12
|
+
conclusions the next session re-derives from memory, or never recovers at all.
|
|
13
|
+
|
|
14
|
+
The write authority this skill leans on is **not** the skill's to grant: it
|
|
15
|
+
belongs to the ruling record itself, which states who may record a ruling there
|
|
16
|
+
and under what condition. What this skill adds on top of that authority is
|
|
17
|
+
**obligation**. Any session that closes a ruling with the operator is permitted
|
|
18
|
+
to record it; a consultation has not finished until it has.
|
|
19
|
+
|
|
20
|
+
## Session ritual
|
|
21
|
+
|
|
22
|
+
1. **Read in before proposing anything.** *<entry-reading: the surfaces a
|
|
23
|
+
consultation reads on entry — name paths, not topics. Typically the record of
|
|
24
|
+
closed direction, the work queue, and any context this consumer keeps outside
|
|
25
|
+
the tree; a consultation that skips the last of those re-opens what is
|
|
26
|
+
already settled.>*
|
|
27
|
+
|
|
28
|
+
2. **Land each ruling the moment it closes, never at exit.** The landing target
|
|
29
|
+
is chosen by what the ruling is about, from *<landing-surfaces: the surfaces a
|
|
30
|
+
closed ruling may land on, each with the ruling class it takes — direction and
|
|
31
|
+
refusals, work items, and the contract surfaces a ruling about mechanism
|
|
32
|
+
belongs in. Say which one takes a ruling that fits none of them.>* Landing at
|
|
33
|
+
exit instead is the failure mode itself, one step later: a session that
|
|
34
|
+
batches its rulings to the end loses all of them together when it is
|
|
35
|
+
interrupted.
|
|
36
|
+
|
|
37
|
+
3. **Record a refused alternative beside the ruling that refused it, with its
|
|
38
|
+
grounds.** A refusal recorded without grounds is re-proposed by the next
|
|
39
|
+
session at full cost; a refusal recorded with them is already costed when that
|
|
40
|
+
session reaches for it. Deletion is not disposition — an alternative weighed
|
|
41
|
+
and rejected is *kept*, marked as rejected.
|
|
42
|
+
|
|
43
|
+
4. **Name what the rulings stale.** A ruling that contradicts an always-loaded
|
|
44
|
+
surface leaves that surface teaching the superseded shape to every later
|
|
45
|
+
session, at per-session cost. Correct it in the same session where the edit is
|
|
46
|
+
small and unambiguous; where it is neither, file it as work with the ruling
|
|
47
|
+
cited, so the correction is owed rather than remembered.
|
|
48
|
+
|
|
49
|
+
5. **Journal in flight, and treat a held index as latency rather than loss.**
|
|
50
|
+
Durability is the obligation and this session discharges it by whichever means
|
|
51
|
+
is available — the rule and its two discharge paths are
|
|
52
|
+
`delegation-kit/templates/agent-execution.md`'s **Findings you will act on are
|
|
53
|
+
durable before you act on them** bullet, which reaches this session directly.
|
|
54
|
+
When another session holds the shared index, journal each ruling as it closes
|
|
55
|
+
and commit when the index frees. Waiting is safe only because the finding is
|
|
56
|
+
already durable; waiting without the journal is the transcript failure again,
|
|
57
|
+
wearing a different cause.
|
|
58
|
+
|
|
59
|
+
6. **Dispatch by the delegation protocol, and select the tier every time.** The
|
|
60
|
+
protocol is `delegation-kit/templates/agent-execution.md`, cited and never
|
|
61
|
+
copied — a copy is a second tier of the same content, drifting from the day it
|
|
62
|
+
is written. Tier selection needs its own attention here: an unselected
|
|
63
|
+
dispatch inherits *this* session's tier, and a consultation runs at the
|
|
64
|
+
judgment tier while most of what it dispatches is read-only research, so an
|
|
65
|
+
unselected fan-out buys the most expensive tier for the cheapest work. Name
|
|
66
|
+
the tier in the dispatch, downward by default, and reserve the judgment tier
|
|
67
|
+
for a dispatch that actually rules.
|
|
68
|
+
|
|
69
|
+
The two named slots are where this consumer's own governance layout lives — what
|
|
70
|
+
a consultation reads, and where its rulings land. The kit ships the shape and
|
|
71
|
+
never the surfaces: a consultation has an entry read-set and an exit
|
|
72
|
+
landing-set, and every closed ruling reaches the landing set before the session
|
|
73
|
+
ends.
|
|
@@ -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,14 +196,32 @@ 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
|
|
135
|
-
**resume journal** (a pull channel — delegation-kit's journal mechanics
|
|
136
|
-
|
|
213
|
+
**resume journal** (a pull channel — delegation-kit's journal mechanics own
|
|
214
|
+
the rest). The **message channel** carries only the escalation classes. This
|
|
137
215
|
is how verbosity is controlled: by channel design, not by asking a session to
|
|
138
216
|
be quiet.
|
|
139
217
|
|
|
218
|
+
A pull channel is read, never consumed: the lead **does not delete** a stage
|
|
219
|
+
session's journal, at the post-commit checkpoint or anywhere else. A resumable
|
|
220
|
+
session is still writing to it, and deleting it is how a lead destroys the
|
|
221
|
+
channel it is meant to keep reading for the rest of the unit. It is swept with
|
|
222
|
+
the rest of the scratch dir at the iteration boundary
|
|
223
|
+
(delegation-kit/SPEC.md §Resume journal — agent writes, scratch reset sweeps).
|
|
224
|
+
|
|
140
225
|
## Policy is config, not prose
|
|
141
226
|
|
|
142
227
|
All *standing* dispatch policy — everything true of every dispatch, not the
|
|
@@ -152,6 +237,12 @@ agent-definition points at its owning docs rather than restating them
|
|
|
152
237
|
(content-tiering) — it cites delegation-kit's resume-journal mechanics, say,
|
|
153
238
|
never transcribes them.
|
|
154
239
|
|
|
240
|
+
The rule cuts both ways: policy binding the **lead itself** is standing too, and
|
|
241
|
+
its tracked source is this template rather than the agent definition it
|
|
242
|
+
dispatches. The completion-notification dispatch precondition (§The lead model)
|
|
243
|
+
is standing policy of exactly that kind, named here so it is stated once and not
|
|
244
|
+
re-improvised in each dispatch prompt.
|
|
245
|
+
|
|
155
246
|
*<ruling-config: the tracked agent-definition the lead dispatches and the roster
|
|
156
247
|
it carries — its path, the subagent type the dispatch names, and where the
|
|
157
248
|
ruling classes are stated.>*
|
|
@@ -163,7 +254,19 @@ writes, no evidence files. Every stamp originates in the stage session via
|
|
|
163
254
|
`enter-stage.sh` (lifecycle-kit/SPEC.md §The state machine). Lead-does-stamping
|
|
164
255
|
is ruled out, not merely omitted: it breaks this invariant, and under the
|
|
165
256
|
`stage` posture of `LIFECYCLE_KIT_SESSION_BOUNDARY` a lead stamp is exactly the
|
|
166
|
-
self-reported skip `check-stage-evidence` exists to catch.
|
|
257
|
+
self-reported skip `check-stage-evidence` exists to catch.
|
|
258
|
+
|
|
259
|
+
**The lead stamping nothing is not the batch stamping nothing**, and the two
|
|
260
|
+
read alike from here. A dispatched batch stamps on entry like any stage session:
|
|
261
|
+
an intra-stage split makes the second batch a *session*, not a re-entry to
|
|
262
|
+
suppress, and a sibling stamp naming a stage the cursor already sits on moves
|
|
263
|
+
nothing — the stage skill owns that rule and its gate tolerance
|
|
264
|
+
(lifecycle-kit/templates/stages/build.md). Directing a batch not to stamp is
|
|
265
|
+
therefore not conflict-avoidance; it silently spends the per-session audit trail
|
|
266
|
+
the stamp exists to provide, and no later session can repair it, because
|
|
267
|
+
backdating a stamp falsifies the trail rather than restoring it.
|
|
268
|
+
|
|
269
|
+
An answer that
|
|
167
270
|
amounts to a design ruling is landed **by the stage session**, in the governed
|
|
168
271
|
surface it belongs to (the amendment, the queue entry), *before* the session
|
|
169
272
|
acts on it — and a ruling whose acting session is **not imminent** is filed to
|
|
@@ -187,6 +290,15 @@ consequences:
|
|
|
187
290
|
context is actually common; split where the model tier changes or a
|
|
188
291
|
delegation-kit split trigger fires — per-batch model tiering is the dominant
|
|
189
292
|
window lever, not token counts.
|
|
293
|
+
The set being batched is **every unit the iteration promoted** — every
|
|
294
|
+
top-level entry in the configured active queue sections, debt units as much as
|
|
295
|
+
feature units — never the amendment set. A debt unit converges an
|
|
296
|
+
implementation on existing spec and mints no governed name, so it carries no
|
|
297
|
+
`[spec:]` ref; keying the roster on amendments makes exactly the
|
|
298
|
+
amendment-free half of the queue invisible, and it disappears silently because
|
|
299
|
+
the units that vanish are the ones that left no artifact to miss. Derive the
|
|
300
|
+
roster from the queue, which is the record of what was promoted, and re-read
|
|
301
|
+
it rather than carrying a count.
|
|
190
302
|
- **Tier each batch to its work class.** The lead reads the **work-class**
|
|
191
303
|
labels of the deltas in a batch — via the `[spec:]` amendments the batch's
|
|
192
304
|
entries point at, where `/spec` emits one `{mechanical | design-bearing}` tag
|
|
@@ -209,7 +321,7 @@ consequences:
|
|
|
209
321
|
every assignment when the harness model roster churns.
|
|
210
322
|
- **An intra-stage batch split is the lead's to own.** When a stage's work
|
|
211
323
|
splits into batches, those batches are **N sibling stage sessions the lead
|
|
212
|
-
dispatches and
|
|
324
|
+
dispatches and verifies** — each entering through `enter-stage.sh` as a
|
|
213
325
|
same-stage re-entry (lifecycle-kit/SPEC.md §The state machine: N sessions may
|
|
214
326
|
enter one stage, each leaving its own stamp and the cursor staying put). A stage session **never dispatches a sibling stage session**: a stage
|
|
215
327
|
that sub-dispatches its own batches nests a second supervisor at the lead's
|
|
@@ -242,7 +354,7 @@ consequences:
|
|
|
242
354
|
pointers, not state. Verify the spend afterward with delegation-kit's
|
|
243
355
|
usage-verdict rather than assuming forgiveness.
|
|
244
356
|
- **Suggest a compact at the paying acceptance boundaries.** After a stage
|
|
245
|
-
session's work is accepted — its commits
|
|
357
|
+
session's work is accepted — its commits verified, its rulings landed in
|
|
246
358
|
governed surfaces — and before the next dispatch, the lead *suggests* a
|
|
247
359
|
compact to the operator. Compaction is operator-invoked; the lead can only
|
|
248
360
|
recommend (the honest limit), so the suggestion is one line in the lead's
|
|
@@ -258,7 +370,7 @@ Cache-keepalive pinging is ruled out: at batched escalation rates the idle
|
|
|
258
370
|
re-warm pings cost more than the cold reads they avoid, burn the shared budget
|
|
259
371
|
window, and invite idle-turn drift.
|
|
260
372
|
|
|
261
|
-
## Mechanical floor
|
|
373
|
+
## Mechanical floor
|
|
262
374
|
|
|
263
375
|
Prompts request; guards enforce. The four-header escalation shape has an
|
|
264
376
|
optional guard-kit mechanical floor — a SendMessage guard registered in the
|
|
@@ -269,3 +381,22 @@ kit mechanism; the ruling-class roster stays consumer config (above).
|
|
|
269
381
|
*<escalation-guard: whether this consumer wires the optional guard-kit
|
|
270
382
|
SendMessage guard for its stage sessions, or leaves it inert — the mechanical
|
|
271
383
|
floor and where its opt-in lives.>*
|
|
384
|
+
|
|
385
|
+
The floor under the batching-roster rule is `check-stage-entry`'s drain-entry
|
|
386
|
+
assertion: the drain stage refuses to be entered while the active queue still
|
|
387
|
+
carries entries, so a dropped unit surfaces as a **refused entry** at the next
|
|
388
|
+
stage rather than never. That is a backstop, not the working signal — it costs
|
|
389
|
+
a dispatch to learn from. Read it early and cheaply instead: the `--simulate`
|
|
390
|
+
read §The lead model already names for gating an expensive dispatch, aimed at
|
|
391
|
+
the drain stage, returns the same verdict with no session spent. Run it
|
|
392
|
+
**before** declaring a stage's batches complete, not after — a simulate run
|
|
393
|
+
that follows the declaration confirms the drop instead of preventing it, and a
|
|
394
|
+
roster has already lost a promoted unit in practice. Keying the roster on the
|
|
395
|
+
wrong set is only one way to lose a unit: a plain miscount against the queue
|
|
396
|
+
loses one just as quietly, and neither failure reddens on its own. That is why
|
|
397
|
+
the rule is to re-read the queue rather than to key it differently.
|
|
398
|
+
|
|
399
|
+
The floor's honest limit belongs with it: it fires on the queue's *residue*, so
|
|
400
|
+
it catches a dropped unit and says nothing about a unit batched onto the wrong
|
|
401
|
+
surface or tiered wrongly. Those stay prompt-side — the ordinary
|
|
402
|
+
prompts-request/guards-enforce split rather than a gap.
|
|
@@ -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`
|
|
@@ -71,6 +78,16 @@ deferred-filing model for ruled-but-unpromoted work).
|
|
|
71
78
|
Lessons. The next iteration's scope entry refuses a non-empty inbox
|
|
72
79
|
(§bin/enter-stage.sh), so an undrained gap blocks the boundary rather than
|
|
73
80
|
crossing it silently.
|
|
81
|
+
**Stamp the recurrence, in addition to the disposition.** Resolve each
|
|
82
|
+
bullet's prose against the live slug set yourself — a bullet may carry a
|
|
83
|
+
`recurrence of <slug>:` marker from `bin/file-gap.sh`, but a raw append is a
|
|
84
|
+
legal fallback, so the marker is a convenience and this re-resolution is the
|
|
85
|
+
channel. On a match, append the bullet's date to that entry's `recurrence:`
|
|
86
|
+
declaration (creating the line when absent), in this same queue-writing
|
|
87
|
+
commit — never *instead of* the bullet's own disposition. It is idempotent per
|
|
88
|
+
(slug, date): a slug already carrying today's date gains nothing. A slug that
|
|
89
|
+
resolves only in the done section is not a recurrence — the finding recurred
|
|
90
|
+
after its fix landed, which is a new defect, and it files as one.
|
|
74
91
|
3. **Sweep the inbound triage surfaces** — run `bin/close-surfaces.sh` and
|
|
75
92
|
disposition every row (§The close-surface roster). The roster is derived, not
|
|
76
93
|
enumerated here or in the binding below: a `forced=` row has a structural
|
|
@@ -100,10 +117,14 @@ deferred-filing model for ruled-but-unpromoted work).
|
|
|
100
117
|
execute its release procedure or stamp an explicit no-release line. Silence
|
|
101
118
|
is not a disposition — a close that says nothing about release is incomplete.
|
|
102
119
|
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
|
|
120
|
+
`<iteration> release <version|none|deferred:<version>> — <one-line basis>`
|
|
121
|
+
(the `check-lesson-disposition` contract shape at the release boundary, the
|
|
122
|
+
same lineage release-sweep's stamp follows) — `<version>` is the tag applied,
|
|
123
|
+
`none` states the both-None (or consumer-equivalent) outcome, and
|
|
124
|
+
`deferred:<version>` records criteria that were met while the release was held
|
|
125
|
+
back, flooring the next qualifying note at that version. A consumer's release
|
|
126
|
+
policy may make deferral the default disposition, so this third form is the
|
|
127
|
+
common one under such a policy rather than an exception. Ordering: a tag
|
|
107
128
|
names a commit, so the tag-and-host-release half of the procedure runs *after*
|
|
108
129
|
the iteration's final commit lands; the note-authoring and stamp halves ride
|
|
109
130
|
the close commits themselves.
|
|
@@ -55,6 +55,20 @@ 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. It is scoped to deferred entries
|
|
65
|
+
because promotion is the decision it forces; an entry already active is being
|
|
66
|
+
built. **The collision is decided, not resolved in the theme's favour**: the rule
|
|
67
|
+
does not promote, it puts the unit in front of the authority this stage already
|
|
68
|
+
escalates to. An automatic promotion would be a second intake path around
|
|
69
|
+
scope-gated intake, and the failure this rule answers was never that the ruling
|
|
70
|
+
went the wrong way — it was that the collision never reached anyone.
|
|
71
|
+
|
|
58
72
|
**Weigh the iteration's cost before opening it — the economic composition test.**
|
|
59
73
|
A lone sub-threshold unit may not justify a whole iteration's fixed cost: either
|
|
60
74
|
bundle related-surface deferred entries into the iteration, or argue the unit is
|
|
@@ -64,6 +78,14 @@ lifecycle-kit/templates/lead.md §Economics and applied there to dispatch
|
|
|
64
78
|
batching; scope applies the same principle one axis over, to iteration
|
|
65
79
|
composition. Cite it and weigh it here; do not re-derive the economics.
|
|
66
80
|
|
|
81
|
+
**Scope's censuses are the ones later stages most often re-buy, so record
|
|
82
|
+
them.** A roster built by applying a criterion set to a corpus dies with this
|
|
83
|
+
session's context unless it is written down, and the stage that needs it next
|
|
84
|
+
has no artifact to read. File it, and read the record before dispatching a
|
|
85
|
+
survey of your own: lifecycle-kit/SPEC.md §The survey record owns the block
|
|
86
|
+
grammar, the two-command witness, and the rule that a carried survey is cited
|
|
87
|
+
only while that witness holds.
|
|
88
|
+
|
|
67
89
|
**Authoring the promoted features' amendments is scope's — unless the roster
|
|
68
90
|
splits out a dedicated authoring stage.** Where it does, that stage authors the
|
|
69
91
|
amendment(s) and pairs the feature entries into the queue, and scope keeps only
|
|
@@ -84,6 +106,18 @@ A premise inherited from a queued task ("clean/mechanical", "already filed",
|
|
|
84
106
|
"dead code") is a dated hypothesis — re-verify it against the current tree
|
|
85
107
|
before building on it, whether or not this stage goes on to author.
|
|
86
108
|
|
|
109
|
+
That re-verifies the entry's *own* claims — which is the half a survey already
|
|
110
|
+
reads. The other half is what the **rest of the queue** says about that entry:
|
|
111
|
+
its inbound citations, summed. Reading sibling entries one at a time never
|
|
112
|
+
produces that sum, so a unit that several siblings separately converge on,
|
|
113
|
+
subsume, or block against can be read carefully and still ranked low — the
|
|
114
|
+
failure is aggregation, not retrieval, and no amount of following
|
|
115
|
+
cross-references fixes it. So before ranking a candidate, aggregate its inbound
|
|
116
|
+
edges (queue-kit/SPEC.md §bin/queue-edges.sh) and read what cites it. The
|
|
117
|
+
promotion dividend lives in the total and in no single entry, which is also why
|
|
118
|
+
splitting an entry is safe only against that total: a split scatters an entry's
|
|
119
|
+
weight across siblings, and the sum is what puts it back together.
|
|
120
|
+
|
|
87
121
|
When done, **set the iteration name without waiting for confirmation** and
|
|
88
122
|
inform the user: replace the `—` placeholder in the queue header AND update
|
|
89
123
|
the WORKFLOW-STATE scope stamp to match (`check-stage-evidence` requires
|
|
@@ -57,6 +57,14 @@ 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
70
|
**design-bearing**. A delta is **mechanical** when executing it demands only
|
|
@@ -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
|
|
@@ -6,7 +6,8 @@ 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-edges.sh`
|
|
10
|
+
tool sums the citations pointing *at* an entry, and a `roadmap.sh`
|
|
10
11
|
tool projects the entries curated with `[roadmap:]` onto a generated public page.
|
|
11
12
|
|
|
12
13
|
Why: an agent picks work by *parsing*, not reading — so everything selection
|
|
@@ -62,6 +63,8 @@ bash queue-kit/bin/queue-index.sh # header + active (• r
|
|
|
62
63
|
bash queue-kit/bin/queue-index.sh --collapse-deferred # deferred as a per-### tally
|
|
63
64
|
bash queue-kit/bin/queue-index.sh --extent <slug> # inclusive line range of one entry's subtree
|
|
64
65
|
bash queue-kit/bin/queue-index.sh --icebox-candidates # the closing stage's eviction worklist
|
|
66
|
+
bash queue-kit/bin/queue-edges.sh # every live slug with inbound citations, and the entries citing it
|
|
67
|
+
bash queue-kit/bin/queue-edges.sh --inbound <slug> # one slug's inbound set, each edge with its citing line verbatim
|
|
65
68
|
bash queue-kit/bin/lesson-sink.sh <tag> # route a harvested lesson body to its configured sink
|
|
66
69
|
bash queue-kit/bin/roadmap.sh --emit # the public roadmap block, to stdout
|
|
67
70
|
bash queue-kit/bin/roadmap.sh --write # splice it into the configured projection page
|