wdi-method 0.6.1 → 0.6.2

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.
@@ -1,357 +1,371 @@
1
- ---
2
- name: wdi-build
3
- description: Use at G5 Release — one spec from open to closed in one supervised run. Opens the spec, hands the owner to-spec and to-tickets, ships every ticket to a green PR through a five-step pipeline, then closes the spec. One invocation, not four.
4
- ---
5
-
6
- # WDI Build
7
-
8
- One unit of work, one invocation. A spec used to need four calls — open it, produce the contract, ship each
9
- ticket, close it — and three of those were bookkeeping. They are all in here now, because a unit of work that
10
- needs four invocations gets three of them skipped.
11
-
12
- **The engine layer below this gate is not BMad's.** `to-spec`, `to-tickets`, and `implement` produce the
13
- contract, the tickets, and the code; `tdd` and `code-review` do the work inside them. `bmad-spec`,
14
- `bmad-build`, `bmad-build-auto`, and `bmad-code-review` are **retired** and MUST NOT be invoked.
15
-
16
- **Three of those engines are human-invoked.** `to-spec`, `to-tickets`, and `implement` carry
17
- `disable-model-invocation: true`, so this skill CANNOT invoke them and MUST NOT claim to. It states the command
18
- for the owner to run, waits, then verifies the result and lands it. That is not a workaround: the points where
19
- those engines need a human are the gates, and owner time is what a gate is for.
20
-
21
- **No orchestration tool is required, and this skill MUST NOT name one.** How the work is carried out is the
22
- session's own arrangement: an orchestration skill, this CLI's native subagent tooling, or the coordinator doing
23
- a step itself. Which CLI, which model, and which effort staff a step come from the local Agent Rules, and MUST
24
- NOT be restated here. Every rule below holds whatever the mechanism they are about the artifact and who
25
- judges it, not about how an agent is launched.
26
-
27
- Two roles exist regardless. The **coordinator** this session holds every judge call, the registries, and
28
- every remote git action. The **builder** of a step holds the spec and the code.
29
-
30
- When the coordinator is also the builder, the separation the pipeline rests on is absent. That MUST be reported
31
- as absent rather than worked around: a step judged by whoever wrote it is a self-report. One consequence is
32
- hard see Step 3: at `risk_accepted: low` the panel requires reviewers who are not the builder, and a session
33
- that cannot provide them is **blocked**, not excused.
34
-
35
- ## Precondition, and the one that is easy to miss
36
-
37
- | Check | When it fails |
38
- |---|---|
39
- | Every component this spec touches has passed G4, **or** sits at `mode: catalog` | Route to `wdi-component`. `spec-after-g4` checks it, and `catalog` skipping G4 is by design, not an exception |
40
- | An isolated worktree | Isolate first. MUST NOT run in a shared checkout |
41
- | Every `prd` slug names a real `.what/_prd/<initiative>/` folder | A spec without a promise covering it is a spec nobody agreed to (`spec-names-release-prd`) |
42
-
43
- The repo commits straight to `main` and opens a PR only when asked. **Invoking this skill is that ask**, for
44
- this spec only; it MUST NOT be read as standing permission for the next change.
45
-
46
- ## Phase 1 Open the spec
47
-
48
- Record it in `.control/registry/specs.yaml`. The frame opens here; the `tickets` rows land in Phase 2, because
49
- that is where they are born.
50
-
51
- | Field | Rule |
52
- |---|---|
53
- | `id` | `SPEC-<N>`, monotonic, never reused. A `W<N>` id in a frozen record is a **retired alias** and MUST NOT be rewritten |
54
- | `release` | MUST be stated. The release↔spec cadence is situational and MUST NOT be inferred from numbering (`spec-names-release-prd`) |
55
- | `prd` | MUST be stated: which initiative PRDs this spec delivers against. MUST NOT be derived from `release` |
56
- | `fr` | The `FR` this spec satisfies. Ideally one an `FR` is human-testable from birth |
57
- | `size` | `S` · `M` · `L`. MAY be raised mid-flight; MUST NOT be lowered |
58
- | `depends_on` | At **spec** level. A spec declaring none runs in parallel with its neighbours |
59
- | `spec_folder` | One per spec, not one per spec × component |
60
- | `tickets` | Flat, one row per ticket: `id` · `component` · `satisfies: [UC]` · `blocked_by` · `touches` · test names |
61
- | a ticket `id` | `<spec-id>-<NN>` — `SPEC-3-01`. The engine numbers its files from `01` per feature, which is unique only inside one spec; the RTM needs a key that is unique across the corpus |
62
-
63
- **`tickets` is an index, not a store.** The ticket's prose lives where the tracker put it; the row carries only
64
- what RTM and the validators read. And ticket **status** MUST NOT be copied here — it is read from the ticket
65
- itself when `.control/generated/` regenerates (`ticket-status-one-home`). Two homes for one fact is how registries start lying.
66
-
67
- `ticket-status-one-home` finds the file at `{spec_folder}/issues/<NN>-*.md`, from the number at the tail of the id, and reads its
68
- status from either a `**Status:**` body line what the engine writes, because a ticket file is a tracker
69
- payload and trackers do not read YAMLor `status:` in frontmatter.
70
-
71
- The `epics` nesting is **repealed**. A ticket names its `component` directly; an intermediate level that only
72
- grouped rows bought nothing and cost a lookup.
73
-
74
- Size does not choose which gates are active that is `mode`'s job. It decides two things: session merging
75
- (`S` merges G4 and G5 into one 20-minute session) and whether `SPEC.md` is written at all.
76
-
77
- ## Phase 2The contract, and the tickets
78
-
79
- Two engines, and **the owner runs both.** State the command, wait, then verify and land.
80
-
81
- | Size | What the owner runs | What lands |
82
- |---|---|---|
83
- | `M` · `L` | `/to-spec`, then `/to-tickets` | `SPEC.md` in `spec_folder` · ticket files · the `tickets` index rows |
84
- | `S` | `/to-tickets` only | ticket files · the `tickets` index rows. **No `SPEC.md`** |
85
-
86
- At `S` the tickets **are** the contract. `to-tickets` accepts a conversation directly, so a middle document
87
- buys nothing there. From `M` up it is written first, because two things have to be settled **before** tickets
88
- are cut and neither survives being decided afterwards: the **seams** the feature will be tested at — fewest
89
- possible, highest possible, agreed with the owner — and the **testing decisions**, which say what a good test
90
- is here and name the prior art.
91
-
92
- ### What you verify before landing anything
93
-
94
- - **Nothing new.** `SPEC.md` is a **projection** of `.what/` + `.how/`. It MAY restate a promise in its own
95
- words — a machine contract is more useful self-contained — but **every restatement MUST refer to the live
96
- corpus document it came from.** A reference that does not resolve is not a wording problem: the gap is
97
- upstream. Route to `wdi-component` or `wdi-blueprint`, and do not let the contract invent it.
98
- - **Every user story resolves to an id.** A user story with no `FR` or `UC` behind it is a **new promise**,
99
- and a new promise is `wdi-product`'s, never a spec's.
100
- - **Every ticket names what it satisfies.** No `satisfies`, no landing: without it the chain
101
- `FR UC ticket test` breaks and RTM cannot say which promise went green. This is the one field
102
- `to-tickets` does not ask for on its own, so it is the one most likely to be missing.
103
- - **Every ticket is vertical.** A slice of one layer is not a ticket. The exception is a wide refactor,
104
- sequenced expand → migrate in batches → contract; `delivery-flow-guide.md` owns that rule.
105
- - **Ticket files land under `spec_folder`.** Their **shape** is the engine's — one file per ticket, numbered
106
- in dependency order, blocking edges declared — and only the root is ours, because `to-tickets` states its
107
- own location is tracker-specific and configured. A ticket at the repo root, or under `docs/` or
108
- `.scratch/`, is drift: Article 3 names every layer this method has and those are not among them.
109
-
110
- `SPEC.md` and ticket files **are not read by humans.** Both are machine contracts, and no review burden MAY be
111
- moved onto them. `wdi-review` MAY still be dispatched over the contract; its trace lands on the spec in
112
- `specs.yaml` and where there is no `SPEC.md`, one trace covers the **ticket set as one artifact**, never one
113
- review per ticket.
114
-
115
- ## Phase 3 Ship each ticket
116
-
117
- Work the **frontier**: the tickets whose blockers are all closed. A ticket whose `blocked_by` is not yet
118
- satisfied MUST NOT be started, however ready it looks.
119
-
120
- | # | Step | Engine | Exit condition |
121
- |---|---|---|---|
122
- | 1 | Encode | `/tdd` | **Failing tests exist that encode this ticket's acceptance criteria** |
123
- | 2 | Build | `/implement` the owner runs it; it uses `/tdd` at the agreed seams | Those tests green, typecheck clean, full suite green once |
124
- | 3 | Panel | `code-review`, as a **separate** dispatch | Panel adjudicated, zero unresolved must-fix |
125
- | 4 | Publish | | Branch pushed, PR open, ticket-closing checklist answered |
126
- | 5 | CI | — | All checks conclude green on the pushed head SHA |
127
-
128
- **Step 1 is the change that matters most.** It used to be a plan, judged from a frontmatter field a builder
129
- wrote about itself. Now it is a **failing test suite** — the acceptance criteria, encoded, and demonstrably
130
- red. That is evidence rather than a claim, and it is what `ticket-has-test` and G5's ★2 have always been asking for:
131
- *acceptance criteria proven by a test, not by an agent's statement.* Under TDD the test exists **before** the
132
- code, so the proof is not retrofitted.
133
-
134
- ### Engine rules
135
-
136
- - **MUST judge Steps 1 and 2 from the test suite**, not from a report and not from a status field. Red at the
137
- right assertions closes Step 1; green with a clean typecheck closes Step 2. A builder's chat report MUST NOT
138
- settle either.
139
- - Ticket **status** is read from the ticket itself. It MUST NOT be copied into `specs.yaml` (`ticket-status-one-home`).
140
- - Every step MUST start from a **fresh context**, and a fix round MUST NOT go back to whoever produced the
141
- code. The ticket carries everything the next builder needs, and inherited context is how a step stops judging
142
- the artifact on its own merits. Where one session runs consecutive steps itself, it MUST re-read the artifact
143
- rather than trust what it remembers writing.
144
- - A step handed to a separate agent MUST be launched so it cannot sit waiting for input nobody will give, and
145
- its start MUST be confirmed from observed activity — never from a readiness match alone.
146
- - A step that fails because the agent could not spawn what it needed is a **capability** failure, not a ticket
147
- failure. MUST retry it somewhere that can, and MUST NOT record it against the ticket.
148
- - MUST NOT reorder or drop a step. A step with nothing to do MUST be reported as such, not skipped silently.
149
- - A ticket returned by the panel MUST have its acceptance criteria amended and its status reset before it is
150
- picked up again see Step 3.
151
-
152
- ### What every builder brief MUST carry
153
-
154
- Three rules this corpus adds, and `/implement` knows none of them. All three MUST reach whoever writes code in
155
- this spec in the dispatch when a step is dispatched, and in the session's own working instructions when it
156
- is not.
157
-
158
- - **Debugging is conditional, never a phase.** When a test or build fails and the cause is not known, the
159
- builder MUST run `wdi-systematic-debugging` before proposing any fix. A third failed fix attempt is the signal
160
- to escalate, not to try a fourth.
161
- - **The corpus is not the builder's to change.** A builder MUST NOT edit `.what/`, `.how/`, or an `applied`
162
- `DEC-`. A deviation from the SDD or an `AD-N` is **reported**, and it becomes a `DEC-` through
163
- `wdi-decision` never absorbed as a code patch.
164
- - **Verification is run, not assumed.** The commands are this product's, and they live in
165
- `.constitution/project/codebase-stack-guide.md` build, test, and whatever the front end needs, each with
166
- the directory it runs from. A skill MUST NOT carry one product's build line. A green registry workflow
167
- MUST NOT be reported as proof the code compiles; they answer different questions.
168
-
169
- ### Step 1 — encode the acceptance criteria as failing tests
170
-
171
- - The tests MUST be written **at the seams the spec agreed** existing seams preferred, highest possible,
172
- fewest possible. Inventing a new seam here, after the agreement, is a finding: it means Step 1 is redesigning
173
- what Phase 2 settled.
174
- - Every acceptance criterion MUST have at least one test. A criterion no test can express is not an acceptance
175
- criterion it goes back to the ticket, or to the owner as an intent gap.
176
- - The tests MUST be **seen red, at the right assertions.** A test that passes before the code exists is testing
177
- nothing, and a suite that fails for the wrong reason — an import error, a missing fixture — has not encoded
178
- anything yet.
179
- - A test MUST NOT assert a literal where the behaviour is what matters. The panel treats that as a test that
180
- cannot fail, and returns it.
181
-
182
- ### Step 2build
183
-
184
- - The owner runs `/implement`, and it MUST be given the ticket and the three brief rules above.
185
- - It commits to the current branch and **never pushes**. That is its own behaviour and it is what we want; the
186
- coordinator is the hand that pushes.
187
- - **`/implement` calls `/code-review` itself, and that call does NOT satisfy Step 3.** It is the builder
188
- reviewing its own work self-review by construction. Step 3 stands as a separate dispatch regardless of what
189
- ran inside Step 2.
190
- - The full suite MUST be run green once at the end, not only the tests this ticket touched. A ticket that
191
- passes its own tests and breaks a neighbour's has not finished.
192
- - Where the work turns out to need something the ticket does not authorise, it stops and reaches the owner with
193
- the question verbatim. The builder MUST NOT widen its own scope.
194
-
195
- ### Step 3panel, then judge
196
-
197
- Panel composition follows `risk_accepted`: at `low` a two-reviewer panel is **required** on the code; at
198
- `medium` and `high` it is available and SHOULD be used when the diff touches money, personal data, or a third
199
- party. The local Agent Rules govern which CLIs and models staff the panel. **A reviewer MUST be a different
200
- agent from the builder** the builder's own review layers, `/implement`'s internal `/code-review` included,
201
- are self-review by construction and never satisfy the panel. This is the one separation in the pipeline that
202
- MUST NOT be collapsed: where the session cannot provide it and `risk_accepted` is `low`, the ticket is blocked
203
- and the owner MUST be told, because the field they set is what makes the panel required.
204
-
205
- `code-review` reviews along two axes **Standards**, against this repo's documented conventions, and
206
- **Spec**, against what the ticket asked for. Both MUST run. Reporting one axis as the panel is reporting half
207
- a review.
208
-
209
- - MUST adjudicate every contested finding by reading the cited lines. Votes MUST NOT settle a finding. A finding
210
- neither reviewer can locate in the diff is dismissed with that reason stated.
211
-
212
- **MUST return to Step 2:**
213
-
214
- - Breaks a ticket's acceptance criterion, or contradicts the contract, the SDD, an `AD-N`, or an `applied` `DEC-`
215
- - Wrong behaviour, crash, or data loss reachable from the running app
216
- - Corpus drift: an `LC` touched but not registered, a contract changed in code but not in `02-contracts/`, a
217
- screen added without its `01-ux/` entry
218
- - An enum value rendered straight to the screen instead of read off its label map
219
- - Payment or private data reaching a tracked file
220
- - A weakened guard, or a test that cannot fail — including one asserting a literal instead of the behaviour it
221
- claims to cover
222
-
223
- **MUST record as follow-up and MUST NOT return to Step 2:** style or naming with no behaviour delta · a
224
- refactor outside this ticket's scope · a pre-existing defect this ticket did not touch · a speculative risk
225
- with no reachable path.
226
-
227
- A must-fix MUST return as a **ticket amendment**, never a chat instruction: amend what the ticket asks for,
228
- note the finding that caused it, reset the ticket's status to `ready-for-agent`, then pick it up again. **What
229
- a ticket `satisfies` is not amendable here** that is the promise, and a must-fix rooted in the promise is an
230
- intent gap that goes to the owner through `wdi-product`. Changing the `FR` a ticket serves in order to make the
231
- code pass is how a corpus starts agreeing with whatever was built.
232
-
233
- Cap: **2 return trips.** MUST re-run the whole panel after each fix round a fix introduces defects. On hitting
234
- the cap MUST escalate and MUST NOT open a PR carrying an unresolved must-fix.
235
-
236
- ### When the code turns out to be right and the document wrong
237
-
238
- This is normal during G5 and it is **not drift**. Building a thing is how you find out what the thing is.
239
-
240
- The builder still MUST NOT edit `.what/`, `.how/`, or an `applied` `DEC-` to make its own code fit — that is
241
- the corpus learning to agree with whatever was built, and it is a different failure. What happens instead:
242
-
243
- 1. **Say it once.** Name what the code does, which promise it contradicts, and what that costs. One place,
244
- one time. An `AD-N` is the one contradiction that **stops** `decision-guide.md` owns it.
245
- 2. **The owner decides.** If they adopt the code, that survey is spent.
246
- 3. **The owning skill edits**, in the present tense, as if the design had always said this `wdi-product`
247
- for an `FR`, `wdi-component` for behaviour or design, `wdi-blueprint` for a cross-component rule.
248
-
249
- What MUST NOT happen after step 2: raising the same conflict again in a later pass, opening an `OQ-` for it,
250
- dispatching a review over it, or writing anywhere in the corpus that the change arrived late. The commit is
251
- that record. `corpus-guide.md` § The corpus is written in the present tense is the binding rule.
252
-
253
- ### Step 4 ticket-closing checklist, then push and PR
254
-
255
- The checklist is **three items**, and it MUST be answered before the PR opens:
256
-
257
- 1. Something the next person needs to know? **into the document that carries it**, and that is almost
258
- always where it ends. It reaches `wdi-decision` only when no design document has a home for it —
259
- `decision-guide.md` § A decision's first home. A ticket contradicting an `AD-N` **stops** rather than
260
- closing; that is the one case where recording is mandatory.
261
- 2. A trap for the next agent? → recorded where the next agent will read it.
262
- 3. Test names matching what `specs.yaml` records?
263
-
264
- The five items that left this list moved to Phase 4, where the information actually exists.
265
-
266
- - MUST run the repository's commit/push audit before `git push`: refuse the forbidden paths, run the guard test,
267
- fix content on failure. A failing guard is a finding about the content — MUST NOT weaken the guard or the test.
268
- - MUST NOT push to `main`/`master`, MUST NOT force-push, MUST NOT merge.
269
- - The coordinator MUST be the hand that pushes and opens the PR.
270
-
271
- ### Step 5 watch CI, then judge
272
-
273
- - MUST wait for every check to conclude, then confirm the checks belong to the **pushed head SHA**. A green
274
- report from a stale run is a false report.
275
- - `korpus.yml` validates the corpus, not the code. Build and test evidence comes from Step 2's own runs.
276
- - Classify each failure before acting: a defect from this change → Step 1 if the test was missing, Step 2 if
277
- the code was wrong, with `wdi-systematic-debugging` when
278
- the cause is unknown · infrastructure or flake → re-run **once**, and MUST NOT patch code to mask it; a second
279
- identical failure is a defect · a guard failure fix the content.
280
- - Cap: 2 return trips. On hitting the cap MUST report red honestly rather than keep pushing.
281
-
282
- ### Parallel tickets
283
-
284
- Tickets with no blocking edge between them MAY run at once that is what the frontier is — but four
285
- conditions MUST hold: each concurrent builder in its own worktree; `parallel-tickets-blocked` green for every pair released together;
286
- the first ticket that establishes a component's shape already closed, so later tickets inherit its code map;
287
- and no shared registry write in flight.
288
-
289
- **A wide refactor is the exception, and it inverts the rule.** Its batches MUST run in sequence, not in
290
- parallel, because each keeps CI green only while the expand still stands. Where even a batch cannot stay green
291
- alone, they share an integration branch and green is promised only at the final integrate-and-verify ticket.
292
-
293
- The pattern that MUST be preferred: run the biggest blocker alone first, let its shape decisions land, then fan
294
- out.
295
-
296
- ## Phase 4 — Close the spec
297
-
298
- **Six steps.** Run in this order and stop at the first failure.
299
-
300
- 1. **Registry catch-up.** Every `LC` the spec's design named is registered in `components.yaml`, and every
301
- `touches` value resolves — `lc-registered`. This is the moment those questions have answers.
302
- 2. **Inventories refreshed from code.** Run `.constitution/method/scripts/inventory.py`. The plan-versus-reality
303
- difference is reported as a finding; it MUST NOT be patched into agreement by hand.
304
- 3. **Structure maps refreshed** through `wdi-init` intent `structure`, if a base folder was born or removed or a
305
- key file moved.
306
- 4. **Distillation.** Every applicable row of the ownership table in `corpus-guide.md` has been landed by its
307
- owner. Anything durable in the spec folder leaves it now, or dies with it — **the ticket files included.**
308
- Their prose is working output; what survives is the index in `specs.yaml` and whatever the checklist routed.
309
- 5. **RTM green.** Every traceability row for this spec is closed. New risks are in the risk register with an
310
- owner.
311
- 6. Mark the spec `status: closed` in `specs.yaml`.
312
-
313
- The retrospective step is **repealed**, and `RTR-` with it. It was the only thing size `L` decided, and the
314
- only thing `V19` checked.
315
-
316
- - You MUST NOT close a spec with an open distillation row. The whole point of an ephemeral working layer is that
317
- durable truth leaves it first.
318
- - You MUST NOT reopen a closed spec to add scope. Scope arriving late opens a new spec, or goes through
319
- `wdi-decision` if it invalidates what is already planned.
320
- - A change invalidating more than 30% of a spec's tickets MUST go through `wdi-decision`, not a patch to
321
- `specs.yaml`.
322
- - Fast Path work is recorded as `fastpath` with no gates. If an `FR` turns out to be touched, the work MUST stop
323
- and be raised to a spec `S`.
324
-
325
- ## Red Flags — STOP
326
-
327
- - "One reviewer approved, good enough"
328
- - Judging Step 1 or Step 2 from a report instead of from the test suite
329
- - **Counting `/implement`'s own `/code-review` as the panel** that is the builder reviewing itself
330
- - Writing `SPEC.md` at size `S`, or skipping it at `M` and up
331
- - Landing a ticket with no `satisfies` the RTM chain breaks silently and nothing else notices
332
- - Amending what a ticket `satisfies` to make a must-fix go away
333
- - A ticket that slices one layer instead of cutting through all of them, outside a wide refactor
334
- - Running a wide refactor's batches in parallel
335
- - Claiming this skill invoked `to-spec`, `to-tickets`, or `implement` it cannot; the owner runs them
336
- - A builder editing `.what/`, `.how/`, or an `applied` `DEC-` to make its code fit
337
- - Fixing a failing test without knowing why it failed
338
- - Opening a PR with an unresolved must-fix, or before the ticket-closing checklist is answered
339
- - Editing a guard, a test, or an assertion to turn something green
340
- - Reporting green without checking the head SHA, or reading green `korpus.yml` as a passing build
341
- - Leaving a dispatched step able to stall on a question nobody is there to answer
342
- - Naming an orchestration tool as this skill's requirement, or restating a CLI/model mapping the Agent Rules own
343
- - Closing the spec without the registry catch-up in Phase 4 that is where five checklist items now live
344
- - Letting the contract state something `.what/` and `.how/` do not, or restate it without a reference
345
-
346
- **Each of these means: stop, return to the step or phase that owns it, or escalate to the owner.**
347
-
348
- ## Output
349
-
350
- MUST follow the Agent Rules `Answer Closing` block, carrying these additions:
351
-
352
- - **what was done** spec, `FR` satisfied, every ticket with its branch and PR URL, what the code now does
353
- - **what blocked it** every step that looped, every dismissed finding and why, anything left red, and every
354
- Phase 4 item that did not pass
355
- - **what comes next** every finding recorded as follow-up, every entry in a contract's `deferred` list, every
356
- ticket-closing item routed to another skill, and the plan-versus-code inventory differences. A follow-up
357
- absent here is a lost finding.
1
+ ---
2
+ name: wdi-build
3
+ description: Use at G5 Release — one spec from open to closed in one supervised run. Opens the spec, hands the owner to-spec and to-tickets, ships every ticket to a green PR through a five-step pipeline, then closes the spec. One invocation, not four.
4
+ ---
5
+
6
+ # WDI Build
7
+
8
+ One unit of work, one invocation. A spec used to need four calls — open it, produce the contract, ship each
9
+ ticket, close it — and three of those were bookkeeping. They are all in here now, because a unit of work that
10
+ needs four invocations gets three of them skipped.
11
+
12
+ **The engine layer below this gate is not BMad's.** `to-spec`, `to-tickets`, and `implement` produce the
13
+ contract, the tickets, and the code; `tdd` and `code-review` do the work inside them. `bmad-spec`,
14
+ `bmad-build`, `bmad-build-auto`, and `bmad-code-review` are **retired** and MUST NOT be invoked.
15
+
16
+ **Three of those engines are human-invoked.** `to-spec`, `to-tickets`, and `implement` carry
17
+ `disable-model-invocation: true`, so this skill CANNOT invoke them and MUST NOT claim to. It states the command
18
+ for the owner to run, waits, then verifies the result and lands it. That is not a workaround: the points where
19
+ those engines need a human are the gates, and owner time is what a gate is for.
20
+
21
+ **Under an active mandate the owner's part is `wdi-autopilot`'s.** A `DEC-` of `type: mandate` at
22
+ `status: accepted`, unexpired, moves **every** "the owner runs" and "the owner decides" in this skill to the
23
+ coordinator G5's checklist and Step 2's *stop and reach the owner* included, which reach the coordinator and
24
+ not a person. Three of them change **shape** as well as owner: the engines run by **read-and-follow** — a builder brief
25
+ that names the engine's `SKILL.md` path and carries out its process — or from a copy in the repo, and the ledger
26
+ names which; the seams, the `to-tickets` quiz, and § When the code turns out to be right are decided by the
27
+ coordinator and written to the ledger, one row each; and whatever the mandate lists as `parked` still stops,
28
+ reported for the owner rather than decided. One thing changes **shape** rather than owner: a mandate is one
29
+ unit of work and reaches `main` through **one PR**, so Step 4 commits the ticket to the run branch instead of
30
+ opening a PR per ticket, and Step 5's push and CI watch happen at every spec close on that one PR the
31
+ checklist, the head-SHA rule, and the caps are unchanged. Nothing else in this skill relaxes. `wdi-autopilot` owns the
32
+ mandate, the ledger, and the loop; this skill MUST NOT restate them.
33
+
34
+ **No orchestration tool is required, and this skill MUST NOT name one.** How the work is carried out is the
35
+ session's own arrangement: an orchestration skill, this CLI's native subagent tooling, or the coordinator doing
36
+ a step itself. Which CLI, which model, and which effort staff a step come from the local Agent Rules, and MUST
37
+ NOT be restated here. Every rule below holds whatever the mechanism — they are about the artifact and who
38
+ judges it, not about how an agent is launched.
39
+
40
+ Two roles exist regardless. The **coordinator** this session holds every judge call, the registries, and
41
+ every remote git action. The **builder** of a step holds the spec and the code.
42
+
43
+ When the coordinator is also the builder, the separation the pipeline rests on is absent. That MUST be reported
44
+ as absent rather than worked around: a step judged by whoever wrote it is a self-report. One consequence is
45
+ hard — see Step 3: at `risk_accepted: low` the panel requires reviewers who are not the builder, and a session
46
+ that cannot provide them is **blocked**, not excused.
47
+
48
+ ## Precondition, and the one that is easy to miss
49
+
50
+ | Check | When it fails |
51
+ |---|---|
52
+ | Every component this spec touches has passed G4, **or** sits at `mode: catalog` | Route to `wdi-component`. `spec-after-g4` checks it, and `catalog` skipping G4 is by design, not an exception |
53
+ | An isolated worktree | Isolate first. MUST NOT run in a shared checkout |
54
+ | Every `prd` slug names a real `.what/_prd/<initiative>/` folder | A spec without a promise covering it is a spec nobody agreed to (`spec-names-release-prd`) |
55
+
56
+ The repo commits straight to `main` and opens a PR only when asked. **Invoking this skill is that ask**, for
57
+ this spec only; it MUST NOT be read as standing permission for the next change.
58
+
59
+ ## Phase 1 Open the spec
60
+
61
+ Record it in `.control/registry/specs.yaml`. The frame opens here; the `tickets` rows land in Phase 2, because
62
+ that is where they are born.
63
+
64
+ | Field | Rule |
65
+ |---|---|
66
+ | `id` | `SPEC-<N>`, monotonic, never reused. A `W<N>` id in a frozen record is a **retired alias** and MUST NOT be rewritten |
67
+ | `release` | MUST be stated. The release↔spec cadence is situational and MUST NOT be inferred from numbering (`spec-names-release-prd`) |
68
+ | `prd` | MUST be stated: which initiative PRDs this spec delivers against. MUST NOT be derived from `release` |
69
+ | `fr` | The `FR` this spec satisfies. Ideally one an `FR` is human-testable from birth |
70
+ | `size` | `S` · `M` · `L`. MAY be raised mid-flight; MUST NOT be lowered |
71
+ | `depends_on` | At **spec** level. A spec declaring none runs in parallel with its neighbours |
72
+ | `spec_folder` | One per spec, not one per spec × component |
73
+ | `tickets` | Flat, one row per ticket: `id` · `component` · `satisfies: [UC]` · `blocked_by` · `touches` · test names |
74
+ | a ticket `id` | `<spec-id>-<NN>` `SPEC-3-01`. The engine numbers its files from `01` per feature, which is unique only inside one spec; the RTM needs a key that is unique across the corpus |
75
+
76
+ **`tickets` is an index, not a store.** The ticket's prose lives where the tracker put it; the row carries only
77
+ what RTM and the validators read. And ticket **status** MUST NOT be copied here it is read from the ticket
78
+ itself when `.control/generated/` regenerates (`ticket-status-one-home`). Two homes for one fact is how registries start lying.
79
+
80
+ `ticket-status-one-home` finds the file at `{spec_folder}/issues/<NN>-*.md`, from the number at the tail of the id, and reads its
81
+ status from either a `**Status:**` body line — what the engine writes, because a ticket file is a tracker
82
+ payload and trackers do not read YAML — or `status:` in frontmatter.
83
+
84
+ The `epics` nesting is **repealed**. A ticket names its `component` directly; an intermediate level that only
85
+ grouped rows bought nothing and cost a lookup.
86
+
87
+ Size does not choose which gates are active that is `mode`'s job. It decides two things: session merging
88
+ (`S` merges G4 and G5 into one 20-minute session) and whether `SPEC.md` is written at all.
89
+
90
+ ## Phase 2 — The contract, and the tickets
91
+
92
+ Two engines, and **the owner runs both.** State the command, wait, then verify and land.
93
+
94
+ | Size | What the owner runs | What lands |
95
+ |---|---|---|
96
+ | `M` · `L` | `/to-spec`, then `/to-tickets` | `SPEC.md` in `spec_folder` · ticket files · the `tickets` index rows |
97
+ | `S` | `/to-tickets` only | ticket files · the `tickets` index rows. **No `SPEC.md`** |
98
+
99
+ At `S` the tickets **are** the contract. `to-tickets` accepts a conversation directly, so a middle document
100
+ buys nothing there. From `M` up it is written first, because two things have to be settled **before** tickets
101
+ are cut and neither survives being decided afterwards: the **seams** the feature will be tested at fewest
102
+ possible, highest possible, agreed with the owner and the **testing decisions**, which say what a good test
103
+ is here and name the prior art.
104
+
105
+ ### What you verify before landing anything
106
+
107
+ - **Nothing new.** `SPEC.md` is a **projection** of `.what/` + `.how/`. It MAY restate a promise in its own
108
+ words a machine contract is more useful self-contained but **every restatement MUST refer to the live
109
+ corpus document it came from.** A reference that does not resolve is not a wording problem: the gap is
110
+ upstream. Route to `wdi-component` or `wdi-blueprint`, and do not let the contract invent it.
111
+ - **Every user story resolves to an id.** A user story with no `FR` or `UC` behind it is a **new promise**,
112
+ and a new promise is `wdi-product`'s, never a spec's.
113
+ - **Every ticket names what it satisfies.** No `satisfies`, no landing: without it the chain
114
+ `FR → UC → ticket → test` breaks and RTM cannot say which promise went green. This is the one field
115
+ `to-tickets` does not ask for on its own, so it is the one most likely to be missing.
116
+ - **Every ticket is vertical.** A slice of one layer is not a ticket. The exception is a wide refactor,
117
+ sequenced expand migrate in batches contract; `delivery-flow-guide.md` owns that rule.
118
+ - **Ticket files land under `spec_folder`.** Their **shape** is the engine's — one file per ticket, numbered
119
+ in dependency order, blocking edges declared — and only the root is ours, because `to-tickets` states its
120
+ own location is tracker-specific and configured. A ticket at the repo root, or under `docs/` or
121
+ `.scratch/`, is drift: Article 3 names every layer this method has and those are not among them.
122
+
123
+ `SPEC.md` and ticket files **are not read by humans.** Both are machine contracts, and no review burden MAY be
124
+ moved onto them. `wdi-review` MAY still be dispatched over the contract; its trace lands on the spec in
125
+ `specs.yaml` and where there is no `SPEC.md`, one trace covers the **ticket set as one artifact**, never one
126
+ review per ticket.
127
+
128
+ ## Phase 3 Ship each ticket
129
+
130
+ Work the **frontier**: the tickets whose blockers are all closed. A ticket whose `blocked_by` is not yet
131
+ satisfied MUST NOT be started, however ready it looks.
132
+
133
+ | # | Step | Engine | Exit condition |
134
+ |---|---|---|---|
135
+ | 1 | Encode | `/tdd` | **Failing tests exist that encode this ticket's acceptance criteria** |
136
+ | 2 | Build | `/implement` the owner runs it; it uses `/tdd` at the agreed seams | Those tests green, typecheck clean, full suite green once |
137
+ | 3 | Panel | `code-review`, as a **separate** dispatch | Panel adjudicated, zero unresolved must-fix |
138
+ | 4 | Publish | — | Branch pushed, PR open, ticket-closing checklist answered |
139
+ | 5 | CI | | All checks conclude green on the pushed head SHA |
140
+
141
+ **Step 1 is the change that matters most.** It used to be a plan, judged from a frontmatter field a builder
142
+ wrote about itself. Now it is a **failing test suite** the acceptance criteria, encoded, and demonstrably
143
+ red. That is evidence rather than a claim, and it is what `ticket-has-test` and G5's ★2 have always been asking for:
144
+ *acceptance criteria proven by a test, not by an agent's statement.* Under TDD the test exists **before** the
145
+ code, so the proof is not retrofitted.
146
+
147
+ ### Engine rules
148
+
149
+ - **MUST judge Steps 1 and 2 from the test suite**, not from a report and not from a status field. Red at the
150
+ right assertions closes Step 1; green with a clean typecheck closes Step 2. A builder's chat report MUST NOT
151
+ settle either.
152
+ - Ticket **status** is read from the ticket itself. It MUST NOT be copied into `specs.yaml` (`ticket-status-one-home`).
153
+ - Every step MUST start from a **fresh context**, and a fix round MUST NOT go back to whoever produced the
154
+ code. The ticket carries everything the next builder needs, and inherited context is how a step stops judging
155
+ the artifact on its own merits. Where one session runs consecutive steps itself, it MUST re-read the artifact
156
+ rather than trust what it remembers writing.
157
+ - A step handed to a separate agent MUST be launched so it cannot sit waiting for input nobody will give, and
158
+ its start MUST be confirmed from observed activity never from a readiness match alone.
159
+ - A step that fails because the agent could not spawn what it needed is a **capability** failure, not a ticket
160
+ failure. MUST retry it somewhere that can, and MUST NOT record it against the ticket.
161
+ - MUST NOT reorder or drop a step. A step with nothing to do MUST be reported as such, not skipped silently.
162
+ - A ticket returned by the panel MUST have its acceptance criteria amended and its status reset before it is
163
+ picked up again see Step 3.
164
+
165
+ ### What every builder brief MUST carry
166
+
167
+ Three rules this corpus adds, and `/implement` knows none of them. All three MUST reach whoever writes code in
168
+ this spec — in the dispatch when a step is dispatched, and in the session's own working instructions when it
169
+ is not.
170
+
171
+ - **Debugging is conditional, never a phase.** When a test or build fails and the cause is not known, the
172
+ builder MUST run `wdi-systematic-debugging` before proposing any fix. A third failed fix attempt is the signal
173
+ to escalate, not to try a fourth.
174
+ - **The corpus is not the builder's to change.** A builder MUST NOT edit `.what/`, `.how/`, or an `applied`
175
+ `DEC-`. A deviation from the SDD or an `AD-N` is **reported**, and it becomes a `DEC-` through
176
+ `wdi-decision` never absorbed as a code patch.
177
+ - **Verification is run, not assumed.** The commands are this product's, and they live in
178
+ `.constitution/project/codebase-stack-guide.md` — build, test, and whatever the front end needs, each with
179
+ the directory it runs from. A skill MUST NOT carry one product's build line. A green registry workflow
180
+ MUST NOT be reported as proof the code compiles; they answer different questions.
181
+
182
+ ### Step 1encode the acceptance criteria as failing tests
183
+
184
+ - The tests MUST be written **at the seams the spec agreed** existing seams preferred, highest possible,
185
+ fewest possible. Inventing a new seam here, after the agreement, is a finding: it means Step 1 is redesigning
186
+ what Phase 2 settled.
187
+ - Every acceptance criterion MUST have at least one test. A criterion no test can express is not an acceptance
188
+ criterion it goes back to the ticket, or to the owner as an intent gap.
189
+ - The tests MUST be **seen red, at the right assertions.** A test that passes before the code exists is testing
190
+ nothing, and a suite that fails for the wrong reason an import error, a missing fixture has not encoded
191
+ anything yet.
192
+ - A test MUST NOT assert a literal where the behaviour is what matters. The panel treats that as a test that
193
+ cannot fail, and returns it.
194
+
195
+ ### Step 2build
196
+
197
+ - The owner runs `/implement`, and it MUST be given the ticket and the three brief rules above.
198
+ - It commits to the current branch and **never pushes**. That is its own behaviour and it is what we want; the
199
+ coordinator is the hand that pushes.
200
+ - **`/implement` calls `/code-review` itself, and that call does NOT satisfy Step 3.** It is the builder
201
+ reviewing its own work — self-review by construction. Step 3 stands as a separate dispatch regardless of what
202
+ ran inside Step 2.
203
+ - The full suite MUST be run green once at the end, not only the tests this ticket touched. A ticket that
204
+ passes its own tests and breaks a neighbour's has not finished.
205
+ - Where the work turns out to need something the ticket does not authorise, it stops and reaches the owner with
206
+ the question verbatim. The builder MUST NOT widen its own scope.
207
+
208
+ ### Step 3 — panel, then judge
209
+
210
+ Panel composition follows `risk_accepted`: at `low` a two-reviewer panel is **required** on the code; at
211
+ `medium` and `high` it is available and SHOULD be used when the diff touches money, personal data, or a third
212
+ party. The local Agent Rules govern which CLIs and models staff the panel. **A reviewer MUST be a different
213
+ agent from the builder** — the builder's own review layers, `/implement`'s internal `/code-review` included,
214
+ are self-review by construction and never satisfy the panel. This is the one separation in the pipeline that
215
+ MUST NOT be collapsed: where the session cannot provide it and `risk_accepted` is `low`, the ticket is blocked
216
+ and the owner MUST be told, because the field they set is what makes the panel required.
217
+
218
+ `code-review` reviews along two axes **Standards**, against this repo's documented conventions, and
219
+ **Spec**, against what the ticket asked for. Both MUST run. Reporting one axis as the panel is reporting half
220
+ a review.
221
+
222
+ - MUST adjudicate every contested finding by reading the cited lines. Votes MUST NOT settle a finding. A finding
223
+ neither reviewer can locate in the diff is dismissed with that reason stated.
224
+
225
+ **MUST return to Step 2:**
226
+
227
+ - Breaks a ticket's acceptance criterion, or contradicts the contract, the SDD, an `AD-N`, or an `applied` `DEC-`
228
+ - Wrong behaviour, crash, or data loss reachable from the running app
229
+ - Corpus drift: an `LC` touched but not registered, a contract changed in code but not in `02-contracts/`, a
230
+ screen added without its `01-ux/` entry
231
+ - An enum value rendered straight to the screen instead of read off its label map
232
+ - Payment or private data reaching a tracked file
233
+ - A weakened guard, or a test that cannot fail including one asserting a literal instead of the behaviour it
234
+ claims to cover
235
+
236
+ **MUST record as follow-up and MUST NOT return to Step 2:** style or naming with no behaviour delta · a
237
+ refactor outside this ticket's scope · a pre-existing defect this ticket did not touch · a speculative risk
238
+ with no reachable path.
239
+
240
+ A must-fix MUST return as a **ticket amendment**, never a chat instruction: amend what the ticket asks for,
241
+ note the finding that caused it, reset the ticket's status to `ready-for-agent`, then pick it up again. **What
242
+ a ticket `satisfies` is not amendable here** — that is the promise, and a must-fix rooted in the promise is an
243
+ intent gap that goes to the owner through `wdi-product`. Changing the `FR` a ticket serves in order to make the
244
+ code pass is how a corpus starts agreeing with whatever was built.
245
+
246
+ Cap: **2 return trips.** MUST re-run the whole panel after each fix round a fix introduces defects. On hitting
247
+ the cap MUST escalate and MUST NOT open a PR carrying an unresolved must-fix.
248
+
249
+ ### When the code turns out to be right and the document wrong
250
+
251
+ This is normal during G5 and it is **not drift**. Building a thing is how you find out what the thing is.
252
+
253
+ The builder still MUST NOT edit `.what/`, `.how/`, or an `applied` `DEC-` to make its own code fit — that is
254
+ the corpus learning to agree with whatever was built, and it is a different failure. What happens instead:
255
+
256
+ 1. **Say it once.** Name what the code does, which promise it contradicts, and what that costs. One place,
257
+ one time. An `AD-N` is the one contradiction that **stops** `decision-guide.md` owns it.
258
+ 2. **The owner decides.** If they adopt the code, that survey is spent.
259
+ 3. **The owning skill edits**, in the present tense, as if the design had always said this — `wdi-product`
260
+ for an `FR`, `wdi-component` for behaviour or design, `wdi-blueprint` for a cross-component rule.
261
+
262
+ What MUST NOT happen after step 2: raising the same conflict again in a later pass, opening an `OQ-` for it,
263
+ dispatching a review over it, or writing anywhere in the corpus that the change arrived late. The commit is
264
+ that record. `corpus-guide.md` § The corpus is written in the present tense is the binding rule.
265
+
266
+ ### Step 4 ticket-closing checklist, then push and PR
267
+
268
+ The checklist is **three items**, and it MUST be answered before the PR opens:
269
+
270
+ 1. Something the next person needs to know? → **into the document that carries it**, and that is almost
271
+ always where it ends. It reaches `wdi-decision` only when no design document has a home for it —
272
+ `decision-guide.md` § A decision's first home. A ticket contradicting an `AD-N` **stops** rather than
273
+ closing; that is the one case where recording is mandatory.
274
+ 2. A trap for the next agent? recorded where the next agent will read it.
275
+ 3. Test names matching what `specs.yaml` records?
276
+
277
+ The five items that left this list moved to Phase 4, where the information actually exists.
278
+
279
+ - MUST run the repository's commit/push audit before `git push`: refuse the forbidden paths, run the guard test,
280
+ fix content on failure. A failing guard is a finding about the content MUST NOT weaken the guard or the test.
281
+ - MUST NOT push to `main`/`master`, MUST NOT force-push, MUST NOT merge.
282
+ - The coordinator MUST be the hand that pushes and opens the PR.
283
+
284
+ ### Step 5watch CI, then judge
285
+
286
+ - MUST wait for every check to conclude, then confirm the checks belong to the **pushed head SHA**. A green
287
+ report from a stale run is a false report.
288
+ - `korpus.yml` validates the corpus, not the code. Build and test evidence comes from Step 2's own runs.
289
+ - Classify each failure before acting: a defect from this change Step 1 if the test was missing, Step 2 if
290
+ the code was wrong, with `wdi-systematic-debugging` when
291
+ the cause is unknown · infrastructure or flake → re-run **once**, and MUST NOT patch code to mask it; a second
292
+ identical failure is a defect · a guard failure → fix the content.
293
+ - Cap: 2 return trips. On hitting the cap MUST report red honestly rather than keep pushing.
294
+
295
+ ### Parallel tickets
296
+
297
+ Tickets with no blocking edge between them MAY run at once — that is what the frontier is — but four
298
+ conditions MUST hold: each concurrent builder in its own worktree; `parallel-tickets-blocked` green for every pair released together;
299
+ the first ticket that establishes a component's shape already closed, so later tickets inherit its code map;
300
+ and no shared registry write in flight.
301
+
302
+ **A wide refactor is the exception, and it inverts the rule.** Its batches MUST run in sequence, not in
303
+ parallel, because each keeps CI green only while the expand still stands. Where even a batch cannot stay green
304
+ alone, they share an integration branch and green is promised only at the final integrate-and-verify ticket.
305
+
306
+ The pattern that MUST be preferred: run the biggest blocker alone first, let its shape decisions land, then fan
307
+ out.
308
+
309
+ ## Phase 4 Close the spec
310
+
311
+ **Six steps.** Run in this order and stop at the first failure.
312
+
313
+ 1. **Registry catch-up.** Every `LC` the spec's design named is registered in `components.yaml`, and every
314
+ `touches` value resolves — `lc-registered`. This is the moment those questions have answers.
315
+ 2. **Inventories refreshed from code.** Run `.constitution/method/scripts/inventory.py`. The plan-versus-reality
316
+ difference is reported as a finding; it MUST NOT be patched into agreement by hand.
317
+ 3. **Structure maps refreshed** through `wdi-init` intent `structure`, if a base folder was born or removed or a
318
+ key file moved.
319
+ 4. **Distillation.** Every applicable row of the ownership table in `corpus-guide.md` has been landed by its
320
+ owner. Anything durable in the spec folder leaves it now, or dies with it **the ticket files included.**
321
+ Their prose is working output; what survives is the index in `specs.yaml` and whatever the checklist routed.
322
+ 5. **RTM green.** Every traceability row for this spec is closed. New risks are in the risk register with an
323
+ owner.
324
+ 6. Mark the spec `status: closed` in `specs.yaml`.
325
+
326
+ The retrospective step is **repealed**, and `RTR-` with it. It was the only thing size `L` decided, and the
327
+ only thing `V19` checked.
328
+
329
+ - You MUST NOT close a spec with an open distillation row. The whole point of an ephemeral working layer is that
330
+ durable truth leaves it first.
331
+ - You MUST NOT reopen a closed spec to add scope. Scope arriving late opens a new spec, or goes through
332
+ `wdi-decision` if it invalidates what is already planned.
333
+ - A change invalidating more than 30% of a spec's tickets MUST go through `wdi-decision`, not a patch to
334
+ `specs.yaml`.
335
+ - Fast Path work is recorded as `fastpath` with no gates. If an `FR` turns out to be touched, the work MUST stop
336
+ and be raised to a spec `S`.
337
+
338
+ ## Red Flags STOP
339
+
340
+ - "One reviewer approved, good enough"
341
+ - Judging Step 1 or Step 2 from a report instead of from the test suite
342
+ - **Counting `/implement`'s own `/code-review` as the panel** that is the builder reviewing itself
343
+ - Writing `SPEC.md` at size `S`, or skipping it at `M` and up
344
+ - Landing a ticket with no `satisfies` the RTM chain breaks silently and nothing else notices
345
+ - Amending what a ticket `satisfies` to make a must-fix go away
346
+ - A ticket that slices one layer instead of cutting through all of them, outside a wide refactor
347
+ - Running a wide refactor's batches in parallel
348
+ - Claiming this skill invoked `to-spec`, `to-tickets`, or `implement` — it cannot; the owner runs them, or under
349
+ a mandate a builder reads and follows them, and the ledger says so
350
+ - A builder editing `.what/`, `.how/`, or an `applied` `DEC-` to make its code fit
351
+ - Fixing a failing test without knowing why it failed
352
+ - Opening a PR with an unresolved must-fix, or before the ticket-closing checklist is answered
353
+ - Editing a guard, a test, or an assertion to turn something green
354
+ - Reporting green without checking the head SHA, or reading green `korpus.yml` as a passing build
355
+ - Leaving a dispatched step able to stall on a question nobody is there to answer
356
+ - Naming an orchestration tool as this skill's requirement, or restating a CLI/model mapping the Agent Rules own
357
+ - Closing the spec without the registry catch-up in Phase 4 — that is where five checklist items now live
358
+ - Letting the contract state something `.what/` and `.how/` do not, or restate it without a reference
359
+
360
+ **Each of these means: stop, return to the step or phase that owns it, or escalate to the owner.**
361
+
362
+ ## Output
363
+
364
+ MUST follow the Agent Rules `Answer Closing` block, carrying these additions:
365
+
366
+ - **what was done** — spec, `FR` satisfied, every ticket with its branch and PR URL, what the code now does
367
+ - **what blocked it** — every step that looped, every dismissed finding and why, anything left red, and every
368
+ Phase 4 item that did not pass
369
+ - **what comes next** — every finding recorded as follow-up, every entry in a contract's `deferred` list, every
370
+ ticket-closing item routed to another skill, and the plan-versus-code inventory differences. A follow-up
371
+ absent here is a lost finding.