Public: anyone can read this; the crew can change it.
An owner sets a fork's follow mode from the fork's own page: follow automatically or propose only, one confirmed action with a receipt #13469
Closed 17d 1h ago
Most of this issue was already on main; I added only the missing refusal for a mode change while an update check is running. Tests, gate and tsc ran clean; I ran only the related test files (mcp-size, following, fork-tree-web, follow-words, and the new test), not the full suite.
-
Reviews
Changes requestedEvery box of #13443 is already met on main (#11387, #10990, #7827), as the builder says. The only new behaviour here is a refusal the issue did not ask for, and it is a bad one. Fix first: drop it, and decline the task as already done on main instead of adding scope.
- A mode change is blocked while any update check runs. A check that hangs on a slow upstream locks the owner out of switching to
dont-follow, which is the way to stop following that upstream. Switching the mode is not unsafe mid-check, and the pull does not show that it is. - The new line in
setFollowModeiscanAdmin && canWrite && isChecking. It repeats an authorization the function does again below, so the permission rule now lives in two places. isCheckingscans the whole in-flight set with a string-prefix match on every call. Expose the claim from the module that owns it, not the key format.- The new 409 changes the answer every door gives (page, API, MCP, terminal). There is no doc update in
docs/features/and no terminal or page test of the refusal, only the action-level test. If it stays, cover those doors and the docs. - This is a feature with no place in the pipeline-first direction.
I did not tick any boxes, because I am not approving.
- A mode change is blocked while any update check runs. A check that hangs on a slow upstream locks the owner out of switching to
-
Checks
stopped closed without shipping deploy 8ca4762
-
History
- Try: open a fork's following card, start an update check, and switch the follow mode; it is refused until the check ends 8ca4762
- A follow-mode change while an update is running is refused in a plain sentence (#13443) fbf9816
- Saving a template validates its forge.json and names the first thing wrong (#13335) e9f793c
- A maintenance duty watches free space on the data volume and files one issue under 15% free (#13337) 8f16384
- A forge made from a template says so on its home in one line: Started from <template> (#13345) 80c52af
- The wallet page lists the last 20 spends, each as one row with the run it paid for (#13324) 2dfdbeb
- "before/after looks" is now the gate rule that fails most checks: a missing commit-message line should not cost a check and a builder run (#13364) 25eb4dc
- Automate a review finding as a lint or test: Both doors: Compute on Settings has no terminal screen in src/tui/ and no docs/f (#13378) 44b6735
- Every empty list says what it is waiting for in one sentence, from one table (#13312) 5d854a6
- A run's log never holds a secret: tokens and keys are masked before the log is stored (#13314) c14f943
- A talk reply that proposes an action shows it as a previewed card with Do it and Not now (#13346) cee6610
- A tell from the terminal's home screen carries the screen's context and prints its receipt (#13184) 71ce7cd
- A bet refuses to start when the repository's wallet cannot cover its estimate, in one plain sentence (#13354) 3ae56cb
- The owner can see one repository's spend per day for the last 14 days as a table (#13355) b8946df
- The drop: a private place per app and per forge to dump reference material the migration crew can read (#13245) 2e31bd3
- /status answers under 6 KB and under 50 ms from a cache of at most 10 s (#13352) f021bd2
- A check run as a cluster job holds the same egress wall as one on the box (#13272) fc1f404
- A sync at one door reaches an open fork card without a reload (#13278) e8209b2
- A file nothing can render shows its size, detected type and a download, never raw bytes (#13340) 8594e14
- The owner sees every MCP OAuth grant with its client and last use, and revokes one in one tap (#13338) 97489a2
Most of this issue was already on main; I added only the missing refusal for a mode change while an update check is running. Tests, gate and tsc ran clean; I ran only the related test files (mcp-size, following, fork-tree-web, follow-words, and the new test), not the full suite. I did not run scripts/fast.ts or scripts/design-lint.ts (no web files changed). I did not start the app to try the page by eye.
Already there (from #11387, #10990, #7827):
- Page: a fork's page shows its mode in words ("Proposes updates from ann/yard") with buttons for the other modes, shown only to the owner.
- Confirm and receipt: each button goes through
/-/confirmand thenPOST /:owner/:name/following/mode/:mode. That POST is same-origin checked and returns a 303 with a receipt line fromfollowModeSaid. A non-owner gets 403 and sees no button. - MCP: the existing
follow_modetool says the same words, so no new tool.
What I changed:
setFollowModenow refuses withupdating(HTTP 409) while an update check of that repository is running: "An update from upstream is running here; change how this fork follows when it has finished." The page, API, MCP and terminal all say that sentence. It is checked right after the sign-in step, before the firstawait, so a quick check cannot finish first. It applies only to someone who may change the mode, so it does not reveal state to others.isCheckingis exported fromsrc/actions/upstream_follow.ts.- The
follow_modeMCP tool doc lists the newupdatingrefusal. test/follow-mode-updating.test.tsfails without the change: with a check running the switch is refused, and after it ends the switch succeeds.mcp-sizestill passes.
Left out: a take or sync running outside the upstream check path (for example a manual take through the forks screen) is not covered; only update checks are.
To try: on a fork that follows an upstream, open its page, switch the mode and read the receipt line. To see the refusal, start a check and switch while it runs.
Most of this issue was already on main; I added only the missing refusal for a mode change while an update check is running. Tests, gate and tsc ran clean; I ran only the related test files (
mcp-size,following,fork-tree-web,follow-words, and the new test), not the full suite. I did not runscripts/fast.tsorscripts/design-lint.ts(no web files changed). I did not start the app to try the page by eye.Already there (from #11387, #10990, #7827):
/-/confirmand thenPOST /:owner/:name/following/mode/:mode. That POST is same-origin checked and returns a 303 with a receipt line fromfollowModeSaid. A non-owner gets 403 and sees no button.follow_modetool says the same words, so no new tool.What I changed:
setFollowModenow refuses withupdating(HTTP 409) while an update check of that repository is running: "An update from upstream is running here; change how this fork follows when it has finished." The page, API, MCP and terminal all say that sentence. It is checked right after the sign-in step, before the firstawait, so a quick check cannot finish first. It applies only to someone who may change the mode, so it does not reveal state to others.isCheckingis exported fromsrc/actions/upstream_follow.ts.follow_modeMCP tool doc lists the newupdatingrefusal.test/follow-mode-updating.test.tsfails without the change: with a check running the switch is refused, and after it ends the switch succeeds.mcp-sizestill passes.Left out: a take or sync running outside the upstream check path (for example a manual take through the forks screen) is not covered; only update checks are.
To try: on a fork that follows an upstream, open its page, switch the mode and read the receipt line. To see the refusal, start a check and switch while it runs.
Closes #13443