@giamme/forge 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +19 -12
  3. package/SKILL.md +137 -216
  4. package/VERSION +1 -1
  5. package/docs/README.md +2 -3
  6. package/docs/add-ons.md +5 -3
  7. package/docs/artifacts.md +17 -2
  8. package/docs/commands.md +85 -63
  9. package/docs/decomposed-runs.md +195 -21
  10. package/docs/development.md +11 -9
  11. package/docs/forge-ui.md +33 -4
  12. package/docs/install.md +37 -5
  13. package/docs/memory.md +6 -1
  14. package/docs/models.md +36 -10
  15. package/docs/reviews.md +44 -25
  16. package/docs/safety.md +27 -2
  17. package/docs/troubleshooting.md +7 -10
  18. package/forge +25 -4
  19. package/package.json +2 -1
  20. package/references/dataset.md +10 -9
  21. package/references/decompose-integration.md +337 -0
  22. package/references/decompose-opt-in.md +527 -0
  23. package/references/decompose-recovery.md +569 -0
  24. package/references/decompose-review.md +256 -0
  25. package/references/decompose.md +99 -1606
  26. package/references/findings.md +68 -0
  27. package/references/harnesses.md +7 -12
  28. package/references/memory.md +13 -2
  29. package/references/planning.md +48 -18
  30. package/references/ripwire.md +38 -13
  31. package/references/runtime.md +22 -33
  32. package/references/setup.md +90 -0
  33. package/references/solo.md +13 -42
  34. package/references/ui.md +12 -5
  35. package/registry.tsv +40 -22
  36. package/scripts/forge-artifact.sh +143 -12
  37. package/scripts/forge-compare.py +5 -15
  38. package/scripts/forge-config.py +14 -1
  39. package/scripts/forge-contract.py +216 -53
  40. package/scripts/forge-control.py +777 -54
  41. package/scripts/forge-dispatch.sh +95 -12
  42. package/scripts/forge-du.py +13 -3
  43. package/scripts/forge-handoff.py +221 -39
  44. package/scripts/forge-install-ripwire.sh +100 -24
  45. package/scripts/forge-install.sh +18 -32
  46. package/scripts/forge-issues.py +6 -4
  47. package/scripts/forge-jev-options.sh +3 -5
  48. package/scripts/forge-lib-adopt.sh +169 -5
  49. package/scripts/forge-lib-attribute.sh +10 -3
  50. package/scripts/forge-lib-decompose.sh +454 -0
  51. package/scripts/forge-lib-env.sh +21 -0
  52. package/scripts/forge-lib-group.sh +4 -1
  53. package/scripts/forge-lib-plans.sh +30 -18
  54. package/scripts/forge-lib-review.sh +28 -8
  55. package/scripts/forge-lib-task.sh +225 -56
  56. package/scripts/forge-lib-verify.sh +59 -10
  57. package/scripts/forge-memory.sh +81 -4
  58. package/scripts/forge-metrics.sh +4 -2
  59. package/scripts/forge-parallel-options.sh +23 -4
  60. package/scripts/forge-parallel.sh +447 -175
  61. package/scripts/forge-plan-check.py +71 -8
  62. package/scripts/forge-planner.py +303 -17
  63. package/scripts/forge-pr.py +9 -1
  64. package/scripts/forge-prompt.py +2 -2
  65. package/scripts/forge-review-links.py +248 -0
  66. package/scripts/forge-ripwire.py +234 -16
  67. package/scripts/forge-route.py +19 -27
  68. package/scripts/forge-runs-rm.py +92 -21
  69. package/scripts/forge-runs.py +46 -5
  70. package/scripts/forge-runtime.py +37 -12
  71. package/scripts/forge-schedule.py +124 -33
  72. package/scripts/forge-setup-stale.py +236 -0
  73. package/scripts/forge-setup.py +804 -0
  74. package/scripts/forge-shadow.py +2 -20
  75. package/scripts/forge-solo-lock.py +46 -0
  76. package/scripts/forge-solo.sh +33 -56
  77. package/scripts/forge-sweep.py +2 -1
  78. package/scripts/forge-ui.py +8 -1
  79. package/scripts/forge-update.sh +2 -2
  80. package/scripts/forge-verify.py +16 -1
  81. package/scripts/forge-version.py +13 -1
  82. package/scripts/forge-watch.py +7 -2
  83. package/scripts/forge_dataset/__init__.py +1 -1
  84. package/scripts/forge_dataset/capture.py +0 -34
  85. package/scripts/forge_dataset/checks.py +0 -1
  86. package/scripts/forge_dataset/cli.py +5 -1
  87. package/scripts/forge_dataset/export.py +28 -6
  88. package/scripts/forge_dataset/facts.py +1 -2
  89. package/scripts/forge_dataset/forecast.py +1 -1
  90. package/scripts/forge_dataset/harvest.py +107 -7
  91. package/scripts/forge_dataset/importer.py +3 -2
  92. package/scripts/forge_dataset/pairs.py +3 -3
  93. package/scripts/forge_dataset/reviewers.py +4 -3
  94. package/scripts/forge_dataset/routing.py +6 -3
  95. package/scripts/forge_dataset/tiers.py +1 -1
  96. package/scripts/forge_decide/__init__.py +1 -1
  97. package/scripts/forge_decide/profiles.py +11 -14
  98. package/scripts/forge_decompose.py +987 -0
  99. package/scripts/forge_groups/review.py +6 -1
  100. package/scripts/forge_jev/__init__.py +1 -1
  101. package/scripts/forge_jev/cli.py +10 -1
  102. package/scripts/forge_jev/gates.py +10 -1
  103. package/scripts/forge_jev/verify.py +10 -2
  104. package/scripts/forge_legacy.py +86 -0
  105. package/scripts/forge_memory_home.py +57 -0
  106. package/scripts/forge_models.py +151 -0
  107. package/scripts/forge_prefs.py +138 -0
  108. package/scripts/forge_side/__init__.py +10 -0
  109. package/scripts/forge_storage.py +28 -15
  110. package/ui/README.md +22 -10
  111. package/ui/docs/api.md +121 -99
  112. package/ui/forge_ui/control.py +46 -14
  113. package/ui/forge_ui/export.py +0 -10
  114. package/ui/forge_ui/models.py +15 -2
  115. package/ui/forge_ui/projects.py +4 -1
  116. package/ui/forge_ui/reader.py +456 -59
  117. package/ui/forge_ui/server.py +0 -10
  118. package/ui/forge_ui/static/app.js +28 -9
  119. package/ui/forge_ui/static/checksview.js +12 -3
  120. package/ui/forge_ui/static/controls.js +147 -11
  121. package/ui/forge_ui/static/convo.js +5 -2
  122. package/ui/forge_ui/static/diffview.js +4 -5
  123. package/ui/forge_ui/static/panel.js +180 -77
  124. package/ui/forge_ui/static/projectsview.js +16 -2
  125. package/ui/forge_ui/static/runmodel.js +18 -4
  126. package/ui/forge_ui/static/scene3d.js +29 -29
  127. package/ui/forge_ui/static/settings.js +1 -1
  128. package/ui/forge_ui/static/storageview.js +2 -2
  129. package/ui/forge_ui/static/style.css +23 -6
  130. package/ui/forge_ui/static/worktreesview.js +8 -4
  131. package/ui/forge_ui/transcripts.py +6 -0
  132. package/ui/forge_ui/worktrees.py +13 -1
  133. package/docs/fractal.md +0 -181
  134. package/references/fractal-dashboard.md +0 -21
  135. package/references/fractal.md +0 -307
  136. package/scripts/forge-fractal-dispatch.sh +0 -4
  137. package/scripts/forge-fractal-options.sh +0 -54
  138. package/scripts/forge-fractal.py +0 -6
  139. package/scripts/forge-install-fractal.sh +0 -4
  140. package/scripts/forge_fractal/__init__.py +0 -88
  141. package/scripts/forge_fractal/bridge.py +0 -46
  142. package/scripts/forge_fractal/cli.py +0 -224
  143. package/scripts/forge_fractal/dashboard.css +0 -138
  144. package/scripts/forge_fractal/dashboard.html +0 -41
  145. package/scripts/forge_fractal/dashboard.js +0 -687
  146. package/scripts/forge_fractal/decomposition.py +0 -262
  147. package/scripts/forge_fractal/execution.py +0 -659
  148. package/scripts/forge_fractal/inspection.py +0 -261
  149. package/scripts/forge_fractal/install.py +0 -158
  150. package/scripts/forge_fractal/invocation.py +0 -95
  151. package/scripts/forge_fractal/pipeline.py +0 -125
  152. package/scripts/forge_fractal/selection.py +0 -180
  153. package/ui/forge_ui/fractal.py +0 -582
package/CHANGELOG.md CHANGED
@@ -5,6 +5,67 @@ All notable changes to this project are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and versions follow the format `{major}.{minor}[.{patch}]` ([...] parts appear only when non-zero).
7
7
 
8
+ ## [0.23] - 2026-12-02
9
+
10
+ Forge splits a large task into subtasks by itself, `forge setup` gets a new machine ready in one pass, and you can send a message to a running claude or openclaude implementer or queue one for its next attempt. Reviews run the checks a brief asks for, Fractal is removed, and each model alias now runs one exact model on every harness.
11
+
12
+ ### Highlights
13
+
14
+ - A task can be split into subtasks, at every level, by forge itself. The subtasks run as a plan of their own inside the task's files, each in its own worktree with its own review; when all have merged, the task is reviewed once on everything they produced. The planner can propose a split when it plans, you can split a task that stopped with one approved choice and no edit of `tasks.tsv` (`retry <plan> <task> --decide split --subtasks FILE`, or `--planner SPEC`; `forge control retry` on a live run), and `run --auto-split` lets the planner do it without waiting. Keeping a task whole is always valid and is recorded with its reason. A split keeps the task's work; `--decide split=fresh` starts over and keeps the old work on a ref.
15
+ - `forge setup` gets forge ready in one short pass, right after `forge install` on a terminal and again any time: it shows which agent CLIs are on this machine and which models each one runs, then asks for the models that build and review (the `balanced` profile first, or a pick per tier), the review threshold and shadow review, the defaults for `--sweep`, `--file-issues` and `--reviewer-session`, brief, summaries and retro with the model each needs, forge-ui (ask, always or never; read-only or with controls), whether this repository's `.forge/` memory is committed, kept local or off, decision models, storage, the update check and Ripwire. The answers become defaults, so the first `/forge` run asks none of it. `forge setup show` lists every answer, where it is stored and the command that changes it; `forge setup --defaults` takes the recommended answers and `forge setup export` / `--from FILE` copy them to another machine, all without a prompt. Setup never calls a model and sends nothing unless an answer says it will. Install no longer asks about Jev itself, and `forge update` never runs setup. Changing brief, summaries or retro now says it only reaches runs planned afterwards, and `forge control set <plan> summaries-model <spec>` changes a planned run's summaries model.
16
+ - `forge control steer <plan> <task> "text" --now` sends a message to a task's running claude or openclaude implementer, which takes it in at its next tool call without stopping. Those implementers now start with stream-json input (`--input-format stream-json --replay-user-messages`) fed by forge, and forge ends them a few seconds after their final result (`FORGE_LIVE_GRACE`, default 10) when no background task is open. `--now` is refused when the task has no live implementer, and a message that arrives after the final result waits for the next attempt. forge-ui adds *Send now* beside *Queue message* while the implementer runs live, and shows each message in the conversation where it landed. `control.log` records `steer-sent`, the dataset marks the message `mode: live`, and `FORGE_LIVE_STEER=off` turns it off.
17
+
18
+ ### Added
19
+
20
+ - forge-ui shows who drives a run and the notes earlier sessions left: a Handoff section in Run details, with the harness and session from `forge handoff claim`, when it was last seen (stale after 12 hours, when another session may claim the run), and the `forge handoff note` notes, newest first.
21
+ - `forge-parallel.sh verify <plan-dir> [--verify-retries N] [--verify-parallel N]` runs a plan's verification of its integration branch again and nothing else, after a lane was fixed or to tell a flaky failure from a real one, without starting a `run` that has nothing to dispatch.
22
+ - `adopt` recognises a resubmission: a range that extends one a review refused (or one named with `--resubmit <adopt-dir>`) is reviewed with the previous review's findings, the commits and the diff since that submission, and the reviewer is asked to settle each earlier finding, and look for its siblings, before reviewing the rest. After `--escalate-after` refusals of the same work (3 by default, the plan's setting when it has one) the next resubmission waits for a decision: `--decide resubmit` for one more round, `--approved` to keep it, or adopting it in parts. Each review records its submission in `adopt-*/submission`, and a refused range taken from elsewhere stays reachable at `refs/forge/adopt-refused/<adopt-dir>`.
23
+ - The approval table now lists the model each spec runs today, under the waves: `sol:high gpt-6.2-sol on codex`. When an alias has moved to a newer model you see it before anything is spent.
24
+ - Three limits bound every split: `plan --split-depth N` (default 2 levels; 0 turns splitting off), `--split-children N` (6 subtasks per split) and `--split-nodes N` (24 subtasks in the run). They are shown under the approval table and frozen by the first run. A split that would pass one is not made: the task runs as one piece and is recorded as `bounded`. One `--max-parallel` bounds the whole tree.
25
+ - A goal larger than one plan is planned stage by stage: the planner lists the stages that follow in `later`, and `forge-parallel.sh next <plan>` plans the next one from the merged plan's integration branch, with its models, options and limits, stopping at its own approval table. `integrate` on the last plan brings the whole chain.
26
+ - The tools read subtasks at every level: `forge runs tree <plan>` prints the tree with each decision and reason, `forge runs` counts subtasks, `forge runs rm` removes a run's sub-plans with it, `forge control show`, `forge handoff` and `forge watch` name subtasks by path, `forge handoff resume` recovers stale subtasks, and the dataset records each decision. forge-ui shows a split task's tree with every node's decision, reason, model, tokens and diff.
27
+ - forge-ui can set the implementer and reviewer for each task difficulty (low, medium, high) from a plan's inspector, for the tasks that have not started yet: one model or a pool separated by commas, as `--dwarf-low` and the other tier flags take them. From the terminal it is `forge control models PLAN low --dwarf haiku:xhigh,sonnet --qa opus`. Started tasks keep their model. Every model spec in the controls, a pin included, now shows the model it runs (for example `astra:xhigh runs gpt-6.2-astra on codex`), also while you type it.
28
+ - A decomposed `run` now prints a `forge: needs you:` line the moment a task stops for a decision or an answer (and `forge: stopped:` for an infrastructure stop), with the file to read, while the other tasks keep running, so the agent driving the run can bring it to you straight away.
29
+ - A task stopped because its fix needs a file no task declares can now get that file added and resume with one command, on a live run too: `forge control retry <plan> <task> --decide files+=<path> --reason "…" --approved` (or `forge-parallel.sh retry` with no run live). Its `decision.md` prints the command with the path filled in, and says that on a live run the other choices are given through `forge control retry`.
30
+ - `forge control steer <plan> <task> "text"` queues a message for a task's next implementer attempt, on a live run or not. It starts nothing: the next attempt, whatever starts it, gets the message in its prompt beside any review findings, and its reviewer sees it as part of the requirements. forge-ui has a *Message for the next attempt* box on each task and marks steered attempts on the attempt trail. Steered attempts are recorded in the dataset (`steered`: actor, time, hash and length) and left out of `forge dataset routing`, `reviewers`, `pairs`, `export` and forge-ui's leaderboard unless `--include-steered` is given.
31
+ - Reviewers now run the checks a task's acceptance criteria require even when they take longer than the usual five-minute test guideline, and report `FORGE_TESTS: PARTIAL` when a check was stopped or skipped, so an incomplete review stands out in the summary and in forge-ui. `--qa-test-minutes N` changes the guideline (`0` removes it).
32
+ - When a run's verification fails after a lockfile or a path in `.forge/setup-inputs` changed since setup ran, forge now says that generated files may be out of date instead of leaving you to hunt for a broken merge. `--setup-before-verify` re-runs setup in the integration checkout before verification so those files are rebuilt.
33
+
34
+ ### Changed
35
+
36
+ - **Breaking:** An alias now names the same model on every harness. Rows that used to give a different model under the same name have aliases of their own: Antigravity's Claude models are `opus-4.6` and `sonnet-4.6`, GitHub Copilot's older Fable and Grok on opencode are `fable-5.1` and `grok-4.6`, and Gemini Pro on opencode is `gemini-pro:...:opencode`. `opus::antigravity` or `gemini::opencode` no longer quietly runs another model: forge passes the name through as a literal id and its note names the alias that harness serves. Dispatches recorded under the old rows are counted under the new aliases in review statistics and forge-ui's leaderboard.
37
+ - The forge skill now loads for questions about a run that already exists (resuming, retrying, a task at `NEEDS_INPUT`, `NEEDS_DECISION` or `INFRA`), not only for starting one, and its text is shorter so the parts that matter survive a long session's compaction. Invoking `/forge` in Claude Code pre-approves only forge's own commands instead of every shell command, and the antigravity plugin carries forge's real version.
38
+ - `sol` and `astra` now resolve to gpt-6.2-sol and gpt-6.2-astra on codex, openclaude and opencode. The previous models are still available as `sol-6.1` and `astra-6`, and dispatches recorded on them are counted under those names in `forge dataset reviewers`, review history and forge-ui's model leaderboard, never mixed into the new `sol` and `astra`. A pin such as `astra:xhigh` from forge-ui now runs the 6.2 model instead of silently falling back to the older one.
39
+ - Forge now installs the latest Ripwire release instead of the pinned 0.4.0, and works with Ripwire 0.6 and later (an older binary is skipped with a note saying how to update). `forge ripwire status`, `forge ripwire install` and `forge ripwire update` show, install and update it; `update` only ever replaces the Ripwire forge installed in `~/.local/bin`. When a run ends and a newer Ripwire is out, forge says so at most once a day and, on a terminal, offers to update it right away. It stays quiet in CI, offline, and with `FORGE_RIPWIRE=off` or `FORGE_UPDATE_CHECK=off`.
40
+ - `opus`, `sonnet`, `haiku` and `fable` on claude and openclaude now run an exact model (Claude Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2) instead of whatever the claude CLI's own `opus` or `sonnet` points to that day. What runs is what the approval table and the statistics say, and a new Claude model reaches forge through a registry update, the way new GPT models do.
41
+ - A `STALE` verification is now explained wherever it appears: `forge attribute` refuses it with a clear message, and final-review prompts and `forge pr` bodies show which earlier commit was verified.
42
+
43
+ ### Removed
44
+
45
+ - **Breaking:** Fractal, the optional execution backend, is removed: `forge fractal`, `--fractal`, `--no-fractal`, every `--fractal-…` flag, the solo `--dwarf-low|medium|high` pools that routed its child tasks, its installer and its forge-ui endpoints. Each removed flag and command exits 2 with one line that says so. Runs made with Fractal stay readable in `forge runs` and forge-ui, but `run`, `retry` and `forge handoff resume` refuse them; start a new run for the work that is left. `forge du` shows what the old runtime left on disk. Splitting a task into subtasks is now part of forge itself.
46
+
47
+ ### Fixed
48
+
49
+ - forge-ui: a learning's text in the Memories table wraps inside its column instead of running over the next ones; the confirm before forgetting learnings keeps one line per learning; the Worktrees dry run says when merged branches or leftover folders go too, and asks "Remove 1 worktree?" in the singular.
50
+ - A run stopped while a task's committed attempt was under review (a crash, Ctrl-C, or `forge handoff resume` after one) retries that task with the review only. It used to send the task back to its implementer, whose unchanged code was then refused as identical to the previous attempt and failed without a review; `forge handoff resume` also keeps that attempt's number.
51
+ - A review that reports failing tests (`FORGE_TESTS: RAN — FAILED: <names>`, `FORGE_TESTS: FAILED — <names>`, or `FORGE_TESTS_FAILED: <names>`) now keeps a `FAIL` verdict from being accepted and turns a `PASS` into `FAIL`, even when every itemised finding is milder than the blocking threshold. Reviewers are asked to report tests failing because of the change as blocking `CONFIRMED` findings (while pre-existing unrelated failures stay in prose), and retries/summaries read the gate's reason directly so `PASS -> FAIL` overrides name the failing tests.
52
+ - Merging a commit onto the integration branch (`accept`, a deferred `adopt` or `retry`, or a mid-run merge) now marks any prior `verification.status` (`PASS`, `FAIL` or `INTERRUPTED`) as `STALE` and clears `verification.exit` whenever `accepted.integration` moves past `verification.commit`, and `accept` notes that the merged result is unverified until `run` or `integrate` verifies it.
53
+ - Reviewers can now run checks that need files your setup command generates, such as a code-generation directory, and not only installed packages. Forge links the ignored files that setup created (plus any paths listed in `.forge/review-links`) into every review checkout, never links secrets such as `.env`, and tells the reviewer up front what it could not provide.
54
+ - forge-ui's Findings tab no longer says issue states were read from GitHub for a repository with no GitHub remote; it says nothing was read. In read-only mode the Memories tab keeps each learning to one line: a row's `forge memory edit` and `add` commands open from its *Commands* button instead of sitting in every row.
55
+ - Verification runs the lanes (`.forge/verify.d/`) and `.forge/verify` committed on the branch it verifies, not the repository root's copy, so an adopted range that renames a suite and updates its lane is verified with the new lane. Before a run, forge says which lanes differ from the root's. Only committed files count: a repository that keeps `.forge/` out of git still uses the root's lanes.
56
+ - A `retry_per_model` file that does not hold a number from 1 to 99 (edited by hand) is now named as ignored in the plan table and at run start, as the scheduler already treated it, instead of being shown as the setting with a worst case computed as if it applied.
57
+ - `integrate` no longer refuses a working tree whose only changes are forge's own project memory (`.forge/memory.md` and `.forge/ledger.tsv`), and `plan` no longer warns about uncommitted work for them alone. When the tree is dirty for another reason, the refusal lists the changed paths.
58
+ - `forge handoff resume` holds the plan's lock while it saves and resets the worktrees of stale `RUNNING` tasks, so a `run` started at the same moment is refused instead of racing the git reset and the status write. When another forge command already holds the lock, resume names it and changes and starts nothing (`"locked": true` in `--json`).
59
+ - A run from a linked git worktree whose `.forge/` is not tracked now keeps its project memory in the main checkout's `.forge/`, so `git worktree remove` can no longer delete its learnings without a word. Every reader agrees (`inject`, `forge memory show/learnings/forget/add/edit`, the decision-model gates, the run dataset), the end-of-run line names the folder, and `forge memory where <repo>` prints it. A worktree that already kept a ledger of its own has its rows moved to the main checkout's once, its files renamed `*.merged`. A tracked `.forge/` or `FORGE_MEMORY_PER_CHECKOUT=1` keeps memory per checkout.
60
+ - With `--retry-per-model` and `--escalate-effort`, a task on a plan without tier pools now moves to the next effort of its model once it has failed N times there, as the escalation policy says, instead of stopping as `FAIL` with retry budget left.
61
+ - forge-ui no longer shows a run whose scheduler died (a crash, a killed terminal) as still running: the tasks it left running read as interrupted with `forge handoff resume` to pick the run up, the clock stops, Projects stops counting it as live, and its worktrees can be removed.
62
+ - Editing a task's brief while its review runs no longer lets that review's `FAIL` count: the attempt is redone on the new text at no cost, with the review's findings passed along. Every other brief change after `plan` (between attempts, while a task waits) is now recorded in `control.log` when the next attempt starts, and the run summary marks a drifted file the brief names as `(named in the brief)`.
63
+ - Switching task summaries on for a plan that has no summaries model is now refused, with the command that sets one (`forge control set <plan> summaries-model <spec>`), instead of being accepted and then skipping every summary silently. `summaries-model default` is refused while it would leave a planned plan with no model. A new `forge control set <plan> brief-model <spec>` changes the brief model of a planned plan, and `forge config set brief.model` names it. forge-ui shows the run's summaries model next to the Summaries switch, with a field that sets it.
64
+ - A retry review that passes no longer turns into `FAIL` because the reviewer recapped the last round's findings. A bullet marked `(fixed)`, `(resolved)` or `(addressed)`, and the list under a recap title such as "Previous findings", are no longer read as blocking findings of this round; a recap that says a finding is not fixed, still present or regressed still blocks, and so does a `CONFIRMED` finding listed with the recap that never says it was fixed. Reviewers are also asked not to lead a fixed finding with its severity.
65
+ - `plan --collapse-chains` (on by default in `auto`) no longer refuses its own plan when the planner put the chained tasks in a review group (`group …: member … is not in tasks.tsv`). Collapsing now rewrites `groups.tsv`: the parts become `combined`, and a group made only of parts is dropped. The original is kept as `groups.precollapse.tsv`, and `collapsed.json` lists the dropped groups.
66
+ - Reviewers can run tests that need a git submodule: task, final, adopt and solo review snapshots now get each submodule's files the way task worktrees do, and the reviewer is told which submodules it has (or which forge could not fill). Git does not see the files, so the snapshot's fingerprint and `git status` are unchanged.
67
+ - On Windows, verification no longer ends with an error when forge-ui or another reader has `verification.lanes.json` open at the moment forge rewrites it: the rewrite waits briefly for the reader instead.
68
+
8
69
  ## [0.22] - 2026-11-23
9
70
 
10
71
  Forge runs on Windows: natively from Git Bash, or inside MSYS2 if you prefer. Plus fixes for plan reviewers, retries after a brief edit, decisions and verification status.
package/README.md CHANGED
@@ -47,16 +47,22 @@ homework isn't a check: the second stage is worth having because it sees the cod
47
47
  only through `integrate --approved`, and forge never pushes. → [Safety](docs/safety.md)
48
48
  - **It learns your repo.** What a run discovers goes into a small `.forge/memory.md`, and every
49
49
  later run is given it. → [Project memory](docs/memory.md)
50
- - **You can watch it live.** forge-ui draws every run in 3D, with diffs, findings and a model
51
- leaderboard. → [forge-ui](docs/forge-ui.md)
50
+ - **You can watch it live, and steer it.** forge-ui draws every run in 3D, with diffs, findings and
51
+ a model leaderboard. `forge control steer` (or a box in forge-ui) sends a task a message for its
52
+ next attempt, or to a running claude or openclaude implementer right away.
53
+ → [forge-ui](docs/forge-ui.md), [live controls](docs/decomposed-runs.md#changing-a-run-while-it-works)
52
54
 
53
55
  ## Install
54
56
 
55
57
  ```bash
56
58
  npm install -g @giamme/forge
57
- forge install # links forge into every agent CLI it finds
59
+ forge install # links forge into every agent CLI it finds, then runs forge setup
58
60
  ```
59
61
 
62
+ `forge setup` asks once what a first run needs (which models build and review, review preferences,
63
+ forge-ui, project memory, add-ons) and saves the answers as defaults; `forge setup show` lists them
64
+ and `forge setup --defaults` takes the recommended ones. → [Setup](references/setup.md)
65
+
60
66
  Update with `npm install -g @giamme/forge@latest && forge install`. Or install from a git
61
67
  checkout:
62
68
 
@@ -103,8 +109,8 @@ That's the whole minimum. `sol` builds it at `high` effort on Codex, `opus` revi
103
109
  ```
104
110
 
105
111
  A decomposed run plans the tasks, rates and routes each one, then **shows you the table and
106
- stops** before spending anything. Before an interactive run, forge also asks whether to use
107
- [Fractal](docs/fractal.md) and whether to open [forge-ui](docs/forge-ui.md).
112
+ stops** before spending anything. Before an interactive run, forge also asks whether to open
113
+ [forge-ui](docs/forge-ui.md).
108
114
 
109
115
  → [Every flag, with more examples](docs/commands.md)
110
116
 
@@ -118,8 +124,9 @@ flowchart LR
118
124
  ```
119
125
 
120
126
  Without `--decompose-level`, the whole goal is one task: one dwarf, and one review of its diff.
121
- With optional [Fractal execution](docs/fractal.md), an implementer can delegate bounded child
122
- tasks inside the paths it owns. forge still reviews the combined diff.
127
+ A task that proves too large can itself be [split into subtasks](docs/decomposed-runs.md#splitting-a-task-into-subtasks),
128
+ at any depth inside limits you approve. They merge into the task's branch, and forge reviews the
129
+ combined diff.
123
130
 
124
131
  Every model is named by one spec, `alias:effort:harness`. Each field after the alias is optional:
125
132
 
@@ -139,10 +146,11 @@ Either role can run through any of six agent CLIs:
139
146
 
140
147
  ## forge-ui
141
148
 
142
- forge-ui is an opt-in, read-only local page that watches any run live, drawn as a 3D map. It
149
+ forge-ui is an opt-in local page that watches any run live, drawn as a 3D map. It
143
150
  shows every run on one plate, tasks in their waves and as they really ran, and the prompt, model,
144
- timings and P0–P3 findings behind every step. forge offers it at the start of every new run and
145
- never opens it without a yes.
151
+ timings and P0–P3 findings behind every step. It can also act: live controls, findings, brief
152
+ answers and deleting runs, unless you start it with `--read-only` (or `FORGE_UI_READONLY=1`).
153
+ forge offers it at the start of every new run and never opens it without a yes.
146
154
 
147
155
  <p align="center">
148
156
  <img src="ui/docs/media/cloud.webp" width="880" alt="The run cloud: about seventy runs as blocks in five project spirals, orbited, then laid out as galaxies and as a timeline with one lane per project.">
@@ -180,9 +188,8 @@ python3 ui/tools/demo_runs.py /tmp/forge-demo
180
188
  | [Install and update](docs/install.md) | npm or a git checkout, the doctor, what the installer does per CLI, updating |
181
189
  | [Command reference](docs/commands.md) | every `/forge` flag with examples, the `forge` command, the runner scripts and their exit codes |
182
190
  | [Models, efforts and harnesses](docs/models.md) | the `alias:effort:harness` spec, effort ladders and clamping, yolo mode, the model registry |
183
- | [Decomposed runs](docs/decomposed-runs.md) | decompose levels and difficulty, routing, waves, capsules, planning, resuming, split and combine, `tasks.tsv` |
191
+ | [Decomposed runs](docs/decomposed-runs.md) | decompose levels and difficulty, routing, waves, capsules, planning, splitting a task into subtasks, resuming, split and combine, `tasks.tsv` |
184
192
  | [Reviews, retries and recovery](docs/reviews.md) | verdicts, retries, infrastructure stops, severity thresholds, accepting, whole-run and shadow reviews, guards, verification, fail-first |
185
- | [Fractal execution](docs/fractal.md) | the optional nested-execution backend: install, run, inspect, bounds and recovery |
186
193
  | [Project memory](docs/memory.md) | `.forge/memory.md` and the ledger, what each role is told, whether to commit it, spend |
187
194
  | [forge-ui](docs/forge-ui.md) | the run viewer: commands, the shared server, environment variables, privacy |
188
195
  | [Run dataset](docs/dataset.md) | every run's inputs and outcomes, kept for training decision models |
package/SKILL.md CHANGED
@@ -1,232 +1,153 @@
1
1
  ---
2
2
  name: forge
3
- description: Dispatch implementation and independent diff review to user-selected models through local agent CLIs. Use for /forge or explicit requests to delegate coding or review; explanation-only questions do not authorize dispatch.
4
- argument-hint: '"<goal>" --dwarf <alias>[:effort[:harness]] [--qa <alias>] [--planner <alias>] [--profile <name>|--no-profile] [--fast <roles>] [--yolo-dwarf] [--yolo-qa] [--decompose-level low|medium|high] [--collapse-chains] [--plan auto|always|never] [--fractal|--no-fractal|--fractal-auto-decompose] [--fractal-planner <spec>] [--jev|--no-jev] [--jev-shadow] [--gate NAME=MODE] [--no-gates] [--decide-budget tokens=N[,usd=X]] [--no-memory] [--no-ripwire] [--ui|--no-ui] [--timeout <seconds>] [--retry-failed <n>] [--escalate-after <n>] [--qa-threshold P0|P1|P2|P3|none|default] [--file-issues ask|auto|off] [--shadow-qa <spec>[,<spec>]] [--shadow-rate <0..1>] [--reviewer-session] [--explore <0..0.5>] [--fail-first]'
5
- allowed-tools: [Bash, Read]
3
+ description: Dispatch implementation and independent diff review to user-selected models through local agent CLIs, and drive forge runs that already exist. Use for /forge, for explicit requests to delegate coding or review, and for questions about a forge run or plan in this repository - inspecting, resuming, retrying, accepting or reporting on it, a dwarf or QA verdict, a task at NEEDS_INPUT, NEEDS_DECISION or INFRA (exit 8), forge handoff, forge-ui, or the .forge/ directory. Explanation-only questions do not authorize dispatch.
4
+ argument-hint: '"<goal>" --dwarf <alias>[:effort[:harness]] [--qa <spec>] [--decompose-level low|medium|high] [flags…]'
5
+ allowed-tools: [Read, "Bash(forge *)", "Bash(bash ${CLAUDE_SKILL_DIR}/scripts/*)", "Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/*)", "Bash(${CLAUDE_SKILL_DIR}/forge *)"]
6
6
  ---
7
7
 
8
8
  # Forge
9
9
 
10
10
  Run an implementer (**dwarf**) followed by an independent **QA** review of its actual
11
11
  changes. Use the scripts for dispatch and capture; do not reconstruct harness commands.
12
- For explanation requests, explain the workflow without spending model quota.
12
+ `<skill_dir>` below is the directory that holds this file (`${CLAUDE_SKILL_DIR}` in Claude Code). You
13
+ orchestrate: write prompts and plan files, run forge's commands, and report; do not edit the
14
+ repository's source yourself.
13
15
 
14
- ## Choices and boundaries
15
-
16
- - A dwarf model must be chosen by the user. Ask when it is missing; never invent one.
17
- `--profile NAME` the user selected, or a default they set (`forge config profile use`),
18
- counts as that choice: do not ask role by role on top of it. When neither a flag nor a
19
- profile names models, offer one profile and wait: the user's default if one is set, else
20
- the built-in `balanced` ([recommended routing](docs/models.md#recommended-routing)). Ask
21
- role by role only if they decline. The runner applies a configured default when neither
22
- flag is passed and the run has no frozen copy, and it does not select `balanced` by
23
- itself. Pass `--profile balanced` when they accept it and it is not already the default;
24
- pass `--no-profile` when they decline, so a configured default does not fill the rest.
25
- A profile that names no dwarf pool still needs `--dwarf`.
26
- - QA defaults to `opus` when no profile names a reviewer; effort defaults to `medium` for dwarf, `high` for QA and `xhigh` for the planner.
27
- - Specs are `alias[:effort[:harness]]`, e.g. `sol:xhigh:openclaude`. Resolve using
28
- [registry.tsv](registry.tsv); report any effort clamp. Literal model IDs require a harness.
29
- - Bypass flags apply only when explicitly requested for that role (`--yolo-dwarf`,
30
- `--yolo-qa`). Bash access can mutate files despite disabled editing tools.
31
- - `--fast ROLES` is opt-in. Offer it only when the user asks for speed. `ROLES` is a comma
32
- list of `dwarf`, `qa`, `planner` and `review`, or `all`, or `none`. It is billed at a
33
- higher rate. Claude's fast mode needs extra usage enabled; without it the run stays at
34
- standard speed, exits 0, and forge prints a note. Codex can do the same when the tier is
35
- unsupported. Other harnesses (openclaude, opencode, antigravity, grok) refuse and exit 3.
36
- A solo run accepts only `dwarf`, `qa` or `none`. Read
37
- [the fast service tier](references/harnesses.md#fast-service-tier). A note is not a failed run.
38
- - Ask **“Use Fractal for this run? [y/N]”** once before an interactive run, unless
39
- the user supplied `--fractal`, `--no-fractal`, or `--fractal-auto-decompose`. Pass the answer explicitly to
40
- the runner. Unattended runs default off. Installation never activates Fractal.
41
- Resume and explicit retry retain the recorded choice. Read [Fractal](references/fractal.md)
42
- when selected; Fractal completion never substitutes for Forge QA acceptance.
43
- - Ask **“Open forge-ui to watch this run? [y/N]”** once at the start of every new
44
- interactive run, unless the user supplied `--ui` or `--no-ui`. Pass the answer to `plan`
45
- or `forge-solo.sh` and relay the `forge-ui:` URL they print. Never ask on resume or retry;
46
- unattended runs leave it off. A UI failure never changes the run. Read [forge-ui](references/ui.md).
47
- - A finished solo run, `plan` or `run` may end with one stderr line, `forge X is available
48
- (you have Y): <command>` (checked at most once a day; the command is `forge update`, or npm's
49
- for an npm installation). Relay it once; run the update only when the user asks (that
50
- command, then restart the harness session). `FORGE_UPDATE_CHECK=off` silences it.
51
- - `--fractal-auto-decompose` enables automatic split-or-atomic decisions before each
52
- eligible node implements. Include the effective planner and bounds in the approval
53
- preview; child decisions need no additional user approval inside those bounds.
54
- Forward `--fractal-planner <spec>` to the runner. When omitted, forward a selected
55
- top-level `--planner` as `--fractal-planner`; otherwise each task's initial root model
56
- plans all its descendants. Ordinary `--fractal` keeps worker-requested decomposition.
57
- - One implementer per tree. Solo edits remain uncommitted. Decomposed runs may commit
58
- and merge on Forge task and integration branches. Updating the user's branch requires
59
- separate authorization and `integrate --approved`. Never push automatically.
60
- - The QA threshold defaults to `P2`: a CONFIRMED finding at P2 or worse blocks, so a PASS that
61
- lists one becomes FAIL, and milder CONFIRMED findings are recorded as known issues. `--qa-threshold`
62
- changes it (see [the verdict rule](docs/reviews.md#verdicts-and-failure)).
63
- - Show the decomposed task/model table and wait for approval before dispatch. Relay the
64
- table's `profile:` line: the profile, and the flags that override it. Solo prints the
65
- same line. When the table says the plan runs sequentially, offer `--collapse-chains`
66
- (or one task) before approval. `forge-parallel.sh auto` already passes
67
- `--collapse-chains` unless `--no-collapse`, so that line appears when collapse did not
68
- run. Retry only
69
- when requested; preserve failed task branches and worktrees. `run --retry-failed N`,
70
- `--infra-retries M`, `plan --shadow-qa` (a second review of a
71
- sampled share of attempts, never read, to measure reviewer agreement) and
72
- `plan --reviewer-session` (continue the reviewer's session across rounds),
73
- `plan --implementer-session` (a retry continues the implementer's session) and `run --sweep Pn`
74
- (once every task merged, fix the tolerated findings at Pn or worse in a few extra tasks, one per
75
- file; `--sweep-ahead` instead hands a task the open findings in its files) are opt-in: offer
76
- them, never add them unprompted. So is `--fail-first` (solo or `plan`): the change's new
77
- tests also run without its non-test changes, and the reviewer is asked to report any that
78
- still pass as P2; it needs `.forge/verify-subset` and never changes a result by itself. So is
79
- `plan --pre-review-tests`: before each review forge runs only the tests the attempt affects
80
- (`.forge/verify-subset`), and a red attempt goes back to its implementer unreviewed. So are
81
- `plan --groups` and `plan --group-review`: one review can cover several small, related,
82
- low-risk tasks. Offer them, never add them unprompted, and keep a high-risk task on per-task
83
- review. Read [Groups and group review](references/decompose.md#groups-and-group-review-opt-in). `plan` explores by default (`--explore 0.2`: now and then
84
- a row left to forge gets its neighbouring tier's model from the user's pools, odds
85
- recorded for `forge dataset routing`); say so with the table and pass `--explore 0` when
86
- the user declines. Retries follow a policy: after three failed attempts on one model the
87
- next goes a tier up in the user's pools, or the task stops as `NEEDS_DECISION`
88
- (`--escalate-after N`, `0` = off); an explicit `retry --dwarf` overrides it. `accept`
89
- overrides a reviewer: run it, with `--reason` and `--approved`, only when the user
90
- explicitly says so; never self-accept.
91
- - When you report a run, read `<plan>/control.log` and mention any human change made mid-run
92
- (a threshold, a budget, a model pin, a drain, stop or queued retry; `forge control show <plan>`
93
- lists them). Never set a control, pin, `drain|stop|retry`, delete a run or compact one with
94
- `forge control` / `forge runs rm` / `forge runs compact` unless the user asks; `forge du` only reads. Exit `130` / `INTERRUPTED`: the run was signalled or
95
- stopped; `forge handoff resume <plan>` carries it on, and relay the `retry` lines it printed to finish by hand.
96
- - When a session starts on a repo with an active or unfinished run, or the user names one, run
97
- `forge handoff` first and work from its output. Never start `run` for a run whose scheduler is
98
- live; continue with `forge handoff resume <plan> --harness <this harness>`, which follows a live
99
- run and restarts a stopped one with its recorded flags. A Fractal plan is left to `forge fractal
100
- resume`. Claim the run with the session's harness. Take over another driver only on the user's
101
- word (`--take-over`). Record what is not on disk (a decision the user made, a hand fix under way)
102
- with `forge handoff note`.
103
- - A `waiting for your answer:` block is status `NEEDS_INPUT`: relay each question verbatim and
104
- pass it with `retry <plan> <id> --answer "<reply>"`. Never answer for the user; nothing else
105
- resumes it.
106
- - A task at `NEEDS_DECISION` waits for the user. Present `tasks/<id>/decision.md`'s reasons and
107
- choices. Run `retry --decide`, `retry --dwarf` or `accept` (with `--reason` and `--approved`)
108
- only on the user's explicit word, never to keep a run going; on a live run use `forge control
109
- retry … --decide` or `forge control accept`, which the scheduler applies. Nothing else resumes it. The
110
- split choice replaces the row in `tasks.tsv` and is a later `run`
111
- ([when reviews don't converge](references/decompose.md#when-reviews-dont-converge)); do that
112
- only when the user asks.
113
- - A group at `NEEDS_DECISION` waits for the user. Present `forge group show <plan>`. Run
114
- `forge group retry <plan> <gid> --tasks <ids>` only on the user's word: that answers an
115
- ambiguous decision. An oversized group is split in `groups.tsv` and planned again; do not
116
- retry it. Nothing else resumes it.
117
- - Exit `8` / status `INFRA` is an infrastructure stop (`capacity`, `rate_limit`, `usage_limit`,
118
- `budget`, `auth`, `network`, `provider_down`, `empty` or `cancelled`; an old run may say
119
- `quota`), not a task failure, and no attempt was spent. Report each "needs you" item with its
120
- hint, and re-run only when told. Offer a multi-task plan's whole-run review (`review`, or
121
- `integrate --final-review <qa-spec>`) only when asked: it spends QA quota.
122
- - **Leftover findings become issues.** A run can finish with review findings nobody will act on:
123
- - CONFIRMED findings the threshold tolerated, from a PASS or a FAIL (`tasks/<id>/known_issues.md`);
124
- - PLAUSIBLE findings in a passed task's `qa.last`;
125
- - whatever a whole-run review left open.
126
- - Triage (`forge findings triage REPO --spec S`) needs a model the user names, never one you choose. Offer it, never start it unprompted. Relay its proposals, and run `forge findings apply` only on the user's explicit word for each one.
127
-
128
- `forge findings` holds what happened to each finding (fixed, dismissed, duplicate, to file), and a finding marked `to-file` is offered with the others.
16
+ ## References
129
17
 
130
- When there are any, act on the user's `--file-issues` choice with one filer:
131
- - **gh-proman**, only when it is installed and set up for the repository: `gh-proman -C <repo> config show` exits 0. It also puts the issues on the team's board with a priority. Run `gh-proman findings --from <plan or run dir> --include-plausible --json`, then follow the gh-proman skill's review-findings steps.
132
- - **forge's own filer** otherwise (gh-proman missing, or not configured for this repo; never configure it yourself): `python3 <skill_dir>/scripts/forge-issues.py <plan or run dir> --include-plausible --json`, plain `gh issue create`. Pass `--lang` matching the repo's existing issues, and `--label bug` when the repo has that label. If `gh` is missing, unauthenticated or the repo has no GitHub remote, list the findings in the report and say why none were filed.
18
+ Read the one that applies before acting; every flag is in [commands](docs/commands.md).
133
19
 
134
- The choice:
135
- - `ask` (the default): show the dry-run summary (count by severity, titles, anything already filed) and ask once: **"File these N findings as GitHub issues? [all / CONFIRMED only / none]"**. Then re-run with `--apply`, adding `--include-plausible` only for "all".
136
- - `auto`: file them without asking (`--apply`, PLAUSIBLE included as "to verify" issues) and report what was created and skipped.
137
- - `off`: never offer.
20
+ - [Planning](references/planning.md): `--planner` (and `forge-parallel.sh auto`) or an agreed approach.
21
+ - [Solo](references/solo.md): command, snapshots, artifacts, exit codes and native-review limits.
22
+ - Decomposition: [planning a plan](references/decompose.md) (task schema, routing, profiles, waves, size,
23
+ gates, plan shape), [reviews and verdicts](references/decompose-review.md),
24
+ [retries, stops and recovery](references/decompose-recovery.md),
25
+ [integration and verification](references/decompose-integration.md),
26
+ [opt-in modes](references/decompose-opt-in.md) (groups, retro, brief, summaries).
27
+ - [Leftover findings](references/findings.md): filing them as issues, triage, `--file-issues`.
28
+ - [Harnesses](references/harnesses.md): invocation troubleshooting, the fast tier, adding a harness.
29
+ - [Memory](references/memory.md): `.forge/` learning and spend records (`--no-memory` disables them).
30
+ - [forge-ui](references/ui.md): the opt-in run viewer; `forge ui open|status|stop`, `FORGE_UI=off`, privacy.
31
+ - [Dataset](references/dataset.md): every run's inputs and outcomes, outside the repo; `FORGE_DATASET=off`.
32
+ - [Decision models](references/decision-models.md): optional Jev or Clef gates, off until opted in with `forge decide`,
33
+ fail-open; they never change a tier, pick a model or stand in for QA or verification (`--jev-act` changes nothing).
34
+ - [Ripwire](references/ripwire.md): automatic context when compatible; `--no-ripwire` or `FORGE_RIPWIRE=off`
35
+ disables it for every role, a dispatched planner included. Runners offer installation once.
36
+
37
+ ## Reporting
38
+
39
+ Runners default to summary output. Read each `dwarf.last` and `qa.last` once; retrieve raw logs only
40
+ when needed. Report findings faithfully and name verification limits. Source or review mutations
41
+ invalidate acceptance. A missing verdict is UNKNOWN. No repository verification command means
42
+ UNVERIFIED, even when QA passes. `STALE` means verification ran on an earlier commit: the
43
+ integration tip is unverified until `run` or `integrate` verifies it. Read `<plan>/control.log`
44
+ and mention any human change made mid-run
45
+ (`forge control show <plan>` lists them). Keep execution completion, QA acceptance and verification
46
+ apart. Offer the leftover findings as issues ([findings](references/findings.md)).
138
47
 
139
- With the `findings` gate on (`forge decide gate findings on`), forge's filer adds `preselect` and `reason` to each finding in the dry-run JSON, and `--apply` turns a reworded duplicate of an open issue into a comment on it (`comments`, `commented`). `ask` shows the pre-selected findings and the reason for each one left out, and files the ones the user keeps with `--only <fps> --max-issues <count>`. `auto` files only the pre-selected ones the same way.
48
+ ## Choices and boundaries
140
49
 
141
- `--file-issues` is an instruction to you: never forward it to a runner. Skip INFRA, interrupted and still-failing runs. Both filers mark each issue with the same finding fingerprint and skip a finding either one already filed, so offering again after a retry only brings up new ones. A draft flagged as a possible duplicate is skipped on `--apply`: show it, and file it (`--confirm-new`) only if the user says it is different.
142
- - Decision models (Jev, Clef) are optional, off until a gate is opted in with `forge decide`,
143
- fail-open, and never change a task's tier, select a model, or substitute for QA acceptance
144
- or repository verification (`--jev-act` is still accepted and changes nothing). Read
145
- [Decision models](references/decision-models.md) when selected.
146
- - **Retro, brief and summaries are opt-in:** offer them, never add them unprompted. Brief and
147
- summaries need a model the user names (`--brief-model`, `--summaries-model` or `forge config
148
- set`); forge never picks one. With brief on, relay the questions from `forge brief show <plan>`,
149
- pass the user's answers with `forge brief answer`, and never answer for the user. A strict brief
150
- run exits `3` before any task starts while questions are open. With retro on, record each
151
- obstacle with `forge retro note <plan> --type T --fixable-by F --summary S` (`T`: `environment`,
152
- `sandbox`, `tooling`, `prompt`, `forge-bug` or `other`; `F`: `user`, `forge` or `unsure`), and at
153
- the end of the run relay the groups in `<plan>/retro.md`. `forge retro issues` posts only on the
154
- user's approval of the exact text it prints (`--apply --approve <hash>`). Details:
155
- [retro notes](references/decompose.md#retro-notes-opt-in),
156
- [brief mode](references/decompose.md#brief-mode-opt-in),
157
- [task summaries](references/decompose.md#task-summaries-opt-in).
50
+ - **The user picks the models.** A dwarf must be chosen by the user; never invent one. A selected
51
+ `--profile NAME`, or a default they set (`forge config profile use`), is that choice. When neither a
52
+ flag nor a profile names models, offer one profile and wait: their default if set, else `balanced`
53
+ ([recommended routing](docs/models.md#recommended-routing)); ask role by role only if they decline.
54
+ The runner applies a configured default only when no flag is passed and the run has no frozen copy,
55
+ never `balanced` by itself: pass `--profile balanced` when accepted, `--no-profile` when declined.
56
+ A profile with no dwarf pool still needs `--dwarf`. QA defaults to `opus` when no profile names a
57
+ reviewer; effort defaults to `medium` (dwarf), `high` (QA), `xhigh` (planner).
58
+ - Specs are `alias[:effort[:harness]]`, e.g. `sol:xhigh:openclaude`, resolved with
59
+ [registry.tsv](registry.tsv); report any effort clamp. Literal model IDs require a harness.
60
+ - **Opt-in means opt-in.** Anything that spends quota, changes how a run behaves or posts outside the
61
+ machine needs the user's explicit word: offer it, never add it. That covers every flag below,
62
+ `--yolo-dwarf` / `--yolo-qa` (only for the role they name; Bash can still mutate files with editing
63
+ tools disabled) and `--fast` (offer only when the user asks for speed).
64
+ - **Setup.** If `forge setup show --json` says `done: false`, offer `forge setup` once before the first
65
+ run. Its saved answers ([setup](references/setup.md)) are the user's word for what they cover.
66
+ - Ask **"Open forge-ui to watch this run? [y/N]"** once when a new interactive run starts,
67
+ unless a flag or setup answered it, and pass the answer on ([forge-ui](references/ui.md)). Never ask on
68
+ resume or retry; unattended runs leave it off. Relay the `forge-ui:` URL; a UI failure never changes a run.
69
+ - One implementer per tree. Solo edits stay uncommitted; decomposed runs commit only on forge's task and
70
+ integration branches. Updating the user's branch needs separate authorization and `integrate
71
+ --approved`. Never push.
72
+ - QA threshold: `P2` by default (a CONFIRMED P2 or worse blocks; milder ones become known issues);
73
+ `--qa-threshold` changes it ([verdicts](docs/reviews.md#verdicts-and-failure)).
74
+ - Show the decomposed task/model table, with its `profile:` line, and wait for approval before dispatch.
75
+ When it says the plan runs sequentially, offer `--collapse-chains` or one task (`auto` collapses
76
+ unless `--no-collapse`). `plan` [explores](references/decompose.md#exploratory-routing-on-by-default) by default (`--explore 0.2`): say so with the table; pass
77
+ `--explore 0` if the user declines. Retries escalate a tier after three failures on one model, or stop
78
+ at `NEEDS_DECISION` (`--escalate-after N`, `0` off); an explicit `retry --dwarf` overrides it.
79
+ - Retry only when asked, and keep failed task branches and worktrees. `accept` overrides a reviewer: run
80
+ it (`--reason`, `--approved`) only on the user's explicit word; never self-accept.
81
+ - Never set a control, pin, `drain|stop|retry`, delete or compact a run (`forge control`, `forge runs
82
+ rm|compact`) unless the user asks; `forge du` only reads.
83
+ - Relay a `forge X is available (you have Y): <command>` line once; update only when asked (then restart
84
+ the harness session).
85
+
86
+ | Opt-in flag | Where | What it does |
87
+ |---|---|---|
88
+ | `--retry-failed N`, `--infra-retries M` | `run` | auto-retry failed or infra-stopped tasks |
89
+ | `--shadow-qa SPEC` | `plan` | second, never-read review of sampled attempts (measures agreement) |
90
+ | `--reviewer-session`, `--implementer-session` | `plan` | continue the reviewer's / implementer's session across rounds |
91
+ | `--sweep Pn` / `--sweep-ahead` | `run` | fix tolerated Pn+ findings after merge (one task/file) / pass open findings in owned files |
92
+ | `--fail-first` | solo, `plan` | re-run new tests without code changes (still-passing are P2; needs `.forge/verify-subset`) |
93
+ | `--pre-review-tests` | `plan` | run the affected tests before review; a red attempt goes back unreviewed |
94
+ | `--auto-split`; `--split-depth\|children\|nodes N` | `run`; `plan` | the planner splits a task stopped on `split`; split limits, shown with the table ([subtasks](references/decompose.md#subtasks-a-task-split-at-any-level)) |
95
+ | `--groups`, `--group-review` | `plan` | shared review for small, related, low-risk tasks; keep high-risk tasks per task ([groups](references/decompose-opt-in.md#groups-and-group-review-opt-in)) |
96
+ | `--fast ROLES` | any | faster service tier, billed higher ([fast tier](references/harnesses.md#fast-service-tier)): absent on account stays standard with a note; openclaude, opencode, antigravity and grok exit 3; solo takes `dwarf`, `qa`, `none` |
97
+ | retro, brief, summaries | `plan` | [opt-in modes](references/decompose-opt-in.md); brief and summaries need a model the user names |
98
+
99
+ ## Existing runs
100
+
101
+ - When a session starts on a repo with an active or unfinished run, or the user names one, run `forge
102
+ handoff` first and work from its output. Never start `run` while its scheduler is live: continue with
103
+ `forge handoff resume <plan> --harness <this harness>`, which follows a live run and restarts a stopped
104
+ one with its recorded flags. Take over another driver only on
105
+ the user's word (`--take-over`). Record what is not on disk with `forge handoff note`.
106
+ - Exit `130` / `INTERRUPTED`: signalled or stopped; `forge handoff resume <plan>` carries it on; relay the
107
+ `retry` lines it printed.
108
+ - `waiting for your answer:` is `NEEDS_INPUT`: relay each question verbatim and pass the reply with `retry
109
+ <plan> <id> --answer "<reply>"`. Never answer for the user; nothing else resumes it.
110
+ - A task at `NEEDS_DECISION` waits for the user: present `tasks/<id>/decision.md`'s reasons and choices.
111
+ Run `retry --decide`, `retry --dwarf` or `accept` (`--reason`, `--approved`) only on the user's explicit
112
+ word, never to keep a run going; on a live run use `forge control retry … --decide` or `forge control
113
+ accept`. The split choice is `--decide split` with the subtasks; the task is then reviewed on their work
114
+ ([when reviews don't converge](references/decompose-recovery.md#when-reviews-dont-converge)).
115
+ - A live `run` prints `forge: needs you: <task> <STATUS> (<why>) -> <file>` when a task stops for the user:
116
+ relay it at once; the run goes on. Can't read background output live? Run `forge watch <plan>`.
117
+ - `waiting for their subtasks:` a subtask failed or waits: act in its `tasks/<id>/sub` plan, then `run`.
118
+ - A group at `NEEDS_DECISION`: present `forge group show <plan>`; run `forge group retry <plan> <gid>
119
+ --tasks <ids>` only on the user's word. An oversized group is split in `groups.tsv` and planned again,
120
+ not retried.
121
+ - Exit `8` / `INFRA` is an infrastructure stop (`capacity`, `rate_limit`, `usage_limit`, `budget`, `auth`,
122
+ `network`, `provider_down`, `empty`, `cancelled`; old runs say `quota`), not a task failure: no attempt
123
+ was spent. Report each "needs you" item with its hint and re-run only when told
124
+ ([infrastructure failures](references/decompose-recovery.md#infrastructure-failures)).
125
+ - Offer a multi-task plan's whole-run review (`review`, or `integrate --final-review <qa-spec>`) only when
126
+ asked: it spends QA quota.
158
127
 
159
128
  ## Common workflow
160
129
 
161
- 1. Inspect the repository and existing work, unless this is a decomposed `--planner` run:
162
- the planner reads the repository, so do not explore it yourself. State the goal,
163
- selected models and any bypass flags. Keep complete requirements in `prompt.md`; short
164
- titles are insufficient for QA.
165
- 2. Preflight every selected role before the first model call, including an optional planner:
166
- `bash <skill_dir>/scripts/forge-dispatch.sh doctor --spec <spec> --role <role>`.
167
- This checks resolution, executable and advertised flags without model quota. Authentication,
168
- quota and live model availability remain unverified; a live probe must be explicitly requested.
169
- 3. Use [solo runs](references/solo.md) for one implementation. For `--decompose-level
170
- low|medium|high`, read [decomposition](references/decompose.md). With `--planner`, do not
171
- assemble the table: call `auto` as below. Otherwise prepare the task table, obtain
172
- approval, then use `forge-parallel.sh plan/run`. Write the user's request verbatim
173
- to `request.md` in the run or plan dir, and pass `--decompose-level` to `plan` with the
174
- level you actually split at, even when the user named none. Keep each task small and end
175
- its `prompt.md` with an `## Acceptance criteria` section of checks the reviewer can verify;
176
- `plan` names tasks over 7K characters or 9 files, where first attempts mostly fail review.
177
- Pass the recorded Fractal choice and requested limits to the execution runner; tier
178
- pools go to solo directly or decomposed `plan`. Fractal does not replace planner dispatch.
179
- `--timeout` applies to decomposed runs too (kept in the plan).
180
- For a decomposed `--planner` run, call `forge-parallel.sh auto` once, as one blocking
181
- command, instead of writing the planner prompt and assembling the plan by hand. Omit
182
- `--approved` on an interactive run, show the table, and wait; `--approved` is only for
183
- the user's explicit pre-approval. Where the harness limits foreground commands, start
184
- `auto` in the background and wait for its completion notice. Do not poll and do not
185
- read its logs meanwhile. Auto preflights the planner and, on one plan send-back,
186
- re-dispatches once. After the run (the `run` command `auto` printed, or
187
- `auto --approved`), read `<plan>/results.tsv` and each failed task's `qa.last`, and
188
- report. When you called `plan` yourself and it exits 4, the prompt or coverage gate
189
- sent work back: read `<plan>/plan.sendback.md`, rewrite each listed task's `prompt.md`,
190
- and extend or add tasks for each uncovered requirement (with `--planner`, re-dispatch
191
- it with that file appended), then run `plan` again, once. Forge never sends the same
192
- task or requirement back twice.
193
- 4. Runners default to summary output. Read each `dwarf.last` and `qa.last` once; retrieve raw
194
- logs only when needed. Report findings faithfully, and identify verification
195
- limits. Source or review mutations invalidate acceptance. Missing verdicts are UNKNOWN.
196
- An absent repository verification command means UNVERIFIED, even when QA passes.
197
-
198
- For a Fractal run, report its managed run ID with the Forge result. Use
199
- `<skill_dir>/forge fractal runs --repo <repo> --json` and `tree RUN_ID --json` to discover
200
- run/task/node IDs; use `status`, `logs` or `open` for inspection. Run-level `resume`
201
- recovers the recorded pipeline; scoped controls affect only the selected execution scope.
202
- Preserve failed work and state the distinction between execution completion, QA acceptance
203
- and verification. Read the Fractal reference before retrying, changing limits or exporting
204
- a portable report.
205
-
206
- Ripwire context is automatic when compatible; `--no-ripwire` or `FORGE_RIPWIRE=off`
207
- disables it. Pass opt-out to every role, including a separately dispatched planner.
208
- Runners offer installation once before agents; dispatch never prompts. See
209
- [Ripwire](references/ripwire.md) for installation, limits and fallback behavior.
210
-
211
- ## Conditional references
212
-
213
- - [Planning](references/planning.md): read for `--planner` (including `forge-parallel.sh auto`) or an agreed approach.
214
- - [Solo](references/solo.md): command, snapshots, artifacts, exit codes and native-review limits.
215
- - [Decomposition](references/decompose.md): task schema, routing and profiles, `auto`, plan shape, waves, retries and integration.
216
- - [Harnesses](references/harnesses.md): invocation troubleshooting, the fast service tier, or adding a harness.
217
- - [Fractal](references/fractal.md): opt-in nested execution, installation, limits,
218
- recovery, managed run commands, read-only dashboard and portable reports.
219
- - [Memory](references/memory.md): `.forge/` learning and spend records; `--no-memory` disables
220
- them. Memory is written to the user's repository but excluded from implementation diffs.
221
- - [forge-ui](references/ui.md): the opt-in local run viewer; `forge ui open|status|stop`,
222
- `FORGE_UI=off`, one shared server, privacy.
223
- - [Dataset](references/dataset.md): every run's inputs and outcomes, kept outside the repo
224
- for training decision models; `forge dataset status|import|export|outcomes`, `FORGE_DATASET=off`.
225
- - [Decision models](references/decision-models.md): optional TypeSafe Jev or Cloudflare Clef
226
- judgments (drift, forward dependency, prompt adequacy, memory curation, verify discovery);
227
- off until a gate is opted in with `forge decide`; the criteria a site must meet, and what
228
- was tried and removed.
229
-
230
- The common invocation is `/forge "<goal>" --dwarf <spec> [--qa <spec>]`. Advanced flags and
231
- commands live with their mode reference. Use [offline tests and evaluation cases](tests/README.md)
232
- when maintaining this skill.
130
+ 1. Inspect the repository and existing work, unless this is a decomposed `--planner` run (the planner
131
+ reads the repository). State the goal, selected models and any bypass flags. Keep complete
132
+ requirements in `prompt.md`; short titles are insufficient for QA.
133
+ 2. Preflight every selected role, an optional planner included, before the first model call:
134
+ `bash <skill_dir>/scripts/forge-dispatch.sh doctor --spec <spec> --role <role>`. It checks resolution,
135
+ executable and flags without quota; authentication, quota and live availability stay unverified
136
+ unless the user asks for a live probe.
137
+ 3. One implementation: [solo](references/solo.md). `--decompose-level low|medium|high`: read
138
+ [planning a plan](references/decompose.md). With `--planner`, call `forge-parallel.sh auto` once, as
139
+ one blocking command (backgrounded if foreground commands time out; wait for its notice, do
140
+ not poll or read logs), without `--approved` unless the user pre-approved; show the
141
+ table and wait. Otherwise write the task table, get approval, then `forge-parallel.sh plan/run`.
142
+ `auto` preflights the planner and re-dispatches once on a send-back. Write the request verbatim to
143
+ `request.md`, pass `--decompose-level` with the level you split at (even when the user named none),
144
+ end each `prompt.md` with `## Acceptance criteria` the reviewer can check, and keep tasks small
145
+ (`plan` names any over 7K characters or 9 files). `--timeout` and tier pools go to the
146
+ runner. If `plan` exits 4, read `<plan>/plan.sendback.md`, fix each listed prompt and cover
147
+ each listed requirement (with `--planner`, re-dispatch with that file appended), then run `plan`
148
+ once more; forge never sends the same thing back twice.
149
+ 4. After the run (the `run` that `auto` printed, or `auto --approved`), read `<plan>/results.tsv` and each
150
+ failed task's `qa.last`, and report as above.
151
+
152
+ The common invocation is `/forge "<goal>" --dwarf <spec> [--qa <spec>]`. Use
153
+ [offline tests and evaluation cases](tests/README.md) when maintaining this skill.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.22
1
+ 0.23
package/docs/README.md CHANGED
@@ -9,9 +9,8 @@ The README is the short overview. These pages hold the rest, one topic each.
9
9
  | [Install and update](install.md) | npm or a git checkout, the doctor, what the installer does per CLI, updating |
10
10
  | [Command reference](commands.md) | every `/forge` flag with examples, the `forge` command, the runner scripts and their exit codes |
11
11
  | [Models, efforts and harnesses](models.md) | the `alias:effort:harness` spec, effort ladders and clamping, yolo mode, the model registry |
12
- | [Decomposed runs](decomposed-runs.md) | decompose levels and difficulty, routing, waves, capsules, planning, resuming, split and combine, `tasks.tsv` |
12
+ | [Decomposed runs](decomposed-runs.md) | decompose levels and difficulty, routing, waves, capsules, planning, splitting a task into subtasks, resuming, split and combine, `tasks.tsv` |
13
13
  | [Reviews, retries and recovery](reviews.md) | verdicts, retries, infrastructure stops, severity thresholds, accepting, whole-run and shadow reviews, guards, verification, fail-first |
14
- | [Fractal execution](fractal.md) | the optional nested-execution backend: install, run, inspect, bounds and recovery |
15
14
  | [Project memory](memory.md) | `.forge/memory.md` and the ledger, what each role is told, whether to commit it, spend |
16
15
  | [forge-ui](forge-ui.md) | the run viewer: commands, the shared server, environment variables, privacy |
17
16
  | [Run dataset](dataset.md) | every run's inputs and outcomes, kept for training decision models |
@@ -23,5 +22,5 @@ The README is the short overview. These pages hold the rest, one topic each.
23
22
  | [Contributing](../CONTRIBUTING.md) | setting up, running the tests, the rules reviewers check, pull requests |
24
23
 
25
24
  Deeper material that the skill itself reads lives in [`references/`](../references/): the
26
- per-harness details, the decomposition and Fractal contracts, memory internals, Jev and the
25
+ per-harness details, the decomposition contract, memory internals, Jev and the
27
26
  dataset schema.
package/docs/add-ons.md CHANGED
@@ -6,9 +6,11 @@ Two optional add-ons: Ripwire adds repository evidence to every prompt, and Jev
6
6
 
7
7
  ## Ripwire context
8
8
 
9
- Forge automatically adds optional Ripwire 0.4.0 repository evidence to planner, dwarf,
10
- and QA prompts across all six harnesses. Setup and interactive runners offer a pinned,
11
- verified installation; headless runs continue when it is missing. Use `--no-ripwire`
9
+ Forge automatically adds optional Ripwire repository evidence (Ripwire 0.6 or later) to
10
+ planner, dwarf, and QA prompts across all six harnesses. Setup and interactive runners offer
11
+ to install the latest release; headless runs continue when it is missing. After a run, forge
12
+ tells you once a day when a newer Ripwire is out and, on a terminal, offers to update it
13
+ (`forge ripwire update`; `forge ripwire status` shows installed vs latest). Use `--no-ripwire`
12
14
  or `FORGE_RIPWIRE=off` to disable it. Decomposed plans preserve opt-out across resumes
13
15
  and retries. See [installation, controls and attempt artifacts](../references/ripwire.md).
14
16