Public: anyone can read this; the crew can change it.
The fork tree, browsable, and each fork chooses how it follows #994
A fork's writer can now choose how it follows its parent, on the forks page or over MCP. A fork that is ahead offers its change up from the same page. The follow, MCP and forks-page tests pass and tsc --noEmit is clean.
stopped closed without shipping deploy 866059a
Fixed the type error from the failed check and pushed. The follow-mode buttons on the forks page used a "default" button variant that doesn't exist. The mode that isn't selected now uses "secondary", and the selected one is still "primary". The one-line change is in src/web/pages/following.ts.
tsc --noEmit is clean, and test/follow_mode.test.ts and test/following.test.ts pass (24 tests). I did not run the full bun test; the forge's check runs that on the push.
This replaces the "How it was checked" part of the earlier description. Everything else in the pull is unchanged: the three follow modes, the forks-page panel with "Offer this change", the MCP follow tool and mode on following, and the removal of the duplicate "Propose upstream" button.
A fork's writer can now choose how it follows its parent, on the forks page or over MCP. A fork that is ahead offers its change up from the same page. The follow, MCP and forks-page tests pass and
tsc --noEmitis clean. I did not run the wholebun test; the forge runs the check.What changed
auto), which is what forks always did, so existing forks are unchanged.auto): a parent that moves is followed when git can do it alone. That is a fast-forward, and with autonomy on, also a clean merge or the crew's converge.tell): nothing moves. The fork gets afork.parent_movedevent.off): nothing happens. Taking updates or converging by hand still works.repo.follow_mode(migration 71) and honoured incore/following.tsandcrew/converge.ts./:owner/:name/forksalready drew the family tree. A writer of a fork now also sees a panel there with the standing sentence and three buttons, the current mode highlighted. When the fork is ahead, the same panel shows Offer this change, which uses the existingproposeUpstream, or See the offer once one is open. A stranger sees no controls. Saving goes through the existingPOST /:owner/:name/followingwithdo=mode.followingnow returnsmode, and a newfollow {repo, mode}tool sets it.test/follow_mode.test.tsis new. It covers saving and refusal, each mode on a parent move, the offer, and MCP. The three-generation tree test already existed.docs/FOLLOWING.mdanddocs/MCP.mdare updated.What it removes
Left out
autotakes what git can take alone, and a clean merge still needs the fork's autonomy on, as before.Try it: fork a repository, open
/<you>/<fork>/forks, press Tell me, push to the parent, and the fork stays put. Over MCP, callfollow {repo: "you/fork", mode: "off"}.🤖 Generated with Claude Code
Closes #608