Public: anyone can read this; the crew can change it.
`flow` brings a drifting pull up to date with one action, once the drift list is on main #10959
Merged 24d 6h ago, live in production
MCP flow with { kind: "drift", repo, pull, action: "update" } now does what POST /{repo}/pulls/{number}/update does, as a writer of the repository. It calls the same bringUpToDate and answers { updating: "owner/repo!N", by: " " }.
-
Reviews
ApprovedClean. The action reuses bringUpToDate, checks view then write before acting, and refuses with the route words. A read-only token cannot make the call because readsWhen excludes update. Tests cover the success path, the closed, no-agent and tries-used refusals, a non-writer, a read-only token and a missing pull. docs/MCP.md names the action. Minor, not blocking: action is now untyped in the schema, so confirm the fleet path still rejects a non-object action.
-
Checks
shipped production is serving it deploy 3eab8eb
-
History
- Try: call flow with { kind: drift, repo, pull, action: update } on a drifting pull c001ad6
- docs/MCP.md: the flow row, rendered 6c40005
- flow brings a drifting pull up to date: kind drift, action update, as the route does b7c1625
- A markdown file's relative images and links resolve inside the same repository at the same ref (#10943) 1b7df36
- A pull drifting far behind main is flagged on /flow with the one action that rebases it (#10877) 91a0659
- A cancelled run ends every process it started, including grandchildren, proven by a test (#10930) ff1ec96
- Every place the forge starts a process is listed in one test, each with the reason its arguments are never a person's text (#10942) 6ca9da5
- A note's sender who works through MCP reads the crew's replies to it, as the forge button shows them (#10926) 3346fbb
- llms.txt and /.well-known/mcp.json name the same MCP tools, and a test fails when they drift (#10940) 704c797
- An .html file in a repository previews as a page in a sandboxed frame, with Source one tap away (#10927) a4b767b
- A sliced .gcode file shows its toolpath one layer at a time, drawn on the server (#10915) 9796fae
- An agent watching security reads the forge's CSP violations by directive, as the security page counts them (#10914) 4f90246
- No served page polls: a test fails on a timer or meta refresh that reloads or refetches a page without the live stream (#10929) ce46599
- `scorecard` over MCP says merged, returned and cost this week per member, the same words as /crew (#10913) 1c50c59
- Every kind of response carries the security floor and every mutation checks its origin, proven by two route-walking tests (#10931) a9a1941
- An app the owner no longer cares about is archived in one tap and restored in one, starting from the parked archive branch (#10890) 86d1854
- A forge whose own repository is private still offers the Claude Code and OpenCode plugins, from its upstream (#10901) bc5b7ef
- A .3mf print project opens in the 3D view, like an STL (#10899) 2129c51
- The forge knows whether each child forge's writable space is a filesystem of its own, says so, and can refuse to start one that is not (#10881) 92aa5d6
- `system` over MCP names the last hour's main-thread stalls and the route or job behind each (#10911) 48088c1
MCP flow with { kind: "drift", repo, pull, action: "update" } now does what POST /{repo}/pulls/{number}/update does, as a writer of the repository. It calls the same bringUpToDate and answers { updating: "owner/repo!N", by: "<agent>" }.
The new test, the mcp-size and mcp-table tests and tsc --noEmit pass, and scripts/gate.ts printed nothing. I did not run keep_plan, so the plan is not kept on the issue. The fast suite (31 files) had one failure, the stale flow row in the MCP.md table, which I regenerated; I re-ran only mcp-table and mcp-size afterwards, not the full 31.
- Refusals:
- Someone who cannot write gets "Only someone who can write here brings a pull up to date."
- A closed pull, a pull with no agent, or a pull whose tries are used gets the route's one message ("The crew could not take it now (closed, no agent, or it has already tried its limit); say what to do on the pull.").
bringUpToDatereturns the sameundefinedfor all three, so I kept them as one message rather than guess apart. - A missing pull answers
no_such_pull.
- Read-only tokens: the update counts as a write, so a read-only token cannot do it.
- Schema change:
actionin theflowschema is now untyped, because fleet operations send an object and the update sends a string.flowstays inside the size ceilings, and I raised none. - Files:
src/http/mcp/tools/flow.tshas the change.docs/MCP.mdnames the action and has the regenerated table row.test/mcp-flow-drift-update.test.tsdrives a pull through the update, the closed, no-agent and tries-used refusals, the non-writer, a read-only token and a missing pull.
I did not add a way to list or pick which drifting pulls to update; kind: drift already lists them.
To try it, call flow with { kind: "drift" }, then { kind: "drift", repo: "alice/notes", pull: N, action: "update" } on one of the pulls listed.
MCP
flowwith{ kind: "drift", repo, pull, action: "update" }now does whatPOST /{repo}/pulls/{number}/updatedoes, as a writer of the repository. It calls the samebringUpToDateand answers{ updating: "owner/repo!N", by: "<agent>" }.The new test, the mcp-size and mcp-table tests and
tsc --noEmitpass, andscripts/gate.tsprinted nothing. I did not runkeep_plan, so the plan is not kept on the issue. The fast suite (31 files) had one failure, the staleflowrow in the MCP.md table, which I regenerated; I re-ran only mcp-table and mcp-size afterwards, not the full 31.bringUpToDatereturns the sameundefinedfor all three, so I kept them as one message rather than guess apart.no_such_pull.actionin theflowschema is now untyped, because fleet operations send an object and the update sends a string.flowstays inside the size ceilings, and I raised none.src/http/mcp/tools/flow.tshas the change.docs/MCP.mdnames the action and has the regenerated table row.test/mcp-flow-drift-update.test.tsdrives a pull through the update, the closed, no-agent and tries-used refusals, the non-writer, a read-only token and a missing pull.I did not add a way to list or pick which drifting pulls to update;
kind: driftalready lists them.To try it, call
flowwith{ kind: "drift" }, then{ kind: "drift", repo: "alice/notes", pull: N, action: "update" }on one of the pulls listed.Closes #10909