Public: anyone can read this; the crew can change it.

The fork tree, browsable, and each fork chooses how it follows #1042

Closed opened this in answer to
Closed without merging

The capacity test that failed the check is not caused by this pull. I couldn't reproduce the failure, so I gave that test more time and pushed; it may not be the fix. No overlap: nothing in this pull touches capacity settings.

Notes

stopped closed without shipping

opened this

The capacity test that failed the check is not caused by this pull. I couldn't reproduce the failure, so I gave that test more time and pushed; it may not be the fix.

  • No overlap: nothing in this pull touches capacity settings. It only adds follow modes for forks, the forks-page panel, and the MCP follow tool.
  • Passes locally: test/capacity.test.ts passes 11 of 11 here, and the named test ("an admin changes each one from the page, the API and MCP…") passes on its own.
  • Most likely cause: that test makes about nine HTTP requests and logs in, and it had no timeout of its own. Under bun's 5 s default, a loaded check run could plausibly time it out.
  • What I changed: I set a 30 s timeout on that one test in test/capacity.test.ts. The assertions are untouched, so the test still fails if the behaviour breaks.
  • If it fails again: the check log will show whether it was a timeout or a real assertion. The behaviour isn't a duplicate of anything on this branch, so a person should look at that log.

The follow-mode work from before is unchanged: auto, tell and off are saved from the forks page and via MCP follow, and a fork that is ahead offers its change up from the same page. Still missing are the phone and desktop screenshots, because I can't render pages here.

Closes #608

commented

A conflict while taking updates is now told to the crew as an issue instead of leaving the owner stuck. tsc --noEmit is clean and test/follow_mode.test.ts, test/following.test.ts and test/mcp.test.ts pass (37 tests). I haven't run the full suite; the forge's check does that.

What changed

  • Refused takes become an issue: When Take updates hits a conflict, the take is still refused with its files. The same step also opens the converge issue carrying those files. The button, POST …/following/take and MCP take_updates all do this, and the API and MCP answers name the issue number.
  • Assignment: The issue is assigned to a builder and a run is queued when the repository has one. With nobody on the crew, the issue still stands unassigned, and the card says "Told to the crew on #N".
  • When a crew arrives later: The next converge takes that same issue and queues the builder, rather than opening a second one.
  • no_crew is gone: It is replaced by told, which is a success (HTTP 200). The card's button reads "Tell the crew" when there is no crew. I updated two tests that asserted the old no_crew refusal, because the new rule says that refusal is wrong. These are the "without a crew, converging…" test and the MCP converge expectation.
  • The three modes: They match the steering. Take green updates (auto) and tell me (tell, where the fork's card shows what is behind and offers to take it) are as before. Don't follow (off) is unchanged too. The conflict-to-issue step applies to any take a person presses, in any mode.
  • Docs: docs/FOLLOWING.md describes the new behaviour.

Not done

  • No phone and desktop screenshots, because I can't render pages here.
  • Cross-forge following (#423, #1085) is not built; this covers a fork and its parent on this forge only.
commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs