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.