@giamme/forge 0.11.1 → 0.12.1
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.
- package/CHANGELOG.md +56 -0
- package/SKILL.md +7 -3
- package/VERSION +1 -1
- package/docs/artifacts.md +50 -11
- package/docs/commands.md +56 -8
- package/docs/decomposed-runs.md +43 -2
- package/docs/forge-ui.md +55 -8
- package/docs/reviews.md +64 -6
- package/package.json +1 -1
- package/references/dataset.md +4 -2
- package/references/decompose.md +191 -17
- package/references/harnesses.md +13 -1
- package/references/ui.md +25 -4
- package/scripts/forge-contract.py +37 -7
- package/scripts/forge-control.py +268 -25
- package/scripts/forge-dispatch.sh +90 -3
- package/scripts/forge-guard.py +156 -15
- package/scripts/forge-issues.py +47 -3
- package/scripts/forge-lib-plans.sh +9 -3
- package/scripts/forge-lib-review.sh +24 -5
- package/scripts/forge-lib-task.sh +53 -5
- package/scripts/forge-lib-verify.sh +137 -6
- package/scripts/forge-parallel-options.sh +85 -0
- package/scripts/forge-parallel.sh +262 -31
- package/scripts/forge-ripwire.py +1 -1
- package/scripts/forge-route.py +157 -5
- package/scripts/forge-runtime.py +49 -1
- package/scripts/forge-schedule.py +735 -53
- package/scripts/forge-solo.sh +3 -1
- package/scripts/forge-sweep.py +542 -0
- package/scripts/forge-verify.py +878 -0
- package/scripts/forge_dataset/forecast.py +33 -5
- package/scripts/forge_dataset/harvest.py +10 -4
- package/scripts/forge_verify_reports.py +225 -0
- package/ui/README.md +58 -12
- package/ui/docs/api.md +277 -28
- package/ui/forge_ui/checks.py +331 -0
- package/ui/forge_ui/control.py +12 -2
- package/ui/forge_ui/export.py +25 -8
- package/ui/forge_ui/reader.py +657 -24
- package/ui/forge_ui/server.py +29 -0
- package/ui/forge_ui/static/app.js +15 -7
- package/ui/forge_ui/static/checksview.js +449 -0
- package/ui/forge_ui/static/controls.js +217 -33
- package/ui/forge_ui/static/convo.js +11 -2
- package/ui/forge_ui/static/findingsview.js +6 -4
- package/ui/forge_ui/static/gantt.js +14 -9
- package/ui/forge_ui/static/index.html +2 -0
- package/ui/forge_ui/static/panel.js +44 -1
- package/ui/forge_ui/static/runmodel.js +109 -12
- package/ui/forge_ui/static/scene3d.js +9 -5
- package/ui/forge_ui/static/style.css +113 -0
- package/ui/forge_ui/static/verifyview.js +324 -0
- package/ui/forge_ui/transcripts.py +225 -54
package/ui/docs/api.md
CHANGED
|
@@ -13,6 +13,7 @@ forge_ui/diffs.py unified diffs: parsing, the ```diff fence of a review pr
|
|
|
13
13
|
forge_ui/models.py per-run model facts (attempts and reviews) for the leaderboard, cached per run
|
|
14
14
|
forge_ui/fractal.py Fractal child tasks under $XDG_STATE_HOME/forge/fractal, read through dir fds
|
|
15
15
|
forge_ui/transcripts.py an agent CLI's `<role>.log` read as one conversation, whichever harness wrote it
|
|
16
|
+
forge_ui/checks.py the checks an agent ran, its running call and the environment problems it met, from a transcript
|
|
16
17
|
forge_ui/server.py serves those dicts as JSON plus the static page, 127.0.0.1 only; authenticates writes
|
|
17
18
|
forge_ui/control.py the write routes: each one is a forge CLI call (see Controls)
|
|
18
19
|
forge_ui/static/ the page: index.html, app.js, style.css, graph.js and the scripts they load
|
|
@@ -43,7 +44,9 @@ written), and the reader must never raise because of one.
|
|
|
43
44
|
| `shadow_qa` | a comma list of specs |
|
|
44
45
|
| `timeout` | seconds |
|
|
45
46
|
| `verification.status` | `PASS`, `FAIL` or another word; `verification.command` the command; `verification.log` its output |
|
|
46
|
-
| `verification.runs.tsv` | `n<TAB>kind<TAB>exit<TAB>tree_changed<TAB>duration_s<TAB>logfile` per run of the command; `kind` is `initial`, `rerun` or `jev_retry`, `exit` may be empty, `tree_changed` is `0` or `1` |
|
|
47
|
+
| `verification.runs.tsv` | `n<TAB>kind<TAB>exit<TAB>tree_changed<TAB>duration_s<TAB>logfile` per run of the command; `kind` is `initial`, `rerun` or `jev_retry`, `exit` may be empty, `tree_changed` is `0` or `1`. A lanes verification adds `<TAB>lane<TAB>started` (an epoch) |
|
|
48
|
+
| `verification.retry.log` | the output of a deterministic or Jev rerun of a single command |
|
|
49
|
+
| `verification.lanes.json` | a lanes verification's live and final state, written by `scripts/forge-verify.py` (read up to 4 MB); `verification.lane.<name>.log` and `verification.lane.<name>.run-<k>.log` each lane's output |
|
|
47
50
|
| `verification.commit` | one line, the commit verified |
|
|
48
51
|
| `max_parallel`, `escalate_after`, `verify_retries` | one integer each |
|
|
49
52
|
| `qa_threshold` | `P0`..`P3`, the least severe finding that still blocks; `final_qa` the final review's QA spec |
|
|
@@ -64,6 +67,10 @@ written), and the reader must never raise because of one.
|
|
|
64
67
|
| `tasks/<id>/qa.gate` | `threshold<TAB>decision<TAB>worst<TAB>n_confirmed<TAB>n_unlabelled<TAB>n_below` (`decision` is `accept` or `keep`, `-` for none) |
|
|
65
68
|
| `tasks/<id>/known_issues.md` | the confirmed findings a threshold tolerated |
|
|
66
69
|
| `tasks/<id>/dwarf.input`, `qa.input` | the prompts forge assembled; `<role>.delivered`, `<role>.resolved` the live dispatch files |
|
|
70
|
+
| `tasks/<id>/<role>.log`, `<role>.clock` | the running dispatch's harness log and its clock: one `<epoch> <bytes>` line each time the log grew (forge-dispatch.sh samples it every second; `FORGE_LOG_CLOCK=off` writes none) |
|
|
71
|
+
| `tasks/<id>/escalation.stop`, `split.suggested` | the retry policy stopped the task: `<attempts><TAB><model>`, and the split it suggests (free text) |
|
|
72
|
+
| `scheduler.live` | `{"pid": n}`: the scheduler running the plan; it is live while that process is |
|
|
73
|
+
| `drain`, `stop`, `max_parallel`, `infra.paused` | a live scheduler's controls (Controls below): a drain, a stop (`graceful` or `now`), a capacity, and its infrastructure pauses as `{"scopes": [{scope, class, harness, model, tasks, cycle, until, exhausted}]}` |
|
|
67
74
|
| `tasks/<id>/attempts/<role>-<uuid>/` | one execution of the task: `task`, `dwarf` or `qa` |
|
|
68
75
|
| `tasks/<id>/changes.diff` | `git diff --binary` of the task's work since its base, cumulative, rewritten every attempt; `changes.prev.diff` the previous attempt's; `committed.diff` base..the reviewed commit |
|
|
69
76
|
| `tasks/<id>/drift.txt`, `conflict.files` | one path per line: files the diff changed without declaring them; files that conflicted on merge |
|
|
@@ -86,10 +93,11 @@ one of `task dwarf qa solo verification parallel` and `<uuid>` 32 lowercase hex
|
|
|
86
93
|
|---|---|
|
|
87
94
|
| `metrics.json` | `role`, `started` (monotonic), `wall_started` (epoch), `phase`, `phase_started` (monotonic), `elapsed_s` (seconds per phase, `total` once done), `exit_code` (`null` while in flight), `harness`, `prompt_bytes`, `input_tokens`, `cached_input_tokens`, `output_tokens`, `infra_class`, `shadow` |
|
|
88
95
|
| `dataset.json` | may be absent: `parent` (the execution that started this one, e.g. `task-<uuid>`), `trigger`, `attempt_start` and `resume` (task executions) |
|
|
89
|
-
| `<role>.resolved`, `.prompt`, `.last`, `.timedout` | copies made when it finished: the model resolution (`key=value`), the prompt, the final message, the timeout marker |
|
|
96
|
+
| `<role>.resolved`, `.prompt`, `.last`, `.timedout`, `.log`, `.clock` | copies made when it finished: the model resolution (`key=value`), the prompt, the final message, the timeout marker, the harness log and its clock |
|
|
90
97
|
|
|
91
|
-
Only the transcript
|
|
92
|
-
ExecutionTranscript)
|
|
98
|
+
Only the transcript, checks and environment endpoints open an execution's `.log` and `.clock` (a
|
|
99
|
+
`dwarf`'s or `qa`'s, see ExecutionTranscript and Checks), and RunDetail reads the last 256 KB of a
|
|
100
|
+
running one's log for its `now`; no read opens a `.cmd`.
|
|
93
101
|
|
|
94
102
|
**Task status** is `MERGED` if `tasks/<id>/merged` exists, otherwise the first word of
|
|
95
103
|
`tasks/<id>/status`, otherwise `PENDING`.
|
|
@@ -164,9 +172,13 @@ def final_review_diff(path, name, source='plan') -> dict | None # a DiffDetai
|
|
|
164
172
|
def files_detail(path, source='plan') -> dict | None # Files
|
|
165
173
|
def run_findings(path, source='plan') -> dict | None # RunFindings
|
|
166
174
|
def execution_transcript(path, name, source='plan') -> dict | None # an ExecutionTranscript
|
|
175
|
+
def execution_checks(path, name, source='plan') -> dict | None # ExecutionChecks
|
|
176
|
+
def task_checks(path, task_id, source='plan') -> dict | None # TaskChecks
|
|
177
|
+
def run_environment(path, source='plan') -> dict | None # RunEnvironment
|
|
167
178
|
def fractal_detail(path, task_id, source='plan') -> dict | None # a TaskFractal
|
|
168
179
|
def fractal_node(path, task_id, node, source='plan') -> dict | None # a FractalNodeDetail
|
|
169
180
|
def fractal_node_diff(path, task_id, node, source='plan') -> dict | None # a DiffDetail
|
|
181
|
+
def verification_log(path, lane=None, k=None, first=None, retry=False, source='plan') -> dict | None # a VerificationLog
|
|
170
182
|
|
|
171
183
|
class Catalog:
|
|
172
184
|
def __init__(self, plans=(), roots=(), registry=True, registry_dir=None): ...
|
|
@@ -177,8 +189,10 @@ class Catalog:
|
|
|
177
189
|
def final_review(self, key, name) -> dict | None
|
|
178
190
|
def diff(self, key, task_id, which='current'), execution_diff(self, key, name),
|
|
179
191
|
final_review_diff(self, key, name), files(self, key), findings(self, key), transcript(self, key, name),
|
|
192
|
+
execution_checks(self, key, name), task_checks(self, key, task_id), environment(self, key),
|
|
180
193
|
fractal(self, key, task_id),
|
|
181
|
-
fractal_node(self, key, task_id, node), fractal_node_diff(self, key, task_id, node)
|
|
194
|
+
fractal_node(self, key, task_id, node), fractal_node_diff(self, key, task_id, node),
|
|
195
|
+
verification_log(self, key, lane=None, k=None, first=None) -> dict | None
|
|
182
196
|
def models(self) -> dict # Models, over every run
|
|
183
197
|
def locate(self, key) -> tuple[str, str] | None # (run dir, 'plan' | 'solo'); None for an unknown key
|
|
184
198
|
```
|
|
@@ -225,6 +239,13 @@ its last 20,000 behind a leading `…`. Their `truncated` lists the field names
|
|
|
225
239
|
| `GET /api/runs/<key>/files` | `200 Files` |
|
|
226
240
|
| `GET /api/runs/<key>/findings` | `200 RunFindings` |
|
|
227
241
|
| `GET /api/runs/<key>/executions/<qa-or-dwarf>/transcript` | `200 ExecutionTranscript` |
|
|
242
|
+
| `GET /api/runs/<key>/executions/<qa-or-dwarf>/checks` | `200 ExecutionChecks`; another role is a 404 |
|
|
243
|
+
| `GET /api/runs/<key>/tasks/<id>/checks` | `200 TaskChecks`; `<id>` as for TaskDetail |
|
|
244
|
+
| `GET /api/runs/<key>/environment` | `200 RunEnvironment` |
|
|
245
|
+
| `GET /api/runs/<key>/verification/log[/lines/<n>]` | `200 VerificationLog` of `verification.log`: its tail, or with `/lines/<n>` a range |
|
|
246
|
+
| `GET /api/runs/<key>/verification/retry/log[/lines/<n>]` | `200 VerificationLog` of `verification.retry.log`, a single command's rerun |
|
|
247
|
+
| `GET /api/runs/<key>/verification/lanes/<lane>/log[/lines/<n>]` | `200 VerificationLog` of `verification.lane.<lane>.log` |
|
|
248
|
+
| `GET /api/runs/<key>/verification/lanes/<lane>/runs/<k>/log[/lines/<n>]` | `200 VerificationLog` of `verification.lane.<lane>.run-<k>.log` |
|
|
228
249
|
| `GET /api/models` | `200 Models` |
|
|
229
250
|
| `GET /api/health` | `200 {"app": "forge-ui", "version", "build", "pid", "controls": true\|false}`; `controls` is `false` in read-only mode |
|
|
230
251
|
| `GET /api/runs/<key>/controls` | `200` the `forge control show --json` object of a plan run (see Controls); `404` for a solo or unknown run |
|
|
@@ -251,11 +272,14 @@ Fractal node endpoints for an unknown node or a task whose Fractal state is not
|
|
|
251
272
|
diff that is not there yet is a `200` with `available: false`. An execution is looked for only where executions are written:
|
|
252
273
|
`attempts/`, `tasks/<id>/attempts/`, `shadow/<id>/<a>-<k>/attempts/`,
|
|
253
274
|
`final-review-*/attempts/` and `integrate-*/final-review/attempts/`, in that order; a dir
|
|
254
|
-
that resolves outside the run dir (a symlinked `attempts/`, say) is ignored.
|
|
275
|
+
that resolves outside the run dir (a symlinked `attempts/`, say) is ignored. The verification
|
|
276
|
+
log endpoints answer `404` for a solo run, a `<lane>` not matching `[A-Za-z0-9][A-Za-z0-9_-]{0,63}`
|
|
277
|
+
(so no `..`), a `<k>` or `<n>` that is not a positive decimal without a leading zero, and a log
|
|
278
|
+
that is missing, a symlink or not a regular file.
|
|
255
279
|
|
|
256
280
|
JSON responses: `Content-Type: application/json; charset=utf-8`,
|
|
257
281
|
`Cache-Control: no-store`. The page loads `style.css`, `runmodel.js`, `graph.js`, `gantt.js`,
|
|
258
|
-
`panel.js`, `map3d.js` and `app.js` by those relative names, and `scene3d.js` and `iso.js`
|
|
282
|
+
`verifyview.js`, `panel.js`, `map3d.js` and `app.js` by those relative names, and `scene3d.js` and `iso.js`
|
|
259
283
|
(ES modules) only when the 3D view is used.
|
|
260
284
|
|
|
261
285
|
Every response carries `X-Content-Type-Options: nosniff`, `Referrer-Policy: no-referrer`
|
|
@@ -342,8 +366,14 @@ Every RunSummary field, plus:
|
|
|
342
366
|
"final_qa": "opus"},
|
|
343
367
|
"verification": {"status": "PASS", "command": "python3 -m unittest", "log_tail": "...",
|
|
344
368
|
"runs": [{"n": 1, "kind": "initial", "exit": 0, "tree_changed": false,
|
|
345
|
-
"duration_s": 12.3, "log": "verification.run-1.log"
|
|
346
|
-
|
|
369
|
+
"duration_s": 12.3, "log": "verification.lane.unit.run-1.log",
|
|
370
|
+
"lane": "unit", "started": 1760622000.5}],
|
|
371
|
+
"commit": "9c1e4b7a...",
|
|
372
|
+
"state": "done", "mode": "lanes", "live": null, "mutated": false,
|
|
373
|
+
"lanes": [VerificationLane, ...],
|
|
374
|
+
"failing": [{"lane": "e2e", "name": "checkout.Pay.test_refund", "suite": "checkout",
|
|
375
|
+
"file": "e2e.xml", "message": "expected 200, got 500", "excerpt": "...",
|
|
376
|
+
"known": false, "log_line": 12}]},
|
|
347
377
|
"waves": [["reader", "page", "graph"], ["server"], ["readme"]],
|
|
348
378
|
"tasks": [Task, ...],
|
|
349
379
|
"timeline": {"started": 1760620000.25, "ended": null, "runs": [Execution], "verifications": [Execution]},
|
|
@@ -355,6 +385,12 @@ Every RunSummary field, plus:
|
|
|
355
385
|
"ended": 1760622300.0}]},
|
|
356
386
|
"final_review": FinalReviewSummary,
|
|
357
387
|
"final_reviews": [FinalReviewSummary, ...],
|
|
388
|
+
"scheduler": {"live": true, "drained": false, "stopping": null, "max_parallel": 3,
|
|
389
|
+
"pauses": [{"scope": "model:codex/gpt-6", "class": "rate_limit", "harness": "codex", "model": "gpt-6",
|
|
390
|
+
"tasks": ["perf"], "cycle": 1, "until": 1760622130.0, "exhausted": false}]},
|
|
391
|
+
"sweep": {"at": 1760622050.0, "severity": "P3", "plausible": false, "tasks": ["sweep-1"], "findings": 2, "fixed": 1,
|
|
392
|
+
"dropped": [{"task": "page", "severity": "P3", "location": "ui/page.html:3", "summary": "Old markup.",
|
|
393
|
+
"reason": "changed", "merged_since": ["graph"]}]},
|
|
358
394
|
"deferrals": ["wave 2: docs deferred (file overlap with a task already in this wave)"],
|
|
359
395
|
"findings_available": true,
|
|
360
396
|
"warnings": ["tasks/graph/route.jsonl line 2: not JSON"],
|
|
@@ -369,7 +405,53 @@ Every RunSummary field, plus:
|
|
|
369
405
|
- `verification` is `null` when none of `verification.status`, `.command`, `.log` exists. A
|
|
370
406
|
solo run's `verification` is always `null`. `runs` comes from `verification.runs.tsv`
|
|
371
407
|
(malformed rows are warned and skipped; an empty `exit` is `null`), `commit` is the first
|
|
372
|
-
line of `verification.commit` or `null`.
|
|
408
|
+
line of `verification.commit` or `null`. A run's lanes runs carry `lane` and `started`; a
|
|
409
|
+
single command's have `null` for both. A row of neither 6 nor 8 columns is warned and skipped.
|
|
410
|
+
- `verification.state` is `running` when the run's newest `verification` execution (the newest
|
|
411
|
+
of `timeline.verifications`) is running, `done` when it has ended, and `null` when the run has
|
|
412
|
+
none. While it runs, `status` is `RUNNING`, whatever a `verification.status` left by an earlier
|
|
413
|
+
verification says.
|
|
414
|
+
- `verification.mode` is `lanes` when `verification.lanes.json` exists and was written at or
|
|
415
|
+
after the newest verification execution started (or there is none), else `single`. A lanes file
|
|
416
|
+
an earlier verification left is not read.
|
|
417
|
+
- `verification.live` is `null` unless `state` is `running`; then `{started, step, last_line,
|
|
418
|
+
last_output_at, idle_s, log}`. `started` is the execution's start. In `single` mode the live log is
|
|
419
|
+
whichever of `verification.log` and `verification.retry.log` was modified last: `step` is
|
|
420
|
+
`{name, started: null}` for the last `::forge step name=<x> state=start` in its last 64 KB
|
|
421
|
+
that no later `state=end` closed (a line holds no time), `last_line` its last non-empty line
|
|
422
|
+
without ANSI codes (at most 300 characters), and `last_output_at` its mtime. In `lanes` mode
|
|
423
|
+
they are the running lane's that printed last, with its recorded `step.started`. `idle_s` is
|
|
424
|
+
now minus `last_output_at` (minus `started` before any output). `log` names the live log in
|
|
425
|
+
`single` mode (`verification.log` or `verification.retry.log`; `null` before either exists) and is
|
|
426
|
+
`null` in `lanes` mode.
|
|
427
|
+
- `verification.lanes` is `null` in `single` mode and when the lanes file is unreadable, not a
|
|
428
|
+
JSON object, has no `lanes` list or is over 4 MB (each warned; the request never fails). In
|
|
429
|
+
`lanes` mode it is every lane:
|
|
430
|
+
|
|
431
|
+
```
|
|
432
|
+
VerificationLane = {"name": "e2e", "command": "npm run test:e2e", "group": "browser", "first": false,
|
|
433
|
+
"retries": 2, "options": {"retries": 2, "reports": "reports"},
|
|
434
|
+
"state": "fail", "exit": 1, "started": 1760622000.5, "ended": 1760622070.0,
|
|
435
|
+
"duration_s": 69.5, "idle_s": null,
|
|
436
|
+
"runs": [{"k": 1, "kind": "initial", "started": 1760622000.5, "ended": 1760622030.0,
|
|
437
|
+
"exit": 1, "log": "verification.lane.e2e.run-1.log"}],
|
|
438
|
+
"step": {"name": "browser", "started": 1760622010.0} | null,
|
|
439
|
+
"last_line": "2 failed, 30 passed", "last_output_at": 1760622069.8,
|
|
440
|
+
"log": "verification.lane.e2e.log",
|
|
441
|
+
"tests": {"pass": 30, "fail": 2, "skip": 1, "error": 0, "failing": [...],
|
|
442
|
+
"reports": ["e2e.xml"], "notes": [], "truncated": false} | null}
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
`state` is one of `waiting running pass fail flaky known skipped interrupted`; `duration_s`
|
|
446
|
+
runs from `started` to `ended`, or to now while the lane runs; `idle_s` is now minus
|
|
447
|
+
`last_output_at` for a running lane, else `null`. `tests` is `null` when the lane wrote no
|
|
448
|
+
report; its `failing` holds at most 200 entries (`truncated` says more failed), a `message` at
|
|
449
|
+
most 500 characters and an `excerpt` at most 2,000; `log_line` is the 1-based line of the
|
|
450
|
+
lane's log that first names the test, or `null`.
|
|
451
|
+
- `verification.failing` is every lane's `tests.failing`, in lane order, each with its `lane`:
|
|
452
|
+
at most 200 entries, `[]` in `single` mode.
|
|
453
|
+
- `verification.mutated` is `true` when the checkout changed under the verification (the lanes
|
|
454
|
+
file's `mutated`, or in `single` mode a run with `tree_changed`): reruns after it were skipped.
|
|
373
455
|
- `timeline.started` is the earliest `started` of every execution the detail shows (tasks
|
|
374
456
|
and their shadows, the listed final reviews, the run's own); `ended` is the latest `ended`,
|
|
375
457
|
or `null` while any of them is `running` or when none has ended. `runs` and
|
|
@@ -385,6 +467,17 @@ Every RunSummary field, plus:
|
|
|
385
467
|
epoch in the name), or `null`; `final_reviews` lists the newest 20, newest first. That newest
|
|
386
468
|
review's `outdated` is its own. `final_review_outdated` stays the published review's flag, so
|
|
387
469
|
the two differ when a newer review exists than the one `final-review` links to.
|
|
470
|
+
- `scheduler`: `live` is whether the pid in `scheduler.live` is a running process. Only then are the
|
|
471
|
+
rest read: `drained` (a `drain` file), `stopping` (`stop` holds `graceful` or `now`, else `null`),
|
|
472
|
+
`max_parallel` (the `max_parallel` file when it holds 1 to 64, else `null`) and `pauses` (the scopes of
|
|
473
|
+
`infra.paused`, `[]` without it); while no scheduler runs they are `false`, `null`, `null` and `[]`.
|
|
474
|
+
A solo run's `scheduler` is `null`.
|
|
475
|
+
- `sweep`: the run's finding sweep (`run --sweep`), `null` without `sweep/plan.json` (and for a solo
|
|
476
|
+
run). `tasks` are its fix tasks (tasks with a `sweep.json`), `findings` how many findings they took
|
|
477
|
+
and `fixed` how many of those their reviews marked fixed (a fix task counts once it merged).
|
|
478
|
+
`dropped` lists, from the plan, at most 200 findings the sweep left for `forge issues`, each with
|
|
479
|
+
its `reason` (`below-severity`, `dismissed`, `no-location`, `file-gone`, `changed`, `duplicate`,
|
|
480
|
+
`group-cap`, `over-max`, `no-model`) and, for `changed`, the tasks that `merged_since` the review.
|
|
388
481
|
- `deferrals`: the non-empty lines of `deferrals.txt`, `[]` when it is missing.
|
|
389
482
|
- `findings_available`: whether `scripts/forge-contract.py` could be loaded.
|
|
390
483
|
- `fractal`: `null` without `fractal-selection.json`, else `{"enabled", "run", "available", "reason"}`
|
|
@@ -440,7 +533,14 @@ Every RunSummary field, plus:
|
|
|
440
533
|
"findings": FindingsSummary,
|
|
441
534
|
"gate": {"threshold": "P2", "decision": "keep", "worst": "P3", "n_confirmed": 1,
|
|
442
535
|
"n_unlabelled": 0, "n_below": 1},
|
|
443
|
-
"known_issues": true
|
|
536
|
+
"known_issues": true,
|
|
537
|
+
"now": {"role": "dwarf", "execution": "dwarf-…", "attempt": 2, "phase": "model", "phase_started": 1760621200.0,
|
|
538
|
+
"started": 1760621195.0, "last_output_at": 1760621410.2,
|
|
539
|
+
"call": {"kind": "command", "command": "npm test", "tool": null, "started": 1760621390.0, "check": "test"}},
|
|
540
|
+
"waiting": null,
|
|
541
|
+
"sweep": null,
|
|
542
|
+
"swept": [{"id": "S1", "severity": "P2", "confidence": "CONFIRMED", "task": "reader", "location": "ui/reader.py:12",
|
|
543
|
+
"summary": "Status is read twice.", "status": "fixed", "note": null, "by": "sweep-1"}]
|
|
444
544
|
}
|
|
445
545
|
```
|
|
446
546
|
|
|
@@ -484,6 +584,28 @@ Every RunSummary field, plus:
|
|
|
484
584
|
- `gate`: the parsed `qa.gate` (`n_*` integers, `-` is `null`), or `null` when missing or
|
|
485
585
|
malformed (malformed is warned).
|
|
486
586
|
- `known_issues`: whether `known_issues.md` is a non-empty file.
|
|
587
|
+
- `now`: `null` unless the task is `RUNNING`. Then where it is: the newest running non-shadow `dwarf`
|
|
588
|
+
or `qa` execution (`role`, `execution`, `attempt`, `phase`, `phase_started`, `started`), else the
|
|
589
|
+
running task execution, and, for an agent, `last_output_at` (its log's mtime) and `call`: the call
|
|
590
|
+
it is making, read from the last 256 KB of `tasks/<id>/<role>.log` (the run dir's for a solo run),
|
|
591
|
+
or `null` while it thinks or writes. `call.kind` is `command`, `tool` or `edit`; `command` keeps
|
|
592
|
+
400 characters; `check` is the command's kind as Checks below tells it (`null` for none);
|
|
593
|
+
`started` comes from the harness's own times, from `<role>.clock`, or, when the call is the log's
|
|
594
|
+
last line, the log's mtime. Every value but the call is `null` when unknown.
|
|
595
|
+
- `waiting`: why a task that is not running waits, as far as the run dir says, or `null`:
|
|
596
|
+
`{"kind": "escalation", "attempts", "model", "split"}` when `escalation.stop` exists (whether or
|
|
597
|
+
not a scheduler runs); else, while `scheduler.live` is true, for a `PENDING` or `INFRA` task:
|
|
598
|
+
`infra` (a pause in `scheduler.pauses` holds it: scope `all`, or its id in `tasks`; the pause's
|
|
599
|
+
keys plus `kind`), then for a `PENDING` task `deps` (`on`: its deps not merged, `stopped`: those
|
|
600
|
+
in a stopped status such as `FAIL`), `stopping` (`mode`), `drained`, `overlap` (`on`: running
|
|
601
|
+
tasks whose files overlap its own, as forge-schedule.py tells overlap), `slot` (`running`,
|
|
602
|
+
`max_parallel`: the run is at its capacity) or `next` (nothing holds it).
|
|
603
|
+
- `sweep`: `null` unless the task is a finding sweep's fix task (it has a `sweep.json`). Then `file`
|
|
604
|
+
and `findings`, each `{id, severity, confidence, task, location, summary, status, note}`: `task` is
|
|
605
|
+
the task the finding came from, `status` what the fix task's review said of it (`fixed`,
|
|
606
|
+
`not-fixed`, or `unreported` when it merged without a line for it; read from `sweep.outcome.json`)
|
|
607
|
+
and `null` until the fix task merged, `note` the review's words on it.
|
|
608
|
+
- `swept`: this task's findings a fix task took, the same objects plus `by` (the fix task); `[]`.
|
|
487
609
|
- Text fields are `null` when the file is missing.
|
|
488
610
|
|
|
489
611
|
A solo run's one task uses this same shape. `id` is `solo` and `title` is the goal, or
|
|
@@ -495,7 +617,8 @@ in `attempts.tsv`, or `null`. `escalations`, `route` and `shadow` are empty. `ve
|
|
|
495
617
|
`qa_tail` come from `qa.last`, and `prompt` comes from `prompt.md`. `deps` and `files` are
|
|
496
618
|
`[]`; `difficulty`, `accepted_by`, `approach` and `retry_findings` are `null`; `accepted` is
|
|
497
619
|
false; `accepted_attempt` and `accepted_over` are `null`; `explored` is false; `clef` is
|
|
498
|
-
`{first_pass: null, retry_pass: {}}
|
|
620
|
+
`{first_pass: null, retry_pass: {}}`; `waiting` and `sweep` are `null`, `swept` is `[]`. `request` on
|
|
621
|
+
the detail is `request.md`.
|
|
499
622
|
|
|
500
623
|
## Execution
|
|
501
624
|
|
|
@@ -766,12 +889,114 @@ or `input` when there are none), `tool` (`tool`, `input`, `output`), `result` (`
|
|
|
766
889
|
with `same: true` when the last message said it; `tokens`), `error` (`text`), `text` (`text`,
|
|
767
890
|
`stream: "stderr"` for lines between JSON events) and `gap` (`count` events left out). Any event
|
|
768
891
|
may have `t` (epoch seconds), `id` (the harness's call id), `error` (`true` for a failed call or a
|
|
769
|
-
non-zero exit, `false` for a call answered without one) and `running: true` (a call not finished yet)
|
|
892
|
+
non-zero exit, `false` for a call answered without one) and `running: true` (a call not finished yet); an
|
|
893
|
+
answered `command`, `edit` or `tool` may have `ended` (epoch seconds). Times are the harness's own when
|
|
894
|
+
its lines carry them (claude's and opencode's), else read from `<role>.clock` beside the log: a line
|
|
895
|
+
is timed by the first sample that saw the log reach its end, to within the clock's second (codex and
|
|
896
|
+
grok write no times; a run from before the clock has none). `tokens` are the run's totals
|
|
770
897
|
(`input` counts cached input too). A message, a reasoning or a result keeps 20,000 characters, a
|
|
771
898
|
command, an input or an output its first two thirds and last third of 8,000 around `… n
|
|
772
899
|
characters …` (`<key>_cut` holds n). A log over 32 MB is read from its end; past 5,000 events or
|
|
773
900
|
4,000,000 characters the middle is left out (a `gap` event, `truncated: true`). Parses are kept by
|
|
774
|
-
the log's `(path, size, mtime_ns)
|
|
901
|
+
the log's `(path, size, mtime_ns)`, its clock's and the session file's.
|
|
902
|
+
|
|
903
|
+
## Checks (`forge_ui/checks.py`)
|
|
904
|
+
|
|
905
|
+
The checks an agent ran are the `command` events of its transcript that are tests, type checks,
|
|
906
|
+
lints or builds. A command is split on `&&`, `||`, `;`, `|` and newlines; each part loses its
|
|
907
|
+
environment assignments and wrappers (`env`, `timeout 600`, `uv run`, `npx`, `poetry run`, a
|
|
908
|
+
`sh -c '…'` around it, …) and a `cd` part is left out. `kind` is the first of `test`, `typecheck`,
|
|
909
|
+
`lint`, `build` that some part is (pytest and `python -m unittest`, `npm test`, `node --test`, jest,
|
|
910
|
+
vitest, mocha, `go test`, `cargo test`, a `test`/`check` shell script; tsc, mypy, pyright, `bash -n`,
|
|
911
|
+
`cargo check`, `go vet`; eslint, ruff, flake8, shellcheck, `cargo clippy`, a formatter with
|
|
912
|
+
`--check`; `npm run build`, `cargo build`, plain `make`, …).
|
|
913
|
+
|
|
914
|
+
ExecutionChecks (a `dwarf` or `qa` execution):
|
|
915
|
+
|
|
916
|
+
```json
|
|
917
|
+
{"run": "3f9a0c1d2e4b", "execution": "dwarf-…", "role": "dwarf", "state": "done", "attempt": 1, "spec": "luna",
|
|
918
|
+
"harness": "codex", "source": "log", "truncated": false, "last_output_at": null,
|
|
919
|
+
"owner": {"kind": "task", "id": "api"},
|
|
920
|
+
"checks": [{"index": 4, "command": "npm test", "kind": "test", "exit": 1, "failed": true, "running": false,
|
|
921
|
+
"started": 1760620100.0, "ended": 1760620232.0, "duration_s": 132.0,
|
|
922
|
+
"counts": {"passed": 41, "failed": 3, "skipped": 0}, "tail": "…last lines…"}],
|
|
923
|
+
"call": null,
|
|
924
|
+
"environment": [{"index": 2, "command": "npm run db:up", "problem": "docker-pools",
|
|
925
|
+
"label": "Docker ran out of network address pools", "line": "Error response from daemon: …"}],
|
|
926
|
+
"criteria": [{"command": "npm test", "kind": "test", "status": "ran", "by": {"index": 4}}],
|
|
927
|
+
"warnings": []}
|
|
928
|
+
```
|
|
929
|
+
|
|
930
|
+
- `index` is the event's place in the ExecutionTranscript (the conversation view's `ev-<index>`);
|
|
931
|
+
`command` keeps 1,000 characters. `failed` is a failed call or a non-zero exit; `duration_s` is
|
|
932
|
+
`ended` minus `started` when both are known. `counts` is what the output's summary says:
|
|
933
|
+
`{passed, failed, skipped}` (pytest, unittest, forge's `tests/run_tests.py`, `node --test`, jest,
|
|
934
|
+
vitest, mocha, Playwright, cargo, `go test -v`) or `{errors, warnings}` (tsc, mypy, eslint, ruff,
|
|
935
|
+
pyright), else `null`. `tail` is a failed check's last 6 non-empty output lines, else `null`.
|
|
936
|
+
- `call` is the call not answered yet (`{index, kind, command, tool, started, check}`; the newest
|
|
937
|
+
when several run at once), or `null`. `last_output_at` is the log's mtime while it runs, else `null`.
|
|
938
|
+
- `environment`: each problem a failed command met that is not only a reader (`rg`, `grep`, `cat`,
|
|
939
|
+
`git`, `ls`, …): `docker-daemon`, `docker-pools`, `container`, `port` (EADDRINUSE), `sandbox`
|
|
940
|
+
(EPERM, `Operation not permitted`), `refused` (ECONNREFUSED), `network` (DNS, unreachable), `disk`
|
|
941
|
+
(ENOSPC) and `missing-tool` (`command not found`), with `label` and the first line that shows it
|
|
942
|
+
(240 characters).
|
|
943
|
+
- `criteria`: the check commands the owner task's `prompt.md` names under an `## Acceptance
|
|
944
|
+
criteria` heading (in code spans, or a fenced block's lines), each once, against this execution's
|
|
945
|
+
checks: `status` is `ran` (a check had every word of it), `similar` (one by the same program, of
|
|
946
|
+
the same kind) or `missing`; `by` names the matching check. `[]` for a final review or a shadow.
|
|
947
|
+
|
|
948
|
+
TaskChecks:
|
|
949
|
+
|
|
950
|
+
```json
|
|
951
|
+
{"run": "3f9a0c1d2e4b", "task": "api",
|
|
952
|
+
"criteria": [{"command": "npm test", "kind": "test"}, {"command": "npx tsc --noEmit", "kind": "typecheck"}],
|
|
953
|
+
"attempts": [{"attempt": 1, "running": false, "executions": [ExecutionChecks without run/owner/criteria/warnings, ...],
|
|
954
|
+
"criteria": [{"command": "npm test", "kind": "test", "status": "ran",
|
|
955
|
+
"by": {"execution": "qa-…", "role": "qa", "index": 1}},
|
|
956
|
+
{"command": "npx tsc --noEmit", "kind": "typecheck", "status": "missing", "by": null}]}],
|
|
957
|
+
"truncated": [], "warnings": []}
|
|
958
|
+
```
|
|
959
|
+
|
|
960
|
+
Every non-shadow `dwarf` and `qa` execution of the task, by attempt; an attempt's `criteria` hold
|
|
961
|
+
against the checks of all its agents, and `running` is whether one of them runs.
|
|
962
|
+
|
|
963
|
+
RunEnvironment: the environment problems of every task's agents, each once, in the order above:
|
|
964
|
+
|
|
965
|
+
```json
|
|
966
|
+
{"run": "3f9a0c1d2e4b",
|
|
967
|
+
"problems": [{"problem": "docker-pools", "label": "Docker ran out of network address pools",
|
|
968
|
+
"tasks": ["schema", "api"], "count": 2,
|
|
969
|
+
"hits": [{"task": "schema", "attempt": 1, "role": "dwarf", "execution": "dwarf-…", "index": 0,
|
|
970
|
+
"command": "npm run db:up", "line": "Error response from daemon: …"}]}],
|
|
971
|
+
"warnings": []}
|
|
972
|
+
```
|
|
973
|
+
|
|
974
|
+
`tasks` in plan order, `count` every failed command that met it, `hits` the first 50. A finished
|
|
975
|
+
execution's problems are kept by its log's and clock's signature.
|
|
976
|
+
|
|
977
|
+
## VerificationLog
|
|
978
|
+
|
|
979
|
+
The run's own verification logs, read by path (an integration's lane logs are not served yet):
|
|
980
|
+
|
|
981
|
+
```
|
|
982
|
+
{"name": "verification.lane.e2e.log", "size": 220000, "mtime": 1760622070.0,
|
|
983
|
+
"tail": "line 14044\n...", "tail_first_line": 14044, "truncated": true}
|
|
984
|
+
```
|
|
985
|
+
|
|
986
|
+
`tail` is the file's last 64 KB, from the first line that starts inside them (when no line
|
|
987
|
+
does, from the first whole character), decoded as UTF-8 with invalid bytes replaced.
|
|
988
|
+
`tail_first_line` is the 1-based number of the tail's first line, found by counting the newlines
|
|
989
|
+
before it, or `null` when that would read past 64 MB. `truncated` says the tail is not the whole
|
|
990
|
+
file. With `/lines/<n>`:
|
|
991
|
+
|
|
992
|
+
```
|
|
993
|
+
{"name": "verification.log", "size": 11000, "first_line": 700, "lines": ["line 00700", ...],
|
|
994
|
+
"truncated": false}
|
|
995
|
+
```
|
|
996
|
+
|
|
997
|
+
up to 400 lines from line `n` (1-based), each without its line ending and cut to 4,000
|
|
998
|
+
characters (ending `…`). Lines past the end give `lines: []`. `truncated` is `true` when more
|
|
999
|
+
lines follow, a line was cut, or reaching them took more than 64 MB of reading.
|
|
775
1000
|
|
|
776
1001
|
## Files
|
|
777
1002
|
|
|
@@ -932,8 +1157,8 @@ difficulty paths deps model` each), `decomposition_history` (its newest 20, each
|
|
|
932
1157
|
|
|
933
1158
|
- It holds `style.css` (with the labels' face, `D-DINCondensed-Bold.woff2`, inlined as a `data:`
|
|
934
1159
|
URL) and the classic scripts the run view uses (`theme.js icons.js datatable.js shell.js
|
|
935
|
-
runmodel.js cloudmodel.js graph.js gantt.js
|
|
936
|
-
app.js`), inline; the import map; a `<script type="application/json" id="forge-snapshot">` with
|
|
1160
|
+
runmodel.js cloudmodel.js graph.js gantt.js verifyview.js checksview.js panel.js diffview.js convo.js files.js
|
|
1161
|
+
map3d.js search.js app.js`), inline; the import map; a `<script type="application/json" id="forge-snapshot">` with
|
|
937
1162
|
`{meta, api}`; and a `<script type="text/plain" id="forge-stage">` holding `iso.js`,
|
|
938
1163
|
`cloud3d.js`, `findings3d.js`, `stagectl.js` and `scene3d.js` bundled into one module (each
|
|
939
1164
|
module in its own scope, relative imports bound to the earlier ones' exports, `createStage`
|
|
@@ -942,13 +1167,16 @@ difficulty paths deps model` each), `decomposition_history` (its newest 20, each
|
|
|
942
1167
|
it (server.api_get): `/api/runs` (this run only), the RunDetail, every TaskDetail, every
|
|
943
1168
|
ExecutionDetail the RunDetail names, every FinalReviewDetail, Files, RunFindings, and the
|
|
944
1169
|
Fractal trees and nodes. With `texts=1` also every diff the page can open (each task's diff and its `sources`,
|
|
945
|
-
each final review's, each Fractal node's)
|
|
1170
|
+
each final review's, each Fractal node's), every `dwarf` and `qa` ExecutionTranscript (at most 2 MB each)
|
|
1171
|
+
and ExecutionChecks, every TaskChecks, the RunEnvironment,
|
|
1172
|
+
and the VerificationLog tail of `verification.log`, of each lane's log and of each lane run's log
|
|
1173
|
+
(under their tail paths; line ranges are not stored, so the page shows the tail).
|
|
946
1174
|
- `texts=0` (the default) nulls these keys wherever they hold a string, list or object: `prompt
|
|
947
1175
|
last request log_tail dwarf_tail qa_tail qa_last qa_input tasks_summary known_issues texts text
|
|
948
|
-
planning_last approach retry_findings dwarf_input error
|
|
949
|
-
finding keeps its `summary`.
|
|
950
|
-
- `paths=0` (the default) makes every string that is a whole absolute path (but `/api
|
|
951
|
-
`
|
|
1176
|
+
planning_last approach retry_findings dwarf_input error last_line message excerpt tail lines call split`,
|
|
1177
|
+
and stores no diff, no transcript, no checks and no environment problems (a command is a text). A finding keeps its `summary`, a failing test its `name`.
|
|
1178
|
+
- `paths=0` (the default) makes every string that is a whole absolute path (but `/api/…`, `url`s
|
|
1179
|
+
and `command`s) its last component, and replaces the run dir, the repo and the home dir inside other
|
|
952
1180
|
strings with their last component (`~` for home).
|
|
953
1181
|
- At most 1 MB of JSON per diff and 25 MB in all; what did not fit is listed in `meta.omitted`
|
|
954
1182
|
(`path`, `bytes`, `why`). `meta`: `format` `forge-ui-export`, `version` 1, `app`, `key`,
|
|
@@ -1061,7 +1289,14 @@ for them only unknown keys and runs the catalog does not hold are `404`. Every w
|
|
|
1061
1289
|
`forge control show <plan dir> --json`: `200` with its object (`plan`, `run_id`, `live`, `fractal`,
|
|
1062
1290
|
`run` (the plan-wide controls), `tasks` (per task: `status`, `dwarf`, `qa`, `qa_threshold`,
|
|
1063
1291
|
`retry_budget`, `retries_used`, `pin`, `escalation_stop`, `escalation_next`) and `log`). No token
|
|
1064
|
-
is needed to read it.
|
|
1292
|
+
is needed to read it. Of `run` the page also reads `max_parallel` (1–64 or `null`), `infra_backoff`
|
|
1293
|
+
(the shape, `exp:60` when unset), `escalate_effort` (`on`/`off`), `drained` and `stopping`
|
|
1294
|
+
(`graceful`, `now` or `null`) while live, and `infra_paused` while live: one
|
|
1295
|
+
`{scope, class, harness, model, tasks, cycle, until, exhausted}` per paused scope (`scope` is
|
|
1296
|
+
`all`, `harness:<h>` or `model:<h>/<m>`; `until` an epoch, `exhausted` true once its retries are
|
|
1297
|
+
spent). `log` is the newest `control.log` lines first; a scheduler's answer to a queued request
|
|
1298
|
+
is a line with `actor: "scheduler"`, the request's `request` id, `outcome` (`applied` or
|
|
1299
|
+
`refused`) and `reason`.
|
|
1065
1300
|
|
|
1066
1301
|
### `POST /api/runs/<key>/controls`
|
|
1067
1302
|
|
|
@@ -1076,10 +1311,22 @@ known or a spec runs is for the CLI to say (its `400` or `409` comes back as abo
|
|
|
1076
1311
|
| `{"action": "set", "key": "retry-budget", "value": "inherit", "task": "reader"}` | `control set <dir> retry-budget inherit --task reader --actor ui --json` |
|
|
1077
1312
|
| `{"action": "pin", "task": "graph", "spec": "sol:high:codex"}` | `control pin <dir> graph sol:high:codex --actor ui --json` |
|
|
1078
1313
|
| `{"action": "unpin", "task": "graph"}` | `control unpin <dir> graph --actor ui --json` |
|
|
1314
|
+
| `{"action": "drain"}` | `control drain <dir> --actor ui --json` |
|
|
1315
|
+
| `{"action": "resume"}` | `control resume <dir> --actor ui --json` |
|
|
1316
|
+
| `{"action": "stop"}` (or `"now": false`) | `control stop <dir> --actor ui --json` |
|
|
1317
|
+
| `{"action": "stop", "now": true}` | `control stop <dir> --now --actor ui --json` |
|
|
1318
|
+
| `{"action": "retry", "task": "graph"}` | `control retry <dir> graph --actor ui --json` |
|
|
1319
|
+
| `{"action": "retry", "task": "graph", "dwarf": "sol:high:codex"}` | `control retry <dir> graph --dwarf sol:high:codex --actor ui --json` |
|
|
1079
1320
|
|
|
1080
1321
|
`value` is always a string. `task` is optional on `set`, and only for the keys the CLI allows it
|
|
1081
|
-
for
|
|
1082
|
-
`
|
|
1322
|
+
for; the page sets `max-parallel`, `infra-backoff` (`none` drops it) and `escalate-effort`
|
|
1323
|
+
(`on`/`off`) plan-wide. `now` is a boolean. `add` is not exposed: a row is added to `tasks.tsv` by
|
|
1324
|
+
hand, so its CLI is the place to queue it. A success is
|
|
1325
|
+
`200 {"ok": true, "changed": {...}, "applies": "...", "controls": {...}}`, where `controls` is the
|
|
1326
|
+
`GET` object after the change; `drain`, `resume` and `stop` answer the same way and are refused
|
|
1327
|
+
(`409`) when no scheduler is live. A `retry` only queues: `200 {"queued": true, "request": "<id>"}`.
|
|
1328
|
+
Its refusals before queueing (not live, a MERGED task, a spec that fails doctor) are the CLI's
|
|
1329
|
+
`409`/`400`; the scheduler applies or refuses it later, in the `log` line with that `request` id.
|
|
1083
1330
|
|
|
1084
1331
|
### `GET /api/runs/<key>/issues`
|
|
1085
1332
|
|
|
@@ -1180,11 +1427,13 @@ Plain scripts unless noted; each defines one global and none parses API text as
|
|
|
1180
1427
|
|
|
1181
1428
|
| File | Global | What it is |
|
|
1182
1429
|
|---|---|---|
|
|
1183
|
-
| `runmodel.js` | `ForgeRunModel` | pure data, no DOM: the plate layout (archivision's `plate()`), the atlas, plan and execution models, forge-schedule's rules projected forward, the critical path, concurrency, the state of every node at a time `t` (replay), filters. Also a CommonJS module, for `node --test` |
|
|
1184
|
-
| `gantt.js` | `ForgeGantt` | `render(container, run, {now, onSelect, sel, replay, critical, ghosts})`: attempts on wall-clock time in lanes; `strip(container, run, {now, replay})`: busy attempts and model calls against `max_parallel` |
|
|
1430
|
+
| `runmodel.js` | `ForgeRunModel` | pure data, no DOM: the plate layout (archivision's `plate()`), the atlas, plan and execution models, forge-schedule's rules projected forward, the critical path, concurrency, the state of every node at a time `t` (replay, verification lanes included), the finish node's verification LEDs (`verifyLeds`: one per lane in lanes mode, else one per run), filters. Also a CommonJS module, for `node --test` |
|
|
1431
|
+
| `gantt.js` | `ForgeGantt` | `render(container, run, {now, onSelect, sel, replay, critical, ghosts})`: attempts on wall-clock time in lanes; `strip(container, run, {now, replay})`: busy attempts and model calls against `max_parallel`. Under the attempts, the finish rows: `verify` (single-command verifications; the newest split into its runs back to back from its start, dashed because that placement is approximate), a `verify · <lane>` row per lane of a lanes verification (each run and rerun at its own time; a run with no exit is UNKNOWN once it ended, never FAIL) and `final review`. A lane or run item opens the verification inspector |
|
|
1185
1432
|
| `panel.js` | `ForgePanel` | `render(host, ctx)`: the inspector for a run, task, execution, final review, verification, integration or Fractal node; fetches the lazy endpoints once per node; `ctx.diffHash(spec)` links into the diff viewer, `ctx.onFractal(task, TaskFractal)` hands a task's tree to the stage |
|
|
1433
|
+
| `verifyview.js` | `ForgeVerify` | `render(host, {run, now, fetchJSON, rerender})`: the verification inspector panel.js delegates to: while it runs, the elapsed time, step, last line and a flag past 5 minutes without output, and a live tail of the followed lane's log (or the single log) read again each poll; when it failed, the failing tests first, grouped by lane with new or known, each opening its lane's log at its line (in an export, the tail); a lanes table (state, time, reruns, counts). Pure helpers (`model`, `laneRow`, `groupFailing`, `idleWarning`, `openStep`, `tailLane`, `logPath`, `linesPath`, `tailLines`) are a CommonJS module too |
|
|
1434
|
+
| `checksview.js` | `ForgeChecks` | where each task stands and the checks its agents ran: `cell(task, now, ctx)` (the task table's Now column: the running call and for how long, a `quiet N min` flag past 5 minutes without output, or why it waits), `nowSection`, `execSection` and the attempts' checks and acceptance-criteria lines (`taskChecks`, `underExecution`, `attemptCriteria`) for panel.js, `schedulerFields` (the run inspector), `banner(head, ctx)` (the run header: environment problems more than one task met, read again at most every 15 s while tasks run) and `tick(root, now)`, which app.js calls each refresh to move `data-since`, `data-until` and `data-quiet` times. Pure helpers (`nowModel`, `waitingModel`, `nowRank`, `checkRow`, `countsText`, `coverageModel`, `bannerProblems`, `schedulerModel`, `quietText`, `untilText`) are a CommonJS module too |
|
|
1186
1435
|
| `diffview.js` | `ForgeDiff` | `render(host, {run, spec, fetchJSON, rerender, href, closeHref})`: a DiffDetail with its findings under their lines; `spec` is `{kind: task, task, source, file}`, `{kind: final, name, file}` or `{kind: fractal, task, node, file}` |
|
|
1187
|
-
| `convo.js` | `ForgeConvo` | `render(host, {run, spec: {task, exec}, brief, live, fetchJSON, rerender, diffHash, closeHref})`: an ExecutionTranscript as a timeline, with search, the errors and, while the execution runs, a read of its log every 2.5 s |
|
|
1436
|
+
| `convo.js` | `ForgeConvo` | `render(host, {run, spec: {task, exec}, brief, live, fetchJSON, rerender, diffHash, closeHref, focus})`: an ExecutionTranscript as a timeline, with search, the errors and, while the execution runs, a read of its log every 2.5 s; `focus` (an event index) opens it at that event once and stops following the end |
|
|
1188
1437
|
| `files.js` | `ForgeFiles` | `matrix(data, run, opts)` (pure: Files as rows of dirs and files against task columns by wave) and `render(host, data, {run, sel, onSelectTask, diffHref, prefs, savePrefs})`: the run's Files mode. Also a CommonJS module |
|
|
1189
1438
|
| `cloudmodel.js` | `ForgeCloudModel` | pure: projects, per-run facts, the cloud's filters, its five layouts (anchors from every run, dragged runs kept), label picking, layout files. Also a CommonJS module |
|
|
1190
1439
|
| `cloudui.js` | `ForgeCloudUI` | `create(root, ctx)`: the cloud's filter panel, layout and shape switches, position tools, legend and run card; a list of the same runs without 3D |
|
|
@@ -1201,7 +1450,7 @@ Routes (the URL hash): `#/` the map of every run; `#/cloud`, `#/cloud/runs/<key>
|
|
|
1201
1450
|
selected), `#/cloud/projects/<id>` (a project in focus), `#/cloud/models/<alias>` (the cloud
|
|
1202
1451
|
filtered to that model); `#/models` the leaderboard; `#/runs/<key>`; `…/tasks/<id>`;
|
|
1203
1452
|
`…/tasks/<id>/executions/<name>`; `…/executions/<name>` (an execution that belongs to no
|
|
1204
|
-
task); `…/final-review[/<name>]`; `…/verification`; `…/integration`; `…/tasks/<id>/fractal/<node>`;
|
|
1453
|
+
task); an agent's conversation, `…/executions/<name>/conversation[/event/<n>]` after either; `…/final-review[/<name>]`; `…/verification`; `…/integration`; `…/tasks/<id>/fractal/<node>`;
|
|
1205
1454
|
and the diff viewer: `…/tasks/<id>/diff[/<source>][/file/<path>]` (`source` is `current`, `prev`,
|
|
1206
1455
|
`committed`, `existing` or an execution), `…/final-review/<name>/diff[/file/<path>]`,
|
|
1207
1456
|
`…/tasks/<id>/fractal/<node>/diff[/file/<path>]` (`path` percent-encoded whole).
|