buildkeel 0.7.0 → 0.7.2
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/README.md +33 -4
- package/antigravity/agents/bk-break-it-pro.md +25 -0
- package/antigravity/agents/bk-designer-pro.md +20 -0
- package/antigravity/agents/bk-edge-cases-pro.md +31 -0
- package/antigravity/agents/bk-final-quality-reviewer-pro.md +47 -0
- package/antigravity/agents/bk-final-spec-reviewer-pro.md +37 -0
- package/antigravity/agents/bk-implementer-pro.md +40 -0
- package/antigravity/agents/bk-note-checker-pro.md +26 -0
- package/antigravity/agents/bk-quality-reviewer-pro.md +47 -0
- package/antigravity/agents/bk-readiness-reader-pro.md +28 -0
- package/antigravity/agents/bk-spec-reviewer-pro.md +37 -0
- package/antigravity/dist/hooks/main.js +208 -143
- package/antigravity/dist/server/main.js +653 -595
- package/antigravity/package.json +1 -1
- package/antigravity/plugin.json +1 -1
- package/antigravity/rules/buildkeel.md +1 -1
- package/antigravity/skills/bk-build/SKILL.md +3 -3
- package/antigravity/skills/bk-done/SKILL.md +1 -1
- package/antigravity/skills/bk-init/SKILL.md +4 -0
- package/antigravity/skills/bk-models/SKILL.md +16 -0
- package/antigravity/skills/bk-review/SKILL.md +1 -1
- package/cli.mjs +151 -142
- package/cursor/.cursor-plugin/plugin.json +16 -0
- package/cursor/LICENSE +49 -0
- package/cursor/THIRD-PARTY-NOTICES +231 -0
- package/cursor/agents/bk-break-it.md +17 -0
- package/cursor/agents/bk-designer.md +12 -0
- package/cursor/agents/bk-edge-cases.md +23 -0
- package/cursor/agents/bk-final-quality-reviewer.md +39 -0
- package/cursor/agents/bk-final-spec-reviewer.md +29 -0
- package/cursor/agents/bk-implementer.md +32 -0
- package/cursor/agents/bk-note-checker.md +18 -0
- package/cursor/agents/bk-quality-reviewer.md +39 -0
- package/cursor/agents/bk-readiness-reader.md +20 -0
- package/cursor/agents/bk-spec-reviewer.md +29 -0
- package/cursor/agents/index.json +99 -0
- package/cursor/bin/bk-launch +34 -0
- package/cursor/bin/bk-launch.cmd +36 -0
- package/cursor/bin/bk-start.cjs +28 -0
- package/cursor/dist/hooks/main.js +232 -0
- package/cursor/dist/server/main.js +834 -0
- package/cursor/hooks/hooks.json +36 -0
- package/cursor/mcp.json +24 -0
- package/cursor/package.json +8 -0
- package/cursor/practices/P-01.md +7 -0
- package/cursor/practices/P-02.md +7 -0
- package/cursor/practices/P-03.md +7 -0
- package/cursor/practices/P-04.md +7 -0
- package/cursor/practices/P-05.md +7 -0
- package/cursor/practices/P-06.md +7 -0
- package/cursor/practices/P-07.md +7 -0
- package/cursor/practices/P-08.md +7 -0
- package/cursor/practices/P-09.md +7 -0
- package/cursor/practices/P-10.md +7 -0
- package/cursor/practices/P-11.md +7 -0
- package/cursor/practices/P-12.md +7 -0
- package/cursor/practices/P-13.md +7 -0
- package/cursor/practices/P-14.md +7 -0
- package/cursor/practices/P-15.md +7 -0
- package/cursor/project/commands/bk-approve.md +50 -0
- package/cursor/project/commands/bk-build.md +248 -0
- package/cursor/project/commands/bk-capture.md +207 -0
- package/cursor/project/commands/bk-done.md +112 -0
- package/cursor/project/commands/bk-impact.md +48 -0
- package/cursor/project/commands/bk-init.md +92 -0
- package/cursor/project/commands/bk-migrate.md +71 -0
- package/cursor/project/commands/bk-models.md +9 -0
- package/cursor/project/commands/bk-new.md +121 -0
- package/cursor/project/commands/bk-onboard.md +134 -0
- package/cursor/project/commands/bk-pause.md +49 -0
- package/cursor/project/commands/bk-resume.md +28 -0
- package/cursor/project/commands/bk-review.md +49 -0
- package/cursor/project/commands/bk-settings.md +11 -0
- package/cursor/project/commands/bk-stats.md +33 -0
- package/cursor/project/commands/bk-status.md +11 -0
- package/cursor/project/rules/buildkeel.mdc +80 -0
- package/cursor/skills/buildkeel/SKILL.md +80 -0
- package/cursor/templates/adhoc.md +15 -0
- package/cursor/templates/adr.md +31 -0
- package/cursor/templates/defect.md +35 -0
- package/cursor/templates/design.md +49 -0
- package/cursor/templates/epic.md +31 -0
- package/cursor/templates/idea.md +35 -0
- package/cursor/templates/spec-driven/capability.md +28 -0
- package/cursor/templates/spec-driven/proposal.md +41 -0
- package/cursor/templates/spec-driven/spec-change.md +43 -0
- package/cursor/templates/spec-driven/tasks.md +25 -0
- package/cursor/templates/story.md +31 -0
- package/cursor/templates/task.md +43 -0
- package/cursor/templates/test-plan.md +29 -0
- package/cursor/templates/thread.md +41 -0
- package/package.json +17 -3
- package/pi/LICENSE +49 -0
- package/pi/THIRD-PARTY-NOTICES +231 -0
- package/pi/agents/bk-break-it.md +17 -0
- package/pi/agents/bk-designer.md +12 -0
- package/pi/agents/bk-edge-cases.md +23 -0
- package/pi/agents/bk-final-quality-reviewer.md +39 -0
- package/pi/agents/bk-final-spec-reviewer.md +29 -0
- package/pi/agents/bk-implementer.md +32 -0
- package/pi/agents/bk-note-checker.md +18 -0
- package/pi/agents/bk-quality-reviewer.md +39 -0
- package/pi/agents/bk-readiness-reader.md +20 -0
- package/pi/agents/bk-spec-reviewer.md +29 -0
- package/pi/agents/index.json +135 -0
- package/pi/bin/bk-launch +34 -0
- package/pi/bin/bk-launch.cmd +36 -0
- package/pi/bin/bk-start.cjs +28 -0
- package/pi/dist/hooks/main.js +232 -0
- package/pi/dist/server/main.js +834 -0
- package/pi/extension.js +241 -0
- package/pi/package.json +8 -0
- package/pi/practices/P-01.md +7 -0
- package/pi/practices/P-02.md +7 -0
- package/pi/practices/P-03.md +7 -0
- package/pi/practices/P-04.md +7 -0
- package/pi/practices/P-05.md +7 -0
- package/pi/practices/P-06.md +7 -0
- package/pi/practices/P-07.md +7 -0
- package/pi/practices/P-08.md +7 -0
- package/pi/practices/P-09.md +7 -0
- package/pi/practices/P-10.md +7 -0
- package/pi/practices/P-11.md +7 -0
- package/pi/practices/P-12.md +7 -0
- package/pi/practices/P-13.md +7 -0
- package/pi/practices/P-14.md +7 -0
- package/pi/practices/P-15.md +7 -0
- package/pi/prompts/bk-approve.md +53 -0
- package/pi/prompts/bk-build.md +251 -0
- package/pi/prompts/bk-capture.md +210 -0
- package/pi/prompts/bk-done.md +115 -0
- package/pi/prompts/bk-impact.md +51 -0
- package/pi/prompts/bk-init.md +95 -0
- package/pi/prompts/bk-migrate.md +73 -0
- package/pi/prompts/bk-models.md +11 -0
- package/pi/prompts/bk-new.md +124 -0
- package/pi/prompts/bk-onboard.md +137 -0
- package/pi/prompts/bk-pause.md +52 -0
- package/pi/prompts/bk-resume.md +31 -0
- package/pi/prompts/bk-review.md +52 -0
- package/pi/prompts/bk-settings.md +13 -0
- package/pi/prompts/bk-stats.md +36 -0
- package/pi/prompts/bk-status.md +13 -0
- package/pi/skills/buildkeel/SKILL.md +68 -0
- package/pi/templates/adhoc.md +15 -0
- package/pi/templates/adr.md +31 -0
- package/pi/templates/defect.md +35 -0
- package/pi/templates/design.md +49 -0
- package/pi/templates/epic.md +31 -0
- package/pi/templates/idea.md +35 -0
- package/pi/templates/spec-driven/capability.md +28 -0
- package/pi/templates/spec-driven/proposal.md +41 -0
- package/pi/templates/spec-driven/spec-change.md +43 -0
- package/pi/templates/spec-driven/tasks.md +25 -0
- package/pi/templates/story.md +31 -0
- package/pi/templates/task.md +43 -0
- package/pi/templates/test-plan.md +29 -0
- package/pi/templates/thread.md +41 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "BuildKeel: Show your own BuildKeel usage over a period: units finished, time to done, what the gates caught, suspects decided. Kept on this machine only."
|
|
3
|
+
argument-hint: "[days], e.g. 30; or off, on, delete or export to change the record"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Show the user their own use of BuildKeel in this spec tree, from the record kept on their machine. The record holds IDs, types, outcomes and times, never artifact text or code, and nothing is ever sent anywhere.
|
|
7
|
+
|
|
8
|
+
The user typed: $ARGUMENTS
|
|
9
|
+
|
|
10
|
+
**Before anything else**, call the BuildKeel `query` tool with `view: "process"`, and do not show its result. If it says this repository is not set up for BuildKeel, tell the user so, and that /bk-init sets it up, then stop: ask nothing else. Otherwise go on straight away.
|
|
11
|
+
|
|
12
|
+
## Choose the period
|
|
13
|
+
|
|
14
|
+
If the user typed a number of days, use it. If they typed off, on, delete or export, change the record as below.
|
|
15
|
+
|
|
16
|
+
If the user typed nothing, ask straight away: "Which period?" Offer the choices with your tool for asking a question with choices, if you have one:
|
|
17
|
+
|
|
18
|
+
1. **The last 30 days** (the default, listed first).
|
|
19
|
+
2. **The last 7 days.**
|
|
20
|
+
3. **All of it.**
|
|
21
|
+
4. **Change the record:** turn recording off or on, delete it, or export it.
|
|
22
|
+
|
|
23
|
+
## Show it
|
|
24
|
+
|
|
25
|
+
Call the BuildKeel `query` tool with `view: "stats"` and `days` (leave `days` out for all of it). Show the result as it is: it opens with what the period comes to, then the details. In a Spec-driven tree it counts changes and what finishing them reported, in place of gate figures.
|
|
26
|
+
|
|
27
|
+
## Change the record
|
|
28
|
+
|
|
29
|
+
Only on the user's request, with the BuildKeel `manage` tool and `action: "usage"`:
|
|
30
|
+
|
|
31
|
+
- **Off:** `usage: "off"`. Nothing new is recorded; everything else works as before.
|
|
32
|
+
- **On:** `usage: "on"`.
|
|
33
|
+
- **Delete:** say that it deletes the record on this machine and cannot be undone, and ask for an explicit yes; then `usage: "delete"`.
|
|
34
|
+
- **Export:** ask where to write the file, suggesting `~/buildkeel-usage.jsonl`, then `usage: "export"` with that `path`.
|
|
35
|
+
|
|
36
|
+
Show the result as it is.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "BuildKeel: Show the overview: the tree with each artifact's state, work in progress, claims, coverage gaps, unpushed approvals, commits with no unit, and what can be started next."
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Call the BuildKeel `query` tool with `view: "status"`.
|
|
6
|
+
|
|
7
|
+
Show the user the result as it is, keeping its indentation, which shows the hierarchy. Do not summarize or reorder it. If it lists problems or files changed outside BuildKeel, show them with their fixes.
|
|
8
|
+
|
|
9
|
+
If it lists claims on this machine, end by saying that a claim can be released before its unit is finished. Release one only when the user asks for it: call the BuildKeel `manage` tool with `action: "release"` and the unit's `id`, and show the result.
|
|
10
|
+
|
|
11
|
+
If the result says this repository is not set up for BuildKeel, tell the user how to set it up with /bk-init.
|
|
12
|
+
|
|
13
|
+
In a Spec-driven tree, the result ends with an offer to review the active change. Ask, with your tool for asking a question with choices: **Review <ID> now** (the default) or **Not now**. To review, call `finish_work` without `apply`, review as its result says, and report your judgment; do not finish the change unless the user asks.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buildkeel
|
|
3
|
+
description: How to work in a repository set up with BuildKeel (it has a .buildkeel.yaml file). Use it when the user asks you to change code, before committing, when writing or running tests, when finishing a unit of work, and whenever you read or change requirements, designs, stories, tasks or test plans.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
BuildKeel keeps requirements, tests and code connected. Follow these rules in any repository that has a `.buildkeel.yaml` file.
|
|
7
|
+
|
|
8
|
+
## Conversation comes first
|
|
9
|
+
|
|
10
|
+
Talk with the user as you would without BuildKeel, as a thinking partner, the way BuildKeel's session report describes: explain the options, trade-offs and pitfalls before you ask, ask in prose, recommend only what the evidence supports, and never push toward a plan or a BuildKeel step. Discussing ideas, weighing options, talking through architecture and reading code are free: leave BuildKeel's artifacts, stages, IDs and commands out of it.
|
|
11
|
+
|
|
12
|
+
BuildKeel comes in when the user starts a BuildKeel command, or when you are about to change a file (see "Before changing code"). Once that is done, the conversation is free again. Start a BuildKeel command only when the user asks for it, by typing it or in their own words, such as "let's capture this" or "build the next task": never on your own initiative, and never because it would be the next step. /bk-approve, /bk-done, /bk-init, /bk-migrate and /bk-models start only when the user types them, since they approve, finish, set up, migrate or choose the person's models: when asked for one in words, tell the user to type it. /bk-status, /bk-settings and /bk-stats only read, and you may run them on your own; /bk-pause when the user says words such as "let's stop here", since it saves nothing until they agree.
|
|
13
|
+
|
|
14
|
+
## The spec tree
|
|
15
|
+
|
|
16
|
+
Read and change requirements, stories, tasks and test plans only through the BuildKeel tools: `query`, `get_context` and `get_template` to read, `save_draft` to write, `approve` only when the user confirms. Pass `workspace`, the absolute path of this project's folder, on every call to a BuildKeel tool. Never create or edit files in the spec tree yourself. Approved versions and records (`versions/`, `approvals/`, `completions/`, `repins/`) are never edited; to change an approved artifact, save the whole changed file with `save_draft`, which opens its next version. A spec tree is Spec-driven or Full SDLC, as BuildKeel's session report says. In a Spec-driven tree nothing is approved: the work is planned as changes, each with a proposal, spec changes, a design and tasks, saved with `save_draft` while it is open; capability specs (`capabilities/<CODE>/versions/`) change only when a change is finished, and a change's records (`archive.yaml`, `discarded.yaml`, `completions/`) are never edited. When BuildKeel reports suspects, offer to review them with /bk-impact; whether each is still valid or needs change is the user's decision. When the user changes behavior that looked wrong while building, the spec changes first: in Full SDLC, the next versions of everything it affects, approved before you build on them; in a Spec-driven tree, through the open change. /bk-build describes each path.
|
|
17
|
+
|
|
18
|
+
Nothing goes into the spec tree unseen. Before you save anything to it, show what changes, in full, in your reply, and ask in plain text at its end, never inside your question tool. Agreement saves it; anything else is feedback: discuss it, then list each point with how it was addressed, show the final version, and save only once the user agrees. When work would change a document the user agreed, say which, what and why, and take it through the same review, one edit at a time. Never add, change or remove a requirement, criterion, scenario or task on your own initiative. Report each tick in a line; do not ask about ticks.
|
|
19
|
+
|
|
20
|
+
A team can rename the stages of its process and add stages of its own. When it has, BuildKeel's session report lists the stages as the team names them: use those names with the user, in each command's help, its questions and its output. A renamed stage is still that stage to BuildKeel (a "feature" is a user story), and the tools accept either name.
|
|
21
|
+
|
|
22
|
+
## Before changing code
|
|
23
|
+
|
|
24
|
+
Every code change belongs to the active unit of this working tree: a task, a story built without tasks, a defect or an ad-hoc unit, and in a Spec-driven tree a change, a defect or an ad-hoc unit. If there is none, BuildKeel either holds the edit or lets it go ahead with a warning, as this person's `code-edits` setting says. When it holds it, ask the user how to go on, with your tool for asking a question with choices if you have one, recommending the choice that fits. When it warns, the edit has gone ahead: tell the user once, in a line, and offer the same choices.
|
|
25
|
+
|
|
26
|
+
1. **Capture what we discussed** with /bk-capture, which turns the conversation into the artifacts the team's process needs, to approve and then build; in a Spec-driven tree, into a change, which needs no approval. If they choose it, start it, and change nothing more until a unit is active. Recommend it when the conversation shaped new work.
|
|
27
|
+
2. **Start the unit it belongs to** with /bk-build <ID>, when the change is part of planned work.
|
|
28
|
+
3. **Record it as an ad-hoc unit** with a short title you propose, and start it as /bk-build does for a description: for a small change that belongs to no planned work.
|
|
29
|
+
4. **Go ahead without a unit.** Only the user can choose this, for just the files at hand (offer this first) or for the whole working tree: then call the BuildKeel `manage` tool with `action: "untracked"`, and `scope: "files"` with the files or folders, or `scope: "tree"`, first, and tell them the change will belong to no unit. Files git ignores are never held, so they need none of this.
|
|
30
|
+
|
|
31
|
+
When the user reports a defect, or a test fails in work that was finished, offer to record a defect with /bk-new defect, which sorts a report first. Call `get_context` when you need the unit's requirements, design and test cases again.
|
|
32
|
+
|
|
33
|
+
Change files with your file editing tools, never through the shell (such as `sed -i`, `echo >` or `mv` over a file): BuildKeel checks each edit made with those tools, and an edit made around them escapes its checks.
|
|
34
|
+
|
|
35
|
+
If BuildKeel says a change is outside the areas the active unit relates to, tell the user: carry on if it belongs to the unit, and otherwise ask which unit it belongs to.
|
|
36
|
+
|
|
37
|
+
## Commits
|
|
38
|
+
|
|
39
|
+
End every commit message with the active unit's line, after a blank line:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
Add the reset endpoint
|
|
43
|
+
|
|
44
|
+
BuildKeel-Unit: TK-047
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
When a commit does exactly one task of a change, add `BuildKeel-Task: <task number>`, such as `BuildKeel-Task: 1.2`, on the next line. Where BuildKeel is kept out of the repository, write `Refs: TK-047` (or `Refs: CH-004 task 1.2`) instead. If the message has other trailer lines, such as `Co-Authored-By`, keep them all in that last block with no blank line between them, so git reads them as trailers. Use the active unit's ID, never another unit's. Do not rewrite commits that are already made.
|
|
48
|
+
|
|
49
|
+
## Tests
|
|
50
|
+
|
|
51
|
+
When you write a test for a test case, put the test case's ID in square brackets in the test's name, such as `it("emails a reset link [US-012-TC3]", ...)`. A test may carry several IDs, one per bracket: `[US-012-TC3] [US-012-TC4]`; a bracket holding several tags nothing. The test cases that apply to the unit are in its context: its own plan's and its story's. In a Spec-driven tree, a test carries the ID of the scenario it checks, such as `it("refuses an expired link [AUTH-R3-S1]", ...)`. A defect's regression test carries the defect's ID, such as `[DEF-005]`, and must fail without the fix.
|
|
52
|
+
|
|
53
|
+
A test written before BuildKeel may be matched to a test case instead of tagged; the unit's context lists those matches. When you change such a test, add its test case's ID to its name too; BuildKeel drops the match when the unit is finished.
|
|
54
|
+
|
|
55
|
+
Run the tests with a JUnit XML reporter, writing the report under `.buildkeel/` (git ignores it; where BuildKeel is kept out, under the folder the session report names), and record each report with the BuildKeel `test_results` tool. For example:
|
|
56
|
+
|
|
57
|
+
- Vitest: `npx vitest run --reporter=default --reporter=junit --outputFile.junit=.buildkeel/junit.xml`
|
|
58
|
+
- Jest: `npx jest --reporters=default --reporters=jest-junit` with `JEST_JUNIT_OUTPUT_FILE=.buildkeel/junit.xml`
|
|
59
|
+
- pytest: `pytest --junitxml=.buildkeel/junit.xml`
|
|
60
|
+
- Node's test runner: `node --test --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=.buildkeel/junit.xml`
|
|
61
|
+
- Go: `gotestsum --junitfile .buildkeel/junit.xml`
|
|
62
|
+
- Maven and Gradle write JUnit XML already, under `target/surefire-reports/` and `build/test-results/`.
|
|
63
|
+
|
|
64
|
+
Results are local to this working tree. A result goes stale when the code or the test plan changes, so run the tests again after changing code.
|
|
65
|
+
|
|
66
|
+
## Finishing
|
|
67
|
+
|
|
68
|
+
When the unit's work is committed and its test cases pass, finish it with /bk-done. Before you push, open a pull request or merge while a unit is active, tell the user it is not finished and to run /bk-done before merging, then go ahead. Finishing writes a permanent completion record, so it is the user's decision: show what it will record and ask first.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: adhoc
|
|
3
|
+
version: 2
|
|
4
|
+
description: A small change recorded so that every commit traces to a unit of work.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
scope: { type: list }
|
|
8
|
+
sections:
|
|
9
|
+
Description: { required: true }
|
|
10
|
+
Notes: { offered: "Links, and anything that fits no other section." }
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Description
|
|
14
|
+
|
|
15
|
+
<!-- What changed and why, in a sentence or two. -->
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: adr
|
|
3
|
+
version: 1
|
|
4
|
+
description: An architecture decision record, for a decision that is hard to reverse, surprising without its context, and the result of a real trade-off. Once accepted it is never edited; a new ADR replaces it.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
replaces: { type: link }
|
|
8
|
+
shapes: { type: list }
|
|
9
|
+
sections:
|
|
10
|
+
Context: { required: true }
|
|
11
|
+
Decision: { required: true }
|
|
12
|
+
Alternatives: { required: true }
|
|
13
|
+
Consequences: { required: true }
|
|
14
|
+
Notes: { offered: "Background, links, and anything from a source that fits no other section." }
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Context
|
|
18
|
+
|
|
19
|
+
<!-- The situation and the forces at play that made a decision necessary. -->
|
|
20
|
+
|
|
21
|
+
## Decision
|
|
22
|
+
|
|
23
|
+
<!-- What was decided, in one or two sentences. -->
|
|
24
|
+
|
|
25
|
+
## Alternatives
|
|
26
|
+
|
|
27
|
+
<!-- One line per alternative weighed, with why it was not chosen. -->
|
|
28
|
+
|
|
29
|
+
## Consequences
|
|
30
|
+
|
|
31
|
+
<!-- What becomes easier and what becomes harder, including what the team now has to live with. List the requirements and designs it shapes in the shapes field. -->
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: defect
|
|
3
|
+
version: 3
|
|
4
|
+
description: "A defect: code that does not do what was agreed. Set source to reported (by users, customers or testers; approved before work on it starts) or found (while building or testing; the unit being built is its parent, with the test case that found it)."
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
source: { required: true }
|
|
8
|
+
parent: { type: link }
|
|
9
|
+
requirement: {}
|
|
10
|
+
testCase: {}
|
|
11
|
+
severity: {}
|
|
12
|
+
scope: { type: list }
|
|
13
|
+
sections:
|
|
14
|
+
Description: { required: true, tracked: true }
|
|
15
|
+
Steps to reproduce: {}
|
|
16
|
+
Expected: {}
|
|
17
|
+
Actual: {}
|
|
18
|
+
Notes: { offered: "Logs, links, and anything from a report that fits no other section." }
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Description
|
|
22
|
+
|
|
23
|
+
<!-- What is wrong. -->
|
|
24
|
+
|
|
25
|
+
## Steps to reproduce
|
|
26
|
+
|
|
27
|
+
<!-- Numbered steps. -->
|
|
28
|
+
|
|
29
|
+
## Expected
|
|
30
|
+
|
|
31
|
+
<!-- What should happen. -->
|
|
32
|
+
|
|
33
|
+
## Actual
|
|
34
|
+
|
|
35
|
+
<!-- What happens instead. -->
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: design
|
|
3
|
+
version: 2
|
|
4
|
+
description: How a stage's work is built, and the decisions behind it. Fill in what applies; add an offered section only when the work needs it.
|
|
5
|
+
fields:
|
|
6
|
+
parent: { required: true, type: link }
|
|
7
|
+
sections:
|
|
8
|
+
Summary: { required: true }
|
|
9
|
+
Context: { required: true }
|
|
10
|
+
Goals and non-goals: {}
|
|
11
|
+
Design: { required: true, tracked: true }
|
|
12
|
+
Decisions: { tracked: true }
|
|
13
|
+
Risks and trade-offs: {}
|
|
14
|
+
Approaches: { offered: "The approaches considered, the one chosen and why, and the non-goals and things to avoid, from the conversation only." }
|
|
15
|
+
Architecture: { tracked: true, offered: "The components, how they connect, and where each one runs." }
|
|
16
|
+
Data: { tracked: true, offered: "What is stored, its shape, and how it changes over time." }
|
|
17
|
+
Interfaces: { tracked: true, offered: "The APIs, events and contracts other code relies on." }
|
|
18
|
+
Security and privacy: { offered: "Who can do what, which data is sensitive, and how it is protected." }
|
|
19
|
+
Performance and scale: { offered: "The expected load, the limits, and how the design meets them." }
|
|
20
|
+
Operations: { offered: "How it is deployed, monitored and supported." }
|
|
21
|
+
Rollout and rollback: { offered: "How it is released, and how it is undone if something goes wrong." }
|
|
22
|
+
Testing approach: { offered: "How the design is tested beyond the test cases in its test plans." }
|
|
23
|
+
Open questions: { offered: "Questions that can safely wait, each with who answers it and by when. A question whose answer would change the specs or tasks is answered first." }
|
|
24
|
+
Notes: { offered: "Background, links, and anything from a source that fits no other section." }
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Summary
|
|
28
|
+
|
|
29
|
+
<!-- Two or three sentences: what is built and how. Approved with the document, and what the agent reads about it when working under it. -->
|
|
30
|
+
|
|
31
|
+
## Context
|
|
32
|
+
|
|
33
|
+
<!-- What exists today, and why this work is needed. -->
|
|
34
|
+
|
|
35
|
+
## Goals and non-goals
|
|
36
|
+
|
|
37
|
+
<!-- What the design must achieve, and what it deliberately leaves out. -->
|
|
38
|
+
|
|
39
|
+
## Design
|
|
40
|
+
|
|
41
|
+
<!-- How it works: the parts, what each does, and how they fit together. -->
|
|
42
|
+
|
|
43
|
+
## Decisions
|
|
44
|
+
|
|
45
|
+
<!-- One entry per decision: ### 1. <the choice>, then why, and the alternatives considered. -->
|
|
46
|
+
|
|
47
|
+
## Risks and trade-offs
|
|
48
|
+
|
|
49
|
+
<!-- What could go wrong or is given up, and how that is handled. -->
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: epic
|
|
3
|
+
version: 1
|
|
4
|
+
description: A body of work that delivers part of a business idea, broken down into user stories.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
parent: { required: true, type: link }
|
|
8
|
+
scope: { type: list }
|
|
9
|
+
sections:
|
|
10
|
+
Summary: { required: true }
|
|
11
|
+
Scope: { required: true, tracked: true }
|
|
12
|
+
Out of scope: { tracked: true }
|
|
13
|
+
Open questions: { offered: "Questions left open, each with what it is about, to settle later. They do not block approval: the approval summary lists them." }
|
|
14
|
+
Notes: {}
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Summary
|
|
18
|
+
|
|
19
|
+
<!-- Two or three sentences. Approved with the epic, and what the agent reads about it when working on its stories' tasks. -->
|
|
20
|
+
|
|
21
|
+
## Scope
|
|
22
|
+
|
|
23
|
+
<!-- What this epic delivers. -->
|
|
24
|
+
|
|
25
|
+
## Out of scope
|
|
26
|
+
|
|
27
|
+
<!-- What it deliberately leaves out. -->
|
|
28
|
+
|
|
29
|
+
## Notes
|
|
30
|
+
|
|
31
|
+
<!-- Background and links. Changes here never make other work suspect. -->
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: idea
|
|
3
|
+
version: 1
|
|
4
|
+
description: A business idea, the top of the lineage. States the problem worth solving and how success is measured.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
scope: { type: list }
|
|
8
|
+
sections:
|
|
9
|
+
Summary: { required: true }
|
|
10
|
+
Problem: { required: true, tracked: true }
|
|
11
|
+
Goals: { required: true, tracked: true, items: { prefix: G, style: list } }
|
|
12
|
+
Success measures: { tracked: true }
|
|
13
|
+
Open questions: { offered: "Questions left open, each with what it is about, to settle later. They do not block approval: the approval summary lists them." }
|
|
14
|
+
Notes: {}
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Summary
|
|
18
|
+
|
|
19
|
+
<!-- Two or three sentences. Approved with the idea, and what the agent reads about it when working on anything below it. -->
|
|
20
|
+
|
|
21
|
+
## Problem
|
|
22
|
+
|
|
23
|
+
<!-- Who has the problem, how often, and what it costs them today. -->
|
|
24
|
+
|
|
25
|
+
## Goals
|
|
26
|
+
|
|
27
|
+
<!-- One entry per goal, each an outcome that can be measured after release, with an ID: - **BI-01-G1** Customers recover their own accounts. -->
|
|
28
|
+
|
|
29
|
+
## Success measures
|
|
30
|
+
|
|
31
|
+
<!-- How you will know the goals are met. -->
|
|
32
|
+
|
|
33
|
+
## Notes
|
|
34
|
+
|
|
35
|
+
<!-- Background and links. Changes here never make other work suspect. -->
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: capability
|
|
3
|
+
version: 1
|
|
4
|
+
description: How one lasting behavior of the system works now. A purpose, then requirements, each with scenarios a test can check. Changed only by finishing a change.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
sections:
|
|
8
|
+
Purpose: { required: true }
|
|
9
|
+
Requirements: { required: true, tracked: true, items: { prefix: R, style: heading, children: { prefix: S, style: heading } } }
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
<!-- What this capability covers and why it exists, in one or two sentences. -->
|
|
15
|
+
|
|
16
|
+
## Requirements
|
|
17
|
+
|
|
18
|
+
<!--
|
|
19
|
+
One heading per requirement, with its ID and a short name. Under it, the behavior in one or two sentences using SHALL or MUST, at most 500 characters.
|
|
20
|
+
Then one heading per scenario, with its ID and a short name, and a WHEN line and a THEN line a test can check. Every requirement has at least one scenario.
|
|
21
|
+
|
|
22
|
+
### AUTH-R3 Reset link expires
|
|
23
|
+
The system SHALL expire a reset link 30 minutes after it is sent.
|
|
24
|
+
|
|
25
|
+
#### AUTH-R3-S1 Expired link
|
|
26
|
+
- **WHEN** a user opens a reset link 31 minutes after it was sent
|
|
27
|
+
- **THEN** they are told the link expired and offered a new one
|
|
28
|
+
-->
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: proposal
|
|
3
|
+
version: 2
|
|
4
|
+
description: Why a change is made, what it changes, and which capabilities it adds or alters. Its spec changes say exactly how behavior changes.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
capabilities: { type: list }
|
|
8
|
+
noSpecChanges: { type: boolean }
|
|
9
|
+
sections:
|
|
10
|
+
Why: { required: true }
|
|
11
|
+
What changes: { required: true }
|
|
12
|
+
Capabilities: { required: true }
|
|
13
|
+
Impact: { required: true }
|
|
14
|
+
Approaches: { offered: "The approaches considered, the one chosen and why, and the non-goals and things to avoid, from the conversation only." }
|
|
15
|
+
Non-goals: { offered: "What the change deliberately leaves out, so nobody builds it by mistake." }
|
|
16
|
+
Open questions: { offered: "Questions left open, each with what it is about, to settle later. They do not block approval: the approval summary lists them." }
|
|
17
|
+
Notes: { offered: "Background, links, and anything from a source that fits no other section." }
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Why
|
|
21
|
+
|
|
22
|
+
<!-- The problem or the opportunity, and why it is worth doing now. One or two short paragraphs. -->
|
|
23
|
+
|
|
24
|
+
## What changes
|
|
25
|
+
|
|
26
|
+
<!-- One line per change in behavior, interface or data. Mark each change that breaks existing users or callers with **BREAKING**. -->
|
|
27
|
+
|
|
28
|
+
## Capabilities
|
|
29
|
+
|
|
30
|
+
<!--
|
|
31
|
+
Each capability the change adds or alters, by code, with what changes in it. The capabilities field lists the same codes.
|
|
32
|
+
|
|
33
|
+
- **AUTH** (modified): reset links expire after 30 minutes.
|
|
34
|
+
- **SMS** (new): sending one-time codes by text message.
|
|
35
|
+
|
|
36
|
+
A change that alters no behavior, such as a refactor, says so here, sets noSpecChanges: true, and has no spec changes.
|
|
37
|
+
-->
|
|
38
|
+
|
|
39
|
+
## Impact
|
|
40
|
+
|
|
41
|
+
<!-- The code, APIs, dependencies, data and systems the change affects. -->
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: spec-change
|
|
3
|
+
version: 1
|
|
4
|
+
description: How a change alters one capability's requirements. Existing requirements are named by ID, so a rename keeps its ID.
|
|
5
|
+
fields:
|
|
6
|
+
capability: { required: true }
|
|
7
|
+
title: {}
|
|
8
|
+
base: {}
|
|
9
|
+
sections:
|
|
10
|
+
Purpose: { offered: "For a new capability: what it covers and why it exists, in one or two sentences." }
|
|
11
|
+
Added: { tracked: true, items: { prefix: R, style: heading, children: { prefix: S, style: heading } } }
|
|
12
|
+
Modified: { tracked: true, items: { prefix: R, style: heading, children: { prefix: S, style: heading } } }
|
|
13
|
+
Removed: { tracked: true, items: { prefix: R, style: heading } }
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<!-- The capability field names the capability by its code. For a new capability, also give its title (title: Text messages) and add a Purpose section. Leave out Added, Modified or Removed when the change has nothing in it. -->
|
|
17
|
+
|
|
18
|
+
## Added
|
|
19
|
+
|
|
20
|
+
<!--
|
|
21
|
+
New requirements, each with its scenarios, written as the capability spec writes them.
|
|
22
|
+
|
|
23
|
+
### AUTH-R3 Reset link expires
|
|
24
|
+
The system SHALL expire a reset link 30 minutes after it is sent.
|
|
25
|
+
|
|
26
|
+
#### AUTH-R3-S1 Expired link
|
|
27
|
+
- **WHEN** a user opens a reset link 31 minutes after it was sent
|
|
28
|
+
- **THEN** they are told the link expired and offered a new one
|
|
29
|
+
-->
|
|
30
|
+
|
|
31
|
+
## Modified
|
|
32
|
+
|
|
33
|
+
<!-- Existing requirements by ID, each with its full new text and every scenario it keeps or gains, not only what differs. A new name under the same ID renames it. -->
|
|
34
|
+
|
|
35
|
+
## Removed
|
|
36
|
+
|
|
37
|
+
<!--
|
|
38
|
+
Requirements that no longer apply, by ID, each with why and what users or callers do instead.
|
|
39
|
+
|
|
40
|
+
### AUTH-R1 Sign in with a security question
|
|
41
|
+
**Reason**: security questions are replaced by email codes.
|
|
42
|
+
**Migration**: users set up email codes at their next sign-in.
|
|
43
|
+
-->
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: tasks
|
|
3
|
+
version: 2
|
|
4
|
+
description: The work of a change, as numbered tasks in groups ordered so that each builds on the ones before. A task is ticked once its verification passes.
|
|
5
|
+
fields:
|
|
6
|
+
parent: { required: true, type: link }
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. <What this group delivers>
|
|
10
|
+
|
|
11
|
+
<!--
|
|
12
|
+
One checkbox per task, numbered within its group, saying what is done, with its lines under it: Files (what it creates, changes and tests), Uses (each with where it comes from: an earlier task, a file, or a library at the version the project depends on), Delivers (what later tasks rely on, with its signature), and Verify (the command and the result expected, naming the scenarios it checks). Interfaces: none stands for Uses and Delivers when a task uses and delivers nothing. Leave the code itself out.
|
|
13
|
+
Each group includes the tests and documentation its own work needs. Tick a task only once its verification passed; its Built line is written then.
|
|
14
|
+
|
|
15
|
+
- [ ] 1.1 Add the issue time to reset tokens.
|
|
16
|
+
Files: change src/auth/token.ts; test test/auth/token.test.ts
|
|
17
|
+
Uses: signToken (from src/auth/sign.ts)
|
|
18
|
+
Delivers: issuedAt on ResetToken
|
|
19
|
+
Verify: npx vitest run test/auth/token.test.ts, where the tests for a new and an old token pass
|
|
20
|
+
- [ ] 1.2 Refuse links older than 30 minutes.
|
|
21
|
+
Files: change src/auth/reset.ts; test test/auth/reset.test.ts
|
|
22
|
+
Uses: issuedAt on ResetToken (from 1.1)
|
|
23
|
+
Delivers: isExpired(token: ResetToken, now: Date): boolean
|
|
24
|
+
Verify: npx vitest run test/auth/reset.test.ts, where [AUTH-R3-S1] passes
|
|
25
|
+
-->
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: story
|
|
3
|
+
version: 1
|
|
4
|
+
description: A user story with numbered acceptance criteria. Its test plan covers every criterion.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
parent: { required: true, type: link }
|
|
8
|
+
scope: { type: list }
|
|
9
|
+
sections:
|
|
10
|
+
Summary: { required: true }
|
|
11
|
+
Story: { required: true, tracked: true }
|
|
12
|
+
Acceptance criteria: { required: true, tracked: true, items: { prefix: AC, style: list } }
|
|
13
|
+
Open questions: { offered: "Questions left open, each with what it is about, to settle later. They do not block approval: the approval summary lists them." }
|
|
14
|
+
Notes: {}
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Summary
|
|
18
|
+
|
|
19
|
+
<!-- One or two sentences. Approved with the story, and what the agent reads about it when it is not the work at hand. -->
|
|
20
|
+
|
|
21
|
+
## Story
|
|
22
|
+
|
|
23
|
+
<!-- As a <who>, I want <what>, so that <why>. -->
|
|
24
|
+
|
|
25
|
+
## Acceptance criteria
|
|
26
|
+
|
|
27
|
+
<!-- One entry per criterion, each one behavior a test can check, with an ID: - **US-001-AC1** A reset link is emailed within one minute. -->
|
|
28
|
+
|
|
29
|
+
## Notes
|
|
30
|
+
|
|
31
|
+
<!-- Background, examples and links. Changes here never make other work suspect. -->
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: task
|
|
3
|
+
version: 2
|
|
4
|
+
description: A piece of a story built in one code repository.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
parent: { required: true, type: link }
|
|
8
|
+
repo: { required: true }
|
|
9
|
+
scope: { type: list }
|
|
10
|
+
sections:
|
|
11
|
+
Description: { required: true, tracked: true }
|
|
12
|
+
Files: { required: true }
|
|
13
|
+
Uses: { required: true }
|
|
14
|
+
Delivers: { required: true }
|
|
15
|
+
Verify: { required: true }
|
|
16
|
+
Interfaces: { offered: "none, in place of Uses and Delivers, for a task that uses and delivers nothing." }
|
|
17
|
+
Open questions: { offered: "Questions left open, each with what it is about, to settle later. They do not block approval: the approval summary lists them." }
|
|
18
|
+
Notes: {}
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Description
|
|
22
|
+
|
|
23
|
+
<!-- What to build. Name the repository in the repo field, and list the paths it will touch in the scope field when you know them. Leave the code itself out: only what the implementer cannot decide alone, such as names, signatures and values from the spec. -->
|
|
24
|
+
|
|
25
|
+
## Files
|
|
26
|
+
|
|
27
|
+
<!-- The files it creates, changes and tests, found from the code, one per line, such as "- create: src/auth/expiry.ts", "- change: src/auth/reset.ts" and "- test: test/auth/reset.test.ts". -->
|
|
28
|
+
|
|
29
|
+
## Uses
|
|
30
|
+
|
|
31
|
+
<!-- What it uses, each with where it comes from (an earlier task, a file, or a library at the version the project depends on), such as "- issuedAt on ResetToken (from TK-011)", "- parseToken (from src/auth/tokens.ts)" or "- messages.create (from twilio 4.23.0)"; none when it uses nothing. -->
|
|
32
|
+
|
|
33
|
+
## Delivers
|
|
34
|
+
|
|
35
|
+
<!-- What later tasks rely on, with its signature, such as "- isExpired(token: ResetToken, now: Date): boolean", or none; this is the plan, and what is built is recorded when the task is finished. -->
|
|
36
|
+
|
|
37
|
+
## Verify
|
|
38
|
+
|
|
39
|
+
<!-- The command to run and the result expected, naming the test cases it checks, such as "npx vitest run test/auth/reset.test.ts, where [US-012-TC3] passes". -->
|
|
40
|
+
|
|
41
|
+
## Notes
|
|
42
|
+
|
|
43
|
+
<!-- Implementation hints and links. Changes here never make other work suspect. -->
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: test-plan
|
|
3
|
+
version: 2
|
|
4
|
+
description: The test cases for an artifact. Every test case declares which criteria or goals it covers.
|
|
5
|
+
fields:
|
|
6
|
+
parent: { required: true, type: link }
|
|
7
|
+
sections:
|
|
8
|
+
Approach: {}
|
|
9
|
+
Test cases: { required: true, tracked: true, items: { prefix: TC, style: heading, covers: required } }
|
|
10
|
+
Notes: { offered: "Test data, environments, and anything that fits no other section." }
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Approach
|
|
14
|
+
|
|
15
|
+
<!-- How the tests are run: unit, integration, end to end. -->
|
|
16
|
+
|
|
17
|
+
## Test cases
|
|
18
|
+
|
|
19
|
+
<!--
|
|
20
|
+
One heading per test case, with an ID, then a covers line and steps whose outcome a test can check.
|
|
21
|
+
A story's plan covers every criterion; a task's plan covers the task (TK-001) or its story's criteria;
|
|
22
|
+
an epic's plan covers stories under it or their criteria; a business idea's plan covers its epics or goals.
|
|
23
|
+
|
|
24
|
+
### US-001-TC1 Reset link arrives
|
|
25
|
+
covers: [US-001-AC1]
|
|
26
|
+
|
|
27
|
+
1. Request a reset for a known address.
|
|
28
|
+
2. The email arrives within one minute.
|
|
29
|
+
-->
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
template: thread
|
|
3
|
+
version: 1
|
|
4
|
+
description: A paused exploration with no unit or change yet, saved so it can be resumed. It has no stages and no approval; it ends when it is captured or dropped.
|
|
5
|
+
fields:
|
|
6
|
+
title: { required: true }
|
|
7
|
+
sections:
|
|
8
|
+
Intent: { required: true }
|
|
9
|
+
Approaches: { required: true }
|
|
10
|
+
Decisions and constraints: { required: true }
|
|
11
|
+
Dead ends and open questions: { required: true }
|
|
12
|
+
Next: { required: true }
|
|
13
|
+
The user's words: { required: true }
|
|
14
|
+
Code read: { offered: "Pointers to the code that was read, one per line: the file, with the lines or names that mattered." }
|
|
15
|
+
Spikes: { offered: "Each spike: its branch, or the files it left, and what it showed." }
|
|
16
|
+
Notes: { offered: "Background, links, and anything that fits no other section." }
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Intent
|
|
20
|
+
|
|
21
|
+
<!-- What the user wants to achieve, and the idea as it stands. -->
|
|
22
|
+
|
|
23
|
+
## Approaches
|
|
24
|
+
|
|
25
|
+
<!-- The approaches discussed, and which way the discussion is leaning. "None weighed yet" when there were none. -->
|
|
26
|
+
|
|
27
|
+
## Decisions and constraints
|
|
28
|
+
|
|
29
|
+
<!-- What was settled, and the limits the work must respect. "None yet" when there are none. -->
|
|
30
|
+
|
|
31
|
+
## Dead ends and open questions
|
|
32
|
+
|
|
33
|
+
<!-- What was tried or ruled out, with why, and the questions still open. -->
|
|
34
|
+
|
|
35
|
+
## Next
|
|
36
|
+
|
|
37
|
+
<!-- The next thing to discuss when the thread is resumed. -->
|
|
38
|
+
|
|
39
|
+
## The user's words
|
|
40
|
+
|
|
41
|
+
<!-- The user's own statements that matter, quoted, kept apart from the agent's proposals. -->
|