checkwright 0.17.0 → 0.18.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.
Files changed (78) hide show
  1. package/package.json +2 -2
  2. package/payload/canon-kit/README.md +1 -0
  3. package/payload/canon-kit/SPEC.md +162 -16
  4. package/payload/canon-kit/checks/check-amendment-queue.sh +17 -16
  5. package/payload/canon-kit/checks/check-install-claim.sh +146 -0
  6. package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +1 -1
  7. package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +1 -1
  8. package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +12 -0
  9. package/payload/canon-kit/gate-tests/check-install-claim/bad/expect.txt +1 -0
  10. package/payload/canon-kit/gate-tests/check-install-claim/bad/install.md +24 -0
  11. package/payload/canon-kit/gate-tests/check-install-claim/bad/posts/note.md +7 -0
  12. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +10 -0
  13. package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/install-transports.sh +7 -0
  14. package/payload/canon-kit/gate-tests/check-install-claim/good/README.md +12 -0
  15. package/payload/canon-kit/gate-tests/check-install-claim/good/expect.txt +1 -0
  16. package/payload/canon-kit/gate-tests/check-install-claim/good/install.md +24 -0
  17. package/payload/canon-kit/gate-tests/check-install-claim/good/posts/note.md +7 -0
  18. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +10 -0
  19. package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/install-transports.sh +7 -0
  20. package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +1 -1
  21. package/payload/canon-kit/lib/spec.sh +32 -2
  22. package/payload/context-kit/SPEC.md +5 -0
  23. package/payload/context-kit/checks/check-footprint-fresh.sh +1 -1
  24. package/payload/delegation-kit/SPEC.md +12 -0
  25. package/payload/drift-kit/README.md +4 -4
  26. package/payload/drift-kit/SPEC.md +58 -5
  27. package/payload/drift-kit/bin/drift-report.sh +14 -11
  28. package/payload/drift-kit/bin/overhead-meter.sh +1 -1
  29. package/payload/drift-kit/kpis/kpi-deferred-age.sh +7 -5
  30. package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +74 -0
  31. package/payload/drift-kit/smoke/install.sh +1 -1
  32. package/payload/gate-sdk/SPEC.md +17 -2
  33. package/payload/lifecycle-kit/README.md +2 -2
  34. package/payload/lifecycle-kit/SPEC.md +57 -34
  35. package/payload/lifecycle-kit/bin/enter-stage.sh +1 -1
  36. package/payload/lifecycle-kit/checks/check-shim-restatement.sh +1 -1
  37. package/payload/lifecycle-kit/checks/check-skill-binding.sh +1 -1
  38. package/payload/lifecycle-kit/templates/{skills → stages}/close.md +8 -8
  39. package/payload/lifecycle-kit/templates/{skills → stages}/scope.md +1 -1
  40. package/payload/queue-kit/README.md +26 -10
  41. package/payload/queue-kit/SPEC.md +463 -32
  42. package/payload/queue-kit/bin/queue-index.sh +62 -11
  43. package/payload/queue-kit/bin/roadmap.sh +76 -0
  44. package/payload/queue-kit/checks/check-queue-entry-budget.sh +104 -0
  45. package/payload/queue-kit/checks/check-roadmap-fresh.sh +110 -0
  46. package/payload/queue-kit/checks/check-tag-lead-line.sh +12 -8
  47. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +33 -0
  48. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +4 -0
  49. package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +6 -0
  50. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +35 -0
  51. package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +6 -0
  52. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +24 -0
  53. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/args +5 -0
  54. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/emit.txt +8 -0
  55. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -0
  56. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/projection.txt +16 -0
  57. package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +6 -0
  58. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +22 -0
  59. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/args +5 -0
  60. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/emit.txt +7 -0
  61. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/expect.txt +1 -0
  62. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/projection.txt +16 -0
  63. package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +6 -0
  64. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +3 -0
  65. package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +1 -0
  66. package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +2 -1
  67. package/payload/queue-kit/gate-tests/queue-index.test.sh +45 -4
  68. package/payload/queue-kit/gate-tests/roadmap.test.sh +197 -0
  69. package/payload/queue-kit/lib/queue.sh +87 -1
  70. package/payload/queue-kit/smoke/install.sh +1 -0
  71. package/payload/queue-kit/templates/TASK-QUEUE.md +1 -1
  72. package/payload/site-kit/SPEC.md +6 -0
  73. /package/payload/lifecycle-kit/templates/{skills/release-sweep.md → release-sweep.md} +0 -0
  74. /package/payload/lifecycle-kit/templates/{skills → stages}/align.md +0 -0
  75. /package/payload/lifecycle-kit/templates/{skills → stages}/build.md +0 -0
  76. /package/payload/lifecycle-kit/templates/{skills → stages}/spec.md +0 -0
  77. /package/payload/lifecycle-kit/templates/{skills → stages}/validate.md +0 -0
  78. /package/payload/lifecycle-kit/templates/{skills/upgrade.md → upgrade.md} +0 -0
@@ -222,10 +222,13 @@ the iteration branch) and every merged tree passed the battery post-reconcile.
222
222
  The kit is vendored beside gate-sdk (conventionally at `lifecycle-kit/`); its
223
223
  gates are registered in the consumer's `gates.list` by name and resolve
224
224
  through gate-sdk's multi-kit path (consumer gates dir first, then each kit's
225
- `checks/`). Stage skills adopt `templates/skills/*.md` in one of two modes —
226
- copied into the consumer's agent-skill directory with each named slot
225
+ `checks/`). The kit's markdown templates are laid out on the stage/boundary axis
226
+ this SPEC classifies them by: `templates/*.md` is exactly the **boundary skills**
227
+ (`lead.md`, `release-sweep.md`, `upgrade.md`), `templates/stages/*.md` exactly
228
+ the stage-class templates. Stage skills adopt `templates/stages/*.md` in one of
229
+ two modes — copied into the consumer's agent-skill directory with each named slot
227
230
  overwritten, or a thin binding shim that references the template (the grammar
228
- and the contract both modes satisfy are §templates/skills/).
231
+ and the contract both modes satisfy are §templates/stages/).
229
232
 
230
233
  The stage machine itself is config with this repo's lifecycle as the
231
234
  default: copy `templates/lifecycle-config.sh` into the gates dir as
@@ -322,7 +325,7 @@ declaration (the deprecation-lifecycle and upgrade-path rungs).
322
325
  unset-knob consumer gets a clean wipe of an already-disposable surface.
323
326
  Boundary-only, and paired with the scratch dir it reads (`GATE_SDK_TMP_DIR`)
324
327
  rather than adding a directory knob of its own. **The tier split matters:** the
325
- `.gitkeep` exemption is a kit invariant this knob cannot unset, and `PRESERVE`
328
+ `.gitkeep` exemption is a kit invariant this knob cannot unset, and this knob
326
329
  is the consumer keep-list layered on top — a reader who takes the knob for the
327
330
  wipe's only keep rule would reintroduce the tracked-file deletion.
328
331
  - `LIFECYCLE_KIT_BOUNDARY_REQUIRE` — array of repo-relative files each of which
@@ -490,8 +493,8 @@ close-surface: .workflow/gap-inbox.md forced=lifecycle-kit/SPEC.md §bin/enter-s
490
493
 
491
494
  **Producers and consumers.** Producer: any mid-iteration session (lead or stage)
492
495
  via `bin/file-gap.sh` — the knob default makes the channel live everywhere the
493
- kit is vendored. Consumers: the close skill's drain step (§templates/skills/)
494
- dispositions every bullet — promoted to a deferred `[needs-spec]` queue entry,
496
+ kit is vendored. Consumers: the close skill's drain step (§templates/stages/)
497
+ dispositions every bullet — promoted to a deferred `[design-pending]` entry,
495
498
  fixed inline that session, or discarded with cause in the close commit message —
496
499
  then truncates the inbox to its header; the boundary refusal reads emptiness at
497
500
  the next scope entry as the backstop. Each bullet's two fields have named
@@ -710,7 +713,8 @@ naming the wiped set in its report the way it already names the truncated set.
710
713
  Truncate and wipe share the boundary trigger and the report line and **nothing
711
714
  else**: truncate rewrites a *tracked* file down to its `# contract:` header, so
712
715
  the file survives with an empty body; the wipe *deletes* untracked scratch
713
- members outright. `PRESERVE` is therefore a keep-list for the delete and never a
716
+ members outright. `LIFECYCLE_KIT_BOUNDARY_PRESERVE` is therefore a keep-list for
717
+ the delete and never a
714
718
  truncate target. The wipe runs last — after the truncate loop and after
715
719
  enter-stage removes its own temp files — so those temporaries are never
716
720
  candidates, and it is **boundary-only**: an ordinary stage entry appends and
@@ -727,10 +731,11 @@ surviving (the tool `mkdir -p`s the scratch dir, and the wipe removes members,
727
731
  not the dir); it is recorded with its real reason so a later reader does not
728
732
  retire it as redundant, and it is generic-consumer mechanism rather than a fact
729
733
  about any one checkout — a consumer that gitignores its scratch dir wholesale
730
- never exercises it. Shipping the exemption as `PRESERVE`'s *default* is **ruled
731
- out**: a defaulted bash array is replaced, not merged, when a consumer assigns
732
- it, so protection would decrease as configuration increases and any consumer
733
- setting `PRESERVE` for its own reasons would silently lose the exemption. A
734
+ never exercises it. Shipping the exemption as `LIFECYCLE_KIT_BOUNDARY_PRESERVE`'s
735
+ *default* is **ruled out**: a defaulted bash array is replaced, not merged, when a
736
+ consumer assigns it, so protection would decrease as configuration increases and
737
+ any consumer setting that knob for its own reasons would silently lose the
738
+ exemption. A
734
739
  git-aware "spare any tracked file" rule is **ruled out** too — it makes
735
740
  filesystem behavior git-dependent for one case, and it would spare any tracked
736
741
  file parked in scratch, re-opening the accumulation the wipe exists to close.
@@ -741,7 +746,8 @@ start, age-guarded precisely so a concurrent same-checkout session's in-flight
741
746
  scratch survives (context-kit/SPEC.md §The session-context hook). The boundary
742
747
  wipe is deliberately **not** age-guarded: it fires once, at the iteration
743
748
  transition, where the only scratch a consumer means to carry across is by
744
- definition named in `PRESERVE` — an age guard there would leave the previous
749
+ definition named in `LIFECYCLE_KIT_BOUNDARY_PRESERVE` — an age guard there would
750
+ leave the previous
745
751
  iteration's fresh residue behind, which is the whole thing being reclaimed. Two
746
752
  triggers, two postures, one directory; neither mechanism reads the other.
747
753
 
@@ -761,7 +767,7 @@ so a consumer wiring its release-disposition evidence here makes the close-stage
761
767
  disposition a mechanical boundary precondition rather than a decorative stamp.
762
768
  The check is **value-agnostic by construction** — it tests the first token only
763
769
  and never parses the value field — so a disposition grammar gaining a value (as
764
- it did with `deferred:<version>`, §templates/skills/) needs no
770
+ it did with `deferred:<version>`, §templates/stages/) needs no
765
771
  widening here; recorded so a future value addition does not re-derive it.
766
772
  Fail-closed: a member that does not exist on disk is a refusal naming the path. A
767
773
  never-named (`—`) closing iteration has nothing to disposition and skips the
@@ -1038,7 +1044,7 @@ entries by successor entry. A roster whose drain stage is terminal (zero
1038
1044
  successors) is refused fail-closed at config load (§lib/stages.sh's
1039
1045
  validator): an exemption with no reachable backstop would be permanent.
1040
1046
  Ruled-but-unpromoted work is never exempt residue — it files as Deferred
1041
- `[needs-spec]` for a later scope's promotion (deferred-filing is the model
1047
+ `[design-pending]` for a later scope's promotion (deferred-filing is the model
1042
1048
  for designed-but-unscheduled work); and (C)
1043
1049
  audit-trigger — an audit-entry-stage header carrying a cross-component
1044
1050
  amendment signal but no `<iter> <audit-stage>` stamp demands either that
@@ -1058,7 +1064,7 @@ stage exactly, so a waiver is never read as an audit *stamp*).
1058
1064
 
1059
1065
  Calibration: the predecessor map deliberately omits a **trigger-gated stage**
1060
1066
  as anyone's mandatory predecessor — the audit stage, and equally a trigger-gated
1061
- *authoring* stage where a roster splits one out (§templates/skills/) — because
1067
+ *authoring* stage where a roster splits one out (§templates/stages/) — because
1062
1068
  demanding its stamp before a successor would false-fire on an iteration that
1063
1069
  legitimately skipped it (an amendment-free iteration runs no audit; a debt-only
1064
1070
  one runs no authoring stage); the build→align re-check when align *did* run is
@@ -1119,10 +1125,16 @@ template path may point at any kit). Template slots are the `*<slot-name: …>*`
1119
1125
  tokens; a shim's bindings are the `**slot-name** —` lead lines under
1120
1126
  `## Bindings`; the directive's template path resolves relative to the current
1121
1127
  directory (the tree root at pre-commit). A skills dir that does not exist is
1122
- fail-closed (exit 2). The `# graph:` couples the skills dir, the lifecycle
1123
- templates dir, and each out-of-tree bound template (e.g.
1124
- `delegation-kit/templates/agent-execution.md`) at `tier=precommit`, so a slot
1125
- added to a template or a binding changed in a shim fires the gate. The good/bad pair drives the unbound-slot case;
1128
+ fail-closed (exit 2). The `# graph:` couples the skills dir, the stage-template
1129
+ dir, each boundary skill (`lead.md`, `release-sweep.md`, `upgrade.md`), and each
1130
+ out-of-tree bound template (e.g. `delegation-kit/templates/agent-execution.md`)
1131
+ at `tier=precommit`, so a slot added to a template or a binding changed in a shim
1132
+ fires the gate. The boundary skills are coupled **by name** because this couple
1133
+ carries no kit-wide `templates/*.md` glob: a bindable template left off it is one
1134
+ whose edits fire nothing, and the gate stays green while the coupling is gone.
1135
+ `upgrade.md` is listed even where no consumer binds it — the entry is about the
1136
+ template's edits re-triggering the gate, and a consumer that does bind it
1137
+ inherits the manifest. The good/bad pair drives the unbound-slot case;
1126
1138
  `gate-tests/check-skill-binding.test.sh` covers the orphan-binding,
1127
1139
  missing-template, and skip (no-directive / no-slots) cases the one pair cannot.
1128
1140
 
@@ -1152,10 +1164,11 @@ gate and is still a defect to fix on sight (the same doctrine as
1152
1164
  check-comment-tier's floor). The `# graph:` couples the skills dir, `CLAUDE.md`,
1153
1165
  and the kit template dirs at `tier=precommit`, so editing a shim or a corpus
1154
1166
  surface fires the gate. Because the corpus find recurses but the `kit:templates/*.md`
1155
- couple does not, the one kit template *sub*directory that holds bound
1156
- templates — `lifecycle-kit/templates/skills/*.md` (the stage-skill templates each
1157
- stage shim binds) — is coupled explicitly beside it; a shim's own template is its
1158
- likeliest collision surface, so it must re-trigger the gate. A red run names the
1167
+ couple does not, the one kit template *sub*directory it misses —
1168
+ `lifecycle-kit/templates/stages/*.md`, the stage-skill templates each stage shim
1169
+ binds — is coupled explicitly beside it; a shim's own template is its likeliest
1170
+ collision surface, so it must re-trigger the gate. The boundary skills need no
1171
+ such entry: they sit at `templates/` root, already inside the plain couple. A red run names the
1159
1172
  shim, the corpus surface, and the shared n-gram, so the fix (delete the
1160
1173
  restatement, keep a citation) is mechanical. The good/bad pair drives the plain restatement/clean split;
1161
1174
  `gate-tests/check-shim-restatement.test.sh` covers the no-directive skip, the
@@ -1233,7 +1246,7 @@ a reshaped `LIFECYCLE_KIT_BOUNDARY_TRUNCATE` in the consumer config is backstopp
1233
1246
  by the whole-tree `run-gates.sh` battery (the `check-stage-skill-coverage`
1234
1247
  precedent).
1235
1248
 
1236
- ### templates/skills/
1249
+ ### templates/stages/
1237
1250
 
1238
1251
  The stage-skill templates (`scope`/`align`/`build`/`validate`/`close`) carry
1239
1252
  the generic stage spine — the stamp first step (performed by invoking
@@ -1262,6 +1275,11 @@ canon-kit's bidirectional queue pairing — is the content `scope`'s conditional
1262
1275
  authoring step points at, so a default-roster `scope` that still authors reads it
1263
1276
  there.
1264
1277
 
1278
+ The directory holds the **stage-class** template set, not any one consumer's
1279
+ roster: it ships six templates while `LIFECYCLE_KIT_STAGES` defaults to five,
1280
+ because `spec.md` serves the split-authoring roster alone. Nothing derives a
1281
+ roster from this listing — the glob buys a legible layout, not a derivation.
1282
+
1265
1283
  A consumer skill adopts a template in one of two modes; either way the executed
1266
1284
  skill states in one line what the stamp step does and supplies every
1267
1285
  slot's content:
@@ -1372,10 +1390,13 @@ disposition line's mechanical reader is `enter-stage.sh`'s boundary require-chec
1372
1390
  (§bin/enter-stage.sh, `LIFECYCLE_KIT_BOUNDARY_REQUIRE`) when a consumer wires the
1373
1391
  file into that knob.
1374
1392
 
1375
- Beside the stage skills sits `release-sweep.md` — a **boundary skill**, not a
1376
- stage: it invokes no `enter-stage.sh` and stamps no state, so
1377
- `check-stage-skill-coverage` never reads it (it governs only the configured
1378
- stage set). It is the deprecation disposition walk at a major — invoked from
1393
+ ### templates/release-sweep.md
1394
+
1395
+ A **boundary skill**, not a stage — which is why it sits at `templates/` root
1396
+ beside `lead.md` rather than among the stage templates: it invokes no
1397
+ `enter-stage.sh` and stamps no state, so `check-stage-skill-coverage` never reads
1398
+ it (it governs only the configured stage set). It is the deprecation disposition
1399
+ walk at a major — invoked from
1379
1400
  close's release-disposition step when the derived bump is a major — forcing every
1380
1401
  marker on the `CANON_KIT_DEPRECATION_MARKERS` roster to a stamped disposition —
1381
1402
  decommission, carry-forward, or un-deprecate — the `check-lesson-disposition`
@@ -1383,14 +1404,16 @@ contract shape at a release boundary. canon-kit's `check-deprecation-task` holds
1383
1404
  each marker bound to a live task between majors; this sweep forces the standing
1384
1405
  inventory to a decision at the boundary the deprecations were promised against.
1385
1406
  It carries **named slots** (`inventory-command`, `evidence-gate`), so like the
1386
- stage skills it adopts the binding-shim grammar (§templates/skills/) and
1407
+ stage skills it adopts the binding-shim grammar (§templates/stages/) and
1387
1408
  `check-skill-binding` holds the slot pairing; the stamp file is operator
1388
1409
  evidence riding the release commit — the kit wires no gate over it (a consumer
1389
1410
  may, through `evidence-gate`).
1390
1411
 
1391
- Beside it sits `upgrade.md` — another **boundary skill**, not a stage: it
1392
- invokes no `enter-stage.sh` and stamps no state, so `check-stage-skill-coverage`
1393
- never reads it. It is the phase-B disposition walk a consumer runs when moving
1412
+ ### templates/upgrade.md
1413
+
1414
+ `upgrade.md` is a **boundary skill** too, at `templates/` root rather than among
1415
+ the stage templates: it invokes no `enter-stage.sh` and stamps no state, so
1416
+ `check-stage-skill-coverage` never reads it. It is the phase-B disposition walk a consumer runs when moving
1394
1417
  their vendored kits from one release to the next — the judgment half of the
1395
1418
  two-phase upgrade contract whose deterministic half (the wholesale kit-sync) and
1396
1419
  whose executable proof both live in gate-sdk (gate-sdk/SPEC.md §upgrade-smoke),
@@ -1403,7 +1426,7 @@ cadence at which a consumer judges the ungateable third of a template-slot chang
1403
1426
  — the shim fill that clears both `check-skill-binding` (slot-set drift) and
1404
1427
  `check-shim-restatement` (verbatim copy) yet duplicates what the new slot now
1405
1428
  means to own. It carries named slots (`gates-list`, `disposition-evidence`), so
1406
- like the stage skills it adopts the binding-shim grammar (§templates/skills/) and
1429
+ like the stage skills it adopts the binding-shim grammar (§templates/stages/) and
1407
1430
  `check-skill-binding` holds the slot pairing when a consumer binds it. This repo
1408
1431
  binds no command for it — the repo is the kit source, never a vendored consumer,
1409
1432
  so it never upgrades itself; the template ships for consumers and the upgrade
@@ -1417,7 +1440,7 @@ restart-cost of a stage that would otherwise stop and surface to the user cold
1417
1440
  (§The state machine). Like `release-sweep.md` it is a **boundary skill, not a
1418
1441
  stage**: it invokes no `enter-stage.sh` and joins no stage set, so
1419
1442
  `check-stage-skill-coverage` never reads it. Like release-sweep it carries
1420
- named slots, so it adopts the binding-shim grammar (§templates/skills/) — a
1443
+ named slots, so it adopts the binding-shim grammar (§templates/stages/) — a
1421
1444
  consumer copies-and-specializes it or binds it through a thin shim, and
1422
1445
  `check-skill-binding` holds the slot pairing either way (this repo's
1423
1446
  `.claude/commands/lead.md` shim).
@@ -137,7 +137,7 @@ if [[ "$first" == 1 && -f "$LIFECYCLE_KIT_GAP_INBOX_FILE" ]]; then
137
137
  fi
138
138
  echo "enter-stage: iteration-boundary entry to '$stage' refused — $LIFECYCLE_KIT_GAP_INBOX_FILE holds untriaged gap bullets; every gap is dispositioned before the next iteration begins (nothing written):" >&2
139
139
  printf '%s\n' "$gaps" >&2
140
- echo " help: if the closing stage has not run yet, run its gap-drain step — disposition each bullet (promote to a deferred [needs-spec] entry, fix inline, or discard with cause in the commit message), then truncate the inbox to its header." >&2
140
+ echo " help: if the closing stage has not run yet, run its gap-drain step — disposition each bullet (promote to a deferred [design-pending] entry, fix inline, or discard with cause in the commit message), then truncate the inbox to its header." >&2
141
141
  echo " help: if it has already run, these bullets were filed after the drain and no stage is coming back for them: disposition them here, in this entering session — promote each directly to the deferred queue (or fix it), truncate the inbox to its header, commit, and re-run enter-stage $stage. Deleting a bullet without a disposition is not a drain." >&2
142
142
  exit 1
143
143
  fi
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # graph: couples=.claude/commands/*.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/skills/*.md dir=one valve=none tier=precommit
2
+ # graph: couples=.claude/commands/*.md,CLAUDE.md,kit:templates/*.md,lifecycle-kit/templates/stages/*.md dir=one valve=none tier=precommit
3
3
  # spec: lifecycle-kit/SPEC.md §check-shim-restatement — no binding shim shares an >=N-word normalized n-gram with the dedup corpus (CLAUDE.md + every kit's templates)
4
4
  #
5
5
  # usage: check-shim-restatement.sh [skills-dir] [corpus-file...]
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # graph: couples=.claude/commands/*.md,lifecycle-kit/templates/skills/*.md,lifecycle-kit/templates/lead.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
2
+ # graph: couples=.claude/commands/*.md,lifecycle-kit/templates/stages/*.md,lifecycle-kit/templates/lead.md,lifecycle-kit/templates/release-sweep.md,lifecycle-kit/templates/upgrade.md,delegation-kit/templates/agent-execution.md dir=one valve=none tier=precommit
3
3
  # spec: lifecycle-kit/SPEC.md §check-skill-binding — every binding-shim skill names an existing template and binds exactly that template's slot set
4
4
  #
5
5
  # usage: check-skill-binding.sh [skills-dir]
@@ -19,13 +19,13 @@ write is involved. Commit the stamp on its own.
19
19
 
20
20
  **Where close's own captures file.** Close never writes the active queue
21
21
  sections — promoting a unit into them is scope's. Every finding close itself
22
- captures files instead as a Deferred `[needs-spec]` entry for a later scope to
23
- promote: a lesson turned task, a drained gap, a housekeeping or triage finding,
24
- or a dispatch's "capture as debt". The active sections must be empty at the
25
- drain boundary, so a finding mis-filed into one is caught only later as a red
26
- `check-stage-entry` at the next iteration's entry; filing to Deferred keeps the
27
- boundary clean (lifecycle-kit/SPEC.md §check-stage-entry owns the deferred-filing
28
- model for ruled-but-unpromoted work).
22
+ captures files instead as a Deferred `[design-pending]` entry for a later scope
23
+ to promote: a lesson turned task, a drained gap, a housekeeping or triage
24
+ finding, or a dispatch's "capture as debt". The active sections must be empty
25
+ at the drain boundary, so a finding mis-filed into one is caught only later as
26
+ a red `check-stage-entry` at the next iteration's entry; filing to Deferred
27
+ keeps the boundary clean (lifecycle-kit/SPEC.md §check-stage-entry owns the
28
+ deferred-filing model for ruled-but-unpromoted work).
29
29
 
30
30
  1. **Process Lessons Learned** → durable rules or debt tasks, then clear the
31
31
  section. **Give each entry an explicit disposition before clearing, and
@@ -62,7 +62,7 @@ model for ruled-but-unpromoted work).
62
62
  2. **Drain the gap inbox** (`LIFECYCLE_KIT_GAP_INBOX_FILE`,
63
63
  §The committed gap inbox) → disposition every `- <date> — <gap>` bullet,
64
64
  then **truncate the inbox to its `# contract:` header**. The disposition set
65
- is →promote (file a deferred `[needs-spec]` queue entry for the gap),
65
+ is →promote (file a deferred `[design-pending]` queue entry for the gap),
66
66
  →fix (resolve it inline this session), or →discard (state why in the close
67
67
  commit message — the bullet's own prose is the disposition body). The date
68
68
  feeds the staleness read (an aged bullet is a signal, not a free pass).
@@ -77,7 +77,7 @@ detailed authoring how-to — causal
77
77
  completeness (every new field's producer, consumer, and named reader, surveyed
78
78
  across the whole component set) and the bidirectional queue pairing — is
79
79
  single-sourced in the authoring stage's template
80
- (`lifecycle-kit/templates/skills/spec.md`); a default-roster scope that authors
80
+ (`lifecycle-kit/templates/stages/spec.md`); a default-roster scope that authors
81
81
  follows it here.
82
82
 
83
83
  A premise inherited from a queued task ("clean/mechanical", "already filed",
@@ -2,18 +2,22 @@
2
2
 
3
3
  A git-native, agent-readable task tracker: one Markdown file where `##`
4
4
  sections are queues, bold kebab-case slugs are the task handles, and
5
- square-bracket tags (`[blocked-by:]`, `[needs-spec]`, `[spec:]`,
6
- `[drain-exempt:]`, `[precondition-ok:]`, plus the Lessons Learned channel's
7
- `[attend]` and the consumer-named harvest tags) are the state machine. Gates hold the grammar a coding agent selects work by, and a
8
- `queue-index.sh` tool renders the compact selection surface.
5
+ square-bracket tags (`[blocked-by:]`, `[design-pending]`, `[spec:]`,
6
+ `[drain-exempt:]`, `[roadmap:]`, `[precondition-ok:]`, plus the Lessons Learned
7
+ channel's `[attend]` and the consumer-named harvest tags) are the state machine.
8
+ Gates hold the grammar a coding agent selects work by, a
9
+ `queue-index.sh` tool renders the compact selection surface, and a `roadmap.sh`
10
+ tool projects the entries curated with `[roadmap:]` onto a generated public page.
9
11
 
10
12
  Why: an agent picks work by *parsing*, not reading — so everything selection
11
13
  trusts (section position, slugs, tags) must be grammar a gate can enforce, and
12
14
  everything a human writes freely (task prose) must stay off the parse path.
13
15
  Drift between what the prose says and what the parser sees is the failure mode;
14
- all but one of the gates each close one instance of it — a tag reflowed off its
16
+ all but two of the gates each close one instance of it — a tag reflowed off its
15
17
  lead line, a duplicate slug, a lost task, a forward precondition stated in
16
- prose but never tagged. See [SPEC.md](SPEC.md) for the full contracts.
18
+ prose but never tagged. The two exceptions hold a different axis: projection
19
+ freshness, and the deferred pool's per-entry budget. See [SPEC.md](SPEC.md) for
20
+ the full contracts.
17
21
 
18
22
  ## Install
19
23
 
@@ -26,11 +30,13 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
26
30
  check-queue-hygiene
27
31
  check-queue-sections
28
32
  check-queue-wrap
33
+ check-queue-entry-budget
29
34
  check-tag-lead-line
30
35
  check-task-names
31
36
  check-task-conservation
32
37
  check-queue-prose-precondition
33
38
  check-queue-slug-liveness
39
+ check-roadmap-fresh
34
40
  ```
35
41
  <!-- gate-roster:end -->
36
42
 
@@ -41,7 +47,9 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
41
47
  2. Give your queue file the section skeleton — copy
42
48
  `templates/TASK-QUEUE.md` and fill it in (it shows one example entry per
43
49
  grammar shape). The default sections are `New Features` / `Technical Debt`
44
- (active), `Deferred`, `Done`.
50
+ (active), `Deferred`, `Done` — plus an optional `Icebox` tier between the
51
+ last two for backlogs whose carry weight has become the problem, off by
52
+ default (`QUEUE_KIT_ICEBOX_SECTION`).
45
53
 
46
54
  3. Optional — reshape the grammar: copy `templates/queue-config.sh` into your
47
55
  gates dir and override section names, the wrap budget, prose-lead tokens, or
@@ -50,11 +58,19 @@ Vendor the kit beside [gate-sdk](../gate-sdk/) (required), then:
50
58
  ## Use
51
59
 
52
60
  ```bash
53
- bash queue-kit/bin/queue-index.sh # header + active (• ready / ✗ blocked) + deferred
54
- bash queue-kit/bin/queue-index.sh --collapse-deferred # deferred as a per-### tally
55
- bash queue-kit/bin/queue-index.sh --extent <slug> # inclusive line range of one entry's subtree
61
+ bash queue-kit/bin/queue-index.sh # header + active (• ready / ✗ blocked) + deferred + icebox tally
62
+ bash queue-kit/bin/queue-index.sh --collapse-deferred # deferred as a per-### tally
63
+ bash queue-kit/bin/queue-index.sh --extent <slug> # inclusive line range of one entry's subtree
64
+ bash queue-kit/bin/queue-index.sh --icebox-candidates # the closing stage's eviction worklist
65
+ bash queue-kit/bin/lesson-sink.sh <tag> # route a harvested lesson body to its configured sink
66
+ bash queue-kit/bin/roadmap.sh --emit # the public roadmap block, to stdout
67
+ bash queue-kit/bin/roadmap.sh --write # splice it into the configured projection page
56
68
  ```
57
69
 
70
+ The roadmap projection is opt-in: it emits nothing until you set the horizon and
71
+ track vocabularies and a projection page in your config (step 3 above), so an
72
+ unconfigured consumer gets a clean skip rather than a kit-shaped roadmap.
73
+
58
74
  ## Test
59
75
 
60
76
  ```bash