You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2febd7d
Browse filesBrowse the repository at this point in the historyBrowse files
feat(web): make a pool step by step, with what each cloud needs (#645)
## Summary
Making a pool now follows the Runners tab's step-by-step setup, as
#615's design asks. New pool asks in three steps: name it; its labels
and machines (labels, placement, sessions each machine runs, runners at
once, offline removal, approval, expiry); and where it runs (your own
machines, AWS, Google Cloud, Azure or Kubernetes). A live summary says
what the pool will do, and a preview shows its card once its first
runner is online. Choosing a cloud removes runners once offline and
packs sessions, as autoscaled machines want.
Once the pool is made, the dialog shows the token once, then the steps
for where its machines run, with every value of this instance and this
pool filled in:
- **Your own machines:** install fctl, then enroll with the token at the
chosen capacity.
- **AWS:** the token in a file, fctl's Terraform module (named after the
pool, with the instance, its version, the capacity and a `max_size` a
few below the pool's limit; the VPC and subnets left to fill in), then
`terraform apply`.
- **Google Cloud:** build the image with Packer, fill in the example's
`terraform.tfvars` (the token stays out of it), then apply with the
token in `TF_VAR_enrollment_token`.
- **Azure:** make the image's resource group, gallery and image
definition, named after the pool, then build the image into that gallery
with Packer (the template now takes `azure_gallery`). Then fill in
`terraform.tfvars` from the same shell (the subscription, the location,
the image's ID, and a resource group of the scale set's own) and apply
with the token in `TF_VAR_enrollment_token`.
- **Kubernetes:** the token in a secret, the host as a Deployment
(linking to the role and the preStop hook in Self-hosting), and a
TriggerAuthentication with a ScaledObject whose metrics-api trigger
reads the pool's demand.
I verified it with unit tests that check each place's steps hold the
instance, the token and the pool's values (and `YOUR_FCTL_VERSION`, with
where to find it, while the app hasn't heard the instance's version), a
component test of the steps from the form to the AWS setup, and in
`cargo xtask dev` in both themes and at a phone's width. The Azure
commands follow the guide's step 7, but nothing ran in a real cloud
account.
It is stacked on #644. The AWS, Google Cloud and Azure steps use
`deploy/cloud` and its Terraform, which #639 added.
Refs #615
- #644
- #639
- hyperstructure/design#80
## Screenshots
At d62c20b, from `cargo xtask dev`. New pool, with AWS chosen, then what
it shows once made, light:
| The steps | Once made |
|---|---|
| 
| 
|
Kubernetes in the dark theme, and Google Cloud at a phone's width:
| Kubernetes | Google Cloud, 390 px |
|---|---|
| 
| 
|
## Worth confirming
- **Decision:** "Sessions each machine runs" is in the form though it
isn't the token's: it only shapes the commands and Terraform it gives to
copy (`--capacity`, `capacity`).
- **Decision:** the AWS module's source isn't pinned to the instance's
version, because a release before #639 has no module; the step says to
pin it with `?ref=`.
- **Decision:** Kubernetes gets the secret and KEDA's objects in full
but the host's Deployment only in words with a link, since running the
host's sandboxes in a cluster is the Kubernetes driver's work (#617).
- **Decision:** choosing a cloud switches "When they go offline" from
Keep them to Remove after 5 minutes, and with it the placement to
packed, until someone changes them.
[fctl session](https://app.fctl.sh/s/ses_01M84BNFZPNEXTHDT8WGN1Q6JY)
<!-- FCTL_REVIEW_SUMMARY -->
---
> [!NOTE]
> **Low risk.** It adds a step-by-step new-pool dialog and generated
setup text to the web app, and a template variable for the Azure image
build; nothing here touches stored data or permissions.
>
> **What it does.** Making a pool in the Runners tab now goes in three
steps (name, labels and machines, where it runs), with a live summary
and a preview of the pool's card. Once the pool is made, the dialog
shows the token once and then the steps for the chosen place (own
machines, AWS, Google Cloud, Azure or Kubernetes), with the instance's
values and the pool's settings filled in. Azure's steps make the image's
gallery first, and the Packer template takes it as a new `azure_gallery`
variable.
>
> **Packer template.** `deploy/cloud/fctl-runner.pkr.hcl` gets an
`azure_gallery` variable that defaults to the old `acme_runners`, so the
guide keeps working; the guide's copy of the template changes with it.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M869JFYMV5K3XNY5YZN1325F)'s first
look at
[`d92acb9`](d92acb9)
· 12 files, +831 −156 · [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>
Copy file name to clipboardExpand all lines: docs/llms.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,7 @@ Each recipe says who does what: some steps take a person with a role in the proj
226
226
- **Pull requests** (`/pulls`): the pull requests agents opened, each once with its sessions, archived sessions' too; open ones sorted by what each needs next (waiting for your answer, with the agent's question and its answers to click, then ready for review, checks failing, agents at work, merge queue, drafts), merged and closed ones by day; each with its checks, fctl's review and its size; a filter whose matches each tab counts, a workspace or project, Mine (on until you turn it off, which the browser keeps; the sidebar's counts follow it); opened again from the sidebar, it shows the tab and the filter it had; `j`/`k`, Enter, `o` for GitHub, `c` to copy its link, `/` to filter, the arrows between tabs.
227
227
- **Session page** (`/s/<id>`, `r`, `c` and `d` for the message box, the changes and the details, `j`/`k` from turn to turn): the live transcript (tool calls fold into lines, edits show highlighted; the images the agent read show small under them for 7 days), the composer to message the agent (with its owner's lists for the model and effort level it works at from its next step: a new model, which reads the conversation again without Claude's prompt cache, asks first), Interrupt, Stop and Resume, Share, the follow bell, Changes (the files the branch changed; a file opens every file's diff, highlighted, one after the other at that file, with the list of files beside them marking the one in view: `j`/`k` or the arrow keys in the list go from file to file, `n`/`p` from change to change, ⌘F finds in all the diffs (Enter and Shift+Enter, ⌘G, Alt+C/W/R for case, whole words and regular expressions), `s` lays them out side by side, `w` wraps lines; as the agent changes the files, its changes come in where the reader looks while the lines in view stay put, and a button goes to those out of sight), pull requests with checks, context and usage, retrospectives (the transcript shows each with a line for each part, which opens to all it says, and marks what an update changed), ⌘F to find in the transcript, Open in Claude. The page reads the session in turns: a cover with the session at a glance (turns, the agent's time, steps, changes, pull requests, a ribbon of the turns), then each message opens a card, the agent's work hangs from it on a thread, and each turn ends with its time, steps and the files it edited (each opens its diff), and copies as Markdown or a link to it (`/s/<id>?turn=<seq>`); the agent's plan (its TodoWrite list) stays in the details; a line above the message box says what the agent does now and where it is in its plan, or that it's the reader's turn, and while the agent waits for its background tasks, names them in a list that goes to the call that started each (whose line says it runs in the background, then how long it ran); a bar under the header says which turn the reader is in and lists them all (the details list the newest six and the one the reader is in, the earlier ones a click away), a button goes back to the newest work or up to what came while the reader was away, and the conversation alone shows without the agent's work.
228
228
- **Project page** (`/p/<slug>`): Sessions, Autopilot (where the workspace lets projects have one: putting the project on autopilot, then where it stands, what it asks you, notes to steer it, its direction, plan, files, sessions and log), Schedules, Reviews, Memory (its notes, `?tab=memory`, and its retrospectives, `?tab=retrospectives`), Repositories, Members and Settings tabs. Settings is a page each, `?tab=`: General (`general`: name, description, icon, default branch, deleting it), Agents (`agents`: instructions, model and effort, the context size Claude compacts near, access on GitHub and to claude.ai, memory and retrospectives), Pull requests (`pull-requests`: opening them, commit credits, screenshots, follow-ups), Tickets (`tickets`), Sandbox (`sandbox`: setup script, caches, image, size, idle timeout, environment) and Secrets (`secrets`); owners and maintainers see and change them all, and everyone else in the project reads Tickets there. Each page saves on its own. Without a page, a phone lists them and a wider screen opens General beside them.
229
-
- **Workspace page** (`/w/<slug>`): Projects, People, Runners (with the command and token that add one, the runners that wait for your approval, and the enrollment tokens: every one for admins, members' own for members), GitHub, Linear, Settings (its name, address, avatar image, and the color its avatar shows without one: yellow, pink, blue, ink or one of its own, as `fctl workspaces set --color '#2a9d8f'` sets it), and the Audit log for admins.
229
+
- **Workspace page** (`/w/<slug>`): Projects, People, Runners (with the command and token that add one, its pools with what each needs now and their runners, a new pool made step by step with what its cloud needs and every value filled in, the runners that wait for your approval, and the enrollment tokens: every one for admins, members' own for members), GitHub, Linear, Settings (its name, address, avatar image, and the color its avatar shows without one: yellow, pink, blue, ink or one of its own, as `fctl workspaces set --color '#2a9d8f'` sets it), and the Audit log for admins.
230
230
- **Settings** (`/settings`, a page each, `?tab=`): Profile (`profile`: name and picture; without one, your Gravatar unless you turn it off), Email addresses (`emails`, with commit emails), Workspaces (`workspaces`: which Claude connection, leaving), Claude (`claude`), Linear (`linear`, your Linear account), Notifications (`notifications`), Appearance (`appearance`: dark or light, a 12- or 24-hour clock), App log (`log`: what the app did in this browser lately, kept only there, to copy into a report), Security (`security`: password and Google, passkeys, two-factor sign-in, devices), Access tokens (`tokens`) and Your data (`data`: one export a week, unless admins chose another wait, and deleting your account). Without `?tab=`, a phone lists the pages and a wider screen opens Profile beside them. **Admin** (`/admin`, instance admins): people, access (allowlist), sign-in (`?tab=sign-in`: how people sign in, the providers with their redirect URIs, the domains that require one, whether signing in makes accounts, two-factor sign-in), early access, workspaces, GitHub, runners, settings (with reserved addresses, Gravatar for everyone, how often people can export their data, and admin tokens where the instance takes them), audit.
231
231
- Notifications are Web Push to browsers where people turned them on (on iPhone and iPad, fctl added to the Home Screen): a followed session waits for a reply, pauses on a usage limit, or fails; an autopilot's own session, and those it starts while it is on, only when they ask something, or when the autopilot's own sessions failed four times in a row, and each day they go on failing (fctl doesn't pause it for failures: it tries again 5, 15 and 60 minutes later, then every hour until one works).
0 commit comments