From 69dad40a7d27f5ae79cbd863623177bef33c17e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baldur=20P=C3=A1ll=20H=C3=B3lmgeirsson?= Date: Wed, 25 Nov 2026 20:59:14 +0000 Subject: [PATCH 1/2] chore(workflow): update to 0.31.0 --- .agents/skills/feature-close/tracker.md | 27 ++++++--- .agents/skills/feature-implement/SKILL.md | 15 ++++- .agents/skills/feature-plan/tracker.md | 2 +- .agents/skills/onboard/SKILL.md | 8 ++- .agents/skills/orchestrate/SKILL.md | 67 ++++++++++++++++------- .agents/skills/roadmap/SKILL.md | 2 +- .agents/skills/roadmap/tracker.md | 11 ++-- .agents/skills/tracking-migrate/SKILL.md | 4 +- .claude/skills/feature-close/tracker.md | 27 ++++++--- .claude/skills/feature-implement/SKILL.md | 15 ++++- .claude/skills/feature-plan/tracker.md | 2 +- .claude/skills/onboard/SKILL.md | 8 ++- .claude/skills/orchestrate/SKILL.md | 67 ++++++++++++++++------- .claude/skills/roadmap/SKILL.md | 2 +- .claude/skills/roadmap/tracker.md | 11 ++-- .claude/skills/tracking-migrate/SKILL.md | 4 +- context/.state/manifest.json | 40 +++++++------- context/tracking.notes.md | 27 ++++++++- context/workflow.md | 18 +++++- context/workflow.notes.md | 13 +++++ 20 files changed, 264 insertions(+), 106 deletions(-) diff --git a/.agents/skills/feature-close/tracker.md b/.agents/skills/feature-close/tracker.md index 88b6506f..710e472b 100644 --- a/.agents/skills/feature-close/tracker.md +++ b/.agents/skills/feature-close/tracker.md @@ -19,7 +19,7 @@ phase finished — and so is everything about pushing. | the reference sweep | **nothing to sweep.** No path changed, so no link broke | | the plan's §9, read out of the document | **unchanged** — §9 is a section of the body, and the body is the plan | | answered or waived, written into the item | a body edit like any other | -| the why names the filed issue | the closing comment names it, by number — both issues are in one tracker, so it is a reference rather than a path | +| the why names the filed issue | the closing comment names it, by its reference — both issues are in one tracker, so it is a reference rather than a path | | delete `context/notes.md` | **unchanged** — it is a file in a working tree under either answer, and it is deleted the same way | **The archive is the closed issue**, and it is more than the file it replaces: the plan, the discussion @@ -29,15 +29,26 @@ ported. ### Who closes it -**Where [`context/git.md`](../../../context/git.md) says the agent pushes and opens a pull request**, put -`Closes #` in the pull request body and let the merge close it. The close then rides the same change -as the work — which is exactly what appending the `history.md` row does under the other answer. +**What closes it is [`context/tracking.md`](../../../context/tracking.md)'s *how a change closes one*; +when is this section's.** Where that row is absent, the answer is GitHub's keyword, `Closes #`: say so +once and name `/onboard`. Name the issue in the form *how an issue is referenced* gives, wherever this +command writes it. -**Where it says anything else, close the issue here**, with the closing comment, and say that is what -happened. Nothing else will: the trailer fires only when the commit reaches the default branch, and under +**Where the close is a command, run it here, once what this command writes is committed** — the one for +*completed*, or for *not planned* under `--dropped` — whatever `git.md` says, and put no keyword in the +pull request. Nothing else will run it. Every phase is already committed, which is what the refusal +checked; **where the user commits, hand the command over with the change** rather than closing ahead of +their commit. + +**Where it is a keyword and [`context/git.md`](../../../context/git.md) says the agent pushes and opens a +pull request**, put it in the pull request body and let the merge close it. The close then rides the same +change as the work — which is exactly what appending the `history.md` row does under the other answer. + +**Where `git.md` says anything else, close the issue here**, with the closing comment, and say that is what +happened. Nothing else will: the keyword fires only when the commit reaches the default branch, and under those answers it never gets there. -**`--dropped` always closes here, whatever `git.md` says.** A trailer closes an issue as *completed*, and +**`--dropped` always closes here, whatever `git.md` says.** A keyword closes an issue as *completed*, and that is the wrong outcome for an idea that will not be built — the two close reasons are how this answer records what `history.md`'s Outcome column used to. @@ -71,4 +82,4 @@ Name them in the closing comment and in the report, and **leave the relationship and its reason are the only explanation a person will find when they open one of those issues next month. **Then push, if `git.md` says so.** Unchanged, except that the pull request body links the issue rather -than an archived path, and carries the trailer described above. +than an archived path, and carries the keyword only where *Who closes it* puts one there. diff --git a/.agents/skills/feature-implement/SKILL.md b/.agents/skills/feature-implement/SKILL.md index 6bdb6cce..7565ac39 100644 --- a/.agents/skills/feature-implement/SKILL.md +++ b/.agents/skills/feature-implement/SKILL.md @@ -226,14 +226,20 @@ Require concrete evidence — file paths, command output — for every verdict, **one bit: does it block this phase or not.** There is no severity scale to assign — see *What happens to a defect the gate found* in [`context/workflow.md`](../../../context/workflow.md). +**Before reading the verdict, sort each note by where its defect came from**, per *A defect this work put +there is never filed* in [`context/workflow.md`](../../../context/workflow.md) — an earlier phase's defect +included. **A `PASS WITH NOTES` carrying one that blocks is a `FAIL`**, and step 10 fixes it. Nothing this +feature wrote is ever filed as a bug. + - `PASS` or `PASS WITH NOTES` → the phase's work is done; go to step 11. - `FAIL` → go to step 10. -**Every non-blocking observation gets one of two ends, and kind decides which** — not size. The full -argument is *What happens to a defect the gate found* in +**Every other non-blocking observation gets one of two ends, and kind decides which** — not size. The +full argument is *What happens to a defect the gate found* in [`context/workflow.md`](../../../context/workflow.md): -- **A real defect, and it is user-visible or a regression would land green** → it is a **bug**. File it +- **A real defect that was there before this feature, and it is user-visible or a regression would land + green** → it is a **bug**. File it wherever this project already files bugs, with this project's own labels, and say in the report that you did. **Do not apply the backlog label** — see *A bug is not a backlog entry* in [`context/workflow.md`](../../../context/workflow.md). The backlog is a list of features and this is not @@ -260,6 +266,9 @@ Under the cap: re-brief with the prior implementation and the validator's feedba summarise or paraphrase it** — plus the instruction to address only the failing items, refactor nothing that passes, and expand no scope. Then re-run the same gate. +**An old defect step 9's sort promoted never reaches the cap.** If one loop does not settle it, back its +edit out and give it its kind's end, and the verdict stands on the rest. + At the cap: **close the row to `blocked` with the reason in its Note — before you escalate**, not after. A phase whose verification cannot pass is blocked by definition. Then hand back to the user with the current state and the last feedback verbatim. diff --git a/.agents/skills/feature-plan/tracker.md b/.agents/skills/feature-plan/tracker.md index d3116631..515580f5 100644 --- a/.agents/skills/feature-plan/tracker.md +++ b/.agents/skills/feature-plan/tracker.md @@ -10,7 +10,7 @@ research, write, report — and only where the plan lands changes. | Above | Becomes | |---|---| -| `/feature-plan ""` | `/feature-plan #` — the number is the name under this answer | +| `/feature-plan ""` | `/feature-plan `, in a form *how an issue is referenced* accepts — GitHub's `#` where that row is absent, said once with `/onboard` named. The issue is the name under this answer | | pick from `context/roadmap.md` | pick from the open issues carrying the backlog label | | the ranking's first key | **the issue's `Priority:` line**, above everything below it | | ranking's *has a draft* | the issue body already holds researched material rather than one or two lines | diff --git a/.agents/skills/onboard/SKILL.md b/.agents/skills/onboard/SKILL.md index 863bda71..dffdcb60 100644 --- a/.agents/skills/onboard/SKILL.md +++ b/.agents/skills/onboard/SKILL.md @@ -348,7 +348,13 @@ answer's vocabulary. Under the working-tree answer that subsection is deleted in that the workflow **sets a type and never reads one** — no refusal, ranking or report branches on it. Warn about the collision if the set includes `Task`: that word means work too small for this loop in [`workflow.md`](../../../context/workflow.md), and an issue typed `Task` is still a workflow feature. -4. **Create either label if it is absent**, and say so before doing it. This is the first thing this +4. **How an issue is referenced, and how a change closes one** — two rows of that subsection's table, + shipped with GitHub's answer. On GitHub, confirm them and move on. **Where the tracker is not the + forge, ask for both**: the reference a commit writes and the forms a command accepts, and whether the + close is a keyword the forge acts on or a command — one for *completed* and one for *not planned*. The + alternatives are in [`context/tracking.notes.md`](../../../context/tracking.notes.md). **Where the rows + are absent**, an install from before they shipped, write them from that file and say you did. +5. **Create either label if it is absent**, and say so before doing it. This is the first thing this command does that is visible to anyone else with access to the repository — which is why the check above runs first: a refusal that fires after the label exists is a refusal that already wrote. diff --git a/.agents/skills/orchestrate/SKILL.md b/.agents/skills/orchestrate/SKILL.md index cbb88f3f..c9871aca 100644 --- a/.agents/skills/orchestrate/SKILL.md +++ b/.agents/skills/orchestrate/SKILL.md @@ -19,9 +19,10 @@ Read [`context/workflow.md`](../../../context/workflow.md) for the gate contract ``` /orchestrate "" -/orchestrate # # the issue is the brief +/orchestrate # the issue is the brief +/orchestrate … # several issues one change settles, closing each /orchestrate --pr "" # end at a pull request and answer its review (steps 7-8) -/orchestrate --pr # +/orchestrate --pr [ …] ``` **The second form is how a bug reaches this loop.** A defect too small to plan has no backlog entry and @@ -31,6 +32,15 @@ somebody remembers. Read the issue per [`context/tracking.md`](../../../context/ answer and use its title and body as the brief; **quote nothing back into a new description.** Where that file names no tracker, this form has nothing to read: say so and ask for the work as a sentence. +**An argument is an issue when it has a form that file's *how an issue is referenced* accepts**, and the +quoted form is prose. Write the issue in that form wherever this run names it. Where the row is absent, +GitHub's `#` is the answer: say so once and name `/onboard`. + +**Several issues are one brief when one change settles them all** — one defect filed twice, or small +defects in the same code that one commit fixes, each still checkable on its own. Step 1 judges the set as +one change: issues sharing only an area, a label or a feature are a category, and the refusal names which +to run alone. Read each, close each, and **do not mix prose with issues**. + ## 1. Refuse, before anything else Two guards, or this becomes the way to skip planning: @@ -40,9 +50,9 @@ Two guards, or this becomes the way to skip planning: scope would need to be split into, and name `/roadmap`. 2. **Refuse anything an existing roadmap entry already covers.** Read `context/roadmap.md` and check. If one covers it, say which, and name `/feature-plan` and `/feature-implement`. -3. **Refuse an issue that carries the backlog label.** That label says the backlog owns it, and a labelled - issue is a feature whether or not it looks small from here. Name `/feature-plan`. This guard replaces - guard 2 under the tracker answer, where the backlog is not a file. +3. **Refuse an issue that carries the backlog label**, or a set where any one does. That label says the + backlog owns it, and a labelled issue is a feature whether or not it looks small from here. Name + `/feature-plan`. This guard replaces guard 2 under the tracker answer, where the backlog is not a file. Apply the standing test from [`context/workflow.md`](../../../context/workflow.md): *if you would want a `history.md` row for it, it is a feature.* Ask that question out loud and answer it before proceeding. @@ -104,14 +114,19 @@ Require concrete evidence — file paths, command output — for every verdict, bit: does it block this change or not.** There is no severity scale — see *What happens to a defect the gate found* in [`context/workflow.md`](../../../context/workflow.md). +**Before reading the verdict, sort each note by where its defect came from**, per *A defect this work put +there is never filed* in that same file. **A `PASS WITH NOTES` carrying one that blocks is a `FAIL`**, and +step 5 fixes it. Nothing this change wrote is ever filed as a bug. + - `PASS` or `PASS WITH NOTES` → done. - `FAIL` → loop back. -**Every non-blocking observation gets one of the ends in *What happens to a defect the gate found* in -[`context/workflow.md`](../../../context/workflow.md), and kind decides which** — not size, and **not +**Every other non-blocking observation gets one of the ends in *What happens to a defect the gate found* +in [`context/workflow.md`](../../../context/workflow.md), and kind decides which** — not size, and **not whether it needs code changes**, which every true observation about code does. -- **A real defect, and it is user-visible or a regression would land green** → a **bug**, wherever this +- **A real defect that was there before this change, and it is user-visible or a regression would land + green** → a **bug**, wherever this project already files bugs, carrying this project's own labels. **Never the backlog label** — see *A bug is not a backlog entry* in that same file. The backlog is a list of features and this is not one. - **Not a defect, but work you would want a `history.md` row for** → that is a backlog entry, and adding @@ -129,12 +144,15 @@ Cap: **two loops per gate.** Re-brief with the prior implementation and the vali **verbatim**, plus the instruction to address only the failing items, refactor nothing that passes, and expand no scope. +**An old defect step 4's sort promoted never reaches the cap.** If one loop does not settle it, back its +edit out and give it its kind's end, and the verdict stands on the rest. + At the cap: **stop and hand back.** This command has no ledger to write a `blocked` row into, so the record is the working tree plus the report: leave the change exactly where it is, uncommitted, and say what failed, what was tried, and what the last feedback was. **If the work is still worth doing, it is a bug** — file it wherever this project files bugs and name it. **Never the backlog label**, for the reason in -[`context/workflow.md`](../../../context/workflow.md). Run from `#`, the issue is already that -record: say what is left in it rather than opening a second one. +[`context/workflow.md`](../../../context/workflow.md). Run from an issue, the issue is already that +record: say what is left in it rather than opening a second one, in each issue it is about. **A commit-sized change that cannot pass its gates is handed back, not filed away.** Nothing here writes a record that outlives the session, because nothing here is half-finished in a way the next session could @@ -164,12 +182,20 @@ pushes a branch and creates no tree. committed to it is not a smaller version of this flag, it is nothing. - **The agent commits** → one commit, at the granularity that file names. -**Run from `#`, the commit is what closes it.** Put `Closes #` in the commit message, the -same way `/feature-close` puts it in a pull request body — the close then rides the change instead of being -a step somebody has to remember, which is the whole reason this command takes an issue at all. **Where the -user commits, say the line rather than writing it**: it is their commit, and a close is not yours to make -on their behalf. Never close the issue by hand as a separate act — a closed issue whose fix is sitting -unstaged in somebody's tree is worse than an open one. +**Run from an issue, the change is what closes it**, by *how a change closes one* in +[`context/tracking.md`](../../../context/tracking.md) — the close then rides the change instead of being a +step somebody has to remember, which is the whole reason this command takes an issue at all. + +- **A keyword** → put it in the commit message, the same way `/feature-close` puts it in a pull request + body. Where the row is absent, it is GitHub's `Closes #`. +- **A command** → run it once the commit exists, and write no keyword. + +**From several issues, close each one**: a whole keyword per issue, or the command once per issue. + +**Where the user commits, say the line or the command rather than writing or running it**: it is their +commit, and a close is not yours to make on their behalf. **Close by the recorded answer, and only after +the change is committed** — a closed issue whose fix is sitting unstaged in somebody's tree is worse than +an open one. ## 7. `--pr` — the change leaves the machine @@ -190,8 +216,8 @@ request, and the review answered** — the last of those is step 8 and not*. **The body is this run's report** — step 9's content, which is the only description of the change that -exists. Run from `#`, step 6 already put `Closes #` in the commit, so the body does not repeat -it: the trailer closes the issue on merge whichever text the forge reads. +exists. Run from an issue, step 6's close is already made: a keyword in the commit closes it on merge +whichever text the forge reads, so the body does not repeat it, and a command ran after the commit. ### It cannot invent a branch @@ -256,8 +282,9 @@ answer, and this step does not apply to it in any form. What changed, whether it is committed or waiting in the tree, the Gate 1 output, the Gate 2 verdict, any loopbacks, any non-blocking observations the review raised — which die here — any bug filed for work that outlived the change, any backlog entry step 4's `/roadmap` added — or only *proposed*, with the -`/roadmap "…"` line to type, where its ask was declined or could not be made — whether the commit closes -the issue it ran from, and any release note written, with the paths that were checked and owed nothing. +`/roadmap "…"` line to type, where its ask was declined or could not be made — how each issue it ran from +is closed, by the keyword in the commit or the command that ran, or the line still to type — and any +release note written, with the paths that were checked and owed nothing. **Under `--pr`**, also the branch that was pushed and the pull request that was opened — or the line in step 7 that stopped short of one — plus what [`review.md`](review.md) says each round reports, and that diff --git a/.agents/skills/roadmap/SKILL.md b/.agents/skills/roadmap/SKILL.md index 1453c94e..3ffbfcad 100644 --- a/.agents/skills/roadmap/SKILL.md +++ b/.agents/skills/roadmap/SKILL.md @@ -22,7 +22,7 @@ file names the tracker, read [`tracker.md`](tracker.md) beside this file before ``` /roadmap # print the backlog — read-only /roadmap "some idea" # append one pending entry -/roadmap #123 # adopt an existing issue — tracker answer only +/roadmap # adopt an existing issue — tracker answer only ``` ## When nobody typed it diff --git a/.agents/skills/roadmap/tracker.md b/.agents/skills/roadmap/tracker.md index 668d3d79..7b81204f 100644 --- a/.agents/skills/roadmap/tracker.md +++ b/.agents/skills/roadmap/tracker.md @@ -70,7 +70,8 @@ its assignee and what it waits on, so the backlog is a single query — no per-i cached between runs. Step 5's count is the second, and asks for labels alone. **Group by tier, because that is the question this command answers.** Planned first, ideas second, and -each row on one line: +each row on one line, led by the issue in the form *how an issue is referenced* gives. Shown here with +GitHub's `#`, which is also the answer where that row is absent: ``` PLANNED (2) @@ -93,9 +94,9 @@ OUTSIDE THE BACKLOG (9) an unmarked entry is. - **`assigned` is the marker's replacement**, and it is the whole of what this command says about who is working on what. No name, no duration, no staleness — that is `/feature-status`. -- **`waits on #N` is the relationship**, printed on the row it constrains and in whichever group the entry - belongs to. **Do not lift a waiting entry into a group of its own**: what tier it is in and what it is - waiting on are different facts, and collapsing them is what the two groups exist to prevent. A cycle, or +- **`waits on ` is the relationship**, printed on the row it constrains and in whichever group the + entry belongs to. **Do not lift a waiting entry into a group of its own**: what tier it is in and what it + is waiting on are different facts, and collapsing them is what the two groups exist to prevent. A cycle, or a backlog where everything is waiting, is worth one line under the count and no more. - **An empty group still prints, with `(0)`.** *No plans at all* and *no ideas left* are both answers somebody came here for, and a heading that vanishes reads as a backlog that was not looked at. @@ -149,7 +150,7 @@ costs one edit to remove, and only if the user can see it. Someone else's issue can enter the backlog without being retyped: ``` -/roadmap #123 # adopt an existing issue into the backlog +/roadmap # adopt an existing issue into the backlog, in a form tracking.md accepts ``` Apply the backlog label to it and stop. **Copy nothing and rewrite nothing** — the reporter's wording, the diff --git a/.agents/skills/tracking-migrate/SKILL.md b/.agents/skills/tracking-migrate/SKILL.md index 7ca224ed..81254748 100644 --- a/.agents/skills/tracking-migrate/SKILL.md +++ b/.agents/skills/tracking-migrate/SKILL.md @@ -171,8 +171,8 @@ Do not create anything to prove the tracker works. ## Finishing up -1. **Show what changed**, as a list: every issue created with its number, what was set on it, and every - file removed. The removals are the part that is a diff; show them as one. +1. **Show what changed**, as a list: every issue created, by the reference `tracking.md` gives, what was + set on it, and every file removed. The removals are the part that is a diff; show them as one. 2. **Offer to remove what is now dead and empty** — `roadmap.md` once its last entry is gone, and `drafts/` and `plans/` once they hold nothing. Only where empty, only shown first, and never `history.md`, `archive/`. diff --git a/.claude/skills/feature-close/tracker.md b/.claude/skills/feature-close/tracker.md index 88b6506f..710e472b 100644 --- a/.claude/skills/feature-close/tracker.md +++ b/.claude/skills/feature-close/tracker.md @@ -19,7 +19,7 @@ phase finished — and so is everything about pushing. | the reference sweep | **nothing to sweep.** No path changed, so no link broke | | the plan's §9, read out of the document | **unchanged** — §9 is a section of the body, and the body is the plan | | answered or waived, written into the item | a body edit like any other | -| the why names the filed issue | the closing comment names it, by number — both issues are in one tracker, so it is a reference rather than a path | +| the why names the filed issue | the closing comment names it, by its reference — both issues are in one tracker, so it is a reference rather than a path | | delete `context/notes.md` | **unchanged** — it is a file in a working tree under either answer, and it is deleted the same way | **The archive is the closed issue**, and it is more than the file it replaces: the plan, the discussion @@ -29,15 +29,26 @@ ported. ### Who closes it -**Where [`context/git.md`](../../../context/git.md) says the agent pushes and opens a pull request**, put -`Closes #` in the pull request body and let the merge close it. The close then rides the same change -as the work — which is exactly what appending the `history.md` row does under the other answer. +**What closes it is [`context/tracking.md`](../../../context/tracking.md)'s *how a change closes one*; +when is this section's.** Where that row is absent, the answer is GitHub's keyword, `Closes #`: say so +once and name `/onboard`. Name the issue in the form *how an issue is referenced* gives, wherever this +command writes it. -**Where it says anything else, close the issue here**, with the closing comment, and say that is what -happened. Nothing else will: the trailer fires only when the commit reaches the default branch, and under +**Where the close is a command, run it here, once what this command writes is committed** — the one for +*completed*, or for *not planned* under `--dropped` — whatever `git.md` says, and put no keyword in the +pull request. Nothing else will run it. Every phase is already committed, which is what the refusal +checked; **where the user commits, hand the command over with the change** rather than closing ahead of +their commit. + +**Where it is a keyword and [`context/git.md`](../../../context/git.md) says the agent pushes and opens a +pull request**, put it in the pull request body and let the merge close it. The close then rides the same +change as the work — which is exactly what appending the `history.md` row does under the other answer. + +**Where `git.md` says anything else, close the issue here**, with the closing comment, and say that is what +happened. Nothing else will: the keyword fires only when the commit reaches the default branch, and under those answers it never gets there. -**`--dropped` always closes here, whatever `git.md` says.** A trailer closes an issue as *completed*, and +**`--dropped` always closes here, whatever `git.md` says.** A keyword closes an issue as *completed*, and that is the wrong outcome for an idea that will not be built — the two close reasons are how this answer records what `history.md`'s Outcome column used to. @@ -71,4 +82,4 @@ Name them in the closing comment and in the report, and **leave the relationship and its reason are the only explanation a person will find when they open one of those issues next month. **Then push, if `git.md` says so.** Unchanged, except that the pull request body links the issue rather -than an archived path, and carries the trailer described above. +than an archived path, and carries the keyword only where *Who closes it* puts one there. diff --git a/.claude/skills/feature-implement/SKILL.md b/.claude/skills/feature-implement/SKILL.md index 2b6e470c..60ee5ab8 100644 --- a/.claude/skills/feature-implement/SKILL.md +++ b/.claude/skills/feature-implement/SKILL.md @@ -229,14 +229,20 @@ Require concrete evidence — file paths, command output — for every verdict, **one bit: does it block this phase or not.** There is no severity scale to assign — see *What happens to a defect the gate found* in [`context/workflow.md`](../../../context/workflow.md). +**Before reading the verdict, sort each note by where its defect came from**, per *A defect this work put +there is never filed* in [`context/workflow.md`](../../../context/workflow.md) — an earlier phase's defect +included. **A `PASS WITH NOTES` carrying one that blocks is a `FAIL`**, and step 10 fixes it. Nothing this +feature wrote is ever filed as a bug. + - `PASS` or `PASS WITH NOTES` → the phase's work is done; go to step 11. - `FAIL` → go to step 10. -**Every non-blocking observation gets one of two ends, and kind decides which** — not size. The full -argument is *What happens to a defect the gate found* in +**Every other non-blocking observation gets one of two ends, and kind decides which** — not size. The +full argument is *What happens to a defect the gate found* in [`context/workflow.md`](../../../context/workflow.md): -- **A real defect, and it is user-visible or a regression would land green** → it is a **bug**. File it +- **A real defect that was there before this feature, and it is user-visible or a regression would land + green** → it is a **bug**. File it wherever this project already files bugs, with this project's own labels, and say in the report that you did. **Do not apply the backlog label** — see *A bug is not a backlog entry* in [`context/workflow.md`](../../../context/workflow.md). The backlog is a list of features and this is not @@ -263,6 +269,9 @@ Under the cap: re-brief with the prior implementation and the validator's feedba summarise or paraphrase it** — plus the instruction to address only the failing items, refactor nothing that passes, and expand no scope. Then re-run the same gate. +**An old defect step 9's sort promoted never reaches the cap.** If one loop does not settle it, back its +edit out and give it its kind's end, and the verdict stands on the rest. + At the cap: **close the row to `blocked` with the reason in its Note — before you escalate**, not after. A phase whose verification cannot pass is blocked by definition. Then hand back to the user with the current state and the last feedback verbatim. diff --git a/.claude/skills/feature-plan/tracker.md b/.claude/skills/feature-plan/tracker.md index d3116631..515580f5 100644 --- a/.claude/skills/feature-plan/tracker.md +++ b/.claude/skills/feature-plan/tracker.md @@ -10,7 +10,7 @@ research, write, report — and only where the plan lands changes. | Above | Becomes | |---|---| -| `/feature-plan ""` | `/feature-plan #` — the number is the name under this answer | +| `/feature-plan ""` | `/feature-plan `, in a form *how an issue is referenced* accepts — GitHub's `#` where that row is absent, said once with `/onboard` named. The issue is the name under this answer | | pick from `context/roadmap.md` | pick from the open issues carrying the backlog label | | the ranking's first key | **the issue's `Priority:` line**, above everything below it | | ranking's *has a draft* | the issue body already holds researched material rather than one or two lines | diff --git a/.claude/skills/onboard/SKILL.md b/.claude/skills/onboard/SKILL.md index e86fb778..92540619 100644 --- a/.claude/skills/onboard/SKILL.md +++ b/.claude/skills/onboard/SKILL.md @@ -351,7 +351,13 @@ answer's vocabulary. Under the working-tree answer that subsection is deleted in that the workflow **sets a type and never reads one** — no refusal, ranking or report branches on it. Warn about the collision if the set includes `Task`: that word means work too small for this loop in [`workflow.md`](../../../context/workflow.md), and an issue typed `Task` is still a workflow feature. -4. **Create either label if it is absent**, and say so before doing it. This is the first thing this +4. **How an issue is referenced, and how a change closes one** — two rows of that subsection's table, + shipped with GitHub's answer. On GitHub, confirm them and move on. **Where the tracker is not the + forge, ask for both**: the reference a commit writes and the forms a command accepts, and whether the + close is a keyword the forge acts on or a command — one for *completed* and one for *not planned*. The + alternatives are in [`context/tracking.notes.md`](../../../context/tracking.notes.md). **Where the rows + are absent**, an install from before they shipped, write them from that file and say you did. +5. **Create either label if it is absent**, and say so before doing it. This is the first thing this command does that is visible to anyone else with access to the repository — which is why the check above runs first: a refusal that fires after the label exists is a refusal that already wrote. diff --git a/.claude/skills/orchestrate/SKILL.md b/.claude/skills/orchestrate/SKILL.md index 8e182a26..df4b9698 100644 --- a/.claude/skills/orchestrate/SKILL.md +++ b/.claude/skills/orchestrate/SKILL.md @@ -22,9 +22,10 @@ Read [`context/workflow.md`](../../../context/workflow.md) for the gate contract ``` /orchestrate "" -/orchestrate # # the issue is the brief +/orchestrate # the issue is the brief +/orchestrate … # several issues one change settles, closing each /orchestrate --pr "" # end at a pull request and answer its review (steps 7-8) -/orchestrate --pr # +/orchestrate --pr [ …] ``` **The second form is how a bug reaches this loop.** A defect too small to plan has no backlog entry and @@ -34,6 +35,15 @@ somebody remembers. Read the issue per [`context/tracking.md`](../../../context/ answer and use its title and body as the brief; **quote nothing back into a new description.** Where that file names no tracker, this form has nothing to read: say so and ask for the work as a sentence. +**An argument is an issue when it has a form that file's *how an issue is referenced* accepts**, and the +quoted form is prose. Write the issue in that form wherever this run names it. Where the row is absent, +GitHub's `#` is the answer: say so once and name `/onboard`. + +**Several issues are one brief when one change settles them all** — one defect filed twice, or small +defects in the same code that one commit fixes, each still checkable on its own. Step 1 judges the set as +one change: issues sharing only an area, a label or a feature are a category, and the refusal names which +to run alone. Read each, close each, and **do not mix prose with issues**. + ## 1. Refuse, before anything else Two guards, or this becomes the way to skip planning: @@ -43,9 +53,9 @@ Two guards, or this becomes the way to skip planning: scope would need to be split into, and name `/roadmap`. 2. **Refuse anything an existing roadmap entry already covers.** Read `context/roadmap.md` and check. If one covers it, say which, and name `/feature-plan` and `/feature-implement`. -3. **Refuse an issue that carries the backlog label.** That label says the backlog owns it, and a labelled - issue is a feature whether or not it looks small from here. Name `/feature-plan`. This guard replaces - guard 2 under the tracker answer, where the backlog is not a file. +3. **Refuse an issue that carries the backlog label**, or a set where any one does. That label says the + backlog owns it, and a labelled issue is a feature whether or not it looks small from here. Name + `/feature-plan`. This guard replaces guard 2 under the tracker answer, where the backlog is not a file. Apply the standing test from [`context/workflow.md`](../../../context/workflow.md): *if you would want a `history.md` row for it, it is a feature.* Ask that question out loud and answer it before proceeding. @@ -107,14 +117,19 @@ Require concrete evidence — file paths, command output — for every verdict, bit: does it block this change or not.** There is no severity scale — see *What happens to a defect the gate found* in [`context/workflow.md`](../../../context/workflow.md). +**Before reading the verdict, sort each note by where its defect came from**, per *A defect this work put +there is never filed* in that same file. **A `PASS WITH NOTES` carrying one that blocks is a `FAIL`**, and +step 5 fixes it. Nothing this change wrote is ever filed as a bug. + - `PASS` or `PASS WITH NOTES` → done. - `FAIL` → loop back. -**Every non-blocking observation gets one of the ends in *What happens to a defect the gate found* in -[`context/workflow.md`](../../../context/workflow.md), and kind decides which** — not size, and **not +**Every other non-blocking observation gets one of the ends in *What happens to a defect the gate found* +in [`context/workflow.md`](../../../context/workflow.md), and kind decides which** — not size, and **not whether it needs code changes**, which every true observation about code does. -- **A real defect, and it is user-visible or a regression would land green** → a **bug**, wherever this +- **A real defect that was there before this change, and it is user-visible or a regression would land + green** → a **bug**, wherever this project already files bugs, carrying this project's own labels. **Never the backlog label** — see *A bug is not a backlog entry* in that same file. The backlog is a list of features and this is not one. - **Not a defect, but work you would want a `history.md` row for** → that is a backlog entry, and adding @@ -132,12 +147,15 @@ Cap: **two loops per gate.** Re-brief with the prior implementation and the vali **verbatim**, plus the instruction to address only the failing items, refactor nothing that passes, and expand no scope. +**An old defect step 4's sort promoted never reaches the cap.** If one loop does not settle it, back its +edit out and give it its kind's end, and the verdict stands on the rest. + At the cap: **stop and hand back.** This command has no ledger to write a `blocked` row into, so the record is the working tree plus the report: leave the change exactly where it is, uncommitted, and say what failed, what was tried, and what the last feedback was. **If the work is still worth doing, it is a bug** — file it wherever this project files bugs and name it. **Never the backlog label**, for the reason in -[`context/workflow.md`](../../../context/workflow.md). Run from `#`, the issue is already that -record: say what is left in it rather than opening a second one. +[`context/workflow.md`](../../../context/workflow.md). Run from an issue, the issue is already that +record: say what is left in it rather than opening a second one, in each issue it is about. **A commit-sized change that cannot pass its gates is handed back, not filed away.** Nothing here writes a record that outlives the session, because nothing here is half-finished in a way the next session could @@ -167,12 +185,20 @@ pushes a branch and creates no tree. committed to it is not a smaller version of this flag, it is nothing. - **The agent commits** → one commit, at the granularity that file names. -**Run from `#`, the commit is what closes it.** Put `Closes #` in the commit message, the -same way `/feature-close` puts it in a pull request body — the close then rides the change instead of being -a step somebody has to remember, which is the whole reason this command takes an issue at all. **Where the -user commits, say the line rather than writing it**: it is their commit, and a close is not yours to make -on their behalf. Never close the issue by hand as a separate act — a closed issue whose fix is sitting -unstaged in somebody's tree is worse than an open one. +**Run from an issue, the change is what closes it**, by *how a change closes one* in +[`context/tracking.md`](../../../context/tracking.md) — the close then rides the change instead of being a +step somebody has to remember, which is the whole reason this command takes an issue at all. + +- **A keyword** → put it in the commit message, the same way `/feature-close` puts it in a pull request + body. Where the row is absent, it is GitHub's `Closes #`. +- **A command** → run it once the commit exists, and write no keyword. + +**From several issues, close each one**: a whole keyword per issue, or the command once per issue. + +**Where the user commits, say the line or the command rather than writing or running it**: it is their +commit, and a close is not yours to make on their behalf. **Close by the recorded answer, and only after +the change is committed** — a closed issue whose fix is sitting unstaged in somebody's tree is worse than +an open one. ## 7. `--pr` — the change leaves the machine @@ -193,8 +219,8 @@ request, and the review answered** — the last of those is step 8 and not*. **The body is this run's report** — step 9's content, which is the only description of the change that -exists. Run from `#`, step 6 already put `Closes #` in the commit, so the body does not repeat -it: the trailer closes the issue on merge whichever text the forge reads. +exists. Run from an issue, step 6's close is already made: a keyword in the commit closes it on merge +whichever text the forge reads, so the body does not repeat it, and a command ran after the commit. ### It cannot invent a branch @@ -259,8 +285,9 @@ answer, and this step does not apply to it in any form. What changed, whether it is committed or waiting in the tree, the Gate 1 output, the Gate 2 verdict, any loopbacks, any non-blocking observations the review raised — which die here — any bug filed for work that outlived the change, any backlog entry step 4's `/roadmap` added — or only *proposed*, with the -`/roadmap "…"` line to type, where its ask was declined or could not be made — whether the commit closes -the issue it ran from, and any release note written, with the paths that were checked and owed nothing. +`/roadmap "…"` line to type, where its ask was declined or could not be made — how each issue it ran from +is closed, by the keyword in the commit or the command that ran, or the line still to type — and any +release note written, with the paths that were checked and owed nothing. **Under `--pr`**, also the branch that was pushed and the pull request that was opened — or the line in step 7 that stopped short of one — plus what [`review.md`](review.md) says each round reports, and that diff --git a/.claude/skills/roadmap/SKILL.md b/.claude/skills/roadmap/SKILL.md index 1453c94e..3ffbfcad 100644 --- a/.claude/skills/roadmap/SKILL.md +++ b/.claude/skills/roadmap/SKILL.md @@ -22,7 +22,7 @@ file names the tracker, read [`tracker.md`](tracker.md) beside this file before ``` /roadmap # print the backlog — read-only /roadmap "some idea" # append one pending entry -/roadmap #123 # adopt an existing issue — tracker answer only +/roadmap # adopt an existing issue — tracker answer only ``` ## When nobody typed it diff --git a/.claude/skills/roadmap/tracker.md b/.claude/skills/roadmap/tracker.md index 668d3d79..7b81204f 100644 --- a/.claude/skills/roadmap/tracker.md +++ b/.claude/skills/roadmap/tracker.md @@ -70,7 +70,8 @@ its assignee and what it waits on, so the backlog is a single query — no per-i cached between runs. Step 5's count is the second, and asks for labels alone. **Group by tier, because that is the question this command answers.** Planned first, ideas second, and -each row on one line: +each row on one line, led by the issue in the form *how an issue is referenced* gives. Shown here with +GitHub's `#`, which is also the answer where that row is absent: ``` PLANNED (2) @@ -93,9 +94,9 @@ OUTSIDE THE BACKLOG (9) an unmarked entry is. - **`assigned` is the marker's replacement**, and it is the whole of what this command says about who is working on what. No name, no duration, no staleness — that is `/feature-status`. -- **`waits on #N` is the relationship**, printed on the row it constrains and in whichever group the entry - belongs to. **Do not lift a waiting entry into a group of its own**: what tier it is in and what it is - waiting on are different facts, and collapsing them is what the two groups exist to prevent. A cycle, or +- **`waits on ` is the relationship**, printed on the row it constrains and in whichever group the + entry belongs to. **Do not lift a waiting entry into a group of its own**: what tier it is in and what it + is waiting on are different facts, and collapsing them is what the two groups exist to prevent. A cycle, or a backlog where everything is waiting, is worth one line under the count and no more. - **An empty group still prints, with `(0)`.** *No plans at all* and *no ideas left* are both answers somebody came here for, and a heading that vanishes reads as a backlog that was not looked at. @@ -149,7 +150,7 @@ costs one edit to remove, and only if the user can see it. Someone else's issue can enter the backlog without being retyped: ``` -/roadmap #123 # adopt an existing issue into the backlog +/roadmap # adopt an existing issue into the backlog, in a form tracking.md accepts ``` Apply the backlog label to it and stop. **Copy nothing and rewrite nothing** — the reporter's wording, the diff --git a/.claude/skills/tracking-migrate/SKILL.md b/.claude/skills/tracking-migrate/SKILL.md index 1258a796..9009d938 100644 --- a/.claude/skills/tracking-migrate/SKILL.md +++ b/.claude/skills/tracking-migrate/SKILL.md @@ -174,8 +174,8 @@ Do not create anything to prove the tracker works. ## Finishing up -1. **Show what changed**, as a list: every issue created with its number, what was set on it, and every - file removed. The removals are the part that is a diff; show them as one. +1. **Show what changed**, as a list: every issue created, by the reference `tracking.md` gives, what was + set on it, and every file removed. The removals are the part that is a diff; show them as one. 2. **Offer to remove what is now dead and empty** — `roadmap.md` once its last entry is gone, and `drafts/` and `plans/` once they hold nothing. Only where empty, only shown first, and never `history.md`, `archive/`. diff --git a/context/.state/manifest.json b/context/.state/manifest.json index a5687abc..787e3531 100644 --- a/context/.state/manifest.json +++ b/context/.state/manifest.json @@ -1,49 +1,49 @@ { "schemaVersion": 1, - "version": "0.29.1", + "version": "0.31.0", "adapters": [ "claude", "agents" ], "managedFiles": { ".agents/skills/feature-close/SKILL.md": "d3f734aaa2c0581351acd2f184693f4649bda853f09e445dee3a00fdafb25d8b", - ".agents/skills/feature-close/tracker.md": "e9711f29c5ff76c584e712f1a3c355174390da7870cb359b11790de80eb7fca8", - ".agents/skills/feature-implement/SKILL.md": "1998c6356c9ab1c930d598241eb83a3e432ae08ed0364180a0ab1c826e68d7dd", + ".agents/skills/feature-close/tracker.md": "7659a5d4c7cf2b04d9c2bda797691e03d676e29205db8e9da02f8383c56d6884", + ".agents/skills/feature-implement/SKILL.md": "ea3b0468b80c0a4b0b8dab362c6f483824e4984781d6104ddb6d104f17e40d9a", ".agents/skills/feature-implement/parallel.md": "c41ba6135f8c6835c7b1e1e38a37c829c8b554d37fd19662a08f85399e567c15", ".agents/skills/feature-implement/tracker.md": "e6b1311f78acc7df3ff93fad7becaf1089d4b4b04e962425cfa88be72b0b01a6", ".agents/skills/feature-plan/SKILL.md": "84d91f92945d89456ea98dd2e51bae43827696470d2db781912b9c547fa28292", ".agents/skills/feature-plan/split.md": "0f868d3c0eab43a07b46757cb0c9b0d5b3d2a9a7a81847a52f0ada19fab88ea5", - ".agents/skills/feature-plan/tracker.md": "f3815ffe47cb7cba1c22ac6b639d662f643ab9f57e41041872f759c943fc72c7", + ".agents/skills/feature-plan/tracker.md": "96520c2f1562a99f91caa57b30ec597ee4e0756c8b8a34c29e38ec4f28ac8a7d", ".agents/skills/feature-status/SKILL.md": "f7bcd5e06b2a9530ad4f382963765d842278b33048464299f7556d5297b449bf", ".agents/skills/feature-status/tracker.md": "20c35c5dfd506654e2eac1ee2386dd269178cb93f37f3276b7c821bfb57893fd", - ".agents/skills/onboard/SKILL.md": "b5aa7816770361d677171755cec1c1378aef237fa359e576ab31e49aed666590", - ".agents/skills/orchestrate/SKILL.md": "82c946c034d353e4e358371d31a0307992da75b7316e5e8e2373de3c956532a1", + ".agents/skills/onboard/SKILL.md": "904d9467c0cf005b09ec915af602d37f8c554b3ff6d51911c78a26dfa90c8022", + ".agents/skills/orchestrate/SKILL.md": "46ad1eaa62a36be32a9c33f55e9fc0dad7cf9fc9989ed4b7a21afc56b2659c55", ".agents/skills/orchestrate/review.md": "88a620bdb0d2c3c6a398661145459b786dcd61393441fbfacec80e06d28287bc", ".agents/skills/prototype/SKILL.md": "4edab78b37a2d2ca95d31af276c8e733cd5b470a2b099e781e75433702018ced", ".agents/skills/release/SKILL.md": "dc574b8a2781be95fc29ad3df47705a857aba19f3c5e1cf894079d48b2d563bd", - ".agents/skills/roadmap/SKILL.md": "451a542a16b2bcbb78222b0869cc349c781ad6cb26ad67b158fd16100be2e41d", - ".agents/skills/roadmap/tracker.md": "fe6c6de13e01d2e6b971abda47408196ad2ca3180f91f304911819237b09525a", - ".agents/skills/tracking-migrate/SKILL.md": "00b81223da3b2161e0387ca6826f265acdf7742b1bfc05046b86f17eaa76c968", + ".agents/skills/roadmap/SKILL.md": "76854b1edd766045073b82f50ff1ed74728408f8edfc8a08368b1181deb11a7d", + ".agents/skills/roadmap/tracker.md": "8b57546f8f60928a1117c8cfef1c382e0ead8ba63dbb55b8e339c8a6a2c43f6a", + ".agents/skills/tracking-migrate/SKILL.md": "b67dbd7a2c9a95ffbc7b72afdf8fee1a7739126e0a5eeadeba0347ce11874b2c", ".claude/agents/planner.agent.md": "b5e66e667d47b4f7041886ca48ece09679c4c537159306cb1a24a6eb8f51ea92", ".claude/agents/reviewer.agent.md": "db1b17472b6793378c55dfcb7b892ac07462007827eeadd664a76c65106a221b", ".claude/skills/feature-close/SKILL.md": "30eff7e9d20ad174f41af1677733ba1b074e95bd16b75b855ed43abc0b52b43d", - ".claude/skills/feature-close/tracker.md": "e9711f29c5ff76c584e712f1a3c355174390da7870cb359b11790de80eb7fca8", - ".claude/skills/feature-implement/SKILL.md": "759bf8d750fe0907f1e2245c1cbceb648b6a657ffccf8c9408d5dc47e32fc873", + ".claude/skills/feature-close/tracker.md": "7659a5d4c7cf2b04d9c2bda797691e03d676e29205db8e9da02f8383c56d6884", + ".claude/skills/feature-implement/SKILL.md": "67d45c8b41b623a66f34d4efaf6801f1e9e66d0216dfc3a7abdd20f8281d05a5", ".claude/skills/feature-implement/parallel.md": "c41ba6135f8c6835c7b1e1e38a37c829c8b554d37fd19662a08f85399e567c15", ".claude/skills/feature-implement/tracker.md": "e6b1311f78acc7df3ff93fad7becaf1089d4b4b04e962425cfa88be72b0b01a6", ".claude/skills/feature-plan/SKILL.md": "9a12805b80b8d6ef01e22173c3c1f82e2b98f9e4759a0be40ddbc59de2a009a0", ".claude/skills/feature-plan/split.md": "0f868d3c0eab43a07b46757cb0c9b0d5b3d2a9a7a81847a52f0ada19fab88ea5", - ".claude/skills/feature-plan/tracker.md": "f3815ffe47cb7cba1c22ac6b639d662f643ab9f57e41041872f759c943fc72c7", + ".claude/skills/feature-plan/tracker.md": "96520c2f1562a99f91caa57b30ec597ee4e0756c8b8a34c29e38ec4f28ac8a7d", ".claude/skills/feature-status/SKILL.md": "d16fc67173777dbe37887802d743d5713849cb41ec983d4cd7bab107aa9c4c75", ".claude/skills/feature-status/tracker.md": "20c35c5dfd506654e2eac1ee2386dd269178cb93f37f3276b7c821bfb57893fd", - ".claude/skills/onboard/SKILL.md": "7665d432e8d78365fbd48921b420c50dcc18c9bf86ae24309100dbf4ac8df18c", - ".claude/skills/orchestrate/SKILL.md": "e300d4774ce15e642f5bdcedd135af9051a8afb902bd399929a6a98af812abb5", + ".claude/skills/onboard/SKILL.md": "44fd9d37edee068071d7624bc432dcd0288844ce154ed3008ef562a01a3d554c", + ".claude/skills/orchestrate/SKILL.md": "7ec5b5b2499d93e2dcfa01f2b46059fbfe6239766a1c9f47f21d817b5bcc4b2f", ".claude/skills/orchestrate/review.md": "88a620bdb0d2c3c6a398661145459b786dcd61393441fbfacec80e06d28287bc", ".claude/skills/prototype/SKILL.md": "23cacfc1e80537f94a9381110ee2693c9d4ee7a7632aa8f4f5de097b48463507", ".claude/skills/release/SKILL.md": "307c5bbc77c2b4dcf8f10f9a6c609e941cec02ca4821ce1d06e17ddbdb173eca", - ".claude/skills/roadmap/SKILL.md": "451a542a16b2bcbb78222b0869cc349c781ad6cb26ad67b158fd16100be2e41d", - ".claude/skills/roadmap/tracker.md": "fe6c6de13e01d2e6b971abda47408196ad2ca3180f91f304911819237b09525a", - ".claude/skills/tracking-migrate/SKILL.md": "b6a0d3c892cff26b2ec8b085a47b1c93f0f73b627fe2e6702746c1e8338df230", + ".claude/skills/roadmap/SKILL.md": "76854b1edd766045073b82f50ff1ed74728408f8edfc8a08368b1181deb11a7d", + ".claude/skills/roadmap/tracker.md": "8b57546f8f60928a1117c8cfef1c382e0ead8ba63dbb55b8e339c8a6a2c43f6a", + ".claude/skills/tracking-migrate/SKILL.md": "18311fb9313441f405d395eafd00af819597ad0c8b67c47a1e29ed5066f57b9b", "AGENTS.md#ai-workflow": "8751d619046a62c4741a42a0c3919c9762f3c24ff209fcaa2aac75db4345b6dc", "context/README.md": "c79966ddbfa05e3271efdb4fa3820aa39f1c4b0c004347ee578a5a7b8b15a57d", "context/executors.notes.md": "33e51ff30f675cbcd2a42093feac805c59f5de2fccaad30b1d4f4c0de1ae810a", @@ -53,9 +53,9 @@ "context/release.notes.md": "0f66130b216038d576c361e0b2e2efad49aa859685745d28a28ce47fde607468", "context/roles/coder.md": "f47da64fcfff6a0be40c170c8df8496d9b889f6c3dfb53a16d6c790bfcffcc41", "context/stack.notes.md": "7493b5d68d6d6899a071abc80aaff6219587cf2dacd27a942a8eed579e3c87b5", - "context/tracking.notes.md": "3f62f0900b5a3b69d9f1fc76d6fd67433f459be8393e97916a1f628e57c36111", + "context/tracking.notes.md": "98a6e0269a4d0385204d71ef5024ac76249c0d55b39307b8a8d3a92076ffd3f2", "context/verify.notes.md": "fbd31f3f8ded8c840569cc6d00a21965b575d867840a8d01627b6b0cd814798c", - "context/workflow.md": "8569014852480147f5a737e30ff846e4b7fc1035e71e6199ab79a21d2859778f", - "context/workflow.notes.md": "00dc16b5ac52f1e58aaa2e48eee7e80c10a905a811bf11dd4eed679381e20a1f" + "context/workflow.md": "4fa3c1001284b66482859f8f701b0011ca1ac314af19240cbb78004a25d13e17", + "context/workflow.notes.md": "4754ae0b405aa0ab9cea1b0cc9acaf3fb5b1f5a7c78a14e20728dbac697a1cb2" } } diff --git a/context/tracking.notes.md b/context/tracking.notes.md index 151a3cb7..5ec20f6a 100644 --- a/context/tracking.notes.md +++ b/context/tracking.notes.md @@ -47,7 +47,32 @@ Under the tracker answer, fill in its three parameters and check its one optiona `**Types:**` line. The workflow sets a type and never reads one. Everything else in that subsection — the primitive table, the planned label, priority, `blocked by`, and -what the body's ceiling costs when it is reached — is live prose and stays as it is. +what the body's ceiling costs when it is reached — is live prose and stays as it is, except the two rows +below. + +### How an issue is referenced, and how a change closes one + +Two rows of the primitive table, and they ship with GitHub's answer. **Confirm them against the tracker +rather than asking blind**; on GitHub there is nothing to change. + +**The reference** is the form a commit, a pull request and a report write, and the forms a command +accepts as an issue argument: + +- `#` — GitHub's, and the shipped answer. +- `VERK-`, with a bare `` also accepted — a tracker that keys its issues. + +**Pick a form the forge will not read as its own.** A tracker that is not the forge and writes `#` +makes every commit link to whatever issue or pull request on the forge carries that number. + +**The close** is one of two kinds, and the skills branch on which: + +- **A keyword** — `Closes #` on GitHub. The skills put it in the pull request body or the commit + message and the forge closes the issue as *completed* when the change reaches the default branch. It + fires nowhere else, so a change that is never merged, and every *not planned* close, is closed by the + skill directly. +- **A command** — `verk close --reason completed`, and the one for *not planned* beside it. The skills + run it once the change is committed and never write a keyword. Name both: `/feature-close --dropped` + needs the second. ## How much a plan may hold diff --git a/context/workflow.md b/context/workflow.md index 434491c6..8023f2e5 100644 --- a/context/workflow.md +++ b/context/workflow.md @@ -311,20 +311,31 @@ phase, or not.** There is no severity scale and no second status vocabulary — are the four in the ledger, and **nothing below adds to them**: the file this section ends up describing holds no status, gates nothing, and is read by no command. +### A defect this work put there is never filed + +**Ask where a defect came from before its kind.** *This work* is the feature, any phase of it, or the one +`/orchestrate` change. + +| The defect | It | +|---|---| +| **this work put it there** | **blocks**, whatever the reviewer called it. A rule in it a regression could break with the suite green is a test this phase writes | +| **it was there before**, in a file this phase changes, and the fix is one targeted edit needing no new decision | **blocks** too. If the fix grows or one loop does not settle it, back it out, judge it as below: it never holds the phase | +| **anything else** | is judged as below | + **A blocking item has three ends, and the run that found it picks one before it reports:** | End | When | Where the record lives | |---|---|---| | **fixed** | the loopback fixes it and the gate re-passes | nowhere — there is nothing left to record | | **`blocked`** | the gate hit its cap, or it cannot be fixed in this phase | the phase's own ledger row: status `blocked`, the reason in its Note | -| **filed** | it is real work that outlives this phase | a bug, or a backlog entry — see *A bug is not a backlog entry* | +| **filed** | it is real work that outlives this phase, and it was there before | a bug, or a backlog entry — see *A bug is not a backlog entry* | **A non-blocking observation has two ends, and kind decides which** — not size, and not how interesting it was to find: | End | When | Where the record lives | |---|---|---| -| **a bug** | it is a real defect, and it is user-visible or a regression would land green — the gates pass and the defect ships anyway | wherever this project already files bugs | +| **a bug** | it is a real defect that was there before, and it is user-visible or a regression would land green — the gates pass and the defect ships anyway | wherever this project already files bugs | | **a backlog entry** | it is not a defect, and it is work you would want a `history.md` row for | the backlog, added by `/roadmap` | | **a note** | anything else | `notes.md` in this branch's working tree, until the branch ends | @@ -367,7 +378,8 @@ has already written where the phase stands. > **A defect found against a phase that is already `done` sets that phase back to `blocked`**, with the > reason in its Note. Do not record it elsewhere and leave the row claiming `done`. If it is larger than -> the feature, it is an issue instead, and the row stays as it is. +> the feature, it is an issue instead, and the row stays as it is. **Where a later phase's gate finds +> it, that gate's loopback fixes it instead**, and that row stays `done`. **Nothing accumulates across features.** A `blocked` row is archived with its plan at `/feature-close`, `notes.md` is deleted there, and an issue was never this feature's to carry. diff --git a/context/workflow.notes.md b/context/workflow.notes.md index 57122dc7..6143f27d 100644 --- a/context/workflow.notes.md +++ b/context/workflow.notes.md @@ -228,6 +228,19 @@ thirty notes through its whole life, read by every phase, going stale as the cod settled it was *what does this file do that something else does not already do*, and the answer was nothing that matters — a file whose invariant is maintained by discipline has no invariant. +### A defect this work put there is never filed + +**Why where it came from is asked before kind.** The kind test sorts what a gate did not block on, and the +reviewer's three conditions for blocking say nothing about whose code it is. So a defect in code the phase +had written minutes earlier went out as a bug, and the feature merged carrying it. In four repositories a +month's bugs said *on branch …, not yet on main* in 80 of 253 first lines, and each became a pull request of +its own after the feature merged: one loopback's work, paid for at the price of a whole run. + +**Why an old defect blocks only when the fix is small, and never holds the phase.** A defect that was +already there, in a file the phase changes, is cheapest to fix while the phase has it open. But a +pre-existing defect must not stop the phase at the loop cap. A fix that grows was never the phase's, and it +goes back to being judged by kind. + ### A bug is not a backlog entry With nowhere of its own, a defect went into the backlog, because that was the only *record* the workflow From bf63fbed5788c6f56ffab1e8c4f8a0430c90e0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baldur=20P=C3=A1ll=20H=C3=B3lmgeirsson?= Date: Wed, 25 Nov 2026 22:19:55 +0000 Subject: [PATCH 2/2] docs(context): onboard 0.31.0 The tracker answer's primitive table gains the two rows 0.31.0 ships with GitHub's answer, written from context/tracking.notes.md as /onboard step 4 says to where they are absent: - how an issue is referenced: `#` (new; it was missing, so every command fell back to it and said so) - how a change closes one: now names its kind, **a keyword**, which the skills branch on; the answer itself, `Closes #`, is unchanged --- context/tracking.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/context/tracking.md b/context/tracking.md index d61e6aa6..db84e000 100644 --- a/context/tracking.md +++ b/context/tracking.md @@ -61,7 +61,8 @@ them and every tree can reach it. | what kind of work it is | the issue's type — set by the workflow, read by nothing in it | | which features have to land before this one | the issue's **blocked by** relationships | | how much a plan may hold | *How much a plan may hold* below — here that ceiling is the body's own hard limit | -| how a change closes one | `Closes #`, in the pull request body where there is one and in the commit message otherwise | +| how an issue is referenced | `#`, in a commit, a pull request and a report, and the form a command that takes an issue accepts | +| how a change closes one | **a keyword** — `Closes #`, in the pull request body where there is one and in the commit message otherwise, acted on by the forge when the change reaches the default branch | ## The plan and its ledger both live in the issue body