@skitterbyte/skitterspec-github 2.18.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.
- package/MIGRATION.md +126 -0
- package/README.md +11 -2
- package/assets/claude-md-section.md +23 -123
- package/assets/core/SETUP.md +4 -2
- package/assets/project-conventions.md +17 -0
- package/assets/rules/commit-trailers.md +41 -99
- package/assets/rules/negative-checks.md +21 -48
- package/assets/rules/offered-unblocks.md +39 -74
- package/assets/rules/spec-format.md +117 -0
- package/assets/rules/spec-planning.md +128 -1013
- package/assets/rules/spec-reports.md +70 -607
- package/assets/skills/no-spec/SKILL.md +4 -4
- package/assets/skills/spec/SKILL.md +7 -7
- package/assets/skills/spec/kind-routing.md +35 -0
- package/assets/skills/spec-bug/SKILL.md +6 -6
- package/assets/skills/spec-cancel/SKILL.md +1 -1
- package/assets/skills/spec-complete/SKILL.md +1 -1
- package/assets/skills/spec-diff/SKILL.md +6 -2
- package/assets/skills/spec-diff/review-page.md +89 -0
- package/assets/skills/spec-diff/review-wait.md +133 -0
- package/assets/skills/spec-epic-next/SKILL.md +2 -1
- package/assets/skills/spec-epic-next/epics.md +44 -0
- package/assets/skills/spec-hotfix/SKILL.md +5 -5
- package/assets/skills/spec-incident/SKILL.md +1 -1
- package/assets/skills/spec-next/SKILL.md +5 -5
- package/assets/skills/spec-resume/SKILL.md +204 -8
- package/assets/skills/spec-review/SKILL.md +1 -1
- package/assets/skills/spec-start/isolation.md +90 -0
- package/bin/skitterspec-github.js +3 -2
- package/package.json +2 -3
- package/src/cli.js +72 -5
- package/src/conventions.js +43 -0
- package/src/env/resume.js +116 -3
- package/src/init.js +180 -30
- package/src/spec-planning-history.json +103 -0
- package/src/updateall.js +152 -0
|
@@ -120,7 +120,7 @@ skitterspec spec-env review arm <name>
|
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
**This skill arms, and `/spec` does not.** That asymmetry is the rule in
|
|
123
|
-
`.claude/
|
|
123
|
+
`.claude/skills/spec-diff/review-page.md` rather than a choice made here: the gate asserts
|
|
124
124
|
that *finished work* owes an answer, and this is finished work. A written spec
|
|
125
125
|
owes no phase, so authoring arms nothing.
|
|
126
126
|
|
|
@@ -135,7 +135,7 @@ because writing it means reading the diff, and that spend is the user's call.
|
|
|
135
135
|
the whole scope of what you may claim.
|
|
136
136
|
2. **Run the engine's wait, and end your turn** — under the harness's
|
|
137
137
|
persistent watch primitive where one exists, else in the background
|
|
138
|
-
(`.claude/
|
|
138
|
+
(`.claude/skills/spec-diff/review-wait.md` carries the preference):
|
|
139
139
|
|
|
140
140
|
```
|
|
141
141
|
skitterspec spec-env review wait <name> --since <the timestamp>
|
|
@@ -146,7 +146,7 @@ because writing it means reading the diff, and that spend is the user's call.
|
|
|
146
146
|
3. **On waking, let the engine pick:**
|
|
147
147
|
|
|
148
148
|
**A watch that dies is re-armed on the same window**, silently and bounded by
|
|
149
|
-
the age of that window — `.claude/
|
|
149
|
+
the age of that window — `.claude/skills/spec-diff/review-wait.md` carries the contract,
|
|
150
150
|
including when to stop, what the banner says instead, and when the
|
|
151
151
|
engine's `re-show:` brings the banner back. Do not restate it here.
|
|
152
152
|
|
|
@@ -159,7 +159,7 @@ engine's `re-show:` brings the banner back. Do not restate it here.
|
|
|
159
159
|
|
|
160
160
|
Relay the engine's **stack** — the `local:`, `network:` and `remote:` lines, all
|
|
161
161
|
three, in that order — never the bare `page:` path.
|
|
162
|
-
`.claude/
|
|
162
|
+
`.claude/skills/spec-diff/review-wait.md` carries the shape and why every tier is named.
|
|
163
163
|
|
|
164
164
|
### Route on the verdict
|
|
165
165
|
|
|
@@ -268,7 +268,7 @@ far — so it grills only what it still needs ("seed, don't skip, the grill",
|
|
|
268
268
|
exactly as issue adoption does). Do not stop and tell the user to retype: that
|
|
269
269
|
shape belongs to Phase 0's label routing, which fires before any grilling has
|
|
270
270
|
happened and so has nothing to lose. The full routing matrix lives in
|
|
271
|
-
`.claude/
|
|
271
|
+
`.claude/skills/spec/kind-routing.md`.
|
|
272
272
|
|
|
273
273
|
### Propose the kind — feature, chore or issue (or an epic of them)
|
|
274
274
|
|
|
@@ -289,7 +289,7 @@ The kind is recorded twice, and both follow from the answer: the folder prefix
|
|
|
289
289
|
also defaults its `Gating:` to `none: not user-facing` (only when gating is
|
|
290
290
|
configured — offer the default, let the user override it like any other
|
|
291
291
|
answer), and its commits default to `chore`/`refactor`/`ci` types with no
|
|
292
|
-
`Release-Note:` (see `.claude/rules/spec-
|
|
292
|
+
`Release-Note:` (see `.claude/rules/spec-format.md`). An issue defaults its
|
|
293
293
|
`Gating:` to `none: no code`, and its commits to `docs` with no
|
|
294
294
|
`Release-Note:` — its phases are manual steps, not code, though `/spec-start`
|
|
295
295
|
still gives it a worktree, because the document needs one and the history is
|
|
@@ -749,7 +749,7 @@ the verdict — and the reader's conclusion is about what the page showed them.
|
|
|
749
749
|
the whole scope of what you may claim.
|
|
750
750
|
2. **Run the engine's wait, and end your turn** — under the harness's
|
|
751
751
|
persistent watch primitive where one exists, else in the background
|
|
752
|
-
(`.claude/
|
|
752
|
+
(`.claude/skills/spec-diff/review-wait.md` carries the preference):
|
|
753
753
|
|
|
754
754
|
```
|
|
755
755
|
skitterspec spec-env review wait <spec> --since <the timestamp>
|
|
@@ -761,7 +761,7 @@ the verdict — and the reader's conclusion is about what the page showed them.
|
|
|
761
761
|
3. **On waking, let the engine pick:**
|
|
762
762
|
|
|
763
763
|
**A watch that dies is re-armed on the same window**, silently and bounded by
|
|
764
|
-
the age of that window — `.claude/
|
|
764
|
+
the age of that window — `.claude/skills/spec-diff/review-wait.md` carries the contract,
|
|
765
765
|
including when to stop, what the banner says instead, and when the
|
|
766
766
|
engine's `re-show:` brings the banner back. Do not restate it here.
|
|
767
767
|
|
|
@@ -777,11 +777,11 @@ engine's `re-show:` brings the banner back. Do not restate it here.
|
|
|
777
777
|
to POST to, so the pass is copied and pasted and the reader's next message is
|
|
778
778
|
what carries it. **Do not start a watch that cannot fire**: a wait on the pending
|
|
779
779
|
store would spin forever while the report underneath it claimed to be holding,
|
|
780
|
-
which is the exact failure `.claude/
|
|
780
|
+
which is the exact failure `.claude/skills/spec-diff/review-wait.md` guards against. The wait is
|
|
781
781
|
the turn ending, and the banner says so.
|
|
782
782
|
|
|
783
783
|
Relay the engine's **stack** — the `local:`, `network:` and `remote:` lines, all
|
|
784
|
-
three, in that order — never the bare `page:` path. `.claude/
|
|
784
|
+
three, in that order — never the bare `page:` path. `.claude/skills/spec-diff/review-wait.md`
|
|
785
785
|
carries the shape and why every tier is named rather than one being chosen.
|
|
786
786
|
|
|
787
787
|
## Phase D — record the isolation stack (only if configured)
|
|
@@ -902,7 +902,7 @@ appears where isolation is off: nothing was provisioned and nothing was landed.
|
|
|
902
902
|
|
|
903
903
|
**`Next` depends on whether Phase C2 rendered a page.** Where it did, the run is
|
|
904
904
|
waiting on a verdict, so the block **omits the `Review` row** and ends on the
|
|
905
|
-
banner defined in `.claude/
|
|
905
|
+
banner defined in `.claude/skills/spec-diff/review-wait.md` — counts, the tier stack, and
|
|
906
906
|
this page's two exits:
|
|
907
907
|
|
|
908
908
|
---
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Kind routing — any door, the right spec
|
|
2
|
+
|
|
3
|
+
Every entry skill watches its grill for signals of another kind, and proposes a
|
|
4
|
+
hand-off **the moment one appears**, not at the end of the grill.
|
|
5
|
+
|
|
6
|
+
| In | Watches for | Hands to |
|
|
7
|
+
|----|-------------|----------|
|
|
8
|
+
| `/spec` | defect · defect on a released version · live outage | `/spec-bug` · `/spec-hotfix` · `/spec-incident` |
|
|
9
|
+
| `/spec-bug` | on a released version · live outage · not a defect | `/spec-hotfix` · `/spec-incident` · `/spec` |
|
|
10
|
+
| `/spec-hotfix` | live outage · not on a released version · not a defect | `/spec-incident` · `/spec-bug` · `/spec` |
|
|
11
|
+
| `/spec-incident` | no live outage to record | defect → `/spec-bug` (on a released version → `/spec-hotfix`), else `/spec` |
|
|
12
|
+
|
|
13
|
+
Feature, chore and issue all go to `/spec`, whose kind proposal picks between
|
|
14
|
+
them. Weigh signals in context; do not match keywords:
|
|
15
|
+
|
|
16
|
+
- A **defect** is behaviour that differs from what was intended.
|
|
17
|
+
- **On a released version** means the defect is in what is deployed ("in prod",
|
|
18
|
+
"since v2.1").
|
|
19
|
+
- A **live outage** is a service down or degraded right now.
|
|
20
|
+
- **Not a defect** is a request for new behaviour.
|
|
21
|
+
|
|
22
|
+
The same three rules apply in every skill:
|
|
23
|
+
|
|
24
|
+
- **Always confirm; never switch silently.** Name the signal in the user's own
|
|
25
|
+
words and propose the destination with a one-line reason. A decline ends it:
|
|
26
|
+
the grill carries on and the signal is not raised again. A signal is a
|
|
27
|
+
question, never a verdict.
|
|
28
|
+
- **Precedence: incident > hotfix > bug.** Propose the most specific
|
|
29
|
+
destination.
|
|
30
|
+
- **Hand off in the same session and carry the context.** Invoke the
|
|
31
|
+
destination skill with everything the grill has established, so it grills
|
|
32
|
+
only what is still missing.
|
|
33
|
+
|
|
34
|
+
This is judgment, not configuration. A provider's intake label routing is a
|
|
35
|
+
separate, earlier check.
|
|
@@ -14,7 +14,7 @@ This is the **bug** counterpart to `/spec` (which is for **features**, plan-only
|
|
|
14
14
|
Unlike `/spec`, this skill is hands-on and test-first: it reproduces the bug as a
|
|
15
15
|
**failing test (RED)**, captures a lean Bug spec, then works the test to **GREEN**.
|
|
16
16
|
|
|
17
|
-
Spec type convention (see `.claude/rules/spec-
|
|
17
|
+
Spec type convention (see `.claude/rules/spec-format.md`):
|
|
18
18
|
- Bug specs are named `bug-<kebab-name>`; feature specs `feat-<kebab-name>`.
|
|
19
19
|
- Every spec header carries `> **Type:** Bug` (or `Feature`).
|
|
20
20
|
|
|
@@ -164,7 +164,7 @@ Bugs are concrete — confirm, don't over-grill. Establish:
|
|
|
164
164
|
The investigation above is where mis-entry shows, so watch it for the signals
|
|
165
165
|
that mark the other kinds and raise the hand-off the moment one appears —
|
|
166
166
|
before the failing test is written, while nothing is on disk
|
|
167
|
-
(`.claude/
|
|
167
|
+
(`.claude/skills/spec/kind-routing.md` carries the full routing matrix):
|
|
168
168
|
|
|
169
169
|
- **On a released version** — the defect is on what is deployed ("in prod",
|
|
170
170
|
"since v2.1") → propose **`/spec-hotfix`**. This is the escalation that must
|
|
@@ -621,7 +621,7 @@ The banner it describes is what this skill emits in place of a `Review` row,
|
|
|
621
621
|
and the routing on the verdict is `/spec-diff` §2 and §4, as it is everywhere.
|
|
622
622
|
|
|
623
623
|
**A watch that dies is re-armed on the same window**, silently and bounded by
|
|
624
|
-
the age of that window — `.claude/
|
|
624
|
+
the age of that window — `.claude/skills/spec-diff/review-wait.md` carries the contract,
|
|
625
625
|
including when to stop, what the banner says instead, and when the
|
|
626
626
|
engine's `re-show:` brings the banner back. Do not restate it here.
|
|
627
627
|
|
|
@@ -648,7 +648,7 @@ Relay the engine's **stack** — the `local:`, `network:` and `remote:` lines, a
|
|
|
648
648
|
three — rather than the bare `page:` path: a path is not clickable in any
|
|
649
649
|
terminal, and a page nobody can open is a page nobody reads. Relay the `live:`
|
|
650
650
|
line with it where the engine printed one, and nothing where it did not.
|
|
651
|
-
`.claude/
|
|
651
|
+
`.claude/skills/spec-diff/review-wait.md` carries the shape, including why a rigid
|
|
652
652
|
contract took that line.
|
|
653
653
|
|
|
654
654
|
- **Never write the review unasked**, and **never publish** — there is no
|
|
@@ -665,7 +665,7 @@ underneath a reader when detection flipped mid-session.
|
|
|
665
665
|
So: **relay all three tier lines, every time.** Any `also:` lines sit under
|
|
666
666
|
their tier — the other addresses this machine has of that kind — so pass them
|
|
667
667
|
on rather than editing them out: in the banner they are indented sub-bullets
|
|
668
|
-
under that tier, labels included, exactly as `.claude/
|
|
668
|
+
under that tier, labels included, exactly as `.claude/skills/spec-diff/review-wait.md`
|
|
669
669
|
shows.
|
|
670
670
|
|
|
671
671
|
**Never read an environment variable to decide anything about the offer** — not
|
|
@@ -708,7 +708,7 @@ the shape; this section carries only what is specific here.
|
|
|
708
708
|
|
|
709
709
|
**`Review` is emitted only where step 5b did not run** — a project with no
|
|
710
710
|
isolation, or a render that failed. Where the run is waiting, the banner carries
|
|
711
|
-
the whole subject and the row is dropped, per `.claude/
|
|
711
|
+
the whole subject and the row is dropped, per `.claude/skills/spec-diff/review-wait.md`.
|
|
712
712
|
|
|
713
713
|
`Cause` is the root cause in one clause and `Built` is the fix — the
|
|
714
714
|
failing→passing test belongs in `Tests`, named, so the evidence is a test name
|
|
@@ -163,7 +163,7 @@ session is part-way through writing lands in this commit under this spec's
|
|
|
163
163
|
ticket. The `--` on the **commit** is the other half: a checkout has one
|
|
164
164
|
`.git/index`, shared by every session standing in it, so a bare `git commit`
|
|
165
165
|
takes whatever else is staged there however carefully you staged your own.
|
|
166
|
-
`.claude/
|
|
166
|
+
`.claude/skills/spec-start/isolation.md` carries the full account.
|
|
167
167
|
|
|
168
168
|
**This matters more here than anywhere else.** Teardown (step 7) refuses a dirty
|
|
169
169
|
worktree and offers `--force` as the way through — and forcing would destroy the
|
|
@@ -265,7 +265,7 @@ session is part-way through writing lands in this commit under this spec's
|
|
|
265
265
|
ticket. The `--` on the **commit** is the other half: a checkout has one
|
|
266
266
|
`.git/index`, shared by every session standing in it, so a bare `git commit`
|
|
267
267
|
takes whatever else is staged there however carefully you staged your own.
|
|
268
|
-
`.claude/
|
|
268
|
+
`.claude/skills/spec-start/isolation.md` carries the full account.
|
|
269
269
|
|
|
270
270
|
So this commits exactly the status flip and the move, and nothing of yours — or
|
|
271
271
|
of anyone else's — rides along.
|
|
@@ -22,6 +22,10 @@ and a 289KB page costs the same to serve as a 5KB one. Do not "simplify" this
|
|
|
22
22
|
by reading the diff and emitting HTML — that is the one change that would undo
|
|
23
23
|
the whole design.
|
|
24
24
|
|
|
25
|
+
The page's verdicts, claiming, the gate and reviewers are in `review-page.md`
|
|
26
|
+
beside this file; the banner and the wait are in `review-wait.md`. Read them
|
|
27
|
+
when a step below relies on them.
|
|
28
|
+
|
|
25
29
|
## 1. Resolve the spec — three rules, in order
|
|
26
30
|
|
|
27
31
|
1. **The name argument**, when given. An unknown name **refuses** and says so:
|
|
@@ -491,7 +495,7 @@ could not run is that strip's business rather than yours.
|
|
|
491
495
|
one line per tier, `local`, `network`, `remote`, each either a URL or the one
|
|
492
496
|
command that turns it on. All of it is free, and all of it is one server.
|
|
493
497
|
You are not choosing between them; you are relaying every line it printed.
|
|
494
|
-
`.claude/
|
|
498
|
+
`.claude/skills/spec-diff/review-wait.md` carries the shape and why.
|
|
495
499
|
|
|
496
500
|
The operator who does not want a LAN listener sets `review.allowNetwork: false`
|
|
497
501
|
in `env.config.json` — `network` then reads `off` with the command that turns it
|
|
@@ -625,7 +629,7 @@ already arrived. Those get the `Review` row, no question, and nothing is owed.
|
|
|
625
629
|
the entire scope of what may be claimed without a person naming it.
|
|
626
630
|
2. **Run the engine's wait, and end your turn** — under the harness's
|
|
627
631
|
persistent watch primitive where one exists, else in the background
|
|
628
|
-
(`.claude/
|
|
632
|
+
(`.claude/skills/spec-diff/review-wait.md` carries the preference):
|
|
629
633
|
|
|
630
634
|
```
|
|
631
635
|
skitterspec spec-env review wait <spec> --since <timestamp>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# The review page, verdicts and the gate
|
|
2
|
+
|
|
3
|
+
Applies only where isolation is configured. The banner and the wait are in
|
|
4
|
+
`review-wait.md`, beside this file.
|
|
5
|
+
|
|
6
|
+
## The page
|
|
7
|
+
|
|
8
|
+
`skitterspec spec-env review <spec> [--branch]` collects the worktree's changes
|
|
9
|
+
with `git -C` and writes a self-contained HTML page to
|
|
10
|
+
`.spec-env/reviews/<spec>.html` (gitignored). It has a file tree, whole-file
|
|
11
|
+
context that folds away, and new files included.
|
|
12
|
+
**The diff never passes through the model**, so rendering costs nothing. The written review (a short
|
|
13
|
+
read plus `flag`/`confirm`/`good` notes) is the part that costs tokens. It is
|
|
14
|
+
offered, never assumed. `/spec-diff` is gated on nothing: half a phase, a hand
|
|
15
|
+
edit or a colleague's branch are all fine.
|
|
16
|
+
|
|
17
|
+
## Taking a pass back
|
|
18
|
+
|
|
19
|
+
The reader ticks `✓ accept` per file, writes notes against a line or a file,
|
|
20
|
+
answers a written review's questions, and then **ends with a verdict**.
|
|
21
|
+
`/spec-diff` stores the pass (`--notes`) and routes on the verdict:
|
|
22
|
+
|
|
23
|
+
- `commit` / `commit-continue` (`Commit & Continue` commits, runs `/spec-next`,
|
|
24
|
+
and **stops there**)
|
|
25
|
+
- `commit-start` (authoring pages only)
|
|
26
|
+
- `changes` means **work them now**.
|
|
27
|
+
- `discuss` means report and talk, changing nothing.
|
|
28
|
+
- `continue` appears on mid-run pages only.
|
|
29
|
+
|
|
30
|
+
**Two transports.** A **served** page POSTs to its own URL. The engine holds the
|
|
31
|
+
pass in a gitignored `.pending.json` and shows a **six-digit code**. A `file://`
|
|
32
|
+
page copies the pass to the clipboard and the reader pastes it. The code is an
|
|
33
|
+
address, never a password.
|
|
34
|
+
|
|
35
|
+
**Claiming.** Inside a wait the run started, `--claim-since` claims the one pass
|
|
36
|
+
that arrived in the window. It acts on none, and refuses when there are two.
|
|
37
|
+
Outside a wait, only `/spec-reviewed` (bare, or with a code) claims one.
|
|
38
|
+
**Claude never claims a pass it was not asked to.** A code that matches nothing
|
|
39
|
+
refuses, names nothing and never falls back to "the only one". Claiming
|
|
40
|
+
consumes the pass. A second pass from the same render supersedes the first.
|
|
41
|
+
`--drop <code>` disowns one. A claimed pass never enters the model's context:
|
|
42
|
+
the engine merges it and reports the counts.
|
|
43
|
+
|
|
44
|
+
**Resolutions.** Report what you did about each note with `--resolve`, and the
|
|
45
|
+
next render shows the note struck through with a one-line account. An accept is
|
|
46
|
+
keyed to the file's content hash, so it lapses on its own when the file changes
|
|
47
|
+
(shown as `accepted earlier — changed since`).
|
|
48
|
+
**The marks are information, never a gate**: nothing counts them.
|
|
49
|
+
|
|
50
|
+
## The verdict is chosen, never derived
|
|
51
|
+
|
|
52
|
+
The one refusal on the page:
|
|
53
|
+
**committing is unavailable while any comment is unresolved**. Unticked files block nothing. Both committing verdicts hand off to
|
|
54
|
+
the project's own commit skill (`review.commitWith`, `/commit` by default).
|
|
55
|
+
Skitterspec never vendors one. A verdict is **consumed**: a commit verdict by
|
|
56
|
+
the commit, a `changes` verdict by the work. Only a one-line outcome log
|
|
57
|
+
survives.
|
|
58
|
+
|
|
59
|
+
## The gate
|
|
60
|
+
|
|
61
|
+
A phase that ended owes an answer. `/spec-next` **arms** the gate when it
|
|
62
|
+
renders the end-of-phase page. Exactly two things clear it: a
|
|
63
|
+
**committing verdict**, or `skitterspec spec-env review skip "<reason>"` (typed as
|
|
64
|
+
`/spec-skip`). A bare skip with no reason is refused. While the gate is armed,
|
|
65
|
+
`/spec-next` refuses, and `.claude/hooks/review-gate.cjs` refuses `git commit`
|
|
66
|
+
**inside that spec's own worktree**. It hands the command line to
|
|
67
|
+
`spec-env review gate --check --for-command`. `skitterspec spec-env review gate
|
|
68
|
+
[--check] [--json]` is what both ask.
|
|
69
|
+
|
|
70
|
+
The gate fails **open** on every cannot-tell: no engine, an unreadable payload,
|
|
71
|
+
a crash, a timeout, `review.required: false`, or an unresolved spec. It is armed
|
|
72
|
+
**only when a phase ends**, never mid-phase, and it is on by default wherever
|
|
73
|
+
isolation is configured.
|
|
74
|
+
|
|
75
|
+
## A second opinion (`review.reviewers`)
|
|
76
|
+
|
|
77
|
+
CLI code reviewers (CodeRabbit's CLI, or anything printing rdjsonl) run once per
|
|
78
|
+
phase from `/spec-next` (`--run-reviewers`). `/spec-diff --reviewers` asks for a
|
|
79
|
+
run mid-phase, and a bare `/spec-diff` never spends one. Results are cached
|
|
80
|
+
against the diff's hash. Findings arrive as **checks**, badged with their tool.
|
|
81
|
+
**They never gate.** A reply to one is a comment, and comments do gate. A
|
|
82
|
+
reviewer that could not run shows `did not run — <why>` and never refuses
|
|
83
|
+
anything. The list is empty by default, because adding one sends the diff to a
|
|
84
|
+
third party. Never pass `--run-reviewers` on a `--docs` render.
|
|
85
|
+
|
|
86
|
+
## Put it live
|
|
87
|
+
|
|
88
|
+
`▶ Put it live` on the page commits the phase, checks the branch out where the
|
|
89
|
+
dev server can see it, and returns the same page. **It clears no gate.**
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# The review banner and the wait
|
|
2
|
+
|
|
3
|
+
Read this before rendering a review banner or waiting for a verdict, from any
|
|
4
|
+
skill. The report block itself is in `.claude/rules/spec-reports.md`.
|
|
5
|
+
|
|
6
|
+
## The banner
|
|
7
|
+
|
|
8
|
+
Use it only where the run is **waiting** on a verdict. It follows the block, and
|
|
9
|
+
the block then has no `Review` row:
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## ⏸ Review ready — 7 files, +212 −18
|
|
14
|
+
|
|
15
|
+
- **local** — [http://127.0.0.1:7760/7e9e123e7540/feat-orders](http://127.0.0.1:7760/7e9e123e7540/feat-orders)
|
|
16
|
+
- **network** — [http://192.168.0.136:7760/7e9e123e7540/feat-orders](http://192.168.0.136:7760/7e9e123e7540/feat-orders)
|
|
17
|
+
- **remote** — [http://100.126.111.34:7760/7e9e123e7540/feat-orders](http://100.126.111.34:7760/7e9e123e7540/feat-orders) (tailnet)
|
|
18
|
+
|
|
19
|
+
live: off — /spec-live to put it live
|
|
20
|
+
|
|
21
|
+
I'm holding here until you send a verdict — the wait covers local, network and remote.
|
|
22
|
+
|
|
23
|
+
`/spec-reviewed` picks it up · `spec-env review skip "<reason>"` moves on
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
It has a rule above and below, a heading with the state and the size, the
|
|
28
|
+
stack, the `live:` line, one holding line, and the exits. Nothing else, and no
|
|
29
|
+
explanatory paragraph. A skill may name different exits (`/spec`'s page offers
|
|
30
|
+
`Commit & Start` · `Commit`).
|
|
31
|
+
|
|
32
|
+
## The stack: copy it, never compose it
|
|
33
|
+
|
|
34
|
+
`spec-env review` prints one line per tier, and `--json` carries the same lines
|
|
35
|
+
as `tiers`. **Three tiers, always all three, in this order**, named by address,
|
|
36
|
+
never by where the reader is:
|
|
37
|
+
|
|
38
|
+
| Tier | Is | Off when |
|
|
39
|
+
|------|----|----------|
|
|
40
|
+
| `local` | the loopback URL on this machine | never. With nothing served it is the `file://` page, which cannot send a verdict |
|
|
41
|
+
| `network` | the LAN URL, for a phone on the same wifi | `review.allowNetwork` is false, or the machine has no network address |
|
|
42
|
+
| `remote` | the tailnet URL, labelled `(tailnet)` | whenever `network` is off; or the machine has no tailnet address |
|
|
43
|
+
|
|
44
|
+
A tier that is off **keeps its line**, naming the one command that turns it on,
|
|
45
|
+
or why nothing can. **One link per door, each labelled, all into one store**:
|
|
46
|
+
the page POSTs to its own URL, so every tier reaches the same server and the
|
|
47
|
+
same pending store. **Still forbidden**: links into **different** stores
|
|
48
|
+
without saying which one the wait is watching, and two unlabelled links.
|
|
49
|
+
|
|
50
|
+
**The one exception is the engine's, not yours.** It hides `local` when the
|
|
51
|
+
reader is on another machine (`SKITTERSPEC_READER=remote`, `review.reader`,
|
|
52
|
+
ssh, or a Windows session with no `SESSIONNAME`), and only when `network` has a
|
|
53
|
+
URL to take its place. A tier marked `hidden` in `--json` is absent from the
|
|
54
|
+
printed stack, so leave it out too.
|
|
55
|
+
|
|
56
|
+
An `also:` line under a tier is an alternate address. Relay it as an indented
|
|
57
|
+
sub-bullet under that tier, with its label. Never pick one link for the reader,
|
|
58
|
+
and never relay the bare `page:` path.
|
|
59
|
+
|
|
60
|
+
The same applies whenever you relay engine output that carries a stack, inside
|
|
61
|
+
a skill or not (`epic status`, `resolve`).
|
|
62
|
+
|
|
63
|
+
**`live:`** is the engine's line, copied as printed: `on` (with a URL where
|
|
64
|
+
configured), `off` or `held` (naming the holder). When the engine prints none,
|
|
65
|
+
leave it out.
|
|
66
|
+
|
|
67
|
+
**The holding line** names the tiers the engine's `covers` lists. All tiers
|
|
68
|
+
reach one server and one pending store, so one wait covers them all.
|
|
69
|
+
|
|
70
|
+
**The findings count**, where a reviewer reported findings, joins the heading's
|
|
71
|
+
counts (`7 files, +212 −18, 3 flagged by coderabbit`). Nothing else about
|
|
72
|
+
reviewers goes in the banner.
|
|
73
|
+
|
|
74
|
+
## The wait
|
|
75
|
+
|
|
76
|
+
**The wait is the engine's command. Do not write one.**
|
|
77
|
+
|
|
78
|
+
1. Note the moment you start waiting, as an ISO timestamp.
|
|
79
|
+
2. Run `skitterspec spec-env review wait <spec> --since <timestamp>` under the
|
|
80
|
+
harness's persistent watch primitive where it has one (Claude Code:
|
|
81
|
+
`Monitor` with `persistent: true`, stopped by `TaskStop`), otherwise in the
|
|
82
|
+
background. **Pass no timeout.** Then end the turn.
|
|
83
|
+
3. On waking, run
|
|
84
|
+
`skitterspec spec-env review <spec> --claim-since <timestamp> --json`. It
|
|
85
|
+
claims the one pass that arrived in the window, acts on nothing when none
|
|
86
|
+
did, and refuses to choose when two did.
|
|
87
|
+
4. Route on the verdict as the skill describes.
|
|
88
|
+
|
|
89
|
+
**Only promise a wait the transport can deliver:**
|
|
90
|
+
|
|
91
|
+
- **A served page**: *"I'm holding here until you send a verdict."* It is
|
|
92
|
+
only true for as long as the wait is actually running.
|
|
93
|
+
- **A `file://` page**: there is no server, so start no watch. The turn ending
|
|
94
|
+
is the wait: *"I'm holding here — paste the pass when you have it."*
|
|
95
|
+
- **A harness with no background watch**: the turn ending is the wait. You still
|
|
96
|
+
wait.
|
|
97
|
+
|
|
98
|
+
## A watch that dies
|
|
99
|
+
|
|
100
|
+
If the wait ends **without a verdict** and the operator did not stop it,
|
|
101
|
+
re-arm it on the **same** `--since`. A pass that arrived during the gap is still
|
|
102
|
+
in the window. A deliberate stop has positive evidence: this session called
|
|
103
|
+
TaskStop, or the operator said to stop. A bare killed-task notification is a
|
|
104
|
+
death, not a stop.
|
|
105
|
+
|
|
106
|
+
- **Say as little as possible.** Where the harness requires visible text, write
|
|
107
|
+
only `Still waiting for the verdict.`. Answer the wait's own start line the
|
|
108
|
+
same way.
|
|
109
|
+
- **Every fifth re-arm**, the wait prints `re-show: banner (re-arm N)` and the
|
|
110
|
+
stack. Relay the run's verdict line (copied if still in context, dropped if
|
|
111
|
+
not) and then the banner in its current state, with the stack from the
|
|
112
|
+
`re-show:` lines. Do not repeat the table.
|
|
113
|
+
- **Stop re-arming once the window is 12 hours old.** From then on the holding
|
|
114
|
+
line becomes: *press a verdict, then type `/spec-reviewed` — I cannot see it
|
|
115
|
+
until you do.*
|
|
116
|
+
|
|
117
|
+
## Mid-run renders: `Continue`
|
|
118
|
+
|
|
119
|
+
A page rendered part-way through a run (`--buttons midrun`) offers `Continue`
|
|
120
|
+
in place of the committing verdicts. Its banner keeps the same heading and
|
|
121
|
+
stack, and these exits:
|
|
122
|
+
|
|
123
|
+
`Continue` carries on · `Request changes` works them now
|
|
124
|
+
|
|
125
|
+
`Continue` resumes the run and never commits. It never clears a gate that a
|
|
126
|
+
finished phase armed: only a committing verdict or a recorded skip clears one.
|
|
127
|
+
A mid-run render waits without arming anything.
|
|
128
|
+
|
|
129
|
+
## The `Review` row, when not waiting
|
|
130
|
+
|
|
131
|
+
A render the run is not held on (a mid-phase `/spec-diff`, a page produced
|
|
132
|
+
alongside other work) gets the `Review` row instead: the counts and every tier,
|
|
133
|
+
and no question. Never use both the row and the banner.
|
|
@@ -14,7 +14,8 @@ An epic's members are built in tabs of their own, and the tab this runs in
|
|
|
14
14
|
stays whatever it was — the epic's coordinator, or a member that just finished.
|
|
15
15
|
So this skill **picks and prints**: its answer is `/spec-start <member>` to
|
|
16
16
|
type **in a new tab**. It writes nothing, provisions nothing, and moves no
|
|
17
|
-
session. Starting the member is `/spec-start`'s job, in that tab.
|
|
17
|
+
session. Starting the member is `/spec-start`'s job, in that tab. How epics,
|
|
18
|
+
`Waits on:` and lanes work is in `epics.md` beside this file.
|
|
18
19
|
|
|
19
20
|
## 1. Ask the engine
|
|
20
21
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Epics
|
|
2
|
+
|
|
3
|
+
An **epic** is a spec of specs: `epic-<name>/00-overview.md` and
|
|
4
|
+
**no phase files**. It records why a group belongs together and, optionally,
|
|
5
|
+
`> **Lanes:** N`, how many members may be in flight at once. `/spec` proposes
|
|
6
|
+
one when the grill describes several specs and their order.
|
|
7
|
+
|
|
8
|
+
**The order lives on the members, never on the epic.** Each member carries
|
|
9
|
+
`> **Epic:** epic-<name>` and `> **Waits on:**`, and any phase file may carry its
|
|
10
|
+
own `Waits on:`. `skitterspec epic status <epic>` turns those headers into what
|
|
11
|
+
can start now, what is blocked and on what, the waves, the phase-level sync
|
|
12
|
+
points, and pairs whose `Area:` overlaps (never run together). A wait is met
|
|
13
|
+
only on the base branch: the spec in `complete/`, or that phase file marked
|
|
14
|
+
done. Anything the engine cannot see counts as cannot-tell, never as met.
|
|
15
|
+
|
|
16
|
+
**Checked where the work happens.** `/spec-start` and `/spec-next` on a member
|
|
17
|
+
ask `skitterspec epic check` before building. An unmet wait warns and offers a
|
|
18
|
+
recorded bypass (`.claude/rules/offered-unblocks.md`). It never refuses, and a
|
|
19
|
+
build never passes a wait silently. An epic gets a documents-only worktree,
|
|
20
|
+
`/spec-next` refuses it, and `/spec-complete` refuses while a member is still
|
|
21
|
+
open, offering to complete with those members listed.
|
|
22
|
+
|
|
23
|
+
## Migrating an `issue-` plan spec to an epic
|
|
24
|
+
|
|
25
|
+
Move the plan's order onto its members:
|
|
26
|
+
|
|
27
|
+
1. `git mv` the folder to `epic-<name>` and set `> **Type:** Epic`.
|
|
28
|
+
2. Add `> **Epic:**` and `> **Waits on:**` to each member, plus a phase file's
|
|
29
|
+
own `Waits on:` for a phase-level sync point.
|
|
30
|
+
3. Delete the wave phase files; `epic status` derives them.
|
|
31
|
+
4. Keep the plan's Decisions. They hold the reasons the headers cannot.
|
|
32
|
+
|
|
33
|
+
**A phase that is not a wave becomes a member**, usually an **Issue** (manual
|
|
34
|
+
steps, no code), with `> **Epic:**` and its own `> **Waits on:**`. Anything that
|
|
35
|
+
waited on that phase now waits on the member.
|
|
36
|
+
|
|
37
|
+
**Do it off the base branch** on a `/no-spec` branch. Before landing, run
|
|
38
|
+
`skitterspec epic status <epic> --here` from that worktree. It reads the
|
|
39
|
+
branch's members and headers, uncommitted edits included, while still counting
|
|
40
|
+
a wait as met only on the base branch.
|
|
41
|
+
|
|
42
|
+
**The epic's first push retires the wave sub-issues.** Each phase sub-issue
|
|
43
|
+
still in the snapshot is closed as not planned and unlinked. A tracker that
|
|
44
|
+
cannot retire one names it, so it can be closed by hand.
|
|
@@ -16,7 +16,7 @@ a **release tag**, not `main`: prod is running a tagged version, so the fix must
|
|
|
16
16
|
be built on **that** commit line, shipped as a **new patch tag** (your CI/CD
|
|
17
17
|
deploys tags), and only then cherry-picked onto `main` for the next release.
|
|
18
18
|
|
|
19
|
-
Spec type convention (see `.claude/rules/spec-
|
|
19
|
+
Spec type convention (see `.claude/rules/spec-format.md`):
|
|
20
20
|
- Hotfix specs are named `hotfix-<kebab-name>`; every header carries
|
|
21
21
|
`> **Type:** Hotfix` and `> **Base version:** <tag>`.
|
|
22
22
|
- Branch is `hotfix/<slug>`, forked from the base tag.
|
|
@@ -199,7 +199,7 @@ Hotfixes are concrete — confirm, don't over-grill. Establish:
|
|
|
199
199
|
### Watch for the other doors — incident, bug, or not a defect
|
|
200
200
|
|
|
201
201
|
This is the most specific defect door, so most mis-entries route *down*
|
|
202
|
-
(`.claude/
|
|
202
|
+
(`.claude/skills/spec/kind-routing.md` carries the full routing matrix):
|
|
203
203
|
|
|
204
204
|
- **Live outage** — the released version is not just wrong but down or
|
|
205
205
|
degraded **right now** → propose **`/spec-incident`**; the record comes
|
|
@@ -662,7 +662,7 @@ Relay the engine's **stack** — the `local:`, `network:` and `remote:` lines, a
|
|
|
662
662
|
three — rather than the bare `page:` path: a path is not clickable in any
|
|
663
663
|
terminal, and a page nobody can open is a page nobody reads. Relay the `live:`
|
|
664
664
|
line with it where the engine printed one, and nothing where it did not.
|
|
665
|
-
`.claude/
|
|
665
|
+
`.claude/skills/spec-diff/review-wait.md` carries the shape, including why a rigid
|
|
666
666
|
contract took that line.
|
|
667
667
|
|
|
668
668
|
- **Never write the review unasked**, and **never publish** — there is no
|
|
@@ -679,7 +679,7 @@ underneath a reader when detection flipped mid-session.
|
|
|
679
679
|
So: **relay all three tier lines, every time.** Any `also:` lines sit under
|
|
680
680
|
their tier — the other addresses this machine has of that kind — so pass them
|
|
681
681
|
on rather than editing them out: in the banner they are indented sub-bullets
|
|
682
|
-
under that tier, labels included, exactly as `.claude/
|
|
682
|
+
under that tier, labels included, exactly as `.claude/skills/spec-diff/review-wait.md`
|
|
683
683
|
shows.
|
|
684
684
|
|
|
685
685
|
**Never read an environment variable to decide anything about the offer** — not
|
|
@@ -732,7 +732,7 @@ the shape; this section carries only what is specific here.
|
|
|
732
732
|
|
|
733
733
|
**`Review` is emitted only where step 6b did not run** — a project with no
|
|
734
734
|
isolation, or a render that failed. Where the run is waiting, the banner carries
|
|
735
|
-
the whole subject and the row is dropped, per `.claude/
|
|
735
|
+
the whole subject and the row is dropped, per `.claude/skills/spec-diff/review-wait.md`.
|
|
736
736
|
|
|
737
737
|
**The base tag goes in the verdict clause** — `✅ /spec-hotfix · hotfix-foo ·
|
|
738
738
|
green on v2.3.1`. Which released version this was fixed against is the first
|
|
@@ -44,7 +44,7 @@ straight into `specs/in-progress/` — so the grill's own answers are also its
|
|
|
44
44
|
exit. When items 1 and 2 establish there is **no outage to record** — nothing
|
|
45
45
|
is down or degraded, it never was live, or it is a risk rather than an event —
|
|
46
46
|
propose the right door instead of writing an incident
|
|
47
|
-
(`.claude/
|
|
47
|
+
(`.claude/skills/spec/kind-routing.md` carries the full routing matrix):
|
|
48
48
|
|
|
49
49
|
- a **defect** → **`/spec-bug`**, or **`/spec-hotfix`** when it is on a
|
|
50
50
|
released version;
|
|
@@ -511,7 +511,7 @@ costs — roughly **700 output tokens**, because writing it means reading the di
|
|
|
511
511
|
— and that spend is the operator's call, not a default.
|
|
512
512
|
|
|
513
513
|
**Where you are going to wait, the offer is the banner after the block** —
|
|
514
|
-
defined in `.claude/
|
|
514
|
+
defined in `.claude/skills/spec-diff/review-wait.md`, and **the `Review` row is dropped**
|
|
515
515
|
so one subject lives in one place:
|
|
516
516
|
|
|
517
517
|
---
|
|
@@ -548,7 +548,7 @@ the command that turns them on: a reader who has left the house cannot ask for a
|
|
|
548
548
|
remote door they were never shown.
|
|
549
549
|
|
|
550
550
|
**Do not pick one for them.** The engine used to, and the guess failed three
|
|
551
|
-
separate ways in one day. `.claude/
|
|
551
|
+
separate ways in one day. `.claude/skills/spec-diff/review-wait.md` carries the shape and
|
|
552
552
|
why the *one link, never two* rule now reads
|
|
553
553
|
**one link per door, each labelled, all into one store** —
|
|
554
554
|
local, network and remote are three doors into one room, so the wait
|
|
@@ -604,7 +604,7 @@ reading — and that is the gap the whole gate exists to close.
|
|
|
604
604
|
the whole scope of what you may claim.
|
|
605
605
|
2. **Run the engine's wait, and end your turn** — under the harness's
|
|
606
606
|
persistent watch primitive where one exists, else in the background
|
|
607
|
-
(`.claude/
|
|
607
|
+
(`.claude/skills/spec-diff/review-wait.md` carries the preference):
|
|
608
608
|
|
|
609
609
|
```
|
|
610
610
|
skitterspec spec-env review wait <spec> --since <the timestamp>
|
|
@@ -617,7 +617,7 @@ reading — and that is the gap the whole gate exists to close.
|
|
|
617
617
|
of your own.
|
|
618
618
|
|
|
619
619
|
**A watch that dies is re-armed on the same window**, silently and bounded by
|
|
620
|
-
the age of that window — `.claude/
|
|
620
|
+
the age of that window — `.claude/skills/spec-diff/review-wait.md` carries the contract,
|
|
621
621
|
including when to stop, what the banner says instead, and when the
|
|
622
622
|
engine's `re-show:` brings the banner back. Do not restate it here.
|
|
623
623
|
|
|
@@ -695,7 +695,7 @@ underneath a reader when detection flipped mid-session.
|
|
|
695
695
|
So: **relay all three tier lines, every time.** Any `also:` lines sit under
|
|
696
696
|
their tier — the other addresses this machine has of that kind — so pass them
|
|
697
697
|
on rather than editing them out: in the banner they are indented sub-bullets
|
|
698
|
-
under that tier, labels included, exactly as `.claude/
|
|
698
|
+
under that tier, labels included, exactly as `.claude/skills/spec-diff/review-wait.md`
|
|
699
699
|
shows.
|
|
700
700
|
|
|
701
701
|
**Never read an environment variable to decide anything about the offer** — not
|