Repository navigation
docs(legal): say what app.fctl.sh keeps of an autopilot's held messages - #125
Merged
kalaspuff merged 3 commits intoNov 15, 2026
Merged
Conversation
An autopilot's message to one of its sessions that rests, at its session limit, now waits in D1 until one of its sessions makes room (hyperstructure/fctl#550): the policy says what it keeps of each and for how long.
This was referenced Nov 15, 2026
This comment has been minimized.
This comment has been minimized.
… who sees them They go to the autopilot's account in its brief and to the project's members in its view, and wait however long it is paused, as fctl's review of #125 found.
Contributor
Author
|
On the two findings in the review's summary, both fixed in 06a275b:
|
…pilot-s-messages-wait-for-roo # Conflicts: # legal/privacy.md
kalaspuff
approved these changes
Nov 15, 2026
kalaspuff
deleted the
fctl/1291-let-an-autopilot-s-messages-wait-for-roo
branch
November 15, 2026 11:50
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Nov 15, 2026
…556) ## Summary An autopilot's message to one of its sessions that rests no longer fails while as many of its sessions work as its people allow. The control plane keeps it in D1 (`autopilot_held`) and sends it as soon as one of its sessions ends its turn, stops or fails, those held going out in the order the autopilot sent them. This replaces the `send-when-free.sh` scripts autopilots wrote to poll `fctl send`, which a fresh session lost at each handover. ADR 0081 records why fctl holds such a message rather than let it through: nothing tells how much a message will set going. - **Holding:** `POST /sessions/{id}/messages` from an autopilot answers with `held` (its `aph_…` id and how many go before it) and the delivery it later goes out as. A message to a session that works goes at once. One to a resting session waits behind messages already held, as does any message to a session that has held messages waiting. At most 30 are held per autopilot. A retry of the same request finds the one already held. - **Releasing:** SessionObject sends what may go as a crew session ends its turn, stops, fails or starts working again (a session that works takes its held messages without needing room). The autopilot's wakes, its next message and people raising its limit do too. Each held message goes out from the person the autopilot acted as, with the delivery id the API answered with. One for a session that failed or is gone is dropped, and the autopilot's log says so. Held messages wait while the autopilot is paused; taking the project off autopilot drops them. - **CLI, briefing and brief:** `fctl send` says "Held: it goes to shop#41 once one of your sessions ends its turn, stops or fails…". `fctl autopilot held` lists the held messages (and `fctl autopilot` shows them), and `--take-back <id>` takes one back, for the autopilot or those who steer it, until a pass claims it to send it (then `409`). The briefing tells the autopilot not to send a held message again, and the brief lists held messages under its sessions. Verified with unit tests of the hold and release rules, wasm tests of the D1 queries against the D1 stand-in (what waits, what goes, claiming one to send and taking one back), and `cargo xtask check lint`. I also drove a fake-claude autopilot in `cargo xtask dev` with a limit of one session, and saw: - two messages to a resting session held in order while another session worked; - a person taking one of them back; - the other going out the moment the working session ended its turn; - a held message following a person's message to its session, sent by that session's own object; - a held message to a stopped session waiting while the autopilot was paused, then resuming that session when the autopilot was resumed; - `fctl resume` at the limit still refused, with its new wording. The privacy policy on fctl.sh says what is kept of held messages and for how long: - hyperstructure/fctl-site#125 Refs #550: `fctl run --when-free` (holding a new session's start) isn't part of this; see Worth confirming. ## Worth confirming - **Decision:** a message waits for room, rather than going through to a resting session whatever the limit (the issue's open question, recorded in ADR 0081). - **Decision:** only messages are held. `fctl resume` of a failed session and `fctl run` still fail at the limit, with the resume's refusal now pointing out that a message waits by itself. Holding a start (`fctl run --when-free`) would mean replaying a session's start without the request that asked for it, so I left it for a follow-up, should autopilots still need it. - **Decision:** held messages wait while the autopilot is paused and go out when it resumes; taking it off autopilot drops them. - **Decision:** people who steer the autopilot can see held messages (`fctl autopilot held`, the API's `held`) and take them back. The web app's Autopilot tab doesn't show them yet. [fctl session](https://app.fctl.sh/s/ses_01M7FBR91XMD2RC1EXPNDF9A4D) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Medium risk.** It changes how an autopilot's messages to its sessions are delivered: they can now be stored in a new D1 table and sent later from the session objects, which touches session delivery and autopilot state. > > **What it does.** When an autopilot messages a resting session while as many of its sessions work as its limit allows, the control plane now holds the message in a new `autopilot_held` table instead of failing it. Held messages go out in the order they were sent as soon as a session ends its turn, stops or fails, or when the autopilot wakes or its limit is raised. The API, CLI (`fctl autopilot held`, `--take-back`), the briefing and the generated web types are extended, and ADR 0081 records the decision. A pass claims each held message (`sending_at`) before sending it, and a message taken back no longer holds up later ones for the same session. > > **New migration.** `0063_autopilot_held.sql` adds the `autopilot_held` table to D1, and a message from an autopilot to a session can now be answered with `held` instead of an error. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M7FHGA8F2MD011Y9S54N84XQ)'s first look at [`b3fccb1`](b3fccb1) · 22 files, +1431 −34 · [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>
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's message to one of its sessions that rests, while as many of its sessions work as its people allow, now waits on app.fctl.sh until one of them makes room, rather than being refused. The privacy policy now says what is kept of each such message: its text, its files' names, types and sizes, the session it goes to, the person the autopilot acts as and when it was sent. It also says how long: until the message goes to its session (and into that session's transcript), someone takes it back, its session is deleted or the project is taken off autopilot, and however long the autopilot is paused. And it says who sees it: the account the autopilot runs on (its brief shows the start of each) and the project's members (its autopilot view).
updatedmoves to 2026-11-15.fctl session
Note
Low risk. Only the privacy policy text changes, plus a bump of the pinned fctl docs reference.
What it does. Updates
legal/privacy.mdto say what app.fctl.sh keeps of the messages an autopilot holds for its sessions while its session limit is full: what is stored, that their start goes to the Claude account the autopilot runs on, that project members see them, and how long they stay. It also bumpsfctl-docs.refto a newer fctl commit.Retention wording. The policy now says a held message waits however long the autopilot is paused, and is dropped for a failed session only once the autopilot is next on; this follows fctl#556, which is not merged yet.
fctl review's first look at
305d009· 1 file, +18 −7 · Review agent settings