@eeshaai/code 1.0.0 → 1.0.1
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/LICENSE.md +3 -3
- package/README.md +335 -322
- package/dist/cli.js +4 -4
- package/dist/resources/styles/custom/instructions/design.md +283 -283
- package/dist/resources/styles/custom/instructions/requirements.md +161 -161
- package/dist/resources/styles/custom/instructions/tasks-implement.md +90 -90
- package/dist/resources/styles/custom/instructions/tasks.md +159 -159
- package/dist/resources/styles/custom/process.md +49 -49
- package/dist/resources/styles/custom/prompts/first.md +29 -29
- package/dist/resources/styles/custom/prompts/implement.md +27 -27
- package/dist/resources/styles/custom/prompts/rewrite-note.md +40 -40
- package/dist/resources/styles/custom/prompts/rewrite.md +32 -32
- package/dist/resources/styles/custom/style.yml +46 -46
- package/dist/resources/styles/grammar.md +727 -731
- package/dist/resources/styles/kiro/style.yml +63 -0
- package/dist/resources/styles/speckit/style.yml +59 -0
- package/dist/server.js +473 -477
- package/dist/web/chunks/{abnfDiagram-VCTEODGH-6KC3BO47.js → abnfDiagram-VCTEODGH-P6AZFXJU.js} +2 -2
- package/dist/web/chunks/architecture-7GRP2DOG-K6PMPK7N.js +2 -0
- package/dist/web/chunks/{architectureDiagram-5GKGNRK7-QKPCVOD2.js → architectureDiagram-5GKGNRK7-JB5DD7KL.js} +2 -2
- package/dist/web/chunks/{blockDiagram-I7D4REHJ-4XZWNXLB.js → blockDiagram-I7D4REHJ-ARCDWS5D.js} +2 -2
- package/dist/web/chunks/{c4Diagram-7LVT6UL2-4HJHKNE3.js → c4Diagram-7LVT6UL2-57CIXPJZ.js} +2 -2
- package/dist/web/chunks/{chunk-GQPX4EIC.js → chunk-3EZ2OKHV.js} +2 -2
- package/dist/web/chunks/{chunk-37NHO5VO.js → chunk-4KJ2U3VQ.js} +2 -2
- package/dist/web/chunks/{chunk-OXLTOJNY.js → chunk-4ZUFUR3U.js} +2 -2
- package/dist/web/chunks/{chunk-46RPN6IE.js → chunk-63W35XXT.js} +2 -2
- package/dist/web/chunks/{chunk-LSVIQRSY.js → chunk-6YVFH4BZ.js} +2 -2
- package/dist/web/chunks/{chunk-6VRLULJH.js → chunk-7PUK2GON.js} +2 -2
- package/dist/web/chunks/{chunk-TPXX77KB.js → chunk-7Q4TXKAS.js} +2 -2
- package/dist/web/chunks/{chunk-4S2DRQJ6.js → chunk-7QRY2XB7.js} +2 -2
- package/dist/web/chunks/{chunk-2DLEMZHM.js → chunk-CA2KMNVI.js} +2 -2
- package/dist/web/chunks/{chunk-LHNPPNB7.js → chunk-CFMSYLIK.js} +2 -2
- package/dist/web/chunks/{chunk-4TORDSRR.js → chunk-CKJRXIX7.js} +2 -2
- package/dist/web/chunks/{chunk-L34PKG4P.js → chunk-CXXG5KL5.js} +2 -2
- package/dist/web/chunks/chunk-EFBAEJZJ.js +2 -0
- package/dist/web/chunks/{chunk-LQ6CTWX6.js → chunk-FKTXB6RJ.js} +2 -2
- package/dist/web/chunks/{chunk-TXNHMPKM.js → chunk-FU7R4QOG.js} +2 -2
- package/dist/web/chunks/{chunk-DIRT34TZ.js → chunk-GEV6X2TZ.js} +2 -2
- package/dist/web/chunks/{chunk-II6WN3ZG.js → chunk-GPW7TXQS.js} +2 -2
- package/dist/web/chunks/{chunk-5KNOHX5X.js → chunk-I6RMTJPN.js} +2 -2
- package/dist/web/chunks/{chunk-6TGTE6CF.js → chunk-IKC3ZQV7.js} +2 -2
- package/dist/web/chunks/{chunk-LDXBIOBF.js → chunk-ITN3D7RJ.js} +2 -2
- package/dist/web/chunks/{chunk-OODDZ447.js → chunk-J6N7AUC2.js} +2 -2
- package/dist/web/chunks/{chunk-FGASMJTA.js → chunk-J7VDGOTK.js} +2 -2
- package/dist/web/chunks/chunk-KVRWT2YT.js +2 -0
- package/dist/web/chunks/{chunk-6URXM4C4.js → chunk-NBC6B3KN.js} +2 -2
- package/dist/web/chunks/{chunk-HBEUVMXY.js → chunk-NLHJT4GD.js} +2 -2
- package/dist/web/chunks/{chunk-HNYXDXPN.js → chunk-NOVL2262.js} +2 -2
- package/dist/web/chunks/{chunk-FPLIRG3U.js → chunk-NQ2XP5EN.js} +2 -2
- package/dist/web/chunks/chunk-P44J6WNO.js +2 -0
- package/dist/web/chunks/{chunk-6KSWTVXD.js → chunk-QBOSTM7Q.js} +2 -2
- package/dist/web/chunks/{chunk-HAKJ3AUV.js → chunk-QKU4ZFG5.js} +2 -2
- package/dist/web/chunks/{chunk-T4HEWXAQ.js → chunk-RINQGKTH.js} +2 -2
- package/dist/web/chunks/{chunk-TPYBIPJG.js → chunk-RK4EOCHJ.js} +2 -2
- package/dist/web/chunks/{chunk-YM7LHP34.js → chunk-S4X6ERXI.js} +2 -2
- package/dist/web/chunks/{chunk-VY4GEFSG.js → chunk-SE57RN36.js} +2 -2
- package/dist/web/chunks/{chunk-6FQEBIA3.js → chunk-SGL7WI35.js} +3 -3
- package/dist/web/chunks/chunk-SOAWGUAD.js +2 -0
- package/dist/web/chunks/{chunk-7XAOOQR4.js → chunk-U6ILIHMR.js} +2 -2
- package/dist/web/chunks/{chunk-M3SWKTLZ.js → chunk-USZ3ZJYA.js} +2 -2
- package/dist/web/chunks/{chunk-MBZYSJFT.js → chunk-UU7BHEBD.js} +2 -2
- package/dist/web/chunks/{chunk-QNEZP2TE.js → chunk-WL4ZMLPV.js} +2 -2
- package/dist/web/chunks/{chunk-MZEMPN3C.js → chunk-XE4RLI22.js} +2 -2
- package/dist/web/chunks/{chunk-VAKN3BTM.js → chunk-XJ6FSQEO.js} +2 -2
- package/dist/web/chunks/{chunk-XBYCKXUJ.js → chunk-XM7VXEGI.js} +2 -2
- package/dist/web/chunks/{chunk-2RFQIKC6.js → chunk-XO4SHRSO.js} +2 -2
- package/dist/web/chunks/{chunk-BUZPUGIT.js → chunk-XOZZFIHV.js} +2 -2
- package/dist/web/chunks/{chunk-FNIFXWXL.js → chunk-YYJ5VFH5.js} +2 -2
- package/dist/web/chunks/{chunk-JOSXY3EP.js → chunk-ZX45GMMJ.js} +2 -2
- package/dist/web/chunks/{chunk-4IPDIKAU.js → chunk-ZXMMITLE.js} +2 -2
- package/dist/web/chunks/classDiagram-ZZMXUADV-ALD5ECFE.js +2 -0
- package/dist/web/chunks/classDiagram-v2-VYDZK3BY-IMIEVQNX.js +2 -0
- package/dist/web/chunks/{cose-bilkent-JH36ORCC-ZPRW5JRW.js → cose-bilkent-JH36ORCC-YVEPG7XZ.js} +2 -2
- package/dist/web/chunks/cynefin-OW5HDTMX-5G3MG4ZJ.js +2 -0
- package/dist/web/chunks/{cynefinDiagram-5FMLGOSQ-O7GURHJG.js → cynefinDiagram-5FMLGOSQ-A3E3NM6X.js} +2 -2
- package/dist/web/chunks/{dagre-GXQ25YYZ-WK67O4N6.js → dagre-GXQ25YYZ-WKL3XLC6.js} +2 -2
- package/dist/web/chunks/{diagram-S7CK7UJ4-2CEO2EN2.js → diagram-S7CK7UJ4-AENTNBTM.js} +2 -2
- package/dist/web/chunks/{diagram-UQ7AKVKN-2Z4VHGF3.js → diagram-UQ7AKVKN-BN6IVDBP.js} +2 -2
- package/dist/web/chunks/{diagram-VSXAHHWV-AN4BOWYB.js → diagram-VSXAHHWV-X7IW7FU6.js} +2 -2
- package/dist/web/chunks/{diagram-VX7I27RA-VEZ2GXCM.js → diagram-VX7I27RA-4V6RQ6IS.js} +2 -2
- package/dist/web/chunks/{diagram-Z3DM3KII-TGGNDSLW.js → diagram-Z3DM3KII-ODYVRYAT.js} +2 -2
- package/dist/web/chunks/{ebnfDiagram-PWID7BFC-7RM57IJV.js → ebnfDiagram-PWID7BFC-2KD46JNN.js} +2 -2
- package/dist/web/chunks/{erDiagram-RLTQ6QDP-LCATC3YT.js → erDiagram-RLTQ6QDP-6MYZ2NRT.js} +2 -2
- package/dist/web/chunks/eventmodeling-NTZA5JFV-QZXC5VKS.js +2 -0
- package/dist/web/chunks/flowDiagram-HODETNUW-BILJ37ZX.js +2 -0
- package/dist/web/chunks/{ganttDiagram-EL5Y4UJY-5VPBBF2V.js → ganttDiagram-EL5Y4UJY-LVA23DND.js} +2 -2
- package/dist/web/chunks/gitGraph-4MIJSDKK-H43S2MKN.js +2 -0
- package/dist/web/chunks/{gitGraphDiagram-WWUBYQGX-HZMAGPIJ.js → gitGraphDiagram-WWUBYQGX-JRB4SUZI.js} +2 -2
- package/dist/web/chunks/info-A6RAGUB7-DKS7Q63Q.js +2 -0
- package/dist/web/chunks/infoDiagram-27XIBGKW-JLOVILVF.js +3 -0
- package/dist/web/chunks/{ishikawaDiagram-5VMMS53U-A54WWBPX.js → ishikawaDiagram-5VMMS53U-SUA2YN5D.js} +2 -2
- package/dist/web/chunks/{journeyDiagram-3NMN7TZE-XRCTMTR7.js → journeyDiagram-3NMN7TZE-ORMC2WB2.js} +2 -2
- package/dist/web/chunks/{kanban-definition-UXKFOSKX-UW2PQXZF.js → kanban-definition-UXKFOSKX-TPRG3VMF.js} +2 -2
- package/dist/web/chunks/{katex-B7HWCVTN.js → katex-DLHJF5VS.js} +2 -2
- package/dist/web/chunks/{mermaid.core-VL5SQK5M.js → mermaid.core-ZM3JSPVU.js} +3 -3
- package/dist/web/chunks/{mindmap-definition-YA3MSWOX-2H2Z6CVN.js → mindmap-definition-YA3MSWOX-BLW6WWFS.js} +2 -2
- package/dist/web/chunks/packet-AYTQ26CC-FIXQVEDM.js +2 -0
- package/dist/web/chunks/{pegDiagram-XKGWAZYB-KC4BYUN7.js → pegDiagram-XKGWAZYB-BYMP3YHY.js} +2 -2
- package/dist/web/chunks/pie-WAS4IAKB-R4EUNVPB.js +2 -0
- package/dist/web/chunks/{pieDiagram-E7YTZNPT-54T6XSU5.js → pieDiagram-E7YTZNPT-XOJE3H3L.js} +2 -2
- package/dist/web/chunks/{quadrantDiagram-AXDQQJYC-3G3RXSTE.js → quadrantDiagram-AXDQQJYC-23VSADTC.js} +2 -2
- package/dist/web/chunks/radar-RG4KPBEZ-O6Y2TENX.js +2 -0
- package/dist/web/chunks/railroad-74A4TZTK-PHWZ7KVH.js +2 -0
- package/dist/web/chunks/railroad-abnf-HS5TGJTU-DZ4OSJAN.js +2 -0
- package/dist/web/chunks/railroad-ebnf-LZEXJU2U-GYBLRQUL.js +2 -0
- package/dist/web/chunks/railroad-peg-WCYAUIDC-ZK4ZOBSX.js +2 -0
- package/dist/web/chunks/{railroadDiagram-O6MQD6OU-3LHKFF5N.js → railroadDiagram-O6MQD6OU-Z5IEAZJK.js} +2 -2
- package/dist/web/chunks/{requirementDiagram-BXWQKSXE-M4LF54YT.js → requirementDiagram-BXWQKSXE-MNP4O73E.js} +2 -2
- package/dist/web/chunks/{sankeyDiagram-P5KCCOFB-USCKKKNT.js → sankeyDiagram-P5KCCOFB-PADI35QR.js} +2 -2
- package/dist/web/chunks/{sequenceDiagram-WJ2MYXX4-QZ2O4KWV.js → sequenceDiagram-WJ2MYXX4-FGWOVXU4.js} +2 -2
- package/dist/web/chunks/{sizeCapture-INFHLROL-DZI5JWEV.js → sizeCapture-INFHLROL-Y6H3VQLE.js} +2 -2
- package/dist/web/chunks/{stateDiagram-D77RDMKH-EQJNTBF3.js → stateDiagram-D77RDMKH-7PRO4WYR.js} +2 -2
- package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-2Y6SWEJW.js +2 -0
- package/dist/web/chunks/{swimlanes-42K2YHIH-H7SZ2HG6.js → swimlanes-42K2YHIH-DXVTFB6Q.js} +2 -2
- package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-U2LP4OEE.js +9 -0
- package/dist/web/chunks/{timeline-definition-24CTP7MA-4Q2ARIQ6.js → timeline-definition-24CTP7MA-7ZIALE6C.js} +2 -2
- package/dist/web/chunks/treeView-Q6P3EWNA-VSJ7TJ36.js +2 -0
- package/dist/web/chunks/treemap-WGGIJYW6-JZWFGRKS.js +2 -0
- package/dist/web/chunks/{vennDiagram-4TSXK5OY-WMJVK74C.js → vennDiagram-4TSXK5OY-IPXNDYWM.js} +2 -2
- package/dist/web/chunks/wardley-WFR3VGLG-PAUUFL5N.js +2 -0
- package/dist/web/chunks/{wardleyDiagram-VM6X3IG4-CLB324RQ.js → wardleyDiagram-VM6X3IG4-4Z2U2NNR.js} +2 -2
- package/dist/web/chunks/{xychartDiagram-S5SC5T6Z-G5C2R7C2.js → xychartDiagram-S5SC5T6Z-NAEIWN4K.js} +2 -2
- package/dist/web/page.css +1 -1
- package/dist/web/page.js +155 -123
- package/package.json +3 -1
- package/dist/web/chunks/architecture-7GRP2DOG-JLXNDD4H.js +0 -2
- package/dist/web/chunks/chunk-4KP3BIPB.js +0 -2
- package/dist/web/chunks/chunk-HX7W7GSO.js +0 -2
- package/dist/web/chunks/chunk-PR453BYT.js +0 -2
- package/dist/web/chunks/chunk-R7TFKRNM.js +0 -2
- package/dist/web/chunks/classDiagram-ZZMXUADV-4J5HHZD6.js +0 -2
- package/dist/web/chunks/classDiagram-v2-VYDZK3BY-X6WY2DAS.js +0 -2
- package/dist/web/chunks/cynefin-OW5HDTMX-SVVTQRRB.js +0 -2
- package/dist/web/chunks/eventmodeling-NTZA5JFV-2SR57JAH.js +0 -2
- package/dist/web/chunks/flowDiagram-HODETNUW-HU6Y2EYQ.js +0 -2
- package/dist/web/chunks/gitGraph-4MIJSDKK-25JPIQP7.js +0 -2
- package/dist/web/chunks/info-A6RAGUB7-72MROTVX.js +0 -2
- package/dist/web/chunks/infoDiagram-27XIBGKW-BQYTPGNG.js +0 -3
- package/dist/web/chunks/packet-AYTQ26CC-NEGDW4B6.js +0 -2
- package/dist/web/chunks/pie-WAS4IAKB-OT3EMGHT.js +0 -2
- package/dist/web/chunks/radar-RG4KPBEZ-DCHU5FOQ.js +0 -2
- package/dist/web/chunks/railroad-74A4TZTK-RZX6D7H6.js +0 -2
- package/dist/web/chunks/railroad-abnf-HS5TGJTU-STTFN7R4.js +0 -2
- package/dist/web/chunks/railroad-ebnf-LZEXJU2U-RBXU3IBK.js +0 -2
- package/dist/web/chunks/railroad-peg-WCYAUIDC-OD5BXOH6.js +0 -2
- package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-WSCDKLG6.js +0 -2
- package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-DFYTBPVS.js +0 -9
- package/dist/web/chunks/treeView-Q6P3EWNA-ADCP6RPT.js +0 -2
- package/dist/web/chunks/treemap-WGGIJYW6-NEV7DUDY.js +0 -2
- package/dist/web/chunks/wardley-WFR3VGLG-4QZOFDI5.js +0 -2
|
@@ -1,159 +1,159 @@
|
|
|
1
|
-
# Implementation Plan: <Feature Name>
|
|
2
|
-
|
|
3
|
-
## How to cut tasks
|
|
4
|
-
|
|
5
|
-
Applied when writing this file; never copied into the generated
|
|
6
|
-
document.
|
|
7
|
-
|
|
8
|
-
Tasks implement the approved requirements, in requirement order,
|
|
9
|
-
using the design's decisions. Nothing is decided here: a task that needs a
|
|
10
|
-
decision the design doesn't carry is a design gap - raise it, never
|
|
11
|
-
invent it. When the spec has no `design.md` (a bug fix), derive the
|
|
12
|
-
breakdown from the requirements alone and cite only those.
|
|
13
|
-
|
|
14
|
-
Only work that satisfies a requirement belongs in the plan - no
|
|
15
|
-
"nice to have" tasks nobody asked for. Only coding work belongs in the
|
|
16
|
-
plan: every task must be completable by writing, changing or testing
|
|
17
|
-
code, or by opening a pull request. User acceptance testing, gathering
|
|
18
|
-
feedback, deploying to an environment, collecting metrics, walking the
|
|
19
|
-
application by hand, training, user documentation and business process
|
|
20
|
-
changes are not tasks, however much the feature needs them - a plan that
|
|
21
|
-
carries one has a checkbox no agent can ever tick, and the ticked
|
|
22
|
-
checkbox is the only completion signal this pipeline has. Work that is
|
|
23
|
-
genuinely skippable is marked optional (`- [ ]* N.M`) and `## Notes`
|
|
24
|
-
says what skipping it costs.
|
|
25
|
-
|
|
26
|
-
Every task leaves the system runnable and testable: the build compiles,
|
|
27
|
-
every existing test still passes, and the behavior the task adds is
|
|
28
|
-
exercised by a test in the same task - tests travel with the code they
|
|
29
|
-
verify, never in a later task. Work in vertical increments behind the
|
|
30
|
-
flag: at any stopping point between tasks, flag-off behavior is exactly
|
|
31
|
-
today's, and a half-wired path is unreachable rather than broken. A
|
|
32
|
-
task that changes a contract updates every caller of that contract in
|
|
33
|
-
the same task.
|
|
34
|
-
|
|
35
|
-
A task is one sitting of work with one concern - a task that cannot
|
|
36
|
-
end green in one sitting is split before this file is signed,
|
|
37
|
-
scaffolding and test-infrastructure work included. Its detail lines
|
|
38
|
-
locate work by code anchor - repo, path from that repo's root, and the
|
|
39
|
-
symbol, key, or string inside the file - never by line number: position
|
|
40
|
-
rots between writing and execution, names survive edits, and an anchor
|
|
41
|
-
that no longer exists at execution time is a staleness signal to
|
|
42
|
-
re-check the design, never a licence to guess. A codebase fact a task
|
|
43
|
-
relies on - a cache, a constraint, an existing converter - cites the
|
|
44
|
-
design decision, or the `code-findings.md` line, that established it;
|
|
45
|
-
folklore doesn't ship. A task that says *every*, *all*, or *each* of a set of call
|
|
46
|
-
sites, endpoints, keys, or strings names the set in full and states how
|
|
47
|
-
many there are; the set comes from a search run while writing the task,
|
|
48
|
-
never from recall and never from a prose summary in an earlier document
|
|
49
|
-
- a summary naming three of something is a claim to re-run, not a list
|
|
50
|
-
to copy. A question
|
|
51
|
-
answered or an assumption made while cutting tasks is recorded in this
|
|
52
|
-
document, in the grammar's question and assumption sections - the
|
|
53
|
-
conversation does not survive, the document must; assumptions already
|
|
54
|
-
recorded in earlier documents are read from there, never restated
|
|
55
|
-
here. The second to last
|
|
56
|
-
detail line is `Files:` - the paths the task creates or edits, from the
|
|
57
|
-
design and from reading the code, written down rather than worked out
|
|
58
|
-
in your head, because the wave graph is built from it and the engine
|
|
59
|
-
reads it before letting two tasks run at once. A task no agent should
|
|
60
|
-
do - update an environment, create a branch, get a review - carries a
|
|
61
|
-
`Run:` detail line after `Files:` saying who does it instead: `by hand`,
|
|
62
|
-
one command in backticks, or a workflow's name with its params; the
|
|
63
|
-
grammar has the exact shapes, and a task that changes code never has
|
|
64
|
-
one. The last detail
|
|
65
|
-
line cites the criteria the task implements and the design ids it
|
|
66
|
-
follows. A group is one requirement, in the requirements' order.
|
|
67
|
-
|
|
68
|
-
On a revise, work already done that is no longer wanted gets a
|
|
69
|
-
compensating task - if 3.1 added `ISomething` and it is no longer
|
|
70
|
-
required, the task is "Remove `ISomething` and its implementations".
|
|
71
|
-
Never assume version control will revert anything.
|
|
72
|
-
|
|
73
|
-
Three closing groups follow the requirement groups, in this order. Verification
|
|
74
|
-
runs lint, build, and the test suites per repo and records real
|
|
75
|
-
outcomes; every suite it names is read from that repo's own solution or
|
|
76
|
-
project files rather than recalled, because a verification step that
|
|
77
|
-
names a project which does not exist fails on the first run; anything
|
|
78
|
-
unrunnable in the current environment is flagged for CI by name, never
|
|
79
|
-
assumed green. Documentation updates what this feature
|
|
80
|
-
actually changed and nothing else - a repo with nothing to update
|
|
81
|
-
records the reason, and a steering or team-doc addition is proposed with
|
|
82
|
-
its target file confirmed by a human before anything is written. Pull
|
|
83
|
-
requests open one per repo touched, each carrying the verification
|
|
84
|
-
outcomes recorded above, the flag key and its rollback, and anything
|
|
85
|
-
still blocked - opened for review, never merged. Rollout order is
|
|
86
|
-
expressed inside a group's task ordering and the wave graph, never by
|
|
87
|
-
reordering groups - the deploy sequence itself lives in design's
|
|
88
|
-
Cross-Boundary Contracts.
|
|
89
|
-
|
|
90
|
-
Where two parts of the work truly do not need each other - a backend
|
|
91
|
-
change and a UI change that meet only at the end, say - give their
|
|
92
|
-
waves an `after` list so they become two branches that two developers
|
|
93
|
-
can start at the same time, and let the wave that joins them wait for
|
|
94
|
-
both. The grammar has the shape. Where you are not sure, leave `after`
|
|
95
|
-
out: one wave after another is always safe.
|
|
96
|
-
|
|
97
|
-
**Before you stop, call the `check_plan` tool.** It reads the file you
|
|
98
|
-
wrote the way the implement phase will and lists every problem by
|
|
99
|
-
line - a row it cannot read, a task in no wave, two tasks of one wave
|
|
100
|
-
on the same file. Fix each one in the file and call it again, until it
|
|
101
|
-
reports no problems. A problem left in the plan is a task nobody will
|
|
102
|
-
run.
|
|
103
|
-
|
|
104
|
-
## Shape
|
|
105
|
-
|
|
106
|
-
One group per requirement, hierarchical dialect, `## Task Dependency Graph`
|
|
107
|
-
at the end - the grammar file owns all three shapes. The generated
|
|
108
|
-
document carries the headings below, in this order.
|
|
109
|
-
|
|
110
|
-
## Overview
|
|
111
|
-
|
|
112
|
-
<two or three sentences: the order the work is built in and why that
|
|
113
|
-
order, and anything a reader needs before the first task>
|
|
114
|
-
|
|
115
|
-
## Tasks
|
|
116
|
-
|
|
117
|
-
- [ ] 1. <Requirement 1 title>
|
|
118
|
-
- [ ] 1.1 <task - one concern, ends green>
|
|
119
|
-
- <implementation detail, located by code anchor>
|
|
120
|
-
- [Design : Dec-1](design.md)
|
|
121
|
-
- Files: `<repo-relative path>`, `<repo-relative path>`
|
|
122
|
-
- _Requirements: 1.1, 1.2_
|
|
123
|
-
- [ ] 1.2 <task>
|
|
124
|
-
- <implementation detail, located by code anchor>
|
|
125
|
-
- Files: `<repo-relative path>`
|
|
126
|
-
- _Requirements: 1.5_
|
|
127
|
-
|
|
128
|
-
- [ ] 2. <Requirement 2 title>
|
|
129
|
-
- [ ] 2.1 <task>
|
|
130
|
-
- <implementation detail, located by code anchor>
|
|
131
|
-
- [Design : Dec-6](design.md)
|
|
132
|
-
- Files: `<repo-relative path>`
|
|
133
|
-
- _Requirements: 3.1_
|
|
134
|
-
|
|
135
|
-
- [ ] 3. Verification
|
|
136
|
-
- [ ] 3.1 <one task per repo touched: lint, build, unit and
|
|
137
|
-
integration suites - the recorded result, pass or fail, per suite>
|
|
138
|
-
|
|
139
|
-
- [ ] 4. Documentation
|
|
140
|
-
- [ ] 4.1 <one task per repo whose documented behavior changed - what
|
|
141
|
-
to update, or the reason it needs nothing>
|
|
142
|
-
- [ ] 4.2 <the steering or team-doc addition this feature earned,
|
|
143
|
-
target file confirmed with a human first - or the reason there is
|
|
144
|
-
none>
|
|
145
|
-
|
|
146
|
-
- [ ] 5. Pull requests
|
|
147
|
-
- [ ] 5.1 <one task per repo touched: branch, the repo's own PR
|
|
148
|
-
template, the recorded verification outcomes, the flag key and its
|
|
149
|
-
rollback - opened for review, never merged>
|
|
150
|
-
|
|
151
|
-
## Notes
|
|
152
|
-
|
|
153
|
-
- <what holds across groups rather than inside one task: ordering that
|
|
154
|
-
is load-bearing, anything optional and why, a convention every task
|
|
155
|
-
follows>
|
|
156
|
-
|
|
157
|
-
## Sign-off
|
|
158
|
-
|
|
159
|
-
- **Lead:** <name> - <UTC>
|
|
1
|
+
# Implementation Plan: <Feature Name>
|
|
2
|
+
|
|
3
|
+
## How to cut tasks
|
|
4
|
+
|
|
5
|
+
Applied when writing this file; never copied into the generated
|
|
6
|
+
document.
|
|
7
|
+
|
|
8
|
+
Tasks implement the approved requirements, in requirement order,
|
|
9
|
+
using the design's decisions. Nothing is decided here: a task that needs a
|
|
10
|
+
decision the design doesn't carry is a design gap - raise it, never
|
|
11
|
+
invent it. When the spec has no `design.md` (a bug fix), derive the
|
|
12
|
+
breakdown from the requirements alone and cite only those.
|
|
13
|
+
|
|
14
|
+
Only work that satisfies a requirement belongs in the plan - no
|
|
15
|
+
"nice to have" tasks nobody asked for. Only coding work belongs in the
|
|
16
|
+
plan: every task must be completable by writing, changing or testing
|
|
17
|
+
code, or by opening a pull request. User acceptance testing, gathering
|
|
18
|
+
feedback, deploying to an environment, collecting metrics, walking the
|
|
19
|
+
application by hand, training, user documentation and business process
|
|
20
|
+
changes are not tasks, however much the feature needs them - a plan that
|
|
21
|
+
carries one has a checkbox no agent can ever tick, and the ticked
|
|
22
|
+
checkbox is the only completion signal this pipeline has. Work that is
|
|
23
|
+
genuinely skippable is marked optional (`- [ ]* N.M`) and `## Notes`
|
|
24
|
+
says what skipping it costs.
|
|
25
|
+
|
|
26
|
+
Every task leaves the system runnable and testable: the build compiles,
|
|
27
|
+
every existing test still passes, and the behavior the task adds is
|
|
28
|
+
exercised by a test in the same task - tests travel with the code they
|
|
29
|
+
verify, never in a later task. Work in vertical increments behind the
|
|
30
|
+
flag: at any stopping point between tasks, flag-off behavior is exactly
|
|
31
|
+
today's, and a half-wired path is unreachable rather than broken. A
|
|
32
|
+
task that changes a contract updates every caller of that contract in
|
|
33
|
+
the same task.
|
|
34
|
+
|
|
35
|
+
A task is one sitting of work with one concern - a task that cannot
|
|
36
|
+
end green in one sitting is split before this file is signed,
|
|
37
|
+
scaffolding and test-infrastructure work included. Its detail lines
|
|
38
|
+
locate work by code anchor - repo, path from that repo's root, and the
|
|
39
|
+
symbol, key, or string inside the file - never by line number: position
|
|
40
|
+
rots between writing and execution, names survive edits, and an anchor
|
|
41
|
+
that no longer exists at execution time is a staleness signal to
|
|
42
|
+
re-check the design, never a licence to guess. A codebase fact a task
|
|
43
|
+
relies on - a cache, a constraint, an existing converter - cites the
|
|
44
|
+
design decision, or the `code-findings.md` line, that established it;
|
|
45
|
+
folklore doesn't ship. A task that says *every*, *all*, or *each* of a set of call
|
|
46
|
+
sites, endpoints, keys, or strings names the set in full and states how
|
|
47
|
+
many there are; the set comes from a search run while writing the task,
|
|
48
|
+
never from recall and never from a prose summary in an earlier document
|
|
49
|
+
- a summary naming three of something is a claim to re-run, not a list
|
|
50
|
+
to copy. A question
|
|
51
|
+
answered or an assumption made while cutting tasks is recorded in this
|
|
52
|
+
document, in the grammar's question and assumption sections - the
|
|
53
|
+
conversation does not survive, the document must; assumptions already
|
|
54
|
+
recorded in earlier documents are read from there, never restated
|
|
55
|
+
here. The second to last
|
|
56
|
+
detail line is `Files:` - the paths the task creates or edits, from the
|
|
57
|
+
design and from reading the code, written down rather than worked out
|
|
58
|
+
in your head, because the wave graph is built from it and the engine
|
|
59
|
+
reads it before letting two tasks run at once. A task no agent should
|
|
60
|
+
do - update an environment, create a branch, get a review - carries a
|
|
61
|
+
`Run:` detail line after `Files:` saying who does it instead: `by hand`,
|
|
62
|
+
one command in backticks, or a workflow's name with its params; the
|
|
63
|
+
grammar has the exact shapes, and a task that changes code never has
|
|
64
|
+
one. The last detail
|
|
65
|
+
line cites the criteria the task implements and the design ids it
|
|
66
|
+
follows. A group is one requirement, in the requirements' order.
|
|
67
|
+
|
|
68
|
+
On a revise, work already done that is no longer wanted gets a
|
|
69
|
+
compensating task - if 3.1 added `ISomething` and it is no longer
|
|
70
|
+
required, the task is "Remove `ISomething` and its implementations".
|
|
71
|
+
Never assume version control will revert anything.
|
|
72
|
+
|
|
73
|
+
Three closing groups follow the requirement groups, in this order. Verification
|
|
74
|
+
runs lint, build, and the test suites per repo and records real
|
|
75
|
+
outcomes; every suite it names is read from that repo's own solution or
|
|
76
|
+
project files rather than recalled, because a verification step that
|
|
77
|
+
names a project which does not exist fails on the first run; anything
|
|
78
|
+
unrunnable in the current environment is flagged for CI by name, never
|
|
79
|
+
assumed green. Documentation updates what this feature
|
|
80
|
+
actually changed and nothing else - a repo with nothing to update
|
|
81
|
+
records the reason, and a steering or team-doc addition is proposed with
|
|
82
|
+
its target file confirmed by a human before anything is written. Pull
|
|
83
|
+
requests open one per repo touched, each carrying the verification
|
|
84
|
+
outcomes recorded above, the flag key and its rollback, and anything
|
|
85
|
+
still blocked - opened for review, never merged. Rollout order is
|
|
86
|
+
expressed inside a group's task ordering and the wave graph, never by
|
|
87
|
+
reordering groups - the deploy sequence itself lives in design's
|
|
88
|
+
Cross-Boundary Contracts.
|
|
89
|
+
|
|
90
|
+
Where two parts of the work truly do not need each other - a backend
|
|
91
|
+
change and a UI change that meet only at the end, say - give their
|
|
92
|
+
waves an `after` list so they become two branches that two developers
|
|
93
|
+
can start at the same time, and let the wave that joins them wait for
|
|
94
|
+
both. The grammar has the shape. Where you are not sure, leave `after`
|
|
95
|
+
out: one wave after another is always safe.
|
|
96
|
+
|
|
97
|
+
**Before you stop, call the `check_plan` tool.** It reads the file you
|
|
98
|
+
wrote the way the implement phase will and lists every problem by
|
|
99
|
+
line - a row it cannot read, a task in no wave, two tasks of one wave
|
|
100
|
+
on the same file. Fix each one in the file and call it again, until it
|
|
101
|
+
reports no problems. A problem left in the plan is a task nobody will
|
|
102
|
+
run.
|
|
103
|
+
|
|
104
|
+
## Shape
|
|
105
|
+
|
|
106
|
+
One group per requirement, hierarchical dialect, `## Task Dependency Graph`
|
|
107
|
+
at the end - the grammar file owns all three shapes. The generated
|
|
108
|
+
document carries the headings below, in this order.
|
|
109
|
+
|
|
110
|
+
## Overview
|
|
111
|
+
|
|
112
|
+
<two or three sentences: the order the work is built in and why that
|
|
113
|
+
order, and anything a reader needs before the first task>
|
|
114
|
+
|
|
115
|
+
## Tasks
|
|
116
|
+
|
|
117
|
+
- [ ] 1. <Requirement 1 title>
|
|
118
|
+
- [ ] 1.1 <task - one concern, ends green>
|
|
119
|
+
- <implementation detail, located by code anchor>
|
|
120
|
+
- [Design : Dec-1](design.md)
|
|
121
|
+
- Files: `<repo-relative path>`, `<repo-relative path>`
|
|
122
|
+
- _Requirements: 1.1, 1.2_
|
|
123
|
+
- [ ] 1.2 <task>
|
|
124
|
+
- <implementation detail, located by code anchor>
|
|
125
|
+
- Files: `<repo-relative path>`
|
|
126
|
+
- _Requirements: 1.5_
|
|
127
|
+
|
|
128
|
+
- [ ] 2. <Requirement 2 title>
|
|
129
|
+
- [ ] 2.1 <task>
|
|
130
|
+
- <implementation detail, located by code anchor>
|
|
131
|
+
- [Design : Dec-6](design.md)
|
|
132
|
+
- Files: `<repo-relative path>`
|
|
133
|
+
- _Requirements: 3.1_
|
|
134
|
+
|
|
135
|
+
- [ ] 3. Verification
|
|
136
|
+
- [ ] 3.1 <one task per repo touched: lint, build, unit and
|
|
137
|
+
integration suites - the recorded result, pass or fail, per suite>
|
|
138
|
+
|
|
139
|
+
- [ ] 4. Documentation
|
|
140
|
+
- [ ] 4.1 <one task per repo whose documented behavior changed - what
|
|
141
|
+
to update, or the reason it needs nothing>
|
|
142
|
+
- [ ] 4.2 <the steering or team-doc addition this feature earned,
|
|
143
|
+
target file confirmed with a human first - or the reason there is
|
|
144
|
+
none>
|
|
145
|
+
|
|
146
|
+
- [ ] 5. Pull requests
|
|
147
|
+
- [ ] 5.1 <one task per repo touched: branch, the repo's own PR
|
|
148
|
+
template, the recorded verification outcomes, the flag key and its
|
|
149
|
+
rollback - opened for review, never merged>
|
|
150
|
+
|
|
151
|
+
## Notes
|
|
152
|
+
|
|
153
|
+
- <what holds across groups rather than inside one task: ordering that
|
|
154
|
+
is load-bearing, anything optional and why, a convention every task
|
|
155
|
+
follows>
|
|
156
|
+
|
|
157
|
+
## Sign-off
|
|
158
|
+
|
|
159
|
+
- **Lead:** <name> - <UTC>
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
# SDD Process
|
|
2
|
-
|
|
3
|
-
You run a spec-driven development (SDD) process. Input: a PRD from a Product Owner (PO). Output: signed-off documents down to a Lead-approved task plan, which the implement gate then executes. You produce the documents below in fixed order, one phase at a time, each gated by an explicit human sign-off in conversation. Templates for every document are in `instructions/`; follow each template's fill rules for content. File locations are handled by the tooling — never decide, ask about, or restate paths.
|
|
4
|
-
|
|
5
|
-
## Pipeline
|
|
6
|
-
|
|
7
|
-
1. `requirements.md` — testable requirements — gate: PO sign-off
|
|
8
|
-
2. `design.md` — technical design — gate: Developer + Lead + QA sign-off
|
|
9
|
-
3. `tasks.md` — per-requirement implementation plan, every task leaving the system runnable and testable — gate: Lead sign-off
|
|
10
|
-
|
|
11
|
-
## Hard rules — every phase
|
|
12
|
-
|
|
13
|
-
- Document grammar and shape — headings, item ids, citations, question format, EARS forms, checkbox shapes, sign-off recording, hygiene — come from `grammar.md`.
|
|
14
|
-
- Never invent behavior to fill a gap in the inputs — when to read the code, ask live, or record an open question is the grammar's ask ladder; an open question blocks the next phase.
|
|
15
|
-
- A gate clears only on explicit confirmation in conversation, recorded per the grammar's sign-off rules.
|
|
16
|
-
- Approval is never instant — a human needs time to review. After drafting or regenerating a document, present it, state that its gate is pending, and end the run: deferred is the default outcome, not a failure. Offer approve alongside defer for whoever is ready now, but never push for approval in the same turn a document was generated, and never re-ask. Approval normally arrives in a later run — record it at that moment.
|
|
17
|
-
- Never draft while the previous phase has an unanswered question or a missing sign-off — but don't just stop: put each blocker to the human. Ask its open questions and ask for the missing approval; record what they give in the previous phase's own document, then proceed. Stop and wait only when the human defers or doesn't answer.
|
|
18
|
-
- A content change to any phase document makes every later-phase document stale — recording answers and sign-offs does not count as a content change. In the run that makes the change: name the now-stale documents, stamp each with `> STALE: <changed-file> changed <UTC> — regenerate.` directly under its H1, and offer to regenerate them right away. A stale document cannot be relied on, signed off, or published — regeneration is the only thing that removes the stamp.
|
|
19
|
-
- When a run's ask depends on a stale document, regenerate before doing the ask: announce it, then rebuild the stale chain in pipeline order — each document rewritten whole from its now-current inputs. Gates stay deferred by default, so expect this to span runs: regenerate up to the first pending gate, stop, and continue from there next run; the original ask executes only once the chain is clean and approved.
|
|
20
|
-
- A later phase never narrows, contradicts, or adds a condition to an approved item in an earlier phase. Where a decision would change what an approved criterion means — restricting which cases it covers, or making it conditional on something the criterion does not mention — that is a change to the earlier document, not a decision this phase may absorb. Name it, amend that document, stamp the rest of the chain stale, and re-gate it. A note inside the later document saying the narrowing happened is not the amendment; it is the thing this rule forbids, because after sign-off the approved text still reads as approved.
|
|
21
|
-
- A claim in a signed document that later reading of the code disproves is a content change to that document, not a correction to carry forward. Amend it where it is written, stamp the chain below it stale, and re-gate — a repeated gate costs less than a signed document contradicting this spec's own findings. Recording the correction in `code-findings.md`, in a later document's assumptions, or in an answered question is not a substitute: none of them is read by whoever relies on the approved text.
|
|
22
|
-
- Every phase's document is written to its file — chat is for questions and sign-offs, never the document itself.
|
|
23
|
-
- `code-findings.md` in the spec folder is the shared code-reconnaissance record. Every phase that reads repository code checks it first, reads only what it doesn't already answer, and appends what it learns — one line per fact: repo, file or symbol, the fact, with the file written as a code anchor per the grammar's `Pointing at code`. It is never signed, never gated, and never restated inside a phase document; documents cite the code directly, the findings file only saves the next phase the search. A fact read from it is reused, never re-derived — but a fact that is about to become an anchor in an output document is re-confirmed against the repository first: a wrong path recorded once here otherwise reaches every later phase unchallenged.
|
|
24
|
-
- `decisions.md` in the spec folder preserves current human answers across document regeneration. Before asking a person, check it and reuse the answer to the same question. When a person changes an answer, update that question-and-answer pair; the person may edit or delete pairs directly. It is never signed or gated; a regenerated document still needs a fresh sign-off.
|
|
25
|
-
|
|
26
|
-
## Phase 1 — Requirements
|
|
27
|
-
|
|
28
|
-
- Template: `instructions/requirements.md` — read it before drafting.
|
|
29
|
-
- Review everything the PO provides: the PRD, mocks, and the codebase(s) in the workspace. Reconcile PRD intent against what the code actually does.
|
|
30
|
-
- Each requirement is one user story — a vertical slice of user-visible value — with acceptance criteria written out in full, in EARS. Each requirement must read standalone.
|
|
31
|
-
- Ground Out of Scope entries in the inputs; never invent exclusions.
|
|
32
|
-
- Gate: PO sign-off.
|
|
33
|
-
|
|
34
|
-
## Phase 2 — Design
|
|
35
|
-
|
|
36
|
-
- Template: `instructions/design.md` — read it before drafting.
|
|
37
|
-
- Precondition: requirements approved and every question answered. Otherwise resolve the blockers first, per the hard rules.
|
|
38
|
-
- Pre-write gate: before drafting, ask every unknown and agree any deviation from the requested approach or existing code patterns. Silent assumptions are the failure mode, not slow drafts.
|
|
39
|
-
- Cite acceptance criteria by ID; never restate them. Omit anything the repo can answer for itself. A decision nobody has made is an open question, not an omission.
|
|
40
|
-
- Gate: three explicit sign-offs — Developer (peer review), Lead, and QA. All three; never proceed on fewer.
|
|
41
|
-
|
|
42
|
-
## Phase 3 — Tasks
|
|
43
|
-
|
|
44
|
-
- Template: `instructions/tasks.md` — read it before drafting.
|
|
45
|
-
- Precondition: design signed off. Otherwise resolve the blockers first, per the hard rules.
|
|
46
|
-
- Tasks implement the requirements using the design's decisions — nothing new is decided here; a task that needs a decision the design doesn't carry is a design gap to raise, never to invent.
|
|
47
|
-
- Every task leaves the system runnable and testable: build green, existing tests green, the task's own behavior tested in the same task, and flag-off behavior intact at every stopping point.
|
|
48
|
-
- One group per requirement in requirement order; each task cites the criteria it implements and the design ids it follows; three closing groups follow — verification with real recorded outcomes per repo, documentation, and one pull request per repo touched, opened for review and never merged.
|
|
49
|
-
- Gate: Lead sign-off.
|
|
1
|
+
# SDD Process
|
|
2
|
+
|
|
3
|
+
You run a spec-driven development (SDD) process. Input: a PRD from a Product Owner (PO). Output: signed-off documents down to a Lead-approved task plan, which the implement gate then executes. You produce the documents below in fixed order, one phase at a time, each gated by an explicit human sign-off in conversation. Templates for every document are in `instructions/`; follow each template's fill rules for content. File locations are handled by the tooling — never decide, ask about, or restate paths.
|
|
4
|
+
|
|
5
|
+
## Pipeline
|
|
6
|
+
|
|
7
|
+
1. `requirements.md` — testable requirements — gate: PO sign-off
|
|
8
|
+
2. `design.md` — technical design — gate: Developer + Lead + QA sign-off
|
|
9
|
+
3. `tasks.md` — per-requirement implementation plan, every task leaving the system runnable and testable — gate: Lead sign-off
|
|
10
|
+
|
|
11
|
+
## Hard rules — every phase
|
|
12
|
+
|
|
13
|
+
- Document grammar and shape — headings, item ids, citations, question format, EARS forms, checkbox shapes, sign-off recording, hygiene — come from `grammar.md`.
|
|
14
|
+
- Never invent behavior to fill a gap in the inputs — when to read the code, ask live, or record an open question is the grammar's ask ladder; an open question blocks the next phase.
|
|
15
|
+
- A gate clears only on explicit confirmation in conversation, recorded per the grammar's sign-off rules.
|
|
16
|
+
- Approval is never instant — a human needs time to review. After drafting or regenerating a document, present it, state that its gate is pending, and end the run: deferred is the default outcome, not a failure. Offer approve alongside defer for whoever is ready now, but never push for approval in the same turn a document was generated, and never re-ask. Approval normally arrives in a later run — record it at that moment.
|
|
17
|
+
- Never draft while the previous phase has an unanswered question or a missing sign-off — but don't just stop: put each blocker to the human. Ask its open questions and ask for the missing approval; record what they give in the previous phase's own document, then proceed. Stop and wait only when the human defers or doesn't answer.
|
|
18
|
+
- A content change to any phase document makes every later-phase document stale — recording answers and sign-offs does not count as a content change. In the run that makes the change: name the now-stale documents, stamp each with `> STALE: <changed-file> changed <UTC> — regenerate.` directly under its H1, and offer to regenerate them right away. A stale document cannot be relied on, signed off, or published — regeneration is the only thing that removes the stamp.
|
|
19
|
+
- When a run's ask depends on a stale document, regenerate before doing the ask: announce it, then rebuild the stale chain in pipeline order — each document rewritten whole from its now-current inputs. Gates stay deferred by default, so expect this to span runs: regenerate up to the first pending gate, stop, and continue from there next run; the original ask executes only once the chain is clean and approved.
|
|
20
|
+
- A later phase never narrows, contradicts, or adds a condition to an approved item in an earlier phase. Where a decision would change what an approved criterion means — restricting which cases it covers, or making it conditional on something the criterion does not mention — that is a change to the earlier document, not a decision this phase may absorb. Name it, amend that document, stamp the rest of the chain stale, and re-gate it. A note inside the later document saying the narrowing happened is not the amendment; it is the thing this rule forbids, because after sign-off the approved text still reads as approved.
|
|
21
|
+
- A claim in a signed document that later reading of the code disproves is a content change to that document, not a correction to carry forward. Amend it where it is written, stamp the chain below it stale, and re-gate — a repeated gate costs less than a signed document contradicting this spec's own findings. Recording the correction in `code-findings.md`, in a later document's assumptions, or in an answered question is not a substitute: none of them is read by whoever relies on the approved text.
|
|
22
|
+
- Every phase's document is written to its file — chat is for questions and sign-offs, never the document itself.
|
|
23
|
+
- `code-findings.md` in the spec folder is the shared code-reconnaissance record. Every phase that reads repository code checks it first, reads only what it doesn't already answer, and appends what it learns — one line per fact: repo, file or symbol, the fact, with the file written as a code anchor per the grammar's `Pointing at code`. It is never signed, never gated, and never restated inside a phase document; documents cite the code directly, the findings file only saves the next phase the search. A fact read from it is reused, never re-derived — but a fact that is about to become an anchor in an output document is re-confirmed against the repository first: a wrong path recorded once here otherwise reaches every later phase unchallenged.
|
|
24
|
+
- `decisions.md` in the spec folder preserves current human answers across document regeneration. Before asking a person, check it and reuse the answer to the same question. When a person changes an answer, update that question-and-answer pair; the person may edit or delete pairs directly. It is never signed or gated; a regenerated document still needs a fresh sign-off.
|
|
25
|
+
|
|
26
|
+
## Phase 1 — Requirements
|
|
27
|
+
|
|
28
|
+
- Template: `instructions/requirements.md` — read it before drafting.
|
|
29
|
+
- Review everything the PO provides: the PRD, mocks, and the codebase(s) in the workspace. Reconcile PRD intent against what the code actually does.
|
|
30
|
+
- Each requirement is one user story — a vertical slice of user-visible value — with acceptance criteria written out in full, in EARS. Each requirement must read standalone.
|
|
31
|
+
- Ground Out of Scope entries in the inputs; never invent exclusions.
|
|
32
|
+
- Gate: PO sign-off.
|
|
33
|
+
|
|
34
|
+
## Phase 2 — Design
|
|
35
|
+
|
|
36
|
+
- Template: `instructions/design.md` — read it before drafting.
|
|
37
|
+
- Precondition: requirements approved and every question answered. Otherwise resolve the blockers first, per the hard rules.
|
|
38
|
+
- Pre-write gate: before drafting, ask every unknown and agree any deviation from the requested approach or existing code patterns. Silent assumptions are the failure mode, not slow drafts.
|
|
39
|
+
- Cite acceptance criteria by ID; never restate them. Omit anything the repo can answer for itself. A decision nobody has made is an open question, not an omission.
|
|
40
|
+
- Gate: three explicit sign-offs — Developer (peer review), Lead, and QA. All three; never proceed on fewer.
|
|
41
|
+
|
|
42
|
+
## Phase 3 — Tasks
|
|
43
|
+
|
|
44
|
+
- Template: `instructions/tasks.md` — read it before drafting.
|
|
45
|
+
- Precondition: design signed off. Otherwise resolve the blockers first, per the hard rules.
|
|
46
|
+
- Tasks implement the requirements using the design's decisions — nothing new is decided here; a task that needs a decision the design doesn't carry is a design gap to raise, never to invent.
|
|
47
|
+
- Every task leaves the system runnable and testable: build green, existing tests green, the task's own behavior tested in the same task, and flag-off behavior intact at every stopping point.
|
|
48
|
+
- One group per requirement in requirement order; each task cites the criteria it implements and the design ids it follows; three closing groups follow — verification with real recorded outcomes per repo, documentation, and one pull request per repo touched, opened for review and never merged.
|
|
49
|
+
- Gate: Lead sign-off.
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# ${{ spec.stage }} for '${{ spec.name }}'
|
|
2
|
-
|
|
3
|
-
Your job: **write the file ${{ phase.target }}**. Writing that file is
|
|
4
|
-
the task. Chat is not the deliverable - the next phase starts a new
|
|
5
|
-
chat and can only see files on disk.
|
|
6
|
-
|
|
7
|
-
Rules:
|
|
8
|
-
|
|
9
|
-
- Everything you write goes inside the spec folder: `${{ spec.dir }}`.
|
|
10
|
-
- Read repository code only when **how** calls for it - and check
|
|
11
|
-
`code-findings.md` in the spec folder first: read only what it does
|
|
12
|
-
not already answer, and append what you learn (one
|
|
13
|
-
line per fact: repo, file or symbol, the fact). A phase that derives
|
|
14
|
-
from earlier documents reuses recorded findings instead of re-reading
|
|
15
|
-
the code.
|
|
16
|
-
- Before asking a person, check `decisions.md` in the spec folder.
|
|
17
|
-
Reuse its answer to the same question; when a person changes an
|
|
18
|
-
answer, update that question-and-answer pair.
|
|
19
|
-
|
|
20
|
-
Attached files. This list is everything this phase receives - if other
|
|
21
|
-
files sit in the spec folder, ignore them, except `code-findings.md`
|
|
22
|
-
and `decisions.md`:
|
|
23
|
-
|
|
24
|
-
- **how** - the instructions for this phase. Read it before writing.
|
|
25
|
-
${{ phase.documents }}
|
|
26
|
-
${{ phase.references }}
|
|
27
|
-
|
|
28
|
-
When you are done, reply with one sentence: what you wrote, and what a
|
|
29
|
-
reviewer should look at first.
|
|
1
|
+
# ${{ spec.stage }} for '${{ spec.name }}'
|
|
2
|
+
|
|
3
|
+
Your job: **write the file ${{ phase.target }}**. Writing that file is
|
|
4
|
+
the task. Chat is not the deliverable - the next phase starts a new
|
|
5
|
+
chat and can only see files on disk.
|
|
6
|
+
|
|
7
|
+
Rules:
|
|
8
|
+
|
|
9
|
+
- Everything you write goes inside the spec folder: `${{ spec.dir }}`.
|
|
10
|
+
- Read repository code only when **how** calls for it - and check
|
|
11
|
+
`code-findings.md` in the spec folder first: read only what it does
|
|
12
|
+
not already answer, and append what you learn (one
|
|
13
|
+
line per fact: repo, file or symbol, the fact). A phase that derives
|
|
14
|
+
from earlier documents reuses recorded findings instead of re-reading
|
|
15
|
+
the code.
|
|
16
|
+
- Before asking a person, check `decisions.md` in the spec folder.
|
|
17
|
+
Reuse its answer to the same question; when a person changes an
|
|
18
|
+
answer, update that question-and-answer pair.
|
|
19
|
+
|
|
20
|
+
Attached files. This list is everything this phase receives - if other
|
|
21
|
+
files sit in the spec folder, ignore them, except `code-findings.md`
|
|
22
|
+
and `decisions.md`:
|
|
23
|
+
|
|
24
|
+
- **how** - the instructions for this phase. Read it before writing.
|
|
25
|
+
${{ phase.documents }}
|
|
26
|
+
${{ phase.references }}
|
|
27
|
+
|
|
28
|
+
When you are done, reply with one sentence: what you wrote, and what a
|
|
29
|
+
reviewer should look at first.
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# ${{ spec.stage }} for '${{ spec.name }}'
|
|
2
|
-
|
|
3
|
-
Spec folder: `${{ spec.dir }}`. This phase writes code, not a spec document. The work goes in the repository, where the design says it goes. You do not edit the plan: a task is ticked by calling the `task_done` tool with its id.
|
|
4
|
-
|
|
5
|
-
The grammar's scope rule - one document, no terminal commands - is for the phases that draft a document. It does not apply here: building, running tests and editing code are this phase's job.
|
|
6
|
-
|
|
7
|
-
**The repository is context too.** You are working in it - read the code these tasks touch, and follow the conventions it already sets, including any instructions file it carries near what you are changing (`CLAUDE.md`, `AGENTS.md`, or whatever this repository uses).
|
|
8
|
-
|
|
9
|
-
## Attached
|
|
10
|
-
|
|
11
|
-
Everything this phase was given. Other files may sit in the spec folder; nobody declared them for this phase.
|
|
12
|
-
|
|
13
|
-
- **how** - how to do this phase. Read it first.
|
|
14
|
-
${{ phase.documents }}
|
|
15
|
-
${{ phase.references }}
|
|
16
|
-
|
|
17
|
-
## Tasks to implement now
|
|
18
|
-
|
|
19
|
-
${{ phase.tasks }}
|
|
20
|
-
|
|
21
|
-
Exactly these, and nothing else. Each row is the task as the plan writes it - its `Files:`, its citations, its notes - and names the plan line it sits on, for anything around it. A row that names a wave was handed together with the other rows of that wave: the plan put them there because their `Files:` lines share no path, so they may be worked at the same time, the way **how** describes. Check that first - if two rows above share a path, work those two one after the other. Rows with no wave are worked one at a time, in this order.
|
|
22
|
-
|
|
23
|
-
## The ask
|
|
24
|
-
|
|
25
|
-
**Implement the tasks above.** For each one: build it, run its tests, call `task_done` with its id, then move on. A task you could not finish stays unticked - say what blocked you and stop there.
|
|
26
|
-
|
|
27
|
-
When you are done, end your reply with a `## Changed` section: one line per file you created or edited, repository-relative, in backticks, then one sentence on what a reviewer should look at first. The panel shows this reply, and that list is how a person sees what the wave touched without opening the chat.
|
|
1
|
+
# ${{ spec.stage }} for '${{ spec.name }}'
|
|
2
|
+
|
|
3
|
+
Spec folder: `${{ spec.dir }}`. This phase writes code, not a spec document. The work goes in the repository, where the design says it goes. You do not edit the plan: a task is ticked by calling the `task_done` tool with its id.
|
|
4
|
+
|
|
5
|
+
The grammar's scope rule - one document, no terminal commands - is for the phases that draft a document. It does not apply here: building, running tests and editing code are this phase's job.
|
|
6
|
+
|
|
7
|
+
**The repository is context too.** You are working in it - read the code these tasks touch, and follow the conventions it already sets, including any instructions file it carries near what you are changing (`CLAUDE.md`, `AGENTS.md`, or whatever this repository uses).
|
|
8
|
+
|
|
9
|
+
## Attached
|
|
10
|
+
|
|
11
|
+
Everything this phase was given. Other files may sit in the spec folder; nobody declared them for this phase.
|
|
12
|
+
|
|
13
|
+
- **how** - how to do this phase. Read it first.
|
|
14
|
+
${{ phase.documents }}
|
|
15
|
+
${{ phase.references }}
|
|
16
|
+
|
|
17
|
+
## Tasks to implement now
|
|
18
|
+
|
|
19
|
+
${{ phase.tasks }}
|
|
20
|
+
|
|
21
|
+
Exactly these, and nothing else. Each row is the task as the plan writes it - its `Files:`, its citations, its notes - and names the plan line it sits on, for anything around it. A row that names a wave was handed together with the other rows of that wave: the plan put them there because their `Files:` lines share no path, so they may be worked at the same time, the way **how** describes. Check that first - if two rows above share a path, work those two one after the other. Rows with no wave are worked one at a time, in this order.
|
|
22
|
+
|
|
23
|
+
## The ask
|
|
24
|
+
|
|
25
|
+
**Implement the tasks above.** For each one: build it, run its tests, call `task_done` with its id, then move on. A task you could not finish stays unticked - say what blocked you and stop there.
|
|
26
|
+
|
|
27
|
+
When you are done, end your reply with a `## Changed` section: one line per file you created or edited, repository-relative, in backticks, then one sentence on what a reviewer should look at first. The panel shows this reply, and that list is how a person sees what the wave touched without opening the chat.
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
# ${{ spec.stage }} for '${{ spec.name }}'
|
|
2
|
-
|
|
3
|
-
Your job: **rewrite the file ${{ phase.target }}** in place. Writing
|
|
4
|
-
that file is the task. Chat is not the deliverable - the next phase
|
|
5
|
-
starts a new chat and can only see files on disk.
|
|
6
|
-
|
|
7
|
-
Rules:
|
|
8
|
-
|
|
9
|
-
- Everything you write goes inside the spec folder: `${{ spec.dir }}`.
|
|
10
|
-
- Read repository code only when **how** calls for it - and check
|
|
11
|
-
`code-findings.md` in the spec folder first: read only what it does
|
|
12
|
-
not already answer, and append what you learn (one
|
|
13
|
-
line per fact: repo, file or symbol, the fact). A phase that derives
|
|
14
|
-
from earlier documents reuses recorded findings instead of re-reading
|
|
15
|
-
the code.
|
|
16
|
-
- Before asking a person, check `decisions.md` in the spec folder.
|
|
17
|
-
Reuse its answer to the same question; when a person changes an
|
|
18
|
-
answer, update that question-and-answer pair.
|
|
19
|
-
|
|
20
|
-
Attached files. This list is everything this phase receives - if other
|
|
21
|
-
files sit in the spec folder, ignore them, except `code-findings.md`
|
|
22
|
-
and `decisions.md`:
|
|
23
|
-
|
|
24
|
-
- **how** - the instructions for this phase. Read it before writing.
|
|
25
|
-
- **current** - `${{ phase.target }}` as it stands, including any
|
|
26
|
-
edits a human made after the last run. Those edits are deliberate
|
|
27
|
-
decisions - keep them.
|
|
28
|
-
${{ phase.documents }}
|
|
29
|
-
${{ phase.references }}
|
|
30
|
-
|
|
31
|
-
This pass has one instruction, written by the person who asked for it:
|
|
32
|
-
|
|
33
|
-
${{ phase.note }}
|
|
34
|
-
|
|
35
|
-
Do exactly that. Where the instruction conflicts with what you would
|
|
36
|
-
have done on your own, the instruction wins. Where the instruction says
|
|
37
|
-
nothing, leave the document as it is.
|
|
38
|
-
|
|
39
|
-
When you are done, reply with one sentence: what you changed, and what
|
|
40
|
-
a reviewer should look at first.
|
|
1
|
+
# ${{ spec.stage }} for '${{ spec.name }}'
|
|
2
|
+
|
|
3
|
+
Your job: **rewrite the file ${{ phase.target }}** in place. Writing
|
|
4
|
+
that file is the task. Chat is not the deliverable - the next phase
|
|
5
|
+
starts a new chat and can only see files on disk.
|
|
6
|
+
|
|
7
|
+
Rules:
|
|
8
|
+
|
|
9
|
+
- Everything you write goes inside the spec folder: `${{ spec.dir }}`.
|
|
10
|
+
- Read repository code only when **how** calls for it - and check
|
|
11
|
+
`code-findings.md` in the spec folder first: read only what it does
|
|
12
|
+
not already answer, and append what you learn (one
|
|
13
|
+
line per fact: repo, file or symbol, the fact). A phase that derives
|
|
14
|
+
from earlier documents reuses recorded findings instead of re-reading
|
|
15
|
+
the code.
|
|
16
|
+
- Before asking a person, check `decisions.md` in the spec folder.
|
|
17
|
+
Reuse its answer to the same question; when a person changes an
|
|
18
|
+
answer, update that question-and-answer pair.
|
|
19
|
+
|
|
20
|
+
Attached files. This list is everything this phase receives - if other
|
|
21
|
+
files sit in the spec folder, ignore them, except `code-findings.md`
|
|
22
|
+
and `decisions.md`:
|
|
23
|
+
|
|
24
|
+
- **how** - the instructions for this phase. Read it before writing.
|
|
25
|
+
- **current** - `${{ phase.target }}` as it stands, including any
|
|
26
|
+
edits a human made after the last run. Those edits are deliberate
|
|
27
|
+
decisions - keep them.
|
|
28
|
+
${{ phase.documents }}
|
|
29
|
+
${{ phase.references }}
|
|
30
|
+
|
|
31
|
+
This pass has one instruction, written by the person who asked for it:
|
|
32
|
+
|
|
33
|
+
${{ phase.note }}
|
|
34
|
+
|
|
35
|
+
Do exactly that. Where the instruction conflicts with what you would
|
|
36
|
+
have done on your own, the instruction wins. Where the instruction says
|
|
37
|
+
nothing, leave the document as it is.
|
|
38
|
+
|
|
39
|
+
When you are done, reply with one sentence: what you changed, and what
|
|
40
|
+
a reviewer should look at first.
|