@skitterbyte/skitterspec-azure-boards 1.3.0 → 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
 
@@ -115,37 +115,12 @@ is an opt-in not taken (fine); `broken` is configured-but-wrong (exit 1).
115
115
  configured state exists on the types, and whether the PAT can search
116
116
  identities (a warn, never broken — only user search degrades without it).
117
117
 
118
- ## 4b. Optional — see releases on the board
119
-
120
- The release carrier is a work item per release, so it can have a board of its
121
- own, and the stories it carries can show where they are. Everything here is a
122
- process or team setting, and needs **Edit process** on the inherited process
123
- plus **team administrator** — nothing in this package does it for you.
124
-
125
- - **A Releases board.** Process → Backlog levels → add a portfolio level
126
- holding the `Release` type, then Team settings → Backlogs → tick it. The
127
- board's level picker then offers **Releases**, one column per state. Put
128
- each env state in the *In Progress* category, or every card stacks in the
129
- first column.
130
- - **The release on each story** is a tag (`releases.ticketTag`, on by
131
- default). Show tags on the card and filter the board by one.
132
- - **Where each story is deployed.** Add a picklist field to every type
133
- tickets are minted as (User Story, Bug…) holding exactly the `envs` values
134
- (`On Test`, `On Demo`, `Released`…), and set its reference name as
135
- `releases.deployedField` (e.g. `Custom.Deployed`). `release deployed <env>`
136
- then sets it on each story the release carries, leaving the story's State
137
- alone. Show it on the card, and add a card style rule per value to colour
138
- cards by it.
139
- - **Releases with their stories in one list.** A *Work items and direct
140
- links* query — top level `Release` in the env states, linked `Related`
141
- stories — shows each release with its stories under it.
142
-
143
118
  ## 5. Push a spec
144
119
 
145
120
  `/spec-push <spec>` computes the plan, applies it, stamps the returned ids
146
121
  into the spec's frontmatter (`azure_identifier` / `azure_url` /
147
122
  `azure_item_id`), verifies the round-trip by words, and records the snapshot
148
- 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
149
124
  mirror fresh on their own.
150
125
 
151
126
  ---
@@ -213,23 +188,11 @@ types' state names.
213
188
  ```
214
189
 
215
190
  Tickets counted, unreferenced commits reported, an earlier tracker's
216
- trailers counted as historical, bookkeeping ignored.
217
-
218
- 8. **Release carrier** — with a `releases.series` configured and a tag pushed:
219
-
220
- ```sh
221
- pnpm exec skitterspec-azure-boards spec-sync release create <tag>
222
- pnpm exec skitterspec-azure-boards spec-sync release create <tag> --apply
223
- pnpm exec skitterspec-azure-boards spec-sync release deployed <tag> staged --apply
224
- pnpm exec skitterspec-azure-boards spec-sync release complete <tag> --apply
225
- ```
226
-
227
- In Boards: one `releases.workItemType` item titled by the tag, the range's
228
- tickets Related-linked with one comment each, the item's state moving
229
- through the envs and closing on complete. A retry of `create --apply`
230
- reports "unchanged", never a duplicate.
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.
231
194
 
232
- 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,
233
196
  and:
234
197
 
235
198
  ```sh
@@ -12,19 +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
- | `releases.ticketTag` | Tag each ticket `release create` attaches with the release tag (`v37.7.0`), so a story card shows which release carried it and the board filters by it. Existing tags are kept. The tag is checked per ticket, separately from the link, so re-running `release create <tag> --apply` backfills a release cut before this existed — without a second comment. `false` opts out. | `true` |
23
- | `releases.deployedField` | A field reference (e.g. `Custom.Deployed`) that `release deployed <env>` sets on each ticket the release carries, to that env's `envs` value — the same name the release item moves to. Phase Tasks and ticket State are never touched. The value is checked against each ticket type's allowed values before anything is written, so a type without the field or a value its picklist lacks refuses with nothing changed. Empty writes no field. `SETUP.md` → *see releases on the board*. | `""` |
24
22
  | `apply.transport` | `api` \| `mcp`, or empty for "api when credentials resolve, mcp when they don't". | `""` |
25
23
  | `sync.baseDir` | Where last-pushed snapshots live. | `specs/.core/azure-base` |
26
24
  | `sync.fieldOwnership` | Which projection fields push (`description`, `subIssues`, `workflowState`, `assignee`; `"none"` declines one). | all `push` |
27
- | `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 |
28
26
 
29
27
  Descriptions are stored as MARKDOWN: the adapter writes the projection's
30
28
  markdown verbatim and declares the format beside the field
@@ -43,5 +41,54 @@ Map the four buckets to **work** states, never to deployment stages — the
43
41
  same rule the Jira reference explains at length. The repo learns where work
44
42
  **is** as it happens, but what **shipped** only when a release is cut, so a
45
43
  pipeline state driven from the spec lifecycle is wrong the moment it moves.
46
- Deployment position belongs to the release seam (`releases.series[].envs`,
47
- 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
@@ -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
@@ -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
@@ -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
@@ -44,20 +44,16 @@ bare `spec-sync …` as if the user could type it.
44
44
  | "link this spec to AB#1 by hand" | `stamp <spec> --issue AB#1` |
45
45
  | "mirror the whole backlog / every complete spec" | `apply --all <bucket>` — **confirm first** |
46
46
  | "what ticket am I on?", writing a commit | `ref` |
47
- | "what shipped in this release?" | `released` |
47
+ | "what shipped in this release?", "which tickets does CI mark deployed?" | `released` — `--json` for a script; recording deploys is the project's own |
48
48
  | "is any of this wired up?", "why isn't sync working?" | `doctor` — scaffold, isolation, tracker and credentials in one |
49
49
  | "set my Azure PAT", "am I authenticated?" | `credentials <status\|set\|unset>` |
50
50
  | push one spec, or "what would push?" | **defer** — see below |
51
51
 
52
- The Linear provider's `retarget`, `reattach`, `stage` and `sanitise` are
52
+ The Linear provider's `retarget`, `reattach` and `sanitise` are
53
53
  **not yet shipped for the Azure Boards provider** — say so when one is asked
54
- for, rather than improvising an equivalent. (`assign`, `whoami`, `users`,
55
- `released` and the `release` verbs ARE shipped — `/spec-claim` fronts the first
56
- three, and the release verbs are CI commands.)
57
- **`released` is in the same list for now**: it needs the kit's
58
- provider-supplied ref pattern (landing with `feat-github-provider`), and the
59
- engine refuses it with exactly that explanation rather than mis-scanning
60
- `AB#n` refs as unreferenced.
54
+ for, rather than improvising an equivalent. (`assign`, `whoami`, `users` and
55
+ `released` ARE shipped — `/spec-claim` fronts the first three.) The `release`
56
+ verbs are retired on every provider; see §7.
61
57
 
62
58
  **With no argument, run `linked`.** It is the repo-wide overview, it is
63
59
  read-only, and it is what a bare "run spec-sync" means.
@@ -72,7 +68,7 @@ Two front doors to one write path is worse than none:
72
68
 
73
69
  - **Push one spec** → `/spec-push`. It owns the transport choice, the
74
70
  state-name gate, the plan, the apply, the stamping and the snapshot.
75
- - **Per-spec drift** ("is this spec in sync?", "what would push?") →
71
+ - **Per-spec status** ("is this spec in sync?", "what would push?") →
76
72
  `/spec-status`.
77
73
 
78
74
  Say which skill you're handing to and stop; don't reimplement either.
@@ -183,10 +179,11 @@ commits were referenced, just not to this tracker (`refs.foreignPatterns` is
183
179
  what classifies them). Bookkeeping commits (paths all under
184
180
  `release.ignorePaths`) are excluded and the ignored count reported.
185
181
 
186
- The `release create|deployed|complete <tag>` verbs are the CI side: one work
187
- item of `releases.workItemType` per release, tickets attached as Related links,
188
- `deployed` moving the item's state through `releases.series[].envs`. Every verb
189
- is a dry run unless `--apply`.
182
+ Each ticket row names the `spec` and `url` behind it (`null` when no spec
183
+ linked the ref), so `--json` is what a project's CI pipes into its own tooling
184
+ to record a release or a deploy. That recording is the project's job: the
185
+ `release` verbs are **retired** and exit 1 naming `released --json`. Do not
186
+ re-create them out of `az` calls on the user's behalf.
190
187
 
191
188
  ## 8. Report
192
189
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skitterbyte/skitterspec-azure-boards",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "Spec-driven development for Claude Code, with one-way Azure Boards sync — a superset of @skitterbyte/skitterspec: the base filesystem workflow plus /spec-status · /spec-push · /spec-claim and the spec-sync CLI, mirroring specs to Azure DevOps work items with parent/child hierarchy, assignment and a release work item per tag. The repo is canonical; Boards is a generated mirror. Install this OR the base OR one other superset — exactly one.",
5
5
  "keywords": [
6
6
  "claude",