diff --git a/src/content/blog/green-tea-26-8-0-beta-1.mdx b/src/content/blog/green-tea-26-8-0-beta-1.mdx index ea8b5b6..3fa4cc7 100644 --- a/src/content/blog/green-tea-26-8-0-beta-1.mdx +++ b/src/content/blog/green-tea-26-8-0-beta-1.mdx @@ -80,6 +80,38 @@ what the application routes. That is worth ten minutes of your attention before the remainder shut, Deno cannot — there the deadline bounds how long `close()` waits, not when connections die. - **The documentation moved to its own repository**, so a docs fix no longer waits on a framework release. +## Mesh got a hard look, and stays alpha + +Mesh — resolving a dependency that physically lives on another node — is the part of green-tea +nothing else has. It is also the part nobody has run in anger, so this release went looking for what +that meant in practice. It found plenty. + +**A dropped link never came back.** There was no reconnection at all: once a teapot went away, that +link was dead for the life of the process, so deploying a teapot forced a restart of every teacup +depending on it and boot order became load-bearing. Links now reconnect with backoff, and a teapot +that returns exporting *less* than the graph was validated against is refused rather than adopted — +serving against a manifest that no longer backs your graph produces a 500 that looks like your code. + +**A request lost its identity at the process boundary.** The observability work above gives every +request an id; the moment it crossed to another node, the far side opened a new one. It now carries +across, and the teapot adopts it, so one request that spans two machines is one trace. + +**Exporting a database connection answered `200` with `{}`.** The wire is JSON, so a value with +methods lost everything but its shape, arrived truthy and empty, and failed as +`db.query is not a function` somewhere else entirely. A teapot now refuses to send one, naming what +sat where. The rule this makes explicit was never written down: **a mesh export carries data, never +behaviour** — export what a handle produces, not the handle. + +Also: the boot now waits out a teapot that is merely slow to start, and the control channel bounds +what an unauthenticated peer can do — it had neither a handshake deadline nor a limit on the size of +a frame it would parse. + +**None of that moves mesh out of alpha, and finding it is the reason.** The label is not a statement +about the code — the protocol is versioned, the secret is compared in constant time, ambiguous routes +fail the boot. It is a statement about how much we know, and what a day of looking added to that was +mostly *here is another thing distributed systems do*. It stays behind `experimental: true` until +somebody runs it with two real services and tells us what broke. + ## Thank you Two people shipped code in this release. diff --git a/src/content/blog/the-trust-release.mdx b/src/content/blog/the-trust-release.mdx index 01a7a4a..243579a 100644 --- a/src/content/blog/the-trust-release.mdx +++ b/src/content/blog/the-trust-release.mdx @@ -80,6 +80,48 @@ made the framework unusable on its own declared floor, and *nothing I could run That job exists because I pinned it to the version I promise rather than the version I use. It is the single most valuable thing in my CI configuration. +## Then I pointed the same question at the part I am proudest of + +Mesh is the thing green-tea has that nothing else does: `@needs('billing')` resolves the same whether +billing runs in this process or on another machine. It is the idea I would put on a poster. It is +also the part nobody has run in anger, which — after a day of finding out what "we never checked +that" means — made it the obvious next place to look. + +I found eight defects in about six hundred lines. Not one had been reported; all of them came from +going and looking. + +The worst is the one that answers a question I had never thought to ask: **what happens if you export +a database connection?** The wire is JSON. A pool has methods and private state and JSON keeps +neither, so it serialized to `{}` — and `{}` is an object. It passed every `if (db)` check, it had no +methods, and it failed as `db.query is not a function` at a call site with no visible relationship to +the export that caused it. Status 200. No warning at either end, at any point. + +That is not a bug in the transport. It is a *rule the framework never stated*: a mesh export carries +data, never behaviour. Export what the handle produces, not the handle. Writing that sentence down is +worth more than the guard that now enforces it, and the fact that it took me until now to write it is +the honest part of this story. + +Second worst: **a dropped link never reconnected.** Not "reconnected badly" — there was no +reconnection code at all. Deploying a teapot meant restarting every teacup that depended on it, which +turns a routine deploy into a coordinated one and makes boot order part of your architecture. The +framework was quietly asking for an operational discipline it never mentioned. + +And the one that stung, because it was fresh: **the request id I had just spent a release adding died +at the process boundary.** Every request got an identity, every event carried it, and the moment the +request crossed to another node the far side opened a new investigation. The one place a distributed +trace is the entire point was the one place it did not reach. + +So mesh stays alpha, and I want to be precise about why, because "still alpha" usually means "not +finished". This is not that. The protocol is versioned and peers refuse each other on mismatch. The +secret is compared in constant time. Frames are shape-validated before they reach anything. +Ambiguous routes fail the boot rather than picking one. That is not careless code. + +**The label is not about the code. It is about how much I know.** Everything above was found by +looking, which means the supply of things to find is set by how long I look, not by how many users +have complained. What a day added to what I know was almost entirely *here is another thing +distributed systems do to you*. It comes out of alpha when somebody runs it with two real services, +redeploys the teapot on a Tuesday, and tells me what broke — not when I run out of ideas. + ## The part I actually want to write Two people contributed code to this release. I want to be specific about why that matters, and it is not politeness.