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

Talk: draft edits flow, so a write to the conversation's own draft runs at once after any read, with a receipt and one-tap Undo #17551

opened this

Merged 17h 29m ago, live in production

Stacked: lands after #17536 and the fence pulls before it, in order (they share mcp.readThrough). The owner's call (2026-12-02). In his demo the edit to his own new app server-dig was held because the conversation had read the forge's health, which can quote other people's text.

Notes

opened this

Stacked: lands after #17536 and the fence pulls before it, in order (they share mcp.readThrough).

The owner's call (2026-12-02). In his demo the edit to his own new app server-dig was held because the conversation had read the forge's health, which can quote other people's text. The fence keeps holding every write after such a read. Now a write to the conversation's own draft, write_file to talk-<conversation> of an app the person owns whose words are theirs, runs at once whatever was read (core/talk_lane.ts, laneUnheld):

  • its receipt says what changed ("Changed index.html in the draft") and links the commit;
  • its Undo makes a new version holding the draft as it was before that change (actions/build.ts, undoDraftChange), only while that change is still the draft's newest. After a later change the Undo is refused, and nothing is done.

It does not cover the default branch, another branch, another repository, a repository with outside contributors, settings or secrets: each is still held after a wide read. Publishing stays the person's alone on the page: the agent's say build_publish is refused outright.

Why this is safe to run at once: the draft reaches nobody new until the person publishes. Its code runs only where previews and dev servers run, in the app's cell (apps/contain.ts: declared egress only, through the egress proxy). A dev server is handed no forge token and only an identity key derived for that dev environment (apps/dev_launch.ts), and a preview gets an explicit short environment (apps/process.ts, childEnv), never the forge's own.

The read-origin tracking the old rule needed is gone, not left behind: readFrom, ownRead, aboutRepoId and readFenced's from. The read_from column stays, because migrations only add, but it is no longer written or read. Restore and Undo now share one way of putting a version on the draft (treeOnto).

Tests, both ways (test/talk-lane.test.ts):

  • after health, someone else's issue and another branch are read, two draft edits flow; the receipt names the change and its commit, Undo restores what the draft held before it, and a second tap is a 409;
  • an Undo after a later change is a 409;
  • main and another branch are held, another repository's talk branch is refused, and publish is refused;
  • a repository with outside contributors is held, and its Do it still makes the lane's first write (the #17506 path).

test/talk-devserver-confirm.test.ts becomes the owner's demo as it now runs: after health and someone else's issue are read, two draft edits run at once, the real dev server shows each, and the receipt's Undo puts the first back in the running server, with no restart. Stacked on 57ae271fb and 33ef34473, which are stacked on d36cb0e8e.

Try: in Talk, ask about the forge's health, then ask for a change to your app; it is written to your draft at once, with a receipt and Undo. Looks: /talk (a draft change's receipt: "Changed <path> in the draft", with Undo) Direction: the owner's "draft edits flow", ahead of #6534. No door: the same lane and the same Undo button, now on draft changes too.

Co-Authored-By: Claude Fable 5 <[email protected]>

🤖 Generated with Claude Code

commented

<!-- look-pages aec03a596be7 --> Look pages for aec03a5, from the gate:

  • look pages (named): this pull changes src/web/pages/talk.ts; a commit names /talk
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs