@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,16 +1,12 @@
1
1
  # Offered Unblocks
2
2
 
3
- A refusal says what is wrong. Some refusals can also say **what would fix it**,
4
- and where the engine declares that, a skill may offer it rather than leaving the
5
- operator at a dead end.
6
-
7
- This file is the whole contract. A skill's own text says only *that* it acts on
8
- an offer, never how.
3
+ A refusal says what is wrong. Where the engine also declares what would fix it,
4
+ a skill may offer that fix instead of leaving the operator at a dead end. This
5
+ file is the whole contract.
9
6
 
10
7
  ## The engine declares; the skill relays
11
8
 
12
- An offer is a field on a refusal, never a judgement a caller makes from the
13
- reason text:
9
+ An offer is a field on a refusal:
14
10
 
15
11
  ```json
16
12
  {
@@ -20,15 +16,13 @@ reason text:
20
16
  }
21
17
  ```
22
18
 
23
- **Absent stays absent.** Most refusals carry no `offer` at all, and that is the
24
- correct, common answer. Where there is none, relay the refusal and stop.
19
+ Text output carries the same offer as an `offer:` line under the refusal.
25
20
 
26
- **Never infer one.** If the engine did not declare an offer, there is not one —
27
- however obviously the reason seems to name a fix. The boundary that matters most
28
- lives in that decision, and it must not be re-litigated per skill:
29
- **work that is not the operator's is never offered up.** A live workbench another
30
- spec holds is that spec's operator's to free, so it declares nothing, and a
31
- helpful picker is exactly how that would creep back in.
21
+ **Absent stays absent.** Most refusals carry no offer. Then relay the refusal
22
+ and stop. **Never infer one.** If the engine did not declare an offer, there is
23
+ none, however obvious the fix looks.
24
+ Work that is not the operator's is never offered up: a live workbench another
25
+ spec holds declares nothing.
32
26
 
33
27
  ## Two kinds
34
28
 
@@ -39,27 +33,18 @@ helpful picker is exactly how that would creep back in.
39
33
 
40
34
  ## Relay first, then offer
41
35
 
42
- In that order, and never instead. A picker that replaced the refusal would hide
43
- what is wrong behind a choice about what to do next — and the refusal text is
44
- where every exit is named, including the ones the picker does not offer.
45
-
46
- Then, only where `offer` is present, put **two** options to the operator: the
47
- offer's `label`, and Cancel.
48
-
49
- - **`satisfy`** — run the command, then retry the original operation.
50
- - **`bypass`** — run the command, then carry on.
51
- - **Cancel** — stop. Record nothing: declining to bypass is not a decision
52
- anyone needs to audit.
36
+ Relay the refusal first, never instead of it. Then, only where `offer` is
37
+ present, put **two** options to the operator: the offer's `label`, shown
38
+ verbatim, and Cancel. Never reword it, never pre-select it,
39
+ and never add a third option.
53
40
 
54
- **The label is the engine's, shown verbatim.** Never reword a bypass into
55
- something easier-sounding, never pre-select it, and never add a third option. A
56
- bypass that arrives pre-selected is a bypass by default wearing a question mark.
41
+ - **`satisfy`**: run the command, then retry the original operation.
42
+ - **`bypass`**: run the command, then carry on.
43
+ - **Cancel**: stop, and record nothing.
57
44
 
58
45
  ### A worked `satisfy`: the gap between release branches
59
46
 
60
- Under `baseBranchPattern`, a base nobody can resolve refuses — and where the
61
- last release branch has merged and the next is not yet cut, that refusal is the
62
- normal state of the repo for a while, not a mistake. So the engine declares:
47
+ Under `baseBranchPattern`, the gap between release branches refuses with:
63
48
 
64
49
  ```json
65
50
  {
@@ -69,54 +54,34 @@ normal state of the repo for a while, not a mistake. So the engine declares:
69
54
  }
70
55
  ```
71
56
 
72
- Text output carries the same thing as an `offer:` line under the refusal. On
73
- the pick, run the command and retry the command that refused. It is `satisfy`
74
- because it gives the guard what it asked for — a base — and the pick is kept as
75
- a local pin that every command then honours, so it is asked once per gap rather
76
- than once per command. The pin clears itself when a branch matches again, so
77
- nothing about it needs recording. No fallback resolvable means no `offer`, and
78
- the refusal stands alone.
57
+ Run the command, then retry the command that refused.
79
58
 
80
59
  ## A bypass is offered once per obligation
81
60
 
82
- The engine enforces this; a skill does not count anything. Spend the offer by
83
- recording it **when you raise the picker**:
84
-
85
- ```
86
- skitterspec spec-env review gate <spec> --offered
87
- ```
88
-
89
- After that the gate declares no offer for the same arming, so the next refused
90
- commit is a plain refusal with its exits named in the text. A new phase ending
91
- arms the gate again and is asked in its own right.
92
-
93
- **Spent by being made, not by being taken.** An operator who declines still saw
94
- it, and re-offering on every attempt is how a deliberate step becomes the
95
- default.
96
-
97
- **Do not spend it by reading.** `review gate --json` is asked on every
98
- `/spec-next` run; only raising the picker spends the offer.
61
+ Spend the offer by recording it **when you raise the picker**, for example
62
+ `skitterspec spec-env review gate <spec> --offered`. After that the engine
63
+ declares no offer for the same arming. It counts as spent once it is raised,
64
+ even if declined. **Do not spend it by reading**: `review gate --json` on every
65
+ `/spec-next` run spends nothing.
99
66
 
100
67
  ## What this is not
101
68
 
102
- **Not a `--force`.** One was asked for and rejected: a reasonless lift is
103
- indistinguishable from nobody having looked, where
104
- `none: additive, nothing to revert` is a decision a reviewer can argue with. The
105
- gate's exits are unchanged — a committing verdict, or a recorded skip — and a
106
- bypass is the second of those at an address a person will reach.
69
+ - **Not a `--force`.** A reasonless lift was rejected, because it is
70
+ indistinguishable from nobody having looked.
71
+ - **Not a replacement for the refusal.** It is a
72
+ layer on top of a guard and never the guard itself. The engine and the hooks
73
+ keep refusing regardless.
107
74
 
108
- **Not a replacement for the refusal.** A picker exists only in a harness. The
109
- engine and the `PreToolUse` hook keep refusing regardless, so this is a layer on
110
- top of a guard and never the guard itself.
75
+ A bypass survives the rule that Claude must not lift a guard aimed at Claude
76
+ only because three things hold together:
111
77
 
112
- **Not Claude lifting a guard aimed at Claude.** `spec-planning.md` draws that
113
- line for `/allow-main` and `/spec-skip`, and a bypass offer survives it because
114
- three things hold at once, where a `--force` had none of them:
115
-
116
- 1. **The operator answers.** Claude may raise the question and cannot answer it.
117
- 2. **The choice is recorded** — a fixed reason, distinct from anything typed,
118
- which shows on the next render as history.
119
- 3. **It is offered once**, held by the sidecar rather than by prose, so it
120
- survives a `/clear`, a compaction and a fresh session.
78
+ 1. **The operator answers.** Claude may raise the question but never answer it.
79
+ 2. **The choice is recorded.**
80
+ 3. **It is offered once.**
121
81
 
122
82
  Remove any one of those and the objection returns.
83
+
84
+ ---
85
+
86
+ Rationale and the rejected alternatives:
87
+ [docs/rationale/offered-unblocks.md](https://github.com/SkitterByte/skitterspec/blob/main/docs/rationale/offered-unblocks.md).
@@ -0,0 +1,117 @@
1
+ ---
2
+ paths:
3
+ - "specs/**"
4
+ ---
5
+
6
+ # Spec Format
7
+
8
+ How a spec is laid out on disk. The lifecycle is in
9
+ `.claude/rules/spec-planning.md`.
10
+
11
+ ## Lifecycle folders
12
+
13
+ ```
14
+ specs/backlog/ Ready (or Draft) specs (/spec)
15
+ specs/in-progress/ under active implementation (/spec-start, /spec-bug, /spec-incident)
16
+ specs/complete/ finished (/spec-complete)
17
+ specs/cancelled/ abandoned, with a reason on the header (/spec-cancel)
18
+ specs/.core/ project rules — ALWAYS APPLY, never moved
19
+ ```
20
+
21
+ Every spec is a **folder**, `specs/<bucket>/<name>/`, even a one-line change.
22
+ Inside it:
23
+
24
+ - `00-overview.md` is the dashboard. It holds the header, Summary, Problem,
25
+ Acceptance criteria, Decisions, Solution overview, the **Impact map** (a
26
+ `Surface | Change | Detail` table naming the endpoints, schemas, tables,
27
+ routes and rules touched), the **phase index** (a table linking each phase
28
+ file with `⬜`/`🔄`/`✅`), Open questions, State log and Changelog.
29
+ **No per-phase task lists.**
30
+ - **One file per phase**: `01-<slug>.md`, `02-<slug>.md`, and so on, in
31
+ execution order. Each holds its goal, its task checkboxes (tests included) and
32
+ its notes. A single-phase spec still gets `01-….md`.
33
+
34
+ Keep the index and the phase files in sync. Legacy specs (a bare `<name>.md`,
35
+ or inline phases) are still read, but new specs always use folders.
36
+
37
+ ## Kinds
38
+
39
+ Each spec has one of seven kinds, recorded twice: in the header
40
+ (`> **Type:** Feature`, `> **Type:** Chore`, …) and in the folder name
41
+ (`feat-<name>`, `chore-<name>`, `issue-<name>`, `bug-<name>`, `hotfix-<name>`,
42
+ `incident-<name>`, `epic-<name>`). Never use brackets.
43
+
44
+ - **Feature**: user-facing work that changes code. `feat` commits.
45
+ - **Chore**: code work no end user sees (tooling, CI, dependencies, internal
46
+ refactors). `Gating:` defaults to `none: not user-facing`.
47
+ `chore`/`refactor`/`ci` commits with no `Release-Note:`.
48
+ - **Issue**: no code change at all (configuration, a data fix, a support task),
49
+ written as manual steps. `Gating:` defaults to `none: no code`. `docs`
50
+ commits, no `Release-Note:`. It closes when the spec completes.
51
+ - **Bug**: a defect, test-first. `fix` commits.
52
+ - **Hotfix**: a bug fixed against a **released tag**. It carries
53
+ `> **Base version:** <tag>`, forks from that tag, and lands by tagging a patch
54
+ and cherry-picking onto `main`. `/spec-live` refuses it.
55
+ - **Incident**: a live outage, recorded while it happens. It carries
56
+ `> **Severity:**` and a `## Timeline`. Its fixes are separate specs carrying
57
+ `> **Incident:** incident-<name>`, never its phases.
58
+ - **Epic**: a spec of specs, with `00-overview.md` and **no phase files**. The
59
+ ordering lives on the members. See `.claude/skills/spec-epic-next/epics.md`.
60
+
61
+ ## Header fields
62
+
63
+ - `> **Name:**`: the folder name, the handle passed to the lifecycle skills.
64
+ - `> **Author:**`: `git config user.name` at creation.
65
+ - `> **Developer:**`: `—` until `/spec-start`, then the builder.
66
+ - `> **Status:**`: the lifecycle status.
67
+ - `> **Gating:**`: only where gating is configured. A flag name, or
68
+ `none: <reason>`.
69
+ - `> **Severity:**`: on bug, hotfix and incident specs, Azure's literal values
70
+ (`1 - Critical` … `4 - Low`).
71
+ - `> **Incident:**`: on a fix for an open incident: `incident-<name>`.
72
+ - `> **Epic:**`: on an epic member: `epic-<name>`.
73
+ - `> **Waits on:**`: on an epic member: `<spec>` or `<spec> phase N`,
74
+ comma-separated, or `none`. A phase file may carry its own. It is met only on
75
+ the base branch.
76
+ - `> **Lanes:**`: on an epic, optional: how many members may be in flight at
77
+ once.
78
+ - `> **Blocked on:**`: on a spec or a phase file: a wait outside the repo, in
79
+ free text, optionally with `(until YYYY-MM-DD)`. Only a person can judge it
80
+ met. `/spec-resume` clears it.
81
+
82
+ **Under a provider's default `pull`**, `Status:`, `Developer:` and the State log
83
+ are the tracker's: write none of them, and add `> **Tracker:** <url>` instead.
84
+ Lines that already exist stay as history.
85
+
86
+ ## State log
87
+
88
+ A table of folder and status transitions. Each lifecycle skill appends exactly
89
+ one row when it changes state:
90
+
91
+ ```
92
+ ## State log
93
+
94
+ | Date | Status | Folder | By |
95
+ |------|--------|--------|----|
96
+ | 2026-01-01 | Draft | backlog | Jane Dev |
97
+ | 2026-01-02 | In Progress | in-progress | Jane Dev |
98
+ ```
99
+
100
+ State moves go here. Decisions and course corrections go in the **Changelog**.
101
+
102
+ ## Finding specs
103
+
104
+ The bucket folders are the source of truth for status. Under
105
+ `land.specDocs: "branch"` a spec is not on the base branch until it lands, so
106
+ `gating check` and `epic status` also read the spec branches (local, then
107
+ remote-tracking, never fetching). There are no index files.
108
+
109
+ ## Rules
110
+
111
+ - If a spec already exists, update it. Do not rewrite it from scratch.
112
+ - Preserve completed `[x]` tasks, and never delete historical notes.
113
+ - Add new tasks to the appropriate phase.
114
+ - The spec file is the single source of truth for implementation progress.
115
+ - Move specs between buckets with `git mv`.
116
+ - Never let `**bold**`, `*italic*` or `[text](url)` cross a hard line break.
117
+ Let the line overflow instead.