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.
- package/package.json +2 -2
- package/payload/canon-kit/README.md +1 -0
- package/payload/canon-kit/SPEC.md +162 -16
- package/payload/canon-kit/checks/check-amendment-queue.sh +17 -16
- package/payload/canon-kit/checks/check-install-claim.sh +146 -0
- package/payload/canon-kit/gate-tests/check-amendment-queue/good/TASK-QUEUE.md +1 -1
- package/payload/canon-kit/gate-tests/check-deprecation-task/good/TASK-QUEUE.md +1 -1
- package/payload/canon-kit/gate-tests/check-install-claim/bad/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/bad/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/README.md +12 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/install.md +24 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/posts/note.md +7 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/canon-config.sh +10 -0
- package/payload/canon-kit/gate-tests/check-install-claim/good/scripts/install-transports.sh +7 -0
- package/payload/canon-kit/gate-tests/check-todo-task-liveness/good/TASK-QUEUE.md +1 -1
- package/payload/canon-kit/lib/spec.sh +32 -2
- package/payload/context-kit/SPEC.md +5 -0
- package/payload/context-kit/checks/check-footprint-fresh.sh +1 -1
- package/payload/delegation-kit/SPEC.md +12 -0
- package/payload/drift-kit/README.md +4 -4
- package/payload/drift-kit/SPEC.md +58 -5
- package/payload/drift-kit/bin/drift-report.sh +14 -11
- package/payload/drift-kit/bin/overhead-meter.sh +1 -1
- package/payload/drift-kit/kpis/kpi-deferred-age.sh +7 -5
- package/payload/drift-kit/kpis/kpi-queue-net-delta.sh +74 -0
- package/payload/drift-kit/smoke/install.sh +1 -1
- package/payload/gate-sdk/SPEC.md +17 -2
- package/payload/lifecycle-kit/README.md +2 -2
- package/payload/lifecycle-kit/SPEC.md +57 -34
- package/payload/lifecycle-kit/bin/enter-stage.sh +1 -1
- package/payload/lifecycle-kit/checks/check-shim-restatement.sh +1 -1
- package/payload/lifecycle-kit/checks/check-skill-binding.sh +1 -1
- package/payload/lifecycle-kit/templates/{skills → stages}/close.md +8 -8
- package/payload/lifecycle-kit/templates/{skills → stages}/scope.md +1 -1
- package/payload/queue-kit/README.md +26 -10
- package/payload/queue-kit/SPEC.md +463 -32
- package/payload/queue-kit/bin/queue-index.sh +62 -11
- package/payload/queue-kit/bin/roadmap.sh +76 -0
- package/payload/queue-kit/checks/check-queue-entry-budget.sh +104 -0
- package/payload/queue-kit/checks/check-roadmap-fresh.sh +110 -0
- package/payload/queue-kit/checks/check-tag-lead-line.sh +12 -8
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/TASK-QUEUE.md +33 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/expect.txt +4 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/TASK-QUEUE.md +35 -0
- package/payload/queue-kit/gate-tests/check-queue-entry-budget/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/TASK-QUEUE.md +24 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/emit.txt +8 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/bad/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/TASK-QUEUE.md +22 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/args +5 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/emit.txt +7 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/projection.txt +16 -0
- package/payload/queue-kit/gate-tests/check-roadmap-fresh/good/scripts/queue-config.sh +6 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/TASK-QUEUE.md +3 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/bad/expect.txt +1 -0
- package/payload/queue-kit/gate-tests/check-tag-lead-line/good/TASK-QUEUE.md +2 -1
- package/payload/queue-kit/gate-tests/queue-index.test.sh +45 -4
- package/payload/queue-kit/gate-tests/roadmap.test.sh +197 -0
- package/payload/queue-kit/lib/queue.sh +87 -1
- package/payload/queue-kit/smoke/install.sh +1 -0
- package/payload/queue-kit/templates/TASK-QUEUE.md +1 -1
- package/payload/site-kit/SPEC.md +6 -0
- /package/payload/lifecycle-kit/templates/{skills/release-sweep.md → release-sweep.md} +0 -0
- /package/payload/lifecycle-kit/templates/{skills → stages}/align.md +0 -0
- /package/payload/lifecycle-kit/templates/{skills → stages}/build.md +0 -0
- /package/payload/lifecycle-kit/templates/{skills → stages}/spec.md +0 -0
- /package/payload/lifecycle-kit/templates/{skills → stages}/validate.md +0 -0
- /package/payload/lifecycle-kit/templates/{skills/upgrade.md → upgrade.md} +0 -0
|
@@ -25,9 +25,32 @@ as `##` sections over column-0 bullets:
|
|
|
25
25
|
- **The deferred section** (default `Deferred`) — parked tasks, excluded from
|
|
26
26
|
selection; `###` subsections are presentation, not semantics. An entry's
|
|
27
27
|
prose may carry a `Surfaced <date>` mark — an ungated convention recording
|
|
28
|
-
when the premise was
|
|
28
|
+
when the premise was observed. A deferred body is free prose, and four
|
|
29
|
+
bold-lead-in fields recur, each answering a question a later scope asks:
|
|
30
|
+
`Deliverable` (what landing looks like), `Why [design-pending]` (what the
|
|
31
|
+
open design actually is), `Cost while deferred`, and a closing
|
|
32
|
+
`Filed <date> by <stage>` provenance line. Three are conventions no gate
|
|
33
|
+
reads; **`Cost while deferred` is required** — the Gap-disposition rule's
|
|
34
|
+
costing, held by `check-queue-entry-budget` (§check-queue-entry-budget),
|
|
35
|
+
which also caps the entry's total length. The field's bold lead-in is
|
|
36
|
+
line-local like a tag: split across a reflow it is invisible to the scanner
|
|
37
|
+
and the entry reads as uncosted.
|
|
38
|
+
- **The icebox section** (optional, `QUEUE_KIT_ICEBOX_SECTION`, default
|
|
39
|
+
**empty** — no section, no tier) — dormant tasks compressed to one line
|
|
40
|
+
each, sitting **after the deferred section and before the done section**.
|
|
41
|
+
Live work, not history: §The icebox tier owns the tier, its grammar, its
|
|
42
|
+
eligibility rule, and the position contract a cross-kit reader depends on.
|
|
29
43
|
- **The done section** (default `Done`) — one line per completed task, the
|
|
30
44
|
bare slug only; prose about what happened lives in git history.
|
|
45
|
+
|
|
46
|
+
The **defer date** of an entry is its `Surfaced <date>` mark when present, else
|
|
47
|
+
the date on its `Filed <date>` provenance line. One definition, two readers —
|
|
48
|
+
drift-kit's deferred-age KPI and `bin/queue-index.sh --icebox-candidates`.
|
|
49
|
+
Widening, not replacing: `Surfaced` records when the premise was observed and
|
|
50
|
+
is the better premise-rot datum, `Filed` is the honest available fallback, so
|
|
51
|
+
no entry owes a migration. drift-kit re-implements the definition rather than
|
|
52
|
+
sourcing `lib/queue.sh`, because a kit dependency the other way would close a
|
|
53
|
+
cross-kit cycle; both implementations cite this section.
|
|
31
54
|
- Any other section (an iteration header, a lessons section) is outside the
|
|
32
55
|
grammar and ignored by every gate except the file-wide hygiene axes.
|
|
33
56
|
|
|
@@ -35,9 +58,120 @@ An entry is a column-0 `- **slug** — prose…` bullet; continuation lines are
|
|
|
35
58
|
indented, never column 0. An *indented* bullet with a bold lead-in is a
|
|
36
59
|
sub-task (same grammar); with a plain or italic lead-in it is a prose note
|
|
37
60
|
and is left alone. Slugs match `[a-z0-9][a-z0-9-]*` in one global, unique
|
|
38
|
-
namespace across active + deferred + sub-tasks — a slug is the task's
|
|
39
|
-
handle for its whole life: `[blocked-by:]` references it and the
|
|
40
|
-
line carries it verbatim. The slug grammar is kit mechanism, not
|
|
61
|
+
namespace across active + deferred + icebox + sub-tasks — a slug is the task's
|
|
62
|
+
stable handle for its whole life: `[blocked-by:]` references it and the
|
|
63
|
+
done-section line carries it verbatim. The slug grammar is kit mechanism, not
|
|
64
|
+
config.
|
|
65
|
+
|
|
66
|
+
**Section order sequences an iteration; it does not rank it.** The default
|
|
67
|
+
`("New Features" "Technical Debt")` is read as selection order (§Layout and
|
|
68
|
+
configuration), and the argument for it is not that features outrank debt:
|
|
69
|
+
position starves nothing, because an active entry's residency is one iteration
|
|
70
|
+
by the drain rule — the drain stage's entry requires the active sections empty
|
|
71
|
+
(lifecycle-kit/SPEC.md §check-stage-entry) — so every promoted entry lands in
|
|
72
|
+
the same iteration whichever section holds it. What ranks is the promoting
|
|
73
|
+
stage's decision to put an entry in an active section at all; order within them
|
|
74
|
+
is a sequencing default, the posture the roadmap projection already states
|
|
75
|
+
outright for queue order generally (§bin/roadmap.sh).
|
|
76
|
+
|
|
77
|
+
Features lead on the feature/debt asymmetry canon-kit owns (canon-kit/SPEC.md
|
|
78
|
+
§The amendment lifecycle): a feature merges an amendment into the canonical
|
|
79
|
+
spec, debt converges an implementation on the spec as it already stands.
|
|
80
|
+
Reversed, a debt entry sharing an owner doc with a sibling amendment converges
|
|
81
|
+
on text the same iteration is about to rewrite. It stays a default rather than
|
|
82
|
+
a rule — the array is consumer config, and a consumer whose iterations do not
|
|
83
|
+
mix the two kinds reorders it freely.
|
|
84
|
+
|
|
85
|
+
### The icebox tier
|
|
86
|
+
|
|
87
|
+
The deferred pool has an intake asymmetry the delivery doctrine itself creates:
|
|
88
|
+
gap disposition and scope-gated intake make filing mandatory and cheap, while
|
|
89
|
+
the only exit is *building* the entry. The icebox is the missing exit — a third
|
|
90
|
+
**live** task section holding entries whose own cost field says they are
|
|
91
|
+
dormant, each compressed to its lead line.
|
|
92
|
+
|
|
93
|
+
close-surface: TASK-QUEUE.md#Deferred advisory
|
|
94
|
+
|
|
95
|
+
`advisory` is the honest mode: no structural forcing function refuses on an
|
|
96
|
+
untriaged backlog, and inventing one would redden an unrelated commit over a
|
|
97
|
+
curation opinion. That is what makes eviction *symmetric* to promotion —
|
|
98
|
+
promotion is forced by the scoping stage's exit condition, eviction gets roster
|
|
99
|
+
visibility and an auditable skip.
|
|
100
|
+
|
|
101
|
+
**It joins the shared task adapters rather than standing outside them**, and
|
|
102
|
+
that is the whole design:
|
|
103
|
+
|
|
104
|
+
- **Eviction is a conserved move.** `check-task-conservation` diffs the live
|
|
105
|
+
slug set at HEAD against the worktree, so deferred → icebox keeps the slug
|
|
106
|
+
live and the gate stays silent. No sanctioned disappearance needs inventing,
|
|
107
|
+
and none exists — every exit from the design-pending pool is conserved:
|
|
108
|
+
deferred → icebox, icebox → deferred on real recurrence, and either → done
|
|
109
|
+
for a ruled wontfix.
|
|
110
|
+
- **One namespace, one parse.** `check-task-names` keeps slug uniqueness and
|
|
111
|
+
`[blocked-by:]` resolution across the whole pool; an iceboxed slug is a legal
|
|
112
|
+
blocker target, because it is unbuilt.
|
|
113
|
+
- **The living-prose contract keeps reaching it**, so a page citing an
|
|
114
|
+
iceboxed task stays green — correct, because the task is dormant, not landed.
|
|
115
|
+
- **Tags stay lead-line-governed**, with no gate edit.
|
|
116
|
+
|
|
117
|
+
Every gate keyed on the shared task regex therefore widens with **no change to
|
|
118
|
+
any gate file** — the widening is entirely in `lib/queue.sh`, which is what the
|
|
119
|
+
one-adapter rule was built to buy. `check-queue-prose-precondition` deliberately does not
|
|
120
|
+
reach the tier: forward-looking phrasing is normal vocabulary in a parked
|
|
121
|
+
entry, the same exemption the deferred section already carries.
|
|
122
|
+
|
|
123
|
+
**The grammar is the lead line and nothing else:**
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
- **<slug>** [design-pending] — <one sentence: what it is, and why it is dormant>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
- **It carries the same `[design-pending]` tag every deferred entry carries.**
|
|
130
|
+
No `[icebox]` tag is minted: section membership *is* the state, and a tag
|
|
131
|
+
restating its own section is the two-sources defect. What generalizes across
|
|
132
|
+
the amendment lifecycle is the design-pending **section set**, not its tag
|
|
133
|
+
set. The "why it is dormant" clause is written where it fits and otherwise
|
|
134
|
+
left to the tier — membership already declares it.
|
|
135
|
+
- **No `###` subsections and no sub-tasks.** Grouping is presentation on a
|
|
136
|
+
surface whose entire purpose is minimum residency, and a sub-task is a
|
|
137
|
+
continuation line the shape rule rejects.
|
|
138
|
+
- **A `[roadmap:]`-tagged entry is not icebox-eligible**, and the rule needs no
|
|
139
|
+
new code: the roadmap parse walks the live task sections, so the tier enters
|
|
140
|
+
its walk, and `check-roadmap-fresh` then reds any `[roadmap:]` entry carrying
|
|
141
|
+
no `roadmap-summary:` declaration — which a one-line entry has nowhere to
|
|
142
|
+
put. **The enforcement is conditional:** that gate exits clean at its top
|
|
143
|
+
when `QUEUE_KIT_ROADMAP_FILE` is empty, so the guarantee holds for a consumer
|
|
144
|
+
publishing a roadmap page and degrades to convention for one that is not.
|
|
145
|
+
The eligibility rule binds either way. Keeping the tier *inside* the roadmap
|
|
146
|
+
walk rather than excluding it is deliberate: excluded, a `[roadmap:]` tag
|
|
147
|
+
that drifted into the icebox would silently drop a public commitment;
|
|
148
|
+
included, it reds.
|
|
149
|
+
- **The narrative is recoverable, not discarded.** The commit that iceboxes an
|
|
150
|
+
entry necessarily contains the removed body in its own diff, so recovery is
|
|
151
|
+
`git log -p -S'<slug>' -- <queue-file>` — a pickaxe that depends on no
|
|
152
|
+
commit-message convention. Nothing is copied into the queue to point at it.
|
|
153
|
+
|
|
154
|
+
**Eligibility**, judged at the closing stage: the entry's cost field opens in
|
|
155
|
+
the low class; it carries no `[roadmap:]` tag; and it has **no live promotion
|
|
156
|
+
trigger** — an entry whose promotion waits on a named expected event (a launch,
|
|
157
|
+
a first external adopter, a sibling unit landing) stays deferred, because it
|
|
158
|
+
has a trigger, just not a date.
|
|
159
|
+
|
|
160
|
+
**Nothing files directly into the icebox.** The only producer is the eviction
|
|
161
|
+
step: a newly filed finding has never been triaged and so cannot be pre-judged
|
|
162
|
+
dormant. That keeps the tier from becoming a dumping ground and keeps the
|
|
163
|
+
net-delta KPI honest.
|
|
164
|
+
|
|
165
|
+
**Position is a contract, not a preference.** The read order is pickable →
|
|
166
|
+
parked → dormant → history, and a cross-kit reader depends on the tier sitting
|
|
167
|
+
between the deferred and done sections (gate-sdk/SPEC.md
|
|
168
|
+
§check-gate-exemption-tasks). **Accepted residual, and it is quiet: no gate
|
|
169
|
+
enforces section order.** `check-queue-sections` counts occurrences per
|
|
170
|
+
required section with no positional state, and no other gate carries one. A
|
|
171
|
+
misplaced icebox surfaces only as an exemption naming an iceboxed slug
|
|
172
|
+
reddening with "no live task" — which requires such an exemption to exist.
|
|
173
|
+
Otherwise the misplacement is silent. The contract is carried by this SPEC and
|
|
174
|
+
by review rather than by a gate, and saying so is the honest form of it.
|
|
41
175
|
|
|
42
176
|
### The tag algebra
|
|
43
177
|
|
|
@@ -56,8 +190,9 @@ slug set on the configured prose surfaces (§check-queue-slug-liveness).
|
|
|
56
190
|
deferred blocker stands; it is unbuilt); a blocker in the done section is a
|
|
57
191
|
*stale* tag that must be removed, because the tag alone marks a task
|
|
58
192
|
unpickable.
|
|
59
|
-
- `[
|
|
60
|
-
|
|
193
|
+
- `[design-pending]` — design-pending marker, spanning **both** design-pending
|
|
194
|
+
sections (deferred and, where configured, the icebox). queue-kit parses and
|
|
195
|
+
displays it; the placement semantics (section-wide enforcement, promotion
|
|
61
196
|
rules) are canon-kit's amendment lifecycle and land with that kit.
|
|
62
197
|
- `[spec: <file>]` — spec-ready pointer. Same split: syntax here, amendment
|
|
63
198
|
semantics in canon-kit.
|
|
@@ -75,6 +210,46 @@ slug set on the configured prose surfaces (§check-queue-slug-liveness).
|
|
|
75
210
|
rationale in the entry body.
|
|
76
211
|
- `[precondition-ok: <reason>]` — per-entry opt-out valve for
|
|
77
212
|
`check-queue-prose-precondition`.
|
|
213
|
+
- `[roadmap: <horizon>/<track>]` — public-projection marker: the entry is
|
|
214
|
+
curated onto the generated roadmap page (§bin/roadmap.sh), under `<horizon>`
|
|
215
|
+
and labelled `<track>`. The tag's spelling is fixed mechanism; its two field
|
|
216
|
+
*values* are drawn from the consumer-configured `QUEUE_KIT_HORIZONS` and
|
|
217
|
+
`QUEUE_KIT_TRACKS` arrays — the same fixed-spelling/configured-values split
|
|
218
|
+
`[spec:]` already carries, and for the same reason: a kit literal spelling one
|
|
219
|
+
project's horizons would ship its roadmap posture as everyone's. One tag with
|
|
220
|
+
two slash-joined fields rather than two tags, because the fields are never
|
|
221
|
+
independently meaningful — a track with no horizon has no slot on the page and
|
|
222
|
+
a horizon with no track has no label in it, so splitting the pair would invent
|
|
223
|
+
two governed names where the domain has one. An entry carries at most one
|
|
224
|
+
`[roadmap:]` tag; an untagged entry is simply not projected, the normal case.
|
|
225
|
+
Placement is unconstrained by section — an active entry and a deferred entry
|
|
226
|
+
may both be projected, because the projection is about public direction, not
|
|
227
|
+
selection order. The **icebox is the one exclusion**, and it falls out of the
|
|
228
|
+
declaration rule rather than needing one: a one-line entry has nowhere to put
|
|
229
|
+
a `roadmap-summary:`, so a `[roadmap:]` tag that drifted into the tier reds
|
|
230
|
+
on assertion C wherever `QUEUE_KIT_ROADMAP_FILE` is set (§The icebox tier
|
|
231
|
+
states the knob-conditional limit on that backstop). Field validity is
|
|
232
|
+
`check-roadmap-fresh`'s assertion B.
|
|
233
|
+
|
|
234
|
+
A tagged entry also carries a **`roadmap-summary: <text>` declaration** — one
|
|
235
|
+
indented line in the entry body holding the single sentence the public page
|
|
236
|
+
prints. It is a declaration, not a tag, and the difference is the point: a tag is
|
|
237
|
+
bracketed and lead-line-scoped because its readers scan lead lines alone, while
|
|
238
|
+
this is read off a line of its own, the shape the `close-surface:` declaration
|
|
239
|
+
above already uses (and `QUEUE_KIT_PROSE_LEADS`' `Protocol:` token at column 0).
|
|
240
|
+
Spelling is fixed mechanism; `check-tag-lead-line` does not govern it, and it
|
|
241
|
+
cannot collide with the `[roadmap:` scan, which keys on the bracket.
|
|
242
|
+
|
|
243
|
+
The declaration is a **whitelist, and that is a privacy boundary before it is a
|
|
244
|
+
design one**. Only text an author explicitly marked is ever projected, so the
|
|
245
|
+
mechanism's failure mode is a thin page rather than published internal prose —
|
|
246
|
+
the direction a consumer whose queue is private and whose roadmap is not can
|
|
247
|
+
afford to fail in. The emitter reads the text verbatim, so no sentence heuristic
|
|
248
|
+
decides what a public page inherits. One line, not a block: an indented
|
|
249
|
+
declaration has roughly 81 columns behind it under the default wrap budget —
|
|
250
|
+
comfortably a sentence, and needing no block-end rule a reflow could silently
|
|
251
|
+
truncate. `check-roadmap-fresh`'s assertion C makes the tag and the declaration
|
|
252
|
+
mandatory for each other in both directions.
|
|
78
253
|
|
|
79
254
|
Two tags ride **Lessons Learned** entries — a lesson is a top-level bullet
|
|
80
255
|
under the fixed-spelling `## Lessons Learned` heading, and `bin/queue-index.sh`
|
|
@@ -119,9 +294,20 @@ Knobs:
|
|
|
119
294
|
- `QUEUE_KIT_QUEUE_FILE` — default `${GATE_SDK_QUEUE_FILE:-TASK-QUEUE.md}`;
|
|
120
295
|
every gate also takes the file as `$1` (fixture capability).
|
|
121
296
|
- `QUEUE_KIT_ACTIVE_SECTIONS` — array, default
|
|
122
|
-
`("New Features" "Technical Debt")`, order = selection order
|
|
297
|
+
`("New Features" "Technical Debt")`, order = selection order (§The queue
|
|
298
|
+
format argues the default).
|
|
123
299
|
- `QUEUE_KIT_DEFERRED_SECTION` / `QUEUE_KIT_DONE_SECTION` — defaults
|
|
124
300
|
`Deferred` / `Done`.
|
|
301
|
+
- `QUEUE_KIT_ICEBOX_SECTION` — default **empty**: no icebox tier at all, and no
|
|
302
|
+
kit-shaped empty section on the consumer's queue. A twelve-entry backlog has
|
|
303
|
+
no carry problem, and shipping the section anyway would leak the same posture
|
|
304
|
+
`QUEUE_KIT_HORIZONS` and `QUEUE_KIT_PROSE_SURFACE_GLOBS` already ship empty to
|
|
305
|
+
avoid. Naming the deferred section is malformed config.
|
|
306
|
+
- `QUEUE_KIT_ENTRY_LINE_CAP` — positive integer, default `50`; the per-entry
|
|
307
|
+
line cap `check-queue-entry-budget` assertion A holds over the deferred
|
|
308
|
+
section.
|
|
309
|
+
- `QUEUE_KIT_ICEBOX_AGE_DAYS` — positive integer, default `30`; the defer-date
|
|
310
|
+
age filter for `bin/queue-index.sh --icebox-candidates`, and nothing else.
|
|
125
311
|
- `QUEUE_KIT_WRAP_BUDGET` — default `100` (`check-queue-wrap` gate floor).
|
|
126
312
|
- `QUEUE_KIT_PROSE_LEADS` — array of column-0 lead tokens exempt from the
|
|
127
313
|
hygiene gate's no-prose axis, default `("Protocol:")`.
|
|
@@ -137,7 +323,11 @@ Knobs:
|
|
|
137
323
|
exactly once (`check-queue-sections`), default = the iteration header
|
|
138
324
|
(`Iteration:`, prefix-matched for its dynamic suffix) plus `New Features` /
|
|
139
325
|
`Technical Debt` / `Deferred` / `Done` / `Lessons Learned`. A trailing `:`
|
|
140
|
-
marks a prefix-matched heading; every other entry is matched exactly.
|
|
326
|
+
marks a prefix-matched heading; every other entry is matched exactly. A
|
|
327
|
+
configured `QUEUE_KIT_ICEBOX_SECTION` is **appended by derivation**, never by
|
|
328
|
+
a second consumer list: an icebox configured but absent from the file would
|
|
329
|
+
otherwise let every icebox assertion pass open on a section that is not
|
|
330
|
+
there, the exact fail-open class `check-queue-sections` exists to stop.
|
|
141
331
|
- `QUEUE_KIT_LESSON_TAGS` — array of bare harvest-tag names, default empty; the
|
|
142
332
|
consumer-named outbound lesson vocabulary (§The tag algebra), read by
|
|
143
333
|
`check-tag-lead-line` for placement. Names, sinks, and handling are consumer
|
|
@@ -149,10 +339,34 @@ Knobs:
|
|
|
149
339
|
- `QUEUE_KIT_ATTEND_CAP` — positive integer, default `3`; the maximum `[attend]`
|
|
150
340
|
lead lines `bin/queue-index.sh` emits in its attention block before folding
|
|
151
341
|
the rest into an overflow note.
|
|
342
|
+
- `QUEUE_KIT_HORIZONS` — ordered array of horizon names for the `[roadmap:]`
|
|
343
|
+
tag's first field, default empty. The order is the projection's emitted
|
|
344
|
+
section order.
|
|
345
|
+
- `QUEUE_KIT_TRACKS` — array of track labels for the tag's second field,
|
|
346
|
+
default empty.
|
|
347
|
+
- `QUEUE_KIT_ROADMAP_FILE` — repo-relative path of the projection page, default
|
|
348
|
+
empty: no page, and `check-roadmap-fresh` skips clean.
|
|
349
|
+
- `QUEUE_KIT_ROADMAP_MARKER` — the marker-block token, default `roadmap`,
|
|
350
|
+
delimiting the generated span as `<!-- roadmap:begin -->` /
|
|
351
|
+
`<!-- roadmap:end -->`. One knob with two readers — the `--write` splice and
|
|
352
|
+
the gate's block locator — which must agree, so it resolves through this
|
|
353
|
+
loader rather than being re-defaulted in each.
|
|
354
|
+
|
|
355
|
+
The roadmap vocabulary is configured as a **pair**: `QUEUE_KIT_HORIZONS` or
|
|
356
|
+
`QUEUE_KIT_TRACKS` set while the other is empty is malformed config and
|
|
357
|
+
`lib/queue.sh` exits 2, per the loader's broken-grammar contract. A
|
|
358
|
+
half-configured vocabulary would silently accept every value of the
|
|
359
|
+
unconfigured field. Both empty is the unconfigured default — a consumer that
|
|
360
|
+
publishes no roadmap gets a clean skip rather than a kit-shaped one.
|
|
152
361
|
|
|
153
362
|
Cross-kit note: lifecycle-kit's `LIFECYCLE_KIT_ACTIVE_SECTIONS` carries the same
|
|
154
363
|
default. The knobs are independent (either kit runs without the other); a
|
|
155
|
-
consumer renaming its active sections sets both.
|
|
364
|
+
consumer renaming its active sections sets both. The icebox section name spans
|
|
365
|
+
every kit that reads the tier, on the same independent-knob shape —
|
|
366
|
+
`QUEUE_KIT_ICEBOX_SECTION` here, `CANON_KIT_ICEBOX_SECTION` for the
|
|
367
|
+
amendment lifecycle, `DRIFT_KIT_ICEBOX_SECTION` for the queue KPIs — so a
|
|
368
|
+
consumer enabling the tier sets each of them, and one left unset degrades that
|
|
369
|
+
kit to "no icebox" rather than to a wrong section.
|
|
156
370
|
|
|
157
371
|
## Per-component contracts
|
|
158
372
|
|
|
@@ -164,6 +378,31 @@ identically — a shared adapter removes that drift axis), and the slug/tag
|
|
|
164
378
|
extraction helpers. Values and adapters only, never gate structure
|
|
165
379
|
(gate-sdk's `lib/gate.sh` rule).
|
|
166
380
|
|
|
381
|
+
The loader validates what it loads: an empty or non-numeric knob is a
|
|
382
|
+
broken grammar, and the roadmap vocabulary is validated as a pair (§Layout and
|
|
383
|
+
configuration) rather than per-array, because the failure the check exists to
|
|
384
|
+
stop is one array set alone. Validation failures are collected and reported
|
|
385
|
+
together, then exit 2.
|
|
386
|
+
|
|
387
|
+
The icebox is *derived* here rather than configured twice: a non-empty
|
|
388
|
+
`QUEUE_KIT_ICEBOX_SECTION` joins both the shared task regex and the effective
|
|
389
|
+
required-sections set, and when it is empty every icebox regex is the empty
|
|
390
|
+
string so each reader degrades to "no icebox" rather than to "every section".
|
|
391
|
+
|
|
392
|
+
`queue_roadmap_entries <queue-file>` is the single `[roadmap:]` and
|
|
393
|
+
`roadmap-summary:` parse, shared by `bin/roadmap.sh` and `check-roadmap-fresh` so
|
|
394
|
+
the emitter and the gate can never disagree about what an entry claims — the same
|
|
395
|
+
one-adapter rule the section regexes follow. It walks the live task sections in
|
|
396
|
+
queue order and prints one tab-separated line per entry carrying **either**
|
|
397
|
+
marking: the entry's `[roadmap:]` tag count, the raw field text, the slug, the
|
|
398
|
+
`roadmap-summary:` declaration count, and the declaration's text. Emitting on
|
|
399
|
+
either marking rather than on the tag alone is what lets assertion C see a dead
|
|
400
|
+
declaration — an entry the tag has fallen off is exactly the case a
|
|
401
|
+
tag-triggered walk cannot report. An untagged entry's field column prints as `-`
|
|
402
|
+
rather than empty, because a tab counts as IFS whitespace: a reader splitting on
|
|
403
|
+
it coalesces an empty column and silently shifts every field after it, so a
|
|
404
|
+
fixed-arity line must never carry one.
|
|
405
|
+
|
|
167
406
|
The loader sources the consumer config, then a `<config>.local.sh` overlay
|
|
168
407
|
beside it when present — last write wins. This is the tracked-name /
|
|
169
408
|
gitignored-value split (the `msg-patterns.local.list` precedent): a private
|
|
@@ -176,7 +415,9 @@ fail-open, not an error.
|
|
|
176
415
|
Compact surface of the queue for task selection — the iteration header line
|
|
177
416
|
if present, then every top-level active entry as a one-line title plus tags,
|
|
178
417
|
ready (`•`) vs blocked (`✗`) marked from the `[blocked-by:]` tag alone. Tags
|
|
179
|
-
are stripped from the one-line title
|
|
418
|
+
are stripped from the one-line title leaving no residue of the separator they
|
|
419
|
+
sat beside, so an entry whose lead line is nothing but tags has no title and
|
|
420
|
+
renders as the bare slug rather than a dangling `—`; `[blocked-by:]` and
|
|
180
421
|
`[drain-exempt: <reason>]` are re-echoed after it — the two tags a picking
|
|
181
422
|
session acts on without opening the entry body.
|
|
182
423
|
`--extent <slug>` prints the inclusive line range of one entry's body (parent
|
|
@@ -187,7 +428,38 @@ per-`###`-subsection tally — generic over whatever subsection names the file
|
|
|
187
428
|
has (a hardcoded tally table would be consumer rule content), with
|
|
188
429
|
entries under no subsection tallied as `(top)`.
|
|
189
430
|
|
|
190
|
-
|
|
431
|
+
A configured icebox contributes exactly **one line** to the index —
|
|
432
|
+
`<section>: N entries` — and never an entry listing, on **both** `index`-mode
|
|
433
|
+
renderings (`--collapse-deferred` is a flag within that mode, not a mode of its
|
|
434
|
+
own; the tool's modes are `index`, `extent`, and `icebox-candidates`). The
|
|
435
|
+
tally must not reach `extent`, whose contract is two integers and nothing else.
|
|
436
|
+
The reasoning is the surface's: this output is embedded in the always-loaded
|
|
437
|
+
session-context brief, so listing the tier would re-import the very tokens the
|
|
438
|
+
tier exists to remove, while a bare count keeps it visible. An unconfigured
|
|
439
|
+
icebox emits no line at all.
|
|
440
|
+
|
|
441
|
+
`--icebox-candidates` prints the closing stage's eviction worklist over the
|
|
442
|
+
deferred section: one line per entry whose defer date (§The queue format) is
|
|
443
|
+
older than `QUEUE_KIT_ICEBOX_AGE_DAYS` **and** whose cost field opens in the low
|
|
444
|
+
class, carrying the entry's line count and that opener. An entry with no defer
|
|
445
|
+
date is listed as `(undated)` and an uncosted one as `(uncosted)` rather than
|
|
446
|
+
filtered out — an absent input appears rather than vanishing.
|
|
447
|
+
|
|
448
|
+
Both filters are deliberately **non-load-bearing**: this is a worklist filter
|
|
449
|
+
in a projection tool, not a threshold in a gate, so miscalibration costs a
|
|
450
|
+
longer or shorter review list and never a wrong disposition. That is what
|
|
451
|
+
dissolves "an eviction age threshold needs a policy owner" — the *judgment* is
|
|
452
|
+
the closing stage's, held to §The icebox tier's eligibility rule, and the
|
|
453
|
+
worklist only bounds how much it must look at. Matching a cost-class opener on
|
|
454
|
+
prose would be an unacceptable heuristic in a gate; in an advisory worklist it
|
|
455
|
+
is exactly the right ceiling. **A pool younger than the age threshold yields an
|
|
456
|
+
empty worklist**, which is correct and is not a reason to seed a tier by hand
|
|
457
|
+
against the tool: eligibility is the rule, the worklist is the convenience.
|
|
458
|
+
|
|
459
|
+
No queue-mutating tool is added — `--extent <slug>` already yields the line
|
|
460
|
+
range an eviction deletes.
|
|
461
|
+
|
|
462
|
+
Both index renderings append an **attention block** when the `## Lessons Learned` section
|
|
191
463
|
carries `[attend]` entries (§The tag algebra): each such entry's lead line,
|
|
192
464
|
capped at `QUEUE_KIT_ATTEND_CAP` (default 3) with overflow noted as
|
|
193
465
|
`(+N more [attend])`. Lead lines only, never bodies — the block is
|
|
@@ -195,6 +467,99 @@ always-loaded through the session-context hook that embeds this output, so the
|
|
|
195
467
|
cap is its token budget. This is the inbound lesson channel reaching every
|
|
196
468
|
later session of the iteration with zero consumer-hook edits.
|
|
197
469
|
|
|
470
|
+
### bin/roadmap.sh
|
|
471
|
+
|
|
472
|
+
The public-roadmap emitter: a tool, not a gate (no `# graph:` manifest),
|
|
473
|
+
following `bin/queue-index.sh`. `--emit` prints the generated block to stdout;
|
|
474
|
+
`--write` splices it between the markers in `QUEUE_KIT_ROADMAP_FILE` through
|
|
475
|
+
gate-sdk's `inject_marker_block`, leaving every byte outside them untouched. It
|
|
476
|
+
reads the live task sections only — active, deferred, and a configured icebox,
|
|
477
|
+
never the done section, because a shipped item is history, not direction. The
|
|
478
|
+
icebox enters that walk on purpose even though no icebox entry can be
|
|
479
|
+
projectable: excluded, a `[roadmap:]` tag that drifted into the tier would
|
|
480
|
+
silently drop a public commitment; included, it reds (§The icebox tier).
|
|
481
|
+
|
|
482
|
+
The emit grammar is a contract on both sides: `check-roadmap-fresh` byte-compares
|
|
483
|
+
it and a reader consumes it as the page's body.
|
|
484
|
+
|
|
485
|
+
- One `### <horizon>` heading per configured horizon, in configured order, each
|
|
486
|
+
emitted even when the queue puts nothing there — an empty horizon is
|
|
487
|
+
information, and a section that vanishes when it empties reads as a page that
|
|
488
|
+
forgot it. An empty horizon carries a one-line placeholder instead of bullets.
|
|
489
|
+
- Under each, one bullet per tagged entry, in queue order:
|
|
490
|
+
``- **`<slug>`** *(<track>)* — <summary>``.
|
|
491
|
+
- The summary is the entry's `roadmap-summary:` declaration (§The tag algebra),
|
|
492
|
+
printed verbatim. Nothing else in the entry is projected — not the lead line,
|
|
493
|
+
not the body, which carries internal design rationale and cost accounting,
|
|
494
|
+
precisely the content a public page must not inherit. The emitter neither
|
|
495
|
+
summarizes nor truncates: an author decided what the page says, and an entry
|
|
496
|
+
without a single non-empty declaration contributes no bullet at all, so
|
|
497
|
+
unmarked prose cannot reach the page even with the gate bypassed.
|
|
498
|
+
|
|
499
|
+
The block ends on a blank line. That blank is load-bearing rather than cosmetic:
|
|
500
|
+
the Pages parser closes a list only on one, so without it the `:end` marker abuts
|
|
501
|
+
the last bullet and renders *inside* that list item. Command substitution strips
|
|
502
|
+
the trailing newline on both sides of the freshness compare, so the byte-compare
|
|
503
|
+
is unaffected — the same arrangement `gen-value-rollup.sh` uses to keep a table
|
|
504
|
+
from swallowing its marker.
|
|
505
|
+
|
|
506
|
+
Honest limit — the lead line is a shared budget, and `[roadmap:]` competes for it
|
|
507
|
+
with every other tag the entry carries. Against `check-queue-wrap`'s floor a
|
|
508
|
+
`[spec: <file>]` tag is far wider than `[design-pending]`, so an entry carrying
|
|
509
|
+
a spec pointer and a long slug may have room for the `[roadmap:]` tag but none
|
|
510
|
+
for prose after it. That costs nothing now the summary lives on its own line:
|
|
511
|
+
the lead line needs room for the tag alone. It does bound the tag itself — a
|
|
512
|
+
sufficiently long slug plus spec pointer leaves no room even for that, and such an
|
|
513
|
+
entry is unprojectable until the pointer drops at the amendment's merge. A true
|
|
514
|
+
state of the queue rather than a defect to gate around: the wrap floor exists so a
|
|
515
|
+
runaway never reflows to column 0, and widening it to make room for a public page
|
|
516
|
+
would trade a parse guarantee for a presentation one.
|
|
517
|
+
|
|
518
|
+
Ordering inside a horizon is queue order, not a rank; the page states so in its
|
|
519
|
+
framing rather than implying a priority the queue does not carry. The
|
|
520
|
+
three-to-five items per horizon band is editorial posture, stated in the page's
|
|
521
|
+
framing prose, and deliberately **not gated**: a horizon legitimately holding two
|
|
522
|
+
items is a true state of the queue, and reddening a commit over it would buy a
|
|
523
|
+
curation opinion at the cost of the low-false-positive contract every gate here
|
|
524
|
+
is held to.
|
|
525
|
+
|
|
526
|
+
### check-roadmap-fresh
|
|
527
|
+
|
|
528
|
+
Invariant, in two assertions over `QUEUE_KIT_ROADMAP_FILE`:
|
|
529
|
+
|
|
530
|
+
- **(A) Freshness.** The committed marker block byte-matches
|
|
531
|
+
`bin/roadmap.sh --emit`, on the `check-footprint-fresh` /
|
|
532
|
+
`check-value-rollup-fresh` model — diff the emission against the block and name
|
|
533
|
+
the regen command in the red output. A missing file, missing markers, or an
|
|
534
|
+
unbalanced marker pair is fail-closed (exit 2): an absent projection under a
|
|
535
|
+
configured path is a broken install, not a clean skip.
|
|
536
|
+
- **(B) Tag-field validity.** Every `[roadmap:]` tag in the live task sections
|
|
537
|
+
parses as `<horizon>/<track>` with both fields members of their configured
|
|
538
|
+
arrays. An unknown horizon or track, a missing slash, or a second `[roadmap:]`
|
|
539
|
+
tag on one entry is a violation naming the entry and the offending field.
|
|
540
|
+
- **(C) Marking parity**, in both directions. A `[roadmap:]`-tagged entry carries
|
|
541
|
+
exactly one `roadmap-summary:` declaration — none, or two, is a violation,
|
|
542
|
+
because a curated entry with no marked text would otherwise reach a reader as a
|
|
543
|
+
bullet with no prose. And a declaration on an entry whose lead line carries no
|
|
544
|
+
`[roadmap:]` tag is a violation too: a dead marking is what a dropped or
|
|
545
|
+
reflowed tag looks like from the page's side, and the tag is what decides
|
|
546
|
+
projection.
|
|
547
|
+
|
|
548
|
+
Assertions B and C live here rather than in `check-tag-lead-line` because this is
|
|
549
|
+
the gate that already loads the horizon and track vocabularies and the shared
|
|
550
|
+
`[roadmap:]` parse; putting them in the lead-line gate would make a placement gate
|
|
551
|
+
load a value roster and a body-scoped declaration it has no other use for.
|
|
552
|
+
`check-tag-lead-line` still governs the tag on its *placement* axis, and governs
|
|
553
|
+
the declaration not at all — it is body-scoped by design.
|
|
554
|
+
|
|
555
|
+
Calibration: `QUEUE_KIT_ROADMAP_FILE` empty is a clean skip for both assertions
|
|
556
|
+
— the correct no-op for a consumer that publishes no roadmap, matching
|
|
557
|
+
`check-queue-slug-liveness`'s empty-globs behavior. The two-argument form
|
|
558
|
+
(`[projection-file] [emit-file]`) steers assertion A off the live emitter onto
|
|
559
|
+
pre-baked fixture files, the interface both cited models carry: a freshness gate
|
|
560
|
+
offering only its bare form has no fixture that does not read the live queue, so
|
|
561
|
+
the pair's verdict would turn on tree state outside the fixture directory.
|
|
562
|
+
|
|
198
563
|
### bin/lesson-sink.sh
|
|
199
564
|
|
|
200
565
|
The outbound channel's router: reads a lesson body on stdin and resolves the
|
|
@@ -237,8 +602,46 @@ silently find *nothing* — passing open — when a heading is dropped or
|
|
|
237
602
|
misspelled. A trailing `:` on a required entry marks a dynamic-suffix heading
|
|
238
603
|
(the iteration header, whose suffix is its iteration name) and is
|
|
239
604
|
prefix-matched; every other entry is matched exactly. A grep error (not a
|
|
240
|
-
no-match) is fail-closed (exit 2). The
|
|
241
|
-
|
|
605
|
+
no-match) is fail-closed (exit 2). The required set is the configured array
|
|
606
|
+
**plus the derived icebox heading** (§Layout and configuration), which is what
|
|
607
|
+
closes the half-configured hole by construction. The `# graph:` couples the
|
|
608
|
+
queue file at `tier=precommit`.
|
|
609
|
+
|
|
610
|
+
### check-queue-entry-budget
|
|
611
|
+
|
|
612
|
+
Invariant, one statement from two sides: **a deferred entry is a costed filing
|
|
613
|
+
— bounded above so it is not an inlined amendment, bounded below so it is not a
|
|
614
|
+
flag-and-skip.** Three assertions:
|
|
615
|
+
|
|
616
|
+
- **(A) Size.** No deferred entry exceeds `QUEUE_KIT_ENTRY_LINE_CAP` lines,
|
|
617
|
+
counted as the lead line through the line before the next bullet at the same
|
|
618
|
+
or shallower indent — the same extent `bin/queue-index.sh --extent` yields, so
|
|
619
|
+
the range the gate measures is the range an eviction deletes. A sub-task
|
|
620
|
+
nests inside its parent's extent and is measured as its own entry too.
|
|
621
|
+
- **(B) Icebox shape.** Every icebox entry is exactly one line; a continuation
|
|
622
|
+
line under an icebox bullet is a violation. Skips clean when
|
|
623
|
+
`QUEUE_KIT_ICEBOX_SECTION` is empty, the empty-knob behavior
|
|
624
|
+
`check-queue-slug-liveness` originates.
|
|
625
|
+
- **(C) Cost present.** Every top-level deferred entry carries a
|
|
626
|
+
`Cost while deferred` bold lead-in. Deliberately **not** applied to the
|
|
627
|
+
icebox: a one-line entry cannot carry the field and does not need to —
|
|
628
|
+
membership in the tier is itself the cost declaration (low, non-rotting, no
|
|
629
|
+
live trigger). The requirement binds exactly where the section does not
|
|
630
|
+
already imply the answer.
|
|
631
|
+
|
|
632
|
+
Calibration: `QUEUE_KIT_ENTRY_LINE_CAP` defaults to `50`. The cap's job is to
|
|
633
|
+
keep compression from regrowing rather than to force the initial cut, so it is
|
|
634
|
+
calibrated at the tail rather than the body — above the 75th percentile of a
|
|
635
|
+
real pool, with no natural break in the distribution to read a value off. It is
|
|
636
|
+
a stated policy with a stated purpose rather than a derived one, and it is a
|
|
637
|
+
knob for exactly that reason. The scan is line-local: the cost field's bold
|
|
638
|
+
lead-in must sit on one line, the same reason a tag must sit on its lead line
|
|
639
|
+
(§check-tag-lead-line), and a lead-in split by a reflow reads as absent. (C)
|
|
640
|
+
binds top-level entries only — a sub-task is covered by its parent's costing.
|
|
641
|
+
|
|
642
|
+
**The active sections are uncapped**, and the reason is structural: an active
|
|
643
|
+
entry's residency is one iteration by the drain rule, so it has no carry to
|
|
644
|
+
cap. The carry problem is the deferred pool's alone.
|
|
242
645
|
|
|
243
646
|
### check-queue-wrap
|
|
244
647
|
|
|
@@ -255,21 +658,33 @@ fenced-code blocks, and lines over budget solely due to one unbreakable token
|
|
|
255
658
|
|
|
256
659
|
Invariant: every **lead-line-scoped** tag sits on its bullet's lead line — the
|
|
257
660
|
only line *its* readers scan; such a tag pushed to a continuation line by a
|
|
258
|
-
reflow silently unblocks a task, masks a
|
|
661
|
+
reflow silently unblocks a task, masks a design-pending state, voids a drain
|
|
259
662
|
exemption, or drops a lesson out of the attention block. Membership tracks reader semantics, not §The tag
|
|
260
663
|
algebra: a tag is governed here when its readers scan lead lines alone, so the
|
|
261
664
|
set is narrower than the algebra's and `[precondition-ok:]` is deliberately
|
|
262
665
|
outside it — `check-queue-prose-precondition` honors that tag anywhere in the
|
|
263
666
|
entry, leaving it no lead-line requirement to enforce. The governed set and
|
|
264
667
|
scanned surface both widen with the lesson channels: `[blocked-by:]` /
|
|
265
|
-
`[spec:]` / `[
|
|
266
|
-
(active + deferred), plus
|
|
668
|
+
`[spec:]` / `[design-pending]` / `[drain-exempt:]` / `[roadmap:]` in the task
|
|
669
|
+
sections (active + deferred), plus
|
|
267
670
|
`[attend]` and every `QUEUE_KIT_LESSON_TAGS` name in the `## Lessons Learned`
|
|
268
671
|
section — the section `queue-index.sh` now reads, which retires the old "parsed
|
|
269
672
|
by no reader" exemption for it. Couples
|
|
270
673
|
the width-only wrap gate to the tag-parsing tools over the same surface: gate
|
|
271
674
|
the coupling, not just each side.
|
|
272
675
|
|
|
676
|
+
The gate states that set **once**, as a class table of `<name><terminator>`
|
|
677
|
+
tokens (`]` for a bare tag, `:` for a field tag) from which both the match
|
|
678
|
+
literal and the class key are derived. That single statement is the whole
|
|
679
|
+
point: a table entry naming the tag once cannot desync its matcher from its
|
|
680
|
+
key, and the desync had one silent direction — a key renamed without its regex
|
|
681
|
+
leaves every downstream reader agreeing while the matcher hunts a token no
|
|
682
|
+
entry carries, and the lead-line guard for that class dies with nothing
|
|
683
|
+
reddening. The table is also the **derivation surface** a consumer's enum
|
|
684
|
+
emitter reads for the tag vocabulary (this repo's `scripts/enum-sets.sh` →
|
|
685
|
+
`check-prose-enum`), so it is the single source for the spelling on both the
|
|
686
|
+
enforcement and the prose side.
|
|
687
|
+
|
|
273
688
|
Calibration: lead-class rule — a tag of class C on a continuation line is a
|
|
274
689
|
violation only when the lead line lacks class C (prose that mentions a tag
|
|
275
690
|
the lead already carries is tolerated); tags outside the scanned sections are
|
|
@@ -279,23 +694,35 @@ the lead — negligible severity, not reflow-realistic.
|
|
|
279
694
|
|
|
280
695
|
### check-task-names
|
|
281
696
|
|
|
282
|
-
Invariant: every
|
|
283
|
-
sub-task
|
|
284
|
-
done-section entry is a bare slug only; every
|
|
285
|
-
live task, and one pointing at a done slug is
|
|
697
|
+
Invariant: every entry in a live task section — active, deferred, and a
|
|
698
|
+
configured icebox — and every sub-task leads with a valid kebab-case slug,
|
|
699
|
+
unique across the file; every done-section entry is a bare slug only; every
|
|
700
|
+
`[blocked-by: X]` resolves to a live task, and one pointing at a done slug is
|
|
701
|
+
flagged stale.
|
|
286
702
|
|
|
287
|
-
Calibration:
|
|
288
|
-
regardless of where the target lives
|
|
289
|
-
|
|
290
|
-
|
|
703
|
+
Calibration: the live task sections share one namespace so resolution works
|
|
704
|
+
regardless of where the target lives — an iceboxed slug is a legal blocker
|
|
705
|
+
target, because it is unbuilt. The non-bold indented bullet is the documented
|
|
706
|
+
prose-note escape; done slugs are validated as tokens but not cross-checked
|
|
707
|
+
against the live namespace. Help texts cite this SPEC.
|
|
291
708
|
|
|
292
709
|
### check-task-conservation
|
|
293
710
|
|
|
294
|
-
Invariant: every live slug (active + deferred, sub-tasks included)
|
|
295
|
-
HEAD is still present in the working tree — live or done. A slug
|
|
296
|
-
from both is a lost task: the absence class diff-review reliably
|
|
297
|
-
notice wrong things present, not right things missing).
|
|
298
|
-
botched renames, and undocumented withdrawals all fire.
|
|
711
|
+
Invariant: every live slug (active + deferred + icebox, sub-tasks included)
|
|
712
|
+
present at HEAD is still present in the working tree — live or done. A slug
|
|
713
|
+
vanishing from both is a lost task: the absence class diff-review reliably
|
|
714
|
+
misses (you notice wrong things present, not right things missing).
|
|
715
|
+
Half-applied moves, botched renames, and undocumented withdrawals all fire.
|
|
716
|
+
|
|
717
|
+
**Eviction to the icebox is conserved by construction** — the slug stays in the
|
|
718
|
+
live set, so the gate stays silent and no sanctioned-disappearance escape had
|
|
719
|
+
to be invented. The done side is where care is owed: a done entry is matched as
|
|
720
|
+
a **bare `- <slug>` line and nothing else** — no bold, no tag, no trailing
|
|
721
|
+
prose. An entry *carried* into the done section with its
|
|
722
|
+
`- **<slug>** [design-pending] — …` shape intact therefore matches neither the
|
|
723
|
+
done grammar nor the live one, lands in no set, and reds here as a lost task.
|
|
724
|
+
Dispositioning an entry to done is a **rewrite to its slug**, not a relocation
|
|
725
|
+
of the entry; the tag is dropped by that reduction rather than swapped.
|
|
299
726
|
|
|
300
727
|
Calibration: diffs `git show HEAD:<queue>` against the worktree, hence
|
|
301
728
|
`no-fixture:` (a committed fixture has HEAD == worktree; the bad case needs
|
|
@@ -317,7 +744,9 @@ queue tag, not an HTML comment, so it survives the hygiene gate).
|
|
|
317
744
|
Calibration: the trigger set (`QUEUE_KIT_PRECONDITION_REGEX`) is deliberately
|
|
318
745
|
narrow — forward-looking phrasing only, past-tense narration stripped before
|
|
319
746
|
matching — and scoped to the active sections (the deferred section uses
|
|
320
|
-
"revisit when" as normal vocabulary and is exempt
|
|
747
|
+
"revisit when" as normal vocabulary and is exempt, and the icebox inherits that
|
|
748
|
+
exemption for the same reason: forward-looking phrasing is what a parked entry
|
|
749
|
+
is *for*). FP-bearing by
|
|
321
750
|
construction (parsing prose intent); the blocking grade is justified by a
|
|
322
751
|
silent pick attested in production use and the bounded scope.
|
|
323
752
|
|
|
@@ -327,7 +756,9 @@ Invariant: on every prose surface named by `QUEUE_KIT_PROSE_SURFACE_GLOBS`,
|
|
|
327
756
|
every slug-shaped bold-code token — `` **`<token>`** `` whose token matches the
|
|
328
757
|
slug grammar (`[a-z0-9][a-z0-9-]*`, so a `--flag` mention falls outside) —
|
|
329
758
|
resolves against the queue's live slug set (`lib/queue.sh`'s `queue_live_slugs`,
|
|
330
|
-
active + deferred
|
|
759
|
+
active + deferred + icebox — a page citing an iceboxed task stays green,
|
|
760
|
+
correctly: the task is dormant, not landed). A token naming no live task is a
|
|
761
|
+
dead membership claim,
|
|
331
762
|
reported by file, line, and slug. The slug set excludes done tasks by
|
|
332
763
|
construction: prose about landed work must drop the bold-code form and cite the
|
|
333
764
|
owning SPEC instead, so a living page can never keep calling a landed task
|
|
@@ -357,7 +788,7 @@ combined-tree copy clears the stage gates too.
|
|
|
357
788
|
## Out of scope
|
|
358
789
|
|
|
359
790
|
<!-- prose-enum-exempt: names the two amendment-lifecycle tags specifically; [blocked-by:] is a dependency tag outside that lifecycle, not a dropped task-tag member -->
|
|
360
|
-
The amendment lifecycle around `[
|
|
791
|
+
The amendment lifecycle around `[design-pending]`/`[spec:]` (section-wide
|
|
361
792
|
enforcement, promotion procedure, `check-amendment-queue`) is canon-kit's
|
|
362
793
|
scope. Code-comment TODO scanning (`TODO(task:<slug>)` resolution against
|
|
363
794
|
the queue) couples to source-file conventions and is canon-kit's, on the
|