Skip to content

docs(web-app): pools on the Runners tab, making one, choosing one - #80

Merged
kalaspuff merged 5 commits into
mainfrom
fctl/1545-pools-in-the-web-app
Nov 24, 2026
Merged

kalaspuff merged 5 commits into
mainfrom
fctl/1545-pools-in-the-web-app

Conversation

@fctl-sh

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

Copy link
Copy Markdown
Contributor

Summary

The design docs now describe the pools' web part of hyperstructure/fctl#615, which hyperstructure/fctl#644 and hyperstructure/fctl#645 build. On the Runners tab, enrollment tokens become pools, each a card that shows what it's doing as a sentence and its numbers as facts, with its runners under it. A pool is made step by step (name it, its labels and machines, where it runs), with a live summary and a preview of its card, and once made the dialog shows what to copy where its machines run: its own machines, AWS, Google Cloud, Azure or Kubernetes. An edit dialog changes a pool as it runs. A project's settings get a Runners page, where it chooses a pool by its name and how long its sessions wait for it.

The pages describe the web app as fctl's main has it, with hyperstructure/fctl#648: members' own pools aren't offered to projects, the amber line waits for the pools to load, the setup steps always pass the capacity on, and Azure's steps make the image's gallery first.

Docs only: nothing in the package changes, so it needs no release.

fctl session


Note

Low risk. Documentation only, in two files under docs/web-app. Some wording describes behavior that comes with the still-open hyperstructure/fctl#648, so it reads wrong if this merges first.

What it does. Documents pools on a workspace's Runners tab: pool cards and their states, making a pool in a dialog with a choice of where it runs (own machines, AWS, Google Cloud, Azure, Kubernetes) and the steps each gives to copy. It also documents how projects choose a pool by name on their Runners settings page, and fixes the Access tokens wording that compared itself to the removed enrollment-token form.

Depends on fctl#648. A few lines say they describe behavior "since hyperstructure/fctl#648", which is still open, so that pull request should merge before this one.

fctl review's first look at e856c6b · 2 files, +108 −35 · Review agent settings

Pool cards with what each needs now and the runners they enrolled, labels and placement in the form and an edit dialog, and choosing a pool by name in a project's settings (hyperstructure/fctl, the pools' web part of #615).
The new pool dialog's three steps, its live summary and preview, and the setup it shows once the pool is made for machines of your own, AWS, Google Cloud, Azure and Kubernetes (hyperstructure/fctl, making a pool for #615).
@fctl-sh fctl-sh Bot changed the title docs(web-app): pools on the Runners tab, and a project's Runners page docs(web-app): pools on the Runners tab, making one, and a project's choice Nov 24, 2026
@fctl-sh fctl-sh Bot changed the title docs(web-app): pools on the Runners tab, making one, and a project's choice docs(web-app): pools on the Runners tab, making one, choosing one Nov 24, 2026
@fctl-review

This comment has been minimized.

Comment thread docs/web-app/lists-and-pages.md Resolved
Comment thread docs/web-app/explaining.md Resolved
Comment thread docs/web-app/explaining.md Resolved
Comment thread docs/web-app/explaining.md Resolved
Comment thread docs/web-app/lists-and-pages.md Resolved
kalaspuff pushed a commit to hyperstructure/fctl that referenced this pull request Nov 24, 2026
…#644)

## Summary

This is the pools' web part of #615: an admin sees each pool's state at
a glance, and a project chooses a pool by its name.
- **Pools on the Runners tab.** The enrollment tokens section becomes
"Pools". Each pool is a card with its labels as chips and what it needs
now, read every 15 seconds from the demand endpoint. A sentence says
what it's doing ("Growing: 1 runner is starting for 3 sessions that
wait.", or in amber "At its limit of 20 runners: 3 sessions wait for
room."), followed by its facts ("6 of 8 runners busy · 11 of 32 sessions
· 3 sessions waiting · longest 2m"), its placement and what its token
does. The runners it enrolled are listed under it, and leave the list
above.
- **Making and changing pools.** "New pool" asks for labels and a
placement. Until someone chooses, the placement follows the offline
removal, as the server's default does, and the live summary says what
each choice means. A pool's ⋯ menu has Edit…, which changes its name,
labels, placement and limit as it runs.
- **A project's Settings → Runners.** "Its sessions run on" offers Any
runner, each pool by name with what its runners give ("AWS large: 2
runners with 4 CPUs and 7.9 GiB · aws, large"), or labels you choose.
Under it, how long sessions wait for those runners before any runner
takes them. Labels that no runner or pool has say so in amber, and name
who adds runners. Maintainers who aren't workspace admins still see
pools by name, read from the workspace's runners.

The design docs in hyperstructure/design describe both. I verified it
with unit tests for the pool wording, the cards, the form and the
settings page, and in `cargo xtask dev`: a pool "AWS large" with two
runners, filled by ten long sessions of a project that asks for its
labels, with two left waiting ("Waiting for AWS large: its runners are
busy"), in both themes and at a phone's width.

It is stacked on #643 and goes in after it. "Making a pool" step by
step, with what each cloud needs, comes in a follow-up that builds on
#639's Terraform module.

Refs #615

- #643
- hyperstructure/design#80

## Screenshots

At e72d7ad, from `cargo xtask dev`: the Runners tab's pools, with "AWS
large" full and two sessions waiting. Light, dark, and dark at a phone's
width:

![The Pools section, light: AWS large's card with labels aws and large,
the amber sentence "2 sessions wait…: it wants 3 runners, and has 2
online.", its facts, and its runners aws-large-1 and aws-large-2 under
it; Elastic and GPU pool with no runners
yet](https://app.fctl.sh/api/v1/published/vSuRbRzljag2TWwxBpq67hGxfvZIZ2snRj83h9q5v7K/pools-light.png)

![The same,
dark](https://app.fctl.sh/api/v1/published/p5kzJQJbuG5NChQqKmXPBjmxiPKzqK6sX7nY8VmBG9s/pools-dark.png)

![The Pools section at 390 px,
dark](https://app.fctl.sh/api/v1/published/Xa4Td3H10UW4NAnsZqXeJCfaxNd9hX6fWAHNNGk2l24/pools-phone.png)

The new pool form, with labels and placement:

![New pool: Name, Runs, Labels and Placement, Expires, Runners at once,
When they go offline, Approve each runner, and the live
summary](https://app.fctl.sh/api/v1/published/Chzyj6seI88144ENcvH9zKO5M0KEjNMiaalTYZGufXm/pools-new.png)

A project's Settings → Runners, with its choices open, then dark:

![Settings → Runners: "Its sessions run on" open, with Any runner, GPU
pool, Elastic (no labels to choose it by), AWS large chosen, and Runners
with labels you
choose](https://app.fctl.sh/api/v1/published/K6cjmuLhVAbrmpUERcs7YoiT2bTKNhzGhPVmYn87Ue4/project-runners-open.png)

![Settings → Runners, dark: AWS large, its labels aws, large, and Wait
for
one](https://app.fctl.sh/api/v1/published/lvxBF7sa8jG7wXs75wrjGxU8EADcSBY2nxhSSeNI0Ay/project-runners-dark.png)

## Worth confirming

- **Decision:** the Runners tab calls enrollment tokens pools: the
heading is "Pools", the button is "New pool", and the token is how a
pool's machines enroll. The CLI keeps `fctl runners enrollment-tokens`
beside `fctl runners pools`.
- **Decision:** the pool's state sentence says what the numbers show
("it wants 3 runners, and has 2 online"), not "Scaling up", because fctl
can't tell whether anything scales the pool. It says "Growing" only
while runners are starting.
- **Decision:** the issue's 24-hour chart of busy slots and waiting
sessions isn't here. It needs a time series the control plane doesn't
keep yet, which is what Insights (#621) is to provide. "Idle: 2 runners
retire in 14 minutes" is left out for the same reason: hosts don't
report when they'd retire.
- **Decision:** a pool without labels is listed in a project's choices
but can't be chosen, and says why ("no labels to choose it by: its
admins give it some").

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

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Medium risk.** It changes the Runners tab and a project's runner
settings, which admins and maintainers use to decide where sessions run.
A wrong pool choice leaves sessions waiting for runners that never take
them.
>
> **What it does.** The Runners tab now calls enrollment tokens pools.
Each pool is a card with its labels, a live sentence on what it needs
(read every 15 seconds from the demand endpoint), and the runners it
enrolled. Admins can make and edit pools. A project's Settings → Runners
lets a maintainer choose Any runner, a pool by name, or labels of their
own, and warns when no runner or pool has the labels.
>
> **Personal pools offered to projects.** `poolChoices` doesn't skip
pools that belong to a person, so an admin can pick one for a whole
project and everyone else's sessions then wait for runners that never
take them.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M868VXA3GVCHSA7NCNAYYC5T)'s first
look at
[`6e34128`](6e34128)
· 16 files, +1480 −200 · [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>
kalaspuff pushed a commit to hyperstructure/fctl that referenced this pull request Nov 24, 2026
## 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 |
|---|---|
| ![New pool: 1 Name it, 2 Choose its labels and machines, 3 Choose
where it runs (AWS), the live summary, and the preview of AWS large's
card with its first
runner](https://app.fctl.sh/api/v1/published/IJGQePCaZumJt7heP4CYrTDJpbHnMpbxAK7qtchWVHk/new-aws-form.png)
| ![AWS large is ready: the token once, then Bring it online on AWS:
keep the token in a file, fctl's module filled in, terraform
apply](https://app.fctl.sh/api/v1/published/TN8dikKMhOrgmYnKTs0vFuRGxwjMKYmNeod29I42S1c/new-aws-created.png)
|

Kubernetes in the dark theme, and Google Cloud at a phone's width:

| Kubernetes | Google Cloud, 390 px |
|---|---|
| ![Kubernetes large is ready: the secret, the Deployment, and the KEDA
TriggerAuthentication and
ScaledObject](https://app.fctl.sh/api/v1/published/G95Ghw2y2bqV8o8o1EAObOu4x9xic1v0auJKRYNozJm/new-k8s-created.png)
| ![Google Cloud large is ready, at 390 px: the image, the example's
values, terraform
apply](https://app.fctl.sh/api/v1/published/nJlVwaCXJEWaifcqR0dx8tL7UTyULBn6q5JYhFmm7mb/new-google-phone-created.png)
|

## 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>
fctl-sh Bot added 2 commits November 24, 2026 08:22
…e-web-app

# Conflicts:
#	docs/web-app/explaining.md
…page do

A revoked or expired pool's card has no menu, and one with no runners
says its token enrolls no more. Choosing a cloud replaces only Keep
them, and the placement follows only until someone chooses one. The
Runners page's row on a phone, its labels field, its pools' words for
those who don't manage them, and that members' own pools aren't offered
(fctl#648). The setup steps' capacity, and Azure's gallery (fctl#645).
@fctl-review

This comment has been minimized.

Comment thread docs/web-app/explaining.md Resolved
Comment thread docs/web-app/explaining.md Resolved
Comment thread docs/web-app/explaining.md Resolved
Comment thread docs/web-app/lists-and-pages.md Resolved
…fctl#648 changes

The New pool form offers seven ways to remove offline runners, not five;
the Runners tab's section names lib/pools.ts, lib/pool-setup.ts and
PoolCard; Access tokens' summary is like a new pool's. The setup steps'
capacity, the Kubernetes step's words and the amber line's wait say that
they are as hyperstructure/fctl#648 makes them.
@fctl-sh

fctl-sh Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

The two findings in the review's text are fixed in e856c6b:

  • "Like enrollment tokens'": Access tokens' live summary is now "like a new pool's".
  • The Runners tab's files: its header now lists PoolCard in components/workspace/runners.tsx, lib/pools.ts and lib/pool-setup.ts.

@kalaspuff
kalaspuff merged commit c5c7a35 into main Nov 24, 2026
4 checks passed
@fctl-sh

fctl-sh Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

hyperstructure/fctl#648 merged (5ab7c26). The pages' "since hyperstructure/fctl#648" lines describe fctl's main now, so nothing here waits for it any more.

@kalaspuff
kalaspuff deleted the fctl/1545-pools-in-the-web-app branch November 24, 2026 08:32
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