spec: try it from any agent (/start, anonymous demo apps, claim)
Draft for Paul's read. Builder check by Astra folded in; three questions left open in section 7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+378
−0
docs/superpowers/specs/2026-11-02-agent-start-demo-design.md+378 −0
diff --git a/docs/superpowers/specs/2026-11-02-agent-start-demo-design.md b/docs/superpowers/specs/2026-11-02-agent-start-demo-design.md| new file mode 100644 |
| index 000000000..58965524a |
| --- /dev/null |
| +++ b/docs/superpowers/specs/2026-11-02-agent-start-demo-design.md |
| @@ -0,0 +1,378 @@ |
| +# Try it from any agent: `/start`, anonymous demo apps, claim by email |
| + |
| +Status: draft for Paul's read, 2026-11-02. Brainstormed with Paul in |
| +chat the same day, prompted by a tester's failed first run and Chris's |
| +suggestions. Branch: `design-agent-start-demo`. |
| + |
| +## 1. Intent |
| + |
| +Anyone, technical or not, should be able to paste one line into the AI |
| +agent they already use and, a few minutes later, have a real working app |
| +on a live URL. No install, no account, no sign-in in the middle. If they |
| +like it, they keep it by giving an email address. From there they learn |
| +the proper way to work with CARLOS. |
| + |
| +The line is: |
| + |
| +> Follow the directions on https://carlosframework.com/start |
| + |
| +### Why now |
| + |
| +A tester tried CARLOS from a cloud coding agent on their phone and gave |
| +up at three walls: |
| + |
| +1. **Network.** The agent's sandbox only reaches allowlisted hosts. The |
| + CLI download from GitHub releases returned 403. |
| +2. **Sign-in.** The agent told them account creation and |
| + `carlos auth login` needed them in person with a passkey. Email |
| + sign-in by code has existed since 2026-10-22, so that was partly the |
| + agent's reading of older docs, but CLI login still needs a human to |
| + approve a code in a browser, which stalls an agent mid-task. |
| +3. **Scope.** They were migrating an existing app, and the agent |
| + concluded it was a rewrite. |
| + |
| +here.now (static hosting for agents) shows the shape that works: three |
| +plain HTTPS calls with no auth, a 24-hour anonymous site, and a claim |
| +token the agent hands to the user. It only hosts static files. **The |
| +point of our version is that it runs a real app with a real database.** |
| +A static-only first version would make us a later, smaller here.now. |
| + |
| +### What success looks like |
| + |
| +- From a phone cloud agent with default network settings and no Go |
| + toolchain, a first-time user gets a live app they described in under |
| + five minutes from pasting the line, with no question they can't answer. |
| +- Claiming takes under a minute and needs only an email address. |
| +- An experienced developer comes away knowing what CARLOS is and what the |
| + real workflow looks like; a non-technical user never meets a term they |
| + don't know. |
| + |
| +## 2. Goals, non-goals, anti-goals |
| + |
| +Goals: |
| + |
| +- A homepage hero that asks almost anyone to try it, with the one line |
| + to paste. Claims stay modest: "better, faster, more secure apps", not |
| + numeric multipliers (the 2026-10-30 benchmark doesn't support "10x"). |
| +- `/start`: one URL, readable by humans and agents, that runs the whole |
| + conversation through the user's own agent. |
| +- An unauthenticated endpoint that takes **source**, builds it on our |
| + side, and runs it as a temporary app on a demo domain. |
| +- Claim by email, in the agent session, with a link as a fallback. |
| +- Everything is a platform feature behind operator switches. Carloku |
| + turns it on; self-hosted deployments have it off by default. |
| + |
| +Non-goals (this design): |
| + |
| +- Migrating existing apps. `/start` recognises "I have an app already" |
| + and says honestly what that takes (an account, and the rootfs or |
| + managed-fleet path), rather than attempting it anonymously. |
| +- Anonymous static-only sites as a separate product. |
| +- Custom domains, email sending, object storage, schedules, sidecars or |
| + backups for unclaimed apps. |
| +- Local builds for anonymous users. Anyone building on their own machine |
| + authenticates and uses the normal CLI. |
| + |
| +Anti-goals (a failure even if it works): |
| + |
| +- **A phishing host.** Unclaimed demos damaging the reputation of |
| + `oncarlos.com`, or of the apps of paying tenants. |
| +- **A free compute source.** Mining, proxying, spam relays or scraping |
| + from demo apps. |
| +- **A scary first run.** A non-technical user told to install a |
| + toolchain, edit network settings without being told why, or read Go |
| + errors. |
| +- **A demo that isn't CARLOS.** Running the app on a third-party sandbox |
| + so the demo shows someone else's platform, or a demo path that drifts |
| + from the real deploy path. |
| +- **A workaround in Carloku.** Carloku uses what the platform provides. |
| + If it needs something, the platform grows it. |
| + |
| +## 3. The journey |
| + |
| +1. **Homepage.** Hero line plus the paste-this line, with a copy button. |
| +2. **The agent fetches `/start`.** Agents read pages through their fetch |
| + tool, which usually works even in sandboxes that block `curl`. |
| +3. **The agent gets to know the user** before building anything: |
| + - what they want to make (open question first; suggestions such as a |
| + booking page, a small shop, a tracker, a team tool only if they're |
| + stuck); |
| + - how technical they are, judged from how they talk and one light |
| + question if unclear; |
| + - how the UI should feel (calm, playful, bold, minimal...), which |
| + maps to a Fiesta theme. |
| + |
| + Tone adapts. An experienced developer is told what to expect: a Go |
| + app on Rastrillo with Fiesta UI and its own SQLite database, built on |
| + CARLOS's side, live for 24 hours, keepable by email, and the real |
| + workflow afterwards. A non-technical user gets plain words and no |
| + product or framework names unless they ask. |
| +4. **The agent writes a small app** from the Rastrillo starter `/start` |
| + points it at, styled with Fiesta. `/start` keeps scope small: one app, |
| + one binary, SQLite at most, no outbound calls. Anything bigger is |
| + pointed at "create an account" with the reason. |
| +5. **The agent sends the source** in plain HTTPS calls (§4.1). We check |
| + it, build it, and start it on the demo fleet. |
| +6. **Build errors come back to the agent** in a form it can act on. It |
| + fixes and resends without involving the user. |
| +7. **The agent shares the live URL** on the demo domain, and tells the |
| + user it lasts 24 hours and how to keep it. It can keep iterating |
| + (each update replaces the running version) using the claim token. |
| +8. **Claim.** The agent asks "want to keep it?", takes an email address, |
| + the user pastes back the emailed code, and the app becomes a normal |
| + app in their new (or existing) account at its real `oncarlos.com` |
| + address. The agent also gives the user the claim link once, for use |
| + if the chat is closed. |
| +9. **The right way.** After the claim, `/start` walks the agent through |
| + the normal path: install the CLI, sign in, put the code in a repo, |
| + deploy with `carlos deploy`. Pitched at the user's level. |
| + |
| +If the agent's sandbox blocks our API host, `/start` tells the agent to |
| +explain to the user, in plain words, which single host to allow and |
| +where that setting usually lives, then retry. here.now does the same. |
| + |
| +## 4. The parts |
| + |
| +### 4.1 Anonymous publish API (console) |
| + |
| +- **Create:** unauthenticated `POST` with the source as one archive (a |
| + tarball or zip, small cap, for example 5 MB compressed). Returns a job |
| + id, the demo app's name, a `claimToken` (shown once, never |
| + recoverable) and a `claimUrl`. |
| +- **Status:** `GET` on the job: `building`, `starting`, `live` with the |
| + URL, or `failed` with build output trimmed to what an agent needs |
| + (file, line, message). |
| +- **Update:** the same create call with the claim token replaces the |
| + app's running version. Updates count against the app, not a new |
| + create. |
| +- **Claim:** `POST` with the claim token and an email address starts an |
| + email challenge; a second call with the code completes it (§4.5). |
| +- Requests carry an `X-Carlos-Client` header naming the harness, for our |
| + own numbers only. |
| +- The API host is the console's own host, so there is one host to |
| + allowlist. The docs `/start` serves name it. |
| + |
| +### 4.2 Remote build |
| + |
| +- **Source in, `linux-arm64` binary out**, fed into the same artifact |
| + path `carlos deploy` uses, so the demo runs the real deploy path. |
| +- **Checks before building:** |
| + - an import allowlist: the standard library, Rastrillo and Fiesta at |
| + pinned versions, and nothing else; |
| + - `CGO_ENABLED=0`; |
| + - no `go:generate` or toolchain directives honoured; |
| + - size caps on the archive and the output binary. |
| +- **Builds run offline,** against a module cache holding only the |
| + allowlisted modules, in a throwaway environment with a hard time |
| + limit. |
| +- **Behind a provider-neutral builder interface** (provider-neutral core |
| + rule). The first adapter is a hosted microVM service (E2B or a peer |
| + such as Modal Sandboxes, Daytona or Vercel Sandbox), chosen at plan |
| + time on price, start time and limits. A self-hosted adapter (a locked |
| + unit on a demo-fleet box) must also be possible, so self-hosters |
| + aren't tied to a vendor. |
| +- **Static scanning** (gosec, govulncheck or Aikido) runs as a record, |
| + not a gate. The gate is the allowlist plus the runtime limits; scans |
| + can't recognise a phishing page, which is ordinary HTML. |
| + |
| +### 4.3 Where demo apps run |
| + |
| +- **On the main deployment, not a separate one.** This gets the regional |
| + edges, the edge cache and rate limits, and keeps one console and one |
| + code path. Claiming is then an ownership change, not a cross-deployment |
| + move. |
| +- **On a quarantined demo fleet inside it.** The operator names the |
| + fleet that anonymous apps are placed on; no paying tenant's app shares |
| + those boxes. Nested isolation is required on them. |
| +- **Built on temporary apps** (spec `2026-09-25-temporary-static-sites`): |
| + the console's `apps` row holds the lifecycle and the console is the |
| + only actor that expires anything. Anonymous apps are a new kind of |
| + temporary app with no owning account (or a system-owned holding |
| + account; builder's call, §6). |
| +- **Limits, all enforced on the server** (the `/start` text asks for |
| + small projects, but nothing relies on the agent obeying it): |
| + - **TTL:** 24 hours, no extension without claiming. On expiry the app |
| + is purged promptly; nothing is backed up. |
| + - **Resources:** the smallest instance size; low CPU weight. |
| + - **Network:** no outbound network at all (an egress-deny instance |
| + policy, extending the `instance-sizes-and-egress` mechanism). |
| + - **Capabilities:** no email, object storage, schedules, sidecars or |
| + custom domains. |
| + - **Traffic:** a request cap and a bandwidth cap per app over its life |
| + (my starting numbers: 2,000 requests and 200 MB; operator-set). At |
| + the cap the edge serves a page saying the demo has hit its limit and |
| + can be claimed to keep running. |
| + - **Count:** a global ceiling on live anonymous apps; past it, new |
| + creates are refused with a clear message, never evicting. |
| +- **A demo banner,** added by the edge on HTML responses: built by an |
| + AI, temporary, don't enter real passwords, report abuse. |
| + |
| +### 4.4 The demo domain |
| + |
| +- **A separate registrable domain** used only for unclaimed demos. If it |
| + is ever flagged, it can be swapped without touching `oncarlos.com`. |
| + Paul proposed `oncarlos.wtf` (unregistered as of 2026-11-02); the name |
| + is still open (§7). |
| +- **Submitted to the Public Suffix List,** so each demo counts as its own |
| + site in browsers (no cross-demo cookies). |
| +- **Random names only,** for example `bright-otter-42.<demo domain>`. No |
| + user-chosen labels, so nobody gets `paypal-login.<demo domain>`. |
| +- **Claiming moves the app to its normal `oncarlos.com` address.** The |
| + demo URL then shows a short "this app has moved" page until the demo |
| + name's 24 hours are up. |
| + |
| +Related but separate: `oncarlos.com` itself isn't on the Public Suffix |
| +List, so one tenant's app can set cookies that other tenants' apps |
| +receive. That gets its own discussion. |
| + |
| +### 4.5 Claim |
| + |
| +- **In the agent session first.** The claim call starts an email |
| + challenge using the console email sign-in machinery (spec |
| + `2026-10-21-console-email-signin`, live on Carloku since 2026-10-22). |
| + The user pastes the code back to the agent. A new email makes a new |
| + account. |
| +- **Keymail addresses finish in the browser.** Sign-in discovers Keymail |
| + and sends those users to Keymail rather than emailing a code |
| + (`server.go:3756`, email sign-in spec line 112). For them the claim |
| + call answers "open this link to finish", and the agent hands over the |
| + claim link. No new verification path. (My call.) |
| +- **Choosing the account.** Sign-in normally picks the most recently |
| + used account (`server.go:3026`). A claim must not do that silently: |
| + it could put a personal demo into a company account. If the verified |
| + email has exactly one account, the app goes there. If it has several, |
| + the claim returns the list and the agent (or the claim page) asks the |
| + user to pick. If it has none, a new personal account is created. The |
| + chosen account's plan limits apply, and the user must be allowed to |
| + create apps in it. (My call.) |
| +- **The claim link as a fallback.** It opens a console page that does |
| + the same email step in the browser. It is secret and never appears on |
| + the app or the banner. |
| +- **What claiming produces:** a normal permanent app in the account, |
| + placed by normal placement (not the demo fleet), at its `oncarlos.com` |
| + address, running the same artifact, with the demo's data copied |
| + across. The anonymous app is then retired. (`carlos apps place` is |
| + cut, so "move the app" isn't available; a fresh app plus a data copy |
| + is the likely shape. The mechanism is the builder's call, §6.) |
| +- **Plan caps apply at claim,** as at any create (Free plan limits, one |
| + free account per person). A claim that would exceed them is refused |
| + with the reason, and the demo keeps running until it expires. |
| +- **The claim token is single-use** and dies with the claim. |
| +- **After claiming,** the agent may be handed a scoped credential so it |
| + can keep deploying, or it may switch to the CLI flow. Builder's call |
| + with a security review, since it hands an agent account authority. |
| + |
| +### 4.6 Abuse controls |
| + |
| +- **Per-IP rate limits that tolerate shared egress.** Many cloud agents |
| + share a few egress addresses, so per-IP limits must be generous, and |
| + backed by a global hourly and daily create budget. here.now uses 60 |
| + publishes an hour per IP; we start lower for creates and higher for |
| + updates. |
| +- **One switch to stop anonymous creates,** plus a takedown verb that |
| + trashes a demo app at once. |
| +- **A report link** in the banner, landing in the operator's queue. |
| +- **Logs** keep the source archive hash, the creating IP, the claim state |
| + and the build record for the app's life plus a short window. |
| + |
| +### 4.7 `/start` and the homepage (website) |
| + |
| +- **One URL for humans and agents.** It serves Markdown when the request |
| + prefers it (`Accept: text/markdown`) or comes from a known agent |
| + fetcher. Browsers get HTML with a short human explanation, the line to |
| + paste, and the full agent instructions in a visible "for your agent" |
| + section, so an agent that is handed HTML still works. |
| +- **Written as directives to the agent,** like here.now's skill page: |
| + - ask before building; |
| + - adapt tone to the user; |
| + - keep it small; |
| + - never ask the user to install anything for the demo; |
| + - share URLs and claim links exactly as returned; |
| + - explain the network allowlist step plainly if it comes up; |
| + - go to the account path for anything outside the demo limits. |
| +- **It carries a short Rastrillo + Fiesta starter** (or points at one at |
| + a pinned version) so the agent isn't working the framework out from |
| + scratch, which also keeps token use and time down. |
| +- **All user-facing text,** on the homepage, `/start`, the banner, the |
| + limit page, claim emails and errors, goes through copy review. |
| + |
| +### 4.8 A cheap check to do first |
| + |
| +The CLI is the Go module `github.com/carlosframework/platform`. If the |
| +public mirror's tags are fetchable through `proxy.golang.org` (usually |
| +allowlisted in cloud agents), `go install` may already have got the |
| +tester past wall 1. Worth a ten-minute test before planning. It doesn't |
| +change this design: anonymous users don't install anything. |
| + |
| +## 5. Decisions |
| + |
| +Paul's (2026-11-02, in chat): |
| + |
| +1. The demo must run a real app with a database, not just a static page. |
| +2. Underclaim on the homepage: "better, faster, more secure apps" or |
| + similar, no "10x". |
| +3. `/start` gets to know the user and adapts: what to expect for |
| + experienced developers, no scary terms for others. |
| +4. Always build on our side for anonymous users; anyone building locally |
| + authenticates. |
| +5. Use Fiesta, with a question about how the UI should feel. Coordinate |
| + with the Fiesta lightness work under way. |
| +6. 24 hours, no backups, very tight CPU, memory and bandwidth. |
| +7. Claim with an email address. |
| +8. Unclaimed demos live on a separate domain; `oncarlos.wtf` proposed, |
| + name not final (§7). |
| + |
| +Mine (Paul can overrule any): |
| + |
| +- Main deployment with a quarantined demo fleet, rather than a separate |
| + deployment or a demo box among tenants' boxes. |
| +- A hosted microVM service for builds only, behind a neutral interface; |
| + the app itself never runs there. |
| +- Claim happens in the agent session, with the link as a fallback. |
| +- A request cap rather than a page-load cap, with a "claim to keep it |
| + running" page at the cap. |
| +- Import allowlist plus runtime limits as the gate; scans as a record. |
| +- No outbound network for demo apps. |
| +- Random demo names only; the demo domain goes on the Public Suffix List. |
| +- Starting numbers: 5 MB source, 2,000 requests, 200 MB bandwidth. |
| +- Keymail users finish a claim in the browser through the claim link. |
| +- A claim never picks an account silently when the email has several. |
| + |
| +## 6. Left to the builder |
| + |
| +- Whether anonymous apps have no owner or a system-owned holding |
| + account, and how that sits with plan caps and the `tmp-` namespace. |
| +- The claim mechanism (fresh app plus data copy is the likely shape; |
| + offline-move machinery may carry the data). |
| +- Whether the agent gets a scoped credential after claiming. |
| +- The build provider, once prices and limits are checked. |
| +- How the edge serves a second platform domain (regional domains, #447, |
| + may already cover most of it) and injects the banner. |
| +- Exact limits, budgets and the archive format. |
| +- How `/start` detects agent fetchers beyond `Accept`. |
| +- Phasing. A sensible order: the API, build and demo fleet on dev; then |
| + claim; then `/start` and the homepage; then switch on for Carloku. |
| + Under the stopping rules a dormant piece needs a switch-on date: dev |
| + when the first plan lands, Carloku when `/start` ships. |
| + |
| +## 7. Open for Paul |
| + |
| +Raised by the builder check (Astra, 2026-11-02): |
| + |
| +- **How strong the phishing protection must be.** Blocking a demo's |
| + outbound network doesn't stop its page from making the *visitor's* |
| + browser send typed data elsewhere, and app code can hide an injected |
| + banner. Options, weakest first: banner plus takedown only; an |
| + edge-enforced strict Content-Security-Policy on the demo domain |
| + (`form-action`, `connect-src`, `img-src`, `script-src` all `'self'`), |
| + which Fiesta apps can live with; or that plus a once-per-browser |
| + "you're about to view a demo built by an AI" interstitial, as ngrok's |
| + free tier does. |
| +- **Which agents the launch must work in,** and whether "the user had |
| + to allow one host" still counts as success. |
| + |
| +- **The demo domain name.** `oncarlos.wtf` is memorable and on-voice but |
| + is the first URL a newcomer sends to a boss or client, and uncommon |
| + TLDs are more often blocked by company filters and flagged by email |
| + link scanners. A neutral alternative (for example `oncarlos.dev` or |
| + `trycarlos.app`, availability unchecked) is the safer choice. |