{"data":{"slug":"discovered-d3f583bb3592d4c7c59ad058829f147eed679facb7efa348","title":"Build a Task Pipeline with HMML Delta and Review","summary":"Run a task end to end as one human-gated pipeline with a recorded stage and a live todo list \u2014 assess whether it splits into aspects of the task, implement and test, read the implemented change back as an HMML delta derived from the diff, comment pass, code quality standards, review, and create a PR.","url":"https:\/\/skillshunter.net\/skills\/discovered-d3f583bb3592d4c7c59ad058829f147eed679facb7efa348","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-d3f583bb3592d4c7c59ad058829f147eed679facb7efa348","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-d3f583bb3592d4c7c59ad058829f147eed679facb7efa348.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-d3f583bb3592d4c7c59ad058829f147eed679facb7efa348\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before starting, ensure the task directory is set up correctly with the worktree path `~\/fun_worktrees\/PROJECT\/TOPIC\/TASK`. Verify that the branch is not already holding work by running `git status --short` and `git log --oneline \"origin\/$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name)..HEAD\"`. The HMML delta is derived from the diff after implementation, not before.","instructions":"---\ndescription: Run a task end to end as one human-gated pipeline with a recorded stage and a live todo list \u2014 assess once whether it splits into aspects of the task, brief, the business context only I hold, the interface the change exposes, a short plan, implement and test, read the implemented change back as an HMML delta derived from the diff, comment pass, code quality standards, my review, PR, journal\nargument-hint: '[<description> | --issue | --notes] [<phase> | queue [<aspect>...]] [--no-hmml] [--no-context] [--no-split] [--resume-deep]'\nallowed-tools: Skill, Read, Write, Edit, AskUserQuestion, Bash(hobby-struct-parser:*), Bash(pwd:*), Bash(date:*), Bash(ls:*), Bash(rg:*), Bash(git branch:*), Bash(git -C * status:*), Bash(git -C * diff:*), Bash(git -C * log:*), Bash(git -C * rev-parse:*), Bash(git -C * ls-files:*), Bash(git -C * merge-base:*), Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git merge-base:*), Bash(git add:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr list:*), Bash(gh pr view:*), Bash(gh pr create:*), Bash(gh repo view:*), Bash(jaq:*), Bash(gh pr checks:*), Bash(gh pr merge:*), Bash(gh run list:*), Bash(gh run view:*), Bash(gh run rerun:*), Bash(nu -c:*), Bash(cargo:*), Bash(just:*)\n---\n\nRun a task **end to end** as one predictable, human-gated pipeline. The individual\nskills already exist (`journal:resume`, `hmml-extract`, `comment-pass`,\n`structure`, `journal:write`); this is\nthe **thin orchestrator** that runs them in a fixed order, stops hard where I take over, and resumes in a\nlater session exactly where it left off.\n\n**You are glue, not a reimplementation.** Never re-do what a sub-skill owns (HMML\ngrammar, how a delta is derived from a diff). Invoke it and trust its contract. Keep the sequential spine in *this* main-loop context so each\nphase reuses the last one's understanding \u2014 do not fan work out to subagents\nexcept where a sub-skill already does (`journal:resume`).\n\n**Only facts and the interface are settled before code**: what the task is,\nthe business context only I hold, and the interface the change exposes to\nother code and tools. The rest of the design is not reviewed up front. Once the change is\nimplemented and tested, it is read back as an HMML delta derived from the diff \u2014\nthe HMML exists for me to understand what the code change is doing, so it\nrepresents the implemented change, never a plan.\n\n## Four rules that override everything else\n\n1. **Hard-stop at every human gate** \u2014 GATE S (the split assessment, once per\n   task), GATE C (the business-context questions, then the interface round,\n   before anything is designed),\n   and GATE 2 (once the change is implemented, tested, read back as a delta and\n   comment-passed). \"Hard stop\" means: finish the\n   phase, set `waiting_on`, write the state file, print a compact summary of what I need to do, and\n   **end your turn**. Do not start the next phase, do not touch code, **do not\n   create a worktree**, until I say so. **Reading the\n   code is mine.** Nothing in this pipeline reviews the diff \u2014 the derived delta\n   is for me to read, `\/comment-pass` looks at the comments and `\/structure`\n   counts, and that is deliberately all of it. Do not add a review pass of your\n   own, and do not print a critique of your own change at GATE 2; give me the\n   diff, the delta and the evidence.\n2. **Commit the task branch only, and only after GATE 2.** On my `continue` at\n   GATE 2 the `pr` phase commits the change to this task's branch, pushes it and\n   opens the PR; a CI repair in `ci` commits and pushes the same way. Nothing is\n   committed before GATE 2, and **the notes repo is never committed** \u2014 the\n   state file, the `.hmml` delta, `business-context.md`, the journal: I run\n   `hwt sync` for that. Nothing is ever pushed to the default branch; every\n   change reaches it through a PR, unless I say otherwise in chat. Commit\n   messages follow the rule in `~\/.claude-hobby\/CLAUDE.md` \u2014 terse, a record of\n   the decisions, and **no justification you were not given**. If a decision in\n   the diff has no justification from my prompts or from what we settled, ask\n   rather than inventing one.\n3. **Never write a reason I did not give you.** The commit-message and PR rules\n   in `~\/.claude-hobby\/CLAUDE.md` allow exactly three sources for a\n   justification: my prompts, what we settled in discussion, or a fact you\n   verified in the code. GATE C is where the first two get written down,\n   verbatim, in `business-context.md`. A commit that needs a *why* none of them\n   supplies is **asked about at GATE 2**, never filled in.\n4. **No machine attribution** in anything you write \u2014 no `Co-Authored-By:\n   Claude`, no `Claude-Session:` trailer, no `Generated with Claude Code` footer,\n   no \ud83e\udd16. It is advertising and these repos do not carry it. Comments, commit\n   messages, PR descriptions and issue text have rules in\n   `~\/.claude-hobby\/CLAUDE.md`, and you follow them.\n\n## Step 0 \u2014 Resolve context, brief and phase\n\n1. **Task context** from the worktree path (`pwd`), which is\n   `~\/fun_worktrees\/PROJECT\/TOPIC\/TASK`: first dir project, second topic, third\n   the task ID, verbatim, blurb suffix and all. There is no repo level \u2014 the task\n   dir is the worktree. Fall back to `git branch --show-current`, skipping\n   `master`\/`main`\/`develop`.\n\n   **A code aspect** runs this pipeline too, from its worktree\n   `~\/fun_aspects\/PROJECT\/TOPIC\/TASK\/NAME` (started there by `\/task:aspect`).\n   Then the task is TASK and the aspect is NAME, and for the whole run:\n   - **the notes dir** is `notes\/PROJECT\/TOPIC\/TASK\/aspects\/NAME\/` \u2014 the state\n     file, the plan, the journal and the `.hmml` delta go there, wherever this\n     skill says `notes\/{project}\/{topic}\/{task}\/`;\n   - `business-context.md` stays the **task's** \u2014 one per task, read and\n     appended to at `notes\/PROJECT\/TOPIC\/TASK\/`;\n   - the brief is the aspect's `brief.md`, with the task's `issue.md` as its\n     context;\n   - **the base** is `aspect.json` `base`, else the default branch \u2014 every\n     place below that says the default branch means the base, and the PR\n     targets it;\n   - `is_aspect: true` in the state file, which skips `assess-split`.\n\n2. **The brief**, from the first argument:\n\n   | argument | brief |\n   |---|---|\n   | free text | the text itself, recorded verbatim |\n   | `--issue` | the task's `issue.md` \u2014 title, body, acceptance criteria, progress |\n   | `--notes`, or nothing | `journal:resume` over the task's notes dir |\n   | nothing, in an aspect | the aspect's `brief.md` |\n\n   With no argument and an `issue.md` in the task's notes dir, do both:\n   `journal:resume` **and** the issue. Record `brief_source` and the brief itself in the state file, and\n   summarize the goal and next step in 2\u20134 lines. That framing carries through\n   every later phase.\n\n3. **State file** at\n   `~\/fun_repos\/hobby-mimisbrunnr\/notes\/{project}\/{topic}\/{task}\/build-task.json`:\n\n   ```json\n   { \"phase\": \"assess-split\", \"brief_source\": \"issue|description|notes\",\n     \"brief\": \"<the brief>\", \"plan\": \"<plan file name>\",\n     \"hmml_delta\": \"<delta-<branch>.hmml path>\",\n     \"no_hmml\": false, \"no_context\": false, \"no_split\": false,\n     \"is_aspect\": false,\n     \"split\": { \"assessed\": \"<YYYY-MM-DD>\", \"outcome\": \"none|split\",\n                \"reason\": \"<one line>\" },\n     \"prior_art\": \"\",\n     \"context_rounds\": [ [ \"<question>\" ] ], \"context_recorded\": null,\n     \"interface\": { \"form\": \"surface|decisions|none\",\n                    \"agreed\": [ \"<signature line>\" ],\n                    \"deviations\": [ { \"item\": \"<signature line>\",\n                                      \"change\": \"<what changed>\",\n                                      \"reason\": \"<what in implement forced it>\" } ] },\n     \"evidence\": [ \"<command run, and what it showed>\" ],\n     \"commits\": [ { \"subject\": \"<subject>\", \"body\": \"<body>\" } ],\n     \"pr\": { \"title\": \"<title>\", \"body\": \"<body>\" },\n     \"todo\": [ { \"text\": \"<step>\", \"status\": \"pending\" } ],\n     \"waiting_on\": null,\n     \"ci_rounds\": 0,\n     \"written\": \"<RFC 3339>\", \"phase_since\": \"<RFC 3339>\" }\n   ```\n\n   `phase` is one of `assess-split`, `plan`, `context`, `implement`, `delta`,\n   `comments`, `standards`, `review`, `await-review`, `pr`, `ci`, `journal`,\n   `handed-off` (this task's work lives in its aspects), `await-turn` (an\n   aspect planned and waiting for its place in the queue), `done`. The task's\n   aspect queue keeps its own state in `queue.json` (**Phase `queue`**) and\n   never moves the task's `phase`. `context` is the waiting state GATE C\n   leaves: the pipeline has asked me something and stops until I answer.\n   Every write sets `written` to that write's time; `phase_since` moves with it\n   only when the write also changes `phase`, and otherwise keeps its old value.\n\n   **`is_aspect`** marks a run in an aspect's worktree. It is set from the path\n   at Step 0, never inferred from anything else, and it permanently skips\n   `assess-split` \u2014 an aspect does not split. **`split`** records the one-time\n   assessment so it is never re-asked; it is absent until `assess-split` runs.\n   What a split produced is recorded under this task's `aspects\/`, written by\n   `hwt aspect new`, and by the tasks it filed, and nowhere else.\n   **`evidence`**, **`commits`** and **`pr`** are written in `implement` and\n   `review`, and are what `pr` commits and opens. **`interface`** is the\n   surface settled in GATE C's interface round and what implement changed of\n   it; absent until that round runs, `form: none` when the change touches no\n   interface in scope.\n\n   **Migrate an old record** before anything else, and say so in one line: a\n   phase of `await-hmml-review` or `revise` becomes `implement` (its annotated\n   `.hmml` and review plan stay in the notes dir as notes; nothing is\n   re-reviewed), `hmml_unit` and `hmml_units` become `hmml_delta` (empty until\n   `delta` runs again; the old per-unit `.hmml` specs stay as notes), and\n   `rounds` is dropped. A\n   leftover `dev-flow.json` in the same directory is read once for its `phase`,\n   then ignored \u2014 never written to again. A state file with no\n   `split` record and a phase past `plan` gets\n   `split: {\"outcome\": \"none\", \"reason\": \"task already in flight\"}` rather\n   than a back-filled assessment: work found once a task is under way is added\n   with `\/aspect`. An `is_subtask` key from an older record is dropped, its\n   task treated as having `split` recorded; a `subtasks` key is dropped too,\n   and a `subtasks.json` is no longer read. A record an unattended run left \u2014\n   an `auto` key, or a phase not listed above \u2014 has `auto`, `merge`,\n   `front_load`, `answered`, `replan`, `model` and `acceptance_result`\n   dropped, and its phase is inferred from the artifacts as in step 4. A\n   `queue.json` whose aspects carry a status not in **Phase `queue`** is\n   reported and left alone.\n\n4. **Starting phase**, in this precedence: a `queue.json` in the task's notes\n   dir whose `phase` is not `done` outranks everything \u2014 the queue resumes\n   where it stopped (**Phase `queue`**), and the task's own phase is taken up\n   again once it is done. Then `phase: assess-split` outranks\n   everything below \u2014 the split question is answered before any planning, and\n   is skipped only when `is_aspect` is true, `no_split` is set, or `split` is\n   already recorded. Else an explicit phase argument forces it \u2014 `queue`\n   included, which queues this task's code aspects without touching `phase`;\n   else `phase: await-turn` resumes as **Phase `await-turn`**; else `phase`\n   from the state file; else **infer** from artifacts and say what you inferred\n   \u2014 `business-context.md` has no section for this task and there is no\n   `plan-*.md` \u2192 `plan`; a section but no plan file \u2192 `context`, resuming at the\n   next-round derivation (my answers are on disk, the plan is not \u2014 a round\n   may still be owed); uncommitted code changes\n   or commits ahead of the default branch \u2192 `implement`; an open PR for the\n   branch \u2192 `done`.\n\n   **`phase: handed-off` is terminal.** This task's work lives in its aspects\n   now. Run `hwt aspect list`, and print each aspect's state, live PR state and\n   outcome, its `open_items` with no `issue`, and `hwt aspect start <name>`\n   beside each still `open`. Then run `hwt done`: it refuses while an aspect is\n   unfinished, which only means the task is still waiting, and it needs no\n   confirmation from me because the aspects are the whole of this task. End the\n   turn. Do not plan, implement, or open a PR here \u2014 this task owns no code.\n\n   **The same applies whenever this session is asked.** A status question and a\n   message from an aspect are both answered by running `hwt aspect list` again,\n   never from what this session saw earlier. A message is a prompt to re-read\n   the record, not a report to pass on. In any other phase, report what it says\n   and carry on: `hwt done` is only this skill's to run when the task owns no\n   code.\n\n5. **Flags:** `--no-hmml` skips the `delta` phase, for a change I can read\n   straight from the diff. `--no-context` skips GATE C's business rounds \u2014 for a\n   change I have no domain background to give; its interface round still runs.\n   `--no-split` skips `assess-split` for this task, for when I already know it\n   is one thing. `--resume-deep` uses `journal:resume-deep`. Record each as its\n   state-file flag so a resume does not silently re-add the phase. A\n   `size_budget` or `context_gaps` key from an older record is dropped; a\n   `context_questions` list becomes the single entry of `context_rounds`. A\n   record past `context` with no `interface` is not sent back to ask one: it\n   predates the round, and GATE 2 prints no deviations line for it.\n\n6. **Rehydrate before running a phase that is not `plan`.** A resumed session has\n   none of the understanding the earlier phases built, and does not need to guess\n   \u2014 read, in this order: the state file's `brief`, `todo`, `evidence` and `interface`; the plan file; `business-context.md` \u2014 the domain facts I\n   dictated at GATE C, in my own words, which are what the change was designed\n   from and the only text a commit message may take an unverifiable *why* from;\n   the derived `.hmml` delta when `delta` has run; and `git status --short` \/\n   `git diff`. Then say in two lines what the task is doing and where it stopped.\n\nAnnounce the resolved `{project, topic, task, brief_source, phase}` in one line,\nthen run from that phase onward. Never redo an earlier phase. Write the\nstate file at **every** transition; do not `git add`\/`commit` it.\n\n## Live state\n\n`hdash` shows `todo` and `waiting_on` on the task's card, so keep both current\nwhile you work \u2014 they are how I see where a session is without opening it.\n\n- **`todo` is the plan.** Seed it from the plan file's steps when the plan is\n  written, one line each, every item `pending`. Items only change status \u2014\n  `active`, `done`, `dropped`; a step found on the way is inserted where it\n  runs. Exactly one item is `active` while work is under way; flip it to `done`\n  in the same write that starts the next one. Open items that outlive the task\n  go to the journal at `journal`, never into `todo`.\n- **`waiting_on`** is one line naming what I decide or do, set at every hard\n  stop and when a sub-skill asks me something; `null` again in the write that\n  starts the next step.\n\n______________________________________________________________________\n\n## Phase `assess-split` \u2192 GATE S (once per task)\n\nThe **first** phase of a new task, before any planning. Ask once whether this is\nreally one piece of work, or several that each want their own worktree, branch,\nPR and tab. Then record the answer so it is never asked again.\n\nTwo homes for a piece that is cut off, and no third:\n\n- **an aspect** \u2014 part of this task, worked in a tab of this task's session,\n  started **now** or **later** in the task, but before it is done (`hwt done`\n  refuses while one is unfinished). A code aspect is cut from the current tip\n  of its base when started and delivers through its own PR to that base.\n- **a task** \u2014 work planned for some later point that is not part of this\n  task. It gets its own card through `\/issue-create`, and no tab.\n\nSkip the phase entirely \u2014 set `phase: plan` and continue \u2014 when `is_aspect` is\ntrue, `no_split` is set, or `split` is already recorded.\n\n**S1 \u2014 See whether the branch already holds work.**\n\n```bash\ngit status --short\ngit log --oneline \"origin\/$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name)..HEAD\"\n```\n\nCommits are never moved between branches. A task whose branch already has\ncommits or a dirty tree is in flight: record\n`split: {\"outcome\": \"none\", \"reason\": \"task already in flight\"}`, say so in one\nline, and continue to `plan`. Work found later is added with `\/aspect`.\n\n**S2 \u2014 Read the whole task.** Step 0 already resolved the brief; if it came from\na bare description, also run `journal:resume` over the notes dir. This is the\nonly phase that sees the task before it is carved up, so read all of it.\n\n**S3 \u2014 Draft the cut as deliverables, not as components.** Write the candidate\nlist as the order in which a player or a caller gains capability, *before*\nlooking at the code layout. Starting from the architecture is what produces\nlayer tasks, and shaping rule 1 exists to reject exactly those.\n\n**S4 \u2014 Test every candidate against the five Task shaping rules** in\n`~\/.claude-hobby\/CLAUDE.md`. That file is the standard and this skill\ndeliberately does not restate it. State each failure rather than silently fixing\nit \u2014 a candidate that had to be re-cut is information about the shape of the\nwork, and I want to see it at the gate. The re-cuts that fix nearly everything:\n\n- **Layer candidate \u2192 vertical slice.** \"Add the component\" becomes one narrow\n  thing that is visible in the running game.\n- **Carries an open question (rule 4) \u2192 make the decision its own item,** and\n  make whatever depends on the answer wait. A question is not a deliverable \u2014\n  but one whose answer is a file is a research aspect.\n- **Leaves state to be remembered (rule 5) \u2192 pull the cleanup into the same\n  piece,** or make it an aspect that exists now.\n\nThen give each survivor its home: an aspect (code or research; now or later)\nwhen it is part of this task, a task when it is not.\n\n**S5 \u2014 Check the set, not just the items.** Two properties the list as a whole\nmust have, both printed at the gate. Overlapping *files* are allowed \u2014 each\naspect has its own worktree and conflicts are resolved at PR time \u2014 but say\nwhich files two pieces share.\n\n- **Every piece stands alone** \u2014 if backing one out forces another out, they\n  are one piece cut on the wrong axis (rule 3).\n- **Nothing is left to remember** (rule 5) once every piece has merged \u2014 no\n  flag, no dual path, no half-done migration.\n\n**S6 \u2014 Decide whether to split at all.** Fewer than two surviving candidates\nmeans this is one task: record `split: {\"outcome\": \"none\"}`, say so in one line,\nset `phase: plan`, and continue into the normal pipeline. **This is the expected\nanswer for most tasks** \u2014 do not manufacture a decomposition to justify the\nphase.\n\n**\u2192 GATE S: HARD STOP.** Write the state file with `phase: assess-split` still\nset, then print:\n\n- the **end state** in one or two sentences: what is true once every piece has\n  landed;\n- a table of proposed pieces \u2014 name, aspect (`code`\/`research`, `now`\/`later`,\n  base when not the default branch) or task, the queue position of every code\n  aspect worked now (they run one after another, in this order), the user-visible behaviour, the\n  done-when observation (rule 2), the files it owns, and any `enabling` label\n  with the piece it unlocks;\n- the **rejected candidates**, with the rule each failed and how it was re-cut;\n- the two set-level checks from S5, each `pass` or the specific pair that\n  fails;\n- the exact commands the approval will run, one line each, so I can see the\n  blast radius before it happens;\n- *\"Edit, merge or drop any piece, then say continue and I'll create them. Say\n  `no split` and I'll carry on as one task.\"*\n\nEnd your turn. **Create no worktree, file no issue.**\n\n______________________________________________________________________\n\n## Phase `handed-off` \u2014 on my go at GATE S\n\nOnly after I approve the decomposition. Per approved aspect, in order:\n\n1. **Add it** \u2014 the decisions were made at the gate, so run the primitive\n   rather than the interactive `\/aspect`:\n   ```\n   nu -c \"use ~\/.config\/nushell\/hwt.nu *; hwt aspect new <name> --kind <kind> --goal '<one line>' [--base <branch>]\"\n   ```\n   Then overwrite its `aspects\/<name>\/brief.md` in the shape `\/aspect` step 6\n   gives \u2014 goal, done when, why the task needs it, already known, where to\n   look, out of scope \u2014 read by a session that has no memory of this\n   conversation.\n\nPer approved task: run `\/issue-create` for it, naming this task in its context.\nOne that waits on an aspect gets a block, not a sentence in its body:\n`nu -c \"use ~\/.config\/nushell\/hwt.nu *; hwt block --reason 'waits on aspect <name> of <this task>' --task <t> --project <p>\"`,\nand `<p>\/<t>` in that aspect's `blocks` list in `aspect.json`, so the aspect can\nhand it on.\n\nThen, once per task:\n\n2. Set `split: {\"outcome\": \"split\", \u2026}` and `phase: handed-off`, and write the\n   state file. The aspects themselves are already recorded: `hwt aspect new`\n   wrote each one under `aspects\/`.\n3. Run `journal:write` once, recording the decomposition and *why* each cut fell\n   where it did. The rejected candidates belong here too \u2014 that reasoning is the\n   part that would otherwise be lost, and the aspects' journals will not have it.\n   Aspect status is not journal content: `## Current State` says to read\n   `hwt aspect list`, so it cannot go stale.\n4. With any code aspect worked now, write `queue.json` first (**Phase\n   `queue`**): those aspects in the gate's order, the first `running` and the\n   rest `waiting`. Then start every aspect worked now, research and code:\n   `nu -c \"use ~\/.config\/nushell\/hwt.nu *; hwt aspect start <name>\"` for each \u2014\n   it checks the aspect out from its base's current tip and opens its tab. A\n   rebase conflict is aborted and reported; stop there and tell me. Print the\n   handoff: each aspect with its kind, its place in the queue, and whether its\n   tab is open or it waits as `open` (`hwt aspect start <name>`, or a click in\n   hdash, starts it later), each task filed, a note that `hdash` lists the\n   aspects on this task's card, and that every code tab asks its questions now\n   and implements in turn.\n\n**Only the aspects worked now are started here.** **This task implements\nnothing** \u2014 it owns no code and opens no PR. A research aspect messages this\nsession when it finishes (`\/task:aspect` step 7). With no code aspect worked\nnow, end your turn; otherwise go on to **Phase `queue`**.\n\n______________________________________________________________________\n\n## Phase `queue` \u2014 every code aspect asks first, then implements in turn\n\nWhat it is for: every queued code aspect asks its questions and plans as soon\nas its tab opens, then waits; each one implements only once the one before it\nhas merged, so it builds on a base that already holds it (`business-context.md`\nof `hobby-tooling\/llm_workflow\/drop_auto_mode`, `## intent`,\n`## questions-first`). Every aspect runs the whole of this pipeline in its tab,\nGATE C and GATE 2 included. Entered from `handed-off`, or by the `queue`\nargument over aspects added with `\/aspect`: `queue <name>...` in that order,\nelse every code aspect still `open`, by `created` \u2014 written to `queue.json` as\nin `handed-off` step 4, then each started with `hwt aspect start <name>`. A\nresearch aspect is never queued.\n\n**State** is `queue.json` in the task's notes dir, written at every change:\n\n```json\n{ \"phase\": \"run|done\",\n  \"aspects\": [ { \"name\": \"\", \"status\": \"waiting|running|done\", \"pr\": \"\" } ],\n  \"written\": \"<RFC 3339>\" }\n```\n\nOnly this session moves an aspect to `running`; an aspect only reads it\n(**Phase `await-turn`**).\n\n**The driver**, in this session (`## queue-driver`). For the aspect that is\n`running`:\n\n1. **Wait** for its `aspect.json` `state` to be `done` \u2014 `\/task:aspect finish`\n   sets it once its PR has merged \u2014 with a background Bash call\n   (`run_in_background: true`):\n   `until jaq -e '.state == \"done\" or .state == \"closed\"' <aspect notes dir>\/aspect.json >\/dev\/null; do sleep 30; done`.\n   End the turn; its exit resumes this session. A resumed session with\n   `queue.json` `phase: run` starts the same wait again. Never read the\n   aspect's code, plan or diff.\n2. **On its exit**: `status: done` and `pr` from `aspect.json`. Set the next\n   `waiting` aspect `running` and write `queue.json` before anything else, so\n   a tab restarted from here on picks its turn up by itself.\n3. **Tell it.** Find its session with `ListAgents` \u2014 an aspect's session name\n   starts with its worktree's basename, the aspect's name, non-alphanumerics\n   as `-` \u2014 and `SendMessage` it: `your turn in the <task> aspect queue: rebase\n   and implement (\/task:build, phase await-turn)`. No such peer listed \u2192\n   set `waiting_on` to `start aspect <name> in its tab`, print that one line,\n   and go back to 1 for it: the tab picks up its turn whenever it next runs.\n4. Back to 1.\n\nA message from an aspect while the queue runs is not a step: it is the\n`\/task:aspect finish` notice, and the wait already sees the same state.\n\n**When every aspect is `done`**: `queue.json` `phase: done`, clear\n`waiting_on`, print one line per aspect with its PR, then go on as the task's\n`phase` says \u2014 `handed-off` re-reads `hwt aspect list` and runs `hwt done`.\n\n## Phase `await-turn` \u2014 an aspect waiting for its place in the queue\n\n**In an aspect** whose task's `queue.json` lists it, the plan step of\n**Phase `context`** ends here instead of in `implement` when its status is\nnot `running`: record `planned_at` (`git rev-parse HEAD`), set `phase:\nawait-turn` and `waiting_on` to `waiting for <the aspect before it>`, print\nthat one line, and end the turn. An aspect already `running` when its plan is\nwritten records `planned_at` and carries straight on to `implement`.\n\nResumed \u2014 by the task session's message, a restarted tab, or me \u2014 read\n`queue.json` again. Not `running` \u2192 print the same line and end the turn.\n`running`:\n\n1. `nu -c \"use ~\/.config\/nushell\/hwt.nu *; hwt aspect start <name> --no-tab --rebase\"`\n   \u2014 onto the base's current tip, which now holds every aspect before it. A\n   conflict is aborted; print it, set `waiting_on`, and stop.\n2. **Replan when the base moved** \u2014 `HEAD` differs from `planned_at`\n   (`## stale-plan`). Read what landed (`git log --stat <planned_at>..HEAD`),\n   take the recorded answers in `business-context.md` as if given now, and\n   write a new dated plan file \u2014 the earlier one stays. Print what changed\n   against the earlier plan, one line per step added, dropped or changed, and\n   record the same list in the new plan's Open Questions. Reseed `todo`, and\n   update `plan` and `planned_at`. Nothing moved \u2192 say so in one line.\n3. Clear `waiting_on`, set `phase: implement`, and carry on.\n\n______________________________________________________________________\n\n## Phase `plan` \u2192 GATE C\n\n**Gate 0 \u2014 prior art.** Before any code. No sweeping changes without prior\ndiscussion, and do not accelerate past someone else's active work.\n\n- `gh pr list --search \"<keywords>\" --state all` on the repo this task targets,\n  and `rg -il \"<keywords>\" ~\/fun_repos\/hobby-mimisbrunnr\/notes\/<project>\/*\/*\/issue.md`\n  for the issues in the notes. Report anything overlapping, with its state.\n- **Stop and ask** if an open PR or active issue covers this work.\n\nRecord `prior_art`. On my own repo this is usually one empty\nsearch; on a repo I do not own it is the difference between a welcome PR and a\nclosed one.\n\n**Gate 0b \u2014 the standards this repo holds.** If the target repo has a\n`structure.hstruct` (at its root, or at the crate root in a workspace), read it\nand run `hobby-struct-parser <repo>` for the current numbers. State in one line\neach:\n\n- the standards, and which the planned change is likely to move, in which\n  direction;\n- any reviewed (`review:`) standard whose subject the change touches.\n\nThis is the cheap end of the loop. \"This adds a module importing eight others and\nthe standard says six\" is a design choice at plan time and rework at review time.\nCarry the reading into the plan file.\n\nA repo with no `structure.hstruct` skips this silently \u2014 most have none, and a\ntask is not the place to argue for one.\n\n**Read the code the change will touch.** Enough to know what it does today \u2014\nthe units, the data, the call paths the brief lands in. No spec is written here:\nthe delta is derived from the diff once the change exists, and that is where the\nbaseline comes from.\n\n**Ask for the business context.** The change is not designed yet. This is the\nmoment to collect what only I have \u2014 the context the change has to be designed\ninside: which rule sets a bound, what an upstream system guarantees, what a\nlater reader will break by tidying a shape away, why the obvious approach was\nrejected before. Ask now and the answers shape the plan, the code *and* the commit\nmessage. Ask after the code exists and they can only decorate\nit.\n\nSkip this step entirely on `--no-context`: set `phase: context` and carry on to\n**the interface round** in the same turn \u2014 `--no-context` skips the business\nrounds only.\n\nFirst **read what is already written down**: the brief, the task's `issue.md`,\nand the task notes. Ask for nothing recoverable from those \u2014 quote it instead.\n\nThen derive what building this needs to know that the current code cannot tell\nyou: the goal read against the code. **Do not ask it all at once.** The answers\nbuild on each other \u2014 one answer settles a second question, reshapes a third,\nor comes back as a question of its own \u2014 so GATE C is a conversation of small\n**rounds**, each of one to three questions on one theme.\n\n**Before anything is asked, drop what is not mine to answer.** A question that\nresearch, the code or an earlier task's notes could settle \u2014 how a dependency\nbehaves, whether there is a standard, what a sibling task decided \u2014 is looked\nup, not asked; the finding goes in that question's `what I found:` line, or\nmakes the question unnecessary.\n\n**Order the rounds by dependency.** The first round holds the questions whose\nanswers decide whether other questions exist at all: the scope, the one\ndecision the rest hang off, and \u2014 when neither `issue.md` nor the brief states\nit \u2014 the **done-when**: *what should you be able to do, and see, to call this\ndone?* (`~\/.claude-hobby\/CLAUDE.md`, Task shaping rule 2). Detail comes in later\nrounds, derived from what the earlier ones said.\n\nEach question is\n\n- anchored to something named \u2014 a file, a unit, a field, a rule in the brief;\n- about the **system**: what produces this, what consumes it, which rule forces\n  it, what goes wrong without it;\n- one question, never two joined by *and* \u2014 an answer to a compound question\n  says *\"for the first one\"* and leaves the second hanging;\n- carrying the one line you found while looking (`what I found: \u2026`), or an\n  explicit blank (`nothing in the notes or the issue covers this`).\n\nTwo kinds, asked differently:\n\n- **A fact only I hold** \u2014 a rule, a target, what an upstream guarantees, why\n  something was rejected before \u2014 is asked **open**, with no draft answer and no\n  leading guess. A proposed sentence with a question mark gets rubber-stamped,\n  and then the reasoning is yours, not mine.\n- **A choice between shapes** is asked as **lettered options**, each with what\n  it costs, plus *\"or another shape\"*. An open *\"what constrains X?\"* over a\n  design choice gets a blank or a guess; options with their costs get a\n  decision.\n\n**Nothing worth asking?** Say so in one line (`the brief is self-contained \u2014 no\nbusiness context needed`), set `phase: context`, and carry straight on to\n**the interface round** **without** stopping. A gate with nothing behind it is\nfriction.\n\n**\u2192 GATE C: HARD STOP, once per round.** Otherwise set `phase: context`, append\nthe round's questions verbatim to `context_rounds` as a new last entry (so a\nresumed session re-asks *these* rather than inventing new ones), set\n`waiting_on` to `answer GATE C round <n>`, write the state file, then print the\nround's theme in a few words, its numbered questions, and one line: *\"Answer in\nyour own words \u2014 `N: skip` if there is nothing to say, and a skip is a real\nanswer. Say `plan` to stop asking and plan from what is recorded.\"* End your\nturn.\n\n______________________________________________________________________\n\n## Phase `context` \u2192 `implement`\n\nThe waiting state written at GATE C. Entered when my answers to a round come\nback.\n\n**The `context` phase argument re-opens it at any point** \u2014 the pipeline's one\nloop, and how more of what I know gets in after I have seen something. Invoked\nlater, it derives its questions from whatever prompted the top-up (usually the\ndelta I just read at GATE 2, at a `file:line` you can now show me), appends the\nanswers to the same section, and returns to `implement`.\n\n**Record my answers, verbatim.** Append them to\n`~\/fun_repos\/hobby-mimisbrunnr\/notes\/{project}\/{topic}\/{task}\/business-context.md`\n(create it with the notes front matter \u2014 `title: \"{task} \u2014 business context\"`,\ntoday's `created`, tag `context`), one `## <short handle>` block per answer:\n\n```markdown\n## wave-cap\nQ: why cap concurrent spawners rather than queueing the overflow?\nThe spawn budget is what keeps the frame time under the 16ms target on the\nSteam Deck; a queue would hide the cap and stutter instead of dropping a wave.\n```\n\n**Copy my wording. Never paraphrase, summarize, complete or tidy it.** This file\nis the only text a commit message may take an unverifiable *why* from, so a\nsentence you smoothed here becomes a claim I never made. Record a skip too \u2014 the\nhandle with the body `skipped \u2014 no context to give`. A question I leave\nunanswered is a skip: record it as one rather than asking again. A follow-up\nthat a later round asks about an earlier answer gets a handle of its own; the\nearlier block is never edited.\n\n**Then derive the next round from what is now recorded.** Read every question\nstill in mind against the answers so far:\n\n- **settled** by an answer \u2192 dropped, without asking;\n- **reshaped** by one \u2192 asked in its new form;\n- the answer **asks back** (*\"what do you mean by \u2026?\"*, *\"what would supporting\n  both cost?\"*) \u2192 the next round opens with your answer to it, then the\n  question again in the sharpened form;\n- the answer **hands it to you** (*\"I don't know, check how bevy loads them\"*)\n  \u2192 go and look now; the next round opens with what you found, and asks\n  again only if what was found still leaves a choice that is mine;\n- the answer is **ambiguous** between two readings \u2192 ask which, quoting it.\n  An ambiguity left for GATE 2 becomes a default of yours I can only accept or\n  reject after it is built.\n\nSomething left that the code, the notes and research cannot settle \u2192 the next\nround, through **GATE C** again (`context_rounds` grows by one entry). Nothing\nleft, or I said `plan` \u2192 on to **the interface round** in the same turn. There\nis no cap on the number of rounds: the loop ends when nothing unrecoverable is\nleft, and a round with nothing behind it is not asked.\n\n**The interface round** is the last round of GATE C, after the business rounds\nand before the plan (`hobby-tooling\/llm_workflow\/more_implementation_steering`,\n`## where-interface`). It puts the interface choices to me while they are still\nfree. Made in `implement`, each one is small and defensible on its own, and at\nGATE 2 there are too many to correct (`## why-gave-up`).\n\n*In scope* (`## interface-scope`): the `pub` items of a library crate; an API\nbetween modules or crates \u2014 the functions, types and traits one of them calls\non another; a format another tool reads \u2014 a file like `task.json`, a CLI\nsubcommand or flag, a socket command, an environment variable. A binary's\ninternals are not in scope.\n\nDraft the surface the change will need: every in-scope item it adds, changes or\nremoves, from the code read in `plan` and the answers recorded so far. None \u2192\nrecord `interface: {\"form\": \"none\"}`, say so in one line, and go on to the plan.\n\nOtherwise pick the **form** by this rule, and name it at the top of the round\nwith *\"say `switch` for the other form\"* (`## interface-form`,\n`## interface-form-choice`):\n\n- **`surface`** \u2014 the change creates a crate, a module or a format, or\n  reshapes an existing public surface (renames, removes, or changes a\n  signature). One round per module, crate or format: every item is one\n  numbered line in the language's own syntax, marked `+` added, `-` removed,\n  `~` changed as `old \u2192 new` \u2014\n  `3 + pub fn chunk_at(&self, world: Vec2) -> Option<(ChunkCoord, UVec2)>` \u2014\n  and under an item where there is a real choice, lettered options with what\n  each costs.\n- **`decisions`** \u2014 the change only adds to a surface that keeps its shape.\n  Only the points where there is a choice, each as lettered options with what\n  it costs, in one round; the items without a choice are not shown.\n\nI answer by number; an item I do not mention stands as shown, and `plan` here\naccepts the rest of the surface as shown. Record my answers verbatim like any\nround's, under `## interface-<module>` handles, and the surface with my answers\napplied, one line per item, in `interface.agreed`, with the form in\n`interface.form`. An answer that reshapes items is derived like any other\n(above): another round for that module, showing only what my answer left open.\nEach round is a **GATE C** stop: its questions go into `context_rounds`, and\n`waiting_on` reads `answer GATE C interface round <module>`.\n\nOnce the surface is agreed, write `context_recorded` (today's date), clear\n`waiting_on`, and carry on in the same turn.\n\n**Write a short plan.** One file,\n`~\/fun_repos\/hobby-mimisbrunnr\/notes\/{project}\/{topic}\/{task}\/plan-{YYYY-MM-DD}-{slug}.md`,\nin the plan format of `~\/.claude-hobby\/CLAUDE.md` \u2014 Goal, Approach, Steps, Key\nFiles, Open Questions \u2014 and short: the steps are the order you will work in,\none line each, naming files. A recorded answer the change has to honour is\ncited in the step it shapes by its `business-context.md` handle, so it is not\ncarried in your head to be remembered at the commit; a step that builds an\nagreed interface item names it. A new dated file per\nplanning session; never overwrite an earlier one. Record its name as `plan` and\nseed `todo` from its steps (**Live state**). The plan is not a gate: say in one\nline where it is, set `phase: implement`, and carry on \u2014 **in an aspect in its\ntask's queue**, on to **Phase `await-turn`** instead.\n\n______________________________________________________________________\n\n## Phase `implement`\n\nEntered from `context` in the same turn, or on a resume. Work from the plan\nfile and keep `todo` moving as you go. A design question only I can answer is\nasked when it comes up, as one line with the options you see \u2014 set\n`waiting_on`, stop, and resume at the same `todo` item. It is not saved for a\ngate, and it is not answered on my behalf.\n\n**The agreed interface is changed without stopping** (`## interface-deviation`).\nAn item of `interface.agreed` that does not survive the implementation, and an\nin-scope item the interface round did not show, is changed or added as the\ncode needs \u2014 and recorded in `interface.deviations` in the same step, with\nwhat changed and what in the implementation forced it. GATE 2 lists them.\n\nWrite comments to the rule as you go \u2014 a module header, and a public element's\ncomment only where it tells the caller something the signature does not. Write\nfor a reader who never saw this conversation. The `comments` phase is a check,\nnot a laundry: do not write comments expecting it to delete them.\n\n**Test.** Drive it end to end: run the app or the affected flow, plus the repo's\nown test command (`cargo test`, `cargo clippy`, `just test`, whatever it uses).\nThen **run the repo's CI locally**: for every job in `.github\/workflows\/*.yml`\nand `*.yaml` triggered by `pull_request` or `push`, its `run:` steps in order\nfrom the worktree root, with the job's `env:` and each step's\n`working-directory:`. A matrix runs once, on this machine's toolchain. Skip\n`uses:` steps and any step that reads `secrets.` or needs a `services:`\ncontainer or another OS, and carry the skipped ones into GATE 2. A failing step\nis fixed here like a failing test, so the diff I review is one CI is expected to\npass. No workflows \u2192 nothing to run.\n\nRecord the evidence under `evidence`, one line per command run, then fall\nthrough to `delta` without stopping. **Commit nothing here.**\n\n## Phase `delta`\n\nSkip with `--no-hmml`, and for a diff with no behaviour change \u2014 docs, tests\nonly, config values, a mechanical rename \u2014 saying so in one line.\n\nRun `\/hmml-extract --against <ref>`, with `<ref>` the merge base of the\nworktree and the default branch\n(`git merge-base HEAD \"origin\/$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name)\"`).\nNothing is committed yet, so the delta's header says `head: worktree` and its\nlinks point into the files on disk. It writes one `delta-<branch>.hmml` into\nthe notes dir: the touched units'\nwalks as the worktree leaves them, each changed step marked `+` \/ `-` \/ `~` and\nlinked to the diff, the data and signatures the change touches, and its tests\nin summary, then lints it. Record its path as `hmml_delta`.\n\nThe delta is **derived, never maintained**: do not edit it, and rerun this phase\nafter any later change to the code's behaviour \u2014 a fix I ask for at GATE 2, a\nCI repair. It is for me to read; it is not a review of the change and it does\nnot gate anything. Fall through to `comments`.\n\n______________________________________________________________________\n\n## Phase `comments`\n\nRun `\/comment-pass` over the branch diff. It deletes what the comment rule\ndisallows, cuts comments pitched at the wrong level or written for the\nconversation, and writes missing module headers and the public comments a caller\nneeds.\n\nCarry two parts of its report to GATE 2:\n\n- the **shape-decision notes** it pulled out of deleted body comments \u2014 facts\n  about why the code looks the way it does, whose home is the commit message;\n- anything it **declined to act on** \u2014 a module with no single responsibility, a\n  name that needs changing, a behaviour it could not verify. Each is a decision\n  for me.\n\nThen fall through to `standards`.\n\n______________________________________________________________________\n\n## Phase `standards`\n\nSkip entirely if the target repo has no `structure.hstruct`.\n\nRun `\/structure` on the target repo. Three outcomes, and only one needs you to\ndo anything:\n\n- **Unchanged** \u2014 nothing to report.\n- **Slack** \u2014 the change improved a number. Run the ratchet; the tightened budget\n  joins this task's diff, which is how an improvement gets recorded by the change\n  that made it.\n- **Exceeded** \u2014 the change moved the repo further from a standard it states.\n  **Try to fix it**: read `--detail` to find what this change added, and repair\n  it. A new cycle usually wants an event or a read-only query rather than an\n  import; a file crossing the line usually wants the split its responsibility\n  already implies. Re-run after the fix.\n\n  **If the fix does not work, carry it to GATE 2 as a regression** \u2014 the standard,\n  the count before and after, and what you tried. Do not route around it and do\n  not raise the budget. Raising is a hand edit I make deliberately, because it\n  says in the diff that this project got further from its own standard.\n\nThen check the **reviewed** standards. A `review:` standard is only re-audited if\nsomething asks, so read each one against this diff: if the change touches what it\ncovers, say so and ask whether to re-audit and bump `audited:`. Do not bump a date\nfor a standard the change did not touch, and do not treat an old date on an\nunrelated standard as a finding.\n\nRecord the delta, then fall through to `review`.\n\n______________________________________________________________________\n\n## Phase `review` \u2192 GATE 2\n\n**\u2192 GATE 2: HARD STOP.** Set `phase: await-review`, set `waiting_on` to\n`read the change at GATE 2`, write the state file.\n\nGATE 2 is **layered**: it prints the overview, and I zoom in on request. The\noverview is what I read every time, so keep it short enough to read in one go.\n\n**The overview \u2014 printed:**\n\n- **what changes**, in two or three sentences, for a person using the program,\n  not in terms of files;\n- **the derived delta**, at behaviour level \u2014 its path, then the file as it\n  stands, with its count of `+` \/ `-` \/ `~` lines per section. It is the cheapest place to catch a change that does something the\n  brief did not ask; show it, do not describe it. With no delta (skipped, or\n  `--no-hmml`), say so in one line;\n- **evidence** in one line \u2014 what was run and that it passed \u2014 plus any CI step\n  skipped locally;\n- **interface deviations** \u2014 every `interface.deviations` entry, one line\n  each: the item, what changed, what forced it; `none` when there are none, and\n  the line left out when `interface.form` is `none` or there is no `interface`;\n- **what needs my decision**, and only that: a standards regression you could not\n  fix (what you tried), anything `\/comment-pass` declined, a commit that needs a\n  justification no handle or verified fact gives. None \u2192 say `nothing to decide`;\n- **the proposed commits** \u2014 subject and the files each takes; the full bodies\n  are in the state file and shown on `messages`;\n- **the proposed PR title**;\n- *\"Say `design` for the module and API level, `diff` for the files, `messages`\n  for the full commit and PR text. Say continue to commit, push and open the PR,\n  or tell me what to change.\"*\n\n**On request \u2014 printed only when I ask:**\n\n- `design` \u2014 the program's shape: per module touched, its header and every\n  public signature added, changed or removed, with its comment, and whether it\n  is as agreed in the interface round, a deviation, or out of its scope; how the modules\n  now depend on each other where that changed; and the delta's `## api` and\n  `## data` sections when `delta` extracted one. Then the standards delta,\n  each budget before and after;\n- `diff` \u2014 the files, one line each on what changed, then whatever part of the\n  diff I name;\n- `messages` \u2014 every proposed commit message in full and the PR body, to the\n  rules (see `pr`), with the shape-decision notes and the `business-context.md`\n  handles they cite.\n\nAfter a zoom, end the turn again; the gate still holds.\n\nRecord the proposals as `commits` and `pr` in the state file, so a resumed\nsession opens exactly what I approved. A change I ask for here goes back\nthrough `implement` and `delta` before the gate is printed again; an edit to a\nmessage only rewrites the proposal. End your turn.\n\n______________________________________________________________________\n\n## Phase `pr` \u2014 on my go only\n\n**The PR rule**, which the proposal at GATE 2 is written to: a title in the\ncommit-subject shape, then **What do we change** and **Why do we change** at one or\ntwo sentences each, then **How can you test it by hand** as an ordered bullet list\nwhose last bullet says what I should see. No other sections, no `## AI use`, no\nempty section, no attribution.\n\nThe *why* is sourced, not invented \u2014 from my prompts, from what we settled, or from\nsomething you verified in the `implement` phase. If you do not have one, ask at\nGATE 2 rather than proposing one.\n\nThe manual-test bullets come from what you actually ran in `implement`. If nothing\nthere was run by hand, say so in one bullet and name what does cover it.\n\nOn my `continue`, from the approved `commits` and `pr` in the state file:\n\n1. Make each commit in order \u2014 `git add` its files, `git commit` with its\n   message. The source repo only; the notes repo is never committed.\n2. `git push -u origin HEAD` \u2014 the task branch, never the default branch.\n3. `gh pr create --title '<title>' --body '<body>'` against the default branch.\n\nThe `track-pr` hook records the PR to `prs.json`. If it did not fire, append the\nPR there yourself (create with `[]` first; never store the PR's live state).\n**In an aspect** the hook does not fire and nothing goes to `prs.json`: open\nthe PR with `--base <the base>`, and set `aspect.json` `state` to `pr` and its\n`pr` to the URL (Edit, keep every other key). Then, for each `<p>\/<t>` in its\n`blocks`: `nu -c \"use ~\/.config\/nushell\/hwt.nu *; hwt block --pr <url> --task <t> --project <p>\"`.\nSet `phase: ci` and continue.\n\n**Every change reaches the default branch through a PR.** Push to the default\nbranch only when I say so in chat for this task, and then skip `ci` for\n`journal`. An aspect's PR targets its base, and the aspect is done only once\nthat PR has merged.\n\n## Phase `ci` \u2014 the PR is green before the pipeline ends\n\nThe local run in `implement` cannot reproduce `uses:` steps, secrets, service\ncontainers or another OS, so the PR's own checks are the authority. Watch them\nand repair them; never hand me a red PR as finished.\n\n1. `gh pr checks <pr url> --watch --interval 30`, Bash `timeout: 600000`. At\n   most four calls on a timeout; a fourth is step 4 with\n   `checks still pending after ~40 minutes`. `no checks reported` while the\n   repo has workflows is not green yet: `gh run list --commit <head sha> --json\n   status` \u2014 a run listed means call 1 again; none listed means no workflow\n   triggers on this PR, which counts as green.\n2. **Green** \u2192 the merge (below), then `journal`.\n3. **A check failed** \u2192 read it with `gh run view <run id> --log-failed`, and\n   decide which of four it is:\n   - **the diff's own** \u2014 repair it reading the files the log names, run the\n     failing step locally, `\/comment-pass` over what changed, commit to the\n     message rule, push, and rerun `delta` when the repair changed behaviour.\n     The repair is shown in the wrap-up, because it landed after GATE 2.\n   - **the runner died** \u2014 cancelled, timed out, failed to start, or a\n     network or shutdown error in the log: `gh run rerun --failed <run id>`\n     only.\n   - **the base is already red there** \u2014 the same check fails on the base's\n     latest run (`gh run list --branch <base> --workflow <workflow> --limit 1\n     --json conclusion`): step 4, `not mine`.\n   - **a pinned revision needs re-pinning** \u2014 a dependency at a `rev` or\n     version that no longer resolves: step 4, `decision`; re-pinning is a\n     project decision, not a repair.\n\n   A repair or a rerun increments `ci_rounds`, then back to 1. **Three is the\n   bound**: with `ci_rounds` at 3, a fourth failure is step 4.\n4. **Blocked** \u2192 print the PR, the case, the failing check and at most three\n   log lines, set `waiting_on`, and **stop**: the next step is mine.\n\n**The merge is mine**, unless I said in this session that this PR may merge\nonce its checks are green (`## self-merge-permission` of\n`hobby-tooling\/llm_workflow\/drop_auto_mode`). Then, on green,\n`gh pr merge <pr url> --merge` \u2014 never `--admin`, never a force \u2014 and record\nit in `evidence`. A refusal is step 4.\n\n## Phase `journal`\n\n**In an aspect**, wait for the merge first, with a background Bash call\n(`run_in_background: true`):\n`until [ \"$(gh pr view <pr url> --json state -q .state)\" != OPEN ]; do sleep 30; done; gh pr view <pr url> --json state -q .state`.\nSet `waiting_on` to `merge <pr url>` and end the turn; its exit resumes this\nsession, and a respawned tab starts the same wait. `MERGED` \u2192 clear\n`waiting_on` and go on. `CLOSED` \u2192 print it and stop, `waiting_on` kept: the\nnext step is mine. An aspect's done-when was read at GATE 2, so the merge is\nwhat is left.\n\nRun `journal:write` \u2014 goal, what changed, evidence, open items.\n\n**In an aspect**, run `\/task:aspect finish`: it records the outcome and open items\nin `aspect.json` and tells the task.\n\nSet `phase: done`.\nPrint a one-line wrap-up: task, PR link if any, anything still open. End.\n\n______________________________________________________________________\n\n## Notes on scope\n\n- If a sub-skill asks its own clarifying question, surface it \u2014 do not answer on\n  my behalf. The pipeline asks for wording of its own in exactly one place,\n  GATE C, and what I answer there is recorded verbatim: no phase and no\n  sub-skill may smooth it into prose of yours.\n- **This pipeline is one branch.** Work found on the way that is part of this\n  task but outside this branch's change is an aspect \u2014 `\/aspect`, now or later;\n  work that is not part of this task is a task for later, `\/issue-create`.\n- If artifacts and the state file disagree, trust the artifacts, say so, and\n  correct the state file.\n- If I ask for something off-pipeline mid-run, handle it, then re-anchor on the\n  current `phase`.\n","use_cases":["Assess whether a task should be split into multiple aspects or tasks.","Implement and test a task with a recorded plan and todo list.","Generate an HMML delta from the diff after implementation.","Run code quality checks and review changes before committing.","Create a PR with a generated commit message and journal entry."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/julianbieber\/hobby-tooling\/blob\/420f1f68d0f92201d2a7a51a0c463784e1e49405\/skills\/task\/build\/skill.md","source_commit":"420f1f68d0f92201d2a7a51a0c463784e1e49405","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:13:34.000000Z","updated_at":"2026-11-30T06:52:26.000000Z","seo_title":"Build Task Pipeline with HMML Delta and Review","seo_description":"Run a task end to end with HMML delta extraction, review, and PR creation. Assess task splitting, implement, test, and generate a delta from the diff.","seo_keywords":["task pipeline","HMML delta","code review","PR creation","task splitting","worktree setup","git status","diff extraction"]}}