From 8c5d100f8a158a0aa2bed92cf61af1870d678191 Mon Sep 17 00:00:00 2001 From: "fctl-sh[bot]" Date: Sun, 18 Oct 2026 02:52:45 +0000 Subject: [PATCH 1/4] docs: add the sandbox images page and say hosts pull from ghcr.io hyperstructure/fctl#39 publishes fctl's default sandbox image to ghcr.io/hyperstructure/fctl-agent, and hosts pull it from there instead of building it. Its new docs page, docs/sandbox-images.md, goes in the docs' navigation after Self-hosting, and the privacy policy says that `fctl host` pulls that image from GitHub's container registry, alongside the downloads from fctl.sh. Refs hyperstructure/fctl#2 Co-Authored-By: Claude Opus 5.5 --- legal/privacy.md | 10 ++++++---- scripts/docs.mjs | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/legal/privacy.md b/legal/privacy.md index f79618d..5d94624 100644 --- a/legal/privacy.md +++ b/legal/privacy.md @@ -1,5 +1,5 @@ --- -updated: 2026-10-17 +updated: 2026-10-18 description: What personal data hyperstructure collects on fctl.sh and app.fctl.sh, why, who receives it, how long it is kept, and your rights. --- @@ -48,9 +48,11 @@ are kept for a few days. fctl.sh sets no cookies, stores nothing in your browser and loads nothing from other websites. -The install script and `fctl host` download releases from fctl.sh. Beyond -that, the `fctl` command talks only to the fctl instance you sign in to, and -the agents on your hosts to Anthropic and GitHub. +The install script and `fctl host` download releases from fctl.sh, and +`fctl host` pulls the default sandbox image from GitHub's container +registry, ghcr.io. Beyond that, the `fctl` command talks only to the fctl +instance you sign in to, and the agents on your hosts to Anthropic and +GitHub. ### When you use app.fctl.sh diff --git a/scripts/docs.mjs b/scripts/docs.mjs index 37a7900..3ebd297 100644 --- a/scripts/docs.mjs +++ b/scripts/docs.mjs @@ -45,6 +45,7 @@ const PAGES = [ { slug: "getting-started", file: "docs/getting-started.md", nav: "Getting started" }, { slug: "cli", file: "docs/cli.md", nav: "The CLI" }, { slug: "self-hosting", file: "docs/self-hosting.md", nav: "Self-hosting" }, + { slug: "sandbox-images", file: "docs/sandbox-images.md", nav: "Sandbox images" }, { slug: "architecture", file: "docs/architecture.md", nav: "Architecture" }, { slug: "security", file: "docs/security.md", nav: "Security" }, { slug: "development", file: "docs/development.md", nav: "Development" }, From bc6bfb53f4e2f0411754762ade32afe08deb8dd3 Mon Sep 17 00:00:00 2001 From: "fctl-sh[bot]" Date: Sun, 18 Oct 2026 11:37:38 +0000 Subject: [PATCH 2/4] docs(legal): say that building the sandbox image downloads it from GitHub The default sandbox image moves to hyperstructure/sandbox, published as ghcr.io/hyperstructure/sandbox. Hosts still pull it from ghcr.io, and `fctl host image build` now downloads the image's sources from GitHub rather than carrying them in the binary. Co-Authored-By: Claude Opus 5.5 --- legal/privacy.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legal/privacy.md b/legal/privacy.md index d9c78c5..4d5c57c 100644 --- a/legal/privacy.md +++ b/legal/privacy.md @@ -50,8 +50,9 @@ from other websites. The install script and `fctl host` download releases from fctl.sh, and `fctl host` pulls the default sandbox image from GitHub's container -registry, ghcr.io. Beyond that, the `fctl` command talks only to the fctl -instance you sign in to, and the agents on your hosts to Anthropic and +registry, ghcr.io (`fctl host image build` downloads the image's sources +from GitHub instead). Beyond that, the `fctl` command talks only to the +fctl instance you sign in to, and the agents on your hosts to Anthropic and GitHub. ### When you use app.fctl.sh From 7ccfa1b6a17651f92be02abc11ae969701da30c5 Mon Sep 17 00:00:00 2001 From: "fctl-sh[bot]" Date: Sun, 18 Oct 2026 12:07:41 +0000 Subject: [PATCH 3/4] fix(docs): leave out a page until fctl's pinned docs have it The build renders fctl's docs at fctl-docs.ref, and failed on the Sandbox images page: its file arrives with hyperstructure/fctl#39, which isn't merged, so the pin can't have it yet. That forced this pull request to wait for fctl's. A PAGES entry can now name the fctl pull request that adds its file (`pending`). While the docs at the pin lack the file, the page is left out of the build, the navigation and the links between docs, and the log says so; once the pin has it, it renders and the log says `pending` can go. Every other page must still be there, so a doc renamed or removed in fctl still fails the build. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 5 ++++- scripts/docs.mjs | 45 +++++++++++++++++++++++++++++++++------------ 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index ac9c90b..f0430f5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,7 +24,10 @@ npx wrangler dev # the Worker with the built assets (after a - **Docs**: the Markdown lives in hyperstructure/fctl under `docs/`. Edit it there. `scripts/docs.mjs` maps files to URLs (`PAGES`), rewrites links between docs, and links other repository files to GitHub. Adding a doc - page means adding it to `PAGES`. + page means adding it to `PAGES`. While the fctl pull request that adds + the page isn't merged, give its entry `pending` (that pull request): the + build leaves the page out until fctl's CI pins docs that have it, so this + side can merge first. Remove `pending` once the build says it can go. - **Legal pages**: `legal/privacy.md` and `legal/terms.md`, rendered by `scripts/legal.mjs` to `/privacy` and `/terms` (Google sign-in's consent screen links them). They state what app.fctl.sh stores, who receives it diff --git a/scripts/docs.mjs b/scripts/docs.mjs index 3ebd297..6d9b830 100644 --- a/scripts/docs.mjs +++ b/scripts/docs.mjs @@ -39,24 +39,34 @@ async function fctlRoot() { return cache; } -/** The docs, in navigation order. `slug` "" is /docs/. */ +/** + * The docs, in navigation order. `slug` "" is /docs/. Every page must be in + * fctl's docs at the pinned ref, except one with `pending` (the fctl pull + * request that adds it): that one is left out until the pin includes it, so + * this site can merge first. + */ const PAGES = [ { slug: "", file: "docs/README.md", nav: "Overview" }, { slug: "getting-started", file: "docs/getting-started.md", nav: "Getting started" }, { slug: "cli", file: "docs/cli.md", nav: "The CLI" }, { slug: "self-hosting", file: "docs/self-hosting.md", nav: "Self-hosting" }, - { slug: "sandbox-images", file: "docs/sandbox-images.md", nav: "Sandbox images" }, + { + slug: "sandbox-images", + file: "docs/sandbox-images.md", + nav: "Sandbox images", + pending: "hyperstructure/fctl#39", + }, { slug: "architecture", file: "docs/architecture.md", nav: "Architecture" }, { slug: "security", file: "docs/security.md", nav: "Security" }, { slug: "development", file: "docs/development.md", nav: "Development" }, ]; /** Links between docs become site URLs; other repository files point at GitHub. */ -function rewriteHref(href, fromFile) { +function rewriteHref(href, fromFile, pages) { if (/^([a-z]+:|#|\/)/i.test(href)) return href; const [path, hash] = href.split("#"); const resolved = join(dirname(fromFile), path).replaceAll("\\", "/"); - const page = PAGES.find((p) => p.file === resolved); + const page = pages.find((p) => p.file === resolved); if (page) return `/docs/${page.slug ? `${page.slug}/` : ""}${hash ? `#${hash}` : ""}`; return `${REPO}/blob/main/${resolved}${hash ? `#${hash}` : ""}`; } @@ -65,21 +75,32 @@ async function main() { const root = await fctlRoot(); const template = await readFile(join(dist, "docs.html"), "utf8"); const render = await markdown(); + const pages = PAGES.filter((page) => { + if (!page.pending) return true; + if (existsSync(join(root, page.file))) { + console.log(`${page.file} is in fctl's docs now: its pending (${page.pending}) can go`); + return true; + } + console.log(`leaving out ${page.file} until fctl's docs have it (${page.pending})`); + return false; + }); - for (const page of PAGES) { + for (const page of pages) { const source = await readFile(join(root, page.file), "utf8"); const { title, description, html: body, } = await render(source, { - href: (href) => rewriteHref(href, page.file), + href: (href) => rewriteHref(href, page.file, pages), }); - const nav = PAGES.map((p) => { - const href = `/docs/${p.slug ? `${p.slug}/` : ""}`; - const current = p === page ? ' aria-current="page"' : ""; - return `${esc(p.nav)}`; - }).join(""); + const nav = pages + .map((p) => { + const href = `/docs/${p.slug ? `${p.slug}/` : ""}`; + const current = p === page ? ' aria-current="page"' : ""; + return `${esc(p.nav)}`; + }) + .join(""); const html = template .replace("", esc(title || page.nav)) .replace("", esc(description)) @@ -91,7 +112,7 @@ async function main() { await writeFile(join(dir, "index.html"), html); } await rm(join(dist, "docs.html")); - console.log(`rendered ${PAGES.length} docs pages`); + console.log(`rendered ${pages.length} docs pages`); } await main(); From b7eaff5577737148d21bfce9170d572186b8ada6 Mon Sep 17 00:00:00 2001 From: "fctl-sh[bot]" Date: Sun, 18 Oct 2026 12:08:21 +0000 Subject: [PATCH 4/4] Revert "fix(docs): leave out a page until fctl's pinned docs have it" hyperstructure/fctl#39 is merged and fctl's CI has pinned these docs past it, so docs/sandbox-images.md is there and the page needs no special case. This reverts commit 7ccfa1b. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 5 +---- scripts/docs.mjs | 45 ++++++++++++--------------------------------- 2 files changed, 13 insertions(+), 37 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f0430f5..ac9c90b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,10 +24,7 @@ npx wrangler dev # the Worker with the built assets (after a - **Docs**: the Markdown lives in hyperstructure/fctl under `docs/`. Edit it there. `scripts/docs.mjs` maps files to URLs (`PAGES`), rewrites links between docs, and links other repository files to GitHub. Adding a doc - page means adding it to `PAGES`. While the fctl pull request that adds - the page isn't merged, give its entry `pending` (that pull request): the - build leaves the page out until fctl's CI pins docs that have it, so this - side can merge first. Remove `pending` once the build says it can go. + page means adding it to `PAGES`. - **Legal pages**: `legal/privacy.md` and `legal/terms.md`, rendered by `scripts/legal.mjs` to `/privacy` and `/terms` (Google sign-in's consent screen links them). They state what app.fctl.sh stores, who receives it diff --git a/scripts/docs.mjs b/scripts/docs.mjs index 6d9b830..3ebd297 100644 --- a/scripts/docs.mjs +++ b/scripts/docs.mjs @@ -39,34 +39,24 @@ async function fctlRoot() { return cache; } -/** - * The docs, in navigation order. `slug` "" is /docs/. Every page must be in - * fctl's docs at the pinned ref, except one with `pending` (the fctl pull - * request that adds it): that one is left out until the pin includes it, so - * this site can merge first. - */ +/** The docs, in navigation order. `slug` "" is /docs/. */ const PAGES = [ { slug: "", file: "docs/README.md", nav: "Overview" }, { slug: "getting-started", file: "docs/getting-started.md", nav: "Getting started" }, { slug: "cli", file: "docs/cli.md", nav: "The CLI" }, { slug: "self-hosting", file: "docs/self-hosting.md", nav: "Self-hosting" }, - { - slug: "sandbox-images", - file: "docs/sandbox-images.md", - nav: "Sandbox images", - pending: "hyperstructure/fctl#39", - }, + { slug: "sandbox-images", file: "docs/sandbox-images.md", nav: "Sandbox images" }, { slug: "architecture", file: "docs/architecture.md", nav: "Architecture" }, { slug: "security", file: "docs/security.md", nav: "Security" }, { slug: "development", file: "docs/development.md", nav: "Development" }, ]; /** Links between docs become site URLs; other repository files point at GitHub. */ -function rewriteHref(href, fromFile, pages) { +function rewriteHref(href, fromFile) { if (/^([a-z]+:|#|\/)/i.test(href)) return href; const [path, hash] = href.split("#"); const resolved = join(dirname(fromFile), path).replaceAll("\\", "/"); - const page = pages.find((p) => p.file === resolved); + const page = PAGES.find((p) => p.file === resolved); if (page) return `/docs/${page.slug ? `${page.slug}/` : ""}${hash ? `#${hash}` : ""}`; return `${REPO}/blob/main/${resolved}${hash ? `#${hash}` : ""}`; } @@ -75,32 +65,21 @@ async function main() { const root = await fctlRoot(); const template = await readFile(join(dist, "docs.html"), "utf8"); const render = await markdown(); - const pages = PAGES.filter((page) => { - if (!page.pending) return true; - if (existsSync(join(root, page.file))) { - console.log(`${page.file} is in fctl's docs now: its pending (${page.pending}) can go`); - return true; - } - console.log(`leaving out ${page.file} until fctl's docs have it (${page.pending})`); - return false; - }); - for (const page of pages) { + for (const page of PAGES) { const source = await readFile(join(root, page.file), "utf8"); const { title, description, html: body, } = await render(source, { - href: (href) => rewriteHref(href, page.file, pages), + href: (href) => rewriteHref(href, page.file), }); - const nav = pages - .map((p) => { - const href = `/docs/${p.slug ? `${p.slug}/` : ""}`; - const current = p === page ? ' aria-current="page"' : ""; - return `${esc(p.nav)}`; - }) - .join(""); + const nav = PAGES.map((p) => { + const href = `/docs/${p.slug ? `${p.slug}/` : ""}`; + const current = p === page ? ' aria-current="page"' : ""; + return `${esc(p.nav)}`; + }).join(""); const html = template .replace("", esc(title || page.nav)) .replace("", esc(description)) @@ -112,7 +91,7 @@ async function main() { await writeFile(join(dir, "index.html"), html); } await rm(join(dist, "docs.html")); - console.log(`rendered ${pages.length} docs pages`); + console.log(`rendered ${PAGES.length} docs pages`); } await main();