Repository navigation
receipt: ejlbraem.com composes nothing — runtime-map emission fix + auth-less ui degrade (#1026) - #1228
Open
efizzybot wants to merge 3 commits into
Open
receipt: ejlbraem.com composes nothing — runtime-map emission fix + auth-less ui degrade (#1026)#1228efizzybot wants to merge 3 commits into
efizzybot wants to merge 3 commits into
Conversation
…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
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.
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;pluginManifestUrl/integrityon remote backends, but the emitted interface rejected them: every remote-composing child failed tsc. The parent never noticed (it composes local workspaces).createAuthClientrequires auth variables, so a runtime declaringauth: 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-frameworkbucket, 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):/docs,/login,/chat→ 404<title>Elliot Braem</title>, three link cards with exact hrefs, built-on credit; session/locale degrade silentlyMerge 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 getundefined, and those crashed before this fix. The emission fix is additive optional fields.