@skitterbyte/skitterspec-azure-boards 2.19.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/MIGRATION.md +126 -0
  2. package/README.md +11 -2
  3. package/assets/claude-md-section.md +23 -123
  4. package/assets/core/SETUP.md +4 -3
  5. package/assets/project-conventions.md +17 -0
  6. package/assets/rules/commit-trailers.md +37 -93
  7. package/assets/rules/negative-checks.md +21 -48
  8. package/assets/rules/offered-unblocks.md +39 -74
  9. package/assets/rules/spec-format.md +117 -0
  10. package/assets/rules/spec-planning.md +128 -1013
  11. package/assets/rules/spec-reports.md +70 -607
  12. package/assets/skills/no-spec/SKILL.md +4 -4
  13. package/assets/skills/spec/SKILL.md +7 -7
  14. package/assets/skills/spec/kind-routing.md +35 -0
  15. package/assets/skills/spec-bug/SKILL.md +6 -6
  16. package/assets/skills/spec-cancel/SKILL.md +1 -1
  17. package/assets/skills/spec-complete/SKILL.md +1 -1
  18. package/assets/skills/spec-diff/SKILL.md +6 -2
  19. package/assets/skills/spec-diff/review-page.md +89 -0
  20. package/assets/skills/spec-diff/review-wait.md +133 -0
  21. package/assets/skills/spec-epic-next/SKILL.md +2 -1
  22. package/assets/skills/spec-epic-next/epics.md +44 -0
  23. package/assets/skills/spec-hotfix/SKILL.md +5 -5
  24. package/assets/skills/spec-incident/SKILL.md +1 -1
  25. package/assets/skills/spec-next/SKILL.md +5 -5
  26. package/assets/skills/spec-resume/SKILL.md +204 -8
  27. package/assets/skills/spec-review/SKILL.md +1 -1
  28. package/assets/skills/spec-start/isolation.md +90 -0
  29. package/bin/skitterspec-azure-boards.js +3 -2
  30. package/package.json +2 -3
  31. package/src/cli.js +72 -5
  32. package/src/conventions.js +43 -0
  33. package/src/env/resume.js +116 -3
  34. package/src/init.js +180 -30
  35. package/src/spec-planning-history.json +103 -0
  36. package/src/updateall.js +152 -0
@@ -1,32 +1,23 @@
1
1
  # Spec Reports
2
2
 
3
- Every lifecycle skill ends with the same block. This file is its whole
4
- definition — a skill's `## Report` section names only which fields it emits and
5
- any behaviour that was always there.
6
-
7
- Two things it buys: a run's outcome is scannable in one shape rather than
8
- composed fresh each time, and "nothing happened" becomes a reported outcome
9
- instead of an absent one.
3
+ Every lifecycle skill ends with the same block. This file defines it. A skill's
4
+ `## Report` section names only its verdicts and the fields it emits.
10
5
 
11
6
  ## Silence during the run
12
7
 
13
- **Do not narrate.** Not what you are about to do, not why, not which step you
14
- are on. The tool calls are already on screen, so a line per step re-states the
15
- transcript in words that never vary.
16
-
17
- Speak mid-run for exactly two reasons:
8
+ **Do not narrate.** The tool calls are already on screen. Speak mid-run for
9
+ exactly two reasons:
18
10
 
19
- - **A question you cannot answer yourself** — a decision the spec left open, a
20
- confirmation a guard demands, an ambiguity with more than one defensible
21
- answer.
22
- - **A failure, at the moment it happens** — a red test, a refused command, a
23
- conflict. Say it where it occurs; do not hold it back for the block.
11
+ - **A question you cannot answer yourself**: a decision the spec left open, a
12
+ confirmation a guard demands, or a real ambiguity.
13
+ - **A failure, when it happens**: a red test, a refused command, a conflict.
24
14
 
25
- Everything else waits.
15
+ Everything else waits for the block.
26
16
 
27
17
  ## The block
28
18
 
29
- A verdict sentence, a blank line, then a two-column table:
19
+ A verdict sentence, a blank line, then a two-column table with an empty header
20
+ row:
30
21
 
31
22
  ✅ **Phase 2 built** — `feat-foo`, 2 of 4
32
23
 
@@ -36,548 +27,93 @@ A verdict sentence, a blank line, then a two-column table:
36
27
  | **Branch** | `spec/feat-foo` · 3 commits, clean |
37
28
  | **Built** | POST /orders handler, orders schema |
38
29
  | **Tests** | 128 passed · dotnet test |
39
- | **Review** | 7 files, +212 −18 · **local** [http://127.0.0.1:7760/…](http://127.0.0.1:7760/…) · **network** [http://192.168.0.136:7760/…](http://192.168.0.136:7760/…) · **remote** [http://100.126.111.34:7760/…](http://100.126.111.34:7760/…) (tailnet) |
40
30
  | **Follow-ups** | none |
41
- | **Next** | `/spec-next` → phase 3 (Auth) |
42
-
43
- **A table, and never a fenced block.** An aligned label column is only
44
- achievable inside a fence, because markdown collapses runs of spaces outside
45
- one — so alignment and being recognised as a report are mutually exclusive, and
46
- the report wins. A fence renders as the same grey box as a code sample, and a
47
- reader who has been shown code all session reads one more box as code: the first
48
- person to receive one of these did not register it as output at all, and missed
49
- the `Next` row inside it. That is the exact scanning failure this contract exists
50
- to fix, so producing it in the contract's own format is not a cosmetic mistake.
51
-
52
- **The verdict sentence** is `<state> **<one clause>** — <spec>, <where it got
53
- to>`. The clause says what happened; the tail says to what, and how far. Name
54
- the skill in the clause when the run's identity is not obvious from the
55
- conversation — a refusal, or a skill invoked by another. A run with no spec to
56
- name drops that segment rather than inventing one.
57
-
58
- **The header row is empty.** The labels are the left column, and a header over
59
- them would only be able to say "field", which no one needs told.
60
-
61
- **The block is the last thing in the message.** Nothing follows it — not a
62
- closing line, not a next step, not the offer. Everything the reader must act on
63
- is a row, which is what earns the block its position.
64
-
65
- **And that is a rule about the destination, not only the prohibition.** It was
66
- stated plainly and broken repeatedly, by runs that had something worth saying
67
- and nowhere in the block to say it — so the paragraph went after the table,
68
- where it buried the rows it was meant to sit beside. A missing destination reads
69
- as a rule that does not fit the work, and a rule that does not fit gets ignored.
70
- So: **if it is worth telling the reader, it is a row.**
71
- **If it is not a row, it is not worth telling them.**
72
- `Notes` is the row most of that content belongs in.
73
-
74
- **Two controls may follow the block, and nothing else ever.** The ban exists
75
- because *prose* after the block competes with it for the reader's attention and
76
- loses them the rows. A control does not compete: it is a row made actionable, in
77
- the place the reader's eye already finishes. Prose after either of them is the
78
- same violation wearing a control's clothes.
79
-
80
- **The first is a picker.** Where the run ends in a choice the reader must make,
81
- the options may be offered after the table.
82
-
83
- **The second is the review call-to-action**, and only where the run is actually
84
- **waiting** on a verdict. It is a banner, not a sentence:
85
-
86
- ---
87
-
88
- ## ⏸ Review ready — 7 files, +212 −18
89
-
90
- - **local** — [http://127.0.0.1:7760/7e9e123e7540/feat-orders](http://127.0.0.1:7760/7e9e123e7540/feat-orders)
91
- - **network** — [http://192.168.0.136:7760/7e9e123e7540/feat-orders](http://192.168.0.136:7760/7e9e123e7540/feat-orders)
92
- - **remote** — [http://100.126.111.34:7760/7e9e123e7540/feat-orders](http://100.126.111.34:7760/7e9e123e7540/feat-orders) (tailnet)
93
-
94
- live: off — /spec-live to put it live
95
-
96
- I'm holding here until you send a verdict — the wait covers local, network and remote.
97
-
98
- `/spec-reviewed` picks it up · `spec-env review skip "<reason>"` moves on
99
-
100
- ---
101
-
102
- A rule, a heading naming the state and the size, **the stack**, the `live:`
103
- line, one line saying the run is stopped and which tiers it covers, and the two
104
- exits. Nothing else, and never a paragraph explaining it.
105
-
106
- **The `live:` line, and why a rigid contract took a second amendment.** Reading
107
- a diff is not the only way to judge a change — often the question is whether it
108
- *works* — and the answer to that lives at the running URL. A reader deciding
109
- whether to open the page at all wants to know whether it is already running
110
- somewhere, and finding that out any other way is a trip to a terminal in the
111
- middle of a review.
112
-
113
- **Each line names a command a person types**, rather than describing a
114
- capability. `live: off — the page can put it live` told the reader that a page
115
- somewhere could do it and left them to find the verb — and the verb is what they
116
- need when they are in a terminal rather than on the page. So the lines say
117
- `/spec-live` and `/spec-live main`. Making them *clickable*
118
- was considered and rejected: the only clickable thing markdown has is a URL, and
119
- a URL that acts when it is **fetched** is one a link previewer or a prefetcher
120
- fires with nobody involved.
121
-
122
- It is the engine's line, copied like the stack: `spec-env review` prints it and
123
- `--json` carries the same answer as `live`, from one function, so the report and
124
- the command cannot disagree. Four states, and only three of them are a line —
125
- `on` (with the URL when the project configured one), `off`, `held` (naming the
126
- spec holding the workbench). The fourth, `unavailable`,
127
- **prints nothing at all**:
128
- a project with no isolation and a spec with no worktree both land there,
129
- and a line about a surface that does not exist is an accusation against a
130
- healthy repo.
131
-
132
- **This is the second amendment to this section in two specs**, which is worth
133
- naming rather than letting pass. The contract earns its rigidity from real
134
- failures, and two amendments in a row is how a rigid contract quietly becomes a
135
- negotiable one. Both have carried their reason and both replaced a line rather
136
- than adding a paragraph.
137
- **A third should have to argue harder than either did.**
138
-
139
- **The stack is the engine's, copied rather than composed.** `spec-env review`
140
- prints one line per tier and `--json` carries the same thing as `tiers`, so take
141
- it from there in the order it comes — and do not decide which tiers are worth
142
- mentioning. The whole reason the stack exists is that the engine was being asked
143
- to guess where the reader was sitting, and it guessed wrong three separate ways
144
- in one day; a skill re-deciding that in prose is the same guess one layer up.
145
-
146
- **And it holds outside a skill too.** Whenever you relay engine output that
147
- carries a stack — `epic status` asked in passing, a `resolve`, an answer to a
148
- question — pass on every tier, every `also:` line with its label, and the
149
- `remote` line, never the one URL that looked like the answer. An agent asked
150
- about an epic once replied with the member list and the loopback link alone,
151
- and the reader on a phone was left with nothing they could open.
152
-
153
- **Three tiers, always all three, in this order.**
154
-
155
- | Tier | Is | Off when |
156
- |------|----|----------|
157
- | `local` | the loopback URL — the machine the run is on | never. With nothing served it is the `file://` page, and says it cannot send a verdict |
158
- | `network` | the LAN URL — a phone on the same wifi | `review.allowNetwork` is false, or this machine has no network address |
159
- | `remote` | the tailnet URL, labelled `(tailnet)` — a reader off the wifi | whenever `network` is, with the same command; or this machine has no tailnet address |
160
-
161
- **Labelled by address, never by where the reader sits.** `local` is loopback,
162
- `network` the LAN, `remote` the tailnet, wherever the reader is. Relabelling
163
- the LAN `local` whenever loopback is hidden would give one URL two names, and
164
- a label that moves is one nobody learns.
165
-
166
- A tier that is off **keeps its line** and names the one command that turns it
167
- on — or, where nothing of ours can, says why (`no tailnet address on this
168
- machine`). Dropping the line is what left a reader who had walked out of the
169
- house with nothing on screen to tell them a remote door was even possible —
170
- they could not ask for what they could not see.
171
-
172
- **One exception: a reader on another machine sees no `local` line.** This is
173
- the third amendment, and it argues from the rule's own reason. The rule keeps a
174
- line so the reader can see a door they could ask to have opened. But when the
175
- engine runs on one machine and the reader is on another — a wrapper running it
176
- inside a VM, or an ssh session — `127.0.0.1` is the engine's machine, not the
177
- reader's. That door never opens, whatever anyone asks. It was also first in the
178
- stack, the link habit reaches for, and it cost a timeout on every review. So the
179
- engine hides it, on `SKITTERSPEC_READER=remote` (`local` outranks everything
180
- below it), the committed `review.reader`, ssh, or a Windows session with no
181
- desktop (no `SESSIONNAME`, which is what `prlctl exec`, the OpenSSH server and a
182
- scheduled task all look like). It hides it only
183
- when `network` has a URL to take its place; otherwise the line stays and says
184
- it is unreachable.
185
-
186
- **That last signal is detection, allowed here for what a wrong guess costs.** The network URL is the same server, so it opens from
187
- the engine's own machine too. A reader wrongly judged to be elsewhere gets the
188
- second-best link, never a page that will not open. Detection has done harm
189
- before when it decided whether to *serve*, because a wrong guess there removed
190
- the verdict loop. Nothing like that is at stake here. The skill still decides
191
- nothing. A tier marked `hidden` in `--json` is absent from the printed stack, so
192
- copying the stack still produces the right banner. The holding line names the
193
- engine's `covers` — *the wait covers network* — never a door the stack did not
194
- show.
195
-
196
- **A tier may carry alternates, and they are part of it — not a fourth tier.**
197
- Where this machine has a second address of the same kind — another LAN
198
- interface, a second tailnet one — the engine prints it as an `also:` line under
199
- its tier, labelled; `--json` carries it as that tier's `alternates`, labelled
200
- the same way. Copy them as indented sub-bullets under that tier's bullet,
201
- verbatim, labels included: the stack is the engine's, copied rather than
202
- composed. A machine with no alternates — the usual case — renders the banner
203
- exactly as above.
204
-
205
- **The fourth amendment, and the first to remove rules rather than add them.**
206
- `remote` was a published claude.ai page: a second store no wait could watch, a
207
- page this tooling could never delete, and a toggle command of its own. Once the
208
- review server answered on the tailnet, a reader off the wifi already had a door
209
- into the same room — printed as an `also:` sub-line, the hardest link in the
210
- stack to find. So the published tier was retired and the tailnet took its name
211
- (feat-tailnet-remote-tier). It deletes a tier, its caveat and a transport, and
212
- adds no kind of line; that is the argument the bar above asked for.
213
-
214
- **Only promise a wait the transport can deliver.** The wait itself is real in
215
- every case; what varies is what carries it back, not whether the run is
216
- stopped. Two transports, two true sentences:
217
-
218
- - **A page the engine SERVES** hands its pass to the local store, and
219
- `spec-env review wait` returns when it lands. The run is woken by the press:
220
- *"I'm holding here until you send a verdict."*
221
-
222
- **That sentence is only true for as long as the wait is actually running**, so
223
- the wait is the engine's and never one composed for the occasion. A watcher
224
- written per run is proven by nothing: one was written
225
- `until [ -f "$P" ] && [ "$x" \> "$y" ]` — valid bash, a syntax error in zsh,
226
- a predicate that could never be true — and it spun for five minutes while the
227
- report underneath it said the run was holding.
228
- **Silence is what made that expensive**:
229
- a wait that cannot fire and one patiently working look identical,
230
- so nothing seemed wrong until the reader asked. Give the wait no timeout
231
- either; it lasts as long as the session, because a reader who walks away from
232
- a diff is the normal case and a bounded watch once lost a verdict to a lunch
233
- break.
234
- - **A `file://` page** has no server to POST to, so the pass is copied and
235
- pasted — the reader's next message is what carries it. The run is stopped just
236
- the same, and says so:
237
- *"I'm holding here — paste the pass when you have it."*
238
- This is the same wait, carried by the conversation instead of a watch. It is
239
- not a lesser one, and it is not an excuse to ask without waiting.
240
-
241
- A third transport — a published page writing to a store nothing here watched —
242
- was retired with the published tier. A verdict that arrives when no wait is
243
- running is the one left that nothing pushes into the conversation, and its
244
- sentence is *press a verdict, then type `/spec-reviewed` — I cannot see it until
245
- you do.*
246
-
247
- **A harness with no file-watch does not get an exemption.** It once read
248
- "change nothing" — keep the row, keep the question, do not wait — and that
249
- escape hatch is what let a whole class of runs go on asking questions nobody was
250
- listening for. Where a watch is unavailable the wait is the turn ending, which
251
- every harness can do.
252
-
253
- **Run it under a persistent watch primitive where the harness has one** — one
254
- that lives for the whole session and whose deliberate stop is an explicit act
255
- (Claude Code: the `Monitor` tool with `persistent: true`, ended by `TaskStop`).
256
- A backgrounded shell is reclaimed on a long idle — that is the death the next
257
- paragraph recovers from — where a session-length primitive is designed to
258
- survive it. Where the harness has none, background the command exactly as
259
- before. The engine's wait stays the one watcher either way: its heartbeat goes
260
- to stderr, so stdout carries only the start line and the arrival, and the exit
261
- ends the watch.
262
-
263
- **A watch that dies is re-armed, silently, on the same window.** A backgrounded
264
- wait does not always survive a long idle: three sessions lost theirs over one
265
- lunch break, and two in another were killed at 43 and 30 minutes. So a wait that
266
- ends **without a verdict** and **was not stopped by the operator** is started
267
- again on the **same** `--since`. Not a fresh one — a pass that arrived during
268
- the gap is still inside the original window, and re-arming on a new timestamp
269
- would strand exactly that pass.
270
-
271
- **Say as little as the harness allows when you do it.** Nothing happened and
272
- the window is unchanged; a line on every death turns a working loop into a
273
- stream of non-events. Where the harness lets a turn end on the tool call, the
274
- tool call is the whole turn. Where it insists on visible text — Claude Code
275
- does, after a monitor event — that text is one fixed line,
276
- `Still waiting for the verdict.`, and nothing else: not the spec, not the age,
277
- not the links. The wait's own start line arriving as an event is answered the
278
- same way.
279
-
280
- **Every fifth re-arm, show the banner again.** Even one line per re-arm adds
281
- up: over a long idle they push the verdict line and the banner's links out of
282
- sight, and a reader who comes back has to scroll for the URL that lets them
283
- answer. So `review wait` counts the starts on each window, and on every fifth
284
- re-arm its start line is followed by `re-show: banner (re-arm N)` and the stack.
285
- Relay that as the run's **verdict line** — copied from the block when it is
286
- still in context, dropped rather than reconstructed when it is not — and then
287
- **the banner** in its current state, with its stack copied from the `re-show:`
288
- lines. Not the table: that would be a second block.
289
-
290
- **A count here, not an age**, and the bound below is unaffected. What buries
291
- the banner is how many re-arms have scrolled past it, and a death every five
292
- minutes and one every forty-five push it up the same distance each. The age of
293
- the window still decides when to stop.
294
-
295
- **And it is not a third control after the block.** It is the banner this file
296
- already defines, repeated in whatever state it is in — past the bound, that is
297
- the degraded sentence below. No block is repeated, so nothing follows a second
298
- one, and nothing about the banner's shape changes.
299
-
300
- **An operator who stopped it is not a death** — re-arming over a deliberate
301
- stop makes the wait unstoppable, which is worse than a wait that stops. But a
302
- deliberate stop is an **explicit act with positive evidence**: this session
303
- called TaskStop, or the operator said to stop waiting. A bare killed-task
304
- notification carries neither and is read as a **death**. This clause once said
305
- to treat the ambiguous kill as deliberate, and that safe branch ate the
306
- recovery whole: every observed kill was the harness reclaiming an idle shell
307
- and none was a person, so the case it protected against does not occur — while
308
- the `/spec-reviewed` it charged was paid on every idle review. The deliberate
309
- stop is the positive signal, so its absence is what a death looks like
310
- (`.claude/rules/negative-checks.md` rule 1).
311
-
312
- **It is bounded by the age of the window, not by a count of retries.** Keep
313
- re-arming while the window is younger than **12 hours**, then stop. A count means
314
- something different depending on whether deaths come five minutes or forty-five
315
- apart, and the observed interval already varies that much. Twelve hours
316
- deliberately does not cover an overnight gap — the pass is never lost, and
317
- `/spec-reviewed` is the designed recovery — because the alternative is waking
318
- the session every half hour all night for a review nobody is returning to
319
- before morning.
320
-
321
- **Past the bound the banner degrades**, to the sentence this file already
322
- defines for a verdict nothing pushes into the conversation:
323
-
324
- *press a verdict, then type `/spec-reviewed` — I cannot see it until you do.*
325
-
326
- That is a new **state** for an existing sentence, not a new sentence. The
327
- holding line is only ever printed while a wait is actually running, which is the
328
- rule this section has always carried: *only promise a wait the transport can
329
- deliver.*
330
-
331
- **The `Continue` ending, and why the banner's exits differ mid-run.** A page
332
- rendered part-way through a run offers `Continue` — *I have read it, carry on* —
333
- in place of the committing verdicts, because "commit" is the wrong verb for
334
- unfinished work. Its banner names the same state and the same stack, and
335
- different exits:
336
-
337
- …the stack, unchanged…
338
-
339
- I'm holding here until you send a verdict — the wait covers local and network.
340
-
341
- `Continue` carries on · `Request changes` works them now
342
-
343
- The stack is written out once, above, and referred to everywhere else. Two
344
- copies of it is how the two come to disagree about which tiers exist.
345
-
346
- **It is not the `none` verdict that was removed.** `none` recorded itself and
347
- did nothing, which is the record-and-do-nothing ending this contract exists
348
- against. `Continue` **resumes the run** — it names an action, which is the bar
349
- every verdict has to clear. What it does not do is commit, and it can never
350
- clear the gate a finished phase armed: that gate is discharged by a committing
351
- verdict or a recorded skip, and by nothing else.
352
-
353
- **So waiting and arming are separate**, and only one of them is about this
354
- block. *Waiting* is what any offer does, and it is what this section governs.
355
- *Arming* asserts an obligation that outlives the turn, and belongs only to work
356
- that is finished. A mid-run render waits without arming — walking away from it
357
- costs nothing, which is exactly why `Continue` is safe to offer there.
358
-
359
- **One link per door, each labelled, all into one store.** This amends
360
- *"exactly one link, never two"*, and the evidence that rule was written on is
361
- the reason it still reads the way it does. Two links were handed over, the wait
362
- stood behind only one of them, and a verdict was pressed on the published page
363
- three times while each one sat unread under a line claiming the run was waiting.
364
- Two links was not a convenience with a caveat; the caveat existing was the bug.
365
-
366
- **What that evidence is about is the store, not the count.** A served page hands
367
- its pass to the local pending store, which `spec-env review wait` watches; the
368
- published page wrote to an artifact's own store, which nothing here could see.
369
- Two links into two stores asks the reader to know which door the run is standing
370
- behind, and they cannot — which is why the second store was retired rather
371
- than caveated.
372
-
373
- **Local, network and remote are three doors into one room.** The page POSTs with
374
- `fetch(location.pathname, …)`, so a page opened at `127.0.0.1:7760/…`, at
375
- `192.168.0.136:7760/…` or at `100.126.111.34:7760/…` reaches the same server
376
- process and the same pending store. One wait covers all three, and a verdict
377
- pressed on any of them wakes the same run. An `also:` alternate is one more door
378
- into the same room. Between all of those the objection does not apply — which is
379
- why they are offered, and why offering them gives nothing up.
380
-
381
- **So two things are required, and the second is what the old rule lacked.**
382
- Every link is **labelled** with its tier, and one line says
383
- **which tiers the wait covers**.
384
- Two *unlabelled* links stay forbidden exactly as before, because
385
- the reader still cannot tell them apart.
386
-
387
- **Still forbidden**, in the words of the rule this amends: offering two links
388
- into **different** stores without saying which one the wait is watching. That is
389
- the failure that cost three unread verdicts, and nothing here touches it.
390
-
391
- **This is not the old failure returning**, and the difference is the whole
392
- justification. The offer used to be two quoted lines in the tail of a long
393
- report, addressed to nobody, under a closing line that told the reader to move
394
- on — and it was never once taken. It was moved into a labelled row to make it
395
- findable, and that worked. What changed since is that the run now *waits*: the
396
- reader is not being offered something optional, they are being told the work has
397
- stopped until they answer. A row cannot carry that, because a row is scanned at
398
- the same weight as every other row. So the state gets the loudest shape on
399
- screen, at the end, where reading finishes.
400
-
401
- **ASKING IMPLIES WAITING — one rule, and the two shapes follow from it.** Any
402
- render that asks the reader for a verdict ends the turn watching for one. A run
403
- that does not intend to wait does not ask: its `Review` row keeps the counts and
404
- the link and **loses the question**.
405
-
406
- So there are two shapes and no third:
407
-
408
- - **Asking** → the banner above, and the run waits.
409
- - **Not asking** → the `Review` row: counts and link, no question.
410
-
411
- **What this guards against is a reader taught that the button is decorative.**
412
- `/spec-bug` and `/spec-hotfix` used to render the page, emit a row
413
- asking *"want a written review before you commit?"*, and finish — with nothing
414
- watching. A verdict pressed on that page landed in the holding area and stayed
415
- there, because the run had told the reader the page was **ready** rather than
416
- that it was **waiting**. It happened twice on one spec, and the second press
417
- existed only because the first appeared to do nothing. An offer that cannot be
418
- answered costs more than never having offered.
419
-
420
- **Rejected: keeping the question and adding a caveat** — *"press a verdict, but
421
- I will not see it until you ask"*. That is exactly the shape that stranded those
422
- two passes, and a truthful caveat does not make an unanswerable question worth
423
- asking. Either watch for the answer, or do not ask.
424
-
425
- **A render nobody is being held for is still worth reporting** — a mid-phase
426
- `/spec-diff`, a page produced alongside other work. It gets the row, because
427
- giving it a banner teaches the reader to scroll past banners. The shape marks
428
- the difference between *here is a page* and *nothing proceeds until you answer*.
429
-
430
- **Never fence a message to the reader.** A fenced block is for a command to
431
- run, code, or engine output quoted verbatim — things the reader copies or
432
- compares. A question, an offer, a hand-off is prose. The same mechanism that
433
- made the old report unreadable applies to anything else in a grey box: it is
434
- read as an artefact to skim rather than as something addressed to someone, so a
435
- question inside one goes unanswered and an instruction inside one goes unread.
436
-
437
- **It reports this run and nothing else.** Not what else is in flight, not the
438
- other worktrees, not the backlog, not the state of the repo at large. A reader
439
- finishing one piece of work cannot tell whether a line about some other spec is
440
- a consequence of what just happened or an unrelated aside, and has to stop and
441
- work it out — which is the cost this block exists to remove. If they want the
442
- wider picture there is a skill that answers it; volunteering it here muddies the
443
- one thing they asked about.
444
-
445
- `Next` is the single next action **for this work**, not a menu of what else
446
- could be done.
447
-
448
- **And it must be runnable from the state the run actually leaves behind.** Most
449
- of these skills deliberately do not commit — they finish, verify, and wait — so
450
- the tree they hand back is dirty, and several of the commands they would name
451
- next refuse on a dirty tree. A `Next` that omits the commit therefore sends the
452
- reader to a refusal: `/spec-next` leaves a phase uncommitted and its own §2
453
- refuses on exactly that, and `/spec-bug` leaves a fix uncommitted where
454
- `/spec-complete` refuses the same way. Where the skill does not commit, the row
455
- says `/commit, then <the thing>`.
456
-
457
- This is not a style rule. `Next` is the one row a reader is meant to act on, and
458
- it closes the block because the closing row should be the one that moves the
459
- work on. A row that cannot be run spends the trust the position was designed to
460
- earn — and the two skills that got it wrong got it wrong independently, which is
461
- what makes it a missing constraint rather than two slips.
31
+ | **Next** | `/commit, then /spec-next` → phase 3 (Auth) |
32
+
33
+ - **A table, never a fenced block.** A fence reads as code and gets skipped.
34
+ - **The verdict sentence** is `<state> **<one clause>** — <spec>, <where it got
35
+ to>`. Name the skill in the clause when that is not obvious (a refusal, a
36
+ skill run by another). Drop the spec segment when there is no spec.
37
+ - **The block is the last thing in the message.** If something is worth telling
38
+ the reader, it is a row (usually `Notes`). If it is not a row, leave it out.
39
+ - **Only two controls may follow it**: a picker, where the run ends in a choice
40
+ the reader must make, and the **review banner**, only when the run is actually
41
+ waiting on a verdict. The banner, its tier stack and the wait are defined in
42
+ `.claude/skills/spec-diff/review-wait.md`. Read it before rendering one.
43
+
44
+ **Asking implies waiting.** A render that asks the reader for a verdict ends the
45
+ turn waiting for one, under the banner. A run that is not going to wait does not
46
+ ask: it reports the page in a `Review` row with the counts and the link, and no
47
+ question.
48
+
49
+ **Never fence a message to the reader.** Fences are for commands, code and
50
+ engine output quoted verbatim. A question, an offer or a hand-off is prose.
51
+
52
+ **Report this run only.** Leave out other specs in flight, other worktrees and
53
+ the backlog.
54
+
55
+ **`Next` is the single next action for this work**, and it must be runnable
56
+ from the state the run leaves behind. Where the skill did not commit, write
57
+ `/commit, then <the thing>`.
462
58
 
463
59
  ### Open manual steps are rows
464
60
 
465
- When the next action includes steps only a person can do — a manual test pass,
466
- a check in the running app — and any are still open, `Next`
467
- **lists every one of them, one per row**. The label sits on the first row
468
- only, each step gets a row of its own with the label cell blank, and a closing
469
- row names what comes after:
61
+ When the next action includes steps only a person can do and some are still
62
+ open, `Next` lists every one of them, one per row. The label goes on the first row
63
+ only, each step gets its own row, and a closing row says what comes after:
470
64
 
471
65
  | | |
472
66
  |---|---|
473
67
  | **Follow-ups** | none |
474
68
  | **Next** | `/spec-live`, then: |
475
69
  | | 1. Open Settings → Business Unit Setup |
476
- | | 2. Pick a business unit with gaps; each process shows ✗ with its gaps |
477
- | | 3. Set one process up, press **Check again**; its card turns ✓ |
70
+ | | 2. Set one process up, press **Check again**; its card turns ✓ |
478
71
  | | then `/spec-next` to finish phase 5 |
479
72
 
480
- **A count is not a list.** `run the seven manual steps` names steps the reader
481
- cannot see: the list it means is several messages up, or gone after a `/clear`.
482
- Neither is the phase file's path — that sends the reader out of the terminal to
483
- find out what to do, which is the failure `/spec-next`'s *Manual steps* exists
484
- to fix.
485
-
486
- **Copy them from the phase file, never from an earlier message.** The open
487
- manual tasks there — and the numbered sub-tasks `/spec-next` writes under a
488
- vague one — are the record. A run that did not list them (`/commit`,
489
- `/spec-resume`) reads them there; one that did copies the same text. A
490
- conversation is not durable, and steps re-made from memory drift from the ones
491
- the reader was shown.
492
-
493
- **It applies to every skill's block**, not only `/spec-next`'s. The report this
494
- was written from came from `/commit`, after `/spec-next` had listed the steps
495
- and been answered **Not yet**.
496
-
497
- **It is an amendment, and it is argued from this section's own rule.** It adds
498
- no row type and nothing after the block — `Next` stays last, and is the same
499
- single next action, written out. A `Next` that counts steps out of sight is not
500
- runnable from the state the run leaves behind; one row per step is what makes it
501
- so, and seven steps in one cell are a paragraph nobody follows. A report with no
502
- open manual steps keeps its one-row `Next`.
73
+ Copy them from the phase file, never from an earlier message.
74
+ A count is not a list ("run the seven steps"), and neither is the file's path.
75
+ This applies to every skill's block.
76
+ A report with no open manual steps keeps its one-row `Next`.
503
77
 
504
78
  ## Field vocabulary, in this order
505
79
 
506
- A skill emits only the fields it declares, in this order, skipping the rest.
507
- `Follow-ups` is the exception: always present, second to last.
508
-
509
- `Tracker` is the conditional one: a skill may declare it and still never emit
510
- it, because no ticketing provider is installed. That is an absence with nothing
511
- behind it — say nothing rather than reporting that there was nothing to report.
80
+ Emit only the fields the skill declares, in this order. `Follow-ups` is always
81
+ present, second to last. `Tracker` appears only when a ticketing provider is
82
+ installed. Without one, emit nothing and do not mention it.
512
83
 
513
84
  | Field | Carries |
514
85
  |-------|---------|
515
- | `Tracker` | **First.** The ticket id, linked where the spec has a url, the spec's folder name beside it, and what changed there. |
86
+ | `Tracker` | **First.** The ticket id, linked where there is a url, the spec folder name, and what changed there. |
516
87
  | `Why` | **Non-`✅` only.** What stopped it, in one clause. |
517
88
  | `Branch` | Branch name, commit count, clean or dirty. |
518
- | `Spec` | The spec document's own state: status, bucket, phase. |
89
+ | `Spec` | The spec's own state: status, bucket, phase. |
519
90
  | `Cause` | The root cause, for work that diagnosed one. |
520
- | `Built` | What the run produced — the code, the edits, the spec written. |
91
+ | `Built` | What the run produced. |
521
92
  | `Tests` | The result and the command that produced it. |
522
- | `Notes` | What this run hit and handled — one short paragraph. Named `Snags` once, which announced a problem before the reader had read one; most of what belongs here is neither good nor bad, just worth knowing. A wrong turn, a guard that fired, a check of yours that turned out to be a false negative. Not a caveat on the outcome (`⚠️` and `Why` carry those) and not future work (`Follow-ups` carries that): this is what happened on the way. |
523
- | `Landed` | A fast-forward, a tag, a cherry-pick — or in PR mode the PR itself: `PR #14 (draft) updated` · `PR #14 opened — finish after merge` · `PR #14 merged` · `held — not pushed` (a declined consent is a true outcome, not a failure) · `not pushed · <command> publishes it` (a push suggested rather than asked, as `/spec`'s branch lane does). |
524
- | `Worktree` | A worktree provisioned, entered, or torn down. |
525
- | `Untouched` | Uncommitted work the run deliberately left alone — whose, and how much. |
526
- | `Review` | The rendered diff page: files, `+`/`−`, and the stack — the same tiers the banner lists, labelled, run together with `·` because a row is one cell, with any alternates inline after their tier's URL (`also <url>`), plus `live` where the engine reported one. **No question** — a row cannot be waited on, so a question in one is unanswerable by construction (see *asking implies waiting*). **Omitted entirely when the run is waiting on a verdict**: the banner after the block carries it instead, and a row saying the same thing beside it splits the reader's attention across two places. |
93
+ | `Notes` | What this run hit and handled, in one short paragraph. This is not a caveat on the outcome (`⚠️` and `Why` carry those) and not future work. |
94
+ | `Landed` | A fast-forward, a tag, a cherry-pick, or the PR: `PR #14 (draft) updated` · `PR #14 merged` · `held — not pushed` · `not pushed · <command> publishes it`. |
95
+ | `Worktree` | A worktree provisioned, entered or torn down. |
96
+ | `Untouched` | Uncommitted work the run deliberately left alone: whose, and how much. This is a fact, not a caveat, so the verdict stays `✅`. |
97
+ | `Review` | The rendered page: files, `+`/`−`, and every tier of the engine's stack joined with `·`, plus `live` where reported. **Asks nothing.** **Omitted when the run is waiting**, because the banner carries it. |
527
98
  | `Follow-ups` | **Always.** `none`, or one line each. |
528
- | `Next` | **Last.** The single next action for this work — runnable from the state the run leaves behind. Open manual steps take a row each (*Open manual steps are rows*). |
529
-
530
- The order runs identity → context → what happened → where it went → what to do.
531
- **`Tracker` is first** because the id is what addresses this work outside the
532
- repo, and **`Next` is last** because it is the only row the reader acts on: the
533
- closing row should be the one that moves the work on.
534
-
535
- **`Untouched` is a fact, not a caveat.** A run that provisions beside another
536
- spec's uncommitted work has done nothing wrong and nothing partial — it left
537
- alone something that was never its business — so it stays `✅` with a row, and
538
- does not become `⚠️`. Several specs in flight at once is what the worktree mode
539
- is *for*; spending the "something is worth knowing" verdict on the normal case
540
- is how that verdict stops meaning anything. It is still reported rather than
541
- silent, because "I provisioned, and your four files are still sitting there" is
542
- a different sentence from "I provisioned".
543
-
544
- **`Review` is one row, not two** — and where the run is waiting, it is no rows
545
- at all. The page and what to do with it are the same subject, and splitting them
546
- made the reader resolve a distinction before acting on either. A waiting run
547
- promotes the whole subject into the banner; keeping the row as well would
548
- recreate that split with the two halves further apart than ever.
549
-
550
- **The row carries no question, and that is the rule above applied here.** It
551
- once ended *"want a written review before you commit?"* — a question addressed
552
- to a reader the run was not waiting for. Putting it in a findable row fixed
553
- where it was; it did not fix that nothing was listening. A run that wants that
554
- question answered waits for it, and waiting means the banner.
99
+ | `Next` | **Last.** The single next action for this work. |
555
100
 
556
101
  ## The four verdicts
557
102
 
558
103
  | State | Means |
559
104
  |-------|-------|
560
105
  | `✅` | Done. Everything the skill set out to do happened. |
561
- | `⚠️` | Done with caveats — it finished, but something is worth knowing. |
106
+ | `⚠️` | Done with caveats: it finished, but something is worth knowing. |
562
107
  | `❌` | Failed part-way. It acted, and the repo is mid-something. |
563
108
  | `⏸` | Refused before acting. Nothing changed. |
564
109
 
565
- **`❌` and `⏸` are different facts about the repo**, and the difference decides
566
- what happens next. A failed landing leaves a conflicted rebase and a standing
567
- worktree — there is a mess to clear. A refusal leaves nothing at all, and the
568
- only thing to do is supply what was missing. Collapsing them sends people
569
- looking for wreckage that is not there, or past wreckage that is.
570
-
571
- **A refusal still emits the block.** That is the point of having four states:
572
- every invocation ends the same way, so an outcome is never inferred from
573
- silence.
110
+ `❌` and `⏸` are different facts about the repo. `❌` leaves a mess to clear;
111
+ `⏸` leaves nothing. **A refusal still emits the block.**
574
112
 
575
113
  ## Where the block may grow
576
114
 
577
- Two places. `Next` takes a row per open manual step (*Open manual steps are
578
- rows*, above). And a non-`✅` verdict adds a `Why` row, and quotes the output that
579
- justifies it — the failing assertion, the conflict, the engine's refusal — in a
580
- fenced block **above** the table, where a fence means what a fence should mean:
115
+ `Next` takes a row per open manual step. A non-`✅` verdict adds a `Why` row and
116
+ quotes the output that justifies it in a fenced block **above** the table:
581
117
 
582
118
  ```
583
119
  ✖ rejects a negative quantity
@@ -589,99 +125,26 @@ fenced block **above** the table, where a fence means what a fence should mean:
589
125
  | | |
590
126
  |---|---|
591
127
  | **Why** | 3 assertions fail in `test_orders.py`; nothing committed |
592
- | **Branch** | `spec/feat-foo` · 2 commits, dirty |
593
- | **Built** | POST /orders handler, orders schema |
594
128
  | **Tests** | 125 passed, 3 failed · pytest |
595
129
  | **Follow-ups** | none |
596
130
  | **Next** | fix the failures, then `/spec-next` to finish phase 2 |
597
131
 
598
- Everywhere else the block stays the size it is. Prose after it, an extra row of
599
- your own invention, a second block — all three are the shape drifting back to
600
- what this replaced.
132
+ Do not add prose after the block, invent rows, or emit a second block.
601
133
 
602
134
  ## Follow-ups
603
135
 
604
136
  **Always present.** A recorded `none` is a decision; a missing line is an
605
- oversight — the same logic as the `Gating` header.
606
-
607
- The bar is deliberately high. A follow-up is something *this* work surfaced
608
- that *this* spec will not fix — a wrong assumption, a missing guard, a decision
609
- the spec deferred and the code then leaned on. It is **not** "could be tidier",
610
- and it is **not** anything already sitting in the spec's Open questions.
611
-
612
- When there is one, **offer to `/spec` it on the spot**. If the user does not
613
- take the offer, write one dated line into the spec's Changelog before you
614
- finish, so it outlives the session:
137
+ oversight. A follow-up is something this work surfaced that this spec will not
138
+ fix. "Could be tidier" is not a follow-up, and neither is anything already in
139
+ the spec's Open questions. When there is one, offer to `/spec` it on the spot.
140
+ If the offer is declined, write one dated line into the spec's Changelog:
615
141
 
616
142
  ```
617
143
  - 2026-01-09 — Follow-up surfaced: connect's port picker assumes a free
618
144
  canonical port; not in scope here.
619
145
  ```
620
146
 
621
- **The offer needs no caveat about where.** These skills run inside the spec's own
622
- worktree, and a follow-up spec authored *there* would physically live on that
623
- branch — invisible from the base branch, and cancelled along with its host. That
624
- used to make the offer name the primary checkout as the place to write it.
625
- It no longer does: `/spec` provisions the **new** spec's own worktree before it
626
- writes anything and moves the session there, so the follow-up lands on its own
627
- branch and its own ticket without anyone naming a location. Take the offer and
628
- let `/spec` handle it. Where isolation is absent there is no worktree to move to,
629
- and the old caveat applies — `spec-planning.md` and `commit-trailers.md` carry
630
- the reasoning.
631
-
632
- ## Worked examples
633
-
634
- **`⚠️` — it finished, with something worth knowing.**
635
-
636
- ⚠️ **Phase 3 built; tracker not updated** — `feat-foo`, 3 of 4
637
-
638
- | | |
639
- |---|---|
640
- | **Branch** | `spec/feat-foo` · 4 commits, clean |
641
- | **Built** | Auth middleware, session table |
642
- | **Tests** | 140 passed · go test ./... |
643
- | **Follow-ups** | Session expiry is read from two places; phase 4 leans on one |
644
- | **Next** | `/spec-next` → phase 4 (Docs) |
645
-
646
- **`⚠️` — stopped at manual steps answered Not yet.**
647
-
648
- ⚠️ **Phase 2 code built; manual check open** — `feat-orders`, 2 of 4
649
-
650
- | | |
651
- |---|---|
652
- | **Branch** | `spec/feat-orders` · 3 commits, dirty |
653
- | **Built** | Order form, POST /orders handler |
654
- | **Tests** | 131 passed · npm test |
655
- | **Notes** | Manual check answered **Not yet** — the phase stays `🔄` |
656
- | **Follow-ups** | none |
657
- | **Next** | `/commit`, then `/spec-live`, then: |
658
- | | 1. Place an order with two lines; the confirmation lists both |
659
- | | 2. Place one with a negative quantity; the form refuses it |
660
- | | then `/spec-next` to finish phase 2 |
661
-
662
- **`⏸` — refused, nothing changed.**
663
-
664
- ⏸ **`/spec-next` refused — no spec in flight**
665
-
666
- | | |
667
- |---|---|
668
- | **Why** | Not standing in a worktree, and 2 specs are provisioned |
669
- | **Follow-ups** | none |
670
- | **Next** | `/spec-start <name>`, or `cd` into `../repo-wt/feat-orders` or `../repo-wt/feat-auth` |
671
-
672
- **`✅` — a spec finished and landed.**
673
-
674
- ✅ **Landed and torn down** — `feat-foo`, complete
675
-
676
- | | |
677
- |---|---|
678
- | **Tracker** | [ABC-88](https://example.invalid/ABC-88) · `feat-foo` · moved to its done state |
679
- | **Spec** | Complete · `specs/complete/feat-foo` |
680
- | **Tests** | 131 passed · npm test |
681
- | **Landed** | base fast-forwarded to 4a1c9e2 |
682
- | **Worktree** | removed · `../repo-wt/feat-foo` |
683
- | **Follow-ups** | none |
684
- | **Next** | pick the next spec from `specs/backlog/` |
147
+ ---
685
148
 
686
- The `❌` example is in **Where the block may grow** above, since the failing
687
- output it quotes is the thing that example exists to show.
149
+ Why this contract is shaped this way, and the amendments behind it:
150
+ [docs/rationale/spec-reports.md](https://github.com/SkitterByte/skitterspec/blob/main/docs/rationale/spec-reports.md).