tiny-spec 1.0.1__tar.gz → 1.1.0__tar.gz
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.
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/PKG-INFO +12 -3
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/README.md +11 -2
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/agents/tiny-spec-build-executor.md +9 -2
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/agents/tiny-spec-build-reviewer.md +26 -6
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/pyproject.toml +1 -1
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny-spec-build/SKILL.md +38 -6
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny-spec-plan/SKILL.md +65 -19
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny_spec/__init__.py +1 -1
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/.gitignore +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/LICENSE +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/docs/eval/README.md +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/examples/todo-cli/README.md +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny-spec-adopt/SKILL.md +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny-spec-create/SKILL.md +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny-spec-design/SKILL.md +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny-spec-run/SKILL.md +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny-spec-scope/SKILL.md +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny_spec/cli.py +0 -0
- {tiny_spec-1.0.1 → tiny_spec-1.1.0}/tiny_spec/manifest.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tiny-spec
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: A tiny, opinionated take on spec-driven development.
|
|
5
5
|
Project-URL: Homepage, https://github.com/GrayMa77er/tiny-spec
|
|
6
6
|
Project-URL: Source, https://github.com/GrayMa77er/tiny-spec
|
|
@@ -449,10 +449,19 @@ unnoticed.
|
|
|
449
449
|
1. Plan the task against the constitution (inline, brief).
|
|
450
450
|
2. Implement it with a fresh `tiny-spec-build-executor` agent.
|
|
451
451
|
3. Review it with an independent `tiny-spec-build-reviewer` agent that runs the gate
|
|
452
|
-
|
|
452
|
+
and grades against the constitution and the task's acceptance.
|
|
453
453
|
4. On pass, commit the code plus a checklist tick. On fail, loop back to the
|
|
454
454
|
executor with the findings. After two failed attempts the run halts `exhausted`.
|
|
455
455
|
|
|
456
|
+
Every task's acceptance is exercised end to end, black-box, by the reviewer — that part
|
|
457
|
+
never varies. What does vary is how much of the toolchain gets re-proven around it: a
|
|
458
|
+
clean `install → build` runs on the first task, the last one, anything touching
|
|
459
|
+
dependency or build config, and anything carrying `design:`; in between the reviewer runs
|
|
460
|
+
lint and tests against the existing build. It escalates back to the full gate whenever the
|
|
461
|
+
narrower one can't carry the verdict, and the authoritative clean run happens once more
|
|
462
|
+
over the whole project as the final smoke. Re-installing from scratch on every task
|
|
463
|
+
proved the same thing repeatedly and was the slowest part of the loop.
|
|
464
|
+
|
|
456
465
|
```mermaid
|
|
457
466
|
flowchart TB
|
|
458
467
|
SPEC[SPEC.md<br/>intent] --> PLAN[PLAN.md<br/>design] --> TASKS[tasks.md<br/>checklist]
|
|
@@ -460,7 +469,7 @@ flowchart TB
|
|
|
460
469
|
TASKS -->|pause: set| H[Halt — paused<br/>task stays unchecked]
|
|
461
470
|
TASKS --> P[Plan task]
|
|
462
471
|
P --> I[Implement<br/>executor]
|
|
463
|
-
I --> R[Review + run gate<br/>reviewer]
|
|
472
|
+
I --> R[Review + run gate<br/>full or scoped<br/>reviewer]
|
|
464
473
|
I -->|blocker| B
|
|
465
474
|
R -->|pass| C[Commit + tick]
|
|
466
475
|
C --> TASKS
|
|
@@ -412,10 +412,19 @@ unnoticed.
|
|
|
412
412
|
1. Plan the task against the constitution (inline, brief).
|
|
413
413
|
2. Implement it with a fresh `tiny-spec-build-executor` agent.
|
|
414
414
|
3. Review it with an independent `tiny-spec-build-reviewer` agent that runs the gate
|
|
415
|
-
|
|
415
|
+
and grades against the constitution and the task's acceptance.
|
|
416
416
|
4. On pass, commit the code plus a checklist tick. On fail, loop back to the
|
|
417
417
|
executor with the findings. After two failed attempts the run halts `exhausted`.
|
|
418
418
|
|
|
419
|
+
Every task's acceptance is exercised end to end, black-box, by the reviewer — that part
|
|
420
|
+
never varies. What does vary is how much of the toolchain gets re-proven around it: a
|
|
421
|
+
clean `install → build` runs on the first task, the last one, anything touching
|
|
422
|
+
dependency or build config, and anything carrying `design:`; in between the reviewer runs
|
|
423
|
+
lint and tests against the existing build. It escalates back to the full gate whenever the
|
|
424
|
+
narrower one can't carry the verdict, and the authoritative clean run happens once more
|
|
425
|
+
over the whole project as the final smoke. Re-installing from scratch on every task
|
|
426
|
+
proved the same thing repeatedly and was the slowest part of the loop.
|
|
427
|
+
|
|
419
428
|
```mermaid
|
|
420
429
|
flowchart TB
|
|
421
430
|
SPEC[SPEC.md<br/>intent] --> PLAN[PLAN.md<br/>design] --> TASKS[tasks.md<br/>checklist]
|
|
@@ -423,7 +432,7 @@ flowchart TB
|
|
|
423
432
|
TASKS -->|pause: set| H[Halt — paused<br/>task stays unchecked]
|
|
424
433
|
TASKS --> P[Plan task]
|
|
425
434
|
P --> I[Implement<br/>executor]
|
|
426
|
-
I --> R[Review + run gate<br/>reviewer]
|
|
435
|
+
I --> R[Review + run gate<br/>full or scoped<br/>reviewer]
|
|
427
436
|
I -->|blocker| B
|
|
428
437
|
R -->|pass| C[Commit + tick]
|
|
429
438
|
C --> TASKS
|
|
@@ -24,7 +24,10 @@ Everything you need and nothing you don't:
|
|
|
24
24
|
so you don't re-learn a pitfall a past run already paid for;
|
|
25
25
|
- **if the task carries `design:`** — that screen's `D<n>` entry from `SPEC.md` and
|
|
26
26
|
the path to its committed export;
|
|
27
|
-
- the specific existing files that are your starting point, named explicitly
|
|
27
|
+
- the specific existing files that are your starting point, named explicitly;
|
|
28
|
+
- sometimes, **the files the previous task left behind** — paths only. Start there when
|
|
29
|
+
orienting: it is the most recently moved ground in the codebase and the most likely
|
|
30
|
+
place your task connects to.
|
|
28
31
|
|
|
29
32
|
You are **blind to the workflow, not to the codebase.** You don't get the plan,
|
|
30
33
|
other tasks, or shared state. But the named files are a launch point, not the whole
|
|
@@ -64,7 +67,11 @@ violated.
|
|
|
64
67
|
6. You MAY run a **narrow self-check** of your own work (the one test file you
|
|
65
68
|
wrote, a syntax/import check). You do **not** need to run the full gate — the
|
|
66
69
|
independent **reviewer** runs the authoritative Verification commands next.
|
|
67
|
-
Leave the tree in a clean, buildable state for it
|
|
70
|
+
**Leave the tree in a clean, buildable, installed state for it** — the reviewer may
|
|
71
|
+
run against the existing build rather than rebuilding from scratch, so a tree you
|
|
72
|
+
left half-migrated or with a stale artifact costs the task a review cycle. If you
|
|
73
|
+
changed dependencies or build configuration, apply them (install, regenerate the
|
|
74
|
+
lockfile) rather than leaving it for someone else, and say so in `CHANGES`.
|
|
68
75
|
|
|
69
76
|
## Hard constraints
|
|
70
77
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: tiny-spec-build-reviewer
|
|
3
|
-
description: Independently reviews a single finished task — runs the project's real gate end-to-end and checks the code against the constitution
|
|
3
|
+
description: Independently reviews a single finished task — runs the project's real gate at the scope it was given (full or scoped, escalating when scoped can't carry the verdict), exercises the acceptance end-to-end, and checks the code against the constitution. Blind to how the code was written. Returns PASS/FAIL plus findings. Spawned (one per task) by tiny-spec-build. Does not fix code, plan, spawn agents, or invoke skills.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -17,6 +17,9 @@ back to `tiny-spec-build`; return data, not pleasantries.
|
|
|
17
17
|
- the full **constitution** (`constitution.md`) — especially **Guiding invariants**,
|
|
18
18
|
**Definition of Done**, and **Verification commands**, plus the **Design system**
|
|
19
19
|
token table if the project has one;
|
|
20
|
+
- the **gate scope** for this task — `full` or `scoped`. `tiny-spec-build` sets it; it
|
|
21
|
+
knows where this task sits in the run and you don't. If the brief names no scope,
|
|
22
|
+
treat it as `full`;
|
|
20
23
|
- the project's **memory** if any (`memory.md`) — operational lessons (e.g. the
|
|
21
24
|
gate needs the package installed first); honor them so you don't false-fail on a
|
|
22
25
|
known precondition;
|
|
@@ -32,10 +35,26 @@ acceptance and the constitution — verified, not inferred?**
|
|
|
32
35
|
1. **Read the changed code.** Check it against the constitution: does it honor the
|
|
33
36
|
**Guiding invariants**, match the **Style** and **Layout**, meet the
|
|
34
37
|
**Definition of Done**? Note any violation as a finding.
|
|
35
|
-
2. **Run the real gate.**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
2. **Run the real gate, at the scope you were given.** Capture the real output either
|
|
39
|
+
way — never a test-runner shortcut, never an inferred result.
|
|
40
|
+
|
|
41
|
+
- **`full`** — execute the constitution's **Verification commands** end-to-end
|
|
42
|
+
(install → lint → test → build → run, as applicable) from a clean state, after the
|
|
43
|
+
documented setup.
|
|
44
|
+
- **`scoped`** — run `lint:` and `test:` against the working tree, and rely on the
|
|
45
|
+
existing install/build state rather than rebuilding it from clean. Step 3 below is
|
|
46
|
+
**not** scoped: you still exercise the acceptance end-to-end, black-box, with real
|
|
47
|
+
input. A scoped gate skips re-proving the toolchain; it never skips proving the task.
|
|
48
|
+
|
|
49
|
+
**Escalate rather than guess.** Move a `scoped` gate up to `full` the moment the
|
|
50
|
+
narrower one can't carry the verdict — you need a build artifact that isn't there or
|
|
51
|
+
looks stale, `install`/`build` state seems inconsistent with the changed files, a
|
|
52
|
+
command fails in a way that might be environmental, or you simply cannot exercise the
|
|
53
|
+
acceptance without building. Escalation is always allowed and always safe. **Passing a
|
|
54
|
+
task on evidence you found insufficient is not** — that is the one thing this whole
|
|
55
|
+
role exists to prevent. Never narrow a `full` gate to `scoped`.
|
|
56
|
+
|
|
57
|
+
Say which scope you actually ran in `GATE:`, including that you escalated and why.
|
|
39
58
|
3. **Exercise the acceptance.** Trigger the task's stated outcome the most
|
|
40
59
|
black-box way available (CLI > HTTP > public API) with realistic input,
|
|
41
60
|
including a negative case if the acceptance implies a boundary or rejection.
|
|
@@ -158,7 +177,8 @@ Never spawn subagents or invoke skills.
|
|
|
158
177
|
```
|
|
159
178
|
TASK: <task id>
|
|
160
179
|
VERDICT: PASS | FAIL
|
|
161
|
-
GATE: <
|
|
180
|
+
GATE: <scope: full | scoped (+ "escalated from scoped: <why>" if you moved it up);
|
|
181
|
+
the Verification commands you ran + the real result (pass/fail + key output)>
|
|
162
182
|
ACCEPTANCE: <how you exercised it + the observed effect, or why you couldn't>
|
|
163
183
|
DESIGN: <omit unless the task carried `design:`. The D<n> checked, the measurements
|
|
164
184
|
you read back vs the tokens they should match, and which states you exercised —
|
|
@@ -68,7 +68,11 @@ Spawn one **`tiny-spec-build-executor`** with a fresh, self-contained prompt:
|
|
|
68
68
|
`.spec/<active>/SPEC.md` plus its `export:` path, so the executor can look at the
|
|
69
69
|
design instead of guessing at it;
|
|
70
70
|
- only the specific existing files the task starts from, named explicitly (so it
|
|
71
|
-
edits with the real current contents, not blind)
|
|
71
|
+
edits with the real current contents, not blind);
|
|
72
|
+
- the **previous passed task's `CHANGES` list**, if there is one, labelled as what the
|
|
73
|
+
last task left behind. Every executor starts cold and re-derives the codebase; naming
|
|
74
|
+
the files that just moved is the cheapest way to cut that, and you already have the
|
|
75
|
+
list in hand. Paths only — not the previous task's description, findings, or report.
|
|
72
76
|
|
|
73
77
|
Do **not** pass the plan, sibling tasks, or other chatter. It returns a structured
|
|
74
78
|
report (`STATUS`, `CHANGES`, `DECISIONS`, `BLOCKER`). A `STATUS: blocked` →
|
|
@@ -80,11 +84,29 @@ Spawn one **`tiny-spec-build-reviewer`**, **blind to step 2**, with:
|
|
|
80
84
|
- the task id, description, and **acceptance**;
|
|
81
85
|
- the **whole** `.spec/constitution.md`;
|
|
82
86
|
- the list of changed files (from the executor's `CHANGES`) to read;
|
|
83
|
-
- the **Verification commands** from the constitution to run
|
|
87
|
+
- the **Verification commands** from the constitution to run, and the **gate scope**
|
|
88
|
+
for this task — `full` or `scoped` (decide it as below; you have the run context,
|
|
89
|
+
the reviewer does not);
|
|
84
90
|
- **if the task has a `design:` field** — the same `D<n>` entry and `export:` path
|
|
85
91
|
you gave the executor, so it grades against the contract rather than its taste.
|
|
86
92
|
|
|
87
|
-
|
|
93
|
+
**Gate scope.** A clean `install → build` proves the same thing on task 7 that it proved
|
|
94
|
+
on task 1 unless a task changed what it installs or builds, so running it every time buys
|
|
95
|
+
little and costs the most wall-clock in the loop. Name the scope in the brief:
|
|
96
|
+
|
|
97
|
+
- **`full`** — the whole gate from a clean state (install → lint → test → build → run).
|
|
98
|
+
Use it on: the **first** task of this run; any task whose `CHANGES` touch dependency or
|
|
99
|
+
build configuration (`package.json`/lockfiles, `pyproject.toml`, `go.mod`, `Cargo.toml`,
|
|
100
|
+
`Dockerfile`, CI config, build scripts); any task carrying `design:`; and the **last**
|
|
101
|
+
task in `tasks.md`.
|
|
102
|
+
- **`scoped`** — otherwise. `lint:` + `test:` plus the acceptance exercised end-to-end,
|
|
103
|
+
black-box, exactly as on a full gate. The acceptance exercise is never scoped away; it
|
|
104
|
+
is the whole reason the reviewer exists.
|
|
105
|
+
|
|
106
|
+
The reviewer may **escalate** `scoped` to `full` on its own and will say so — that
|
|
107
|
+
direction is always safe. It may never go the other way.
|
|
108
|
+
|
|
109
|
+
It runs the gate at the scope you named, checks the code against the constitution's
|
|
88
110
|
**Definition of Done** and **invariants**, confirms the **acceptance** actually
|
|
89
111
|
holds (exercised, not inferred), and returns `VERDICT: PASS | FAIL` + findings.
|
|
90
112
|
On a `design:` task it also runs the constitution's `visual:` command, measures the
|
|
@@ -94,11 +116,15 @@ numbers can't reach, like an element that measures perfectly and shows up invisi
|
|
|
94
116
|
It fails on what it measured or saw, and merely flags what is taste.
|
|
95
117
|
|
|
96
118
|
> Why independent: unit-green ≠ working, and the author is the worst judge of its
|
|
97
|
-
> own blind spots. The reviewer
|
|
98
|
-
> safeguard that keeps scope and quality honest without an
|
|
119
|
+
> own blind spots. The reviewer exercising the acceptance black-box — on every task,
|
|
120
|
+
> at either scope — is the safeguard that keeps scope and quality honest without an
|
|
121
|
+
> ownership contract.
|
|
99
122
|
|
|
100
123
|
### 4. CONVERGE (on FAIL)
|
|
101
|
-
Re-dispatch the **executor** with the reviewer's findings appended to its brief
|
|
124
|
+
Re-dispatch the **executor** with the reviewer's findings appended to its brief, then
|
|
125
|
+
review again — recomputing the **gate scope** from the fix's `CHANGES`, and using `full`
|
|
126
|
+
if the failure was in the gate itself or the reviewer escalated last time. A task that
|
|
127
|
+
already failed once has earned the wider check.
|
|
102
128
|
Bound this to **2 fix attempts**. If it still fails after that, stop and **halt
|
|
103
129
|
`exhausted`** (see **Halting** below) — don't keep grinding or hand-fix past the loop
|
|
104
130
|
silently. `exhausted` is recorded as a blocker, because a task that three attempts
|
|
@@ -274,6 +300,12 @@ When every task in `tasks.md` is `[x]`:
|
|
|
274
300
|
setup — install/build, not a test-runner shortcut). There is no separate
|
|
275
301
|
verify skill — this final smoke confirms the requirements actually work end-to-end, not
|
|
276
302
|
just that tasks are ticked.
|
|
303
|
+
|
|
304
|
+
**This is the authoritative clean-state run for the whole build**, and it is never
|
|
305
|
+
scoped or skipped. Per-task gates run at the scope step 3 named; this one always runs
|
|
306
|
+
everything from clean. A build or install regression that a `scoped` task gate did not
|
|
307
|
+
re-prove surfaces here — which is why a red final smoke is a gap to fix or route
|
|
308
|
+
upstream, never a pass and never `done`.
|
|
277
309
|
2. **Report** — the terminal state by name (`done` here, since every task is `[x]`
|
|
278
310
|
and the smoke passed), what was built, the commits made (with the branch), and any
|
|
279
311
|
open `decisions.md` items (blockers, tasks unchecked by a reconcile). If the final
|
|
@@ -138,25 +138,59 @@ past it into a task list — say what's unresolved and route back to `tiny-spec-
|
|
|
138
138
|
## Step 3 — slice the approach into tasks
|
|
139
139
|
|
|
140
140
|
Walk the `## Approach` you just wrote and break it into tasks. No waves, no
|
|
141
|
-
parallelism, no `owns:` contracts — tasks run one at a time, top to bottom.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
parallelism, no `owns:` contracts — tasks run one at a time, top to bottom.
|
|
142
|
+
|
|
143
|
+
**The unit is one coherent commit** — what a competent engineer does in one focused
|
|
144
|
+
sitting and commits as a single unit of work. That typically touches several files and
|
|
145
|
+
often satisfies several `REQ-N` at once. It is the size you would open as one reviewable
|
|
146
|
+
change, not the smallest thing you could name.
|
|
147
|
+
|
|
148
|
+
**Know what a task costs, so size has something to trade against.** Every task you write
|
|
149
|
+
spends two cold-start agents that must re-orient in the codebase from scratch, a reviewer
|
|
150
|
+
that runs the gate and exercises the acceptance end-to-end, and two commits. That
|
|
151
|
+
overhead is **fixed** — it does not shrink for a small task. A task the executor
|
|
152
|
+
finishes in thirty seconds still pays all of it. Size each task so the work inside it
|
|
153
|
+
clearly outweighs the machinery around it.
|
|
154
|
+
|
|
155
|
+
So:
|
|
156
|
+
|
|
157
|
+
- **Split on independent failure, not on sentence length.** Split a task when it carries
|
|
158
|
+
two **unrelated** observable outcomes that could fail independently of each other. Do
|
|
159
|
+
**not** split because the acceptance got long — a good acceptance is usually several
|
|
160
|
+
clauses covering the happy path *and* its negatives. See `T4` in the `examples/todo-cli`
|
|
161
|
+
task list: two CLI commands, four requirements, and three negative cases, in one task,
|
|
162
|
+
with one acceptance. That is the calibration point, not the exception.
|
|
163
|
+
- **One task may satisfy several `REQ-N`** — `req:` takes a list. Coverage means every
|
|
164
|
+
requirement has a *home*, not that every requirement gets its *own* task. **A 1:1
|
|
165
|
+
REQ→task mapping is the single most common way this list comes out too granular.**
|
|
166
|
+
Group the requirements that one coherent change delivers together.
|
|
146
167
|
- **Ordered so each builds on the last.** Tasks run sequentially, so a later task may
|
|
147
168
|
freely assume an earlier task's code already exists. Put foundational work (types,
|
|
148
169
|
schema, scaffolding) first. Order by dependency, not by guesswork.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
170
|
+
|
|
171
|
+
**Smells that mean you sliced below the commit line** — fold each of these back into the
|
|
172
|
+
task it belongs to:
|
|
173
|
+
|
|
174
|
+
- a task that only defines types, interfaces, or schema with no behavior behind them;
|
|
175
|
+
- a task that only adds tests for the task before it (the constitution's **Definition of
|
|
176
|
+
Done** already requires the tests to ship with the code);
|
|
177
|
+
- one task per file, or one task per function;
|
|
178
|
+
- a "wire it up" / "integrate the pieces" task trailing the pieces it wires.
|
|
179
|
+
|
|
180
|
+
**Count is a smell, not a cap.** A story sized the way `tiny-spec-scope` describes
|
|
181
|
+
usually lands in **3–6 tasks**. If you are past about eight, re-read the list: you have
|
|
182
|
+
either sliced below the commit line, or the story itself was too big and should have been
|
|
183
|
+
split upstream. Check the list against that; do **not** enforce a number, and never drop
|
|
184
|
+
or merge coverage just to hit one.
|
|
152
185
|
|
|
153
186
|
For each task, write:
|
|
154
187
|
|
|
155
188
|
```
|
|
156
189
|
- [ ] T<n> — <imperative description>
|
|
157
|
-
- acceptance: <one user-observable outcome that proves it's done
|
|
190
|
+
- acceptance: <one user-observable outcome that proves it's done — happy path and the
|
|
191
|
+
negatives that bound it, in one entry>
|
|
158
192
|
- type: feat # optional; Conventional Commit type (defaults to feat)
|
|
159
|
-
- req: REQ-n
|
|
193
|
+
- req: REQ-n, REQ-n # optional; the REQ-N this task delivers — a list, not one
|
|
160
194
|
- design: D-n # optional; the SPEC.md D<n> screen this task builds — arms the visual gate
|
|
161
195
|
- pause: <why> # optional; halt the build before this task so a human looks first
|
|
162
196
|
- files: <comma-separated hint of files it will touch>
|
|
@@ -164,7 +198,11 @@ For each task, write:
|
|
|
164
198
|
|
|
165
199
|
The **acceptance** is what the reviewer checks against — make it observable
|
|
166
200
|
("`spec --version` prints the version and exits 0"), not internal ("version logic
|
|
167
|
-
added"). **
|
|
201
|
+
added"). It states **one outcome**, but one outcome is not one clause: spell out the
|
|
202
|
+
happy path and the negatives that bound it in the same acceptance, separated by
|
|
203
|
+
semicolons. A long acceptance is a well-specified task, not an oversized one — it is the
|
|
204
|
+
*number of unrelated things that could fail* that decides whether to split, not the
|
|
205
|
+
length of the line. **type** picks the Conventional Commit type `tiny-spec-build` uses for this
|
|
168
206
|
task's code commit (`feat | fix | docs | refactor | test | chore | build | ci | perf | style`);
|
|
169
207
|
set it when the task is clearly not a feature, otherwise omit and it defaults to `feat`.
|
|
170
208
|
**req** ties the task to the requirement it satisfies (traceability). The **files** line
|
|
@@ -211,7 +249,9 @@ anyway. A policy that matches nothing here is not an error — say so and move o
|
|
|
211
249
|
than stretching a task to fit it.
|
|
212
250
|
|
|
213
251
|
Cover **every** part of the approach — together the tasks must deliver all `REQ-N`.
|
|
214
|
-
Don't leave a requirement with no task.
|
|
252
|
+
Don't leave a requirement with no task. Coverage is about requirements having a home,
|
|
253
|
+
not about the shape of the mapping: several `REQ-N` on one task is the normal case, and
|
|
254
|
+
a task per requirement is the anti-pattern. Likewise, if `SPEC.md` has a `## Design`
|
|
215
255
|
section, every `D<n>` in it needs at least one task carrying that `design:` reference —
|
|
216
256
|
a screen nobody is graded against is a screen that will be built wrong.
|
|
217
257
|
|
|
@@ -236,25 +276,31 @@ updated: <ISO date>
|
|
|
236
276
|
|
|
237
277
|
## Tasks
|
|
238
278
|
|
|
239
|
-
- [ ] T1 — <one
|
|
240
|
-
- acceptance: <
|
|
279
|
+
- [ ] T1 — <one coherent commit's worth of foundational work; usually several files>
|
|
280
|
+
- acceptance: <the observable outcome; happy path; and the negative case that bounds it>
|
|
241
281
|
- type: feat # optional; Conventional Commit type for this task's commit (defaults to feat)
|
|
242
|
-
- req: REQ-1
|
|
243
|
-
- files: <path, path>
|
|
282
|
+
- req: REQ-1, REQ-2 # optional; the REQ-N this task delivers — several is normal
|
|
283
|
+
- files: <path, path, path>
|
|
244
284
|
|
|
245
|
-
- [ ] T2 — <next
|
|
246
|
-
- acceptance: <observable outcome>
|
|
285
|
+
- [ ] T2 — <next coherent change; assume T1's code exists>
|
|
286
|
+
- acceptance: <observable outcome; plus what it rejects and how it fails>
|
|
247
287
|
- type: feat
|
|
248
|
-
- req: REQ-
|
|
288
|
+
- req: REQ-3, REQ-4, REQ-5
|
|
249
289
|
- design: D1 # optional; only on tasks that build the visible surface
|
|
250
290
|
- files: <path, path>
|
|
251
291
|
|
|
252
292
|
- [ ] T3 — <…>
|
|
253
293
|
- acceptance: <observable outcome>
|
|
294
|
+
- req: REQ-6
|
|
254
295
|
- pause: <optional; what to check before this runs — irreversible work only>
|
|
255
296
|
- files: <path, path>
|
|
256
297
|
```
|
|
257
298
|
|
|
299
|
+
The `req:` lists above are the shape to aim for, not filler: a handful of tasks each
|
|
300
|
+
carrying the requirements one coherent change delivers. A skeleton filled in as
|
|
301
|
+
`REQ-1`, `REQ-2`, `REQ-3` down a column of single-requirement tasks is the granularity
|
|
302
|
+
failure described in Step 3.
|
|
303
|
+
|
|
258
304
|
## Update mode (SPEC changed → PLAN and tasks are stale)
|
|
259
305
|
|
|
260
306
|
When `PLAN.md` or `tasks.md` is `status: stale`, reconcile **both in one pass** — they
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|