@skitterbyte/skitterspec-azure-boards 1.2.1 → 2.0.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 CHANGED
@@ -1,5 +1,104 @@
1
1
  # Migration guide
2
2
 
3
+ ## `@skitterbyte/skitterspec-github` v1 → v2 (tell, don't track)
4
+
5
+ Skitterspec now tells GitHub about **its own** transitions and nothing
6
+ else. It writes nothing about releases or deployments, and it never reads a
7
+ ticket's state back.
8
+
9
+ ### Breaking change 1 — The `release create|deployed|complete|reconcile` verbs are removed
10
+
11
+ They exit 1 with one line naming `spec-sync released <range> --json`. A pipeline
12
+ still calling them goes red rather than silently believing it mirrors
13
+ anything. **To migrate**, replace the step with your own script over the
14
+ release's ticket list:
15
+
16
+ ```sh
17
+ skitterspec-github spec-sync released "<previous-tag>..<tag>" --json
18
+ ```
19
+
20
+ Each ticket row now carries `spec` and `url` (both `null` for a ref no spec has
21
+ linked), so the script needs no second lookup. Set whatever GitHub field,
22
+ state or release object your process uses from that list. The checkout needs
23
+ `fetch-depth: 0` so the previous tag is visible.
24
+
25
+ ### Breaking change 2 — The `releases` block (`deployedField`, `series`) and `release.stages` are retired
26
+
27
+ The keys are ignored, like any unknown key, so a config carrying them still
28
+ loads. `spec-sync doctor` names them as unused config (a `warn`, never a
29
+ failure). Delete them when you remove the CI step.
30
+
31
+ ### Breaking change 3 — no state drift
32
+
33
+ `spec-sync status --remote` and `/spec-status` no longer compare the tracker's
34
+ state with the spec's. A ticket someone moved on GitHub is not reported, and
35
+ push still resends state only when the spec itself moves. The edited-description
36
+ warning is unchanged.
37
+
38
+ ## `@skitterbyte/skitterspec-azure-boards` v1 → v2 (tell, don't track)
39
+
40
+ Skitterspec now tells Azure Boards about **its own** transitions and nothing
41
+ else. It writes nothing about releases or deployments, and it never reads a
42
+ ticket's state back.
43
+
44
+ ### Breaking change 1 — The `release create|deployed|complete` verbs are removed
45
+
46
+ They exit 1 with one line naming `spec-sync released <range> --json`. A pipeline
47
+ still calling them goes red rather than silently believing it mirrors
48
+ anything. **To migrate**, replace the step with your own script over the
49
+ release's ticket list:
50
+
51
+ ```sh
52
+ skitterspec-azure-boards spec-sync released "<previous-tag>..<tag>" --json
53
+ ```
54
+
55
+ Each ticket row now carries `spec` and `url` (both `null` for a ref no spec has
56
+ linked), so the script needs no second lookup. Set whatever Azure Boards field,
57
+ state or release object your process uses from that list. The checkout needs
58
+ `fetch-depth: 0` so the previous tag is visible.
59
+
60
+ ### Breaking change 2 — The `releases` block (`workItemType`, `series`, `ticketTag`, `deployedField`) and `release.stages` are retired
61
+
62
+ The keys are ignored, like any unknown key, so a config carrying them still
63
+ loads. `spec-sync doctor` names them as unused config (a `warn`, never a
64
+ failure). Delete them when you remove the CI step.
65
+
66
+ ### Breaking change 3 — no state drift
67
+
68
+ `spec-sync status --remote` and `/spec-status` no longer compare the tracker's
69
+ state with the spec's. A ticket someone moved on Azure Boards is not reported, and
70
+ push still resends state only when the spec itself moves. The edited-description
71
+ warning is unchanged.
72
+
73
+ ## `@skitterbyte/skitterspec-jira` v1 → v2 (tell, don't track)
74
+
75
+ Skitterspec now tells Jira about **its own** transitions and nothing else. It
76
+ writes nothing about releases or deployments, and it never reads an issue's
77
+ status back.
78
+
79
+ ### Breaking change 1 — no status drift
80
+
81
+ `spec-sync status --remote` and `/spec-status` no longer compare Jira's status
82
+ with the spec's. An issue someone moved on Jira is not reported, and push still
83
+ transitions it only when the spec itself moves. The edited-description warning
84
+ is unchanged.
85
+
86
+ ### Breaking change 2 — `release.stages` retired
87
+
88
+ It was accepted and validated before, and never acted on. It is now ignored
89
+ like any unknown key, and `spec-sync doctor` names it as unused config (a
90
+ `warn`, never a failure). Delete it.
91
+
92
+ ### Also — `released --json` names the spec
93
+
94
+ Each ticket row now carries `spec` and `url` (both `null` for a ref no spec has
95
+ linked), so CI can record a release, for example as a fix version, without a
96
+ second lookup:
97
+
98
+ ```sh
99
+ skitterspec-jira spec-sync released "<previous-tag>..<tag>" --json
100
+ ```
101
+
3
102
  ## `@skitterbyte/skitterspec` v23 → v24 (hotfix land runs the release itself)
4
103
 
5
104
  ### Breaking change 1 — `spec-env hotfix land` runs its steps, and holds before the carry
@@ -275,7 +374,48 @@ can run it.
275
374
  committed file, so it changes for everyone who pulls and leaves that tree dirty.
276
375
  The engine says so when it does.
277
376
 
278
- ## `@skitterbyte/skitterspec-linear` v18 → v19 (hotfix land runs the release itself)
377
+ ## `@skitterbyte/skitterspec-linear` v18 → v19 (tell, don't track; hotfix land runs the release itself)
378
+
379
+ Skitterspec now tells Linear about **its own** transitions and nothing
380
+ else. It writes nothing about releases or deployments, and it never reads a
381
+ ticket's state back.
382
+
383
+ ### Breaking change 1 — The `spec-sync stage` verb is removed
384
+
385
+ It exits 1 with one line naming `spec-sync released <range> --json`. A pipeline
386
+ still calling it goes red rather than silently believing it mirrors
387
+ anything. **To migrate**, replace the step with your own script over the
388
+ release's ticket list:
389
+
390
+ ```sh
391
+ skitterspec-linear spec-sync released "<previous-tag>..<tag>" --json
392
+ ```
393
+
394
+ Each ticket row now carries `spec` and `url` (both `null` for a ref no spec has
395
+ linked), so the script needs no second lookup. Set whatever Linear field,
396
+ state or release object your process uses from that list. The checkout needs
397
+ `fetch-depth: 0` so the previous tag is visible.
398
+
399
+ ### Breaking change 2 — `release.stages` (the deployment ladder) is retired
400
+
401
+ The keys are ignored, like any unknown key, so a config carrying them still
402
+ loads. `spec-sync doctor` names them as unused config (a `warn`, never a
403
+ failure). Delete them when you remove the CI step.
404
+
405
+ ### Breaking change 3 — no state drift
406
+
407
+ `spec-sync status --remote` and `/spec-status` no longer compare the tracker's
408
+ state with the spec's. A ticket someone moved on Linear is not reported, and
409
+ push still resends state only when the spec itself moves. The edited-description
410
+ warning is unchanged.
411
+
412
+ **A ladder rung no longer reads as `complete`.** Where a state was a
413
+ `release.stages` rung, the live `spec-sync list` now shows it as unmapped. To
414
+ keep it reading as finished, list it as an alias:
415
+ `"complete": ["Done", "On Test"]`. `init-config --stage` is gone too, and is
416
+ refused as an unknown flag.
417
+
418
+ ### Also — hotfix land runs the release itself
279
419
 
280
420
  The same change as `@skitterbyte/skitterspec` v23 → v24 above — this
281
421
  distribution composes the same engine. Read that entry; nothing here is
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Spec-driven development for Claude Code, with **one-way Azure Boards sync** — a
4
4
  superset of [`@skitterbyte/skitterspec`](https://www.npmjs.com/package/@skitterbyte/skitterspec):
5
- the base filesystem workflow plus `/spec-push` · `/spec-status` · `/spec-claim`
5
+ the base filesystem workflow plus `/spec-push` · `/spec-status` · `/spec-list` · `/spec-claim`
6
6
  and the `spec-sync` CLI. The repo is canonical; Azure Boards is a generated
7
7
  mirror.
8
8
 
@@ -23,12 +23,13 @@ npx @skitterbyte/skitterspec-azure-boards init
23
23
  - **Work item types and states are the project's own.** The process template
24
24
  (Basic, Agile, custom) decides them, so the config names the types and the
25
25
  bucket→state map, validated against the process at run time.
26
- - **One-way**: nothing is read back into the repo. A body edited in Boards is
27
- reported and replaced on the next push, loudly.
28
- - **Releases**: CI runs `spec-sync release create <tag>` on a tag push. It
29
- mints one work item of `releases.workItemType` per release, holding exactly
30
- the tickets that tag contains by their `Refs: AB#n` trailers;
31
- `release deployed <tag> <env>` moves that item's state through your envs.
26
+ - **One-way**: nothing is read back into the repo, and skitterspec tells
27
+ Boards only about its own transitions — an item moved by hand is left alone.
28
+ A body edited in Boards is reported and replaced on the next push, loudly.
29
+ - **Releases are yours to record**: `spec-sync released <range> --json` lists
30
+ exactly the tickets a range contains, by their `Refs: AB#n` trailers, each
31
+ with its spec and url. Your CI pipes that into whatever records a release or
32
+ a deploy; skitterspec writes neither.
32
33
  - **Assignment**: `/spec-start` assigns the work item to you; `/spec-claim`
33
34
  hands it on. Identity derives from the PAT (`spec-sync whoami`).
34
35
  - **Intake**: adopt a PM-filed work item as a spec's own, routed to `/spec`,
@@ -99,9 +99,9 @@ state (Agile's `Removed` is an honest override).
99
99
  **Map buckets to work states, not deployment stages.** The buckets mirror the
100
100
  repo's work lifecycle, so To Do / Doing / Done translate honestly — On Test /
101
101
  On Live do not: a finished phase would show as deployed before anything was
102
- released. Deployment position belongs to the release carrier
103
- (`releases.series[].envs`, moving the release work item) —
104
- `azure-boards.config.md` → **Choosing your state map** carries the reasoning.
102
+ released. Deployment position belongs to the project's own release tooling —
103
+ `azure-boards.config.md` → **Choosing your state map** and **Releases and
104
+ deploys** carry the reasoning.
105
105
 
106
106
  ## 4. Check — `spec-sync doctor`
107
107
 
@@ -120,7 +120,7 @@ identities (a warn, never broken — only user search degrades without it).
120
120
  `/spec-push <spec>` computes the plan, applies it, stamps the returned ids
121
121
  into the spec's frontmatter (`azure_identifier` / `azure_url` /
122
122
  `azure_item_id`), verifies the round-trip by words, and records the snapshot
123
- later drift is measured against. From then on the lifecycle skills keep the
123
+ later pushes diff against. From then on the lifecycle skills keep the
124
124
  mirror fresh on their own.
125
125
 
126
126
  ---
@@ -188,23 +188,11 @@ types' state names.
188
188
  ```
189
189
 
190
190
  Tickets counted, unreferenced commits reported, an earlier tracker's
191
- trailers counted as historical, bookkeeping ignored.
191
+ trailers counted as historical, bookkeeping ignored. With `--json`, each
192
+ ticket names the spec and url behind it — what your CI uses to record a
193
+ release.
192
194
 
193
- 8. **Release carrier** — with a `releases.series` configured and a tag pushed:
194
-
195
- ```sh
196
- pnpm exec skitterspec-azure-boards spec-sync release create <tag>
197
- pnpm exec skitterspec-azure-boards spec-sync release create <tag> --apply
198
- pnpm exec skitterspec-azure-boards spec-sync release deployed <tag> staged --apply
199
- pnpm exec skitterspec-azure-boards spec-sync release complete <tag> --apply
200
- ```
201
-
202
- In Boards: one `releases.workItemType` item titled by the tag, the range's
203
- tickets Related-linked with one comment each, the item's state moving
204
- through the envs and closing on complete. A retry of `create --apply`
205
- reports "unchanged", never a duplicate.
206
-
207
- 9. **Drift** — edit the item's description **in Boards**, fetch the item JSON,
195
+ 8. **Edited description** — edit the item's description **in Boards**, fetch the item JSON,
208
196
  and:
209
197
 
210
198
  ```sh
@@ -12,17 +12,17 @@ env-var NAMES — never a credential. Credentials live in the user-level store
12
12
  | `azure.workItemTypeByKind` | The mint type per spec kind — `feature`, `bug`, `hotfix`, read off the spec folder's prefix — falling back to `azure.workItemType`. In Agile/Scrum/CMMI a bug is a type, so `{ "bug": "Bug", "hotfix": "Bug" }` keeps `/spec-bug` and `/spec-hotfix` out of the story backlog. Each named type's states are validated like the base pair's. | `{}` |
13
13
  | `azure.childType` | The type a phase mints as, linked parent/child under the spec's item. | `"Task"` |
14
14
  | `azure.areaPath` | Optional area path for minted items; empty means the project default. | `""` |
15
+ | `azure.backlogOrderField` | The field `spec-sync list --next` ranks the backlog by, ascending. StackRank is what Basic, Agile and CMMI backlogs drag-order; a Scrum process uses `Microsoft.VSTS.Common.BacklogPriority`. | `Microsoft.VSTS.Common.StackRank` |
15
16
  | `mapping.specFolder` / `mapping.phases` / `mapping.tasks` | Spec → work item, phase → child item, tasks → markdown checklist. Same modes as the other providers (`subissue` \| `deferred` \| `inline`; `checklist` \| `none`). | `issue` / `subissue` / `checklist` |
16
17
  | `states.<bucket>` | The Boards STATE name for each lifecycle bucket, per the project's own process. Moves are direct `System.State` writes; a state the process refuses is a named refusal listing the states the type has. `cancelled` defaults to `Done` because the Basic process carries no Cancelled state. | see example |
17
18
  | `intake.tag` / `intake.bugTags` / `intake.hotfixTags` | Intake routes an adopted work item by its tags (Boards has tags, not labels): the inbox filter, and the routes to `/spec-bug` and `/spec-hotfix`. Empty lists route nothing. | `""` / `["bug"]` / `[]` |
18
19
  | `intake.bugTypes` / `intake.hotfixTypes` | The same routes, keyed on the item's work item TYPE — in Agile/Scrum/CMMI a bug is a type, not a tag, so an untagged `Bug` still reaches `/spec-bug`. A match on either axis routes, hotfix wins over bug, and an explicit `[]` opts type routing out. | `["Bug"]` / `[]` |
19
20
  | `auth.tokenEnv` | The env-var NAME for the PAT — the official CLI's by default, so a machine set up for `az boards` needs nothing new. Work Items (Read & Write) covers everything but identity search, which wants Identity (Read). | `AZURE_DEVOPS_EXT_PAT` |
20
21
  | `refs.foreignPatterns` | Ref shapes that are KNOWN HISTORY rather than unreferenced commits — a repo migrating off another tracker lists its old key here (e.g. `"ERQ-\\d+"`). | `[]` |
21
- | `releases.workItemType` / `releases.series` | The release seam's carrier: one work item of this type per release, found by title, its state moved through each series' `envs` map by `release deployed`. | `"Release"` / `[]` |
22
22
  | `apply.transport` | `api` \| `mcp`, or empty for "api when credentials resolve, mcp when they don't". | `""` |
23
23
  | `sync.baseDir` | Where last-pushed snapshots live. | `specs/.core/azure-base` |
24
24
  | `sync.fieldOwnership` | Which projection fields push (`description`, `subIssues`, `workflowState`, `assignee`; `"none"` declines one). | all `push` |
25
- | `release.stages` / `release.ignorePaths` | The deployment ladder and bookkeeping path prefixes, exactly as the other providers define them. | `[]` / `specs/`, changelogs |
25
+ | `release.ignorePaths` | Bookkeeping path prefixes `released` ignores, exactly as the other providers define them. | `specs/`, changelogs |
26
26
 
27
27
  Descriptions are stored as MARKDOWN: the adapter writes the projection's
28
28
  markdown verbatim and declares the format beside the field
@@ -41,5 +41,54 @@ Map the four buckets to **work** states, never to deployment stages — the
41
41
  same rule the Jira reference explains at length. The repo learns where work
42
42
  **is** as it happens, but what **shipped** only when a release is cut, so a
43
43
  pipeline state driven from the spec lifecycle is wrong the moment it moves.
44
- Deployment position belongs to the release seam (`releases.series[].envs`,
45
- moving the release work item), not to each ticket's state.
44
+ Deployment position belongs to the project's own release tooling — see
45
+ "Releases and deploys" below — not to each ticket's state.
46
+
47
+ ### More than one name per bucket — read-only aliases
48
+
49
+ A board usually has more states than the four buckets: "Blocked", "Next
50
+ Sprint", "Released". A bucket's value may be an **array** instead of a string:
51
+
52
+ ```jsonc
53
+ "states": {
54
+ "in-progress": ["Active", "Blocked"],
55
+ "complete": ["Closed", "Released"]
56
+ }
57
+ ```
58
+
59
+ - **The first name is the only one push writes**, and only when the spec
60
+ itself moves. The rest are never written.
61
+ - **The rest are read as that bucket** by the listing: the live
62
+ `spec-sync list` hides every `complete` / `cancelled` name, `--state <bucket>`
63
+ matches all of them, and `spec-sync states` lists each alias under its
64
+ bucket.
65
+ - **Nothing is pulled.** An alias changes what the report *says* about a
66
+ ticket, never the spec.
67
+ - A plain string works exactly as before. An alias that also names another
68
+ bucket is refused at load. An alias the tracker lacks is reported by
69
+ `spec-sync states` but never blocks a push, because it is never written.
70
+ - `spec-sync status` never reads a ticket's state at all, aliased or not:
71
+ skitterspec tells Boards about its own transitions and nothing else.
72
+
73
+ ## Releases and deploys — the host project's to write
74
+
75
+ Skitterspec moves a ticket's state only at its own transitions, and it writes
76
+ nothing about releases or deployments. What a project records about a release
77
+ — a Release work item, a tag on each ticket, a `Custom.Deployed` field — is its own CI's to write.
78
+
79
+ The one release question skitterspec answers is
80
+ **which tickets a range contains**, because only the `Refs: AB#n` trailers know:
81
+
82
+ ```sh
83
+ skitterspec-azure-boards spec-sync released "<previous-tag>..<tag>" --json
84
+ ```
85
+
86
+ Each row carries the `ref`, its commit count, the `spec` that stamped it and its
87
+ `url` — `null` for a ref no spec has linked, never a guess. The checkout needs
88
+ the full history (`fetch-depth: 0`) so the previous tag is visible. Pipe the
89
+ list into whatever records your releases.
90
+
91
+ The `releases` block (`workItemType`, `series`, `ticketTag`, `deployedField`),
92
+ `release.stages` and the `spec-sync release` verbs are **retired**: `release`
93
+ exits 1 naming `released --json`, and `spec-sync doctor` flags leftover config
94
+ as unused (a warning, never a failure).
@@ -492,9 +492,19 @@ missing alias.
492
492
  Sync is **one-way**: the repo is the source of truth and the tracker is a
493
493
  **generated mirror**. It ships `/spec-push` (repo→tracker; computes a create/update plan
494
494
  against a committed last-pushed snapshot and applies it) and `/spec-status`
495
- (read-only drift report — what would push, and whether the tracker's
496
- workflow-state drifted), backed by a `spec-sync` CLI. There is no content pull —
497
- the tracker is never read back or merged.
495
+ (read-only — what would push, and whether someone edited a description there),
496
+ backed by a `spec-sync` CLI. There is no content pull — the tracker is never
497
+ read back or merged.
498
+
499
+ **It tells, it doesn't track.** Skitterspec sends the tracker its own
500
+ transitions — a spec starting, a phase finishing, a spec completing or being
501
+ cancelled — and nothing else. A status someone changes on the tracker is
502
+ theirs to have changed: it is never read back, never reported, and only
503
+ overwritten when the spec itself next moves. Releases and deployments are the
504
+ host project's to record. The one release question skitterspec answers is which
505
+ tickets a commit range contains (`spec-sync released <range> --json`, each row
506
+ with its spec and url), because only the `Refs:` trailers know. What the
507
+ project's CI does with that list is its own business.
498
508
 
499
509
  **One-way means the repo wins, and it now wins *loudly*.** Those are different
500
510
  claims and only the first was ever in doubt. A ticket's description is generated
@@ -36,7 +36,7 @@ A verdict sentence, a blank line, then a two-column table:
36
36
  | **Branch** | `spec/feat-foo` · 3 commits, clean |
37
37
  | **Built** | POST /orders handler, orders schema |
38
38
  | **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** off |
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/…) also [http://100.126.111.34:7760/…](http://100.126.111.34:7760/…) (tailnet) · **remote** off |
40
40
  | **Follow-ups** | none |
41
41
  | **Next** | `/spec-next` → phase 3 (Auth) |
42
42
 
@@ -89,6 +89,7 @@ the options may be offered after the table.
89
89
 
90
90
  - **local** — [http://127.0.0.1:7760/7e9e123e7540/feat-orders](http://127.0.0.1:7760/7e9e123e7540/feat-orders)
91
91
  - **network** — [http://192.168.0.136:7760/7e9e123e7540/feat-orders](http://192.168.0.136:7760/7e9e123e7540/feat-orders)
92
+ - also — [http://100.126.111.34:7760/7e9e123e7540/feat-orders](http://100.126.111.34:7760/7e9e123e7540/feat-orders) (tailnet)
92
93
  - **remote** — off · `/spec-remote-review` turns it on
93
94
 
94
95
  live: off — /spec-live to put it live
@@ -156,6 +157,17 @@ on. Dropping the line is what left a reader who had walked out of the house with
156
157
  nothing on screen to tell them a remote page was even possible — they could not
157
158
  ask for what they could not see.
158
159
 
160
+ **The `network` tier may carry alternates, and they are part of it — not a fourth tier.**
161
+ The engine offers the other addresses this machine has (a
162
+ tailnet one, for a reader off the wifi) as `also:` lines under `network`, each
163
+ labelled; `--json` carries them as that tier's `alternates`, labelled the same
164
+ way. Copy them as indented sub-bullets under the network bullet, verbatim,
165
+ labels included. This is not an amendment to the tier rule: the stack is the
166
+ engine's, copied rather than composed, and the engine was already printing
167
+ these — a contract that made the skill edit them out was the composing this
168
+ section forbids. A machine with no alternates renders the banner exactly as
169
+ above, minus the sub-bullet.
170
+
159
171
  **Only promise a wait the transport can deliver.** The wait itself is real in
160
172
  every case; what varies is what carries it back, not whether the run is
161
173
  stopped. Three transports, three true sentences:
@@ -298,8 +310,11 @@ behind, and they cannot.
298
310
  `fetch(location.pathname, …)`, so a page opened at `127.0.0.1:7760/…` and one
299
311
  opened at `192.168.0.136:7760/…` reach the same server process and the same
300
312
  pending store. One wait covers both, and a verdict pressed on either wakes the
301
- same run. Between those two the objection does not apply — which is why both are
302
- offered, and why offering them gives nothing up.
313
+ same run. A `network` alternate — the `also:` tailnet address — is one more
314
+ door into the same room: the same server answers on it, so the wait-coverage
315
+ line stays true with nothing added to it. Between all of those the objection
316
+ does not apply — which is why they are offered, and why offering them gives
317
+ nothing up.
303
318
 
304
319
  **So two things are required, and the second is what the old rule lacked.**
305
320
  Every link is **labelled** with its tier, and one line says
@@ -410,7 +425,7 @@ behind it — say nothing rather than reporting that there was nothing to report
410
425
  | `Landed` | A fast-forward, a tag, a cherry-pick. |
411
426
  | `Worktree` | A worktree provisioned, entered, or torn down. |
412
427
  | `Untouched` | Uncommitted work the run deliberately left alone — whose, and how much. |
413
- | `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, 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. |
428
+ | `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 `network` alternates inline after the network URL (`also <url> (tailnet)`), 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. |
414
429
  | `Follow-ups` | **Always.** `none`, or one line each. |
415
430
  | `Next` | **Last.** The single next action for this work — runnable from the state the run leaves behind. |
416
431
 
@@ -207,7 +207,8 @@ Then name the next step:
207
207
 
208
208
  - `/spec` — write a spec; with Boards configured it creates the linked work
209
209
  item in the configured project and stamps the id.
210
- - `/spec-status` — read-only drift report, the safe way to prove the link works.
210
+ - `/spec-status` — read-only report of what would push, the safe way to prove
211
+ the link works.
211
212
  - `/spec-push` — send a spec up.
212
213
 
213
214
  Mention what setup did **not** configure, so the defaults aren't mistaken for
@@ -597,7 +597,9 @@ underneath a reader when detection flipped mid-session.
597
597
 
598
598
  So: **relay all three tier lines, every time.** Any `also:` lines sit under
599
599
  `network` — the other addresses this machine has, offered because the
600
- best-guess one can be wrong — so pass them on rather than editing them out.
600
+ best-guess one can be wrong — so pass them on rather than editing them out: in
601
+ the banner they are indented sub-bullets under **network**, labels
602
+ (`(tailnet)`) included, exactly as `.claude/rules/spec-reports.md` shows.
601
603
 
602
604
  **Never read an environment variable to decide anything about the offer** — not
603
605
  `SSH_CONNECTION`, not `CLAUDE_CODE_*`, not a tty check. There is nothing left
@@ -608,7 +608,9 @@ underneath a reader when detection flipped mid-session.
608
608
 
609
609
  So: **relay all three tier lines, every time.** Any `also:` lines sit under
610
610
  `network` — the other addresses this machine has, offered because the
611
- best-guess one can be wrong — so pass them on rather than editing them out.
611
+ best-guess one can be wrong — so pass them on rather than editing them out: in
612
+ the banner they are indented sub-bullets under **network**, labels
613
+ (`(tailnet)`) included, exactly as `.claude/rules/spec-reports.md` shows.
612
614
 
613
615
  **Never read an environment variable to decide anything about the offer** — not
614
616
  `SSH_CONNECTION`, not `CLAUDE_CODE_*`, not a tty check. There is nothing left
@@ -33,6 +33,10 @@ The user asks in plain language; the engine takes flags. Map, then run:
33
33
  | "what specs are there", "/spec-list" | *(none — the live default)* |
34
34
  | "what's done", "everything" | `--all` |
35
35
  | "what's cancelled", a named state | `--state "<name>"` (repeatable) |
36
+ | "what's next", "the next few in the backlog" | `--next N` |
37
+ | "what's in progress", a lifecycle bucket | `--state in-progress` |
38
+ | "what's mine", "what am I on" | `--mine` |
39
+ | "what is Priya doing", a named person | `--by "<name or email>"` |
36
40
 
37
41
  The default scope is **live** — everything whose state is not what
38
42
  `config.states` maps `complete` and `cancelled` to. It is deliberately not
@@ -41,15 +45,34 @@ everything: in a project with any history, Done dwarfs the rows anyone wanted.
41
45
  `--state` and `--all` are **alternatives**, and the engine refuses the pair
42
46
  rather than letting one win silently.
43
47
 
44
- The Linear provider's `--mine`, `--by` and `--next` filters are
45
- **not yet shipped for the Azure Boards provider** — the listing does not filter
46
- by assignee or order the backlog. Say so when one is asked for, rather than
47
- approximating it.
48
+ `--mine` and `--by` filter by **assignee** and combine with the scope; they
49
+ cannot be combined with each other. Every row carries its assignee, and a
50
+ ticket no spec has adopted yet is listed too, marked `(no spec)` — under
51
+ `--mine` that is often exactly what is next. `--mine` with an unknown identity
52
+ lists **nothing** and says why (`spec-sync whoami --set` fixes it); relay that
53
+ rather than retrying without the filter. `--by` matching nobody or several
54
+ people exits 1 and names them — relay it and ask which one.
55
+
56
+ `--next N` is the top of the backlog in the tracker's own order, `azure.backlogOrderField` (StackRank by default; Scrum ranks by `BacklogPriority`). It picks the scope itself, so it does not combine with `--state`
57
+ or `--all`; the engine refuses that pair rather than picking a winner. It does
58
+ combine with `--mine` / `--by`.
59
+
60
+ **Every row shows the board's state and the spec's own status side by side.**
61
+ The spec status is read from the spec's **own worktree** when one exists, so an
62
+ in-flight spec reads `in-progress` even on the base branch, where its folder
63
+ still says `backlog`. `≠ <bucket>` marks a row whose board state maps to a
64
+ different bucket than its spec; a state that maps to no bucket never gets one.
65
+ `—` means the spec is not on this machine. Relay it as printed; never "correct"
66
+ either column from the other. The board says where the ticket is, and the spec
67
+ says where the work is.
68
+
69
+ `--state` also takes a lifecycle bucket: `--state in-progress` matches every
70
+ board state configured for it (`states` aliases included).
48
71
 
49
72
  ## 2. Run the engine
50
73
 
51
74
  ```
52
- skitterspec spec-sync list [--state <name> …|--all] [--json]
75
+ skitterspec spec-sync list [--state <name|bucket> …|--all|--next N] [--mine | --by <user>] [--json]
53
76
  ```
54
77
 
55
78
  - **`transport = api`** (a PAT resolves) → it queried Boards and printed the
@@ -584,7 +584,9 @@ underneath a reader when detection flipped mid-session.
584
584
 
585
585
  So: **relay all three tier lines, every time.** Any `also:` lines sit under
586
586
  `network` — the other addresses this machine has, offered because the
587
- best-guess one can be wrong — so pass them on rather than editing them out.
587
+ best-guess one can be wrong — so pass them on rather than editing them out: in
588
+ the banner they are indented sub-bullets under **network**, labels
589
+ (`(tailnet)`) included, exactly as `.claude/rules/spec-reports.md` shows.
588
590
 
589
591
  **Never read an environment variable to decide anything about the offer** — not
590
592
  `SSH_CONNECTION`, not `CLAUDE_CODE_*`, not a tty check. There is nothing left
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: spec-status
3
- description: Show a spec's one-way sync status against Azure Boards — a read-only drift report naming what would push, and whether the tracker's state has drifted from the spec's. Changes nothing. Opt-in — needs specs/.core/azure-boards.config.json. Use when the user says "/spec-status", "is this spec in sync with Boards", "what would push", or "show spec sync status".
3
+ description: Show a spec's one-way sync status against Azure Boards — a read-only report naming what would push, and whether someone edited the item's description since the last push. Changes nothing. Opt-in — needs specs/.core/azure-boards.config.json. Use when the user says "/spec-status", "is this spec in sync with Boards", "what would push", or "show spec sync status".
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
- # /spec-status — one-way sync drift report
7
+ # /spec-status — one-way sync report
8
8
 
9
9
  > Stay silent while this runs — speak only to ask something you cannot answer
10
10
  > yourself, or to report a failure at the moment it happens. Read
@@ -15,13 +15,17 @@ Read-only. Reports two things and writes nothing:
15
15
 
16
16
  1. **Pending push** — has the spec changed since the last push (is there an item
17
17
  description/state or any phase child to create or update)?
18
- 2. **State drift** — does Boards' item state differ from the spec's status?
19
- (The repo wins on the next push; this is just a heads-up, e.g. a card moved
20
- on the board.)
18
+ 2. **Description edited** — did someone edit the item's description on Azure
19
+ since the last push? The next push replaces it, so this is worth reading
20
+ first.
21
+
22
+ **Status is not compared, deliberately.** Skitterspec tells Azure about its
23
+ own transitions and never reads a status back: a card someone moved by hand is
24
+ theirs to have moved, and push resends State only when the spec itself moves.
21
25
 
22
26
  The repo is the source of truth; Boards is a generated mirror, so there is no
23
- per-field "conflict" — only "what would the next push send" and "did the mirror
24
- drift".
27
+ per-field "conflict" — only "what would the next push send" and "did someone
28
+ write over the mirror's text".
25
29
 
26
30
  **Opt-in**: only runs when `specs/.core/azure-boards.config.json` exists. If
27
31
  absent, tell the user how to enable Azure Boards sync and stop.
@@ -30,18 +34,16 @@ absent, tell the user how to enable Azure Boards sync and stop.
30
34
 
31
35
  Use the argument, else the spec in context; ask if unclear.
32
36
 
33
- ## 2. Fetch the work item (optional, for drift)
37
+ ## 2. Fetch the work item (optional, for the description check)
34
38
 
35
39
  If the spec has an `azure_identifier`, discover the work-item read tool and
36
- write the item JSON to a temp file. If Azure isn't connected, skip the drift
37
- lines (still report pending-push).
40
+ write the item JSON to a temp file. If Azure isn't connected, skip the
41
+ description check (still report pending-push).
38
42
 
39
- **Write the whole item, including `System.Description`.** The engine reports
40
- two independent kinds of drift off that one file: the state someone moved, and
41
- the **description someone edited**. Write only the state field and the second
42
- check has nothing to look at — and it says nothing rather than guessing, so the
43
- loss is silent. Keep the url too: it is what the description line points the
44
- reader at.
43
+ **Write the whole item, including `System.Description`.** That is the field the
44
+ check reads; without it the check has nothing to look at — and it says nothing
45
+ rather than guessing, so the loss is silent. Keep the url too: it is what the
46
+ description line points the reader at.
45
47
 
46
48
  **The description itself never enters the conversation.** The engine hashes it
47
49
  and compares hashes; what it prints is *that* the text changed, plus where to
@@ -58,8 +60,9 @@ skitterspec spec-sync status <spec> [--remote <itemfile>] [--workspace-states <s
58
60
  ```
59
61
 
60
62
  - Reports `push: pending — N to create, M to update` or `up to date`.
61
- - With `--remote`, adds a `drift:` line comparing Boards' item state to the
62
- spec's status.
63
+ - With `--remote`, adds a `drift:` line when the item's description was
64
+ edited on Azure since the last push, and nothing otherwise. It never
65
+ reports the item's state.
63
66
  - With `--workspace-states`, fails loudly if a configured state name isn't in
64
67
  the types (the write would be refused at apply time, after the description
65
68
  landed, so the push would refuse up front).
@@ -88,18 +91,17 @@ the shape; this section carries only what is specific here.
88
91
  **Verdicts**
89
92
 
90
93
  - `✅` — in sync; nothing would push.
91
- - `⚠️` — drift: N objects would push, Boards' state was moved by hand, or the
92
- item's **description** was edited on Boards since the last push. None is an
93
- error — the repo wins on the next push — but all are the reason someone ran
94
- this. **Say which**, since the three call for different things: a pending push
95
- is routine, a moved state is usually someone else's automation, and an edited
96
- description means a person wrote something that the next push replaces.
94
+ - `⚠️` — N objects would push, or the item's **description** was edited on
95
+ Azure since the last push. Neither is an error, but both are the reason
96
+ someone ran this. **Say which**, since they call for different things: a
97
+ pending push is routine, and an edited description means a person wrote
98
+ something that the next push replaces.
97
99
  - `⏸` — no config, or the spec is not linked. Nothing to compare.
98
100
 
99
101
  **Fields:** `Tracker` · `Follow-ups` · `Next`
100
102
 
101
- `Tracker` is the drift in one line — what would push, and whether the tracker's
102
- state diverged. `Next` is `/spec-push` when a push is pending, and nothing to
103
+ `Tracker` is the answer in one line — what would push, and whether the
104
+ description was edited. `Next` is `/spec-push` when a push is pending, and nothing to
103
105
  do when it is not.
104
106
 
105
107
  A **`phases: <mode>`** line names the phase mode that resolved for this spec's