Repository navigation
feat(mesh): serve tokens of an absent teapot degraded instead of failing the boot - #113
Merged
Merged
Conversation
…ing the boot A teapot absent at boot sent no manifest, so a local @needs on one of its tokens failed the boot. Now, when a needed token has no producer and at least one teapot is absent, the teacup registers a request-scope step for it that answers 503 with retry-after, warns once (token, absent teapots, did-you-mean) and emits mesh:degraded. A late teapot that exports the token fills it in (mesh:restored); once every late teapot connected without it, one error says so. With every teapot connected an unknown token still fails the boot. Request scope only: the mesh contributes virtual steps, never providers, because a remote value can fail at registration, after it, or mid-request. New events mesh:degraded and mesh:restored (mesh surface, D19). Closes #96 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This was referenced Nov 30, 2026
chrnx-dev
changed the base branch from
feat/mesh-parallel-boot-connect
to
develop
November 30, 2026 17:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #96 (supersedes #56). Stacked on #112: base is
feat/mesh-parallel-boot-connect; GitHub retargets it todeveloponce #112 merges.Behaviour
@needstoken with no producer, while at least one teapot is absent at boot, becomes a degraded request-scope step:503+retry-after(from the late-retry backoff; none withreconnect: false, since nothing will retry). The boot goes on.mesh:degradedevent.mesh:restored. Its other steps are still not added (graph fixed at boot, D15).errorline says so (almost always a typo).retry-afterthrough the link; unchanged.Owner decision (2026-11-30): request scope only. The mesh contributes virtual steps, never providers: a remote value can fail at registration, after it, or mid-request.
API
LifecycleEventgainsmesh:degradedandmesh:restored(api/index.api.mdregenerated). Mesh events are within D19.MeshConfig.bootTimeoutMsdocs and the README mesh section are updated; they used to say the boot fails.Tests
test/mesh/boot-retry.test.ts): the four tests that asserted a boot failure now assert the degraded 503. New ones: typo still fails when every teapot connected (with hint), late teapot restores the token (events in order), orphan error said once, noretry-afterwithreconnect: false.retry-after, then 200 after the teapot connects late.Verified locally
lint (0 errors), format, complexity, typecheck, coverage, build, api:check, test:deno (71), test:bun (61), test:edge.
Benchmark: no request hot-path change (a degraded step is one closure check, and only on apps with an absent teapot), so no throughput bench was run.
Observability (owner, 2026-11-30): no per-request
mesh:*event. While a token is degraded every request that needs it fails at once with 503, and each one is visible inrequest:endwith that status; the state changes (mesh:degraded/mesh:restored) are the mesh events.