@giamme/forge 0.18.0 → 0.20.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.
- package/CHANGELOG.md +49 -0
- package/README.md +1 -0
- package/SKILL.md +19 -2
- package/VERSION +1 -1
- package/docs/artifacts.md +25 -1
- package/docs/commands.md +217 -18
- package/docs/decomposed-runs.md +114 -1
- package/docs/development.md +2 -1
- package/docs/forge-ui.md +138 -18
- package/docs/memory.md +25 -4
- package/docs/models.md +8 -0
- package/docs/reviews.md +122 -0
- package/forge +26 -3
- package/package.json +2 -1
- package/references/dataset.md +20 -1
- package/references/decompose.md +641 -41
- package/references/harnesses.md +18 -3
- package/references/memory.md +30 -5
- package/references/planning.md +43 -14
- package/references/ui.md +53 -6
- package/registry.tsv +8 -3
- package/scripts/forge-brief.py +88 -3
- package/scripts/forge-compare.py +4 -3
- package/scripts/forge-contract.py +202 -27
- package/scripts/forge-control.py +117 -5
- package/scripts/forge-dispatch.sh +34 -5
- package/scripts/forge-findings.py +675 -0
- package/scripts/forge-group.py +496 -0
- package/scripts/forge-groups.py +89 -0
- package/scripts/forge-handoff.py +1128 -0
- package/scripts/forge-issues.py +228 -97
- package/scripts/forge-lib-group.sh +641 -0
- package/scripts/forge-lib-plans.sh +339 -3
- package/scripts/forge-lib-task.sh +197 -4
- package/scripts/forge-memory.sh +711 -17
- package/scripts/forge-parallel.sh +721 -38
- package/scripts/forge-planner.py +104 -8
- package/scripts/forge-route.py +190 -12
- package/scripts/forge-runs.py +9 -5
- package/scripts/forge-schedule.py +417 -52
- package/scripts/forge-solo.sh +2 -0
- package/scripts/forge-sweep.py +199 -44
- package/scripts/forge-worktrees.py +243 -0
- package/scripts/forge_brief/__init__.py +294 -50
- package/scripts/forge_brief/answers.py +58 -11
- package/scripts/forge_brief/proposals.py +1630 -0
- package/scripts/forge_dataset/efforts.py +4 -3
- package/scripts/forge_dataset/export.py +24 -12
- package/scripts/forge_dataset/facts.py +5 -3
- package/scripts/forge_dataset/forecast.py +8 -18
- package/scripts/forge_dataset/harvest.py +204 -9
- package/scripts/forge_dataset/history.py +11 -6
- package/scripts/forge_dataset/importer.py +65 -1
- package/scripts/forge_dataset/names.py +66 -0
- package/scripts/forge_dataset/reviewers.py +5 -2
- package/scripts/forge_dataset/risk.py +6 -3
- package/scripts/forge_dataset/routing.py +6 -1
- package/scripts/forge_findings/__init__.py +17 -0
- package/scripts/forge_findings/apply.py +441 -0
- package/scripts/forge_findings/status.py +43 -0
- package/scripts/forge_findings/store.py +583 -0
- package/scripts/forge_findings/tags.py +53 -0
- package/scripts/forge_findings/triage.py +603 -0
- package/scripts/forge_groups/__init__.py +308 -0
- package/scripts/forge_groups/attribute.py +289 -0
- package/scripts/forge_groups/review.py +286 -0
- package/scripts/forge_identity.py +327 -0
- package/scripts/forge_memory_list.py +7 -3
- package/scripts/forge_owner.py +152 -0
- package/scripts/forge_side/__init__.py +228 -38
- package/ui/docs/api.md +303 -29
- package/ui/forge_ui/control.py +1018 -6
- package/ui/forge_ui/executions.py +8 -1
- package/ui/forge_ui/export.py +31 -4
- package/ui/forge_ui/groups.py +264 -0
- package/ui/forge_ui/models.py +70 -8
- package/ui/forge_ui/projects.py +209 -22
- package/ui/forge_ui/reader.py +262 -19
- package/ui/forge_ui/server.py +4 -0
- package/ui/forge_ui/static/app.js +93 -13
- package/ui/forge_ui/static/briefview.js +350 -47
- package/ui/forge_ui/static/diffview.js +86 -1
- package/ui/forge_ui/static/findingsactions.js +201 -0
- package/ui/forge_ui/static/groupsview.js +332 -0
- package/ui/forge_ui/static/index.html +3 -0
- package/ui/forge_ui/static/panel.js +127 -7
- package/ui/forge_ui/static/projectsview.js +764 -30
- package/ui/forge_ui/static/runmodel.js +14 -3
- package/ui/forge_ui/static/storageview.js +91 -10
- package/ui/forge_ui/static/style.css +138 -5
- package/ui/forge_ui/static/triageview.js +423 -0
- package/ui/forge_ui/static/worktreesview.js +233 -12
- package/ui/forge_ui/storage.py +14 -0
package/forge
CHANGED
|
@@ -23,7 +23,8 @@ usage() {
|
|
|
23
23
|
' jev the old decision-model commands, replaced by decide (kept for one release)' \
|
|
24
24
|
' dataset every run'"'"'s inputs and outcomes: status, dump, import, export, outcomes, ...' \
|
|
25
25
|
' issues file the review findings a run left open as GitHub issues (plain gh)' \
|
|
26
|
-
'
|
|
26
|
+
' findings every review finding of a repository: show, mark, tag, triage' \
|
|
27
|
+
' memory a repository'"'"'s project memory: show, learnings --json (each learning and its state), prune, forget' \
|
|
27
28
|
' pr a draft pull-request description for a finished run (--create opens it with gh)' \
|
|
28
29
|
' ui forge-ui, the run viewer: open [DIR], status, stop' \
|
|
29
30
|
' runs this repo'"'"'s recent runs in the terminal: state, verdicts and run dirs; compact, rm, rerun with another model, compare' \
|
|
@@ -31,6 +32,9 @@ usage() {
|
|
|
31
32
|
' retro notes on what got in a run'"'"'s way, kept on this machine' \
|
|
32
33
|
' summarize a task'"'"'s generated summary, rewritten only when its inputs change' \
|
|
33
34
|
' brief each task'"'"'s open questions, asked before it starts: write, show' \
|
|
35
|
+
' group a plan'"'"'s task groups: show, retry a review=group group, set a title or goal' \
|
|
36
|
+
' handoff a run'"'"'s state for the next session, with the commands to carry on: show (the default)' \
|
|
37
|
+
' worktrees the worktrees forge created: rm removes the safe ones by forge-ui'"'"'s rules' \
|
|
34
38
|
' watch follow runs live and get a desktop notification when one finishes or fails' \
|
|
35
39
|
' control a plan'"'"'s live controls: show, set (QA threshold, retries, timeouts), pin, unpin' \
|
|
36
40
|
' config every config source: show, and set/unset the per-repo .forge files and Jev on/off' \
|
|
@@ -103,13 +107,18 @@ case "${1:-}" in
|
|
|
103
107
|
shift
|
|
104
108
|
exec python3 "$ROOT/scripts/forge-issues.py" "$@"
|
|
105
109
|
;;
|
|
110
|
+
findings)
|
|
111
|
+
shift
|
|
112
|
+
help_if_bare $# python3 "$ROOT/scripts/forge-findings.py"
|
|
113
|
+
exec python3 "$ROOT/scripts/forge-findings.py" "$@"
|
|
114
|
+
;;
|
|
106
115
|
memory)
|
|
107
116
|
shift
|
|
108
117
|
# only the commands its help lists: note and record are what a run writes into the ledger, not a person
|
|
109
118
|
case "${1:-}" in
|
|
110
|
-
show|learnings|prune|spend|inject|-h|--help|help) ;;
|
|
119
|
+
show|learnings|prune|spend|inject|forget|add|edit|-h|--help|help) ;;
|
|
111
120
|
'') /bin/bash "$ROOT/scripts/forge-memory.sh" --help >&2; exit 2 ;;
|
|
112
|
-
*) printf 'forge memory: unknown command: %s (show, learnings, prune, spend or
|
|
121
|
+
*) printf 'forge memory: unknown command: %s (show, learnings, prune, spend, inject or forget, add or edit)\n' "$1" >&2; exit 2 ;;
|
|
113
122
|
esac
|
|
114
123
|
exec /bin/bash "$ROOT/scripts/forge-memory.sh" "$@"
|
|
115
124
|
;;
|
|
@@ -145,6 +154,20 @@ case "${1:-}" in
|
|
|
145
154
|
help_if_bare $# python3 "$ROOT/scripts/forge-brief.py"
|
|
146
155
|
exec python3 "$ROOT/scripts/forge-brief.py" "$@"
|
|
147
156
|
;;
|
|
157
|
+
group)
|
|
158
|
+
shift
|
|
159
|
+
help_if_bare $# python3 "$ROOT/scripts/forge-group.py"
|
|
160
|
+
exec python3 "$ROOT/scripts/forge-group.py" "$@"
|
|
161
|
+
;;
|
|
162
|
+
handoff)
|
|
163
|
+
shift
|
|
164
|
+
exec python3 "$ROOT/scripts/forge-handoff.py" "$@"
|
|
165
|
+
;;
|
|
166
|
+
worktrees)
|
|
167
|
+
shift
|
|
168
|
+
help_if_bare $# python3 "$ROOT/scripts/forge-worktrees.py"
|
|
169
|
+
exec python3 "$ROOT/scripts/forge-worktrees.py" "$@"
|
|
170
|
+
;;
|
|
148
171
|
watch)
|
|
149
172
|
shift
|
|
150
173
|
exec python3 "$ROOT/scripts/forge-watch.py" "$@"
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@giamme/forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Multi-model coding with a reviewer that reads the code: plan, build in parallel worktrees, review every real diff, merge only what passes.",
|
|
5
5
|
"keywords": ["claude-code", "codex", "opencode", "agent-skill", "code-review", "multi-model"],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Giamme",
|
|
8
8
|
"repository": { "type": "git", "url": "git+https://github.com/Giamme/forge.git" },
|
|
9
|
+
"homepage": "https://giamme.github.io/forge/",
|
|
9
10
|
"bin": { "forge": "forge" },
|
|
10
11
|
"os": ["darwin", "linux"],
|
|
11
12
|
"files": [
|
package/references/dataset.md
CHANGED
|
@@ -45,6 +45,8 @@ time order: an attempt that PASSed, then a merge that CONFLICTed, then a human `
|
|
|
45
45
|
| `event` `run_compacted` | `forge runs compact` (by hand, or `auto` in the background at run start) | after the strict import and the removals, fail-open: `path`, `bytes_freed`, `snapshots_removed`, `snapshot_bytes`, `logs_compressed`, `log_bytes_freed`, `auto` |
|
|
46
46
|
| `event` `shadow_review` | shadow review | how an opt-in second review ended (`done`, `invalid`, `overtime`, `orphaned`, ...), with the reviewed commit and both specs. Its dispatch is recorded with role `qa_shadow` |
|
|
47
47
|
| `event` `side_dispatch` | a brief or summary dispatch that `forge run`, `forge brief write`, `forge summarize` or the scheduler's summaries started, or could not start | `kind` (`brief` or `summary`), `task`, `spec`, `ok`, and `reason`: null on success, else `timeout`, `error`, `missing` or `cap`. Its dispatch is recorded with role `side_brief` or `side_summary` |
|
|
48
|
+
| `event` `group_review` | one QA round of a `review=group` group | `group`, `round`, `members`, `reviewer`, `verdict`, `gated`, `implicated`, `ambiguous`, `findings`, `diff_bytes`, `prompt_bytes`. The dispatch itself is a separate `dispatch` with `scope` `group` |
|
|
49
|
+
| `event` `group_merge` | a group merge, conflict, or invalidation | `group`, `status` (`MERGED`, `CONFLICT`, or `INVALIDATED`). `MERGED` also has `commit`, `members` and `integration`. `CONFLICT` has `commit` and `conflicts`. `INVALIDATED` has `reason`. Each member's own `merge` event also carries `group` |
|
|
48
50
|
| `event` `retro_note` | a retro note stored by `forge retro note`, or by `forge retro record` after a dispatch | the note's fields (`type`, `fixable_by`, `summary`, `blocking`, `tried`, `evidence`), forge's context (`role`, `spec`, `alias`, `harness`, `effort`, `tier`, `task`, `attempt`, `run_id`, `version`, `os`, `t`) and `check` (`verified` or `claimed`). Fail-open: the plan's `retro/notes.jsonl` is the record |
|
|
49
51
|
| `event` `brief_question` | a brief question stored by `forge brief write` | `task`, `qid`, `scope`, `must_answer` (kept only under `gated`), and `parked`: true for a `wave` or `plan` question, which is kept in `brief.parked.json` |
|
|
50
52
|
| `event` `brief_answer` | an answer given with `forge brief answer` | `task`, `qid`, `actor` (`cli`, or `ui` from forge-ui), and `late`: true once the task has started. The answer is also logged in `control.log` as an `answer` change |
|
|
@@ -84,8 +86,25 @@ disk stay `side.*`. Review history, finding facts, review exports and forge-ui's
|
|
|
84
86
|
skip every `side_*` role, so a brief or summary is never counted as a review. A bare `side` is
|
|
85
87
|
the dispatch role itself, not one of these.
|
|
86
88
|
|
|
89
|
+
A group review is one QA dispatch for several tasks (`forge-dispatch.sh qa` with
|
|
90
|
+
`--run-dir <plan>/groups/<gid>`). It is recorded with `scope` `group`, an empty task,
|
|
91
|
+
`group` (the group id), `members` (the task ids from `groups.tsv`, in order) and `round`
|
|
92
|
+
(the number in `groups/<gid>/round` when the dispatch was captured live; an import reads
|
|
93
|
+
the dispatch's own `attempts/qa-*/group.round`, and for a run recorded before that file, the
|
|
94
|
+
round from `members.tsv`, matched to `qa.round-<n>.last` when that file exists). It is
|
|
95
|
+
not a task attempt. Reviewer leaderboards, `forge dataset` reviewers, pairs, routing, tiers
|
|
96
|
+
and efforts, review history, finding facts, the review rows of `forge dataset export`, and
|
|
97
|
+
forge-ui's model views skip `scope` `group` the way they skip a side dispatch. The dispatch
|
|
98
|
+
stays in the store, flagged `scope` `group`, so a later measurement of group review quality
|
|
99
|
+
and cost can use it. A member attempt the group judged is linked on import (`review_scope`
|
|
100
|
+
`group`, plus `group` and `round`) and does not keep a copy of that review's `qa.last` or
|
|
101
|
+
`qa.gate`. It has no task-level QA dispatch of its own. A plan with no group review imports
|
|
102
|
+
the same events as before.
|
|
103
|
+
|
|
87
104
|
`plan --reviewer-session` writes `$PLAN/reviewer_session` (`on`). The plan event records
|
|
88
|
-
it in `options
|
|
105
|
+
it in `options`, and `--reviewer-session-rate` adds `reviewer_session_rate`; which tasks were
|
|
106
|
+
sampled is in `$PLAN/reviewer_session_tasks`, and the others' `review_sessions.tsv` rows say
|
|
107
|
+
`not-sampled`. The file joins the plan id only when it is present, so every plan already
|
|
89
108
|
in a store keeps its id, and turning the experiment on stores a new plan event.
|
|
90
109
|
`plan --implementer-session` (`$PLAN/implementer_session`, `on`) is recorded the same way, and
|
|
91
110
|
`plan --pre-review-tests` joins the plan id the same way and is listed in `flags`. `plan-gates.json`
|