Skip to content
Merged
Show file tree
Hide file tree
Changes from 67 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
3ee6810
docs(fathom): add stacked reviews design
crodris Aug 8, 2026
3494def
docs(fathom): add stacked reviews implementation plan
crodris Aug 8, 2026
779c04c
docs(fathom): scope the em dash check off the plan file itself
crodris Aug 8, 2026
02817ff
feat(fathom): give stackedReviews behavior in the forge contract
crodris Aug 8, 2026
6c189f6
docs(fathom): correct the section ref and grep expectation in task 1
crodris Aug 8, 2026
bbc89ed
fix(fathom): point the none row at the section that explains it
crodris Aug 8, 2026
02f089d
feat(fathom): implement dependsOn in the bundled forge adapters
crodris Aug 8, 2026
f2a70e4
feat(fathom): classify the bundle-split stop and add the stacking field
crodris Aug 8, 2026
d611b5f
docs(fathom): correct the stacking grep expectation in task 3
crodris Aug 8, 2026
3bfbc43
feat(fathom): add bundle records, per-bundle reconciliation, and stac…
crodris Aug 8, 2026
90750b7
docs(fathom): add the bundle suffix and shorten the task 4 subject
crodris Aug 8, 2026
ee7daa8
fix(fathom): give the bundle review record a self-describing suffix
crodris Aug 8, 2026
032bea5
feat(fathom): record stack structure and cross-bundle task deps
crodris Aug 8, 2026
a4ea74b
fix(fathom): require a full task chain to guarantee stack order
crodris Aug 8, 2026
d1a153b
fix(fathom): require a full task chain for stack ordering
crodris Aug 8, 2026
4f947d2
feat(fathom): propose a bundle split during breakdown
crodris Aug 8, 2026
fd03e04
docs(fathom): fix the step-numbering grep for bsd grep
crodris Aug 8, 2026
beb29e7
feat(fathom): open one review per bundle as each bundle completes
crodris Aug 8, 2026
09c6c83
fix(fathom): make the two step 11 paths mutually exclusive
crodris Aug 8, 2026
c7f3da5
fix(fathom): make the two step 11 paths mutually exclusive
crodris Aug 8, 2026
f811d68
fix(fathom): state that a stacked issue never re-enters step 11
crodris Aug 8, 2026
15778e5
fix(fathom): state that a stacked issue never re-enters step 11
crodris Aug 8, 2026
9f2df88
feat(fathom): sweep every bundle and restack on ancestry
crodris Aug 8, 2026
c4a101d
docs(fathom): correct the force-with-lease grep expectation
crodris Aug 8, 2026
df65511
fix(fathom): make the abandoned-bundle sweep case terminal
crodris Aug 8, 2026
29c6285
fix(fathom): make the abandoned-bundle sweep case terminal
crodris Aug 8, 2026
3130e27
chore(fathom): release 2.2.0 with stacked reviews
crodris Aug 8, 2026
7278886
fix(fathom): suppress the merge-closer and order the split before tasks
crodris Aug 8, 2026
4692594
fix(fathom): settle the split before any createTask call
crodris Aug 8, 2026
5154ec3
fix(fathom): suppress the merge-closer for a stacked issue
crodris Aug 8, 2026
41a2f60
fix(fathom): recover the stack before a resumed run implements
crodris Aug 8, 2026
afb6b40
fix(fathom): sweep every recorded review, in one documented order
crodris Aug 8, 2026
8ee9a06
fix(fathom): close the parent task on a stacked issue too
crodris Aug 8, 2026
d23b4e8
fix(fathom): decide the branch before step 7 creates one
crodris Aug 8, 2026
adade93
fix(fathom): decide the split before any tracker write
crodris Aug 8, 2026
120b189
fix(fathom): quote the suppression-marker scan in both templates
crodris Aug 8, 2026
b593379
fix(fathom): move init and parentTask below the proposal stop
crodris Aug 8, 2026
e7249e1
fix(fathom): default absent stacking field to never
crodris Aug 8, 2026
4a12871
fix(fathom): handle an unknown review state in the sweep
crodris Aug 8, 2026
c6b77f1
fix(fathom): commit each bundle review id as it is recorded
crodris Aug 8, 2026
a0c2f3e
fix(fathom): resume a stacked run whose finalization was cut short
crodris Aug 8, 2026
0ec76fd
docs(fathom): align the plan with the never default
crodris Aug 8, 2026
c7ff6dd
docs(fathom): fix the last stale stacking default in the plan
crodris Aug 8, 2026
916a0da
fix(fathom): make the cut-point criterion decidable at plan time
crodris Aug 8, 2026
8658270
fix(fathom): make the skill's cut-point criterion plan-decidable
crodris Aug 8, 2026
fc1b897
fix(fathom): make every bundle review record visible to the sweep
crodris Aug 8, 2026
156f3db
fix(fathom): backfill a reused bundle review into the plan record
crodris Aug 8, 2026
cbdd1b8
fix(fathom): require a record for every bundle before sweeping
crodris Aug 8, 2026
2394e99
fix(fathom): record finalization once and consult it before closing
crodris Aug 8, 2026
e2de7ff
docs(fathom): mark the stacked-reviews plan as a historical record
crodris Aug 8, 2026
e97c2b0
fix(fathom): scope the createTask dep guarantee to child tasks
crodris Aug 8, 2026
6cf46b7
fix(fathom): reuse the adopt branch on the split creation path
crodris Aug 8, 2026
843969f
fix(fathom): match a bundle review on its head and base pair
crodris Aug 8, 2026
257c15e
fix(fathom): verify the staged diff before a bookkeeping commit
crodris Aug 8, 2026
89fb748
fix(fathom): apply inReview when bundle 1's review is reused
crodris Aug 8, 2026
e9ff6b7
docs(fathom): record bundle membership in one place only
crodris Aug 8, 2026
b98ccda
fix(fathom): stop claiming no branch exists at the split stop
crodris Aug 8, 2026
142fa50
fix(fathom): commit leftover changes before reconciling the range
crodris Aug 8, 2026
01ce842
fix(fathom): guard the per-bundle routine against a manual handoff
crodris Aug 8, 2026
e4d1c92
fix(fathom): state a true rationale for the bundle-split skip entry
crodris Aug 8, 2026
f94c22b
fix(fathom): return candidate records from findReviewByBranch
crodris Aug 8, 2026
addf204
fix(fathom): fold a resolved legacy review id into the issue's set
crodris Aug 8, 2026
56e0396
fix(fathom): hold rather than open a review absence cannot prove
crodris Aug 8, 2026
ef9c914
fix(fathom): mark a bundle review pending before opening it
crodris Aug 8, 2026
b960da7
fix(fathom): define the pending review marker honestly
crodris Aug 8, 2026
0d94041
fix(fathom): settle what the depends-on body line represents
crodris Aug 8, 2026
c77083b
fix(fathom): backfill a matched review id whatever its state
crodris Aug 8, 2026
f5c8c1d
fix(fathom): record pending-review recovery on a branch that exists
crodris Aug 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "fathom",
"source": "./",
"description": "Two agent skills, scaffold and execute, that carry a tracker issue from requirements to an open code review, on GitHub or any other forge with an adapter. Works with Asana or Linear, runs on Claude Code and Kiro, tracks tasks in beads or a committed markdown checklist, and resumes from repository state.",
"version": "2.1.0",
"version": "2.2.0",
"author": {
"name": "crod951"
},
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fathom",
"version": "2.1.0",
"version": "2.2.0",
"description": "Fathom provides the execute and scaffold skills for driving Asana or Linear tracker issues from requirements to an open code review, on GitHub or any other forge with an adapter. Agent-portable skills for Claude Code and Kiro with resumable, task-tracked implementation runs.",
"author": {
"name": "crod951",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ When the installer asks which skills to take, take all of them; `fathom-shared`

## Available Plugins

### fathom (v2.1.0)
### fathom (v2.2.0)

Fathom provides two agent skills, execute and scaffold, that carry a tracker issue from requirements to an open code review, on GitHub or any other forge with an adapter.
It works with Asana or Linear as your issue tracker, and both skills run unchanged on Claude Code and Kiro.
Expand Down
288 changes: 288 additions & 0 deletions docs/plans/2026-08-07-fathom-stacked-reviews-design.md

Large diffs are not rendered by default.

964 changes: 964 additions & 0 deletions docs/plans/2026-08-07-fathom-stacked-reviews-plan.md

Large diffs are not rendered by default.

215 changes: 207 additions & 8 deletions skills/execute/SKILL.md

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions skills/fathom-shared/approval.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Skipping them changes how much the run interrupts you, not whether it is correct
Resolve it by that precedence and report the choice rather than asking.
- Any first-run setup question whose answer is unambiguous: one destination available, or tracker state names that match the three phases exactly.
Record the answer, and note in the profile that it was auto-accepted rather than confirmed, so a wrong destination is traceable later.
- The bundle-split proposal in `execute`.
Apply the proposed split and report the bundles rather than asking for confirmation first.
This belongs here rather than on the safety list because it fires before any commit or review exists, so being wrong destroys nothing and misdirects nothing, which is the shape of every other item on this list.
Bundle 1's branch does exist by then, since step 7 creates it before step 8 runs, but that branch is the one a single-review run needs anyway, so declining the split wastes nothing and leaves nothing to clean up.
Being on this list is not a claim that an applied split is undone by a later run: in auto mode the split is already written into the breakdown by the time anyone reads the report, and the task dependency chain and the plan document's `Bundles` section persist until someone edits them.
It is skipped only when the profile's `stacking` field permits a split at all; `stacking: never`, and an absent field which means the same thing, suppress the split itself, in both modes, rather than suppressing the question.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

## What auto mode never skips

Expand Down Expand Up @@ -75,5 +81,18 @@ Because the profile is committed, teammates inherit the choice.
Editing that field changes it permanently; an invocation phrase changes it for one run.
When one skill hands off to the other, carry the resolved mode across so a per-run override is not lost at the boundary; say which mode the handed-off run is using.

A second field, `stacking`, sits alongside `approval` and answers a different question: whether `execute` may split one issue into a stack of dependent reviews at all.
It holds `propose` or `never`, and it defaults to `never` when the field is absent.

`propose` means the agent may propose a split when the breakdown crosses the threshold in `execute`, with the `approval` field above deciding whether that proposal is a question or a report.
`never` means this repository always produces one review per issue, in both approval modes, in the same permanent way that `forge: none` makes the manual tier permanent.

The default is `never` because stacking is opt-in, and a default of `propose` would not be.
An existing repository running in `auto` mode has a profile written before this field existed and has never asked for stacking, yet under a `propose` default its next large issue would be split into a stack and reported rather than asked about, changing that repository's behavior without anyone opting in.
A repository gets stacking only by writing `stacking: propose` into its profile, so every repository that has not written it keeps producing exactly one review per issue.

The field deliberately has two values rather than three.
An `ask` or `auto` value here would restate the `approval` field recorded a few lines above it in the same profile, and two fields that can disagree about the same question will eventually disagree.

When auto mode auto-accepted a setup answer rather than having it confirmed, record that alongside the value, for example `default-destination: Prototypes (1209000000000001) # auto-accepted, only option`.
A later reader needs to know which answers a human actually gave.
65 changes: 63 additions & 2 deletions skills/fathom-shared/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ Name the task in the body so the commit ties back to task memory.
## The plan document

During breakdown, write a human-readable plan for the issue at `.fathom/plans/<ISSUE-REF>.md`, and commit it with the breakdown.
This document is a reference artifact for people, never resume state; task status always lives in the resolved memory backend.
This document is a reference artifact for people, and it never carries task status; status always lives in the resolved memory backend, so nothing here is ever consulted to learn what is done.
It does carry structure, which is a different thing: the branch, the review ids, and the bundles of a stacked issue are recorded here, and a resumed run reads them back rather than remembering them from a previous invocation.
`memory.md` draws the same line, and it is what keeps this from being dual truth: structure is decided once and does not change as the work proceeds, while status changes with every task and lives in exactly one place.

Include these sections:

Expand All @@ -58,6 +60,39 @@ Include these sections:
- **Codebase context** - the files, modules, and existing patterns this work touches, with paths.
- **Implementation approach** - how the change will be made, including anything deliberately out of scope.
- **Tasks** - the planned units of work with their sub-issue links.
- **Bundles** - present only when this issue was split into a stack, and omitted entirely otherwise.
One line per bundle, in stack order, each reading `- Bundle <k>/<N>: <branch> - <sub-issue refs, comma separated>`.
Add a `- Review: pending (bundle k/N)` marker beneath a bundle before its review is attempted, then replace that marker with a `- Review: <id> <url> (bundle k/N)` line once its review exists.
The suffix is redundant with the nesting on purpose: the sweep reads these lines individually, and a self-describing record survives being read out of its surrounding context.
The marker means only that a run reached the point of calling `openReview` for that bundle: it is committed before the call, so the call may or may not have started and a review may or may not exist.
Its job is to force the next run to look the review up rather than to prove that any review was created.
It names no id, so nothing can be looked up from the marker itself, and every reader collecting review ids treats a bundle carrying only the marker as carrying no record at all.
The done-on-merge sweep therefore counts such a bundle among the missing records and leaves the whole issue undecided, and `execute` holds on it rather than opening a review that may duplicate one.
What the marker separates is a bundle no run has ever tried to open a review for, which carries no line at all, from a bundle where a review may exist and no record names it, which carries the marker.
Branch absence cannot make that distinction, because a forge retains a review after its head branch is deleted, so a bundle branch deleted or reused before its record was durable leaves a review that no branch and no record names; that is why the marker is written ahead of the call rather than inferred afterwards.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
When the lookup cannot settle whether a review exists, the run holds and reports the marker, and the user confirms whether one exists.
Record a confirmation that none exists by replacing that bundle's marker with a `- Review: none confirmed (bundle k/N)` line, committed and pushed on that bundle's branch as the same kind of bookkeeping commit, so the next run opens that bundle's review instead of holding again.
Every reader that treats the bare marker as no record treats a `none confirmed` line the same way, since neither names an id.
A hold that recorded nothing would stop every later run identically, which is why the confirmation lands in this section rather than staying in the conversation that produced it.
Each of those lines, the marker included, is committed and pushed as soon as it is written rather than riding the run's final closing commit, so that both the intent and the review id are durable and visible from another clone the moment each is written; `execute` describes exactly where in its per-bundle routine that happens.
Each one lands on its own bundle's branch, though, because that is the branch the run is on when it writes the line.
So a checkout of the base branch carries the records of the bundles that have already merged into it and none of the records above them, and reading only what that checkout holds would judge a three-bundle stack on one bundle's record.
The branch name on each `- Bundle` line is what makes the rest reachable: the done-on-merge sweep fetches every branch named in this section and reads that branch's own copy of this document to collect the `- Review:` lines it cannot see locally, as `trackers.md` describes.
Those branch names are therefore load-bearing for the sweep as well as for a resumed run, and a bundle line without one leaves that bundle's record unreachable.
Collecting the records this way is what keeps them in one place: the alternative is mirroring every review id into a second store that the sweep can read directly, and two records of the same fact can disagree, while a fetch is read-only git work that needs no write anywhere.
This section is the durable record a resumed run reads to recover the stack, so write it when the split is confirmed rather than when the first review opens.
- **Merge-closer** - present only when this issue was split into a stack, and omitted entirely otherwise.
One line reading `- Merge-closer: suppressed`, written when the split is confirmed, alongside the `Bundles` section.
The merge-closer Action matches a merged branch against the records under `.fathom/` and knows nothing about stacks, and every bundle's branch is recorded there, so without this line the first bundle to merge closes the whole issue while most of the work is still open and unreviewed.
That close is also permanent and silent, because the next sweep reads the issue as already complete and does nothing.
The Action reads this line and takes no action for the issue, which leaves closure to the sweep, and the sweep already waits for every bundle to report merged.
One mechanism closes a stacked issue rather than two that disagree.
- **Finalization** - one line reading `- Finalization: complete`, absent until every one of the issue's closing actions has run.
The last of those actions writes it, so it rides the run's final closing commit and becomes durable at the same moment the completed task state does.
This is the one durable record that an issue's one-time closing actions have happened, and `execute` consults it before finalizing and stops immediately when it is present.
A stacked issue needs that: its last bundle finalizes the issue directly as it finishes, and the implementation loop then drains and reaches the finalizing step again, so without one recorded fact to consult the closing actions can run twice.
This is not task status and does not belong in the memory backend, which knows which tasks are closed and nothing about whether the completion comment was posted or the closing commit pushed.
It is the same kind of line as `Merge-closer` above: a fact about this issue that another mechanism reads later.
- **Testing strategy** - which tests will prove the work, and which existing tests could regress.
- **Notes** - open questions, risks, and decisions taken during the run.

Expand All @@ -76,12 +111,19 @@ Recording a real hash is impossible when no commit was made, so this converts a
A progress line describes repository state, so never name a commit that does not exist in the log.

Reconcile before finishing.
A task commit is one whose subject is scoped to this issue's ref and which implements a task; the breakdown commit, the plan document commit, and any task-state bookkeeping commit are not task commits.
A task commit is one whose subject is scoped to this issue's ref and which implements a task; the breakdown commit, every plan document commit including the per-bundle one that records a bundle's review id, and any task-state bookkeeping commit are not task commits.
Those bookkeeping commits are recognizable rather than a matter of judgment: each is typed `chore`, touches only records under `.fathom/`, and names no task, so none of them can be counted as the commit that implemented one.
Count them over the range from the resolved base branch to the current head, not over all history, since a branch inherits its base's commits.
Compare that count to the number of tasks closed for this issue.
Check the recorded hashes as well: every hash recorded at close must name a commit inside that same range, and each closed task's hash must be distinct, which catches a mismatch that subject-line counting can misclassify.
When the counts disagree, stop and report the discrepancy rather than opening a review: either a commit is missing, or tasks were combined into one commit, and both contradict the one-commit-per-task rule.

When the issue was split into a stack, reconcile once per bundle rather than once per issue, and do it before that bundle's review opens rather than at the end of the run.
Count over the range from that bundle's own base to that bundle's head: the resolved base branch for bundle 1, and branch k-1 for bundle k.
Compare that count to the number of tasks closed for that bundle only.
A stack-wide count over the whole range would pass even when one bundle carried another bundle's commits, which is exactly the mistake the check exists to catch.
Stop on a mismatch the same way, and do not open that bundle's review.

This check guards a hazard that is universal across forges rather than specific to any one of them: every forge reviews committed work only, so anything left staged or uncommitted is silently absent from the review, with no error raised anywhere.

## Review test plan
Expand All @@ -100,3 +142,22 @@ When the project cannot run tests at all, say that plainly here rather than leav

After each task closes, print one line so a long autonomous run stays legible: the task position in the queue, its id, the commit subject, the test result, and how many tasks remain.
Report the resolved tracker and memory backend once at the start of the run, and state the backend explicitly whenever it differs from what other open issues in this repository are using.

## Review bodies in a stack

When one issue produced a stack of reviews, the issue-closing reference goes in the last bundle's review body only.

`execute` puts `Closes <ref>` in the body for a Linear issue, or the task's URL for an Asana task, and both are read by the forge's tracker integration on merge.
Repeating either in every bundle means the first bundle's merge closes the issue while most of the work is still open and unreviewed.

Every bundle's body carries two additional lines instead:

- `Part <k> of <N>` so a reviewer knows this diff is a slice rather than the whole change.
- `Depends on <previous review url>`, omitted for bundle 1, which depends on nothing.

`forges/github.md` forbids encoding a stack dependency a second way, and this body line is not that.
The `Depends on <url>` line in a review body is prose for a human reviewer and carries no machine meaning, so it is not a second representation of the dependency; the prohibition is on machine-readable representations such as a label or an extra API call.
The machine-readable representation is whatever the resolved forge declares: the `dependsOn` argument to `openReview` on a forge with a dependency mechanism of its own, and the base branch alone on a `retarget` forge, whose adapter ignores that argument.

Earlier bundles still name the issue for context, as a plain link with no closing keyword.
The distinction is between referencing an issue and instructing the forge to close it, and only the last bundle does the second one.
Loading
Loading