Skip to content

receipt: ejlbraem.com composes nothing — runtime-map emission fix + auth-less ui degrade (#1026) - #1228

Open
efizzybot wants to merge 3 commits into
t3/composition-and-docs-sprintfrom
feat/1026-ejlbraem-receipt-pr
Open

efizzybot wants to merge 3 commits into
t3/composition-and-docs-sprintfrom
feat/1026-ejlbraem-receipt-pr

Conversation

@efizzybot

Copy link
Copy Markdown
Collaborator

Summary

The end-to-end receipt for the composition policy (#1026, ADR 0057): the spawn loop's first consumer, authored to compose nothing. Stacked on #1225 (the policy itself).

Two framework fixes fell out of the first ui-only render ever attempted:

 packages/everything-dev/src/services/codegen/runtime-map.ts
   interface RuntimeBackendEntry {
     digest?: string;
+    pluginManifestUrl?: string;
     pluginVersion?: string;
     contractSha256?: string;
+    integrity?: string;
   }

 packages/everything-dev/src/ui/auth.ts
-  authClientFromContext(context: AuthClientContextInput): AuthClient {
+  authClientFromContext(context: AuthClientContextInput): AuthClient | undefined {
+    if (!hasAuthVariables(...)) return undefined;
  • emission skew — the generator wrote pluginManifestUrl/integrity on remote backends, but the emitted interface rejected them: every remote-composing child failed tsc. The parent never noticed (it composes local workspaces).
  • auth-less crash — router creation built the auth client unconditionally; createAuthClient requires auth variables, so a runtime declaring auth: null (the ADR 0057 omit this sprint introduced) crashed before rendering anything, server and client.

Plus the receipt documentation: friction rows 14–21 appended to the 068 ledger (the inter-release spawn window, the --link-framework bucket, the remote-host ambient-discovery blocker), receipt noted in plan 080.

Evidence

The receipt, run live (spawned local-only per #1055 — reproducible via the documented 068 command; auth: null + plugins: {} in bos.app.ts):

  • runtime map: 1 source (core ui), 0 plugins, no auth backend; boot audit declines all nine rc.46-recorded remotes by name ("informational: not composed")
  • boot log: zero secret warnings, zero plugin loads; /docs, /login, /chat → 404
  • SSR render (child's own router module): <title>Elliot Braem</title>, three link cards with exact hrefs, built-on credit; session/locale degrade silently
  • gates on this branch: typecheck green, lint green, 2351 unit tests passed (225 files); targeted runtime-map + ui auth/router/hydrate suites 58/58

Merge Danger

Door: two-way

Blast radius: the auth-client return type widens to AuthClient | undefined — composed children are unchanged (their injected config carries the variables, the early-return path is untouched); only auth-less runtimes get undefined, and those crashed before this fix. The emission fix is additive optional fields.

…mits the fields the generator writes

Remote backends carry pluginManifestUrl and integrity; the emitted
RuntimeBackendEntry declared neither, so tsc rejected every spawned child's
own runtime-map.gen.ts the moment it composed any remote backend (host/api
from the extends chain) — the parent never noticed because it composes local
workspaces, whose entries carry no such fields. Found by the ejlbraem.com
consumer receipt (#1026), the first remote-composing typecheck.
…es no auth

Router creation (client, server, hydrate) built the auth client
unconditionally, and createAuthClient requires runtimeConfig.auth.variables —
so a runtime that omits auth (ADR 0057's explicit auth: null) crashed before
rendering anything, on the server (Missing auth runtime configuration during
SSR) and in the hydrate path on the client. authClientFromContext now returns
undefined when auth variables are absent; composed children are unchanged
because their injected config carries the variables. No child ever hit this:
every child to date inherited auth at app level. Found by the ejlbraem.com
consumer receipt (#1026) — the first ui-only render.
…ng (ADR 0057)

The end-to-end receipt for the composition policy, exercised on the spawn
loop's first consumer (spawned local-only per #1055; its authored surface is
reproducible via the documented 068 command — bos init --no-interactive
--source . --directory apps/ejlbraem.com --domain ejlbraem.com --account
ejlbraem.near --overrides ui --level simple, then auth: null + plugins: {} in
bos.app.ts). The runtime map holds a single ui source, zero plugins, and no
auth backend; the boot audit declines all nine rc.46-recorded remotes by name;
the link tree renders from the child's own SSR router module (title, three
link cards, built-on credit; /docs, /login, /chat 404).

Two framework fixes ride ahead of this commit: the runtime map's emitted
backend interface now admits the fields the generator writes (integrity,
pluginManifestUrl — every remote-composing child failed tsc before), and the
auth client degrades to undefined when the runtime composes no auth (the
first ui-only render crashed building it unconditionally).

Friction rows 14-21 appended to plan 068; receipt noted in plan 080.

This branch has not been deployed

No deployments
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