Rama A del plan de mesh: correlación + req.url + endurecimiento, en un solo cambio de protocolo.
The version does not move. Both new envelope fields are optional, and decode passes extras through, so an older teapot ignores them and keeps answering — degraded, not broken. The rule for when the version does move is now written beside the constant.
Found while in here:
mesh:rpc:error emitted the per-link counter ("0") where every other emitter puts a name, so the two sides of one failure could not be matched.
The teapot had no handshake deadline and no frame size cap — an unauthenticated peer could hold a socket by saying nothing, or make the process JSON.parse up to 100 MiB.
The remote-route envelope was cast from the internal request, putting ip and protocol on the wire as undeclared fields.
A ws:// teapot off loopback now warns: the secret travels verbatim in hello.
431 vitest / 12 Deno / 7 Bun / edge / JSR dry run. 4 of the 8 new tests verified to fail against the old code; the rest are negative cases. The Deno test drives the teapot's frame loop with a raw client, since server-side close codes are where these runtimes already differed once.
Rama A del plan de mesh: correlación + `req.url` + endurecimiento, en un solo cambio de protocolo.
**The version does not move.** Both new envelope fields are optional, and `decode` passes extras through, so an older teapot ignores them and keeps answering — degraded, not broken. The rule for when the version *does* move is now written beside the constant.
Found while in here:
- `mesh:rpc:error` emitted the per-link counter (`"0"`) where every other emitter puts a name, so the two sides of one failure could not be matched.
- The teapot had **no handshake deadline** and **no frame size cap** — an unauthenticated peer could hold a socket by saying nothing, or make the process `JSON.parse` up to 100 MiB.
- The remote-route envelope was cast from the internal request, putting `ip` and `protocol` on the wire as undeclared fields.
- A `ws://` teapot off loopback now warns: the secret travels verbatim in `hello`.
431 vitest / 12 Deno / 7 Bun / edge / JSR dry run. 4 of the 8 new tests verified to fail against the old code; the rest are negative cases. The Deno test drives the teapot's frame loop with a raw client, since server-side close codes are where these runtimes already differed once.
The observability release gave every request an id and lost it at the process
boundary — in the one place a distributed trace is the entire point. The RPC
envelope now carries requestId, traceId and url, and the teapot adopts them
instead of opening its own investigation.
Both fields are optional on the wire, so the protocol version does not move.
That decision needed a rule rather than a judgement call, so the rule is now
written beside the constant: bump when an old peer would misparse or misbehave
silently, not when work happened. Bumping per change would make the number
mean the opposite of what it is for.
Three things found while in here:
- mesh:rpc:error emitted the per-link counter where every other emitter puts a
name, so the two sides of one failure could not be matched up.
- The teapot had no handshake deadline, so an unauthenticated peer could hold
a socket by saying nothing, and no frame size cap, so it could make the
process JSON.parse up to whatever the socket layer allowed — 100 MiB with
the ws defaults, before authenticating.
- The remote-route envelope was cast from the internal request object, putting
ip and protocol on the wire as fields the protocol never declared.
The cleartext warning is a warning and not a refusal on purpose: a private
network already doing mutual TLS is legitimate, and green-tea cannot tell it
apart from an exposed one.
4 of the 8 new tests verified to fail against the old code; the rest are the
negative cases, which should pass both before and after. The Deno test drives
the teapot's frame loop with a raw client, because server-side close codes are
where these runtimes have already differed once.
431 vitest / 12 Deno / 7 Bun / edge / JSR dry run.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Rama A del plan de mesh: correlación +
req.url+ endurecimiento, en un solo cambio de protocolo.The version does not move. Both new envelope fields are optional, and
decodepasses extras through, so an older teapot ignores them and keeps answering — degraded, not broken. The rule for when the version does move is now written beside the constant.Found while in here:
mesh:rpc:erroremitted the per-link counter ("0") where every other emitter puts a name, so the two sides of one failure could not be matched.JSON.parseup to 100 MiB.ipandprotocolon the wire as undeclared fields.ws://teapot off loopback now warns: the secret travels verbatim inhello.431 vitest / 12 Deno / 7 Bun / edge / JSR dry run. 4 of the 8 new tests verified to fail against the old code; the rest are negative cases. The Deno test drives the teapot's frame loop with a raw client, since server-side close codes are where these runtimes already differed once.
chrnx referenced this pull request2026-09-25 14:02:14 +00:00