@alterset/alterspec-client 0.17.0 → 0.19.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.
@@ -28,6 +28,10 @@ dispatcher's pages.
28
28
  developer's clone of it. It says what the product does in business terms and names everything by ID; it never
29
29
  says how to build it, which is this repository's business. Cite IDs when you refer to it. The clone is read-only:
30
30
  never edit, commit or switch branches in it; `alterspec-client` pulls it.
31
+ - **A task is built to what its change saw.** The brief (`alterspec-client context <task>`) gives every object as
32
+ the task's change saw it at its sign-off, however many changes touched it since; the export's own files are the
33
+ spec as it is now. What later changes did is listed at the brief's end as their tasks' work: never build it in
34
+ this task, and never ask a question of this task about a sentence a later change wrote.
31
35
  - **The CLI does the deterministic work**: which commit to send, the task's brief and checklist, the items its commits cover, the commit that brought it in. Never work these out yourself.
32
36
  - **Feedback is how the spec gets better.** Once per task, when its checklist is covered, call `feedback` with three
33
37
  short lists, each line naming the spec IDs it is about: `unclear` (what the spec left open or said in two ways),
@@ -21,7 +21,11 @@ branch's `task/<chg>-<track>`, the last commit's `Alterspec-Task`, or the task i
21
21
  change you are reading). It need not be assigned to anyone: a developer reading ahead of a blocked task asks about
22
22
  that task. When it concerns one of the task's checklist items (`alterspec-client context <task>` lists them), name
23
23
  the item too. Without one, a question about the product as a whole is asked without a task. Never make a task up:
24
- `_shared.md` says how one is written.
24
+ `_shared.md` says how one is written. **A question about a sentence a later change wrote is that change's**: when
25
+ the brief's "Changed since" lists the object and the sentence is not in the text the brief gives (it is in the
26
+ export's file only), name the later change's task on this track (`CHG-064/BE`), not the task you are building;
27
+ the answerer reads the export as it is now, so its answer may stand on text a later change wrote, and then the work
28
+ that follows is that change's task too.
25
29
 
26
30
  1. Start as `_shared.md` says (`whoami`, then `export-head`, so the clone is current; keep its `send`). When the
27
31
  dispatcher can't be reached or refuses the key, say so in one line and go on from the clone as it is.
@@ -27,6 +27,15 @@ or whose `Alterspec-Task` trailer the last commit carries; when that doesn't set
27
27
  change's text names, whole, the other decisions by path. Each hunk of a diff names the section it falls in. For a
28
28
  UI track
29
29
  the screens, their experience contracts, the mockup pages and the channel's design system.
30
+ **The brief is the spec as the task's change saw it at its sign-off.** When later changes touched objects it
31
+ names, it says so under the title and ends with "Changed since (other tasks' work)": the later changes, each
32
+ with its task on this track, and what each touched. Every text and path the brief gives for such an object is
33
+ the object as this change saw it (an absolute path under `.alterspec-client/pins/` is that pinned copy; the
34
+ export's own file carries the later changes too). Build to the brief. What a later change added is built in
35
+ that change's task, never here; say the later tasks in one line and leave them. One exception: before you build
36
+ one of this task's own objects that is listed there, compare the file the brief gives with the export's, and
37
+ don't build a line a later change removed or reversed: build that item as the later change says and say so in
38
+ the commit's body. What is marked **new** moved since you last read the brief; its diff is shown once.
30
39
  **A bug's task** (`BUG-<n>/<track>`) has a shorter brief: it opens with the bug's words (what was expected, what
31
40
  happened, how to see it) and the items it cites, which are its checklist; then the objects those items belong to,
32
41
  where each is in the export now, and the changes the bug originates in. There is no delta: the product deviates
@@ -36,7 +45,8 @@ or whose `Alterspec-Task` trailer the last commit carries; when that doesn't set
36
45
  3. Call `touch` with the task, then `task` with it. `followed_by` lists the later tasks on this track whose objects
37
46
  overlap this one's; say them in one line, e.g. "CHG-015/BE, after yours, changes some of the same objects; it will
38
47
  be its own task." Build what this change says, not what later ones do.
39
- 4. Work from the brief. Open an export file the brief names only when you need it, and its shards (one per section
48
+ 4. Work from the brief. Open a file the brief names only when you need it, at the path the brief gives (an
49
+ absolute one is the pinned copy of an object changed since), and its shards (one per section
40
50
  or item, under `_shards/`) rather than the whole file when one section is enough. Never read the export
41
51
  wholesale. An object "not in the export now" was removed or isn't signed off: build nothing for it, and say so.
42
52
  5. Build it here, in this repository's own technology and conventions. The spec says what the product does; how is
@@ -180,7 +180,7 @@ server. Then talk to it in plain words; the skills do the rest.
180
180
  | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
181
181
  | "give me work" / `/alterspec-task-next` | takes the next available task on your track and shows the brief; it creates no branch or worktree, you work wherever you like |
182
182
  | "I want CHG-052/BE" / `/alterspec-task-next CHG-052/BE` | takes that one task when it is available to you (its predecessors done, on your track, no overlap with your other work); otherwise says the dispatcher's reason and stops |
183
- | "let's work on my task" / `/alterspec-task-context` | the task's brief from the spec: why, the checklist (each part of an object named by its section or line), the one-time data change if any, the objects it changes (before and after), what moved since the sign-off and where the export uses them, the reach of its rules and roles, the changed acceptance criteria, the rules, events, quality requirements, integrations, decisions and glossary terms they and the change name (the rest, and the entities with their lifecycles, as paths); for a UI track also the screens, their contracts, mockups and design system |
183
+ | "let's work on my task" / `/alterspec-task-context` | the task's brief from the spec: why, the checklist (each part of an object named by its section or line), the one-time data change if any, the objects it changes (before and after) and where the export uses them, every text as the task's change saw it (later changes to the same objects are listed apart, as their tasks' work), the reach of its rules and roles, the changed acceptance criteria, the rules, events, quality requirements, integrations, decisions and glossary terms they and the change name (the rest, and the entities with their lifecycles, as paths); for a UI track also the screens, their contracts, mockups and design system |
184
184
  | "what am I on?" / `/alterspec-task-status` | your tasks with progress and ETA, what's available on your tracks, what is blocked and by what |
185
185
  | "what does RULE-… say?" / `/alterspec-spec-ask` | answers about the product from the spec, citing IDs; what the spec doesn't say is recorded as an assumption or an open question for the product side; Claude uses it by itself when a task's spec is undecided |
186
186
  | "the price screen shows no margin" / `/alterspec-bug` | grooms the report against the spec first: where the product deviates from what the spec says, raises a bug with the dispatcher citing the items it violates, placed after the tasks that built them and offered like any task; where the spec is silent or reads two ways, asks instead; where the spec is wrong, says so |
@@ -215,6 +215,26 @@ When the brief says "Start from `task/chg-012-be`", a task yours waited for was
215
215
  yet: fetch it and base your branch on it, not on main (`git fetch origin task/chg-012-be`, then branch from
216
216
  `origin/task/chg-012-be`). The teams merge a change's branches together once every track is done.
217
217
 
218
+ ### A brief that doesn't move under you
219
+
220
+ The spec keeps changing while you build: a rule your task names may be edited by three later changes before you are
221
+ done. Your brief doesn't follow them. It shows every object **as your task's change saw it when it was signed
222
+ off**, the same today and next week, however often the export is pulled. What later changes did to those objects is
223
+ at the brief's end, under "Changed since (other tasks' work)": each later change with its own task on your track,
224
+ and what it touched. That work is built in those tasks, when you or a colleague take them; a question about a
225
+ sentence a later change wrote is asked on that change's task.
226
+
227
+ - A path the brief prints under `.alterspec-client/pins/<chg>-<track>/` is the pinned copy of an object changed
228
+ since (its file and its shards, a few small files); the export's own file is the spec as it is now. The folder
229
+ ignores itself in git and is rewritten every time the brief is made; delete it whenever you like.
230
+ - When the brief is read again and something moved in between, it marks it **new** and shows once what the new
231
+ changes did.
232
+ - One exception to "not your work": before building one of your task's own objects that later changes touched,
233
+ Claude compares the two texts and doesn't build a line a later change removed or reversed; it builds that item
234
+ as the later change says and says so in the commit.
235
+ - An object that was signed off only after your task's change (the brief says so) is shown as the export holds it
236
+ now: the export never had its earlier text.
237
+
218
238
  ### One task of your choosing
219
239
 
220
240
  Name it: `/alterspec-task-next CHG-052/BE` (or "take CHG-052/BE"). The dispatcher assigns it alone when it is