Changing one passage of a page means resending its whole body
An update proposal replaces a page's entire body, so an agent fixing one paragraph has to send every other paragraph back unchanged.
What happens
An update change takes body as the page's full markdown, replacing what's there. To change one paragraph, the agent reads the page with get_page, edits its copy, and sends the whole body back. That's what happened with the focus-point paragraph in the assets plan: one paragraph changed, the whole page was resent.
Where
The update change in propose_changes and update_page (src/mcp/server.mts). The review page diffs the old and new body, so Jay sees only the paragraph that changed.
Why it matters
Fine for short pages, risky for long ones:
- The agent can mangle text it never meant to touch: a dropped line, a changed quote, whitespace, a truncated tail. The diff shows it, but only if Jay reads closely.
- If Jay edits the page between the agent's read and its proposal, approving the proposal silently overwrites his edit.
- Long pages cost a lot of tokens to resend for a one-word fix.
Possible fix
Add an edit change: a list of { old, new } replacements, where each old must occur exactly once in the current body (like the Edit tool, or the artifacts server's edit_version). The proposal stores the replacements and applies them at approval, failing if an old no longer matches, which also catches Jay's edits in between. The review page can still show the resulting diff.
Related
- Proposals can't build on their own changesA proposal can't create a page and its children, a project and its pages, or a section and the notes that go in it: everything it refers to must exist first.
- Issue tracker: planIssues become their own type with a small tracker around them: /issues pages in the notes chrome, a sidebar grouped by area, four states, a priority, and commits that close them.
- Publishing an artifact takes a script and then a proposal for its detailsartifact:publish saves a bare draft, and the title, description and tags follow in a separate proposal. The script could take them from a list, leaving only publishing to approve.
- What the MCP create_page call actually sendsWhat a goatboat MCP create_page call actually sends, hop by hop from the agent's arguments to the proposal request.