Skip to content

docs(web-app): an autopilot's power to manage people's sessions - #85

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/1724-autopilot-sessions-able-to-manage-other
Nov 30, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/1724-autopilot-sessions-able-to-manage-other

Conversation

@fctl-sh

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

Copy link
Copy Markdown
Contributor

Summary

The Autopilot tab's doc now covers the new power that lets an autopilot manage the sessions people start in its places, from hyperstructure/fctl#661. What it may do lists Manage people's sessions first, right under Start and steer sessions, as the one power a new autopilot goes without. How it works gives it a line of its own. Giving the power counts as changing how much the autopilot works, for whose subscription it runs on.

The doc describes the tab as that pull request builds it; its screenshots show both parts.

fctl session


Note

Low risk. It only edits one design doc, docs/web-app/autopilot.md, with no code, tokens or assets changed.

What it does. Updates the Autopilot tab's design doc for the new power that lets an autopilot manage the sessions people start in its places, from hyperstructure/fctl#661. The doc now lists Manage people's sessions first among the powers, off by default for a new autopilot, adds a line for it under How it works, and counts giving it as a change that moves the autopilot onto the changer's subscription.

fctl review's first look at 96819e2 · 1 file, +13 −7 · Review agent settings

The Autopilot tab's What it may do lists Manage people's sessions first,
unchecked for a new autopilot, and How it works says so on a line of its
own. Giving it counts as changing how much it works.

Refs hyperstructure/fctl (fctl session 1724)
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner November 30, 2026 12:25
kalaspuff pushed a commit to hyperstructure/fctl that referenced this pull request Nov 30, 2026
## Summary

An autopilot can now manage the sessions people start in its places as
it does its own. A new power, `others` (*Manage people's sessions* on
the Autopilot tab, `fctl autopilot set --powers …,others`), does the
following:

- **Wakes:** fctl wakes the autopilot a minute after one of those
sessions ends a turn, asks something or fails, or a pull request of one
that's resting merges. Their merged pull requests' checks on the base
branch wake it too, as its own sessions' do.
- **Brief and wakes:** they're listed apart from its own sessions, with
who started each, what each said as its turn ended and what people wrote
to it.
- **Acting:** it can message those sessions (with files) and resume one
that failed, so it can see their pull requests updated, merged and
deployed along with its own work. A session it resumes carries on on its
people's Claude connection, as one a message resumes does, and only
while its person may still run it there.

Without the power nothing changes: people's sessions stay theirs, and
the autopilot asks before helping, as before.

Those sessions stay their people's. They run on their own Claude
subscriptions, don't count toward the autopilot's limits (so its
messages to them are never held), and keep notifying the people who
follow them. The autopilot can't interrupt, stop, rename or archive
them, and it leaves one its people stopped alone: it can't message or
resume it, since that would start the session again. Its briefing says
the starter's word wins over its own, and the session's agent is told
the same: a session whose sandbox starts while it's managed gets a line
in its system prompt (`SessionSpec.managed_by`). One that started
earlier sees each autopilot message prefixed with which autopilot wrote
it and that its people's word wins. ADR 0105 records the design.

**Verified** with:

- Unit tests:
  - domain: gate, briefing, brief and wake message
  - fctl-agent: the prompt line and the message prefix
  - CLI: powers parsing
  - web: settings dialog and wake text
- Control-plane tests against the D1 stand-in: which autopilot manages a
session, what the brief and wakes list, merge checks.
- `cargo xtask check lint`.
- An end-to-end run in `cargo xtask dev` with fake-claude. With the
power on, a person's session ending its turn woke the autopilot ("Woke
for people's session #2"), and the wake message and brief listed it with
what it said and what its starter wrote to it. The autopilot's `fctl
send playground#2 …` reached that session, its agent saw "The autopilot
wrote:" and had the new system-prompt line, and `fctl stop playground#2`
was refused.

## The dev stack's Worker stack

In the unoptimized dev Worker, the router's frame is within about 600
bytes of the 1 MiB wasm stack on main. This change's new
`AutopilotWake.others` list grew every event by enough to break the dev
stack's setup, so `UserMessage.wake` is now boxed; the JSON is the same,
and the router's frames measure the same as main's again. Separately,
relayed autopilot calls (route → relay → dispatch) already overflow that
stack in main's dev build. I ran the end-to-end check with an optimized
Worker for that reason; production builds aren't affected. #660 splits
the router, which fixes both.

## Screenshots

*What it may do*, in the settings dialog, before and after (light, then
dark): the new power sits right under *Start and steer sessions*.


![before-powers-light.png](https://app.fctl.sh/api/v1/published/BeSoy6q3bZT42wxMSw8PmWvJ0NrE9S1e7RF1RSLXfTG/before-powers-light.png)

![after-powers-light.png](https://app.fctl.sh/api/v1/published/I9XLqeuFk99DtOrfg3FqRXBjQXI99nHQoUFo8IPEWOl/after-powers-light.png)

![after-powers-dark.png](https://app.fctl.sh/api/v1/published/HzTsCDRsauJC29zLnk2yNBQ6vz65YyL98fknCRf3tTg/after-powers-dark.png)

*How it works*, before and after (light, then dark): with the power, it
gets a line of its own.


![before-card-light.png](https://app.fctl.sh/api/v1/published/KG10WUqyZ1JBbFvQ7H0iiqzIAsDbx5eE0u0VlFlJp5v/before-card-light.png)

![after-card-light.png](https://app.fctl.sh/api/v1/published/fiH0e5D79QBO9bmsVU1DcN4gwrCBDikukWbDAKu7CQJ/after-card-light.png)

![after-card-dark.png](https://app.fctl.sh/api/v1/published/tB1vNbLYCp8LVDa9bFKjgFkXhjc3NLQRKO3VM2yw7fm/after-card-dark.png)

## Related

- hyperstructure/design#85

## Worth confirming

- **Decision:** it's a power rather than a separate setting, so it sits
in *What it may do*. It's the only power a new autopilot doesn't get by
default, and `--powers all` leaves it out too.
- **Decision:** giving it the power counts as changing how much it
works, because it adds a wake for each person's session. When someone
other than the owner turns it on, the autopilot moves to their
subscription, unless the owner keeps it on theirs.
- **Decision:** it may message people's sessions, and resume one that
failed, but not interrupt, stop, rename or archive them, nor message or
resume one its people stopped. A stop counts as theirs when fctl gave
the reason for a person's stop, which also covers fctl stopping it
because its people lost their Claude connection or workspace place, and
when the host forced the stop (which can also end an idle stop, erring
toward leaving the session alone). One stopped after its idle timeout or
a drain still takes a message, which resumes it on its people's plan.
- **Decision:** a session has at most one manager: its project's own
autopilot (if that one isn't off and has the power), otherwise the
workspace's autopilot. So a project autopilot without the power leaves
that project's people's sessions to a workspace autopilot that has it.
- **Assumption:** every non-review session people start now keeps the
short `said`, `heard` and `silence` excerpts in its D1 row, as crew
sessions already did, so that a session already running when the power
is turned on has them. These are excerpts of what the transcript already
holds, and they're deleted with the session.
- **Assumption:** the autopilot's messages to someone's session spend
that person's Claude plan, and choosing the power is accepting that.

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

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Medium risk.** It lets an autopilot message and resume sessions that
people started, running on their Claude plans, behind a new
off-by-default power. It touches permission gating and session resume.
>
> **What it does.** Adds an `others` power so an autopilot can manage
the sessions people start in its places: it is woken when they end a
turn or fail, sees them in its brief, and can message them and resume
ones that failed. Those sessions stay their people's: they run on their
own plans, count toward none of the autopilot's limits, and one its
people stopped is left alone. Since the last review, resuming a managed
session also checks that its person may still run it on their
connection, and a forced stop counts as the person's.
>
> **Spends people's plans.** Autopilot messages and resumes of people's
sessions run on those people's Claude subscriptions, and the power is
off by default and left out of `--powers all`.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M8P7V63B795JW9D4XS54NHEG)'s first
look at
[`975155d`](975155d)
· 30 files, +1536 −151 · [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
kalaspuff merged commit eec077e into main Nov 30, 2026
4 checks passed
@kalaspuff
kalaspuff deleted the fctl/1724-autopilot-sessions-able-to-manage-other branch November 30, 2026 13:33
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