Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4408710e85 | ||
|
|
f512be9534 | ||
|
|
6b2f3fe97d | ||
|
|
eb6b5e0a1d | ||
|
|
48311b0962 | ||
|
|
7218da8a25 |
No files matched your search
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "green-tea-site",
|
||||
"version": "26.8.1-beta.0",
|
||||
"version": "26.8.2-beta.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "green-tea-site",
|
||||
"version": "26.8.1-beta.0",
|
||||
"version": "26.8.2-beta.0",
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^7.0.5",
|
||||
"@astrojs/rss": "^4.0.19",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "green-tea-site",
|
||||
"type": "module",
|
||||
"version": "26.8.1-beta.0",
|
||||
"version": "26.8.2-beta.0",
|
||||
"engines": {
|
||||
"node": ">=22.12.0"
|
||||
},
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -4,7 +4,7 @@ description: "What it took to make green-tea operable: an observability contract
|
||||
pubDate: 2026-08-19
|
||||
author: "Diego Reséndez"
|
||||
tags: ["green-tea", "story", "observability", "contributors"]
|
||||
draft: true
|
||||
draft: false
|
||||
---
|
||||
|
||||
There is a difference between a framework you can demo and a framework you can run, and for most of this year
|
||||
@@ -15,7 +15,7 @@ requires. That part works and I still think it is the right idea. But when someo
|
||||
serious evaluation asks in week one — *what is it doing in production?* — the honest answer was: I don't know, and
|
||||
neither will you.
|
||||
|
||||
This release is about that gap and the two others hiding behind it.
|
||||
`26.8.0-beta.1` is about that gap and the two others hiding behind it.
|
||||
|
||||
## "No observability layer" was a sentence in my README for months
|
||||
|
||||
@@ -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.
|
||||
@@ -106,9 +148,12 @@ Both of them are still working on things. One of those pull requests is currentl
|
||||
of plumbing that does not exist yet, and telling a contributor "your change is right, the missing part is mine" is a
|
||||
better use of a review than asking them to work around it.
|
||||
|
||||
If you are looking for somewhere to start: unassigned issues are genuinely free, the contributing guide covers the
|
||||
branch model and the sign-off, and a maintainer will write the documentation change if you would rather not. Being
|
||||
early costs something. I would rather say thank you in a way that names what you built than in a badge.
|
||||
If you are looking for somewhere to start, the honest answer today is that both open issues are already spoken
|
||||
for — I would rather tell you that than have you find out after cloning. So open one instead. Whatever annoyed you
|
||||
in the first ten minutes is usually a real bug, and I have yet to receive a report that was not worth having. The
|
||||
contributing guide covers the branch model and the sign-off, and if you would rather not write the documentation
|
||||
change, say so and I will. Being early costs something. I would rather say thank you in a way that names what you
|
||||
built than in a badge.
|
||||
|
||||
## Where this leaves the beta
|
||||
|
||||
@@ -116,4 +161,13 @@ The graph is settled. The plugin API and `createApp`'s options still move. Mesh
|
||||
belongs to the release candidate, and freezing it before this release would have frozen a framework that still could
|
||||
not tell you what it was doing.
|
||||
|
||||
## Try it
|
||||
|
||||
```sh
|
||||
npm install @green-tea/core@beta reflect-metadata
|
||||
```
|
||||
|
||||
Everything above, in the form of a list rather than a story, is on the
|
||||
[`26.8.0-beta.1` release](https://github.com/Expressive-Tea/green-tea/releases/tag/v26.8.0-beta.1).
|
||||
|
||||
That's the tea. 🍵
|
||||
Reference in new issue
Block a user