m0serve Realtime from a synchronous Python app

Decisions

Standing decisions about the application layer, one row each, with where each is recorded and what would retire it.

One row per standing decision about the application layer and, as each is revisited, the server, with what would retire it. The design notes argue each at length and are kept as written; this page is the index of which decisions stand, so a session that reads nothing else meets the constraint before re-proposing a piece.

Rows have a permanent id (D7). Ids are never renumbered or reused: a retired or superseded row keeps its id and its line, and a new row takes the next number. A decision id and a SPEC row id are different tables — SPEC's section D is graceful shutdown, so D9 there is a capability and D9 here is a decision — and prose says which.

status means
standing in force; not to be re-proposed until the retiring condition holds
superseded by Dn replaced by the row named
retired YYYY-MM-DD the retiring condition was met on that date

recorded in names the note under docs/notes/ that records the decision, or a CLAUDE.md heading written CLAUDE.md: <heading>. retired by is the condition that would reopen it; — says there is none foreseeable.

poe check-docs fails when a recorded in does not resolve, a retiring condition is empty, an id is repeated or out of order, a status is not one of the three, or a superseded by names an id that is not here (check_decisions_ledger in scripts/check_docs.py; its --selftest reverts each rule against this page and insists the checker catches it). What no check can tell is whether a decision is still right; that is the retiring condition's job, and the reason each row has one.

The application layer

id decision recorded in status retired by
D1 HTML helpers, not a safety type: String stays the currency, attr and text escape, raw says so by name, and nothing forces an application to migrate a-fragment-that-names-itself standing a decision to accept the migration to an auto-escaping newtype across every app
D2 No template language and no template files: an application's markup is Mojo, compiled with its context struct a-fragment-that-names-itself standing nothing foreseeable
D3 No middleware and no decorators: a capturing closure is not thin, so there is nothing to put back in the table, and guards are early returns of Optional[HTTPResponse] a-fragment-that-names-itself standing a language change that makes a capturing function value storable
D4 Route params are positional: origins are not spellable as struct parameters on the pinned toolchain, so a borrowing RouteParams cannot be written and an owning one allocates per name per request views-the-mojo-way standing origins spellable as struct parameters
D5 Routes are patterns, not function values: thin values are not ==-comparable, so the pattern is the comptime constant given to both add and url_for a-fragment-that-names-itself standing comparable function values
D6 hx-* against htmx 2.0.4, provisionally; fx-* and htmx 4 are deferred, and what weighs when the pin moves is recorded with the decision a-fragment-that-names-itself retired 2026-09-19 met: the pin moved to htmx 4.0.0 — Htmx takes the sixth verb and spells the same three per-element attributes, page_or_fragment takes HX-Request-Type at its word and keeps the htmx 2 rule for a request without it, and the notes app's DELETE carries its CSRF token as a header (SPEC N22, D38); fx-* is not revived, Vocabulary being open to an application's own (D34) (the-layer-moves-to-htmx-4)
D7 The frontend vocabulary is a type parameter (Fragment[Htmx], Fragment[Datastar]) and its conformances live inside html.mojo, because on Mojo 1.0 an application could not conform to a trait defined in a .mojoc package one-renderer-two-transports retired 2026-09-18 met: Vocabulary is open to an application's own conformance — Html.open_kind() and a defaulted verbs() are the surface, the verb check moved into the layer (D34) — and poe check-app-vocabulary builds an htmx 4 vocabulary from a directory outside this repository, asserts hx-swap="outerMorph" and hx-query in both tiers and reads the output with the vendored hxlint; Htmx and Datastar stay in html.mojo as the two the layer ships, with both apps' wire byte-identical (a-vocabulary-an-application-defines)
D8 One swap mode: a non-default mode belongs on the response beside page_or_fragment, where both libraries take a header, never on swap one-renderer-two-transports standing an application that appends a row rather than replacing its list
D9 page_or_fragment reads five headers — Datastar-Request, HX-Request-Type (htmx 4's, which decides when present; the fifth since D6 retired), HX-Request, HX-History-Restore-Request, HX-Boosted — and every answer's Vary names all five one-renderer-two-transports standing —
D10 A Datastar URL carrying ', \, CR or LF is refused, not encoded: url_for encodes them, and an application building a query from request data must too one-renderer-two-transports retired 2026-09-21 a query builder on url_for, built: Query (SPEC N36) encodes a query byte by byte as url_for encodes a segment, so an application no longer encodes one by hand. Datastar.swap still refuses the four bytes, now as the guard on a URL built without either
D11 The mount prefix is a value threaded through state (Mount, used once for registration and once for url_for); PoolContext.prefix comes from the pool's own lane table, the one the loop routes by one-renderer-two-transports standing —
D12 The page shell is a thin function over a context, not a trait; PageShell stays in fragment.mojo, now as the target the flipped check-mojoc-trait compiles a-fragment-that-names-itself retired 2026-09-18 met: page_or_fragment[S: PageShell] takes the conformance and calls wrap only on the document branch, apps/fragment_notes is on it with its wire byte-identical, and check-mojoc-trait's mismatch arm passes an app's shell through the real API (the-page-shell-becomes-a-trait)
D13 form(req) is Optional, compares the media type whole, and keeps a decoding loop of its own rather than sharing URI.parse's last-wins one a-fragment-that-names-itself standing —
D14 ViewService does not conform to PoolHandler; a mounted application is a three-line struct in its mount module (m0serve_mount, SPEC N14) holding a Views table and its per-thread state one-renderer-two-transports standing the trait boundary lifting — it is a directory-name mismatch, fixed in Mojo 1.1.0 (the pin is 1.2.0) (a-trait-and-a-directory-name), so this half is met — and an app whose state is a per-thread SQLite Connection
D15 No sessions and no CSRF: wyhash64 is not a MAC, so an HMAC-SHA256 with published test vectors comes first, and whatever is built emits through ResponseCookieJar.add_raw a-login-on-the-notes-app retired 2026-09-12 an application with a login (SPEC N13), built: m0_http.session signs with m0_core.hmac, emits through add_raw, and apps/fragment_notes is the application
D16 No multipart/form-data: a boundary scanner, per-part headers, a spill-to-disk policy and a size story the whole-body cap does not answer a-fragment-that-names-itself standing an application that uploads a file
D17 No HX-* setter helpers: resp.headers["HX-Trigger"] = x is the API a-fragment-that-names-itself standing three apps writing the same setter
D18 No streaming from a Mojo mount: MojoPool refuses a streaming response, because a stream begun on a pool thread has no producer the loop drains mojo-handler-pool superseded by D22 an application that needs it (SPEC N11), settled by the probe: a MojoPool thread sending the hold frame a WSGI pool thread sends — it can, 2026-09-11
D19 The expression tier allocates per element and has no join; the builder is for a renderer that cares one-renderer-two-transports standing storable closures, or a List[String] form of el that an application asks for
D20 Datastar is pinned at 1.0.4; re-check the version before any vocabulary work one-renderer-two-transports standing the next Datastar release with a protocol change
D21 A Datastar field's action sends the signal store, not the field, so a field is bound and a form arm reads what the store carries; confirmed in Chromium 2026-09-12 (poe browser-datastar-form: the draft field's action posted {"draft":"buy milk"} as JSON, the rename form posted text=buy+oat+milk urlencoded) a-datastar-form-end-to-end standing a Datastar release whose field actions send the field alone — the browser run is where it would show
D22 A Mojo mount streams only as an M0-Hold: a pool thread takes the two headers a Django view returns, sends the loop the h frame a WSGI pool thread sends, and the loop drains the stream from its own registries; a streaming response that is not a hold is still refused, because a pool thread has no producer the loop can drain — a request-scoped generator is the executor's shape hold-from-a-mojo-mount standing a Mojo view that must produce its own body after the head
D23 A hold grant is the server's own dotted format — version, key id, expiry, channel, session binding, HMAC-SHA256 tag over the rest — signed with a dedicated M0_GRANT_KEY both sides read from the environment, bound to the session cookie by default, verified in constant time, with revocation bounded by its TTL; not Django's own signer, and no server-side grant store grant-verified-holds standing a hold the server can close from the application side, which would let the TTL grow and the binding relax
D24 No session store: the cookie is stateless, so logout expires it in the CLIENT and a copy of the value works until its own expiry — revocation is the TTL and the key ring, where dropping a key ends every session signed under it at once. The CSRF token is stateless for the same reason, a MAC over the session's own tag a-login-on-the-notes-app standing an application that must end a session before its expiry — a stolen cookie, or "sign out everywhere"
D25 No password KDF and no user table: one identity, its secret in the environment, compared as SHA-256 digests so constant_time_equal has two fixed-length inputs. Not a password hash, and not meant to be — there is nothing at rest to steal a-login-on-the-notes-app standing a second user, or a password stored anywhere
D26 No worker-thread helper: an application that needs a cadence off the loop spawns its own ThreadSet and publishes through the BroadcastBus with skip_worker = -1, as --pg-listen's listener and apps/sim_loop both do. A Server.add_worker_thread(body, period) would have to choose the cadence policy, the shutdown bound and the publish shape on the application's behalf, and one application is not evidence of which choices are right. The retiring condition was met on 2026-09-16, when apps/blobs hand-rolled the same block slots (BLK_STOP, BLK_FDS, BLK_NFDS) with different choices (a-world-the-page-cannot-hold), and the Mojo host's Producer trait replaced the helper the same day: D27 records the choices it makes periodic-work-off-the-loop retired 2026-09-16 a second application hand-rolling the same block slots
D27 The Mojo host makes a producer's three choices once, for every application: the CADENCE is what step returns, the time from this step's scheduled start to the next, fixed-rate and never caught up after an overrun, a pause being a poll interval with no frame; the SHUTDOWN BOUND is the drain's own 5 s, after which the process leaves without the producer and names it; the PUBLISH SHAPE is every worker's channel with skip_worker = -1, through a Publisher that hides the descriptors and counts each refusal, and the ID SPACE is the pre-fork shared word (Publisher.next_id, since 2026-09-17), the one DatastarStream numbers from under enable_bus, handed out rather than stamped inside publish because the id sits in the frame body and the framing is the application's (id: first for format_sse_event, event: first for Datastar) — a producer numbering from a counter of its own restarted at 1 when the supervisor respawned worker 0, and every stream held on a sibling went silent for the pre-crash uptime. A step that raises ends the producer, named in the log, while the server keeps serving. sim_loop's fixed rate and blobs' pause-and-idle cadence are both one step the-mojo-host standing an application whose producer needs what step cannot say: catching up, a longer bound, or a subset of the workers
D28 The host lives in the fork (lightbug_http/host.mojo), beside mojo_pool.mojo, because an application must conform to AppHandler and Producer and, on Mojo 1.0, a conformance to a trait in a .mojoc built from a directory named other than its package got no witness table; that added fork -> m0_http imports of config, multiworker, prefork, signal, threads and views (for ViewsApp). Retired when the code moved: mojo_pool.mojo into m0_http (src/), and the host into a source-resolved package of its own, m0_host, because src/ cannot hold it — D33 the-mojo-host retired 2026-09-18 poe check-mojoc-trait failing, or build-apps refusing apps/pool_spike's PoolHandler conformance: the witness-table bug is back and both files return to the fork (the-host-leaves-the-fork)
D29 Host v1 is an environment-configured prefork server of inline loops: M0_THREADS, M0_BLOCKING_THREADS and M0_SPAWN_WORKERS are refused with 78 rather than ignored, as is an M0_WORKERS above what the application declares it can serve (max_workers, for state that lives in one process), and there are no CLI flags and no --doctor. That last clause outlived the supersession and was retired on 2026-09-19, when the developer product needed a binary whose doctor a CLI can delegate to: SPEC E30–E31, flags-and-a-doctor-for-the-host, and D37 for what the command line still refuses to be the-mojo-host superseded by D31 an application that needs a pool lane, loops on threads (plan Phase 4), exec'd workers, or a flag its operator cannot set in the environment — the first was met on 2026-09-17 by the ramp test, which needs a Mojo application's compute views off the loop on both hosts
D30 A make that raises is a refusal, not a crash: the host prints the error under host: and exits 78 (EX_CONFIG), which the supervisor never respawns, for the handler's make in any worker and the producer's on worker 0 alike. The producer is BUILT on the spawning thread, inside ProducerThread.start, before the server listens — not on its own thread, as D27's first form had it — so the refusal precedes the listening banner by construction rather than by racing it; the thread takes the built producer as its first act and owns it from there. One worker's refusal ends its siblings (WorkerSupervisor forwards SIGTERM on an EX_CONFIG exit), because a host with no worker 0 and no producer is not the configuration that was written down. Measured before the fix: five crashes and exit 1 under M0_WORKERS=2, the banner then the trace at one worker the-mojo-host standing an application whose make fails transiently and wants a retry rather than a refusal, or a producer that must be built on the thread that runs it
D31 The host serves M0_BLOCKING_THREADS=N as one GIL-free pool lane per worker (SPEC E26): N MojoPool threads behind the loop, each building the application's handler again through PoolLane[H] — the host's PoolHandler adapter, so an application conforms to AppHandler once and HostContext.thread says which instance a make is building — with before_request and the streaming hooks the loop instance's and every func a pool thread's; the host waits for every thread to report its handler built before it serves, and a make that raises on a pool thread is the same 78 the loop's gets (D30 on the lane); a stream begun in func is refused 409 from a pool thread, per request, as on a Mojo mount, and a hold from a pool thread (set_hold_notify) is not offered. M0_SPAWN_WORKERS stays refused with 78 (M0_THREADS did until D35), and there were still no CLI flags and no --doctor (until 2026-09-19: SPEC E30–E31, D37). No pool by default: M0_BLOCKING_THREADS=0 is unset, and an application with a producer alone does not want one. The shutdown bounds overlap since the same day: the loop stamps the producer's stop word as its drain begins (run_event_loop's stop_addr), the pool is pilled after the loop returns (a pill read beside a queued job strands it) and joined within what the drain left of the bound, floored at POOL_JOIN_FLOOR_NS, and the producer within the rest of its own — measured 5.05 s to leave with a 4 s request in flight beside a 60 s step, against 8.54 s in sequence the-ramp-test standing an application that needs exec'd workers, a hold taken on a pool thread, or a flag its operator cannot set in the environment
D32 A route's placement is a property of the route, declared where it is registered (SPEC N19): add_read/add_write with on_loop=True keep a view on the loop with the loop instance's state, add_loop stays the stateless form, and the default under a pool is the lane. m0serve does NOT honour either on a Mojo mount: its loop handler is WSGIHandler, which holds no Mojo table, so a mounted table's loop routes are answered on a pool thread by dispatch, bytes identical, one round trip later, with that thread's state — recorded rather than built, because the divergence is latency under a full lane, not a stall, and the lane's other threads answer — measured by smoke-ramp's full-lane arm as 196 ms for m0serve's /x/now against 0 ms for the host's with both lane threads busy, and 1 ms or less on both with one. The alternative was rejected for now, not forever: teach WSGIHandler.before_request a thin function pointer plus an address from one extra MojoMount built on the loop thread (index=-1), at the cost of a second handler instance per loop the-ramp-test standing a mounted route that must answer while its lane is saturated, measured by smoke-ramp rather than argued
D33 Nothing in m0-http/src/ may reach lightbug_http/event_loop.mojo, or any module of lightbug_http/loop/ it is split into (review record C3), at any depth: the loop imports m0_http.log (in loop/state.mojo), which resolves through m0_http.mojoc — the file build-http is writing while it compiles src/ — so the build fails with invalid magic bytes from a clean checkout and every one after, and a function-local import does not help, a precompile parsing every body it reaches (both spellings measured). So the Mojo host, which calls run_event_loop, is the package m0_host (packages/m0-http/m0_host/), above the fork and m0_http and imported by neither, resolved from source with no .mojoc of its own (a directory beside a .mojoc of its name shadows it), and compiled whole by poe check-host-package the-host-leaves-the-fork standing the event loop no longer importing m0_http — its access log given another home — which CLAUDE.md's fork section currently rules out; or an m0_host.mojoc an application asks for, which means renaming the directory
D34 A Vocabulary conformance is written without an underscore, and that is the whole contract, because nothing behind a .mojoc is private (an app reads h._open_kind and imports _check_verb, both measured): the element kind is the accessor Html.open_kind() rather than a fifth argument to swap, Html being handed over mut and so never opaque to a vocabulary; the verb check is the layer's (_swap[V], before V.swap runs) against the vocabulary's own verbs(), defaulted to the five, so a conformance that checks nothing still refuses a typo and htmx 4's sixth verb is one line; _check_action_url stays Datastar's; and the two built-in conformances are written against that surface alone a-vocabulary-an-application-defines standing a library whose spelling needs something the surface lacks — an ancestor of the open element, or a per-element mode — shown by an application that had to reach for an underscore
D35 The Mojo host serves M0_THREADS=N as N loops on N threads of one process, and prefork stays what the documentation reaches for first, because the two measure the same (SPEC E27–E29): threads over workers on apps/ramp, the loop route and the compute route at 16 and 256 connections, ran 0.99–1.00x throughput on macOS at four, 0.95–1.03x on Linux aarch64 at two and 0.98–0.99x on Linux x86-64 at two (a GitHub runner, AMD EPYC, measured 2026-09-18 in host Phase 5), the tail equal within its own noise, and summed RSS 0.78–0.80x, 0.63–0.68x and 0.56–0.59x. The x86 run disagreed in one place and it is kept, not averaged: at 256 connections on the loop route threads served the same requests on more CPU, 0.86–0.94x workers' throughput per core in every round, which is prefork's side of the decision. Threads buy memory, one address space and the absence of fork; they cost crash isolation — there is no supervisor, so a loop that dies takes the process (exit 1, named) — and neither happens unasked, the host's default being one loop. HostContext.worker/workers count loops and threaded names the kind, so an application is served by either mode unchanged; AppHandler.max_threads() defaults to max_workers(), so state that lives in one handler refuses loops as it refuses workers; the two variables together are refused; no loop serves until every loop's make has returned; fan-out across loops rides the bus and accepts are shared across threads through the same SCM_RIGHTS channels, measured as needed (30 of 32 connections on one loop of four without them) loops-on-threads superseded by D48 a measurement where THREADS win by more than their own round-to-round spread — macOS, Linux aarch64 and Linux x86-64 are measured, and the one consistent difference (x86, 256 connections, per core) favours workers — or an in-process ring measured against the bus's socketpairs. The default for a deploy on one shared vCPU is D36's: one loop
D36 The blobs demo's deploy serves ONE loop -- no M0_WORKERS, no M0_THREADS -- because on the machine it is billed for, one shared vCPU at 256 MB, neither N-loop mode buys anything measurable and both cost memory. bench_blobs_modes.py held 25 to 400 viewers against the demo's own image pinned to ONE core (a CPU quota alone lets two loops run on two cores at once, and measured unpinned they looked faster for exactly that reason), on linux/arm64 (colima, Apple M4) and on x86-64 (a GitHub runner, AMD EPYC 7763): every mode used the same CPU (0.92–1.11x one loop's), delivered every frame, and fanned out with the same spread; at a full core /now's tail differed by at most 2 ms and in no consistent direction (at 400 viewers arm64 favoured two loops, 6.4–6.8 ms against 8.3, and x86 one, 0.66 ms against 0.98–1.07); RSS was 1.11–1.25x one loop's for two threads and 1.79–2.29x for two workers. Throttled to a shared-cpu-1x's baseline share (6.25 %), every mode still delivered every frame on the same CPU, its tail set by the quota's period (23–50 ms p99 in every mode). What one loop gives up is a supervisor: a crash takes the process, and the machine's restart plays its part. The world lives in the producer on worker 0 under prefork too, so a crash there loses it in every mode the-demo-in-its-own-image standing a deploy on more than one vCPU, where N loops run at once; or a delay viewers can see growing with their number under one loop -- the fan-out's own spread, not a /now probe's tail
D37 The Mojo host's command line is CLOSED and its doctor stops before the bind. Closed: the flags are the fields AppConfig carries, plus --doctor and --help; an unknown flag or any positional is exit 2, so an application defines no flags of its own and keeps its settings in its own variables, checked in its main before serve — which is also what makes them refuse identically under the doctor without a hook. The doctor does not render those settings, does not build the handler (a make opens the application's database to report on a port) and does not try the address; both fail at run time with a named line. A count that cannot be served is a refusal (78) whichever way it arrived, never a usage error for the flag and a refusal for the variable, where m0serve answers its --workers 0 with 2: the host had the env-side refusal first, and one rule gets one answer. And the report carries a format number, not a release, the version having exactly two homes (docs/RELEASING.md) flags-and-a-doctor-for-the-host standing a second application that needs its own settings in the report (then a hook on AppHandler), or one that cannot express a setting as a variable; a make cheap and pure enough across real applications that building it under the doctor is safe to default; or the m0 wheel needing the framework version from inside the binary rather than from its own metadata
D38 No request-header helper in the layer: a vocabulary spells a swap, and an app that needs a header on one — the notes app's X-CSRF-Token on a DELETE, htmx 4 leaving a DELETE no body and sending its fields in the URL — writes the library's own attribute by hand (hx-headers, the one hx- that app types). The two libraries put a header in different places, htmx in an attribute beside the swap and Datastar in an option INSIDE the action expression, which Vocabulary.swap has no argument for; one application is not evidence of the shared shape the-layer-moves-to-htmx-4 retired 2026-09-27 met: the scaffold's template needs one — m0 new --template auth's delete button carries its CSRF token as a header — and the soak application's login was the second one written by hand. header=RequestHeader(name, value) on swap and el writes Vocabulary.request_header after the swap: hx-headers for Htmx, a refusal by default and by name for Datastar, whose header lives inside the action expression (SPEC N44, D53; a-login-in-the-layer)
D39 An application outside the repository gets the framework as SOURCE in the m0 wheel, gated on ONE exact mojo, with no override. Source and not .mojoc: a .mojoc is locked to the compiler that wrote it, so shipping one forces lockstep and every toolchain bump breaks installed wheels; the fork and m0_host are source-resolved anyway (D33); and a build after a real edit measures the same either way (fragment_notes, a changed literal: 11.7–12.1 s against the .mojoc chain, 12.0–12.8 s all-source). The pair is a table, gated_mojo in m0/_build_info.json, read from the root pin at build time and compared by string equality to the mojo installed in m0's own environment; a list by format and a singleton by rule, since a second entry needs a second CI leg. No Requires-Dist on mojo — 220 MB downloaded before m0 new writes a file, and a mismatch read as a resolver's prose instead of a sentence naming the fix. No override, because the repository's grammar is refuse, never warn-and-run, and every gate ran on that one compiler the-m0-wheel standing a compiler that keeps .mojoc stable across versions, or a registry story that beats a wheel; for the override alone, a user blocked between a mojo patch release and an m0 release; for the singleton, an m0 release that must span two pins, which is a redesign and not a patch
D40 The m0 CLI is stdlib Python with a CLOSED command line and a closed set of exit codes (0, 1 the tool failed, 2 the command line, 78 a refusal), and it runs the mojo in its own sys.prefix, never PATH's. Python, because the build toolchain is a PyPI wheel inside a venv whatever the CLI is written in, so it adds nothing to what building already needs, and the shipped application still has no interpreter. Closed, D37's reason: m0 build takes no -o because bin/server and dist/ are the contract the doctor and the image rely on. Its own prefix, because the pair check is made about the distribution installed beside m0, and a global mojo earlier on PATH would be a different compiler passing a check made about another the-m0-wheel standing a self-bootstrapping toolchain story without a venv, or a second application needing a build the fixed paths cannot express — written down as what it could not express before any flag is added
D41 No pixi or conda package. The official Mojo distribution path publishes COMPILED .mojoc/.mojopkg conda packages with an exact mojo-compiler pin — the lockstep D39 avoids — and would be a second toolchain for a uv-based repository with nothing pulling for it. The sources in the wheel are the sources a conda package would carry, so opening the door later costs a build recipe, not a redesign the-m0-wheel standing a user asking for pixi, or conda becoming the way Mojo users arrive
D42 The CLI does not wrap deploy. It wraps what the repository owns — the build, the relocate-and-bundle recipe, the checks — and leaves fly deploy to a runbook, where --remote-only is required: a local build emulates amd64 and the binary dies under QEMU. The runbook states that flag in the open, where a flag of m0's would hide it and have to track someone else's CLI the-m0-wheel standing a second deploy target whose steps the runbook cannot state in a page
D43 m0 is versioned apart from the repository: 0.1.0 first, tags m0-v*, its own release workflow. The two products have different stability — m0serve's 1.x is a served contract with a production consumer, and the Mojo API broke inside 1.x minors twice in one week (D12's page shell, htmx 4) and will again — so one shared number means either m0serve majors that mean nothing to its users or an m0 whose SemVer lies. 0.x is "preview" in the form tools read. Nothing is lost: _build_info.json records the framework version and the commit the wheel was cut from the-m0-wheel retired 2026-10-02 met: the application-layer soak landed (unotes, the record). m0 1.0.0 is planned, with what 1.x promises and whether it rejoins the repository's number decided in #668
D44 The scaffold is two SESSIONLESS templates behind a closed m0 new --template, which takes views or live, and there is no --ui and no --live: views is the htmx 4 list (fragment_notes' shape without its login), live a producer pushing full-state Datastar frames (blobs' shape without its kernel). A --ui of three values times --live is six shapes of which two are proven on the wire; a closed set says what exists and grows by a VALUE, never by a flag per feature, and moving views to Datastar is one comptime line and a script tag, which the scaffold's AGENTS.md says. Sessionless because a scaffold that refuses to start until a password variable is set is a bad first minute, and with no ambient authority there is no token to carry (D38 stands). Templates are real files that compile unsubstituted — the name only inside string literals, TOML and Markdown — so substitution is str.replace and there is no template engine (D2's reason, applied to the tool) the-scaffold retired 2026-09-27 met: the soak application's login was the second written by hand, and the auth template is built as the closed set's third VALUE — m0 new --template auth, not a flag (SPEC N45). The two sessionless templates stand as they are, and the closed set and the templates-compile-where-they-lie rule carry into D53 (a-login-in-the-layer)
D45 The Mojo stack's documentation is six pages whose URLs are permanent from the day they land: /mojo/, /mojo/quickstart/, /mojo/host/, /mojo/views/, /mojo/deploy/, /mojo/ramp/. Every scaffolded project's AGENTS.md sends its reader to the site, agents cache links, and a moved page reads to them as a page that never existed — so a page may be rewritten, split by adding a seventh, or emptied into a pointer, and its URL still answers. The word "preview" is said once, on the index. The quickstart's SOURCE is packaging/m0/QUICKSTART.md and not under docs/, because CI executes it and test.yml ignores docs/** and root-level Markdown: there, a pull request that edits only the page still runs the page. Its image step is display-only — half the gate's runners have no docker — and N31's gate builds that image instead. The section rides in the existing llms-full.txt (about 5,000 words of 34,000, measured) and gets no file of its own the-mojo-stack-pages standing never for a URL that has been published; the placement under packaging/ when test.yml stops ignoring the page's path some other way; the shared llms-full.txt when the section outgrows a third of it
D46 push=True is htmx's alone, and Fragment[Datastar] REFUSES it rather than spelling half of it. Datastar 1.0.4's free bundle names neither pushState, replaceState nor popstate, so the only spelling is a history.pushState(...) appended to the action expression, with nothing to answer the back button: the address would change back and the page would not. A parameter on swap is a promise both vocabularies keep or one breaks silently (the reason there is one swap MODE); this one cannot be kept, so it raises, naming the plain link as the way out — the failure the piece exists to stop being a filter that quietly stopped being linkable. Vocabulary.push_url's default refuses for the same reason, which is also what keeps an application's existing conformance compiling. The layer, not the conformance, refuses a push on any verb but get a-swap-that-moves-the-address-bar standing Datastar shipping history handling in its FREE bundle, which is a pricing decision rather than a release away: data-replace-url and data-query-string are listed as Pro features, and the free bundle at 1.0.4 names none of the three history calls (measured, not recalled — re-read the pinned bundle when the pin moves). Or a Datastar application that writes the popstate half itself and wants the push spelled
D47 apps/blobs keeps sending a rendered picture — every slot as a CSS polygon(...) of NVERT vertex pairs — rather than blob state the client draws. Measured 2026-09-21 over 40 consecutive frames: 2,544 B of signals per frame at the median (not the 11 KB the 16-blob worst case implies), 5 of 16 slots filled, 4 of those 5 changing every frame, 92.7 % of the bytes vertex text — so about 26 KB/s per viewer, and delta frames would save a fifth against a stated reason not to send them. The only real cut is to stop sending vertices, and that moves the KERNEL: Tracer.trace is sample/march/chain/resample/match, and match is what makes CSS interpolation coherent (slot correspondence, vertex-order rotation, births and farewells), so a client drawing state must reproduce all of it. A second contouring kernel is the tree's own standing warning about duplicating a function and its traps. What blobs already has is the split without the cost: the producer publishes at 10 Hz and transition: clip-path var(--period) fills the gap, and the image needs no interpreter to draw the-picture-on-the-wire standing an application whose surface CSS cannot draw — a graph with edges, a virtual scroll, a zoomable canvas — where the client needs a real renderer anyway and the state-shaped wire comes free; blobs is not that application
D48 An m0 application reaches N cores as N loops on N threads (M0_THREADS), with a handler pool (M0_BLOCKING_THREADS) for the views that compute, and stays one loop on one vCPU (D36); parallelize belongs in a producer's step and in heavy views rarely busy at once, never in a hot route, since under load it adds nothing (318 against 307 rps on four loops) and alone it pays (12.6 ms serial, 4.0 to 7.2 ms spread). Prefork (M0_WORKERS) stays served for an application that links no MAX and wants a supervisor, and is REFUSED when the binary links MAX's parallel runtime (SPEC E32): fork() copies the calling thread alone and the runtime's workers are started before main, so a parallelize in a forked worker never returned in any shape measured, a parent that never called it included, and the request that hung took its worker's loop and the shutdown with it. m0serve, whose workers are forked by default, refuses the same shape for a Mojo mount that links it — --workers N and --reload, exit 2 before the bind — and serves it under --spawn-workers, the exec'd worker starting the runtime fresh (SPEC E33, D51). What D35 decided about serving threads stands and its measurement is the other half of the argument — parity on throughput and the tail, 0.56 to 0.80x the RSS — but its documentation clause, prefork first, is what this supersedes, on correctness rather than speed. Given up: crash isolation; a crash ends the process and the platform restarts it threads-first-for-m0-apps standing a Mojo runtime whose worker threads survive fork(), shown by smoke-parallel-runtime's refusal arm passing with the refusal removed; or a supervised spawn in the host (fork then exec, which the probe showed works), which would give prefork its crash isolation back beside MAX
D49 m0-sqlite opens libsqlite3 at run time, in m0-postgres's shape and under its three rules (SPEC O17, O18): each Connection holds the table (SqliteLib, the handle with its entry points, 53 of them now), each Statement a copy of the entry points it calls, and the library is pinned for the life of the process. The third rule has a second half, found here: the pin keeps a handle open and a second image is refused (O23). m0-postgres took the kept handle on 2026-10-01 and not the refusal: a second libpq file is pinned beside the first, libpq having no rule against two copies in one process as SQLite's file locks are one. It took the local scope with it, without which that is unsound on Linux: with the first libpq in the global scope a second build's calls bound into it and a connection through the second crashed (O24; libpq-keeps-its-handle). Two things asked for it: m0 build takes no link flags (D40), so an application built with the wheel could not use the package at all, and mojo run resolves symbols only from its own process image, so on Linux every test here had to be built and run — the shape m0 test cannot take. A declared link list on m0 build was the alternative and was rejected: it would have fixed the build and left every test that touches the database failing under m0 test, and it would have opened D40's closed command line for one package. The cost is one indirect call per C call, measured at parity by bench_sqlite.mojo's rows, and a dlopen plus the symbol lookups per connection (two for each entry point, 106), paid once per thread; test_file.mojo, which forks twelve process pairs, stays built for its measured cost under the JIT (388 s built against 529 s under mojo run, four cores) sqlite-at-run-time standing a toolchain whose mojo run links a named library, or an m0 build that takes link flags (a redesign of D40, not a patch); or a measurement where the loaded table costs a read-out more than the noise of bench-sqlite. For m0-postgres's second image alone: a fault measured with two libpq images in one process while every handle is local (one pair of builds was measured, on aarch64, without TLS), at which point a second image is refused as m0-sqlite's is
D50 MAX is an optional companion to an m0 application, pinned beside mojo and never a dependency of m0: the wheel records gated_max from the root's max dependency group (the one smoke-parallel-runtime syncs, SPEC E32) the way it records gated_mojo, and max-gated sits in the ONE list of checks after mojo-gated — absent passes naming the uv add that installs it, another version is refused with a sentence naming the fix, the gated version passes. Optional, because MAX is about a gigabyte of wheels and most applications compute nothing a parallelize would help (D48 measured it adding nothing under load); pinned, because max-core pins its own mojo-compiler exactly, so another version is a second toolchain in the same venv whose parallel runtime nothing here measured. The release build bundles its runtime library like the rest, since the bundler discovers the closure a binary names rather than reading a list. The storage packages ride in the same wheel for the opposite reason: they link nothing (D49, and libpq from the start), so they cost an application nothing until it opens a database storage-and-max-in-the-wheel standing MAX shipping without an exact mojo-compiler pin, or a MAX small enough that installing it beside every project costs nothing; or an application on the layer that needs parallelize in a hot route, which D48 says not to expect
D51 m0serve refuses a forked worker that would carry MAX's parallel runtime and names --spawn-workers, rather than spawning on its own when the image links it (SPEC E33): --workers N above 1 and --reload exit 2 before the bind, --doctor fails the same check, and a spawned worker serves. Refuse, not switch, because the worker mode is the operator's contract — a spawned worker is one more process start and an image that re-reads its environment at exec, --doctor's exit must equal the server's for the same flags, and a mode chosen by what a binary happens to link is a deploy that changes shape when a mount gains an import. Measured with the refusal removed: a forked worker answers /par/ser and never /par/par, the pool thread it took is abandoned at the drain's 5 s bound, and a lane's threads are all it takes to lose the mount. The fact moved to m0_http.parallel_runtime, so the host and m0serve read one function and cannot answer it differently m0serve-and-the-runtime-a-fork-cannot-carry standing a runtime whose worker threads survive fork() (D48's condition), or a measured deploy where the exec's cost is what keeps prefork off a MAX-linked mount, which would argue for spawning by default when linked
D52 An upgrade never rewrites a project's files: m0 doctor names the scaffold's own files that differ from what the running m0 writes, reported and never failed, and mojo-gated's fix names every pin that moves with mojo (max-core, when installed). There is no m0 upgrade: a scaffold's files are the application's from the moment they are written (unotes edited three on its first deploy), and telling an edit from an older m0's file would take a record of what that m0 wrote, which no project has the-scaffold-upgrade-path standing an application that asks for its scaffold files to be updated in place, or a template change every application must take (a fix, not a feature); either brings a recorded version and a three-way merge
D53 A login is a module of the layer and a template, not a framework feature: m0_http.login holds what apps/fragment_notes and the soak application wrote the same way — the configuration from PREFIX_* refused when incomplete, the credential check and the session in one call, the 303-or-401 guard, the CSRF check, the token's two spellings, no_store — with what they wrote differently (the default user, the TTL) as arguments, and m0 new --template auth is the views list on it. One user, its secret in the environment; no user table, store or KDF (D24, D25). The scaffold stays a closed set that grows by a value, never a flag per feature, its templates real files that compile unsubstituted (D44's rules, kept). apps/fragment_notes, the worked example the module was lifted from, runs on it, under the wire gate and the sabotage that held its hand-written copy a-login-in-the-layer standing a second user, a session that must end before its expiry, or a sign-in a plain form cannot carry (a passkey, an OAuth redirect): each makes this module the wrong shape, and the first two reopen D24 and D25 with it
D54 The packages the m0 wheel ships hold what the application layer and m0serve use, and no more: a name there is one an application can import, and so reads as a promise. On 2026-09-29 the names nothing in the tree called left with their tests — RequestContext, check_api_key with AppConfig.api_key and M0_API_KEY (SPEC G9 to out of scope: nothing read the key, so nothing served changes), ResponseCache, PatchJournal, negotiate_encoding, negotiate_language, the free wants_html and wants_event_stream, m0-core's FNV-1a and xxHash32 with their C-ABI exports, and run_benchmarks.mojo; stats_ints moved into bench_sqlite.mojo, its one user. Siren/GRAIL on m0 is not a product aim, so its supports (ResponseCache, PatchJournal) left with it although sibling repositories use copies. libm0core stays for m0_shared_fetch_add, which m0pub calls what-the-m0-wheel-promises standing Siren/GRAIL returning as a product aim on m0, which brings its supports back; or an application on the layer that needs one of these names and cannot keep its own copy
D55 There is no HTTP client in the packages. m0_http.Client was removed on 2026-09-29 with its smoke (SPEC M14 to out of scope): no application called it; it spoke no TLS, so it could reach almost nothing outside a private network; and it blocked, so a call from a view that runs on the loop stalls every connection that loop holds — a place to run it was never decided. Outbound calls are designed later as their own phase, not kept alive by a gate on a client nobody used what-the-m0-wheel-promises standing an application on the layer that needs outbound calls; the design that brings a client back then answers TLS, where the call runs (a pool thread, or the loop without blocking it), and connection reuse
D56 libm0core is m0serve's private runtime, not a published artifact: releases stop attaching it (the last to do so was v1.8.0; past releases keep their assets), poe bundle-ffi and its CI step left, and it ships only inside the m0serve wheel's _lib/, where m0pub numbers the events it publishes through its one export, m0_shared_fetch_add, by ctypes. It is still built (poe build-ffi), smoked (SPEC M9) and checked self-contained in the wheel. On 2026-09-30 its 114 release assets across 32 releases had been downloaded 32 times in all and 0 times on each of the seven releases from v1.2.0; no project outside this repository names it, apart from a vendored copy of this repository; and since D54 its one export has had one caller, m0pub what-the-m0-wheel-promises standing a named caller outside this repository asks for a C ABI; publishing then resumes, with a versioned ABI
D57 A stream has no send deadline: a slot the loop holds as SSE or as a WebSocket stays until its client leaves, however slowly the client reads, and the send deadline of SPEC A24 is for responses. A stalled reader's slot costs what an idle reader's does, and a deadline would not stop abuse, since a client can read a byte a second; how many slots a client holds is a connection-count question. Memory is bounded: a slot's queue stops at MAX_PENDING_BYTES (65536) in SSERegistry and WSHub, a frame past it dropped for that slot alone, and beyond it only the kernel's socket buffers are held. A client that vanishes without a FIN is reaped by TCP, because the heartbeat keeps bytes in flight. Measured on Linux with m0serve holds: at a 1 s heartbeat and tcp_retries2 of 5, an SSE slot closed 14.2–14.6 s after its client's packets were dropped (three runs) and a WebSocket's at 14.5 s; at the defaults (15 s, 15) an SSE slot closed 964.6 s after, about 16 minutes (15.0 s to the first unanswered heartbeat, then 949.6 s of retransmission). With the heartbeat off the slot stayed (100 s watched), and so did a live client's with a zero window, whose probes were answered. Since 2026-10-01 a stream's socket also has TCP keepalive on (SPEC I32), which is not a deadline: it reaps a stream with nothing in flight — one with the heartbeat off, or one an application writes through the chunk channel, which the loop does not heartbeat — 61.5 s after its client vanishes at the default and 4.1–4.2 s after at 1 s, where before it stayed; it leaves a heartbeated stream to the retransmission above (still held at 60 s with both at 1 s) and a live client with a zero window in its slot (30 s watched). The cost: a reader that stalls and resumes gets later frames with silent gaps, which a reconnect cannot replay; for a stream of whole states (send_latest, the blobs demo) that is the right degradation a-stream-has-no-deadline standing an application whose stream is a log rather than whole states and whose clients stall: close a stream at its queue cap, so the client reconnects and replays, rather than add a timer; or a deployment that sees live stalled readers holding slots
D58 m0-sqlite registers no functions of its own: it ships the way to register one (Connection.create_function, SPEC O19-O22) and no library of them — no vector distance, hashing, time or network function in SQL. A function is an application's decision: what earns a place inside the query is a kernel over a column large enough that copying it out costs more than computing on it, a vector distance being the measured case, and which kernels an application needs is its own. A library of them would also be a second home for code this repository already has — wyhash and the cryptography live in m0-core, which this package cannot import — and auth, rendering and validators each already have their place in the layer. The vector kernel the measurements used stays in the application that wrote it functions-inside-the-query standing a second application registering the same function, which is the layer's usual condition for lifting a piece: an app that asks, then the lift
D59 A function registered through m0-sqlite is SQLITE_DIRECTONLY, always: the schema never computes with it. SQLite refuses it in a CHECK constraint, a generated column or an expression index at creation, in a stored view at use, in a trigger when it fires and in a column DEFAULT when an INSERT takes it, and top-level SQL and a connection's TEMP views may call it (SPEC O20). So no index, constraint or stored column depends on a function only one binary has, and a database handed over by someone else cannot reach application code through its schema. Rules every writer must obey belong in the schema as built-in SQL. What the flag does not refuse is the CREATE of a view, a trigger or a DEFAULT that names the function, each resolved only when it runs: such a trigger then fails every write to its table, from every program — the registering binary, the sqlite3 shell, a migration — until it is dropped, so the rule for an application is not to name a registered function in one. A library that cannot keep the promise is refused rather than trusted, and there are two such floors: 3.31.0 for every function (the flag is 3.30.0's, but refuses the constraint, the column and the index only from 3.31.0), and 3.50.0 for a function that says it is not deterministic (until then a CHECK constraint naming one is accepted and run by every write; measured on 3.45.1 and 3.46.1). The second floor costs a counter or a clock on Ubuntu 24.04's and Debian 12's system SQLite; the kernel over a column this exists for is deterministic and registers on both functions-inside-the-query standing an application that needs a registered function in an index expression or a generated column: then SQLITE_INNOCUOUS on a registration that asks for it by name, with the note saying which tools can no longer write that file. For the second floor alone: an application that needs a function that is not deterministic on a libsqlite3 older than 3.50.0, at which point the choice is an opt-in by name, with the hole documented (a CHECK constraint naming the function is created and run by every write), or guidance to point M0_LIBSQLITE3 at a newer build
D60 m0-sqlite takes no commit hook: a change clock is Connection.data_version() asked on a connection that does not write, opened read-only beside the writer, which sees this process's commits as it sees any other's (SPEC O25). A hook was to count a connection's own commits. Measured, it over-counts an empty write transaction, an UPDATE of no rows, a TEMP table and an attached file, never fires for a VACUUM, and can be neither removed nor read once its connection is closed with a statement outstanding, so its counter is written by a connection the package can no longer reach. The clock is asked on the connection that renders, before the rendering a-resource-over-a-table standing an application whose database is in memory, where there is no second connection, or one that may hold only one connection; the hook's lifetime rule and a gate for it on both platforms come with it
D61 Views.resource is a registration and nothing else (SPEC N46): seven optional slots over one pattern, the reading ones typed as views that do not write and the others as views that may, update registered for PUT and for the POST a plain form sends. It takes no guard, since D3 stands and a table that said which routes are private would be a second place to forget; it is no controller, views staying free functions; and a view whose kind its slot does not fit, a list that fills a cache, registers through add_write on the same pattern rather than through a slot that would hand it the state mut under a reading name. A nested resource is registered under its full pattern, the parent's capture its first parameter (D4), not under a Mount a-resource-over-a-table standing three applications registering a cached list beside a resource, which is the evidence for a slot that takes a writing list; or storable closures, which reopen the guard with D3
D62 There is no Resource type joining a table of views to a database, and a validator is a hash of the bytes sent. m0-http and m0-sqlite stay siblings: the clock crosses as a number, Cached keeps a rendering against it and conditional answers the 304 (SPEC N47), and the application joins them (N48, apps/table_notes). The tag is over the response's own body, never the clock's value: the clock is the database's, so a tag made from it moves for every table on any commit, and a size-and-time tag answered 304 after an edit that kept the length. A rendering for agents (the prototype's binary Siren collection, its range requests and its type mapping) is not built, Siren on this stack not being a product aim; nor a crud template or a Postgres clock, neither of which an application has asked for. The change feed is built on stamps (D63, D64) a-resource-over-a-table standing a second application written on resource and the clock outside the tree (the template); an application on m0-postgres that keeps a rendering (its clock, from LISTEN)
D63 What changed is remembered by the database, in rows a trigger writes (SPEC O26): one entry per touched row holding its last stamp, so a feed is a query and whoever asks keeps one number. Not by the server, which would keep a copy of every view to compare, do work the size of the view on every commit, and hold state per connection once views are per user; and not by a hook, which sees only its own connection's writes (D60), where a trigger fires for every program that opens the file. The counter is a row incremented in the trigger rather than max(seq) + 1, which cost 4 µs less a commit and needed a rule about what may be pruned; and the entry is written without an upsert or an OR IGNORE, the first unreadable to a SQLite older than 3.24 and the second replaced by the writer's own conflict clause. A stamp can be got past (a REPLACE without the writer's pragma, a rebuilt table: O27) and the clock cannot, so Cached stays keyed on data_version and a stamp never validates a response a-database-that-remembers-what-changed standing SQLite offering a per-row change counter of its own; or a second writer model (a replica applying pages) under which stamps are no longer in commit order
D64 The stamps are a package's, the stream is the layer's, and the feed is still an application's. m0_http.Feed (N51) is the stream three probes wrote by hand over SSERegistry: its event ids are the application's stamps, a reconnect is the application's query and not a replay, fan-out is per subscriber from its own number, and a delta goes whole or waits; DatastarStream keeps its own ids and journal for a producer's frames, which have no stamp. ViewState carries the stream hooks with defaults so a views application can hold either. Not built: a stage loop on the host (poll, read above the cursor, apply, commit outputs and cursor together), with inputs and outputs declared so a stage that stamps its own input is refused; repair of a table that lost its triggers; history, one entry per row being the present; and a PostgreSQL form, where a sequence value is taken before the commit that publishes it. Two rules any of them must keep were found by breaking them, and Feed keeps both: a delta is never cut, born being true of a client only at the head of a snapshot it has all of, and fan-out is per subscriber from its own stamp. A third was found lifting it: a number the application never gave (a client above the head) is not a place to wait at, and is answered like one below the floor. The cursor table (O28) was lifted the same day on the strength of the plan that followed, with one asker, a Python stage outside the tree: it is written down here because the rule is an application that asks, and that one does not meet it a-database-that-remembers-what-changed standing a Mojo stage in the tree keeping a cursor (the loop); an application on m0-postgres that feeds changes (its form, from logical replication or LISTEN)
D65 A WSGI hold's replay is the loop's, bounded in frames and in memory, and a gap is told to the client: m0_http.ReplayJournal keeps the last --replay-frames numbered frames each loop delivered, one journal and one floor for every channel (a mark per channel would grow without bound on a server with a channel per visitor, so a quiet channel's client older than the floor is told it may have missed something and fetches, at the cost of one request), and WSGIHandler._resume catches a reconnecting stream up all or nothing, I30's rule, with one unnumbered event: m0-gap frame where it cannot — a WSGI view has returned by the time the hold is taken, so the server says it rather than a caught_up the view would read. An id ahead of the counter is clamped to the head. Not built: a per-channel floor; persistence or restore on the WSGI side (the application has the record the frames were made from); replay for a WebSocket hold (no browser can put the header on an upgrade) a-hold-that-replays standing a per-channel floor that is bounded — a mark kept only for channels with a subscriber, say — would retire the one-floor clause; an application asking for replay to survive a restart retires the no-restore clause
D66 A view publishes to its own process's streams, and reaching other workers takes a handler of the application's own: ViewState forwards four stream hooks and the tick, not sse_peer_frame, so a ViewsApp cannot deliver a peer's frame and the board template keeps its list in one process (max_workers() -> 1, SPEC N52). apps/datastar_todo is the shape that publishes from views across workers: an AppHandler over Views.dispatch whose make joins the bus and whose sse_peer_frame calls deliver_peer. Not built: sse_peer_frame on ViewState. It would carry frames to tabs on other workers, while a list held in a process's own memory stays where it is what-the-agent-runs-asked-for standing an application on ViewsApp whose views must reach every worker's tabs, with its state shared across them (a database, the shared page): then ViewState gains sse_peer_frame with a default and ViewsApp forwards it
D67 An auto-escaping element type, in the component tier alone (SPEC N54, N55): El is markup by construction and a bare String child is text, while String stays the currency at every boundary — a fragment finishes to a String, reply.html takes one, the builder is unchanged — so D1's helpers stand where they stood and the hole they left (a bare string in el is markup the caller trusts, so a request value passed without text is an injection that reads like any other argument) is closed where an application writes its elements. The expression tier (el, void) is superseded, not removed: the two spellings invert what a bare string means, so no file holds both, and each application leaves el whole, under its own gate — fragment_notes first, 2026-10-24, its smoke unchanged; the templates and the other applications a round each; el goes when the last has left. Measured before deciding: one buffer per element, presized from its parts, renders a 50-item list in 24 us against the expression tier's 28 and the builder's 7.5, and a tree rendered once at the root did not pay (38 us), because the children are evaluated before their parent whatever the shape, so D19 stands and a hot renderer stays in the builder. Not built with it, each an application's ask away: a Component trait (__ft__), a struct bound to a form by reflection, a compile-time HTML literal a-component-tier superseded by D68 the component tier measured as the cost of a served route on the wire, which would send that renderer to the builder; or the last application leaving el, which ends the staged migration and retires N10
D68 The component tier is withdrawn, and D1's helpers stand: an agent writing an application from the scaffold was measured on both tiers before the migration went further, and the tier showed no gain. Five pairs on a brief no template answers (an author on every message, a delete button on each) passed alike, 5/5 on the contract and every UI check; the expression tier took 17 tool calls at the median against the component tier's 21, $0.65 against $0.74; and no application on the expression tier rendered data unescaped, there or in the fifteen archived runs before it — every agent wrapped the request-derived author in text(...). The component arm's extra calls were spent reading the framework's source, four of five after the live docs page showed f.el where the scaffold used f.element: a confound against the tier, but one whose removal cannot reach the bar set before the runs, 20% fewer calls or fewer escape failures than zero. apps/fragment_notes returns to the expression tier; N54 and N55 are out of scope; the templates never moved a-component-tier standing an application or an agent measurement on the expression tier that renders request data unescaped, or one where the component tier takes fewer calls by the margin above
D69 m0 compresses a streaming response that asks, and nothing else: one zstd context per connection for the stream's life and a block flushed at every write, through the system's libzstd opened at run time, for a request that accepts zstd. Buffered responses stay a proxy's job (J8), which the deploy target's does: Fly's proxy compressed every page measured on 2026-10-26 and left text/event-stream alone, buffering what it compresses, so a stream is the one body that reached the client as m0 wrote it. zstd rather than gzip for its CPU, paid per subscriber on the loop thread: on the blobs stream it took about a fifteenth of gzip's (3.1 ms a MB at level 1 against 53 to 65) for nearly its ratio, and its window is not capped at deflate's 32 KB. A shared context pays where a stream repeats its markup inside the window (a Datastar seat measured 23:1 with deflate against 3:1 per event alone) and little where it does not (blobs: 3.4:1 against 2.6:1). In the loop a context costs more than that figure says, since each is cold by the time its subscriber's next frame comes: on blobs at 100 and 400 subscribers on one core, 2.6 to 2.7 times the loop's CPU, about 14 µs a frame per subscriber on a performance core, and 160 KB a stream; and on the deploy's own shared-cpu-1x x86 machine about 120 µs, 12 times a plain subscriber's cost, so 150 compressed viewers took 21 % of a core against 6 % for 400 plain. The blobs deploy leaves it off. Opt in per response, through a field rather than the Content-Encoding header, which an application that compresses its own stream sets compressing-a-stream standing a proxy on the deploy target that compresses text/event-stream with a flush per event and one context per connection; a measured stream where a flush per event loses the gain; or clients that cannot take zstd asking for compression, which brings gzip as a second coding