Skip to content

docs(privacy): an autopilot's files, what they keep and for how long - #124

Merged
kalaspuff merged 2 commits into
mainfrom
fctl/1290-give-an-autopilot-a-scratch-space-that-o
Nov 15, 2026
Merged

kalaspuff merged 2 commits into
mainfrom
fctl/1290-give-an-autopilot-a-scratch-space-that-o

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Autopilots on app.fctl.sh now keep files across their sessions (text their own sessions write, such as scripts and drafts of messages, at most 4 MB in all), so the privacy policy says what those files hold, that they go to the autopilot's owner's Claude account as the rest of what it keeps does, and that each stays until the autopilot removes it, the project is deleted, or for as long as the project when it's off autopilot. Its log's list of what it did now includes the files it added and removed.

It should merge with the fctl pull request that adds the files, which deploys them:

fctl session


Note

Low risk. It only changes the privacy policy text and its updated date, with no code involved.

What it does. Adds an autopilot's kept files to the privacy page: what is stored (text up to 4 MB, with name, size, timestamps and last-writing session), who receives it, and how long it is kept. It also says what happens to those files when an account is deleted: they stay as written, record no account, and go when the autopilot removes them or the project is deleted.

fctl review's first look at 97fef34 · 1 file, +20 −10 · Review agent settings

@fctl-review

This comment has been minimized.

Comment thread legal/privacy.md Resolved
Comment thread legal/privacy.md Resolved
@kalaspuff
kalaspuff merged commit 565f3c8 into main Nov 15, 2026
5 checks passed
@kalaspuff
kalaspuff deleted the fctl/1290-give-an-autopilot-a-scratch-space-that-o branch November 15, 2026 11:31
kalaspuff pushed a commit to hyperstructure/fctl that referenced this pull request Nov 15, 2026
## Summary

An autopilot's own session starts in a new sandbox at every handover, so
it had nowhere to keep the scripts and drafts it relies on but its plan,
which the spaghetti autopilot filled with watcher scripts and message
drafts. Autopilots now keep files that outlast their sessions: `fctl
autopilot files put/get/list/rm`, text only, at most 256 KB each, 4 MB
and 100 files in all, stored in D1 (`autopilot_files`, migration 0062)
and deleted with the project. Only its own session writes and removes
them; whoever reads the autopilot reads them, on the Autopilot tab too.

- **Briefing and brief:** the briefing now says to keep scripts and
drafts in files and to name them in the plan rather than copy them in; a
fresh session hears to go on from its plan, log and files (`fctl
autopilot files get --all`, which writes them into the current directory
and makes `#!` scripts executable, checking each name the control plane
sends before it becomes a path); the brief has a `files` part listing
them by name and size; and the near-handoff wake says to keep scripts
there.
- **Room:** the write checks the room in the same statement that writes
the file, so two writes at once can't both take the last of it (a wasm
test races two).
- **Log:** a new file and a removed one get a line in its log ("Added
`watch.sh` to its files"); rewrites don't, as a script may rewrite one
often. The brief's log leaves those lines out, as it does plan updates.
- **Tab:** an "Its files" card in the rail, under its plan, once it
keeps any: each file opens in a dialog to read and copy.

I verified it with unit tests (validation, the gate, the briefing and
brief), wasm tests of the D1 writes against the stand-in, a web test of
the card, and in `cargo xtask dev`, where fake-claude's autopilot kept,
listed, got back and removed files through its session's relay and the
tab showed them.

## Screenshots

The rail of the Autopilot tab with its files under its plan, in the
light and dark themes (dev stack data):

<img
src="https://app.fctl.sh/api/v1/published/gFI6rIQkHh86S6dUTBZzlPfjlbFpoGFFPb45GuAyRM3/light-rail-crop.png"
width="288" alt="The tab's rail in the light theme: direction, plan, Its
files with reply-draft.md and watch-deploy.sh, and its sessions"> <img
src="https://app.fctl.sh/api/v1/published/bdMtizccoZG9K5OB4aFL1DnpHA4cPaZYFktwt23UG7T/dark-rail-crop.png"
width="288" alt="The same rail in the dark theme">

A file opened from the card, on a computer and at a phone's width (390
px):


![dark-dialog.png](https://app.fctl.sh/api/v1/published/bOfRvEwfegHNdo3HtrOcW5100hbqx60rZ69MAPvQIrh/dark-dialog.png)

<img
src="https://app.fctl.sh/api/v1/published/VNP3a3Aboc5CZoPk0g1QqIQlF7isOjVA3UXvoCfZTtV/phone-dialog.png"
width="390" alt="The file dialog at a phone's width, the script
wrapping">

## Worth confirming

- **Decision:** people read the files but can't change or remove them;
only the autopilot does, from its session. Someone who wants one gone
steers it with a note.
- **Decision:** text files only (no NUL characters), 256 KB each and 4
MB / 100 files in all. Binary files would need the attachments' Durable
Object rather than D1 rows.
- **Decision:** files stay while the project is off autopilot, like its
plan and log, and go only with the project.
- **Decision:** the card shows only once it keeps a file, so autopilots
that never use it show nothing new.

Fixes #551

Related pull requests:

- hyperstructure/fctl-site#124
- hyperstructure/design#54

[fctl session](https://app.fctl.sh/s/ses_01M7FBQH3QP9BMZTSAZ0KDMEAE)

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Medium risk.** It adds a table (migration 0062), new API routes and
CLI commands that store and serve autopilot files, and changes the
briefing and brief that every autopilot session reads.
>
> **What it does.** Lets an autopilot keep text files (up to 100, 256 KB
each, 4 MB in all) that outlast its sessions, stored in D1 and managed
with `fctl autopilot files put/get/list/rm` from its own session. People
can read the files on the Autopilot tab but not change them. The
briefing, brief and log are updated to point sessions at their files.
>
> **New migration.** Migration 0062 adds the `autopilot_files` table,
which is deleted with the project; it must run before the new routes are
used.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M7FGGYQ9V6ZZQRFE4F2K4GZE)'s first
look at
[`1f2d46b`](1f2d46b)
· 23 files, +1345 −65 · [Review agent
settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub>

<!-- /FCTL_REVIEW_SUMMARY -->

---------

Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant