Skip to content
Merged
Show file tree
Hide file tree
Changes from 57 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.

173 changes: 166 additions & 7 deletions skills/execute/SKILL.md

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions skills/fathom-shared/approval.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ 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 branch, commit, or review exists, so a wrong answer costs nothing and is corrected by re-running with `stacking: never` or a different instruction.
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 +79,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.
51 changes: 49 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,29 @@ 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: <id> <url> (bundle k/N)` line beneath a bundle 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.
Each of those lines is committed and pushed as soon as it is written rather than riding the run's final closing commit, so that every review id is durable and visible from another clone the moment its review is published; `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 +101,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 +132,18 @@ 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.

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.
26 changes: 20 additions & 6 deletions skills/fathom-shared/forges.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Adapter files implement each one against a specific forge's tools; treat the ope
| --- | --- |
| `verifyForge()` | Cheap read-only preflight check that the forge is reachable and authenticated; returns verified or unverified and nothing else. |
| `resolveBase(branch)` | Confirm the named base branch exists on the remote and is a valid merge target. |
| `openReview(branch, base, title, body)` | Create the review for a branch against a base. Return a stable review id and the review's URL - or, on a forge where no review can be created, the manual-handoff result defined below. |
| `openReview(branch, base, title, body, dependsOn?)` | Create the review for a branch against a base. Return a stable review id and the review's URL - or, on a forge where no review can be created, the manual-handoff result defined below. `dependsOn` is optional and carries the review id this one is stacked on; it is absent for a standalone review and for the first bundle of a stack. |
| `publishReview(id)` | Move a draft review to the notified-review state, where the forge distinguishes the two. A no-op everywhere else. |
| `getReviewState(id)` | Return one of `open`, `merged`, `closed-unmerged`, or `unknown`, plus a merge timestamp when merged. |

Expand All @@ -35,9 +35,11 @@ A branch name is not a review id.
An adapter that cannot create reviews (see `generic-git.md`) returns this instead of an id, and it is a typed outcome of the contract rather than a failure.
A caller receiving it must not call `publishReview`, must not record a review id, and must say plainly that opening the review is now the user's step.

One optional operation exists beyond the five, for legacy records only: `findReviewByBranch(branch)`, which resolves a review id from a head branch name where the forge can do that (`github.md` implements it with a bounded head-branch listing).
One optional operation exists beyond the five, for repairing incomplete records: `findReviewByBranch(branch)`, which resolves a review id from a head branch name where the forge can do that (`github.md` implements it with a bounded head-branch listing).
Adapters that cannot implement it simply omit it.
The sweep uses it solely to repair records written before review ids were recorded; when the resolved adapter omits it, such a record cannot be swept, and the sweep reports that once instead of guessing.
It is used only where a review may exist while nothing in the repository records its id: the sweep repairs records written before review ids were recorded, and `execute` recovers a bundle whose review opened before its `- Review:` line was committed.
It resolves by head branch alone, so a caller that needs a review against a particular base must filter what comes back by that base itself rather than trusting a head branch to name exactly one review in a chained stack.
When the resolved adapter omits it, such a record cannot be repaired, and the caller reports that once instead of guessing.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

## Declared capabilities

Expand All @@ -51,13 +53,24 @@ An absent capability means false.
| `draftState` | true / false | Whether `publishReview` is meaningful, and when the `inReview` phase is applied. |
| `pushesForYou` | true / false | Whether `openReview` owns the push, or the calling skill pushes the branch first. |
| `reviewLookup` | `by-id` / `none` | Whether the done-on-merge sweep can run at all. |
| `stackedReviews` | `retarget` / `declared-dependency` / `none` | Reserved. No behavior depends on it yet. |
| `stackedReviews` | `retarget` / `declared-dependency` / `none` | How this adapter expresses that one review is stacked on another, in `openReview`. |

Forges differ in kind, not only in command names, which is the same lesson `agents.md:23-31` already records for tracker MCP builds whose tool coverage varies.
A capability that is false is a fact to design around, not a gap to work around.

`stackedReviews` is declared and unused.
It is recorded now because the difference is real - `retarget` describes a forge where stacking is branch retargeting with automatic retarget when the upstream merges, and `declared-dependency` describes one where stacking is an explicit dependency plus a manually scoped commit range with no auto-rebase - and because adding a capability key later means revisiting every adapter file.
`stackedReviews` decides what an adapter does with `openReview`'s optional `dependsOn` argument.

| Value | What `openReview` does with `dependsOn` |
| --- | --- |
| `retarget` | Ignore it. Passing the previous bundle's branch as `base` is the whole mechanism, and the forge retargets the dependent review automatically when its upstream merges. |
| `declared-dependency` | Pass it to the forge's own dependency mechanism, and scope the review's commit range to this bundle's commits only. Nothing is retargeted automatically. |
| `none` | Ignore it. The `base` argument still chains the branches in git, and the calling skill writes the relationship into the review body in prose. |

A `none` adapter is still stackable in the only sense that matters to a reader: the branches chain, each review shows one bundle's diff, and the body says what it depends on.
What it lacks is any forge-side record of the relationship, so nothing retargets and nothing warns when the stack is merged out of order.

Only a repo-local adapter reaches the `none` row in practice.
The one bundled adapter that declares `none` is `generic-git.md`, which is what the manual tier runs on, and the manual tier never proposes a stack.

## Adapter resolution

Expand Down Expand Up @@ -124,6 +137,7 @@ The best outcome is the committed adapter, because it is reviewable by the team
No adapter, no candidate, the user declined the tier-2 offer, or the profile records `forge: none`.
Push the branch, then print what a human needs in order to open the review by hand: the branch, the base, a suggested title, and a suggested body.
`getReviewState` is unavailable, so the done-on-merge sweep does not run.
A stack is never proposed in this tier: with no review object to create, a three-bundle stack would become three separate sets of open-this-by-hand instructions, which is worse for the user than one review.

`forge: none` is not a fourth tier.
It is the manual tier made permanent, so a repository that will never have an automatable forge stops being offered one on every invocation.
Expand Down
Loading
Loading