carlos / platform Public
Commits by Paul Campbell (authored or disclosed co-author) — all commits
-
285623ff4host: the instances floor logs its stage times when slow (#1682) -
0ed99fd88provision: fleet boxes walk the store door per app (#1682) -
2218edfeePrivate store create: time each step; scan names concurrently (#1653) -
834a7f527Catch-all: a scoped pass that mints a route derives its alias (#1653) -
ad61ec4b2Config: deliver a new exec route's config first (#1653) -
91ed762d1Stage: new instances installed first; stage asks not lost (#1582) -
7635c7d88Edge: look for a new host at once on a "not here yet" (#1582) -
f50cb04c3console: a passkey-gated promote can be finished in the console -
d668a77cdCatch-all names: stamp a new instance's name at once (#1516) -
27708a9c9Public tunnels: carlos share (#1464, slice 1) -
67a5b32dachangelog: regenerate through v0.43.4 (release step 11b) -
e241f1ef9Hub reaches the console through a root-created socket -
5ecf38be6store: opt-in versioning with platform retention and restore (#1372) -
7baf81684changelog: regenerate through v0.41.0 (release step 11b) -
7833faab9docs: v0.41.0 release note (seed files and the seeds floor); the binary-size note names the 70 MB ceiling -
fe854a4e0Seed files on customer fleets (#1139, slice 3) -
772aabbb0Box release for seed files on customer fleets (#1139, slice 2) -
a23423b7cMail submission follow-ups: deploy and canary take --mail; the From is platform-managed -
9eec02360Platform mail submission: instances send mail without holding credentials -
684750779plan: platform mail submission — implementation plan and census card (docs only) -
b94cad7c3spec: platform mail submission — SES spike results (§9.0, docs only) -
62607b27aspec: platform mail submission — instances send without holding a credential -
e129f5358region HA P3b-2: attended operator Standby rolls (N-HA14) -
9dad87070region HA P3b-1 F4/F6: group boot works on the real Debian 13 AMI -
df66050e9stateless: hold a failed or unknown release (#511 F10) -
f6f91e2abregion HA P3b-1 fixes: gzip group user data, gate group cleanup -
2914921ceregion-host group: fall back to the VPC's main route table -
72f6f0b8cconsole: a one-box fleet's only active box coordinates (#511 F8) -
5c3e3fe5dregion HA P3b-1: dormant group mode, names-2, restart guard, hairpin -
45cebde4bstateless replicas plan 3: hub routing over healthy copies (#511) -
6209ce434stateless replicas plan 2: app copy counts and fleet placement (#511) -
38cda89e2region plan gate: accept OpenTofu 1.12 identity fields -
7920cccf1edge: forward fleet replica coordinator calls on the tunnel host (#511) -
016599d5bregion HA P3a: dev NLB ingress, plan gate, box roles, opt-in admission -
f18da984dregion HA: follow-ups to termination recovery and placement -
0b3098cb8spec: domain registration rev 4, domains at the account level -
a1f0ae409Managed fleets 2a: managed fleet core, fake provider, off by default -
9b8b2c507region HA: departed boxes' duties recover unattended (P1b-3b T) -
0c2ab2ef0console: domain purchase page is a card with a step list -
74757d13dedge: stream static-site artifacts to a verified temp file -
16941087acli: carlos domains check --country -
56940c872domains: buy without a subscription; sponsored accounts; Add a card -
16b2a0cearegion HA: unreachable cached holder re-reads the lock (N-HA15) -
c42baa2ededge: the fleet store door streams GETs and caps large ones -
c6304f2dcregion HA: cold-wake placement works in the home region -
1a9c752d9console: people and sign-in methods (social sign-in plan 1) -
f54ed7a23domains: the zone host uses its own AWS credentials, never the box role -
5394c7f95edge: first held-stream heartbeat at one tick, not two (#432) -
378646f1cEdge protection: the hard tier blocks by default (catalogue v2) -
edccc9fb6plan: dev demo domain is dev.trycarlos.com -
c2a25331cplan: agent-start-demo plan 1, anonymous demo apps on dev -
df476c3b6spec: go install via the module proxy doesn't work (checked) -
1aed4bf5espec: approved by Paul -
2d6b8f8c2spec: build on the demo fleet; no PSL, host-only demo cookies -
81710cc7fspec: Paul's answers on phishing protection and launch agents -
af6a643easpec: trycarlos.com registered, lock-down records only -
ab5b57b96console: re-vendor Rastrillo v0.30.2 (rail ring, page transition) -
e9b076662spec: demo domain is trycarlos.com (Paul, 2026-11-02) -
316d99aa8spec: try it from any agent (/start, anonymous demo apps, claim) -
412203cbeedge: hold opted-in event streams while instances sleep (#432) -
20c867c2dDomain registration plan 1: buy a domain from console or CLI -
afbdc02fbstateless replicas plan 1: run one stateless copy without SQLite (#511) -
212d248b8Apply approved app list and expiry wording -
0e51ece10Add app stars, filtering, and expiry controls in settings -
322d24470Region HA P1b-3a: place cold wakes on the chosen box -
f2810fdceregion HA P2a: regional ingress DNS guidance and HA refusals -
b56ec321dplans 6c: Stripe setup script with a guarded live mode -
b7802fd84Probe-burst limit, shared across the platform (#491) -
b40f3bc8fActivity: terminal session rows read as sentences -
5887f9440Rootfs processes get HOME=/tmp when nothing sets one -
581e648efRegion HA spec: record G3 finish line and G5 end goal -
44d810d02Durability 3a: sealed escrow for instance secrets, no raw writes (#477) -
00bf5b8cbFleet set-aside moves through the raw instance dir (EXDEV fix) -
11c8c864aRootfs Plan 6: interactive sessions, carlos run -it and carlos console -
6f1f6ca6eplans: sponsor_accounts_before sponsors every account that existed before plans went on, with no limits (settled at console start and on every account insert); sponsored accounts may ship daemon and always-on releases; Billing shows Unlimited -
cbd8a0b56billingstripe: Checkout collects a VAT number (tax_id_collection) so Stripe Tax applies reverse charge to qualifying EU business sales -
5b328bf23Deploy creates a missing app and first instance, with --env support (#493) -
a2e23ba0aconsole: the ops account is exempt from plans (no caps, limits or billing; not counted as a free account); settlement clears the limits record and cap rows -
eab053aedProtection tab follow-ups (discussion 479): singular headlines for counts of one on the tab and the operator page (PT-C50..C55), an operator empty state when nothing was checked (PT-C56) and the approved 'nothing looked like an attack' line (PT-C06) when nothing was caught, the tab's range nav aria-label 'Period' (PT-C57), a same-box Logs-cap regression test for the protection filter, and an hourly throttle on the console's unreadable-fleet log line. Copy PT-C50..C57 approved by Paul unchanged. Review: Astra whole-branch R1, no findings. Not released. -
62e19e362Fix the #471 tunnelclient flake in TestRoundTripUpgradeEndsWithItsContext/during_the_handshake (test only, no production defect). The test cancelled once the hub had the box's marked 200, but that does not mean the box's Hijack had returned: x/net (v0.60.0, serverConn.writeHeaders) queues the reply to the flush before the 200 reaches the wire, and the handler then selects on that reply and on the stream's close. When the handler goroutine had not run by the time the hub's RST_STREAM was processed, both were ready and Go picked at random; picking the close made Hijack fail with "http2: stream closed", the fixture returned before its conn Read, and the test's wait for that Read timed out. The hub did reset the stream on every run; the box only learned of it in Hijack rather than in Read, which is correct behaviour (the box edge's reverse proxy treats a failed hijack as an error and closes the app conn). The fixture now closes boxEnd.hijacked once Hijack returns, and the test waits for that event as well as the hub's handshake hook before cancelling. Before: 88 of 200 runs failed without -race on DOCS-T1. After: 200/200 under -race, 200/200 without, 500 per -cpu=1,2,4,8, package -count=20 and go vet clean. -
66c324fd3Console Protection tab (per app) and operator /fleet/protection page: say plainly how much bad traffic edge protection caught. The edge counts protection checks and matches per host+account+app (hourly counts and a daily group tally, burst rules excluded, counted where records are filed incl. the far-asset path) into the usage edge day it already writes every 5 minutes: no new storage writes. The console reads root and fleet edge days through the settled-day cache, scoping fleets by owning account before any I/O (ownerless fleets vouch for nobody; dot segments refused), sums whole UTC days, and renders the tab (headline, share of checked requests, day bars, what they were after, Logs link) and the operator page; Logs gains a protection filter applied before collection caps. No coverage claims (Paul's ruling): zero checked reads 'No protection counts yet'. Rate-limit counts move onto the shared reader and now include fleet boxes. Also fixes a race in three #471 tunnel tests (the box server now gets the bytes the test's bufio.Reader took). Copy PT-C01..C43 approved by Paul unchanged. Reviews: spec builder check (Astra); plan Astra R1-R3; task reviews (Astra) on Tasks 1-3 with one fix round each; whole-branch Astra R1 with fixes (one test P2 fixed). Census console-protection-tab approved by Astra on #280 (re-approved after merging main twice). Follow-ups in discussion 479. Not released. -
d937c467aWebSockets through the fleet tunnel (#471) -
c24e7a04bFleet public routes follow-ups (#457 Phase 1a deferred minors, triaged by Astra on the whole-branch review). PutForward refuses a non-forward kind, an empty Host or a non-fleet Region with the sentinel ErrNotForward (carried over the remote transport) and builds its kept-column list from one production literal checked against PRAGMA. One owner map, Registry.FleetOwners, is used by both Edge.Reload and the hub's forward phase. New tests pin the membership subquery's fleet condition, dns_checked_at preservation, the upgrade close cancelling the request, the HTTP plan-throttle path for a forward row, the box's throttle exemption, the display reader keeping forward rows, the edges-file removal PUT, the catch-all after trash, a time-aware rate ceiling, no first-dial 401 and the gate's origin; comment and spec wording fixes. No behaviour change beyond PutForward's up-front refusals. Reviews: Astra R1 READY AFTER FIXES (two test P2s fixed); census fleet-routes-followups approved by Astra on #280. Not released. -
65fd80607Fleet public routes (#457 Phase 1a): an app placed on a fleet serves at its public URL through the router with no hand-written route. The hub (the box with CARLOS_TUNNEL_HOST set and CARLOS_FLEET unset, the console's box) writes a `forward` route row for each fleet-placed instance record whose fleet its own fleets table says the record's account owns, and serves it down that fleet's tunnel to the bound box; nothing runs on the hub. One refusal decision, edge.FleetArmVerdict (with the shared DispatchArm and foldPlatformAliases), decides what Reload serves, what the edges file publishes, which wildcard parents the alias pass keeps, and what `instances list` reports, so they cannot disagree; a refused name stays refused through aliases, catch-alls, platform aliases and certificates (exact and wildcard). The forward row has one exact persisted shape (InertForward); only PutForward, DeleteForward, SetFleetBoxIf, SetDNSStatus and SetCertExpiresAt write it, every other routes writer refuses or skips it before any side effect (a go/ast inventory test keeps it so), and every other reader ignores it (root egress boxWhollyNested, root adoption, retention, canary status, domains trash). The hub enforces the app's rate limit and plan throttle once; the fleet box owns the password gate and the hub forwards the login untouched; the hub's caches never store a fleet app. The forward phase mints, keeps or retires rows from declineMint and removable (uncertainty keeps a row; production apps keep theirs), treats a host whose record cannot be read as disputed, gives a host named by both a platform and a fleet record neither row while armed, and leaves any existing row at a host in place (reported once per pass; instances list shows FPR-C08). Bindings bind only their own fleet at write time (SetFleetBoxIf, one statement; closes a pre-existing hole where a fleet box could steer another fleet's host). Edge reloads on route identity changes (fingerprint). A release floor, release.FleetForwardFloor = v0.32.0 (override --allow-below-fleet-forward-floor, signed in the pointer), refuses any channel move or first publication below it while a fleet exists, and creating a fleet is refused while any published pointer is below it (FPR-C02..C07). carlos add/route/remove refuse a forward host (FPR-C01). Copy FPR-C01..C08 approved by Paul unchanged. Request budget: about what a platform app costs its own box per fleet app; the bindings pass now runs on the hub only. Known limit: WebSockets do not cross the fleet tunnel (pre-existing, #471). Reviews: spec Astra R1-R3 (READY AFTER FIXES), plan Astra R1-R3, per-task Astra or Claude reviews with fix rounds, whole-branch Astra R1 NOT READY (P1 reload fingerprint), R2 READY AFTER FIXES (P2 C08 destination after folding, fixed and checked); census fleet-public-routes approved by Astra on #280. Not released; the first release with this is v0.32.0. -
16a55c9a5Console analytics: a pages view, bots by name, browsers and devices, and the pace check (Paul, 2026-10-30, after a crawler walked paulca.com's /posts/ with a browser user agent). Top pages and Referrers show 25 rows; 'See all N pages' opens ?show=pages: every page by top folder (a folder holding only its own index joins the top level; the overflow row stays its own group, last), each with its share and, over 7 or 30 days, a line of its days, with a filter the minute refresh keeps. Per-day page counts are read only for that view and stripped before the memo otherwise. Named events are removed until carlos.js exists. The edge names each bot request from a fixed list (and IsBot now matches every named bot), counts page views by browser family and device class, and stores only those names (bot_names, browsers, devices: additive day-file maps); no user agent string is stored. Pace check: per box and app, a visitor (the day's salted hash, in memory only) with 20 page views inside a minute is an Unnamed crawler from that view until 30 minutes after their latest view; those views are bot requests, not page views, visitors, pages, referrers, countries, browsers or devices; at most 50,000 visitors held, idle ones pruned. The tab gains Browsers (with Devices) and Bots cards once an edge counts them; the CLI API carries the maps. Reviews: Astra R1 READY AFTER FIXES (3 P2s fixed: named bots counted as people, overflow folded into the top level, out-of-order timestamps shortening the hold); Luna copy pass; census census-ruling-analytics-agents (internal/analytics envelope) approved by Astra on #280. Supersedes branch analytics-pages. Not released. -
06e58894cconsole: the billing page shows current usage beside packs and plan cards, from the plan-limits pass's stored measurements (no new requests); stale periods show as unknown; copy approved by Paul -
6848807e3Console analytics: live refresh, a day view with click-through from every daily bar, one tooltip at a time (Paul, 2026-10-29). The Analytics tab's numbers part and the Overview card refresh once a minute from GET /a/{sqid}/apps/{app}/analytics/live while the page is visible and active (never under a pointer or focus, never closer than 55 s), through the traffic memo, which now coalesces concurrent misses (one read a minute per app and view however many tabs); answers carry no-store and X-Carlos-Live so a lapsed session's sign-in page is never pasted in. ?date=YYYY-MM-DD (last 30 UTC days) shows that day's hours with Previous day / Next day; every daily bar on the Overview card and the 7- and 30-day charts links to its day. The period row refreshes with the numbers, so a page left open across midnight names the right day; a past day's restart note names the day. A column left focused by a click no longer shows its tip while another is hovered. Route census, claim fixture and read probe, perf walk (2 S3 calls a refresh, both telemetry settings) and the record-write census (NewServer re-pinned, layered on rootfsFleetFollowupsWriteCensusInventory) updated. Reviews: Astra R1 READY AFTER FIXES, 4 P2s fixed. Checked in Chromium. Not released. -
d3908d930Rootfs worker exit status and held REASON (#366, found by Task 11 on dev fleet box r10r). On systemd 257 with PrivatePIDs a SIGKILLed process's exit record held result success with an empty code, because systemd kills a not-our-child main pid before recording its exit. observe now falls back to systemd's ExecMainCode, ExecMainStatus and SuccessExitStatus from systemctl show, only when the InvocationID matches the handle's; each unit's clean exits (129, 130, 141, 143 and systemd's clean signals) stay clean and 137 is corrected to a failure. This also fixes web generations reporting a kill as "instance exited (exit 0)". A worker that ran and ended with no status at all tells the member RFS-3-C35 "worker %s exited. starting it again in %s" (Paul approved), paced like C09; failed starts keep their old lines. instances list REASON says "held: build %s failed on this box, because %s" with the box's reason (zdd.state.held-because, Paul approved). Reviews: Astra R1 READY AFTER FIXES (P2: clean exits read from the unit's policy, fixed; format checked on r10r systemd 257.13); census rootfs-worker-exit approved by Astra on #280. Not released. -
a66482c90console: a full-page success screen after every purchase (checkout, upgrade, packs) replaces the panel and the old 'Done' flash; '1 member, 10 seats paid for'; copy approved by Paul -
11c6f199fRootfs fleet follow-ups from Task 11 (#366). carlos logs names the process: rootfs app lines carry the field process=web, release or the worker's declared name (applog.Sink.AppProcess through an optional processSink; the platform's value wins over the app's own JSON key; the stream stays app; binary instances unchanged), so carlos logs --field process=web filters them (row RFS-4-C99). carlos instances list HEALTH for a fleet-placed instance comes from its fleet box's rollout view under the existing tenant join: Running, Asleep or Failed, and unknown when the view is unavailable, transient, or was generated before the record was created. The console's Running tab is unchanged, because fleet reports are an uncached per-request read. No new copy. Reviews: Astra R1 READY AFTER FIXES (P2: health from a report older than the record, fixed); census rootfs-fleet-followups approved by Astra on #280, re-sealed unchanged on main 43c8677a. Not released. -
43c8677afcarlos ship --check keeps its data volume between containers (#366, found by rootfs Plan 4 Task 11 on r10r). The data volume was a tmpfs local volume that Docker and Podman unmount when no container holds it, so the release container's migrations were gone before web started and examples/rails-shop failed the Rails guide's check with a 500. The data volume is now a plain local named volume; a one-shot helper container <prefix>_prepare (named outside the worker grammar) runs the CLI's own linux binary already mounted as the probe, with the hidden verb __rootfs-check-prepare, as root with only CAP_CHOWN, --read-only, --network none and no-new-privileges: it Lstats the directory, refuses a symlink or non-directory, chmods 0700 then lchowns 65534:65534, no recursion. Every volume mount carries :nocopy, so no runtime refills an empty volume from the image and resets its owner. Cleanup covers the helper on every path. Box witness on r10r (rootful podman): shop and a variant with an empty /data/instances/check both pass (release 2.9 s, web 200 after 2.8 s, worker running), no leftovers. No new user copy. Reviews: Astra R1 NOT READY (P1 helper name collision with a worker named prepare, P2 test gap), R2 NOT READY (P1 copy-up resets the owner), R3 READY; census rootfs-check-volumes approved by Astra on #280. Not released. -
a8b52609cStatic sites: a folder requested without its trailing slash (/blog/post) now answers a 301 to the slash form (./post/, relative, query kept), as GitHub Pages and Netlify do, so analytics counts one page once (Paul, 2026-10-29, on paulca.com's /blog/deshittification and /blog/deshittification/) and relative links resolve against the page's own folder. Files are never redirected, a folder with no index.html stays a 404, rewritten requests are left alone, and the site's _redirects come first: a rule naming the path, or any rule that would redirect the slash form (named, splat, placeholder or host-specific, redirectRules.redirectsSlashForm), leaves the path served as asked, so no loop. Docs: docs/site/cli.md. Reviews: Astra R1 NOT READY (1 P1, the loop with splat/placeholder rules, fixed), R2 READY; census census-ruling-static-dir-slash (serveTree, redirectsSlashForm, internal/edge envelope) approved by Astra on #280. CI flake TestHeldDialWebSocketUpgrade filed as #466. Not released. -
1c5db50e0Console Analytics tab overhaul and an Overview traffic card. The tab leads with page views, visitors and data served in decimal units; the chart is HTML columns with tooltips on hover, focus and tap (arrow keys move), future hours undrawn and the current period hatched; busiest hour or day and the full-day average under it; pages, referrers, countries (names and flags) and events as share lists; one restart note. Overview gains Traffic, last 7 days, waiting at most 300 ms from request start (perf.Started), counts held 60 s. Analytics day files go through the settled-day cache and are read concurrently: a warm 30-day view reads 2 files per box, not 30. Perf session S3 ceiling 401 to 415 and the region-label baseline name the card's reads. Reviews: Astra UX suggestions; Luna copy pass; Astra R1 NOT READY (1 P1, 4 P2) fixed, R2 READY AFTER FIXES, 2 P2 fixed; census clean. Approved by Paul from the preview, 2026-10-29. Not released. -
0c39af302console: a thank-you panel after a completed purchase (owners only, live paid subscriptions only) with Add packs, Upgrade and Go to your apps; readable packs ("4 Apps packs") and upper-case currency codes in the plan summary; copy approved by Paul -
89491675aconsole: billing quantity boxes select their number on focus, so typing replaces the 0 (enhancement only) -
803c6800cRootfs apps Plan 4 (#366): the console and CLI show a rootfs instance's runtime and workers, the docs, the sample Rails app, and carlos ship --check --env. carlos instances list gains RUNTIME and WORKERS; worker states come from each box's rollout report through the console's rollout join and cross only under its tenant check (TestInstanceListWorkersStayInTheirTenant, three arms). instances create prints the rootfs line. carlos apps place refuses every rootfs app (witness tests, API and browser). carlos ship --check takes --env KEY=VALUE placeholders for every process (Paul, 2026-10-28): only the local container runtime sees them, as -e argv; CARLOS_SOCKET, CARLOS_DB, CARLOS_HOST and CARLOS_REGION are refused; --env without --check is refused. Docs: the rootfs contract page (docs/site/rootfs.md), the Rails guide (rails.md) with a drift test against the sample, Laravel and Django notes, and the CLI page; six revised rows and the --env and C104 rows approved by Paul in copy review. examples/rails-shop: Rails 8.1 with web, a Solid Queue worker, a release process for migrations, Active Storage on the app's store, and a token-gated crash endpoint. Reviews: whole branch Astra R1 2 P1 1 P2 (docs), R2 READY; census census-ruling-rootfs-apps-4 approved by Astra (#280; cli.go runShip), re-sealed on main's chain with the same units and claims. Not released. Task 11 (dev fleet end-to-end on r10r) follows a release. -
674fec48bconsole: native controls follow the dark theme (color-scheme); Continue to payment spins for at least 650 ms and can't be pressed twice (progressive enhancement; without JS the form submits as before) -
cca7c9c33billingstripe: the write transport offers only HTTP/1.1 by ALPN. It cloned DefaultTransport, whose TLS config offered h2, so Stripe negotiated h2 and every billing POST failed as no response (found in the dev sandbox rehearsal). -
20a826706console: the billing page gets a plan summary, plan cards with inclusions, a currency switch and pack rows (styling only; no client JS; currency and action invariants unchanged) -
9bcbab0f5Team-scoped service credentials: the team role, standalone owned environments, and per-environment platform credentials (#449). A team credential is bound to one app and a scope and reaches only the environments its scope owns (owner_scope, schema 2, rendered standalone), the instances bound to them and their hostnames, through thirteen doors registered by cliScopedRoute with one deciding function, teamInScope; the default bundle and every app-wide verb are never in scope, out-of-scope targets answer the unknown target's bytes, names a record references cannot be captured, and a person binds into an owned environment only with an explicit scope re-checked under the record lock. Owners adopt, release and fork (carlos env adopt|release|fork). Per Paul's §3a ruling, an owned environment receives its own SES SMTP user and key and its own relay identity, reaped on release; scan and mail-events keys are not delivered. Design approved by Fable round 3 on #449; whole-branch review approved by Fable (P2s fixed); census approved by Astra on #280 at 1cc27cc4a, overlay re-proposed on ee0661836's chain (seal 9e0c4a0c → b6f3a369). The merge creates nothing in AWS; per-environment IAM users appear only when owned environments are created, with Paul's scoped approval. Not released.