Skip to content

Cloud agents: files as content, routines wait for the person, and a notice when one changes - #4324

Merged
backnotprop merged 24 commits into
mainfrom
fix/cloud-agent-door-hardening
Dec 1, 2026
Merged

backnotprop merged 24 commits into
mainfrom
fix/cloud-agent-door-hardening

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Tightens what a paired cloud agent's messages and routines can do on the person's computer, and tells the person when a cloud agent changes a routine.

  • Files travel as content. A cloud agent sends its files' contents; a file its message only names is not opened on this computer. Its HTML pages show pictures from its own folder only, and a walkthrough reads nothing in a project at or above the home folder.
  • A person's message shows the pictures the person typed. Pictures in quoted words, or in text a card or pull request supplied, are not drawn as the person's own, and a paired cloud agent is not handed pictures read from this computer's disk.
  • Routines wait for the person. A cloud agent's new routine, or its change to one that is on, stays off until the person turns it on. Turning it on approves the text that was shown; a newer edit is refused and shown again.
  • A clear notice. The routines list says which routine a cloud agent made or changed, the editor shows what changed next to what it was, and the notice ends when the person has looked or turned it on.
  • The door says what it reaches. Each agent door action declares what it can read, and the cloud door's list is checked against it.

Nothing changes for someone who has not paired a cloud agent, and local agents behave as before.

Tests: new unit and DOM tests for each rule (cloud content, routine approval, the change notice) pass locally; the files that start an Inbox run in CI. Note for bisecting: one intermediate commit fails one assertion on its own and is fixed by the next.

A paired cloud agent attaches the files it sends as bytes; a path in attachments, in a routine's attachments too, is refused with the words a linked computer's send gets. Pictures in what it writes show only from those bytes, at send and later (the image route, the capture on open, a Markdown file's pictures). A flag on the tool context, noLocalReads, set by the agent door, says so.
Any change a paired cloud agent makes to a routine the person turned on turns it off until the person turns it on again, with the line a folder or agent change already posts. A cloud agent runs only a routine that is on. Agents on this computer are unchanged.
Through the agent door a project_path or a routine's folder names a project the Inbox has, or the agent's own place; any other folder is project_not_found, with nothing looked up and no project made. A cloud agent's links to files are not checked, a question's running app on this computer is not checked (a web page still is), a walkthrough reads only inside its project and never a hidden folder, and a capability is not turned on or off through the door's route.
A test lists every action, place-like field and window route the agent door carries for a cloud agent, and fails when one is added without being declared with what it can reach on this computer.
…'s sent files

A cloud agent's question pictures in the decisions download come from the
files it sent, as the window shows them. Its reply into a thread on a linked
computer carries the files it sent and nothing else, and a message carried here
from a linked computer is treated by who wrote it. Posting decisions on a pull
request stays with the person.
A routine a cloud agent makes starts off, also after /create-routine; it may
turn one off but never on. Turning a routine on records what it runs, and a
cloud agent's run needs the routine unchanged since. A run leaves out files
that a cloud agent named before, until the person turns the routine on again.
…e home folder

A file it may not read answers as one that is not there.
The view, raw, attach and Open in routes answer such a path as one that is not
there.
…r recorded and a cloud agent made or changed it
…on's message on a linked computer

Of a linked computer's thread, a cloud agent's read_thread lists, and its fetch_file asks that computer for, only a person's message's attached files and drawings, decided on this computer so it holds with a linked computer of any version. A Combine whose chosen agent is a cloud agent copies the person's attached files, not the pictures their messages show from disk. Agents on either computer read and combine as before. The two guides now say what the code does.
…show what changed before it is turned on

A routine a paired cloud agent makes or changes (or one handed back at start) keeps who changed it, when, and how it
was before. The Inbox list shows one quiet line per such routine until the person looks at the change; the routine's
editor shows each changed field with what it was and the prompt's line diff, with Turn on below; the Routines table
marks the row and opens the change from its Run and its menu. Turning it on clears it, and a newer change than the
one shown is refused.
…ge apart from the fields below it

On a narrow Routines list and on a phone, a changed routine's line wraps to a second line like a long name does, and
the agent's name moves down whole instead of being cut off; the row's tooltip has the whole line. In the editor, the
change sits in from its first line, with its labels in the small quiet size of its "was" lines and a wider gap before
the editable fields, so it reads as one summary.
@backnotprop backnotprop added the ci:e2e Run the full browser suite (Inbox window e2e) on this PR label Dec 1, 2026
Main's merge brought tests that expect a paired cloud agent's file path
and running-app prototype to be used as a local agent's. On this branch
the door refuses both, so the tests now say so: the exact refusal,
nothing of the named file kept, and the app never asked.
@backnotprop
backnotprop merged commit 99b36bf into main Dec 1, 2026
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant