diff options
| author | Matt Pocock <bot@x> | 2026-12-04 20:12:33 +0000 |
|---|---|---|
| committer | Matt Pocock <bot@x> | 2026-12-04 20:12:33 +0000 |
| commit | eca3a7d63913660dbe7cb2e7ccfa0ae137df2d35 (patch) | |
| tree | 7e5616694554d49adcd30d92962a1677d4f87fa8 /docs | |
| parent | 9e1f4fd4a5762b7bc6cdf5959b1843c49bb5f6e9 (diff) | |
| parent | 72188b29f453b07d5759c56e303e1542cb1cea92 (diff) | |
Merge maingrilling-lookup-fallback
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/engineering/code-review.md | 4 | ||||
| -rw-r--r-- | docs/engineering/domain-modeling.md | 3 | ||||
| -rw-r--r-- | docs/engineering/implement-spec.md | 2 | ||||
| -rw-r--r-- | docs/engineering/implement.md | 12 | ||||
| -rw-r--r-- | docs/engineering/setup-matt-pocock-skills.md | 2 | ||||
| -rw-r--r-- | docs/productivity/grilling.md | 3 |
6 files changed, 13 insertions, 13 deletions
diff --git a/docs/engineering/code-review.md b/docs/engineering/code-review.md index 12283d7..5ffb0d1 100644 --- a/docs/engineering/code-review.md +++ b/docs/engineering/code-review.md @@ -1,6 +1,6 @@ ## What it does -`code-review` reviews the diff between `HEAD` and a fixed point you name (a commit, a branch, a tag, `main`, `HEAD~5`) along two axes. **Standards** asks whether the code follows how this repo writes code. **Spec** asks whether the code does what the originating issue or [spec](https://www.aihero.dev/ai-coding-dictionary/spec) asked for. Each axis runs in its own [sub-agent](https://www.aihero.dev/ai-coding-dictionary/subagent) so neither sees the other's reasoning. +`code-review` reviews the diff between your working tree and a fixed point you name (a commit, a branch, a tag, `main`, `HEAD~5`) along two axes. **Standards** asks whether the code follows how this repo writes code. **Spec** asks whether the code does what the originating issue or [spec](https://www.aihero.dev/ai-coding-dictionary/spec) asked for. Each axis runs in its own [sub-agent](https://www.aihero.dev/ai-coding-dictionary/subagent) so neither sees the other's reasoning. The skill never merges or re-ranks the two axes. The report ends with a worst issue *per axis* and declines to name a single winner across them. A change can pass one axis and fail the other. Code that follows every convention but implements the wrong thing passes Standards and fails Spec. Code that does exactly what the [ticket](https://www.aihero.dev/ai-coding-dictionary/ticket) asked but breaks the repo's conventions does the reverse. A blended verdict lets the passing axis hide the failing one. @@ -78,7 +78,7 @@ Each fix adds new code to review, and the judgement-call half of the Standards a **Does it review my uncommitted work?** -No. It diffs `<fixed-point>...HEAD`. The three-dot form measures from the merge-base and excludes staged and working-tree changes. If `implement` has not made an interim commit, the review cannot see the work that is about to go into the next commit. Commit first, then review, then amend or add a fixup. +Yes. It reviews everything since the merge-base with your fixed point: commits, staged and unstaged changes, and new files that git doesn't ignore. Unrelated edits in your working tree get reviewed too, so stash those first. ## It's working if diff --git a/docs/engineering/domain-modeling.md b/docs/engineering/domain-modeling.md index 35fba8e..47080f9 100644 --- a/docs/engineering/domain-modeling.md +++ b/docs/engineering/domain-modeling.md @@ -54,6 +54,9 @@ It cross-references **code** and the committed `GLOSSARY.md` and ADRs, and nothi **My `GLOSSARY.md` is 500 lines. 1,000. 3,000. What do I do?** The size is a symptom. The cause is that the file has taken in implementation detail and decisions that never belonged in a glossary. The fix is a direct instruction: `/grill-with-docs make my GLOSSARY.md more concise and remove any implementation details from it`. Run it against a bloated file and most of it goes. Only split it with a `GLOSSARY-MAP.md` once the file is lean and still covers two domains that a reader would not want to hold at once. Splitting a bloated file gives you several bloated files. The skill's guidance here is not yet strong enough to prevent the growth in the first place, and the issue tracking that is still open. +**Do I need a `GLOSSARY.md` or a `GLOSSARY-MAP.md`?** +Start with one `GLOSSARY.md`. Count [bounded contexts](https://martinfowler.com/bliki/BoundedContext.html), not packages: a monorepo with twenty packages can share one language. Move to a `GLOSSARY-MAP.md` when the same word means different things in two parts of the repo, and both meanings are right. To make the split, run `/domain-modeling split GLOSSARY.md by bounded context`. Each context gets its own `GLOSSARY.md`, and the map at the repo root links to them. + **Why is it `GLOSSARY.md` and not `CONTEXT.md`?** It was `CONTEXT.md` (and `CONTEXT-MAP.md`) until 1.3.0. The file is a glossary and nothing else, so `GLOSSARY.md` says so, and, as one reader put it, "with ai agents everything is [context](https://www.aihero.dev/ai-coding-dictionary/context)". If your repo still has a `CONTEXT.md`, re-run `/setup-matt-pocock-skills`: it offers to `git mv` the file and update `docs/agents/domain.md`. Every skill in the set looks for `GLOSSARY.md`, so keeping the old name means patching all of them. diff --git a/docs/engineering/implement-spec.md b/docs/engineering/implement-spec.md index 771a7ca..14334fc 100644 --- a/docs/engineering/implement-spec.md +++ b/docs/engineering/implement-spec.md @@ -29,7 +29,7 @@ Everything lands on one branch. Each implementer: 2. builds its ticket with [tdd](https://aihero.dev/skills-tdd), red-green one slice at a time, 3. merges the integration branch tip into its own branch before reporting done, so landing it is a fast-forward. -The tracker decides whether a pull request exists at all. If your tracker closes work through PRs, or you ask for one, the skill opens a draft PR after the first merge and marks it ready at the end. Otherwise the run stops on the integration branch with every ticket resolved the way your tracker closes work, which works fully offline against a local markdown tracker. +The tracker decides whether a pull request exists at all. If your tracker closes work through PRs, or you ask for one, the skill opens a draft PR after the first merge. At the end it rewrites the PR body, comments the code review's reports on the PR and marks it ready. Otherwise the run stops on the integration branch with every ticket resolved the way your tracker closes work, which works fully offline against a local markdown tracker. Implementers talk to the orchestrator through [context pointers](https://www.aihero.dev/ai-coding-dictionary/context-pointer) (the spec, the ticket, shared exploration notes, earlier commits) rather than pasted summaries. This keeps each subagent's prompt small and leaves room in the orchestrator's window for the graph. diff --git a/docs/engineering/implement.md b/docs/engineering/implement.md index b08985c..79c81b2 100644 --- a/docs/engineering/implement.md +++ b/docs/engineering/implement.md @@ -32,13 +32,13 @@ If the tickets came from [to-tickets](https://aihero.dev/skills-to-tickets), [se A run has five steps, in order: -1. Read the ticket or spec and work out the seams. +1. Read the ticket and its spec, if it has one, and work out the seams. 2. Drive [tdd](https://aihero.dev/skills-tdd) at the pre-agreed seams, one red-green slice at a time. 3. Typecheck often, run single test files as it goes. 4. Run the full test suite once, at the end. 5. Run [code-review](https://aihero.dev/skills-code-review), then commit to the current branch. -One run covers one ticket. The tickets [to-tickets](https://aihero.dev/skills-to-tickets) produces are tracer-bullet vertical slices sized to fit a single fresh [context window](https://www.aihero.dev/ai-coding-dictionary/context-window), so the intended rhythm is: clear context, implement one ticket, commit, clear again. Each ticket is self-contained, so you can discard the previous ticket's context. +One run covers one ticket. The tickets [to-tickets](https://aihero.dev/skills-to-tickets) produces are tracer-bullet vertical slices sized to fit a single fresh [context window](https://www.aihero.dev/ai-coding-dictionary/context-window), so the intended rhythm is: clear context, implement one ticket, commit, clear again. Each run needs only its ticket and the spec, so you can discard the previous ticket's context. ## Pre-agreed seams @@ -60,11 +60,9 @@ Not with `/implement`: one invocation, one ticket. For a whole spec in one run, Not built in. It commits straight to the current branch. Several people find this too eager, because the code lands before they can verify it works. There is no configuration flag and no PR mode. People override it in the invocation ("commit to a branch and open a PR") or by editing their local copy of the skill. When the agent does write the PR, [pr](https://aihero.dev/skills-pr) shapes its body. -**`code-review` says it cannot see my changes.** +**Can I keep the review out of the run?** -`code-review` reviews `git diff <fixed-point>...HEAD`, which excludes staged and working-tree changes. `implement` runs it before committing, so unless an interim commit already exists there is nothing in that diff to review. Multiple people have reported this and it is unfixed on both sides. Commit first, then review against the point you branched from. - -Separately, some people do not want the review inside the run at all, because an agent reviewing the code it just wrote is biased toward its own solution. Running [code-review](https://aihero.dev/skills-code-review) in a fresh session against a fixed point is a valid alternative. The same bias is why that skill runs its two axes in separate sub-agents. +Yes. Some people do not want it there, because an agent reviewing the code it just wrote is biased toward its own solution. Running [code-review](https://aihero.dev/skills-code-review) in a fresh session against a fixed point is a valid alternative. The same bias is why that skill runs its two axes in separate sub-agents. **One ticket burned 150k tokens. Am I using it wrong?** @@ -72,7 +70,7 @@ Probably not. The ticket is more likely too big. A run does codebase exploration **`/implement #2` in a fresh session worked on something completely unrelated.** -The agent resolved `#2` against another numbered list in context, such as a todo file or checklist, rather than the configured tracker. `implement` now fetches a passed reference from the issue tracker and states its title before starting, and asks when the reference is ambiguous. Check that title matches the ticket you meant; passing the issue URL or `owner/repo#2` removes the ambiguity entirely. +The agent resolved `#2` against another numbered list in context, such as a todo file or checklist, rather than the configured tracker. `implement` now fetches a passed reference (and its spec, if any) from the issue tracker, states the ticket's title before starting, and asks when the reference is ambiguous. Check that title matches the ticket you meant; passing the issue URL or `owner/repo#2` removes the ambiguity entirely. ## It's working if diff --git a/docs/engineering/setup-matt-pocock-skills.md b/docs/engineering/setup-matt-pocock-skills.md index 4b255af..794a7e9 100644 --- a/docs/engineering/setup-matt-pocock-skills.md +++ b/docs/engineering/setup-matt-pocock-skills.md @@ -33,7 +33,7 @@ It starts each section with the recommended answer, and skips any question its e | --- | --- | --- | | **Issue tracker** | the one matching your `git remote` | always, because this is the one real choice | | **Triage labels** | keep the five canonical names (`needs-triage`, `needs-info`, `ready-for-agent`, `ready-for-human`, `wontfix`) | only if the `triage` skill is installed | -| **Domain docs** | single-context: one `GLOSSARY.md` plus `docs/adr/` at the root | only if it spots monorepo signals, and then it offers a multi-context `GLOSSARY-MAP.md` | +| **Domain docs** | single-context: one `GLOSSARY.md` plus `docs/adr/` at the root | only if it finds several bounded contexts, and then it offers a multi-context `GLOSSARY-MAP.md` | The tracker options: diff --git a/docs/productivity/grilling.md b/docs/productivity/grilling.md index eff7c56..599d83e 100644 --- a/docs/productivity/grilling.md +++ b/docs/productivity/grilling.md @@ -26,7 +26,7 @@ The **design tree** is the model of the subject: decisions with decisions hangin Inside a round, every question has a fixed format: numbered and titled behind a `❓`, then the body, then the agent's recommended answer alone on a `➡️` line. This format lets you answer a round by number ("1 yes, 2 the second option, 3 no, here's why") instead of by quoting questions back. The format has one known problem. The recommendation sometimes argues *against* the question as it was worded, so agreeing with the recommendation means answering "no" to the question. When that happens, answer the recommendation and say so. -The other half of the design is the split between facts and decisions. Facts are the skill's own job. When a frontier question needs something the [environment](https://www.aihero.dev/ai-coding-dictionary/environment) can settle, the agent dispatches a [sub-agent](https://www.aihero.dev/ai-coding-dictionary/subagent) to find out rather than asking you. The round does not wait for that research; only the questions that depend on it wait. Decisions are yours, and the agent must wait for them. An agent running `grilling` that answers its own decisions has broken the skill. The session ends when the frontier is empty. The agent then waits for you to confirm a shared understanding before it acts on what you agreed. +The other half of the design is the split between facts and decisions. Facts are the skill's own job. When a frontier question needs something the [environment](https://www.aihero.dev/ai-coding-dictionary/environment) can settle, the agent dispatches a [sub-agent](https://www.aihero.dev/ai-coding-dictionary/subagent) to find out rather than asking you. Decisions are yours, and the agent must wait for them. An agent running `grilling` that answers its own decisions has broken the skill. The session ends when the frontier is empty. The agent then waits for you to confirm a shared understanding before it acts on what you agreed. The frontier has one limit. The agent chooses it by judgement; it does not compute it from a graph. So it can put two questions in one round and only later find that one answer should have changed the other. The only guard is to tell it. That reopens the affected branch in the next round. @@ -78,7 +78,6 @@ This is a real bug, still unfixed, and users report it across [harnesses](https: - Nothing in a round needs another question in the same round answered first. - Later rounds ask things the first round could not have asked. - It goes and looks facts up (reading files, dispatching a sub-agent) rather than asking you something it could have found out. -- Research running in the background does not stall the round; only the questions that depend on it wait. - It stops at the end and asks you to confirm the understanding is shared, instead of starting work. - Question count stays high while round count stays low. |
