@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.
Files changed (93) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +1 -0
  3. package/SKILL.md +19 -2
  4. package/VERSION +1 -1
  5. package/docs/artifacts.md +25 -1
  6. package/docs/commands.md +217 -18
  7. package/docs/decomposed-runs.md +114 -1
  8. package/docs/development.md +2 -1
  9. package/docs/forge-ui.md +138 -18
  10. package/docs/memory.md +25 -4
  11. package/docs/models.md +8 -0
  12. package/docs/reviews.md +122 -0
  13. package/forge +26 -3
  14. package/package.json +2 -1
  15. package/references/dataset.md +20 -1
  16. package/references/decompose.md +641 -41
  17. package/references/harnesses.md +18 -3
  18. package/references/memory.md +30 -5
  19. package/references/planning.md +43 -14
  20. package/references/ui.md +53 -6
  21. package/registry.tsv +8 -3
  22. package/scripts/forge-brief.py +88 -3
  23. package/scripts/forge-compare.py +4 -3
  24. package/scripts/forge-contract.py +202 -27
  25. package/scripts/forge-control.py +117 -5
  26. package/scripts/forge-dispatch.sh +34 -5
  27. package/scripts/forge-findings.py +675 -0
  28. package/scripts/forge-group.py +496 -0
  29. package/scripts/forge-groups.py +89 -0
  30. package/scripts/forge-handoff.py +1128 -0
  31. package/scripts/forge-issues.py +228 -97
  32. package/scripts/forge-lib-group.sh +641 -0
  33. package/scripts/forge-lib-plans.sh +339 -3
  34. package/scripts/forge-lib-task.sh +197 -4
  35. package/scripts/forge-memory.sh +711 -17
  36. package/scripts/forge-parallel.sh +721 -38
  37. package/scripts/forge-planner.py +104 -8
  38. package/scripts/forge-route.py +190 -12
  39. package/scripts/forge-runs.py +9 -5
  40. package/scripts/forge-schedule.py +417 -52
  41. package/scripts/forge-solo.sh +2 -0
  42. package/scripts/forge-sweep.py +199 -44
  43. package/scripts/forge-worktrees.py +243 -0
  44. package/scripts/forge_brief/__init__.py +294 -50
  45. package/scripts/forge_brief/answers.py +58 -11
  46. package/scripts/forge_brief/proposals.py +1630 -0
  47. package/scripts/forge_dataset/efforts.py +4 -3
  48. package/scripts/forge_dataset/export.py +24 -12
  49. package/scripts/forge_dataset/facts.py +5 -3
  50. package/scripts/forge_dataset/forecast.py +8 -18
  51. package/scripts/forge_dataset/harvest.py +204 -9
  52. package/scripts/forge_dataset/history.py +11 -6
  53. package/scripts/forge_dataset/importer.py +65 -1
  54. package/scripts/forge_dataset/names.py +66 -0
  55. package/scripts/forge_dataset/reviewers.py +5 -2
  56. package/scripts/forge_dataset/risk.py +6 -3
  57. package/scripts/forge_dataset/routing.py +6 -1
  58. package/scripts/forge_findings/__init__.py +17 -0
  59. package/scripts/forge_findings/apply.py +441 -0
  60. package/scripts/forge_findings/status.py +43 -0
  61. package/scripts/forge_findings/store.py +583 -0
  62. package/scripts/forge_findings/tags.py +53 -0
  63. package/scripts/forge_findings/triage.py +603 -0
  64. package/scripts/forge_groups/__init__.py +308 -0
  65. package/scripts/forge_groups/attribute.py +289 -0
  66. package/scripts/forge_groups/review.py +286 -0
  67. package/scripts/forge_identity.py +327 -0
  68. package/scripts/forge_memory_list.py +7 -3
  69. package/scripts/forge_owner.py +152 -0
  70. package/scripts/forge_side/__init__.py +228 -38
  71. package/ui/docs/api.md +303 -29
  72. package/ui/forge_ui/control.py +1018 -6
  73. package/ui/forge_ui/executions.py +8 -1
  74. package/ui/forge_ui/export.py +31 -4
  75. package/ui/forge_ui/groups.py +264 -0
  76. package/ui/forge_ui/models.py +70 -8
  77. package/ui/forge_ui/projects.py +209 -22
  78. package/ui/forge_ui/reader.py +262 -19
  79. package/ui/forge_ui/server.py +4 -0
  80. package/ui/forge_ui/static/app.js +93 -13
  81. package/ui/forge_ui/static/briefview.js +350 -47
  82. package/ui/forge_ui/static/diffview.js +86 -1
  83. package/ui/forge_ui/static/findingsactions.js +201 -0
  84. package/ui/forge_ui/static/groupsview.js +332 -0
  85. package/ui/forge_ui/static/index.html +3 -0
  86. package/ui/forge_ui/static/panel.js +127 -7
  87. package/ui/forge_ui/static/projectsview.js +764 -30
  88. package/ui/forge_ui/static/runmodel.js +14 -3
  89. package/ui/forge_ui/static/storageview.js +91 -10
  90. package/ui/forge_ui/static/style.css +138 -5
  91. package/ui/forge_ui/static/triageview.js +423 -0
  92. package/ui/forge_ui/static/worktreesview.js +233 -12
  93. 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
- ' memory a repository'"'"'s project memory: show, learnings --json (each learning and its state), prune' \
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 inject)\n' "$1" >&2; exit 2 ;;
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.18.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": [
@@ -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`. The file joins the plan id only when it is present, so every plan already
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`