Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions BOOTSTRAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ It works for a new, empty Project and for an existing Project with code, rules,

Read these Kit files whole, in this order:

1. [CONTEXT.md](./CONTEXT.md)
1. [GLOSSARY.md](./GLOSSARY.md)
2. [core/rules-file.md](./core/rules-file.md)
3. Every page in [core/agents/](./core/agents/)
4. [checks/README.md](./checks/README.md)
Expand Down Expand Up @@ -124,8 +124,8 @@ Write these, fitted to the Project:
| `docs/agents/*.md` | [core/agents/](./core/agents/), with Project commands and paths filled in |
| `docs/checks/*.md` | The check specs that the Project builds, each with its "Implemented by" line |
| `docs/adr/` | One ADR for the Review mode; one per stack-convention conflict; one per rejected Kit rule |
| `CONTEXT.md` | [templates/context.md](./templates/context.md), seeded from the Purpose answer |
| Skills folder | [skills/README.md](./skills/README.md) |
| `GLOSSARY.md` | [templates/glossary.md](./templates/glossary.md), seeded from the Purpose answer |
| Skills folder and `skills-lock.json` | [skills/README.md](./skills/README.md): copy the Kit's own skills, install every pinned skill |
| Tracker labels | [core/agents/issue-tracker.md](./core/agents/issue-tracker.md#mandatory-labels) |

Rules for this step:
Expand All @@ -139,6 +139,11 @@ Rules for this step:
[core/agents/verification.md](./core/agents/verification.md) creates it with the first user-visible feature.
- In an existing Project, keep every existing rule that the Owner kept.
Put it where the Kit layout says it belongs.
- In an existing Project with `CONTEXT.md` glossaries, move each one to `GLOSSARY.md` with a Git move, and update every link to it.
- Install the pinned skills with the commands in [adapters/tools.md](./adapters/tools.md#skills-installer).
Compare each hash in `skills-lock.json` with [skills/README.md](./skills/README.md).
A different hash means the upstream skill changed: read the change, and ask the Owner before you keep it.
- Fill the Agent skills block in `.rules` and the operations section of `docs/agents/issue-tracker.md`, because the pinned skills read them to find the tracker.

## Step 6: build the checks

Expand Down Expand Up @@ -170,6 +175,7 @@ When the Owner chooses a higher budget for now, record it in an ADR with the dat
- "What must you do before your first edit?"
- "What do you do after two failed attempts to fix one test?"
- "Where does a new domain term go?"
- "The Owner approved an idea. How does it become work, and which Ticket do you start first?"
3. Fix each file that led to a wrong answer, and ask again.
4. Run every check once on the whole Project.
Record any existing failure as known red; do not fix it in the Bootstrap change.
Expand Down
36 changes: 35 additions & 1 deletion CONTEXT.md → GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ A Project builds each check spec as a real check in its own stack.
The executable form of a check spec in a Project: a hook, a lint rule, a test, or a CI job.

**Evidence bundle**:
The proof that a change works, kept in the pull request body: the tier, the fail-first test, check results, and runtime evidence.
The proof that a change works, kept in the pull request body: the tier, the fail-first test, check results, the Safety proof, and runtime evidence.

**Fail-first test**:
A test that fails on the code before the change and passes after it.
Expand All @@ -107,6 +107,40 @@ The full suite is not a Feedback loop, because it runs only when the Owner asks.
The maximum wall-clock time of one Feedback loop.
_Avoid_: speed limit, SLA, performance budget.

## Planning

**Spec**:
One tracker issue that describes a whole change from the user's side: the problem, the solution, user stories, implementation and testing decisions, and what is out of scope.
_Avoid_: PRD, design doc.

**Ticket**:
One thin slice of a Spec, published as its own issue, that cuts through every layer and fits one fresh agent session.
_Avoid_: subtask, story.

**Blocking edge**:
A link that says one Ticket cannot start until another Ticket is closed.

**Frontier**:
The open Tickets whose blockers are all closed and that nobody has claimed with an owner label or an assignee.

**Map**:
One tracker issue that charts work too big for one session, with decision tickets as its sub-issues.
Each decision ticket settles a question, not a slice of code.

**Expected Tier**:
The Tier that a Ticket states from the tier map before code exists.
The tier check on the final revision replaces it.

**Design sketch**:
The types, signatures, and module boundaries of a change, written as code with no bodies, before the implementation.
_Avoid_: design doc, architecture doc.

**Integration branch**:
The one short-lived branch on which every Ticket that `implement-spec` builds merges, and which lands as one pull request.

**Safety fact**:
The one fact that a change is safe because of, proven by a run of the real code.

## Verification

**Verification contract**:
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ The agent that bootstraps a project reads the project's own stack and fits the k
## What a project gets

- One rules file that every coding agent reads, with a short reading map to task pages.
- Task pages for engineering, testing, git, review and merge, delegation, documentation, domain language, the issue tracker, runtime verification, corrections, and security.
- A planning pipeline from idea to proof: the Owner's Decisions become a Spec, the Spec becomes Tickets that agents can build in parallel, and each change carries proof that a run produced, scaled to its risk.
- Task pages for planning, engineering, testing, git, review and merge, delegation, documentation, domain language, the issue tracker, runtime verification, corrections, and security.
- A set of check specs, each built as a real check in the project's own stack and proved with a failing case and a passing case.
- A time budget for the Git hook, the affected tests, and CI, so that checks stay fast as the code grows.
- No code comments, no dead code, and no duplicate code, so that each fact has one home and there is less code to check.
Expand Down Expand Up @@ -45,7 +46,7 @@ Read UPGRADE.md there and follow it.
| ---------------------------- | ---------------------------------------------------------------------------------------- |
| [BOOTSTRAP.md](./BOOTSTRAP.md) | The playbook an agent follows to set up a project |
| [UPGRADE.md](./UPGRADE.md) | The playbook an agent follows to apply newer kit changes to a project |
| [CONTEXT.md](./CONTEXT.md) | The kit's glossary |
| [GLOSSARY.md](./GLOSSARY.md) | The kit's glossary |
| [core/](./core/) | The rules file template and the task pages a project receives |
| [checks/](./checks/) | Check specs: the invariant, a failing case, a passing case, where it runs, its error text |
| [templates/](./templates/) | Task contract, correction, ADR, glossary, HOW-TO, feature map, evidence, risk summary |
Expand Down Expand Up @@ -74,12 +75,13 @@ The kit rests on these ideas.
- Write in Simplified Technical English: short sentences, active voice, one meaning per word.
- Put each sentence on its own line.
- Do not use the em dash.
- Use the terms in [CONTEXT.md](./CONTEXT.md) as written.
- Use the terms in [GLOSSARY.md](./GLOSSARY.md) as written.
- Name no tech stack anywhere.
Name agents, trackers, and tools only in [adapters/](./adapters/) and in the kit's own CI.
- Keep each page under 32,000 bytes, because agents read some pages whole.

## Credits

The skills manifest installs five skills by Matt Pocock from [mattpocock/skills](https://github.com/mattpocock/skills).
The skills manifest pins sixteen skills by Matt Pocock from [mattpocock/skills](https://github.com/mattpocock/skills).
It also pins fifteen skills from pstack, by Lauren Tan (Poteto), through the [backnotprop/pstack](https://github.com/backnotprop/pstack) mirror of [cursor/plugins](https://github.com/cursor/plugins/tree/main/pstack).
The kit does not copy them.
2 changes: 2 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ For each change from step 2:
| Change conflicts with an ADR | Keep the ADR's choice; tell the Owner, and ask only when the reason in the ADR no longer holds |
| Removed rule | Ask the Owner whether to remove it from the Project |
| New check spec | Plan to build it, under step 6 of [BOOTSTRAP.md](./BOOTSTRAP.md) |
| New or changed pinned skill | Plan to install it at the hash in [skills/README.md](./skills/README.md) |
| Removed Kit skill | Ask the Owner whether to delete the Project's copy |

Ask one question per message, with your recommendation.

Expand Down
9 changes: 5 additions & 4 deletions adapters/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This page names tools that fit the Kit's neutral roles.
Each tool is an example; use the Project's or the Owner's own tool when it fills the role.

Last checked: 2026-11-16.
Last checked: 2026-11-19.

## Isolated checkouts

Expand All @@ -23,14 +23,15 @@ Role: install third-party skills and pin them in a lock file.

| Tool | How |
| ---- | --- |
| `skills` CLI (npm package `skills`, version 1.8.1 checked) | `npx skills add <owner>/<repo> --skill <name> --agent <agent>` installs a skill and records it in `skills-lock.json` with a content hash. `npx skills experimental_install --frozen-lockfile` restores skills from the lock file and fails when the lock file would change. |
| `skills` CLI (npm package `skills`, version 1.9.0 checked) | `npx skills add <owner>/<repo> --skill <name> --agent <agent>` installs a skill and records it in `skills-lock.json` with a content hash. `npx skills experimental_install --frozen-lockfile` restores skills from the lock file and fails when the lock file would change. |

Check the installed version's `--help` before you use a flag; the restore command is marked experimental.

Install the Kit's pinned skills, from the Project root:

```text
npx skills add mattpocock/skills --skill grill-me --skill grill-with-docs --skill grilling --skill domain-modeling --skill wait-what --agent codex -y
npx skills@1.9.0 add mattpocock/skills --skill grill-me --skill grilling --skill wait-what --skill grill-with-docs --skill domain-modeling --skill wayfinder --skill research --skill prototype --skill triage --skill to-spec --skill to-tickets --skill implement --skill implement-spec --skill tdd --skill codebase-design --skill code-review --agent codex -y
npx skills@1.9.0 add backnotprop/pstack --skill architect --skill arena --skill sharpen --skill blast-radius --skill interrogate --skill in-your-own-words --skill how --skill why --skill unslop --skill show-me-your-work --skill principle-separate-before-serializing-shared-state --skill principle-redesign-from-first-principles --skill principle-prove-it-works --skill principle-laziness-protocol --skill principle-encode-lessons-in-structure --agent codex -y
```

`--agent codex` installs into `.agents/skills`, the Kit's one skills folder.
Expand All @@ -39,7 +40,7 @@ The other agents read it through the links in [agents.md](./agents.md#the-one-so
Restore them on a new machine, or in CI:

```text
npx skills experimental_install --frozen-lockfile
npx skills@1.9.0 experimental_install --frozen-lockfile --agent codex
```

## Terminal multiplexers
Expand Down
9 changes: 8 additions & 1 deletion adapters/trackers.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This page maps the tracker operations that the Kit uses to commands for each supported tracker.
The default tracker is GitHub Issues.

Last checked: 2026-11-16, against GitHub CLI 2.103.
Last checked: 2026-11-19, against GitHub CLI 2.103.3.

## Operations

Expand All @@ -13,6 +13,13 @@ Last checked: 2026-11-16, against GitHub CLI 2.103.
| Create an issue | `gh issue create --title "<title>" --body-file <file> --label <label>` |
| Add a label | `gh issue edit <number> --add-label <label>` |
| Read an issue | `gh issue view <number> --json title,body,labels,state,comments` |
| Comment on an issue | `gh issue comment <number> --body-file <file>` |
| Close an issue | Comment first, then `gh issue close <number>` |
| Create a sub-issue | `gh issue create --parent <parent> --title "<title>" --body-file <file>` |
| Add a Blocking edge | `gh issue create --blocked-by <number>,<number> ...`, or `gh issue edit <number> --add-blocked-by <blocker>` |
| Count open blockers | `gh issue view <number> --json blockedBy --jq '[.blockedBy.nodes[] \| select(.state == "OPEN")] \| length'` |
| List sub-issues | `gh issue view <parent> --json subIssues --jq '.subIssues.nodes[] \| {number, title, state}'` |
| Claim a decision ticket | `gh issue edit <number> --add-assignee @me` |
| Search issues | `gh issue list --label <label> --state open --json number,title` |
| Link a pull request to an issue | `Closes #<number>` in the pull request body |
| Open a pull request | `gh pr create --base <base> --head <branch> --title "<title>" --body-file <file>` |
Expand Down
2 changes: 1 addition & 1 deletion checks/evidence-bundle.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# evidence-bundle

**Invariant**:
Every pull request body has the sections of the Evidence bundle template: Tier, Task, Fail-first test, Checks, Runtime evidence, and Gaps.
Every pull request body has the sections of the Evidence bundle template: Tier, Task, Fail-first test, Checks, Safety proof, Runtime evidence, and Gaps.
Each section has content, or the words "Not applicable" with a reason.

**Why**:
Expand Down
2 changes: 1 addition & 1 deletion checks/merged-result.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Two pull requests can each pass alone and break the base together, for example b

**Applies when**: always.

**Runs in**: the merge step of the landing workflow, or the forge's merge queue when the Project uses one.
**Runs in**: the merge step of a request to land, or the forge's merge queue when the Project uses one.

**Failing case**:
Two pull requests each add ADR 0042.
Expand Down
1 change: 1 addition & 0 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Core holds the stack-free rules that every Project receives.
| [testing.md](./agents/testing.md) | Behavior tests, the check ladder, the known-red baseline, failure classes, the stopping rule, flaky tests |
| [git.md](./agents/git.md) | Authorization to commit and publish, branches, commits, the CI gate, the merged-result check, stacks |
| [review-and-merge.md](./agents/review-and-merge.md) | Tiers, Review modes, Decisions, the merge contract, the Evidence bundle, the Risk summary |
| [planning.md](./agents/planning.md) | The pipeline from idea to proof: Specs, Tickets, Design sketches, rigor by Expected Tier, proof that runs |
| [delegation.md](./agents/delegation.md) | Subagents inside one Project: fresh sessions, isolated checkouts, exact handoffs, integration |
| [documentation.md](./agents/documentation.md) | One home per fact, HOW-TO, ADR, research, size budget, writing style |
| [domain.md](./agents/domain.md) | Glossaries and the context map |
Expand Down
21 changes: 13 additions & 8 deletions core/agents/delegation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Permission to delegate covers the stages described here, not unrelated work.

The session that delegates is the parent.
The parent owns integration, verification, and publishing.
Subagents never push, open pull requests, or merge on their own.
The parent may give one merge into a local Integration branch to a fresh merger subagent, and then verifies the result.
Subagents never push, open pull requests, or merge a pull request.
The one exception is a research subagent of `wayfinder`: it pushes its own `research/<name>` branch, which never merges and gets no pull request.

## Mandatory: fresh sessions

Expand Down Expand Up @@ -47,22 +49,25 @@ Apply snapshots only inside the new checkout.
Verify that the snapshot matches, for example with a file list and content hashes.
`git diff` alone leaves out new files.

## Default: the implementor and reviewer pipeline
## Default: the implementer and reviewer pipeline

For delegated implementation:

1. An implementor writes the change and its tests, and commits locally.
1. An implementer writes the change and its tests, and commits locally.
2. Two fresh read-only reviewers check it in parallel:
- **Standards**: does it follow the Project's rules and task pages?
- **Spec**: does it do what the task asked, and nothing else?
3. Each fix goes to a fresh implementor, and the result goes to fresh reviewers.
3. Each fix goes to a fresh implementer, and the result goes to fresh reviewers.

Under `one-go-parallel`, each task goes to one general subagent that implements, tests, reviews both axes, and commits, unless the Owner asks for the full pipeline.
Under `implement-spec`, each Frontier Ticket goes to one fresh implementer subagent, which builds it test-first and merges the Integration branch tip into its own branch.
One `code-review` of the whole Integration branch follows the last Ticket.
[planning.md](./planning.md#default-build-a-whole-spec) says when to use it.

## Mandatory: stacked tasks
## Mandatory: blocked tasks

When tasks build on each other, dispatch the bottom task first.
Dispatch the next task when the one below reports a clean result, with that branch tip as its baseline.
Dispatch only tasks on the Frontier.
Dispatch a blocked task when every task that blocks it reports a clean result.
Its baseline is the Integration branch tip after those merges, or the tip of the one branch it builds on.

## Mandatory: requested Code review

Expand Down
2 changes: 1 addition & 1 deletion core/agents/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ When you change behavior, update the document that owns it in the same change.
| How to call a module now | That module's `HOW-TO.md` |
| A decision and its reasons | An ADR in `docs/adr/` |
| The reason behind code | Never a code comment; see [engineering.md](./engineering.md#mandatory-no-code-comments) |
| A domain term | The `CONTEXT.md` that owns it; see [domain.md](./domain.md) |
| A domain term | The `GLOSSARY.md` that owns it; see [domain.md](./domain.md) |
| A check's invariant | `docs/checks/<name>.md` |
| A user-visible feature's verification | Its Feature map; see [verification.md](./verification.md) |
| A finding from outside research | `docs/research/` |
Expand Down
13 changes: 7 additions & 6 deletions core/agents/domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ This page applies before you add or change a domain term, or when a word in a ta

## Mandatory: glossaries

The Project's domain language lives in glossaries named `CONTEXT.md`.
The Project's domain language lives in glossaries named `GLOSSARY.md`.
A glossary defines terms; it holds no implementation detail, no plan, and no decision.

A Project with one domain has one `CONTEXT.md` at the root.
A Project with several domains has `CONTEXT-MAP.md` at the root.
It names each domain, where its `CONTEXT.md` lives, and which glossary owns each shared term.
A Project with one domain has one `GLOSSARY.md` at the root.
A Project with several domains has `GLOSSARY-MAP.md` at the root.
It names each domain, where its `GLOSSARY.md` lives, and which glossary owns each shared term.

Use [templates/context.md](../../templates/context.md) for the format.
Use [templates/glossary.md](../../templates/glossary.md) for the format.
The pinned `domain-modeling` skill reads and writes glossaries and ADRs under these names.

## Mandatory: create lazily

Expand All @@ -20,7 +21,7 @@ Create `docs/adr/` when the first ADR is needed.

## Mandatory: use the terms

- Read the owning `CONTEXT.md` before you use or introduce a domain term.
- Read the owning `GLOSSARY.md` before you use or introduce a domain term.
- Use each term exactly as written, in code names, documents, issues, and messages.
- Do not use a word that the glossary lists under "Avoid".

Expand Down
Loading
Loading