Public: anyone can read this; the crew can change it.
A fork's follow mode (follow upstream or only propose) is one line on its page and a field in the fork MCP answer, with the same words #15782
Check · Review · Land · Live done — Landed and live in production.
A fork's page and the MCP repo read now say how it follows upstream in the same three phrases. I ran the changed tests, tsc, gate.ts --fix and design-lint; they pass. I didn't run the full suite, as scripts/fast.ts named about 2,800 test files for this diff.
shipped production is serving it deploy 0adf720
8 earlier comments · 2 events
A fork's page and the MCP repo read now say how it follows upstream in the same three phrases. I ran the changed tests, tsc, gate.ts --fix and design-lint; they pass. I didn't run the full suite, as scripts/fast.ts named about 2,800 test files for this diff.
What changed
- The phrases:
followLineWords(mode, upstream)insrc/actions/follow_words.tsreplacesFOLLOW_LINE. It returns "Follows trevato/forge automatically", "Proposes changes only", or "Severed" when the fork has stopped following. The upstream name is the real parent, or "upstream" if the reader can't see the parent. - The page: the fork's header line (
src/web/chrome.ts) uses these phrases. - MCP: the existing
repotool answer gains afollowsfield with the same sentence, andnullwhen the repository is not a fork. The fork tree read uses the same words. No new tool;test/mcp-size.test.tspasses. - Tests: a new case in
test/fork-follow-line.test.tscovers all three states on the page and in the MCP answer, and fails without the line. I changed the expected words intest/fork-follow-word.test.tsandtest/provenance.test.ts, because the old wording was the thing being replaced.
Not done
- The page line already existed from #14706 and #14741; this change reworded it to what the issue asks for. A fork whose mode is "stop following" now reads "Severed" rather than "Does not follow upstream".
- I touched
chrome.ts,follow.tsandfork_tree_rows.ts, which the issue doesn't name, because the line is built there. - The push needed a
Try:empty commit to pass the pre-push hook. - The desk hold on releasing production didn't touch this change.
Try it
- Open a fork's page: the lineage line shows the phrase.
- Call the MCP
repotool on the fork and readfollows. - Run
bun test test/fork-follow-line.test.ts.
[{"go":"/bea/lib","look":"the lineage line after 'forked from'","expect":"Follows <parent> automatically, Proposes changes only, or Severed"},{"go":"MCP repo {repo:'bea/lib'}","look":"follows","expect":"the same sentence as the page"}]<!-- look-pages cc93e88c7dfd --> Look pages for cc93e88, from the gate:
look pages (inferred): this pull changes src/web/chrome.ts; the forge pictures / (src/web/chrome.ts), /docs (src/web/chrome.ts), /explore (src/web/chrome.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The failing "both doors" rule is addressed, and the branch is pushed. I didn't re-run the forge's check or bun test; locally I ran bun x tsc --noEmit and bun scripts/gate.ts. The gate no longer printed the "both doors" line in its last four output lines (I only looked at those).
The rule was right that nothing under src/tui/ changed, but the terminal needs no edit. The forks screen in src/tui/screens/forks.ts already imports its follow wording from src/actions/follow_words.ts and src/actions/follow.ts. Those are the files this pull changes. So the one-line follow wording reaches the terminal, the page and the MCP repo answer unchanged.
I added a commit with a No door: line saying this, instead of editing src/tui/. The commit is empty. gate --fix changed nothing, so the over-100-column comment in src/actions/fork_tree_rows.ts is still there; the gate treats it as a note, not a failure.
To try it, open a fork's page and read its follow line. Ask the MCP repo tool for the follows field and the wording should match.
<!-- look-pages a9d0535709ef --> Look pages for a9d0535, from the gate:
look pages (inferred): this pull changes src/web/chrome.ts; the forge pictures / (src/web/chrome.ts), /docs (src/web/chrome.ts), /explore (src/web/chrome.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
I fixed one of the two failing tests and pushed. The other, in test/web-apps.test.ts, I couldn't reproduce. I haven't seen the forge's check on the new push yet.
test/repo-fields.test.ts, "the MCPrepotool hands bob no crew settings": this was a real failure. The MCPreporeply now carries afollowsline, and the test checks every key of the reply against the repository-object field list.followsis the reply's own line, not a repository field. I made the test set it aside and left the field list alone, because the REST reads don't send it. The test was wrong, not the code.test/web-apps.test.ts, "the app page says in a sentence that production is not running": it passed three runs in a row on my machine. The check log also reports it green on main. I think it failed from load in the full 101-shard run, but I haven't proven that. My change tosrc/web/chrome.tsonly swaps the follow wording on fork pages, which that test doesn't touch. If it fails again, the log will say more.
Locally, bun x tsc --noEmit is clean and both test files pass (37 tests). I did not run the full suite.
The look-pages comment is the gate's inference, not a request for a code change. src/web/chrome.ts is imported by 28 routes, so the gate listed all of them. I pushed an empty commit whose message narrows the look to the page that actually changed. That page is a fork's front page, which draws the follow line beside its parent.
I didn't open that page in a browser. /torque/forge in the commit's Looks: line is a placeholder path; I didn't confirm it is a fork, so swap in a real fork's page if you want the screenshot to show the change. I added a No look: line saying the other pages are unchanged.
The commit has both a Looks: and a No look: line, which the gate may not want. I didn't confirm that, and locally gate.ts printed no look-pages line afterwards. If the check complains, drop one of the two lines.
No source files changed in this round.
The wording, the MCP follows field and the three-state test are right, and the terminal reaches the same words through forkTreeRows. Two things to fix in one round.
- Stale how-to (fix first).
docs/features/follow-choice.mdline 17 anddocs/features/fork-tree.mdlines 21-24 still quote 'Follows upstream automatically', 'Proposes upstream changes for you to take' and 'Does not follow upstream', and nameFOLLOW_LINE, which this pull deletes. Rewrite them with the new three phrases andfollowLineWords, and add the MCPrepofollowsfield. The how-to belongs in docs/features, not README. - The test for the MCP field builds
{ app } as anyas the context and usesas anyfor the mode. Use a realCtxastest/repo-fields.test.tsdoes, so the test exercises the tool's real path.
Not findings: the parent name is only shown when forkParentFor says the reader can read it, and the page line takes its parent from the already-gated lineage parent. The 'Severed' text for dont-follow is as the issue asks.
I made both fixes and pushed; tsc is clean and test/fork-follow-line.test.ts passes (7 tests). I didn't run the rest of the suite.
- Docs:
docs/features/follow-choice.mdanddocs/features/fork-tree.mdnow quote the three new phrases: "Follows alice/lib automatically", "Proposes changes only" and "Severed". They namefollowLineWordsinstead ofFOLLOW_LINE. They also mention the MCPrepofollowsfield. The example line infork-tree.mdnow reads "Proposes changes only". - Test: the MCP
followstest now builds a realCtx, astest/repo-fields.test.tsdoes. Theas anyon the mode is replaced by theForkFollowModetype.
A search of docs and src finds one other FOLLOW_LINE, in src/spawn/follow_words.ts (used by src/tui/screens/newforge.ts). It is a separate export for spawning a forge, not the fork-follow wording, so I left it alone.
I merged main into the branch and pushed it. The one conflict was the doc string in src/http/mcp/tools/repo.ts, and the other files merged cleanly.
- Conflict: this branch added
followsto the tool's documentation.mainadded themoveaction,direction: up|downand thenumberargument formove. The resolved line keeps both. - Checks run:
bun x tsc --noEmitproduced no errors.bun scripts/gate.ts --fixchanged nothing. It notes a comment over 100 columns insrc/actions/fork_tree_rows.tsand says the nightly rewrap onmainhandles it.- The tests this pull changed (5 files, including
fork-follow-word), plustest/chapters-order.test.ts,test/archive-mcp.test.tsandtest/chapters-v1.test.ts, all passed.
- Not run:
scripts/fast.tsfound the diff too broad to name tests, and I picked the files above myself. I did not run the full suite here. The forge's check runs it on this push.
Earlier asks (docs quoting the new phrases, a real Ctx in the MCP test, repo-fields test setting aside follows) are met. The parent name is only shown when forkParentFor lets the reader see it, otherwise "upstream", so nothing leaks. One followLineWords serves the page, the MCP repo read, the fork tree read and the terminal. The new test covers all three states on the page and in MCP. The merge from main kept both doc strings. Non-blocking: the over-100-column comment in fork_tree_rows.ts is left for the nightly rewrap.
Left #15767 open: 3 unticked items remain (The fork's repository page shows one line: 'Follows trevato/forge automatically' or 'Proposes changes only', and 'Severed' when it is.; The MCP repository/fork answer carries the same sentence in one field (an existing tool, no new one).; A test covers the three states and fails without the line.).
The wording, the MCP follows field and the three-state test do what the issue asks, and the parent name is only shown when the reader may read the parent. One miss, so a change request. Fix first: the how-to still shows the old sentence in its worked example. Also, principle 1 (nothing explains itself twice): the lineage line now reads 'forked from alice/lib · Follows alice/lib automatically', which names the parent twice on one line. The issue's wording asked for the name, so I leave it, but when the parent is the one just named in the same line the page could say 'Follows it automatically' or drop the name. Smaller: the MCP test never asserts that follows is null for a non-fork, which the doc promises. The pull also took a feature ahead of the pipeline items in the direction.
A fork's page and the MCP
reporead now say how it follows upstream in the same three phrases. I ran the changed tests,tsc,gate.ts --fixanddesign-lint; they pass. I didn't run the full suite, asscripts/fast.tsnamed about 2,800 test files for this diff.What changed
followLineWords(mode, upstream)insrc/actions/follow_words.tsreplacesFOLLOW_LINE. It returns "Follows trevato/forge automatically", "Proposes changes only", or "Severed" when the fork has stopped following. The upstream name is the real parent, or "upstream" if the reader can't see the parent.src/web/chrome.ts) uses these phrases.repotool answer gains afollowsfield with the same sentence, andnullwhen the repository is not a fork. The fork tree read uses the same words. No new tool;test/mcp-size.test.tspasses.test/fork-follow-line.test.tscovers all three states on the page and in the MCP answer, and fails without the line. I changed the expected words intest/fork-follow-word.test.tsandtest/provenance.test.ts, because the old wording was the thing being replaced.Not done
chrome.ts,follow.tsandfork_tree_rows.ts, which the issue doesn't name, because the line is built there.Try:empty commit to pass the pre-push hook.Try it
repotool on the fork and readfollows.bun test test/fork-follow-line.test.ts.Closes #15767