Repository navigation
feat(autopilot): send an answer's files to the session the ask names - #543
Merged
kalaspuff merged 4 commits intoNov 14, 2026
Merged
Conversation
…d to the answer An autopilot's question can name a session in its projects (fctl autopilot ask --session). The Autopilot tab links it from the ask, and files attached to the answer (the web app's paperclip, paste or drop, or fctl autopilot answer --attach) go to that session in a message from whoever answered, with the answer as its text. The autopilot hears which files went in its brief and wake.
This comment has been minimized.
This comment has been minimized.
…eep it open only when they didn't go SessionDO may store a message and then fail to wake the session, so an ask opened again after a failed delivery could hide a message that went, and wakes in between could mark it seen. The files now go first, keyed by the answer's content so that the same answer sent again goes once, and the ask is claimed after. The answer's failure toast says Not answered, and an ask about a session still says it goes on meanwhile.
kalaspuff
approved these changes
Nov 14, 2026
kalaspuff
deleted the
fctl/1258-an-autopilot-session-wanted-me-to-attach
branch
November 14, 2026 18:50
kalaspuff
pushed a commit
to hyperstructure/design
that referenced
this pull request
Nov 14, 2026
## Summary The Autopilot tab's design doc now describes an ask about a session: a linked chip for that session under the question, a paperclip beside the answer, files pasted or dropped on the answer area waiting in the composer's tray, and the line that says where they go. Known gaps no longer say answers are text only: files go only to the session a question names. It documents hyperstructure/fctl#543, which adds the feature; no tokens or components change, so no release is needed. - hyperstructure/fctl#543 - hyperstructure/fctl-site#123 [fctl session](https://app.fctl.sh/s/ses_01M7DMDRS82G8BF01MW0R62YA3) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Low risk.** Documentation only: it describes how an autopilot's ask about a session looks and behaves in the web app. > > **What it does.** Adds a bullet to the autopilot design doc for asks that are about a session: a link chip to that session, a paperclip with paste and drop to attach files, the line under the answer, the toast, and the failure behavior. It also replaces the limitation that answers can't carry files with one saying files go only to the session the ask is about. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M7DNP96CMD198T94394DXSKZ)'s first look at [`574aa03`](574aa03) · 1 file, +12 −1 · [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>
kalaspuff
pushed a commit
to hyperstructure/fctl-site
that referenced
this pull request
Nov 14, 2026
…#123) ## Summary The privacy policy now says what an autopilot's ask keeps since hyperstructure/fctl#543: a question can name a session it is about, the files someone attaches to their answer go to that session in a message from them (as any message's files), and the ask keeps their names, types and sizes. Those names reach the autopilot's owner's Claude account with the answer, which the "who receives it" list now says. The `updated:` date moves to 2026-11-14. - hyperstructure/fctl#543 - hyperstructure/design#52 [fctl session](https://app.fctl.sh/s/ses_01M7DMDRS82G8BF01MW0R62YA3) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Low risk.** It only edits the privacy policy text and its updated date; no code changes. > > **What it does.** Adds to the privacy policy that an autopilot's question can name a session it is about, and that files attached to an answer go to that session in a message from the person answering. The ask itself keeps only the files' names, types and sizes, and the autopilots section now says the same about what reaches the account owner. > > **Policy claims.** The new wording describes product behavior (files sent to the session, only metadata kept on the ask) that should match the fctl implementation. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M7DNMS5CQBQH3E2Z930CKGR9)'s first look at [`5c59e0f`](5c59e0f) · 1 file, +7 −3 · [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>
kalaspuff
pushed a commit
that referenced
this pull request
Nov 14, 2026
) ## Summary Carl Oscar asked the spaghetti autopilot (on fctl 0.34.1) what it would tell any fctl autopilot. Most of its advice already reached the briefing through #538–#543. This adds what hadn't: - **Which sessions count toward the limit.** The autopilot had to guess, and guessed wrong about queued ones. The briefing, the limit's error and the docs now say: those queued, starting, working, paused on a usage limit or still stopping count, as does one just messaged; one that ended its turn, stopped or failed doesn't. With all of them at work, the autopilot keeps the next tasks in its plan and starts one when fctl wakes it for a session that ended its turn. - **Lessons.** Name sessions as the brief and wakes do, never with a placeholder or a guessed number (it sent one `fctl send` to a made-up ID). Keep the scripts the work relies on in the plan whole, and lead the plan with what a stranger must act on first. Send long output to a file and grep it. Ask for screenshots of the case that matters (a person's narrow window, their real file), not only the default. Have watchers follow the base branch's newest run when a newer merge cancels one (a cancelled run stopped its watcher, and a ship sat waiting). Look at what people send before publishing it or passing it on (one screenshot showed a `/Users/<name>/…` path), and unpack archives in an empty directory. - **`fctl autopilot brief --only sessions,people,asks`** (`?only=`) shows only the named parts: direction, notes, asks, sessions, people, plan, log. The whole brief had grown to about 32 KB, which every wake read again, though its plan and log are already in the autopilot's conversation. The briefing and wake message point to `--only`. Notes and answers in parts it leaves out stay new, so the next whole brief or wake still marks them. I verified it with unit tests (the briefing's lines, parsing and ordering the parts, a brief with two of them, the CLI's flag) and end to end in `cargo xtask dev`. An autopilot's own session ran `fctl autopilot brief --only sessions,asks` through the relay and got only those parts, and the CLI and the API refuse an unknown part, naming the parts there are. The dev stack can't show that a note left out stays new, because fake-claude reads the whole brief at every wake; that part is a filter on what the brief showed. ## Related pull requests The other gaps the autopilot named, each in its own pull request: - #546 - #545 ## Not done here - Watchers that survive a handover, for what fctl doesn't wake autopilots for (the base branch's checks, a deploy). The merge wake in the pull request above removes the most common one. - `fctl send --attach` from an autopilot (#517). Since #543, an ask that names a session sends people's files to it directly. - `fctl run --when-free`: the briefing now says the limit's rule, and a session ending its turn already wakes the autopilot. - A standard place for a pull request's screenshots, and a check in `fctl send` against IDs of other projects' sessions. An autopilot can already message only the sessions it started. ## Worth confirming - **Decision:** `--only` names parts rather than headings: `sessions` is the autopilot's own, `people` is people's sessions. The lines on where it runs (time, limit, next wake, powers) always show. [fctl session](https://app.fctl.sh/s/ses_01M7DQEXFV9KNC4CY8ZZZ2KHZH) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Low risk.** It adds an optional `only` filter to the autopilot brief and extends briefing text and docs; without the filter the brief is unchanged, and an older control plane ignores the parameter. > > **What it does.** Adds more lessons and a rule on which sessions count toward an autopilot's session limit (queued, starting, working, paused or still stopping) to its briefing, the limit's error and the docs. The autopilot can now read its brief in parts with `fctl autopilot brief --only sessions,asks` (and `?only=` on the API), so each wake reads less. Unknown or empty part names are refused with an error that lists the parts. > > **Partial brief and notes.** Notes and answers in parts left out by `--only` stay new, so the next whole brief or wake still marks them. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M7DTRWZ9Y28496BEBENG90M5)'s first look at [`0f6bff4`](0f6bff4) · 11 files, +357 −44 · [Review agent settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub> <!-- /FCTL_REVIEW_SUMMARY --> --------- Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An autopilot that needs files only people have (designs, models, data files) can now name the session that needs them when it asks:
fctl autopilot ask --session spaghetti#1062 "…". On the Autopilot tab the ask links to that session, and its answer box takes files (paperclip, paste, or drop on the answer): they go straight to that session in a message from whoever answered, with the answer as its text, so nobody has to open the session and write to it by hand, and the files needn't be images. The autopilot hears which files went, in its wake and brief ("Ada answered “Attached”, and sent spaghetti#1062 2 files in a message: a.3mf, b.3mf"), and its instructions tell it to ask this way. From the CLI:fctl autopilot answer apa_… --attach a.3mf "…".abouton asks and ask requests,fileson asks andattachmentson answers; older clients ignore them. Migration0060adds two columns toautopilot_asks.Verified with unit tests (the brief's lines, the answer's client key, the CLI's flags, the tab's answer with files), a control-plane test in Node against D1 (which sessions an ask may name, and reading the ask back), and end to end in
cargo xtask dev: fake-claude's autopilot asked--session playground#2from its sandbox, through the relay; two non-image files attached on the tab reached playground#2 in a message from the person, and the autopilot's wake said which went.fctl autopilot answer --attachdid the same from the CLI, and an answer to an ask about a stopped session resumed it with the files.Screenshots
At c06a95a: an autopilot's ask on the Autopilot tab, before, then with two files attached to the answer.
The light theme, and a phone (390 px wide):
Related pull requests
Worth confirming
fctl session
Note
Medium risk. It changes the autopilot answer flow, which now claims uploaded files and sends a message to another session before the ask is claimed, and adds a migration with two columns on
autopilot_asks.What it does. Lets an autopilot's ask name the session it is about with
fctl autopilot ask --session, and lets the person answering attach files that go straight to that session in a message from them. The autopilot hears which files went in its wake and brief. It addsaboutandfilesto the protocol, CLI--attach, and a web answer box with paperclip, paste and drop. Since the last review, files are delivered before the ask is claimed, so nothing reopens an ask any more, and the message's client key now includes a digest of the text and file ids.Migration 0060. Adds nullable
about_idandfilescolumns toautopilot_asks; it must be applied before the new control plane runs.fctl review's first look at
c06a95a· 19 files, +982 −101 · Review agent settings