@alterset/alterspec-client 0.25.0 → 0.26.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/assets/prompts/_shared.md +31 -4
- package/assets/prompts/task-context.md +30 -12
- package/assets/prompts/task-next.md +2 -1
- package/developer-guide.md +11 -1
- package/package.json +1 -1
|
@@ -32,6 +32,23 @@ dispatcher's pages.
|
|
|
32
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
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
34
|
this task, and never ask a question of this task about a sentence a later change wrote.
|
|
35
|
+
- **A claim about the code is checked, never trusted.** Three things in a brief say what the code already does: an
|
|
36
|
+
item marked `w 0, nothing to build on this track`, a task summary that opens with "Nothing to build" (a weight
|
|
37
|
+
reasoned "as built"), and the "Built already" section. None of them was read from the code: the first two are the
|
|
38
|
+
sign-off's judgement, the third is computed from dates (the asking task was done after the answer). On one
|
|
39
|
+
product they were wrong, in both directions, on fifteen tasks of sixty-four. So before you skip or cover such an
|
|
40
|
+
item, read the code against the item's text and write or run its test. When the code has the behaviour, the
|
|
41
|
+
test stays and the item is covered like any other (a `w 0` item is never named in `Alterspec-Covers`, it
|
|
42
|
+
carries no weight, but its test still proves it). When the code lacks it and the item is your track's, build it,
|
|
43
|
+
say in the commit's body that the brief called it built, and put one line in `unclear`. A `w 0` item whose text
|
|
44
|
+
names only another channel is that track's behaviour: read it and build nothing. When you can't tell which it
|
|
45
|
+
is, ask with `/alterspec-spec-ask`.
|
|
46
|
+
- **News is read at the boundaries, never in the middle of an item.** Answers to your questions, the later changes
|
|
47
|
+
under "Changed since", `followed_by` and `overlaps` are read when a skill starts (`context`, `task`), before each
|
|
48
|
+
commit (`alterspec-client questions <task>`, for your own `Q-<n>`) and in `/alterspec-task-done`. Between those
|
|
49
|
+
points you build: don't re-read the brief or the export to see whether something moved, and don't call `whoami`
|
|
50
|
+
for it. What `followed_by` and `overlaps` name is said once, at the start, and left. A corrected assumption found
|
|
51
|
+
at a boundary is rework before the next item.
|
|
35
52
|
- **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.
|
|
36
53
|
- **Feedback is how the spec gets better, and it never restates a question.** Once per task, when its checklist
|
|
37
54
|
is covered, call `feedback` with three short lists. What you asked is on the task already, with its answer: the
|
|
@@ -39,13 +56,23 @@ dispatcher's pages.
|
|
|
39
56
|
hand.
|
|
40
57
|
- `unclear`: what in the spec cost you work and was **not** a question, each line naming the spec IDs it is
|
|
41
58
|
about (a sentence that took three readings, a term used for two things, a fact that sat far from where it was
|
|
42
|
-
needed
|
|
43
|
-
every difficulty was asked sends an empty
|
|
59
|
+
needed, a brief that called built what the code didn't hold). Never a question that was asked:
|
|
60
|
+
no `Q-<n>` on these lines and no question said again. A task whose every difficulty was asked sends an empty
|
|
61
|
+
`unclear`.
|
|
44
62
|
- `decided`: one line per assumption you built on, and the line is its `Q-<n>` and nothing more: no object ID
|
|
45
|
-
and no retelling, so the line closes with its question.
|
|
46
|
-
it now, before the feedback, and send the number you get.
|
|
63
|
+
and no retelling, so the line closes with its question. Never prose: a decision without a `Q-<n>` was taken
|
|
64
|
+
silently; ask it now, before the feedback, and send the number you get.
|
|
47
65
|
- `opened`: what you had to read beyond the brief, and why, naming the IDs. It is read by whoever builds the
|
|
48
66
|
brief, as a count of how often each ID was opened, not by the product side: name the object, not a complaint.
|
|
67
|
+
Never a finding (what you found goes to `unclear`), never a file the brief itself gave you.
|
|
68
|
+
|
|
69
|
+
Three lines as they should read:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
unclear: RULE-NTF-007, CAP-NTF-001-AC-04, CAP-NTF-001-AC-17: the 60th day falls on a different side in each.
|
|
73
|
+
opened: _generated/rule-matrix.md, the row of RULE-058: which capabilities trigger it; the brief gave the rule, not its reach.
|
|
74
|
+
decided: Q-198
|
|
75
|
+
```
|
|
49
76
|
|
|
50
77
|
No code and no copied spec text; empty lists are fine, an invented complaint is not. Skip it when the dispatcher
|
|
51
78
|
has no `feedback` tool.
|
|
@@ -16,9 +16,11 @@ or whose `Alterspec-Task` trailer the last commit carries; when that doesn't set
|
|
|
16
16
|
When the change has questions it opens with them, on
|
|
17
17
|
every track (each names the task it was asked on): say in one line each one the product side answered since, and
|
|
18
18
|
take up a corrected assumption first. When the dispatcher says this change carries answers this track built
|
|
19
|
-
already ("Built already"), the
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
already ("Built already"), the mark comes from dates (the asking task was done after the answer), not from the
|
|
20
|
+
code: read each checklist item against the code first; where the code says what the spec now says, add the test
|
|
21
|
+
that is missing and cover the item as it passes; where it doesn't, build it, whatever the mark said, and say so
|
|
22
|
+
in the commit's body (`_shared.md`, "A claim about the code is checked"). The same reading settles the answers
|
|
23
|
+
the brief marks as not built here: the code may hold them already. Then the task's checklist: its items, what
|
|
22
24
|
each is and which the dispatcher holds covered already; that is the work, and its progress. Then why the change
|
|
23
25
|
was made, what changed, the one-time data change when the proposal declares one (what the release does once to the
|
|
24
26
|
records the product already holds; on the backend it is the `CHG-NNN#data-change` item), the delta of each of the
|
|
@@ -48,27 +50,43 @@ or whose `Alterspec-Task` trailer the last commit carries; when that doesn't set
|
|
|
48
50
|
3. Call `touch` with the task, then `task` with it. `followed_by` lists the later tasks on this track whose objects
|
|
49
51
|
overlap this one's; say them in one line, e.g. "CHG-015/BE, after yours, changes some of the same objects; it will
|
|
50
52
|
be its own task." Build what this change says, not what later ones do.
|
|
51
|
-
4.
|
|
53
|
+
4. **The question pass, before any code.** Walk the checklist and, for each item, name what you would have to
|
|
54
|
+
decide that the brief doesn't state: the edge of each input (empty, the last one, a record gone meanwhile),
|
|
55
|
+
which refusal wins when two apply, a default, an order, a limit, what happens to records that already exist, the
|
|
56
|
+
wording of a text. Group them by matter (the same rule, entity or moment) and ask each matter once with
|
|
57
|
+
`/alterspec-spec-ask`, its cases as numbered parts, with `--task` and `--item`. Then plan the work with the
|
|
58
|
+
answers: an `open` matter's items go last, an `assumed` one is built on its assumption. A question that surfaces
|
|
59
|
+
while building is still asked before the commit that stands on it (step 7), but there should be few: the pass is
|
|
60
|
+
where the product side gets your questions in one batch, while they are cheap to answer, and where you stop
|
|
61
|
+
being interrupted by their answers.
|
|
62
|
+
5. Work from the brief. Open a file the brief names only when you need it, at the path the brief gives (an
|
|
52
63
|
absolute one is the pinned copy of an object changed since), and its shards (one per section
|
|
53
64
|
or item, under `_shards/`) rather than the whole file when one section is enough. Never read the export
|
|
54
65
|
wholesale. An object "not in the export now" was removed or isn't signed off: build nothing for it, and say so.
|
|
55
|
-
|
|
66
|
+
Between the start and a commit, read nothing to see whether something moved: news is read at the boundaries
|
|
67
|
+
(`_shared.md`).
|
|
68
|
+
6. Build it here, in this repository's own technology and conventions. The spec says what the product does; how is
|
|
56
69
|
the developer's. A mockup page is the agreed look and behaviour of a screen, a working example to follow, not code
|
|
57
70
|
to copy. When the spec is silent, ambiguous or says two things, ask with `/alterspec-spec-ask` as
|
|
58
71
|
`_shared.md` says and go on with what its answer allows; when the spec and the code disagree, tell the developer.
|
|
59
72
|
Never fill a gap with an invented business rule.
|
|
60
|
-
|
|
61
|
-
product's behaviour that the brief didn't state. Each one has a `Q-<n>` from `/alterspec-spec-ask
|
|
62
|
-
now, before the commit, as `_shared.md` says; the commit's body names the `Q-<n>`
|
|
63
|
-
|
|
73
|
+
7. Before each commit of the task, look at what you built for it and name to yourself every choice about the
|
|
74
|
+
product's behaviour that the brief didn't state. Each one has a `Q-<n>` from `/alterspec-spec-ask` (most from the
|
|
75
|
+
pass of step 4), or you ask it now, before the commit, as `_shared.md` says; the commit's body names the `Q-<n>`
|
|
76
|
+
it stands on.
|
|
77
|
+
8. Work through the checklist, the heavy items first (their weight `w`, when the brief shows one, is how much
|
|
64
78
|
behaviour each is; it is the sign-off's, never yours to set or send). An item marked `w 0, nothing to build on this track` is
|
|
65
|
-
another track's behaviour that your track only reads
|
|
66
|
-
|
|
79
|
+
one of two things, and the brief doesn't say which: another track's behaviour that your track only reads (its
|
|
80
|
+
text names only another channel: read it, build nothing), or behaviour the sign-off holds this track to have
|
|
81
|
+
already (as built). Read the code against the item either way, as `_shared.md` says: when it has the behaviour,
|
|
82
|
+
its test stays; when it lacks it and the item is yours, build it and say in the commit's body that the weight
|
|
83
|
+
called it built. Never name a `w 0` item in `Alterspec-Covers`; when you can't tell whose the item is, ask with
|
|
84
|
+
`/alterspec-spec-ask`. A criterion item is your track's part of
|
|
67
85
|
it (`Then` on the backend, `Shown` on a UI track); leave the part the brief gives to another task. A contract state item comes with its mockup link
|
|
68
86
|
(`…/SCR-….html?state=<state>`): open that page in that state to see what you build (sign in as one of the
|
|
69
87
|
screen's roles on the channel's `index.html` first; the session stays). For each item, make its
|
|
70
88
|
tests pass, then commit with the trailers of `_shared.md`: `Alterspec-Task: <task>` always, `Alterspec-Covers`
|
|
71
89
|
with the items whose tests pass on that commit. The hook reports them. When the work is merged into the main
|
|
72
90
|
branch, the developer types `/alterspec-task-done <task>`; never report it done yourself.
|
|
73
|
-
|
|
91
|
+
9. When every checklist item is covered, send your `feedback` once, as `_shared.md` says, while you still remember
|
|
74
92
|
what the work cost (nothing you asked is said again: `decided` is the bare `Q-<n>` of each assumption); then tell the developer the task is ready for `/alterspec-task-done <task>` once it is merged.
|
|
@@ -26,7 +26,8 @@ CHG-052/BE", "take CHG-052/BE").
|
|
|
26
26
|
(`git fetch origin <branch>` first). A null `branch` means the main branch, as usual.
|
|
27
27
|
6. The tasks it assigned:
|
|
28
28
|
- **One**: continue with `.alterspec-client/prompts/task-context.md` for that task, here, on whatever branch the
|
|
29
|
-
developer is on (when it starts from a predecessor's branch, say so before any commit is made)
|
|
29
|
+
developer is on (when it starts from a predecessor's branch, say so before any commit is made), starting with
|
|
30
|
+
its question pass before any code.
|
|
30
31
|
- **Several**: list each task with its title and, when it has one, the branch it starts from, and say: type
|
|
31
32
|
`/alterspec-task-context <task>` where you want to work on it. Work on none of them in this session.
|
|
32
33
|
- **None**: say so, with the reasons. Stop.
|
package/developer-guide.md
CHANGED
|
@@ -218,9 +218,16 @@ server. Then talk to it in plain words; the skills do the rest.
|
|
|
218
218
|
|
|
219
219
|
1. "Give me work." Claude takes a task and shows the brief and its checklist. Work on it in the branch (or worktree) you
|
|
220
220
|
choose, made the way you make them: the client creates no branch, no worktree and no commit in your repository.
|
|
221
|
+
Before any code, Claude walks the checklist and asks the product side every question it can see, one per
|
|
222
|
+
matter, in one batch through `/alterspec-spec-ask`; the answers usually arrive while it plans, and the rest of
|
|
223
|
+
the task runs without waiting for anyone.
|
|
221
224
|
2. Build it with Claude in your own technology. The spec says what, never how; a mockup shows the agreed look and
|
|
222
225
|
behaviour, it is not code to copy. When the spec is silent or says two things, Claude asks through `/alterspec-spec-ask` and
|
|
223
|
-
goes on with what the answer allows; when the spec and the code disagree, Claude asks you.
|
|
226
|
+
goes on with what the answer allows; when the spec and the code disagree, Claude asks you. A brief's "Built
|
|
227
|
+
already", a summary's "Nothing to build" or an item's `w 0` is a claim about your code, made from the spec side
|
|
228
|
+
or from dates: Claude reads the code against the item before it skips or covers it, and builds what the code
|
|
229
|
+
turns out to lack. Between the start and a commit Claude reads nothing to see whether the spec moved: answers
|
|
230
|
+
and later changes are looked at when a skill starts, before a commit and at `/alterspec-task-done`.
|
|
224
231
|
3. Claude ends every commit of the task with a trailer:
|
|
225
232
|
|
|
226
233
|
```
|
|
@@ -369,6 +376,9 @@ when one of yours was fixed since you last looked.
|
|
|
369
376
|
- **Only you move your task on.** Going away for a while? Release it. An admin can force a release only when you are
|
|
370
377
|
gone, and that is logged.
|
|
371
378
|
- **Keep the client current.** Run `init` again now and then (or when your admin says so); it updates the skills.
|
|
379
|
+
- **One task at a time, in order, on `task/<chg>-<track>`.** Taking several at once or out of order is allowed, but
|
|
380
|
+
the dispatcher then warns of shared objects, and the warnings are usually right. The branch name the client
|
|
381
|
+
recognises by itself spares you the trailer when a commit forgets it.
|
|
372
382
|
- **Tell Claude about the spec outside the skills too.** The skills explain the export only while they run. Copy the
|
|
373
383
|
block in [`agent-instructions.md`](agent-instructions.md) (in this package) into your `CLAUDE.md` or wherever you
|
|
374
384
|
keep your agent's instructions, with your export clone's path.
|
package/package.json
CHANGED