@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
@@ -0,0 +1,68 @@
1
+ # Leftover findings
2
+
3
+ A run can finish with review findings nobody will act on. This page is what the orchestrator does with
4
+ them: triage, and filing them as GitHub issues according to the user's `--file-issues` choice. The
5
+ commands themselves are in [commands](../docs/commands.md#forge-issues) and
6
+ [`forge findings`](../docs/commands.md#forge-findings).
7
+
8
+ ## Contents
9
+
10
+ - [What counts as leftover](#what-counts-as-leftover)
11
+ - [Triage](#triage)
12
+ - [Which filer](#which-filer)
13
+ - [The --file-issues choice](#the---file-issues-choice)
14
+ - [With the findings gate on](#with-the-findings-gate-on)
15
+ - [Rules for both filers](#rules-for-both-filers)
16
+
17
+ ## What counts as leftover
18
+
19
+ - CONFIRMED findings the threshold tolerated, from a PASS or a FAIL (`tasks/<id>/known_issues.md`);
20
+ - PLAUSIBLE findings in a passed task's `qa.last`;
21
+ - whatever a whole-run review left open.
22
+
23
+ `forge findings` holds what happened to each finding (fixed, dismissed, duplicate, to file), and a finding
24
+ marked `to-file` is offered with the others.
25
+
26
+ ## Triage
27
+
28
+ Triage (`forge findings triage REPO --spec S`) needs a model the user names, never one you choose. Offer
29
+ it, never start it unprompted. Relay its proposals, and run `forge findings apply` only on the user's
30
+ explicit word for each one.
31
+
32
+ ## Which filer
33
+
34
+ When there are any leftover findings, act on the user's `--file-issues` choice with one filer:
35
+
36
+ - **gh-proman**, only when it is installed and set up for the repository: `gh-proman -C <repo> config show`
37
+ exits 0. It also puts the issues on the team's board with a priority. Run `gh-proman findings --from
38
+ <plan or run dir> --include-plausible --json`, then follow the gh-proman skill's review-findings steps.
39
+ - **forge's own filer** otherwise (gh-proman missing, or not configured for this repo; never configure it
40
+ yourself): `python3 <skill_dir>/scripts/forge-issues.py <plan or run dir> --include-plausible --json`,
41
+ plain `gh issue create`. Pass `--lang` matching the repo's existing issues, and `--label bug` when the
42
+ repo has that label. If `gh` is missing, unauthenticated or the repo has no GitHub remote, list the
43
+ findings in the report and say why none were filed.
44
+
45
+ ## The --file-issues choice
46
+
47
+ - `ask` (the default): show the dry-run summary (count by severity, titles, anything already filed) and
48
+ ask once: **"File these N findings as GitHub issues? [all / CONFIRMED only / none]"**. Then re-run with
49
+ `--apply`, adding `--include-plausible` only for "all".
50
+ - `auto`: file them without asking (`--apply`, PLAUSIBLE included as "to verify" issues) and report what
51
+ was created and skipped.
52
+ - `off`: never offer.
53
+
54
+ ## With the findings gate on
55
+
56
+ With the `findings` gate on (`forge decide gate findings on`), forge's filer adds `preselect` and `reason`
57
+ to each finding in the dry-run JSON, and `--apply` turns a reworded duplicate of an open issue into a
58
+ comment on it (`comments`, `commented`). `ask` shows the pre-selected findings and the reason for each one
59
+ left out, and files the ones the user keeps with `--only <fps> --max-issues <count>`. `auto` files only
60
+ the pre-selected ones the same way.
61
+
62
+ ## Rules for both filers
63
+
64
+ `--file-issues` is an instruction to you: never forward it to a runner. Skip INFRA, interrupted and
65
+ still-failing runs. Both filers mark each issue with the same finding fingerprint and skip a finding
66
+ either one already filed, so offering again after a retry only brings up new ones. A draft flagged as a
67
+ possible duplicate is skipped on `--apply`: show it, and file it (`--confirm-new`) only if the user says
68
+ it is different.
@@ -7,13 +7,6 @@ Everything below was verified by running the CLIs on this machine, not read from
7
7
  several of these behaviours are undocumented and a few contradict what the `--help` text
8
8
  implies.
9
9
 
10
- Fractal uses this same dispatcher for all six harnesses through its `agents.py` bridge.
11
- It is an optional execution backend, not a seventh model harness or a replacement for
12
- `alias:effort:harness`. The same effort and permission rules apply to each fresh nested
13
- work step. Use `./forge fractal doctor --spec SPEC` for runtime and advertised capability
14
- checks; authentication and live provider availability still require an explicitly requested
15
- provider test. See [Fractal execution](fractal.md).
16
-
17
10
  ## Contents
18
11
 
19
12
  - [At a glance](#at-a-glance)
@@ -47,7 +40,9 @@ disables), else the optional `timeout` column of the model's registry row, else
47
40
  `timeout=` and `timeout_source=`). A killed dispatch exits `7`, unless claude or openclaude had
48
41
  already given its final result and only an open background task kept it up: that result stands,
49
42
  whether the watchdog or `FORGE_RESULT_GRACE` (default 1800 s of silence after it; `0` = off) ended
50
- it, and `<role>.settled` records which (see [commands](../docs/commands.md)).
43
+ it, and `<role>.settled` records which (see [commands](../docs/commands.md)). A live-steered
44
+ implementer (#252) keeps its input open, so with no background task open it is ended after
45
+ `FORGE_LIVE_GRACE` (default 10 s), recorded as `ended_by=live`.
51
46
 
52
47
  **Infrastructure failures exit `8`.** After the backend exits, `forge-runtime.py classify` reads
53
48
  the dispatch log (never `<role>.last`, which is only created afterwards): claude/openclaude/grok
@@ -67,7 +62,7 @@ Implementation notes worth keeping, because they were arrived at the hard way: t
67
62
  started with `exec` inside its subshell, so the pid forge holds is the backend itself rather than
68
63
  a wrapper it would be useless to kill. macOS has no `setsid` binary, so the harness is launched
69
64
  through `forge-guard.py session` (python's `os.setsid()` then `exec`, same pid, pgid == pid)
70
- unless `FORGE_ORPHAN_GUARD=off` or the run is Fractal. That gives a process group to signal as a
65
+ unless `FORGE_ORPHAN_GUARD=off`. That gives a process group to signal as a
71
66
  unit: the watchdog (TERM, then KILL for a CLI that traps TERM) and the exit trap signal the whole
72
67
  group in addition to `pkill -P`, and after a normal exit `forge-guard.py reap` lists and stops
73
68
  anything still alive in it (`<role>.orphans`). Tools can leave the group (codex runs commands in
@@ -265,7 +260,7 @@ yolo. This is the one harness where the non-yolo dwarf genuinely cannot verify i
265
260
  | `gemini-3.7-flash`, `-3.6-flash`, `-3.5-flash` | `low`, `medium`, `high` |
266
261
  | `gemini-3.1-pro` | `low`, `high` — **no medium** |
267
262
  | `gpt-oss-120b` | `medium` only |
268
- | `claude-sonnet-4-6`, `claude-opus-4-6-thinking` | none; passing `--effort` errors |
263
+ | `claude-sonnet-4-6`, `claude-opus-4-6-thinking` (aliases `sonnet-4.6`, `opus-4.6`) | none; passing `--effort` errors |
269
264
 
270
265
  Two traps here. `agy models` lists effort-suffixed ids (`gemini-3.7-flash-low`), but a
271
266
  suffixed id **conflicts** with `--effort`: *"--model gemini-3.7-flash-low conflicts with
@@ -303,8 +298,8 @@ grok --model <model> --prompt-file <prompt> --output-format streaming-messages-j
303
298
 
304
299
  The xAI Grok Build CLI, signed in with `grok login` (or `XAI_API_KEY`); `grok models` lists
305
300
  what the account can use and each model's efforts live in `~/.grok/models_cache.json`. The
306
- `grok` alias runs `grok-4.7` here and keeps its opencode route (`grok:high:opencode`, 4.6 via
307
- GitHub Copilot) as a second row.
301
+ `grok` alias runs `grok-4.7` here. Grok 4.6 through GitHub Copilot on opencode is a different
302
+ model, so it has its own alias, `grok-4.6` (an alias is one model on every harness).
308
303
 
309
304
  - **A headless run cannot ask, so it refuses and exits 0.** In the default mode an edit that
310
305
  needs approval is skipped with `permission required: Edit calc.py was not run` on stderr:
@@ -47,12 +47,22 @@ committed by the user — forge does not commit on anyone's behalf.
47
47
  | Intent | Action |
48
48
  |---|---|
49
49
  | share memory with the team | commit `.forge/` |
50
- | keep it to this machine | `echo '.forge/' >> .gitignore` |
51
- | no memory at all | `--no-memory` or `FORGE_MEMORY=off` |
50
+ | keep it to this machine | `echo '.forge/' >> .gitignore`, or `forge setup set memory local` (lists it in `.git/info/exclude`) |
51
+ | no memory at all | `--no-memory` or `FORGE_MEMORY=off`; for every run in one clone, `forge setup set memory off` (`git config forge.memory off`) |
52
52
 
53
53
  Gitignoring does **not** disable anything: an ignored `.forge/` is still written and still
54
54
  injected into every prompt. Only the third row turns the feature off.
55
55
 
56
+ **Linked worktrees (#159).** A run whose `--repo` is a linked worktree (`git worktree add`)
57
+ whose `.forge/memory.md` and `.forge/ledger.tsv` are not tracked reads and writes the **main
58
+ checkout's** `.forge/`: `git worktree remove` deletes ignored files without a word, so learnings
59
+ kept in the worktree would be lost with it. Every reader agrees (`inject`, `show`, `learnings`,
60
+ `forget`, `add`, `edit`, the decision-model gates, the run dataset); `forge memory where <repo>`
61
+ prints the folder. A tracked `.forge/`, a bare repository's worktree, or
62
+ `FORGE_MEMORY_PER_CHECKOUT=1` keeps memory in the checkout itself. A linked worktree that already
63
+ holds a ledger of its own (from before) has its rows appended to the main checkout's ledger the
64
+ first time forge touches its memory, and its two files are renamed `*.merged`.
65
+
56
66
  **The two files must share a fate.** Because `memory.md` is rebuilt from `ledger.tsv` on
57
67
  every write, committing the memory while ignoring the ledger destroys the shared facts the
58
68
  first time anyone runs forge on a fresh clone — the rebuild regenerates `memory.md` from that
@@ -212,6 +222,7 @@ forge-memory.sh note <planner|dwarf|qa> # the instruction to append
212
222
  forge-memory.sh record <repo> --last <file> --role <r> [--run-id X] [--task T]
213
223
  [--model M] [--verdict V] [--duration S]
214
224
  forge-memory.sh show <repo>
225
+ forge-memory.sh where <repo> # the checkout whose .forge/ holds the memory
215
226
  forge-memory.sh prune <repo> # re-apply staleness and cap now
216
227
  forge-memory.sh spend <repo> [--run <run-id>] # time and dispatch counts
217
228
  forge-memory.sh add <repo> --category <verify|trap|finding> --text TEXT [--path P]...
@@ -1,16 +1,5 @@
1
1
  ## Planning
2
2
 
3
- Fractal selection applies to the later implementation stage. It does not turn a planner
4
- dispatch or `forge-parallel.sh plan` into nested execution, install a runtime during
5
- planning, or bypass the task/model approval table. Pass `--fractal` or `--no-fractal` to
6
- the eventual solo runner or decomposed `run`. See [Fractal](fractal.md).
7
-
8
- For automatic recursive decisions during execution, use `--fractal-auto-decompose`.
9
- Its `--fractal-planner` selects the per-node decision model, independently of the
10
- top-level `--planner` that designs the whole run. Without an override it reuses that
11
- planner when configured, then each task's initial root model. Child planning must
12
- preserve the approved interfaces and ownership established here.
13
-
14
3
  By default **you** plan: before dispatching, decide the approach and put it in the prompt,
15
4
  so the dwarf builds the agreed thing rather than inventing a shape nobody has seen. In a
16
5
  decomposed run that matters more, because the capsule prevents two dwarves from touching
@@ -53,14 +42,17 @@ moment the plan is free; after it, changing the plan costs a whole run.
53
42
 
54
43
  `scripts/forge-planner.py` is the contract between a planner and forge, so no session has to
55
44
  turn a free-form reply into `tasks.tsv` by hand. A later `forge-parallel.sh auto` calls
56
- `prompt` and `parse`; you can call them yourself. Standard library only, and every
57
- subcommand refuses (exit 2) a plan dir that already has `tasks.tsv`.
45
+ `prompt` and `parse`; you can call them yourself. Standard library only. `prompt`, `parse`,
46
+ `gate` and `one-task` refuse (exit 2) a plan dir that already has `tasks.tsv`; `node-prompt` and
47
+ `node-parse` are about one task of a plan that exists.
58
48
 
59
49
  ```bash
60
50
  python3 <skill_dir>/scripts/forge-planner.py prompt --plan "$PLAN" --goal-file goal.md [--level low|medium|high]
61
51
  python3 <skill_dir>/scripts/forge-planner.py parse --plan "$PLAN" --reply reply.txt
62
52
  python3 <skill_dir>/scripts/forge-planner.py gate --plan "$PLAN" --goal-file goal.md
63
53
  python3 <skill_dir>/scripts/forge-planner.py one-task --plan "$PLAN" --goal-file goal.md [--difficulty medium]
54
+ python3 <skill_dir>/scripts/forge-planner.py node-prompt --plan "$PLAN" --task ID [--start keep|fresh]
55
+ python3 <skill_dir>/scripts/forge-planner.py node-parse --plan "$PLAN" --task ID --reply reply.txt [--out FILE]
64
56
  ```
65
57
 
66
58
  **`prompt`** writes `$PLAN/planner.prompt` and prints its path: the planner's role (read-only),
@@ -73,7 +65,7 @@ criteria` and never asks for the whole suite. A planner you dispatch by hand (ab
73
65
  given this same prompt file as `--prompt-file`.
74
66
 
75
67
  **The reply** holds exactly one fenced block opened by ```` ```forge-plan ```` whose body is JSON
76
- with the key `tasks` and, optionally, `groups`:
68
+ with the key `tasks` and, optionally, `groups` and `later`:
77
69
 
78
70
  ```
79
71
  {"tasks": [{"id": "parse-config", "deps": [], "difficulty": "medium", "risk": "low",
@@ -90,15 +82,35 @@ one group per wave of the plan's dependency order. Each group has a short title
90
82
  sentence that says what is true once its tasks are done. A group may hold one task, and a task
91
83
  may be left out of every group. Omit the key to return no groups.
92
84
 
85
+ **Subtasks and later stages (optional).** A task that is itself several pieces that can be
86
+ built and reviewed apart may carry `subtasks`: a list of 2 to 20 objects with the same keys as a
87
+ task. Each subtask's `files` are inside its parent's `files`, its `deps` name sibling subtasks
88
+ only, and a subtask may carry `subtasks` of its own (at most 6 levels in a reply; the run's
89
+ limits decide what is made). A task may also carry `reason`, one line of at most 500 characters:
90
+ why it is split this way, or why it is kept whole. A split is never required. When the request
91
+ is too large for one plan, the reply puts the first coherent stage in `tasks` and lists the
92
+ stages that follow in `later`: 1 to 10 objects with exactly `title` (one line) and `goal` (at
93
+ most 4000 characters).
94
+
95
+ ```
96
+ {"tasks": [{"id": "config", "deps": [], "difficulty": "high", "files": ["src/config/", "docs/config.md"],
97
+ "title": "The limits section", "approach": "…", "prompt": "… ## Acceptance criteria …",
98
+ "reason": "the parser and its documentation can be reviewed apart",
99
+ "subtasks": [{"id": "parser", "deps": [], "difficulty": "medium", "files": ["src/config/"], …},
100
+ {"id": "docs", "deps": ["parser"], "difficulty": "low", "files": ["docs/config.md"], …}]}],
101
+ "later": [{"title": "Serve the limits", "goal": "The API returns the limits the config holds. …"}]}
102
+ ```
103
+
93
104
  **`parse`** is strict and never guesses or repairs. It refuses a reply unless: there is exactly
94
105
  one `forge-plan` block whose body is an object with the key `tasks` and no keys other than the
95
- optional `groups`; `tasks` is 1 to 20 objects with exactly the keys `id, deps, difficulty, files,
106
+ optional `groups` and `later`; `tasks` is 1 to 20 objects with exactly the keys `id, deps, difficulty, files,
96
107
  title, approach, prompt`; each `id` matches `^[a-z0-9][a-z0-9-]{0,39}$` and is unique; `deps` are
97
108
  known ids with no cycle; `difficulty` is `low`, `medium` or `high`; `files` is a non-empty list of
98
109
  repo-relative paths (no absolute path, no `..`, no tab, comma or newline); `title` is one
99
110
  non-empty line without a tab; `approach` is a string (it may be empty); `prompt` is non-empty and
100
- has a `## Acceptance criteria` heading. `risk` (#122) is the one optional task key and never
101
- refuses a reply: `low`, `medium` or `high` is written to `tasks/<id>/risk`, anything else (or no
111
+ has a `## Acceptance criteria` heading. A task has three optional keys: `subtasks` and `reason`
112
+ (above; a `subtasks` list that breaks a rule, or a `reason` that is not one line, refuses the
113
+ reply) and `risk` (#122), which never refuses a reply: `low`, `medium` or `high` is written to `tasks/<id>/risk`, anything else (or no
102
114
  key) writes nothing.
103
115
 
104
116
  `groups`, when present, is a list of objects with exactly the keys `id`, `title`, `goal` and
@@ -112,7 +124,10 @@ the reply. The planner never sets
112
124
 
113
125
  On success it writes `tasks.tsv` (dwarf and qa `-`), `tasks/<id>/prompt.md` (the task's prompt,
114
126
  then `## The whole request` and `$PLAN/request.md` verbatim, so no requirement is lost) and, for
115
- a non-empty approach, `tasks/<id>/approach.md`. When the reply includes `groups`, it also writes
127
+ a non-empty approach, `tasks/<id>/approach.md`. A task with `subtasks` also gets
128
+ `tasks/<id>/split.proposal.json`, which `forge-parallel.sh plan` turns into its sub-plan within
129
+ the run's limits; a task with only a `reason` gets `tasks/<id>/split.reason`, recorded with the
130
+ decision to keep it whole. `later` is written to `later.json`. When the reply includes `groups`, it also writes
116
131
  `groups.tsv` (`id`, `review`, `qa`, `members`, `title`, `goal`; a header alone when the list is
117
132
  empty) in that same pass. A reply with no `groups` key writes no `groups.tsv`, and the other
118
133
  files are unchanged. `$PLAN/request.md` must hold the user's request (exit 2 when missing). On a
@@ -137,3 +152,18 @@ the planner for small goals.
137
152
 
138
153
  **`one-task`** writes a one-row plan with no planner: id `task`, files `.`, the request as the
139
154
  prompt followed by one acceptance criterion, and the request's first line as the title.
155
+
156
+ **`node-prompt`** asks about one task of a plan that already exists: split it into subtasks
157
+ inside its own files, or keep it whole and say why. It writes `tasks/<id>/split.prompt` and
158
+ prints its path: the task's prompt verbatim, why it stopped (`decision.md`) and the tail of its
159
+ last review when there are any, the rules, the run's limit on subtasks per split, and the reply
160
+ format. `--start fresh` says the work so far is set aside; the default `keep` says the subtasks
161
+ build on it. `forge-parallel.sh retry <plan> <id> --decide split --planner SPEC` and
162
+ `run --auto-split` call it and dispatch the planner (read-only, in the task's worktree).
163
+
164
+ **`node-parse`** is the strict parse of that reply, or of subtasks a person wrote: the
165
+ `forge-plan` block when the text has one, else the text as the bare JSON object. The object has
166
+ `tasks` (1 to 20; one task means keep it whole) and optionally `reason`. It writes
167
+ `tasks/<id>/split.proposal.json` (or `--out FILE`). On a refusal it writes
168
+ `tasks/<id>/split.refused`, prints `subtasks refused: <reason>` and exits 4. `retry --decide
169
+ split --subtasks FILE` calls it on FILE.
@@ -1,7 +1,9 @@
1
1
  ## Optional Ripwire context
2
2
 
3
- Forge automatically uses Ripwire **0.4.0** when found on `PATH`, then in
4
- `~/.local/bin`. Other versions are preserved but skipped until compatibility is verified.
3
+ Forge automatically uses Ripwire **0.6 or later** when found on `PATH`, then in
4
+ `~/.local/bin`. An older binary is skipped with `incompatible binary ... (forge needs Ripwire
5
+ 0.6 or later: forge ripwire update)`. Every flag forge passes (`--no-cache`,
6
+ `--token-budget=`, `--exclude=`, `--for=`, `--pr-context=`) exists since 0.6.0.
5
7
  All six harnesses use the same preparation step. No provider calls are needed for it.
6
8
 
7
9
  Use `--no-ripwire` on dispatch, solo, or parallel `plan`, `run`, and `retry`, or set
@@ -9,29 +11,51 @@ Use `--no-ripwire` on dispatch, solo, or parallel `plan`, `run`, and `retry`, or
9
11
  probing or offering installation. Parallel plans remember opt-out in `no_ripwire`
10
12
  for later resumes and retries; remove that marker to enable it again.
11
13
 
12
- Forge setup and solo/parallel run entrypoints offer installation once before agents
13
- start. The helper shows v0.4.0 and `~/.local/bin/ripwire`, then asks
14
+ `forge setup` asks once (offer it at the first run, install now, or never offer it), and solo/parallel
15
+ run entrypoints offer installation before agents start unless setup answered `never`. The helper shows the release it would install and `~/.local/bin/ripwire`, then asks
14
16
  “Ripwire is missing. Install it now? [Y/n]”. Enter accepts; no or EOF continues.
15
17
  It reads the controlling terminal separately from task stdin. Without a terminal it
16
18
  prints the helper command and continues. Dispatch itself never prompts, so background
17
19
  workers cannot wait for installation input.
18
20
 
19
21
  ```bash
20
- bash <skill_dir>/scripts/forge-install-ripwire.sh # offer installation
21
- bash <skill_dir>/scripts/forge-install-ripwire.sh --dry-run # preview, no downloads
22
- bash <skill_dir>/scripts/forge-install-ripwire.sh --yes # explicit unattended consent
22
+ forge ripwire install # offer installation of the latest release
23
+ forge ripwire install --version v0.6.10 # a specific release instead
24
+ forge ripwire update # replace the Ripwire forge installed with the latest release
25
+ forge ripwire status [--check] # installed vs latest (--check asks GitHub now)
26
+ bash <skill_dir>/scripts/forge-install-ripwire.sh --dry-run # preview, no downloads
27
+ bash <skill_dir>/scripts/forge-install-ripwire.sh --yes # explicit unattended consent
23
28
  ```
24
29
 
25
- The helper pins the [upstream v0.4.0 installer](https://github.com/redhat-et/ripwire/blob/v0.4.0/scripts/install.sh)
26
- and its SHA-256, retains upstream archive checksum and binary version checks, and sets
27
- `RIPWIRE_NO_ACTIVATE=1`. Existing installations are preserved. Failed installation
28
- reports its cause; Forge runners continue without requiring Ripwire.
30
+ The helper resolves the latest release through the GitHub releases API
31
+ (`FORGE_RIPWIRE_VERSION` or `--version TAG` pins one; Intel Macs stop at v0.6.1, the last
32
+ release upstream built for them), downloads the upstream `scripts/install.sh` **at that tag**
33
+ over HTTPS and runs it with `RIPWIRE_NO_ACTIVATE=1`. What is verified: the upstream installer
34
+ refuses a release without a checksum, checks the archive's SHA-256, and runs the binary's
35
+ `--version` before and after installing it; forge then checks the result is 0.6 or later. What
36
+ is not: the installer script's own bytes. A moving version cannot be pinned by hash, so forge
37
+ only checks that the download is upstream's release installer before running it.
38
+
39
+ Without `update`, an existing installation is always preserved. `update` replaces only
40
+ `~/.local/bin/ripwire`, the binary forge installs, and only when that is the Ripwire on
41
+ `PATH`. A Ripwire installed anywhere else (Homebrew, a source build, a symlink) is reported
42
+ and never replaced. Failed installation reports its cause; Forge runners continue without
43
+ requiring Ripwire.
44
+
45
+ **Update notice.** When a solo run, `plan` or `run` ends, forge checks at most once a day
46
+ whether a newer Ripwire release exists (cached in
47
+ `${XDG_STATE_HOME:-~/.local/state}/forge/ripwire-check.json`; offline keeps the last known
48
+ release). When one does and forge installed yours, a terminal gets “Ripwire X is available
49
+ (you have Y). Update now? [Y/n]”, and a yes runs the update. Without a terminal it prints one
50
+ line with `forge ripwire update` instead. It shows at most once a day, never in CI, never with
51
+ `FORGE_RIPWIRE=off`, `FORGE_UPDATE_CHECK=off` or `forge setup set update_check off`, a network failure is silent, and it never
52
+ changes the run's exit code. `forge update` stays quiet about Ripwire.
29
53
 
30
54
  Planner/dwarf use `--for` in their own repository or worktree. Runners pass the
31
55
  requirements via `--ripwire-query-file`; direct dispatch defaults to the original
32
56
  prompt. Only this search excerpt is limited to 2,048 characters. QA uses
33
57
  `--pr-context=<review-base>` against the disposable review snapshot; direct QA without
34
- a baseline uses task context. See the [pinned command reference](https://github.com/redhat-et/ripwire/blob/v0.4.0/docs/COMMANDS.md).
58
+ a baseline uses task context. See the [command reference](https://github.com/redhat-et/ripwire/blob/main/docs/COMMANDS.md).
35
59
 
36
60
  The full prompt remains intact, followed by one marked advisory section. Requirements,
37
61
  ownership, retry findings and the actual diff remain authoritative; suggested tests
@@ -43,5 +67,6 @@ or timed-out results are skipped with a reason; timeout cleanup kills the proces
43
67
 
44
68
  Each `attempts/<role>-*/ripwire.json` records the command, binary version, repository,
45
69
  baseline, duration, status and delivered section (or skip reason). Dry runs and preflight
46
- skip preparation. Doctor reports availability without installation. Native Codex review
70
+ skip preparation. Doctor reports the installed version, whether forge can use it and the
71
+ newest release last seen, without installing or asking GitHub. Native Codex review
47
72
  skips context because its dispatch cannot accept an additional prompt.
@@ -20,8 +20,7 @@ Each merge still checks dependency status, reviewed commit, source fingerprint a
20
20
  integration revision. A plan lock spans run/retry/integrate operations. Saved passing work
21
21
  can resume without a new dispatch; ordinary failed and interrupted work requires explicit
22
22
  retry (or an opt-in `run --retry-failed N`), while tasks paused on an infrastructure failure
23
- resume on the next `run` and an unjudged review re-runs QA only. Fractal has the additional
24
- recovery checkpoints described below.
23
+ resume on the next `run` and an unjudged review re-runs QA only.
25
24
 
26
25
  Review repositories import self-contained tree object packs and create two commits before
27
26
  checking out the final tree. No alternates or source repository access is required afterward.
@@ -60,34 +59,24 @@ The scheduler still acts on the classes it was written for: `infra_info` folds `
60
59
  `rate_limit`, `usage_limit` and `budget` into `quota`, and `provider_down` into `network`, until
61
60
  it reads the table.
62
61
 
63
- ## Optional Fractal adapter decision
64
-
65
- Fractal adds a Python adapter around the existing shell pipeline instead of replacing
66
- Forge's dispatcher, model registry, QA or integration rules. This keeps provider effort,
67
- permission and attempt-record behavior in one place. The isolated runtime pins Fractal
68
- 1.2.0 and registers `ForgeAgent` through upstream `agents.py`; no Fractal fork is required.
69
- Ordinary execution and inspection do not require that runtime to be installed.
70
-
71
- `forge-fractal-options.sh` records the per-run choice and selects the bridge only when
72
- enabled. `forge_fractal/selection.py` freezes routing and limits; `execution.py` manages
73
- bounded children, shared model slots, process ownership and candidate import checks;
74
- `pipeline.py` preserves Forge checkpoints for resume and explicit retry. Work steps use
75
- fresh dispatcher invocations rather than provider conversation continuation.
76
-
77
- Each task separates a Fractal control repository from product snapshot repositories.
78
- That separation prevents wiki/configuration/ledger initialization from entering the product
79
- diff. Solo imports check source fingerprints and preserve the user's index. Decomposed
80
- candidates return to the task's existing pinned review and integration boundary. Explicit
81
- retry retains prior work and the original Forge QA baseline while recording a new attempt.
82
-
83
- Runtime and durable run records live under
84
- `${XDG_STATE_HOME:-$HOME/.local/state}/forge/fractal/`, outside the product repository.
85
- A single task coordinator and a run-wide invocation limiter bound nested work and QA;
86
- setup and shutdown count toward the task deadline, explicit pauses do not. Fractal
87
- execution status, Forge acceptance and repository verification remain separate records.
88
-
89
- `inspection.py` reads curated managed artifacts and the pinned SQLite ledger without
90
- constructing lifecycle-reconciling Fractal nodes or marking messages read. The browser
91
- server is read-only and localhost-bound; portable HTML embeds captured data and assets.
92
- Unsupported tokens/cost/tool details stay unknown, and the bridge rejects dollar caps.
93
- See [operating instructions](fractal.md) and [verification evidence](../tests/fractal-verification.md).
62
+ ## Recursive decomposition is native
63
+
64
+ Until 0.22 a task could run under Fractal, an external runtime behind a Python adapter. forge
65
+ 0.23 removed it (#154) and splits tasks itself (#153), with the parts it already had: a split
66
+ task's subtasks are an ordinary plan in `<plan>/tasks/<id>/sub`, run by the same
67
+ `forge-parallel.sh run` and the same scheduler, so retries, escalation, reviews, controls and the
68
+ dataset apply to a subtask as to any task. `scripts/forge_decompose.py` holds what is new: the
69
+ node record (`decomposition.json`), the three limits and their freeze, the validation of a split
70
+ (ownership inside the parent's files, sibling-only deps, no cycle) and the tree readers use.
71
+ `scripts/forge-lib-decompose.sh` wires it into `plan`, `run`, `retry` and `next`.
72
+
73
+ One bound covers the tree. The root scheduler exports its `--max-parallel` and a slot directory
74
+ (`tree.slots/` in the root plan); every scheduler of the tree takes a slot for each task it
75
+ starts, and a split task gives its slot back while its subtasks run and takes one again for its
76
+ own review. Nesting cannot multiply the limit.
77
+
78
+ Old records stay readable. `scripts/forge_legacy.py` recognises a plan or solo directory made
79
+ with Fractal (`fractal-selection.json`), which `run`, `retry`, `split`, `next` and
80
+ `forge handoff resume` refuse, and reads the tier pools older plans kept in
81
+ `fractal-routing.json` (new plans write `dwarf-routing.json`). `forge du` reports what the old
82
+ runtime left under `${XDG_STATE_HOME:-$HOME/.local/state}/forge/fractal/`.
@@ -0,0 +1,90 @@
1
+ # forge setup
2
+
3
+ `forge setup` asks, once, what a first run would otherwise ask piece by piece, and saves the
4
+ answers as defaults. `forge install` runs it at the end on a terminal (never again once it is done,
5
+ and never under `forge update`). Running it again offers the current answers as the defaults.
6
+
7
+ ```
8
+ forge setup the guided pass, on a terminal
9
+ forge setup --defaults the recommended answers, no prompts
10
+ forge setup --from FILE the answers of `forge setup export` (FILE may be -), no prompts
11
+ forge setup show [--json] every answer, where it is stored, and the command that changes it
12
+ forge setup export the answers as JSON, for another machine
13
+ forge setup set KEY VALUE change one answer
14
+ ```
15
+
16
+ Without a terminal it never prompts: plain `forge setup` exits 2 and names `--defaults` and `--from`.
17
+ Setup never calls a model. It sends nothing anywhere unless an answer says it will: installing
18
+ Ripwire downloads it, and setting up a decision model asks for a provider.
19
+
20
+ ## For the orchestrator
21
+
22
+ Read `forge setup show --json` before a new run. When `done` is false, offer `forge setup` once,
23
+ before the first run, instead of asking its questions one by one; the user may decline. When `done`
24
+ is true, each answer below is the user's word for what it covers, so do not ask it again:
25
+
26
+ | answer | what you do |
27
+ |---|---|
28
+ | `models` | nothing: setup saved it as the default profile, which the runner applies (a default profile is the user's model choice) |
29
+ | `ui` | `ask`: ask the forge-ui question as usual; `always`: pass `--ui` without asking; `never`: pass `--no-ui` |
30
+ | `file_issues` | the `--file-issues` choice for leftover findings (`ask`, `auto` or `off`) |
31
+ | `sweep` | `P0`..`P3`: pass `run --sweep Pn`; `off`: do not add it |
32
+ | `reviewer_session` | `on`: pass `plan --reviewer-session`; a share such as `0.25`: `plan --reviewer-session-rate 0.25`; `off`: do not add it |
33
+
34
+ A flag the user gives for a run wins over a saved answer. Resume and retry keep the run's recorded
35
+ choices, as before.
36
+
37
+ ## The answers and where they live
38
+
39
+ Every answer is stored where forge already reads it, so `forge config show` and the other commands
40
+ see the same values. Nothing setup saves is hidden: `forge setup show` lists it all.
41
+
42
+ | answer | values | stored in |
43
+ |---|---|---|
44
+ | `models` | a profile name (`balanced` first, when it runs here), `custom`, or `ask` (no default) | `decide.json` `default_profile` |
45
+ | `routing` | with `custom`: the implementer and reviewer of each tier, and a planner | the `setup` profile |
46
+ | `qa_threshold` | `P0`..`P3`, `none` (default `P2`) | the default profile's `policy` |
47
+ | `shadow_qa`, `shadow_rate` | a reviewer spec or `off`; the share of tasks it reviews | the default profile's `policy` |
48
+ | `brief`, `brief_model` | `off`, `advisory`, `gated`, `strict`; the model it needs | `decide.json` `features` |
49
+ | `summaries`, `summaries_model` | `off`, `on`; the model it needs | `decide.json` `features` |
50
+ | `retro` | `off`, `on` | `decide.json` `features` |
51
+ | `storage_compact`, `storage_warn_gb` | `auto`, `off`; gigabytes or `off` | `decide.json` `features` |
52
+ | `memory` | `commit`, `local`, `off`, per repository | that clone's `git config forge.memory` |
53
+ | `ui`, `ui_controls` | `ask`, `always`, `never`; `on` or `off` (read-only) | `setup.json` |
54
+ | `file_issues`, `sweep`, `reviewer_session` | as in the table above | `setup.json` |
55
+ | `update_check` | `on`, `off` | `setup.json` |
56
+ | `ripwire` | `ask` (offered at the first run), `install`, `never` | `setup.json` |
57
+ | `decide` | `off`, `on` (set one up now) | `setup.json`; the gates themselves with `forge decide` |
58
+
59
+ `setup.json` is `${XDG_CONFIG_HOME:-~/.config}/forge/setup.json`, next to `decide.json`.
60
+
61
+ When the chosen profile and the review answers say the same thing, setup selects the profile itself
62
+ (`forge config profile use balanced`). When they differ (a stricter threshold, a shadow reviewer, a
63
+ custom pick), it writes a user profile named `setup` with the base profile's routing and your policy,
64
+ and selects that. `ask` with no policy change clears the default, so each run asks for its models.
65
+
66
+ What the other answers change:
67
+
68
+ - `memory local` lists `.forge/` in the clone's `.git/info/exclude` (nothing to commit); `off` makes
69
+ every run in that clone behave as `--no-memory`; `commit` leaves `.forge/` for you to commit
70
+ ([memory](memory.md#committing-ignoring-disabling)). Setup asks it only inside a repository.
71
+ - `ui_controls off` starts forge-ui read-only, as `FORGE_UI_READONLY=1` does.
72
+ - `update_check off` stops the daily forge and Ripwire update checks, as `FORGE_UPDATE_CHECK=off` does.
73
+ - `ripwire never` silences the offer a run makes when Ripwire is missing; `forge ripwire install`
74
+ still installs it.
75
+
76
+ ## Settings a plan copies
77
+
78
+ Brief, summaries and retro are copied into a plan when it is planned, so changing them reaches
79
+ later plans only. Setup and `forge config set` say so when you change one. For a plan that is
80
+ already running, `forge control set <plan> summaries on|off` and
81
+ `forge control set <plan> summaries-model <spec>` change it now (and
82
+ `forge control set <plan> brief-model <spec>` the brief model). `summaries on` is refused while the
83
+ plan has no summaries model.
84
+
85
+ ## Another machine
86
+
87
+ `forge setup export > forge-setup.json` writes every answer except the per-repository memory choice;
88
+ `forge setup --from forge-setup.json` applies them without a prompt. A file may hold only some
89
+ answers: the others keep their current values. Each model is checked against the registry; whether
90
+ its agent CLI is installed on that machine is what `forge-dispatch.sh doctor` shows.
@@ -8,7 +8,6 @@ efforts, harnesses and any explicit bypass flags before dispatch.
8
8
  bash <skill_dir>/scripts/forge-solo.sh "$FORGE_RUN" --repo "$REPO" \
9
9
  --dwarf <spec> [--qa <spec>] [--approach <file>] \
10
10
  [--yolo-dwarf] [--yolo-qa] [--timeout <seconds>] [--no-memory] [--dry-run] \
11
- [--fractal | --no-fractal] [--fractal-concurrency <n>] [--fractal-deadline <seconds>] \
12
11
  [--ui | --no-ui]
13
12
  ```
14
13
 
@@ -38,8 +37,7 @@ This detects mutations; it is not an operating-system security sandbox for unres
38
37
 
39
38
  Read `dwarf.last`, `qa.last`, `changes.diff` and `verdict`. Preserve CONFIRMED/PLAUSIBLE labels
40
39
  when relaying findings. Report scope drift and unsupported implementation claims. Do not
41
- automatically retry. In ordinary execution the run is one implementation followed by
42
- one review; Fractal may use multiple bounded work steps before that independent review.
40
+ automatically retry. A solo run is one implementation followed by one review.
43
41
 
44
42
  Statuses: PASS, FAIL, UNKNOWN, NOCHANGES, INVALIDATED. Exit codes: 0 completed review
45
43
  (inspect verdict), 2 usage, 3 precondition, 4 dispatch failure, 5 no changes or invalidated
@@ -47,8 +45,7 @@ review, 7 timeout, 8 infrastructure failure (quota, auth, rate limit, network, e
47
45
  nothing was judged — fix the cause and run again; a dwarf that returns nothing *and* changes
48
46
  nothing is reported as 8, not 5). The default dispatch timeout is 2700 seconds, scaled up for
49
47
  `xhigh`/`max` effort (so the default planner effort gets 3600; QA defaults to `high`), overridable per model in the
50
- registry; 0 disables that dispatch timeout, but an enabled Fractal task still has its own attempt
51
- deadline. See [dispatch timeouts](../docs/commands.md#scriptsforge-dispatchsh).
48
+ registry; 0 disables that dispatch timeout. See [dispatch timeouts](../docs/commands.md#scriptsforge-dispatchsh).
52
49
 
53
50
  The dwarf prompt carries implementer rules (no commits, no background processes, finish every
54
51
  measurement before the last message). forge records what it observes: if the dwarf committed
@@ -65,7 +62,7 @@ never blocks: a FAIL made only of those is accepted, and either way they are rec
65
62
 
66
63
  `--qa-threshold P0|P1|P2|P3|none` sets this run's threshold and is written to `<run>/qa_threshold`
67
64
  only when given. The gate, the same as in a decomposed run, writes `qa.gate` and `known_issues.md`
68
- in the run directory. See [the verdict rule](decompose.md#qa-verdicts).
65
+ in the run directory. See [the verdict rule](decompose-review.md#qa-verdicts).
69
66
 
70
67
  `--native-review` is an explicit Codex-only alternative: native review cannot accept the
71
68
  custom requirements prompt or verdict instruction. Its result is informational and UNKNOWN;
@@ -74,7 +71,7 @@ baseline via `--review-base`.
74
71
 
75
72
  `--fail-first` runs the change's new tests against the code without its non-test changes
76
73
  first and gives the reviewer the result (`failfirst.json`); see
77
- [fail-first evidence](decompose.md#fail-first-evidence-opt-in).
74
+ [fail-first evidence](decompose-review.md#fail-first-evidence-opt-in).
78
75
 
79
76
  Changes remain in the source working tree. Forge does not commit or integrate solo work.
80
77
 
@@ -84,45 +81,19 @@ reports immutable attempt metrics and native usage independently of project memo
84
81
  context is assembled from original requirements and approach; QA does not embed dwarf
85
82
  execution instructions. Review snapshots use self-contained object packs and one checkout, with
86
83
  the repo's dependency directories (`node_modules`, `.venv`, `vendor`, Mix's `deps` and the others
87
- listed under [worktree setup](decompose.md#worktree-setup)) linked in, at the root and in workspace
84
+ listed under [worktree setup](decompose-integration.md#worktree-setup)) linked in, at the root and in workspace
88
85
  packages, when it has them; the prompt says what is there, and the reviewer reports `FORGE_TESTS` as in
89
- [worktree setup](decompose.md#worktree-setup). The snapshot is removed when the review ends
86
+ [worktree setup](decompose-integration.md#worktree-setup). The snapshot is removed when the review ends
90
87
  (`FORGE_KEEP_SNAPSHOTS=1` keeps it).
91
88
 
92
89
  Optional [Ripwire context](ripwire.md) is enabled by default. Use `--no-ripwire`
93
90
  or `FORGE_RIPWIRE=off` to disable preparation and installation offers.
94
91
 
95
- ## Fractal execution and recovery
92
+ ## Fractal, removed in 0.23
96
93
 
97
- [Fractal](fractal.md) is separately opt-in. It starts from the complete snapshot
98
- above, runs in a managed isolated repository, and imports the candidate only after
99
- checking source drift. Resume preserves that snapshot. `--retry` starts an explicit
100
- new Fractal attempt using preserved work and the original QA baseline. A saved PASS
101
- checkpoint is reused only while its source fingerprint remains unchanged.
102
-
103
- Ask `Use Fractal for this run? [y/N]` once in the conversational workflow and pass
104
- `--fractal` or `--no-fractal` explicitly to the runner. A direct interactive runner
105
- asks if neither flag is given; unattended execution defaults off. Installation is a
106
- separate choice. Do not ask again when resuming or retrying a recorded run.
107
-
108
- ```bash
109
- # First run, with optional child routing; the run directory already contains prompt.md.
110
- bash <skill_dir>/scripts/forge-solo.sh "$FORGE_RUN" --repo "$REPO" \
111
- --dwarf sol:high --qa opus --dwarf-low luna:medium --fractal
112
-
113
- # Discover the managed run ID, then inspect or resume from another terminal.
114
- <skill_dir>/forge fractal runs --repo "$REPO" --json
115
- <skill_dir>/forge fractal tree RUN_ID --json
116
- <skill_dir>/forge fractal resume RUN_ID
117
-
118
- # Start a new attempt only when explicitly requested, using the same frozen settings.
119
- bash <skill_dir>/scripts/forge-solo.sh "$FORGE_RUN" --repo "$REPO" \
120
- --dwarf sol:high --qa opus --dwarf-low luna:medium --fractal --retry
121
- ```
122
-
123
- The solo directory's `fractal-selection.json` also records the managed run ID.
124
- Per-node workspaces, preserved responses and raw attempts are under the managed run;
125
- the solo directory still supplies `changes.diff`, `qa.last` and `verdict` for delivery.
126
- Parent invocations yield while their children run. QA sees their combined task diff.
127
- Use [Fractal controls and reports](fractal.md#inspection-and-controls) to inspect partial
128
- work; a completed execution node does not imply a PASS verdict or repository verification.
94
+ A solo run has one implementer and one reviewer. `--fractal`, `--no-fractal`, every
95
+ `--fractal-…` flag and the `--dwarf-low|medium|high` pools that routed Fractal's child tasks exit
96
+ 2 with one line saying they were removed. A solo directory an earlier forge ran under Fractal
97
+ (`fractal-selection.json`) is refused, exit 3: it can be read, not run again. A change too large
98
+ for one implementer is a decomposed run, where a task can be
99
+ [split into subtasks](decompose.md#subtasks-a-task-split-at-any-level).