[refactor] WASM frontend (hero_os shell + hero_archipelagos islands) config should flow through a single typed source #224
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Per the META principle (
hero_proc_metaskill): all Hero processes read config from a single centralized source, not scattered ad-hoc reads. WASM is a different surface from native Rust binaries because there's no OS env in the browser, but the principle still applies — today config arrives via a mix ofoption_env!(compile-time baked), iframe boot params, ad-hoc fetch URLs, and postMessage glue, with no single typed surface.Sibling of:
Umbrella tracker: see #225.
Affected components
hero_osWASM shell (the Dioxus dock + island host)hero_archipelagosnative Dioxus islands (photos, videos, calendar, …)developmentper session 67 notes)Right shape
Each WASM session/iframe/island calls a single typed
/configendpoint on its host service's UI socket (or a known shell endpoint for cross-cutting config). The endpoint:No
option_env!for runtime config (only for build identity like commit SHA / build timestamp). No ad-hoc fetch of separate config URLs per island. No env-leakage via iframe boot params for secrets.Audit shape
grep -rn 'option_env!\|env!' lhumina_code/hero_os/ lhumina_code/hero_archipelagos/— classify each: build identity (keep) vs runtime config (migrate).fetch(…)calls for config-shaped data in WASM — should consolidate into one call per session./configschema per host service (hero_os shell, each archipelago).Sequencing
After home#223 (Rust binary META work) completes. UI services need to be reading from hero_proc secrets before they can serve typed config to WASM. Sequencing: home#212 binary rollout → home#222 nu scripts → home#223 Rust binaries → home#NNN-this-issue WASM.
Acceptance criteria
/configendpoint per host service; WASM consumes once at session start.option_env!for runtime config (only build identity).References
~/.claude/skills/hero_proc_meta/SKILL.md— canonical META env-from-secrets rulehero_osshell architecture —lhumina_code/hero_os/hero_archipelagosislands —lhumina_code/hero_archipelagos/developmentAPI drift (use_focus_poll + IslandContext) — separate refactor that may interact with this workmik-tf referenced this issue from lhumina_code/hero_demo2026-05-06 21:42:24 +00:00