Skip to content

feat(host): a plugin ui slot's compose failure degrades that slot only (#1259 done-when 3) - #1263

Merged
efizzybot merged 2 commits into
mainfrom
fix/ssr-plugin-slot-degrade
Dec 2, 2026
Merged

efizzybot merged 2 commits into
mainfrom
fix/ssr-plugin-slot-degrade

Conversation

@efizzybot

Copy link
Copy Markdown
Collaborator

Stacked on #1262 (its base). Delivers #1259 done-when 3.

Summary

One local plugin ui source failing at any compose stage failed the WHOLE composition, and ssr-render turned any compose failure into a 500 on every route — including core routes with no plugin code. The per-source isolation of ADR 0024 §5 existed only for remote plugin sources; local sources were treated as authored-in-this-runtime configuration bugs and failed loud.

 composeUi
   core source: manifest → container → route config — any failure stays LOUD
   plugin sources (local AND remote):
-    manifest failure: local → fail the plane | remote → drop with warn
-    container down, no last-good: fail the plane
-    route config failure: local → fail the plane | remote → drop with warn
+    any of the three: drop THAT source with a loud warning —
+    its routes leave the composed tree; core + siblings keep rendering
+  healthy plugin set resolves BEFORE the session pins entries
  • The train: pnpm run build wipes the dev SSR container — passthrough + host-side last-good recovery #940 last-good floor is unchanged: a last-good generation still serves the whole plane while a container rebuilds.
  • The digest, the client payload, and the variant cache key all run over the final healthy set, so parity holds by construction.
  • A dropped slot's pages 404 under SSR; everything else renders. When the slot heals, the next compose includes it (dev rebuilds re-compose via the variant cache key).

Evidence

host/tests/integration/ui-compose.test.ts — the two loud-for-local tests flip to drop semantics, plus new tests: local plugin with no usable manifest composes the core; local identity mismatch drops; local SSR container that never becomes ready drops; remote route-config failure drops. Recovery suite (ui-compose-recovery.test.ts) unchanged and green — core-only failure still fails loud, plugin failure with last-good still recovers the plane. 430/430 host suite; typecheck + lint green.

Merge Danger

Door: two-way — revert restores fail-the-plane for local sources.

Blast Radius: an authored-in-runtime plugin ui breakage becomes a loud per-slot degrade instead of a whole-plane 500. Deliberate policy change for local sources (they now match remote sources); ADR 0063 amended to scope the loud-500 to the core. Host-private code — no changeset needed.

@efizzybot
efizzybot force-pushed the fix/ssr-plugin-slot-degrade branch from cbd8464 to 7dd6873 Compare December 2, 2026 22:02
@efizzybot
efizzybot force-pushed the fix/dev-slot-boot-recovery branch 2 times, most recently from c50b8e6 to 90bac54 Compare December 2, 2026 23:22
@efizzybot
efizzybot changed the base branch from fix/dev-slot-boot-recovery to main December 2, 2026 23:22
@efizzybot
efizzybot force-pushed the fix/ssr-plugin-slot-degrade branch from 7dd6873 to edc33be Compare December 2, 2026 23:23
#1259 done-when 3)

One local plugin ui source failing — manifest, SSR entry, container, or
route config — failed the whole composition, and ssr-render turned any
compose failure into a 500 on every route. The per-source isolation ADR
0024 §5 already gave remote plugin sources (warn-and-drop) now covers local
plugin sources too: each plugin entry resolves, waits, and loads its route
config per source, and a failure drops that plugin's routes with a loud
warning while core and sibling plugins keep rendering. The core source
failing stays loud (the #940 last-good floor is unchanged). The healthy
plugin set is resolved before the compose session opens, so dropped sources
never pin entries. ADR 0063 amendment scopes the loud-500 to the core.
The per-source resolution completes in scheduling order under unbounded
concurrency; the resulting order fed the variant cache key, so identical
content could produce different keys across composes. Sort by source key
before the session opens — the healthy set, the digest, and the cache key
are stable again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants