Repository navigation
fix(host): check the driver before registering a runner - #24
Merged
Merged
Conversation
On the hyperstructure Mac, `fctl host install --driver apple --build-image` without Apple's `container` installed registered a runner, wrote the config, printed "✓ Driver: apple" with a detail saying it was not usable, then failed the image build with "running container: No such file or directory". Its hint, `container system start`, cannot work without the CLI. `--driver lima` did the same with limactl, so the Mac now has two runners named substrate. - Install checks sign-in, picks the driver, builds the image if asked (checking the runtime first) and requires a ready driver before it registers anything, so a failure leaves nothing behind. - `--driver auto` no longer settles for the process driver, which has no isolation, when no runtime is ready; it lists what each one lacks. - The driver it checked goes into host.toml instead of `auto`, so the service does not pick again at start, possibly before a runtime is up. - The Apple and Docker probes tell "not installed" from "not running", with the fix for each, and Lima's says where to get it. A program that is not on the PATH is named as such. Refs #1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
fctl host install registers a runner
kalaspuff
pushed a commit
that referenced
this pull request
Oct 18, 2026
Agents now have written rules for issues and for what to do after opening a pull request. The rules go in AGENTS.md, which any agent reads, and the step-by-step procedures go in two new Claude Code skills next to `commit` and `release`. Skills load only when needed. - **`.claude/skills/issues/SKILL.md`** covers: - reading an issue, its comments and the pull requests that mention it before starting (`gh api …/issues/N/timeline`, so you see only real cross-references); - `Fixes #N` only for a pull request that does everything the issue asks, `Refs #N` otherwise; - ticking checklist items only once they're done and verified, with evidence, and posting status comments for partial progress; - when an issue may close, with leftovers moved to new linked issues, and asking before closing an issue the task didn't name; - new issues: search for duplicates, the shape of #12 and #13, the component labels, and the fctl session link but no tool footers; - adding to other people's issues instead of rewriting them; - what to do when another repository needs a change. - **`.claude/skills/pull-requests/SKILL.md`** covers: - waiting for CI in the same turn with `gh pr checks N --watch --fail-fast`, since nothing wakes a session afterwards until #8; - reading failures with `gh run view --log-failed`, fixing title failures with `gh pr edit --title`, and rerunning infrastructure failures once; - answering each review comment in its thread; - rebasing your own branch when `main` moves; - after the merge: not pushing to the merged branch, recording the merge in the issue, and saying whether the change is deployed, released or waiting for a release (`git tag --contains`). - **AGENTS.md** gets "Issues" and "After opening a pull request" sections with the rules, linking the skills. - **The `commit` skill** now says `Fixes` only when the pull request finishes the issue and `Refs` otherwise, and points to `pull-requests` after opening one. The same rules go to hyperstructure/design and hyperstructure/fctl-site in their own pull requests, adapted to their checks and labels. Those repositories now have component labels like fctl's. #20's "decision for later" (whether fctl's prompt gives every project these rules) is now #28, together with #20's two checks that need real sessions. ## How I verified it Claude Code 2.1.296's `system/init` event, started in this branch, lists `commit`, `release`, `issues` and `pull-requests` under `skills`. That's #20's first check. I also checked the `gh` commands against the API, for example the timeline query on #1, which lists #14, #15, #20 and #24. Fixes #20 Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
What happened
On the hyperstructure Mac (#1), without Apple's
containerinstalled:--driver limadid the same withlimactl. The Mac now has two runners named substrate, and only the second one's token is on disk.What changes
fctl host installchecks sign-in, picks the driver, builds the image if asked, and requires a ready driver, all before it registers a runner. A failure leaves nothing registered and nothing written:--driver autonever settles for the process driver. That's the default, and it used to fall back to the process driver (no isolation) when no runtime was ready. Now it lists what each runtime lacks and asks for--driver processexplicitly.host.tomlgets the driver install checked instead ofauto. The service picked again at every start, so a host that started before its runtime was up could quietly run agents with the process driver. Hosts installed earlier keepautountil they're reinstalled or the file is edited.limactlis not installed") instead of "No such file or directory".fctl host image buildchecks the runtime first too.docs/cli.mddescribes the check and shows a concrete driver inhost.toml.How I verified it
driver::container::tests::says_whether_the_runtime_is_missing_or_stopped, withtrue,falseand a missing program standing in for the CLIs, anddriver::tests::a_missing_program_is_named.fctl host installin throwaway config directories with--tokenand--no-service, so nothing reached a server or launchd.FCTL_CONTAINER_BINandFCTL_DOCKER_BINprovided stand-ins.--build-image), Apple's service stopped, Lima missing with--build-image,autowith nothing ready, not signed in, andfctl host image buildwith Apple missing.--driver process, Apple ready, andautowith Docker ready. They saveprocess,appleanddocker.cargo fmt --all --check, clippy (native and wasm) with-D warnings, andcargo test --workspace --locked(67 tests) pass.containerCLI and launchd on macOS.Is it breaking?
On a machine with no runtime,
fctl host installnow needs--driver processexplicitly, where it used to fall back to it. I didn't mark it breaking (!): the fallback wasn't documented, and it ran agents without isolation.cargo xtask devwritesdriver = "process"itself and isn't affected. Add the!if you see it differently.Not changed
driver = "auto"and nothing is ready. Changing that affects hosts that rely on it, so it's worth deciding separately.fctl admin runnersdoesn't show ids, and the CLI can't delete runners (the web app can). The two "substrate" runners have to be cleaned up in Admin → Runners.This ships with the next release. Until then, on the Mac: install Apple's
container, runcontainer system start, then runFCTL_RUNNER_TOKEN="$(cat ~/.config/fctl/host-token)" fctl host install --driver apple --build-image, and delete the first "substrate" runner.Refs #1
Session: https://app.fctl.sh/s/ses_01M560YQN20DK06NSEWWVYB3Q4
🤖 Generated with Claude Code