diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index 4e76a85..8cd2193 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -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) @@ -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: @@ -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 @@ -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. diff --git a/CONTEXT.md b/GLOSSARY.md similarity index 78% rename from CONTEXT.md rename to GLOSSARY.md index 606a115..3a9ce38 100644 --- a/CONTEXT.md +++ b/GLOSSARY.md @@ -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. @@ -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**: diff --git a/README.md b/README.md index bd77169..eb56961 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 | @@ -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. diff --git a/UPGRADE.md b/UPGRADE.md index 63e4b33..cb59ab2 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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. diff --git a/adapters/tools.md b/adapters/tools.md index cb97c65..a365264 100644 --- a/adapters/tools.md +++ b/adapters/tools.md @@ -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 @@ -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 / --skill --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 / --skill --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. @@ -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 diff --git a/adapters/trackers.md b/adapters/trackers.md index 8955e05..47cfb19 100644 --- a/adapters/trackers.md +++ b/adapters/trackers.md @@ -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 @@ -13,6 +13,13 @@ Last checked: 2026-11-16, against GitHub CLI 2.103. | Create an issue | `gh issue create --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>` | diff --git a/checks/evidence-bundle.md b/checks/evidence-bundle.md index b0d3641..26d737f 100644 --- a/checks/evidence-bundle.md +++ b/checks/evidence-bundle.md @@ -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**: diff --git a/checks/merged-result.md b/checks/merged-result.md index 82dde41..f0c68a1 100644 --- a/checks/merged-result.md +++ b/checks/merged-result.md @@ -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. diff --git a/core/README.md b/core/README.md index 9dfba05..2b4a009 100644 --- a/core/README.md +++ b/core/README.md @@ -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 | diff --git a/core/agents/delegation.md b/core/agents/delegation.md index 7973b6a..1934283 100644 --- a/core/agents/delegation.md +++ b/core/agents/delegation.md @@ -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 @@ -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 diff --git a/core/agents/documentation.md b/core/agents/documentation.md index 5d53716..f7d6687 100644 --- a/core/agents/documentation.md +++ b/core/agents/documentation.md @@ -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/` | diff --git a/core/agents/domain.md b/core/agents/domain.md index 786ebe7..a6cd6a0 100644 --- a/core/agents/domain.md +++ b/core/agents/domain.md @@ -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 @@ -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". diff --git a/core/agents/git.md b/core/agents/git.md index 455a53b..fbea12f 100644 --- a/core/agents/git.md +++ b/core/agents/git.md @@ -1,24 +1,24 @@ # Git and workflow instructions -This page applies when you commit, push, open or merge a pull request, or run a landing workflow. +This page applies when you commit, push, open or merge a pull request, or build a Spec on an Integration branch. ## Mandatory: authorization and completion | Request | Authorized completion | | ------- | --------------------- | | Ordinary implementation request | Edits and checks only; commit and publishing need an explicit request | -| Explicit `implement` | Implementation, checks, review, and a local commit | -| Explicit `one-go` | Implementation, checks, review, commit, push, pull request, and merge | -| Explicit `one-go-bg` | The same landing, owned by a background coordinator in its own checkout | -| Explicit `one-go-parallel` | One pull request per task, each merged | +| Explicit `implement` | Implementation, checks, review, and a local commit on the current branch | +| Explicit `implement-spec` | Every Ticket of the Spec, merged into one Integration branch; push and a draft pull request when the tracker closes work through pull requests | +| Explicit `wayfinder` | Research subagents push `research/<name>` branches; no pull request, no merge | +| Explicit request to land, publish, or merge | Push, pull request, CI gate, merged-result check, and merge when [review-and-merge.md](./review-and-merge.md) allows it | Merge authority also depends on the Tier and the Review mode. [review-and-merge.md](./review-and-merge.md) decides who approves; this table decides what you may do without being asked again. A requested Code review pauses integration, push, and merge until approval. -A push alone never completes a landing workflow. -The workflow is complete when the pull request is merged, or when a blocker or a pending review is reported. +A push alone never completes a request to land. +Landing is complete when the pull request is merged, or when a blocker or a pending review is reported. ## Default: branches @@ -26,6 +26,10 @@ The Project has one long-lived branch, `<main branch>`. Each task gets one short-lived branch from the updated main branch and one pull request back to it. Name branches `<type>/<issue>-<slug>`, or `<type>/<slug>` without an issue. +A Spec that `implement-spec` builds gets one Integration branch, named for the Spec issue. +Each Ticket gets its own branch from the Integration branch, and merges back into it, never into `<main branch>`. +The Integration branch is short-lived, and lands as one pull request to `<main branch>`. + When the Project deploys from more than one long-lived branch, Bootstrap records the branch model in an ADR and replaces this section. Never push directly to a long-lived branch. diff --git a/core/agents/issue-tracker.md b/core/agents/issue-tracker.md index 19193a6..4d4ed60 100644 --- a/core/agents/issue-tracker.md +++ b/core/agents/issue-tracker.md @@ -2,12 +2,14 @@ This page applies when you create or update issues or pull requests, or triage work. The Project's tracker is `<tracker>`; [adapters/trackers.md](../../adapters/trackers.md) gives its commands. +The pinned planning skills read this page to find the tracker, its labels, and its operations. ## Mandatory: what belongs in the tracker The tracker holds: - tasks that someone will do: features, bugs, and chores; +- Specs, Tickets, and Maps, as [planning.md](./planning.md) describes; - Corrections, labelled `correction`; - Escaped defects, labelled `escaped`; - pre-existing failures, labelled `needs-triage`, one issue per root cause. @@ -27,6 +29,14 @@ Bootstrap creates these labels: | `correction` | A repeated agent mistake that needs a check or a better API | | `escaped` | A bug found after its change merged | | `needs-triage` | A failure or report that nobody has classified yet | +| `needs-info` | A report that waits for more information from its author | +| `ready-for-agent` | A fully specified issue that an agent can do alone | +| `ready-for-human` | An issue that needs a person to do it | +| `wontfix` | An issue that nobody will act on | +| `bug` | A category for `triage`: something is broken | +| `enhancement` | A category for `triage`: a new feature or an improvement | +| `wayfinder:map` | A Map | +| `wayfinder:research`, `wayfinder:prototype`, `wayfinder:grilling`, `wayfinder:task` | The type of a decision ticket on a Map | | `budget` | A Feedback loop took 80% of its Feedback budget or more | | `cleanup` | Old comments, dead code, or duplicate code in one module that existed before Bootstrap | | `tier-0` to `tier-4` | The Tier that the tier check gave a pull request | @@ -35,6 +45,44 @@ Bootstrap creates these labels: The tier check applies the `tier-*` label. An agent never applies or removes a `tier-*` label by hand. +Triage roles use labels of the same name: `needs-triage`, `needs-info`, `ready-for-agent`, `ready-for-human`, and `wontfix`. +Pull requests are not a triage surface: `triage` reads issues only. + +## Mandatory: operations + +<The operations table for the Project's tracker, copied from adapters/trackers.md, with the Project's repository filled in.> + +When a skill says "publish to the issue tracker", create an issue. +When a skill says "fetch the ticket", read the issue with its comments. + +## Mandatory: Specs, Tickets, and Maps + +- A Spec is one issue. + `to-spec` writes it and applies `ready-for-agent`. +- Each Ticket is one issue and a sub-issue of its Spec. + Its body states what it delivers, its acceptance criteria, and its Expected Tier. +- A Blocking edge uses the tracker's native "blocked by" relationship. + Write a `Blocked by` line in the body only when the tracker has no such relationship. +- A Ticket is on the Frontier when every Ticket that blocks it is closed, and it has no owner label. + An agent claims a Ticket with the owner label, as the next section says. +- A Map is one issue labelled `wayfinder:map`. + Its decision tickets are its sub-issues, each with one `wayfinder:` type label and no triage label. + A session claims a decision ticket by assigning it to the person it works for, before any other work. +- Never close or edit a parent issue while you split it. + +## Mandatory: Wayfinding operations + +`wayfinder` reads this section. +A Map is one issue, and its decision tickets are its sub-issues. + +- **Map**: create the issue with the label `wayfinder:map`. +- **Decision ticket**: create it as a sub-issue of the Map, with one `wayfinder:` type label. +- **Blocking**: add each edge with the "Add a Blocking edge" operation. +- **Frontier query**: list the Map's sub-issues, keep the open ones, and drop each one with an open blocker or an assignee. + The first one in Map order wins. +- **Claim**: assign the decision ticket to yourself, as the first write. +- **Resolve**: comment the answer, close the issue, then add one line with the gist and a link to the Map's "Decisions so far". + ## Mandatory: owner labels Before you start work on an issue, add the owner label of the person you work for. @@ -47,7 +95,7 @@ Ask the Owner. ## Mandatory: issue bodies - Write issue and pull request bodies in plain English for people, not in a compressed agent style. -- Use [templates/task-contract.md](../../templates/task-contract.md) for a task that an agent will do alone. +- Use [templates/task-contract.md](../../templates/task-contract.md) for a task that an agent will do alone and that no Spec covers. - Use [templates/correction.md](../../templates/correction.md) for a Correction. - Link related issues, and state which issue blocks which. - Never put a secret, a token, or personal data in an issue or pull request. diff --git a/core/agents/planning.md b/core/agents/planning.md new file mode 100644 index 0000000..6654701 --- /dev/null +++ b/core/agents/planning.md @@ -0,0 +1,136 @@ +# Planning and building instructions + +This page applies when you turn an idea into work, design a change, or build and prove a Ticket. +It names skills that the Project pins in its skills lock file. +Each skill owns its own steps; this page decides when each one runs and what it must produce. + +## Mandatory: how agents run pinned skills + +Most pinned skills set `disable-model-invocation: true`, so an agent cannot start them on its own. +The Owner starts a stage by asking for it, or by naming its skill. +That request permits every skill that this page assigns to the stage and to the Expected Tier. +To run such a skill, read its `SKILL.md` in the Project's skills folder and follow it. + +## Mandatory: the pipeline + +Work moves through these stages in order. + +| Stage | Question it answers | Skill | Output | +| ----- | ------------------- | ----- | ------ | +| 1. Decide | What do we build, and what does each word mean? | `grill-with-docs` | Decisions in ADRs and the issue, terms in the glossary | +| 2. Chart | What must we decide before a Spec is possible? | `wayfinder` | A Map with decision tickets | +| 3. Spec | What is the whole change, from the user's side? | `to-spec` | One Spec issue | +| 4. Split | Which thin slices, and which slice blocks which? | `to-tickets` | Tickets with Blocking edges | +| 5. Shape | Which types, signatures, and module boundaries? | `architect`, and `arena` for a contested shape | A Design sketch | +| 6. Build | Does the code do what the Ticket says? | `implement` for one Ticket, `implement-spec` for a whole Spec | Commits on a branch | +| 7. Prove | What does the change break, and can an adversary break it? | `code-review`, `blast-radius`, `interrogate` | Verified findings and a Safety fact | +| 8. Land | May it merge? | none; follow [git.md](./git.md) and [review-and-merge.md](./review-and-merge.md) | A merged pull request | + +Skip a stage only in these cases: + +- Stage 2 runs only when the work is too big for one session, or when open questions hide the way to a Spec. +- A request that fits one Ticket and needs no Decision starts at Stage 4 with one Ticket, or at Stage 5 when the Ticket exists. +- An incoming report goes through `triage` first. + An issue that `triage` marks ready for an agent enters at Stage 4. +- Stages 5 and 7 scale with the Expected Tier, as the next section says. + +## Mandatory: rigor by Expected Tier + +The tier check needs a diff, so it cannot run before code exists. +Until then, each Ticket states an Expected Tier, read from the Project's tier map. + +| Expected Tier | Shape | Prove | +| ------------- | ----- | ----- | +| 0 | None | `code-review` | +| 1 | None | `code-review` | +| 2 | `architect` | `code-review`, `blast-radius` | +| 3 | `architect`; `arena` when two shapes stay close | `code-review`, `blast-radius`, `interrogate`, and the Code review that the Review mode requires | +| 4 | `arena` | The same as Tier 3; the Owner starts the change or watches it run | + +The tier check on the final revision decides the Tier. +When it gives a higher Tier than the Expected Tier, run the missing Shape and Prove steps before the merge. + +## Mandatory: Owner gates + +- Stage 1 and every grilling or prototype ticket of a Map are conversations with the Owner. + The agent asks; it never answers its own questions. +- The Owner approves the Ticket breakdown before `to-tickets` publishes it. + The breakdown shows the Expected Tier of each Ticket, and each published Ticket body has an "Expected Tier" section. +- Approval of a Spec, a Map, or a Design sketch is not permission to build it. + Stage 6 starts only when the Owner asks to build: an ordinary request for one Ticket, `implement`, or `implement-spec`. + An ordinary request that fits one Ticket and needs no Decision may skip publishing the Ticket to the tracker. +- A choice that an experiment can settle is not a Decision: prototype it, and recommend the option that the result supports. + A choice about product behavior or preference is a Decision for the Owner. + +## Mandatory: Tickets + +- Each Ticket is one thin slice through every layer that the change touches. + It can be shown or verified on its own, and it fits one fresh agent session. +- Each Ticket names its Blocking edges with the tracker's native relationship, as [issue-tracker.md](./issue-tracker.md#mandatory-specs-tickets-and-maps) says. +- Each Ticket states its Expected Tier. +- A wide mechanical change, such as a rename across the codebase, is split as expand, migrate in batches, contract. + Each batch is its own Ticket. +- Start only Tickets on the Frontier. + The width of the Frontier is the most agents that can help at one time; more agents than Frontier Tickets add queue time, not finished work. + +## Mandatory: design in code + +- A Design sketch is code: types, signatures, and module boundaries, with no bodies. + It is not a prose design document. +- Put the Design sketch in a comment on the Ticket, or in the first commit of the Ticket's branch. +- `architect` sketches two different shapes and picks one in which each piece has one owner and callers need to know the least. +- `arena` runs several agents on the same shape question, picks a base, and takes the strongest parts of the others. +- A Design sketch that needs a new dependency, service, or pattern stops for a Decision. + +## Default: build a whole Spec + +`implement-spec` builds every Ticket of a Spec on one Integration branch. +It starts one fresh implementer agent for each Frontier Ticket, merges each result into the Integration branch, starts new Frontier Tickets as their blockers close, and runs `code-review` on the whole branch at the end. + +- The Integration branch follows [git.md](./git.md#default-branches), and lands as one pull request. +- That pull request takes the highest Tier of its Tickets. + When a Spec mixes Tier 3 or 4 Tickets with lower ones, build the high-tier Tickets with `implement` on their own branches. + Then the low-tier work does not wait for a high-tier approval. +- [delegation.md](./delegation.md) applies to every agent that `implement-spec` starts. + +## Mandatory: proof that runs + +A finding or a safety claim counts only when a run shows it: a failing test, a script that calls the real code, or command output. +A convincing explanation is not proof. + +- `code-review` reviews the diff on two axes, Standards and Spec. + Fix each finding, then review again. +- `blast-radius` finds what the change breaks outside the diff, and names the Safety fact. + It proves the Safety fact with a script or test that runs the real code. +- `interrogate` starts adversaries, ideally on models from several vendors, that try to break the change. + It reports only findings that a rerun confirms, and it fixes nothing. +- Put the Safety fact and the verified findings in the Evidence bundle, as [review-and-merge.md](./review-and-merge.md#mandatory-evidence-bundle) says. +- A verified `interrogate` finding blocks the merge until a fix lands and the rerun no longer shows it. +- At Tier 3 and 4, an unproven Safety fact blocks the merge. + At Tier 2, list it under Gaps. +- `interrogate` and `arena` read the Owner's model settings from the Owner's own agent setup. + The Project never commits them. + +## Default: briefs and long runs + +- Before an agent starts a Ticket of Expected Tier 2 or higher, run `sharpen` on its prompt. + `sharpen` makes the task deeper, not bigger: keep the Ticket's scope and acceptance criteria as written. +- An unattended run of more than one Ticket keeps a decision log with `show-me-your-work`. + Link the log from the pull request when a reviewer needs it. + +## Default: helper skills + +The pipeline skills load these skills themselves. +Do not start them as separate stages. + +| Helper | Loaded by | +| ------ | --------- | +| `grilling`, `domain-modeling` | `grill-with-docs`, `wayfinder`, `triage` | +| `research`, `prototype` | `wayfinder` | +| `tdd` | `implement`, `implement-spec` | +| `codebase-design` | `tdd` | +| `in-your-own-words` | `interrogate` | +| `how`, `why`, `unslop` | `blast-radius` | + +`grill-me` grills the Owner on any plan without the glossary. +`wait-what` explains a confusing message or change in plain words. diff --git a/core/agents/review-and-merge.md b/core/agents/review-and-merge.md index dac437c..15803fe 100644 --- a/core/agents/review-and-merge.md +++ b/core/agents/review-and-merge.md @@ -89,6 +89,7 @@ An agent merges a Tier 0 to 2 change only when all of these are true: - [ ] No test, assertion, check, or CI job was removed, skipped, or weakened. - [ ] The diff has no unexplained file and no secret. - [ ] The Evidence bundle is complete in the pull request body. +- [ ] The Prove steps that [planning.md](./planning.md#mandatory-rigor-by-expected-tier) requires for the Tier ran, and no verified finding is open. - [ ] The Project's autonomy gate is open; see [corrections.md](./corrections.md#mandatory-gates-read-the-records). When one box is not checked, the agent does not merge. @@ -105,6 +106,7 @@ It holds: - the fail-first test: its name, and proof that it failed before the change; - the checks that ran, with results; - runtime evidence for a user-visible change, as [verification.md](./verification.md) says; +- from Tier 2: the Safety fact and its proof, and from Tier 3: the verified `interrogate` findings and their fixes, as [planning.md](./planning.md#mandatory-proof-that-runs) says; - known gaps, deferred coverage, and failures classified as pre-existing or environmental. Remove secrets and personal data from evidence before you post it. @@ -121,7 +123,7 @@ Give the Independent reviewer: - the check specs and task pages that apply; - the prompt in [methods/review-prompts.md](../../methods/review-prompts.md#independent-verifier). -Do not give it the implementer's reasoning or conclusions. +Do not give it the implementer's reasoning or conclusions, or the `interrogate` findings. Its verdict is PASS, FAIL, or INCONCLUSIVE, with the commands it ran. A FAIL or INCONCLUSIVE verdict blocks the merge. diff --git a/core/rules-file.md b/core/rules-file.md index 9dc3d47..e429eab 100644 --- a/core/rules-file.md +++ b/core/rules-file.md @@ -29,7 +29,8 @@ The rules file holds: - universal constraints that apply to every task in the Project; - the reading map: which task page to read for which kind of task; -- the Review mode and the Kit version. +- the Review mode and the Kit version; +- the Agent skills block, which tells the pinned skills where the tracker, the triage labels, and the domain docs live. The rules file does not hold: @@ -71,7 +72,7 @@ Each kind of guidance has one owner: A HOW-TO beats an older ADR on call shape. - ADRs in `docs/adr/`: decisions and their reasons. A newer accepted ADR that names what it supersedes beats the older one. -- `CONTEXT.md` glossaries: domain language. +- `GLOSSARY.md` glossaries: domain language. If code and a document disagree, find which one is stale; do not copy the code or pick the convenient rule. Surface a conflict you cannot resolve; do not invent policy. @@ -82,6 +83,7 @@ Read a large reference page one section at a time. | Task | Always read | Read when you are about to | | ---- | ----------- | -------------------------- | +| Plan, spec, or split work, design a change, or build or prove a Ticket | `docs/agents/planning.md` | `docs/agents/issue-tracker.md` before you publish a Spec, a Ticket, or a Map | | Write or review application code, config, or dependencies | `docs/agents/engineering.md` | <stack page> before you add, remove, or upgrade a dependency | | Implement behavior, fix a bug, run checks, or defer tests | `docs/agents/testing.md` | `docs/agents/verification.md` before you change a user-visible feature | | Commit, push, open or merge a pull request | `docs/agents/git.md`, `docs/agents/review-and-merge.md` | | @@ -92,10 +94,27 @@ Read a large reference page one section at a time. | Touch secrets, credentials, production, or untrusted input | `docs/agents/security.md` | | | <Project-specific task> | <page> | <page> | -Read a module's `CONTEXT.md` and `HOW-TO.md` before you edit an implementation file in its folder. +Read a module's `GLOSSARY.md` and `HOW-TO.md` before you edit an implementation file in its folder. Use glossary terms as written. Find runnable commands in <manifest file> and hook commands in <hook config file>. +## Agent skills + +### Issue tracker + +Issues, Specs, Tickets, and Maps live in <tracker>. +See `docs/agents/issue-tracker.md`. + +### Triage labels + +Each triage role uses the label of the same name. +See `docs/agents/issue-tracker.md`. + +### Domain docs + +<Single-context: one `GLOSSARY.md` at the root | Multi-context: `GLOSSARY-MAP.md` at the root>, and ADRs in `docs/adr/`. +See `docs/agents/domain.md`. + ## Mandatory boundaries <Project-specific boundaries from the Owner's answers: data isolation, forbidden actions, production rules.> diff --git a/fleet/briefs.md b/fleet/briefs.md index 0e69537..e2c4862 100644 --- a/fleet/briefs.md +++ b/fleet/briefs.md @@ -9,7 +9,8 @@ It is the only context the Worker has, so it must stand alone. Name: w-<short-task-name> Project: <repository and checkout path> Task: <the outcome, in one or two sentences> -Source: <issue link, or the Owner's words, quoted> +Source: <Ticket link, or the Owner's words, quoted> +Expected Tier: <0-4, from the Ticket> Baseline: <branch and commit> Scope: <allowed paths; forbidden paths> Done means: <merged pull request | report | draft for the Owner> @@ -32,6 +33,13 @@ Report to: the Coordinator, with <format> Do not assume the Worker can find it. - **Literal samples.** Show a real command, payload, or error line instead of a description. +- **Frontier only.** + Brief a Worker only for a Ticket whose blockers are all closed. + When a Worker's merge closes a blocker, brief the Tickets it unblocks. +- **Sharpen from Tier 2.** + For a Ticket of Expected Tier 2 or higher, run `sharpen` on the task before you send the Brief. + Keep the Ticket's scope and acceptance criteria as written. + Send each choice that `sharpen` raises and no experiment can settle to the Owner as a Decision. - **No secrets in a Brief.** Name where the Worker finds a credential, never the value. diff --git a/fleet/capacity-and-load.md b/fleet/capacity-and-load.md index 472fd78..032ae27 100644 --- a/fleet/capacity-and-load.md +++ b/fleet/capacity-and-load.md @@ -11,6 +11,7 @@ More Workers help only while the machine, the shared budgets, and the Owner's at Normal work never takes the reserved slot. - When the cap is reached, queue new tasks. Do not start more Workers. +- Never run more Workers on one Spec than it has Tickets on the Frontier. ## Heavy jobs diff --git a/fleet/roles.md b/fleet/roles.md index d3131dd..4dbfca9 100644 --- a/fleet/roles.md +++ b/fleet/roles.md @@ -10,8 +10,8 @@ The Owner talks to the Coordinator, not to each Worker. The Coordinator is one long-running session that: - receives the Owner's requests; -- splits them into tasks; -- starts a Worker for each task, with a Brief; +- turns each request into a Spec and Tickets with the Owner, under the Project's `docs/agents/planning.md`, and gives code reading and research to Workers; +- starts a Worker for each Ticket on the Frontier, with a Brief; - watches Workers and keeps them unblocked; - relays Decisions from the Owner to Workers; - releases Workers when they finish; @@ -49,5 +49,5 @@ Rules for a Worker: ## Overseer (optional) An Overseer is a long-running Worker that owns one large stream of work, such as an epic, and starts its own Workers for it. -Use one only when a stream is too big for the Coordinator to track task by task. +Use one only when a stream is too big for the Coordinator to track Ticket by Ticket, such as a whole Spec under `implement-spec` or a Map. An Overseer follows the Coordinator rules for its own Workers, and the Worker rules toward the Coordinator. diff --git a/skills/README.md b/skills/README.md index 306c5f5..305f27a 100644 --- a/skills/README.md +++ b/skills/README.md @@ -10,11 +10,8 @@ The Kit has two kinds: its own skills, which Bootstrap copies into the Project, | [bootstrap](./bootstrap/SKILL.md) | Runs [BOOTSTRAP.md](../BOOTSTRAP.md) in a Project | The Owner asks for it | | [upgrade](./upgrade/SKILL.md) | Runs [UPGRADE.md](../UPGRADE.md) in a Project | The Owner asks for it | | [correction](./correction/SKILL.md) | Turns a repeated mistake into a check | The Owner or an agent sees a mistake repeat | -| [one-go](./one-go/SKILL.md) | Lands one task: implement, review, commit, pull request, merge | The Owner asks for it | -| [one-go-bg](./one-go-bg/SKILL.md) | The same landing, run by a background agent | The Owner asks for it | -| [one-go-parallel](./one-go-parallel/SKILL.md) | Lands several tasks with parallel agents | The Owner asks for it | -Bootstrap copies `correction`, `one-go`, `one-go-bg`, and `one-go-parallel` into the Project's skills folder. +Bootstrap copies `correction` into the Project's skills folder. `bootstrap` and `upgrade` run from the Kit and are not copied. Skills marked "The Owner asks for it" set `disable-model-invocation: true`, so an agent never starts them on its own. @@ -22,38 +19,119 @@ Starting one of them is the Owner's permission for the work it describes, and fo ## Pinned third-party skills -These are Matt Pocock's skills from `mattpocock/skills`. -The Project installs them with the skills installer, which records each one in `skills-lock.json` with a content hash. +The Project installs these skills with the skills installer, which records each one in `skills-lock.json` with a content hash. +[core/agents/planning.md](../core/agents/planning.md) decides when each one runs. +Two sources fit together: -| Skill | Path in the source | Content hash, checked 2026-11-16 | -| ----- | ------------------ | --------------------------- | +- Matt Pocock's skills plan what to build: they settle Decisions, write the Spec, and split it into Tickets with Blocking edges. +- pstack, Poteto's skills from Cursor, shape and prove the change: they sketch the design in code and accept only findings that a run proves. + +### From `mattpocock/skills` + +| Skill | Path in the source | Content hash, checked 2026-11-19 | +| ----- | ------------------ | -------------------------------- | | `grill-me` | `skills/productivity/grill-me` | `ab1acb9fbd9eaee03da254abb8a8de228d1e7a07475fe959da4a5eefa34ea4b9` | -| `grill-with-docs` | `skills/engineering/grill-with-docs` | `02e258f41d210f9b2e7cce9faf62b3c59e8fcebe5d2736369c3cd07d471324f8` | | `grilling` | `skills/productivity/grilling` | `485451958784497cd4c4dbea13cb5bbb579da58fac0d0e45f3bcb310fab68ac7` | -| `domain-modeling` | `skills/engineering/domain-modeling` | `b78689833404148c769077355e12dbe5ad996a158a1e21e58ddf169e439d9d8c` | | `wait-what` | `skills/productivity/wait-what` | `70c9bf9f5a84b6849760f9492f569d5aa12307a0310323fde5f583144730c26c` | +| `grill-with-docs` | `skills/engineering/grill-with-docs` | `02e258f41d210f9b2e7cce9faf62b3c59e8fcebe5d2736369c3cd07d471324f8` | +| `domain-modeling` | `skills/engineering/domain-modeling` | `b78689833404148c769077355e12dbe5ad996a158a1e21e58ddf169e439d9d8c` | +| `wayfinder` | `skills/engineering/wayfinder` | `bd82983c105881f6cb0c15e5d029c0d5fca756939b69eebe94e49003069a276f` | +| `research` | `skills/engineering/research` | `7662666af51f8b1672ed7d88360d4b82656da21bb7b11c49e956eeb3036b85d5` | +| `prototype` | `skills/engineering/prototype` | `1e3ba2202a5b77b8aa50bc4447432331d6e42590e53ec0935689662cfed199ca` | +| `triage` | `skills/engineering/triage` | `4342a07c9ebe0696713ec93a883c46e56503a587a34d824fabab5ca61e3bdfbb` | +| `to-spec` | `skills/engineering/to-spec` | `eb934b5eda9523c7853a2741544bd4721ee1bea471f5a04f8397827f67bdbdda` | +| `to-tickets` | `skills/engineering/to-tickets` | `17496514c92954f68eacdf2b1221e2ddb39fa231b83f03c70bc7d4422f704b2d` | +| `implement` | `skills/engineering/implement` | `560465496ad0669329993bfdd0604e5c93b5c2446309a76f486040010b063908` | +| `implement-spec` | `skills/engineering/implement-spec` | `c3474ef320861d793e8b30d41fbdd2cb0ceaa1081bb5c81b7f26c455eb776573` | +| `tdd` | `skills/engineering/tdd` | `e3e0f78ff1c2d52ffefa0378baa1e80e129d359288cf9a56f4e59afcd2aac86c` | +| `codebase-design` | `skills/engineering/codebase-design` | `d40f025dc1b0f2020663260f38f2bcb8d6ed3523afb11e5fda624b01238677e8` | +| `code-review` | `skills/engineering/code-review` | `ce86b40a3d1648a0018b712f0c70704e6c2316b2a9b9e915ab116916a31273dc` | + +### From `backnotprop/pstack` + +`backnotprop/pstack` is a mirror of Cursor's pstack that works in every agent the Kit supports. +Install from the mirror, not from Cursor's own plugin, because the plugin works in one agent only. + +| Skill | Path in the source | Content hash, checked 2026-11-19 | +| ----- | ------------------ | -------------------------------- | +| `architect` | `skills/architect` | `b2c440fa359b72e30115258c62df7c96713dcac1fee0abb9e18033901d8a9982` | +| `arena` | `skills/arena` | `b4a7802d3f9ad9cc5a9aeec23e53541be5224ff38d93ed7dbbf5a176f0ecff5e` | +| `sharpen` | `skills/sharpen` | `27a8957e6dbd9c1f50228592b1aa1ef5598aef14d4c2047213a740ecdbfc217f` | +| `blast-radius` | `skills/blast-radius` | `f9ec7353939c4449f2edb1cd195049f477b9ba6c0a869de75c7b440e27295f01` | +| `interrogate` | `skills/interrogate` | `20ae3427594fc8e8848558f4c093d619b547e8c166833ac9cb2cba58dfaa14e4` | +| `in-your-own-words` | `skills/in-your-own-words` | `eaacabc9a2c7a1a674334a4e01e5900a6f7a764d405237ce17d4e4200cf528be` | +| `how` | `skills/how` | `397faf7706279220499dd649a110e0055f1665ecab63528f321d231632af17de` | +| `why` | `skills/why` | `2050d10fff1d0fa6e19c0a96552a641af6a24f012614955a6dcf3763bf54ac3c` | +| `unslop` | `skills/unslop` | `4bbcb6719a8f0f6f7fb46752e1c360791d7758a837708e300a06fc7d6907938c` | +| `show-me-your-work` | `skills/show-me-your-work` | `ec213956e5cb2f5f6f5d814c943d83e4fd8d865417d44acfba9355a2e2e1a192` | +| `principle-separate-before-serializing-shared-state` | `skills/principle-separate-before-serializing-shared-state` | `7be23154bac7c6858b373fb5525e847028c06487a91f502ad8a9ac96b9d5b408` | +| `principle-redesign-from-first-principles` | `skills/principle-redesign-from-first-principles` | `c6b2348402c9c1a4d3b43ab695ad8dbb6a92b19e02e08f6395146ab9b1b61ce9` | +| `principle-prove-it-works` | `skills/principle-prove-it-works` | `e1903c637f60b63a8ded3ca9ec60d132190f0473085581be7fcf1fb8cb18bb49` | +| `principle-laziness-protocol` | `skills/principle-laziness-protocol` | `23fb5314b8b2bfb6c2b783892e791aca6c59c69313b714eecc11704e4a2d38cb` | +| `principle-encode-lessons-in-structure` | `skills/principle-encode-lessons-in-structure` | `164c25e039539bc5cc04f109f3596d723e40c68f9745cd35129b34d4fe3e706e` | + +`arena` and `interrogate` pick a model for each agent they start from the Owner's pstack settings file. +The Owner writes that file once with pstack's `setup-pstack` skill, in their own agent setup. +The Project never pins `setup-pstack` and never commits the settings file. +Without it, the skills use their built-in defaults. +`arena` and `show-me-your-work` also point to the Subagents section of pstack's `poteto-mode` skill for the reasoning effort of each agent. +Without `poteto-mode`, each agent runs at the default effort. + +### Install all of them together + +Each skill below loads the skills next to it, so a partial install breaks it. + +| Skill | Loads | +| ----- | ----- | +| `grill-me` | `grilling` | +| `grill-with-docs`, `triage` | `grilling`, `domain-modeling` | +| `wayfinder` | `grilling`, `domain-modeling`, `research`, `prototype` | +| `implement`, `implement-spec` | `tdd`, `code-review` | +| `tdd` | `codebase-design` | +| `architect` | `arena` | +| `arena` | `principle-separate-before-serializing-shared-state`, `principle-redesign-from-first-principles`, `principle-prove-it-works`, `principle-laziness-protocol` | +| `interrogate` | `arena`, `in-your-own-words` | +| `blast-radius` | `arena`, `how`, `why`, `unslop` | +| `show-me-your-work` | `unslop`, `principle-encode-lessons-in-structure` | + +Install them, and restore them on a new machine or in CI, with the skills installer commands in [adapters/tools.md](../adapters/tools.md#skills-installer). + +### Skills the Kit leaves out on purpose + +Each fact has one home, so the Kit does not pin a skill that does the job of a Kit page. -`grill-with-docs` loads `grilling` and `domain-modeling`, so install all three together. +| Skill | Source | Why it is left out | +| ----- | ------ | ------------------ | +| `setup-matt-pocock-skills` | Matt Pocock | Bootstrap writes the pages it would write: `docs/agents/issue-tracker.md`, `docs/agents/domain.md`, and the Agent skills block in `.rules` | +| `pr` | Matt Pocock | The Evidence bundle template owns the pull request body | +| `correct` | pstack | The Kit's `correction` skill owns this job | +| `no-comments` | pstack | The [no-comments](../checks/no-comments.md) check owns this rule | +| `create-verification-skill` | pstack | [core/agents/verification.md](../core/agents/verification.md) owns the Verification contract | +| `tdd`, `teach` | pstack | Matt Pocock's skills of the same name are pinned; two skills cannot share a name | +| `poteto-mode` | pstack | It sets one person's working style; it belongs in the Owner's own agent setup | +| Other `principle-*` skills | pstack | No pinned skill loads them | +| `typescript-best-practices` | pstack | The Kit names no tech stack | -Install all five together, and restore them on a new machine or in CI, with the skills installer commands in [adapters/tools.md](../adapters/tools.md#skills-installer). +### The lock file The lock file entry has this shape: ```json { - "version": 1, + "version": 2, "skills": { "grill-me": { "source": "mattpocock/skills", "sourceType": "github", "skillPath": "skills/productivity/grill-me/SKILL.md", + "commit": "5863806dd4e15c63174bee4e7515a4256792ecfa", "computedHash": "ab1acb9fbd9eaee03da254abb8a8de228d1e7a07475fe959da4a5eefa34ea4b9" } } } ``` -When the installed hash differs from the table above, the upstream skill changed after this Kit release. +When the installed hash differs from the tables above, the upstream skill changed after this Kit release. Read the change before you accept it. ## Writing a Project skill @@ -63,3 +141,4 @@ Read the change before you accept it. - Name the documents it reads; do not copy their rules into it. - When it calls an agent's own tool, name the tool for each agent the Project uses, from [adapters/agents.md](../adapters/agents.md). - Do not add a skill that works in one agent only. +- Do not give it the name of a pinned skill. diff --git a/skills/one-go-bg/SKILL.md b/skills/one-go-bg/SKILL.md deleted file mode 100644 index a950d54..0000000 --- a/skills/one-go-bg/SKILL.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -name: one-go-bg -description: Background one-go. A fresh background agent implements, reviews, commits, opens a pull request, and merges, while this session stays free. -disable-model-invocation: true -argument-hint: The task to land ---- - -# one-go-bg - -The same landing as `one-go`, run by one background agent. -This session stays free for talk. -Read `docs/agents/delegation.md`, `docs/agents/git.md`, and `docs/agents/testing.md` before you start it. -Starting this skill is the Owner's permission for the background agent and the reviewers it starts, and for nothing more. - -## Process - -1. **Need a task.** - When the Owner named no work, ask, and start nothing. -2. **Model.** - When the Owner named a model, pass it to the agent tool. - When the tool refuses the name, stop and say that it is not configured. -3. **Hand off.** - Record the exact baseline commit, the target branch, the task, any uncommitted changes the task needs, and any review or test-deferral instruction. - Start one fresh general-purpose agent in the background with the agent's own tool, from `adapters/agents.md` in the Kit or the Project's delegation page. - Give it a 3 to 5 word label and the prompt below. - Do not poll it. -4. **Stay free.** - Tell the Owner that the agent is running, then stop. - Do not edit its checkout or its branch. -5. **Report.** - When it finishes, tell the Owner the result in one or two lines. - For a requested human review, show the full review handoff and keep its checkout until the Owner approves. - Further fixes go to a fresh agent with an exact handoff, never to a resumed one. - -## Agent prompt - -```text -You are the background owner of this task: you implement it and publish it. - -1. Get your own isolated checkout, as docs/agents/delegation.md describes. - Work only there. Check out the exact baseline below, and apply the supplied changes. -2. Read docs/agents/delegation.md, docs/agents/git.md, and docs/agents/testing.md there. -3. Read the Project's one-go skill and follow it to the end. - Use a unique working branch; the foreground may hold the target branch. -4. Do not overwrite remote changes. When the target moved, merge it in, recheck, and review again. -5. Stop for a requested human review, a required approval, or a concrete blocker. - -Task: -<the Owner's task> - -Handoff: -<baseline commit; target branch; uncommitted changes; spec; earlier findings; -permissions; test deferral; human review checkpoint> - -Report: branch, commits, pull request URL, merge result, check results, -and the checkout you kept, if any. -``` diff --git a/skills/one-go-parallel/SKILL.md b/skills/one-go-parallel/SKILL.md deleted file mode 100644 index 3de9229..0000000 --- a/skills/one-go-parallel/SKILL.md +++ /dev/null @@ -1,104 +0,0 @@ ---- -name: one-go-parallel -description: Land several tasks with parallel agents. Each agent implements one task in its own checkout; this session integrates, publishes, and merges every pull request. -disable-model-invocation: true -argument-hint: Tasks or issue numbers, and the target branch if not the default ---- - -# one-go-parallel - -This session is the coordinator: it plans, starts agents, integrates, publishes, and reports. -Each task goes to one fresh general-purpose agent that implements, tests, reviews, and commits in its own isolated checkout. -After the task list is clear, the next time the Owner hears from you is the final report, unless they asked for a review. - -Read `docs/agents/delegation.md`, `docs/agents/git.md`, and `docs/agents/testing.md` before you start any agent. -Starting this skill is the Owner's permission for these agents and for every commit, push, pull request, and merge into the target branch. -It permits nothing else, such as a deploy or a release. - -## Inputs - -- **Tasks**: free text, issue numbers, or a spec. - When none is named, ask and stop. -- **Target branch**: the Project's integration branch, unless the Owner names another. -- **Human review**: none unless the Owner asks. -- **Test deferral**: none unless the Owner asks. -- **Model**: when the Owner names one, pass it to every agent. - -## Process - -1. **Plan.** - Split the request into tasks, one pull request each. - For each issue, read it and add the owner label first. - A task that builds on another task's unmerged code, or edits the same files heavily, joins a stack, ordered bottom to top. - Every other task is independent. - Done when each task has a one-line scope, a branch name, and a place: independent or in a stack. -2. **Prepare.** - Confirm that the isolated-checkout tool works. - Fetch the target branch, and record its tip as the baseline commit. - Run the known-red baseline once, and record the failing tests. - Agents reuse this list instead of running their own baseline. -3. **Start agents.** - Start every independent task and the bottom task of every stack at the same time, each as a background agent with the prompt below. - Start a stacked task when the task below it reports a clean result, with that task's branch tip as its baseline. - Record each task's checkout, branch, and baseline. -4. **Land each task as it reports.** - Start on the first report; do not wait for all of them. - Verify the report against the checkout: the commits exist, the diff stays inside the task's scope, and the checks it reports are clean. - Then publish under `docs/agents/git.md`: check the merged result, push, open the pull request with the Evidence bundle, wait for CI, and merge when `docs/agents/review-and-merge.md` allows it. -5. **Re-integrate when the target moved.** - Every merge moves the target branch. - The merged-result check merges the new tip into the task's branch. - When that brings in commits, also run the task's tests and the type check before the push, because a clean text merge can still break behavior. - A conflict that needs judgment goes to a fresh agent with the branch, the conflict, the intent of both sides, and the checks to run. -6. **Handle failures and keep going.** - An agent that reports a blocker or a failed check gets one fresh agent with the failure as its handoff. - A second failure on the same root cause stops that task: keep its checkout, record the cause, and continue the other tasks. - Classify each failure as introduced, pre-existing, or environmental. -7. **Clean up.** - Release the checkout of each merged task, from this session's own checkout. - Keep the checkout of each unmerged, blocked, or review-pending task. -8. **Report.** - One line per task: pull request URL, merge result, and any deferred coverage or recorded failure. - Then each kept checkout and the reason. - -Done when every task has merged, or is reported as blocked, waiting for approval, or waiting for review. -An open pull request is not done. - -## Agent prompt - -Fill every placeholder before you start the agent. - -```text -You implement one task end to end, up to a local commit. -Work alone: do not start other agents. - -Setup: -1. Get your own isolated checkout, as docs/agents/delegation.md describes. - Work only there. -2. Check out <baseline commit> and create <branch>. Verify that HEAD is the baseline. -3. Install dependencies from the lockfile, and copy local settings the Project's docs name. -4. Read .rules, then the pages it routes you to for this task. - -Task: -<scope, issue link, spec, allowed paths> - -Stack: -<"independent", or the branch and task this one builds on> - -Constraints: -- The known-red baseline ran at <baseline commit>. Failing tests there: <list>. - Do not run the full baseline again; run the tests that cover this change. -- Reproduce first, write a fail-first test, then change the code. -- Review your own change on Standards and Spec, fix each finding, and check again. -- <test deferral, if any> -- Commit under docs/agents/git.md. Keep hooks on. - After each commit, confirm that `git log --oneline -1` moved. -- Push, pull request, and merge belong to the coordinator. Keep your branch local. - -Report: -- Checkout path, baseline, branch, and commit hashes. -- Changed files, and one paragraph on what changed and why. -- Review findings and how you resolved each one. -- Check results, each failure classed as introduced, pre-existing, or environmental. -- Any blocker, deferred coverage, or open question. -``` diff --git a/skills/one-go/SKILL.md b/skills/one-go/SKILL.md deleted file mode 100644 index ca37151..0000000 --- a/skills/one-go/SKILL.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -name: one-go -description: Land one task in one go. Implement, review, commit, push, open a pull request, and merge. -disable-model-invocation: true -argument-hint: The task to land ---- - -# one-go - -Land one task through the publishing workflow in `docs/agents/git.md`. -Read that page and `docs/agents/testing.md` before you act. -Read `docs/agents/delegation.md` only when the Owner asked for delegation. -This skill runs in the current session and needs no other agent. - -## Process - -1. **Prepare.** - Look at existing changes, and keep unrelated work safe. - Use the current branch unless the Owner names another, and follow `docs/agents/git.md` for long-lived branches. - Bring the branch up to date, then record the exact baseline commit. -2. **Implement.** - Treat the Owner's current request as the spec. - Reproduce the behavior first, write a fail-first test, then change the code. - Honor an explicit test deferral as `docs/agents/testing.md` describes. -3. **Review.** - Review your working-tree change before the first commit, on two axes: - - Standards: does it follow the Project's documented rules? - - Spec: does it do what the task asked, no more and no less? - Fix each finding and review again. -4. **Respect human review.** - When the Owner asked to review, show the change and stop until they approve. - Otherwise, add no new approval step. -5. **Publish.** - Follow `docs/agents/git.md` for commits, hooks, push, the pull request, the CI gate, and the merge. - Write the pull request body from the Evidence bundle template. - Check the merged result right before the merge. - The merge also needs whatever `docs/agents/review-and-merge.md` requires for the Tier. -6. **Report.** - Give the pull request URL, the merge result, and any gap. - -Done when the reviewed task has merged into the target branch, or when a requested review, a required approval, or a concrete blocker is reported as pending. -A push alone is not done. diff --git a/templates/README.md b/templates/README.md index 588184b..6a62581 100644 --- a/templates/README.md +++ b/templates/README.md @@ -7,7 +7,7 @@ Copy a template, then replace every placeholder in angle brackets. | [task-contract.md](./task-contract.md) | A task that an agent does alone, in an issue or a Brief | | [correction.md](./correction.md) | A repeated agent mistake that needs a check | | [adr.md](./adr.md) | A decision that is hard to reverse | -| [context.md](./context.md) | A domain glossary | +| [glossary.md](./glossary.md) | A domain glossary | | [how-to.md](./how-to.md) | A module's current call contract | | [feature-map.md](./feature-map.md) | Runtime verification of one user-visible feature | | [pr-evidence.md](./pr-evidence.md) | The Evidence bundle in a pull request body | diff --git a/templates/context.md b/templates/glossary.md similarity index 91% rename from templates/context.md rename to templates/glossary.md index 853b91b..713eeb9 100644 --- a/templates/context.md +++ b/templates/glossary.md @@ -1,6 +1,6 @@ # Glossary template -Save as `CONTEXT.md` at the root, or in the folder of the domain it covers. +Save as `GLOSSARY.md` at the root, or in the folder of the domain it covers. ````markdown # <Domain name> diff --git a/templates/pr-evidence.md b/templates/pr-evidence.md index 604fc0b..c05b2bb 100644 --- a/templates/pr-evidence.md +++ b/templates/pr-evidence.md @@ -34,6 +34,14 @@ Tier <n> from the tier check: <the rule that matched>. | <hook checks> | <passed> | | Merged-result check | <passed> | +## Safety proof + +- Safety fact: <the one fact the change is safe because of> +- Proof: <the script or test that ran the real code, and its decisive output; or "unproven"> +- `interrogate`: <none run below Tier 3; or each verified finding, its fix, and the clean rerun> + +<Or: "Not applicable: Tier 0 or 1."> + ## Runtime evidence <For a user-visible change: the feature map, the verdict, the build revision, and links to traces or screenshots.>