docs(mesh): steps and routes are what a teapot exports
The CHANGELOG gains an [Unreleased] section — no version heading, no date — covering the three mesh changes on this branch and why each one follows from the first: a remote export is a step now, so it holds nothing between requests, so an absent teapot costs a 503 rather than a boot. The README says it in the Honest scope section, where the mesh caveats already live: what can be exported, what happens if you export a provider anyway, and why a missing token still fails the boot when an unreachable teapot no longer does. Two stale bits go with it. The JSDoc over assertNeedsSatisfiable still quoted the old unconditional message; the Deno and Bun fixtures still said a teapot exports its scopes. And the degrade plan's D6 planned to reuse a seam this branch deleted — a dated note says so, and why a degraded step never needed it. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
7 files changed
+69
-5
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// Real Bun integration test for mesh: a teapot exporting its scopes and a teacup consuming
|
||||
// Real Bun integration test for mesh: a teapot exporting its steps and a teacup consuming
|
||||
// them, both under the actual Bun runtime, driven entirely through serveBun.
|
||||
//
|
||||
// Bun's ws lifecycle differs from Deno's — its socket events land on a server-level handler
|
||||
|
||||
@@ -112,7 +112,7 @@ Deno.test('interop: a Deno teacup consumes a Node teapot', async () => {
|
||||
try {
|
||||
const res = await teacup.fetch(new Request('http://x/api/local/who', { headers: { 'x-token': 'abc' } }));
|
||||
assertEquals(res.status, 200);
|
||||
// the config came from the Node process: proof the scope crossed the runtime boundary
|
||||
// the config came from the Node process: proof the remote step crossed the runtime boundary
|
||||
assertEquals(await res.json(), {
|
||||
config: { region: 'mx', runtime: 'node' },
|
||||
auth: { token: 'abc' },
|
||||
@@ -140,7 +140,7 @@ Deno.test('interop: a Node teacup consumes a Deno teapot', async () => {
|
||||
try {
|
||||
const result = await firstJsonLine(node);
|
||||
assertEquals(result.ok, true);
|
||||
// the Node peer resolved a scope served by Deno's app.upgrade control channel
|
||||
// the Node peer ran a step served by Deno's app.upgrade control channel
|
||||
assertEquals(result.body.config, { region: 'mx', runtime: 'deno' });
|
||||
assertEquals(result.body.auth, { token: 'abc' });
|
||||
} finally {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Real Deno integration test for mesh: a teapot exporting its scopes and a teacup consuming
|
||||
// Real Deno integration test for mesh: a teapot exporting its steps and a teacup consuming
|
||||
// them, both under the actual Deno runtime, driven entirely through serveDeno.
|
||||
//
|
||||
// This is the test that makes "mesh runs off Node" a fact rather than an intention. It covers,
|
||||
|
||||
Reference in new issue
Block a user