Skip to content

fix(plugins): fail closed when plugin runtime is unavailable during registration - #130597

Merged
steipete merged 2 commits into
mainfrom
steipete/keen-feynman-b9d4b5
Aug 27, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/keen-feynman-b9d4b5

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #112248

What Problem This Solves

Fixes an issue where operators running any plugin that reads api.runtime during registration would see an unexplained crash on ordinary CLI invocations. On a clean install of stable 2026.7.1-2, openclaw codex --help and any unknown command printed:

[plugins] codex failed during register from ~/.openclaw/npm/projects/openclaw-codex-.../node_modules/@openclaw/codex/dist/index.js: TypeError: Cannot read properties of undefined (reading 'openSyncKeyedStore')

The message named neither the contract that was violated nor the registration mode, so there was nothing for an operator or plugin author to act on. Reported repeatedly (#112248, #118911, #118145, #111870, #107219, #106140), each time investigated as a version-skew problem between core and @openclaw/codex. It is not one — the pairing is irrelevant, and the trigger is the registration mode.

Separately, pnpm build emitted two [INEFFECTIVE_DYNAMIC_IMPORT] warnings for the Control UI sidebar, meaning two intended lazy boundaries were not deferring anything.

Why This Change Was Made

Root help and command-owner routing are manifest-first: a plugin that declares cliCommands supplies its descriptors from metadata and is never executed. A plugin without them falls back to a loader pass that actually runs register(api) — and that pass, along with setup-only registration, built the plugin API with {} as PluginRuntime. Core was handing plugins an object that lied about its own shape, so the first property read produced an opaque TypeError instead of a contract violation.

Both fabrication sites now use one shared fail-closed runtime that names the plugin, the registration mode, and the actionable next step. Symbol reads stay inert so inspection and reflection cannot trip the guard; then deliberately still throws, because awaiting an unavailable runtime must not silently succeed.

A second defect kept the heavy path alive: the lightweight cli-metadata entry was only probed at the package root, but published plugin packages emit it at dist/cli-metadata.js. The probe always missed for npm-installed plugins, so the loader fell back to executing the full entry. It now resolves beside the resolved plugin entry.

For the Control UI, app-sidebar lazily imported two modules that were already in the static graph — viewer-facepile via eager side-effect imports from sidebar-adjacent components, and lobster-pet because pages statically imported palette and lore data that its barrel re-exported. The facepile's false lazy boundary is removed, and the pet element moves behind a real lobster-pet.runtime.ts boundary with data consumers pointed at the leaf modules that own that data.

User Impact

Plugin authors and operators get an actionable error naming the plugin and mode instead of an undefined-property crash, plus a documented statement of which registration modes expose a live api.runtime — the SDK reference previously claimed it was injected into every plugin, which was never true for these two modes. Packaged plugins now genuinely skip their heavy entry during CLI metadata collection, and the Control UI sidebar's lazy boundaries actually defer.

Net production change is −15 lines.

Evidence

Reported failure reproduced live in a clean node:26-bookworm container (npm i -g openclaw@latest, core 2026.7.1-2, materialized plugin 2026.7.1-1). openclaw codex --help and an unknown command both reproduced the exact TypeError; --help, status, plugins list, doctor, and models list were clean — confirming the CLI-metadata pass as the trigger rather than the version pairing.

Regression tests fail on pre-fix code for the intended reason. Reverting only the production files and keeping the new tests produces 4 failures, including the literal TypeError: Cannot read properties of undefined (reading 'openSyncKeyedStore') from setup-only registration, and a packaged-layout test showing the heavy entry marker was written. With the fix, 58 tests pass.

Build proves both warnings are gone. pnpm build completes with zero [INEFFECTIVE_DYNAMIC_IMPORT] warnings; the baseline had two. A built-browser probe confirmed facepile: true, pet: false before idle loading, with pet registration following afterwards.

Gates: node scripts/check-changed.mjs passed. pnpm build passed. oxfmt passed on all touched paths. Relevant UI tests: 503 passed, plus 5 Chromium E2E. Codex autoreview: clean, no accepted findings.

Known unrelated failure: src/plugins/npm-install-security-scan.release.test.ts fails on this branch and fails identically on clean origin/main (verified at 3cb0dd4851e). It flags a dangerous-exec pattern in the published @openclaw/openshell-sandbox package and is untouched by this change; its allowlist needs separate maintainer judgment.

.artifacts/ report and container logs are local only and not committed.

Core fabricated an empty object as `PluginRuntime` for the `cli-metadata`
and `setup-only` registration passes, so any plugin touching `api.runtime`
during `register()` died with an opaque
`TypeError: Cannot read properties of undefined (reading 'openSyncKeyedStore')`
that named neither the contract nor the mode.

Replace those fabrications with one shared fail-closed runtime that throws a
named, actionable error identifying the plugin and registration mode. Symbol
reads stay inert so inspection and reflection cannot trigger the guard.

Also resolve the lightweight `cli-metadata` entry beside the resolved plugin
entry, not only at the package root. Published plugin packages emit it at
`dist/cli-metadata.js`, so the probe always missed and the loader fell back to
executing the full heavy entry for CLI metadata collection.

Documents which registration modes expose a live `api.runtime`; the SDK
reference previously claimed it was injected into every plugin.
Remove the redundant viewer-facepile dynamic import: sidebar consumers
already register that element through the static graph.

Import pet data and sprite helpers from their owning leaf modules, delete
the registration module's re-export barrel, and make the element itself
the lobster-pet.runtime.ts lazy boundary. Keep shared sprite styles with
the look renderer so standalone pages do not need element registration.

Regenerate the measured boot inventory with the canonical browser probe.
Use Lit's typed lifecycle map to remove the obsolete assertion baseline
entry and keep the now-private facepile variant type local.

The full build has no INEFFECTIVE_DYNAMIC_IMPORT warnings. Relevant UI
coverage passes (503 tests plus 5 Chromium E2E tests); the unchanged plugin
runtime regression suites pass all 58 tests. The broad plugin suite still
reports schema-version, doctor-closure, hook-process, and catalog failures.
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui plugin: file-transfer size: M maintainer Maintainer-authored PR labels Aug 27, 2026
@steipete
steipete marked this pull request as ready for review August 27, 2026 02:17
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 10:24 PM ET / August 27, 2026, 02:24 UTC.

ClawSweeper review

What this changes

The PR makes unavailable plugin runtimes fail with a named error during CLI-metadata and setup-only registration, finds packaged metadata beside plugin entries, and restores real Control UI sidebar lazy-loading boundaries.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this maintainer PR open: current main still passes an empty runtime into metadata-only registration, while this branch replaces that opaque failure with a documented, actionable contract. No discrete correctness defect was found, but the intentional fail-closed SDK behavior needs compatibility validation and exact-head CI before landing.

Priority: P2
Reviewed head: f8d0db28d50885a4fccb38cfecc2d0449de8b5cf
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has a coherent owner-boundary repair and focused regression coverage, with compatibility validation and exact-head CI remaining before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor real-behavior-proof gate; its body nevertheless records a clean-install reproduction and build/browser checks.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor real-behavior-proof gate; its body nevertheless records a clean-install reproduction and build/browser checks.
Evidence reviewed 8 items Current-main defect: Current main still constructs the CLI-metadata API with an empty PluginRuntime, so a plugin dereference becomes an unhelpful undefined-property error.
Owner-boundary repair: The branch centralizes the unavailable runtime proxy and passes it only to cli-metadata and setup-only API construction, preserving live runtime modes.
CLI caller and packaged sidecar path: Root descriptor discovery invokes this loader only for legacy external plugins without manifest CLI commands; the branch probes both the plugin root and resolved entry directory before opening the selected file inside the plugin root.
Findings None None.
Security None None.

Live Verification

Command: pnpm ui:build

Result: FAIL (failed) — step 1 run pnpm ui:build: previous terminal command was still running after 30 seconds: "pnpm ui:build"

../dist/control-ui/assets/yacas-4UW7E4Kt.js                                           2.28 kB │ gzip:   1.19 kB │ map:     7.16 kB
../dist/control-ui/assets/workboard-board-CWR2sHUg.js                                 2.37 kB │ gzip:   1.11 kB │ map:     5.26 kB
../dist/control-ui/assets/pascal-CemkuYI0.js                                          2.39 kB │ gzip:   1.27 kB │ map:     5.65 kB
../dist/control-ui/assets/memory-schema-DhPmFIda.js                                   2.40 kB │ gzip:   1.24 kB │ map:    12.31 kB
../dist/control-ui/assets/simple-mode-fO7nmy5X.js                                     2.41 kB │ gzip:   1.19 kB │ map:     7.78 kB
../dist/control-ui/assets/gateway-scope-upgrade.runtime-BjTEUhM8.js                   2.42 kB │ gzip:   0.97 kB │ map:     8.06 kB
../dist/control-ui/assets/apl-CDdrCZVl.js                                             2.43 kB │ gzip:   1.34 kB │ map:     6.44 kB
../dist/control-ui/assets/commonlisp-BkuaFBi8.js                                      2.45 kB │ gzip:   1.20 kB │ map:     6.69 kB
../dist/control-ui/assets/tcl-Ba8B3QEu.js                                             2.48 kB │ gzip:   1.32 kB │ map:     6.50 kB
../dist/control-ui/assets/shell-B1oByMWF.js                                           2.56 kB │ gzip:   1.30 kB │ map:     7.94 kB
../dist/control-ui/assets/webidl-C2iEcUXH.js                                          2.62 kB │ gzip:   1.37 kB │ map:     7.72 kB
../dist/control-ui/assets/puppet-vmUf8xpM.js                                          2.65 kB │ gzip:   1.29 kB │ map:     8.99 kB
../dist/control-ui/assets/pig-Bt8Qvkze.js                                             2.65 kB │ gzip:   1.49 kB │ map:     6.60 kB
../dist/control-ui/assets/forth-CEw5LND1.js                                           2.67 kB │ gzip:   1.42 kB │ map:     6.18 kB
../dist/control-ui/assets/dist-CglKcEOs.js                                            2.78 kB │ gzip:   1.60 kB │ map:     5.05 kB
../dist/control-ui/assets/input-dialog-B-vHiI-T.js                                    2.82 kB │ gzip:   1.17 kB │ map:     8.64 kB
../dist/control-ui/assets/velocity-F0QlomFP.js                                        2.84 kB │ gzip:   1.20 kB │ map:     8.42 kB
../dist/control-ui/assets/workboard-mini-CXXvlYvN.js                                  2.88 kB │ gzip:   1.14 kB │ map:     5.60 kB
../dist/control-ui/assets/tiddlywiki-DLHM8fNz.js                                      2.92 kB │ gzip:   1.18 kB │ map:    11.09 kB
../dist/control-ui/assets/modelica--0xTveIu.js                                        2.94 kB │ gzip:   1.38 kB │ map:     8.06 kB
../dist/control-ui/assets/oz-DTY2GRqL.js                                              3.03 kB │ gzip:   1.38 kB │ map:     9.47 kB
../dist/control-ui/assets/r-CadXD0eR.js                                               3.06 kB │ gzip:   1.45 kB │ map:     9.92 kB
../dist/control-ui/assets/workboard-card-BbNtHZSJ.js                                  3.12 kB │ gzip:   1.16 kB │ map:     5.94 kB
../dist/control-ui/assets/gateway-page-controller-DcNgzNkA.js                         3.16 kB │ gzip:   1.04 kB │ map:    10.09 kB
../dist/control-ui/assets/session-progress-Da-fv3uc.js                                3.16 kB │ gzip:   1.23 kB │ map:     6.87 kB
../dist/control-ui/assets/stex-CveJubUk.js                                            3.22 kB │ gzip:   1.26 kB │ map:    11.27 kB
../dist/control-ui/assets/lua-yYK_8aRA.js                                             3.27 kB │ gzip:   1.51 kB │ map:     7.76 kB
../dist/control-ui/assets/cypher-CIhKfSWw.js                                          3.33 kB │ gzip:   1.60 kB │ map:     8.52 kB
../dist/control-ui/assets/tiki-CryU3a6e.js                                            3.35 kB │ gzip:   1.35 kB │ map:    12.41 kB
../dist/control-ui/assets/sparql-ChxjJbEr.js                                          3.47 kB │ gzip:   1.70 kB │ map:     9.50 kB
../dist/control-ui/assets/vhdl-DlYBPd1w.js    
… output truncated …

Assertions:

  • FAIL expect_output: built in

How this fits together

CLI command discovery reads plugin manifests first and loads a lightweight metadata entry only for legacy external plugins; registration then supplies command descriptors to the CLI. Separately, the Control UI sidebar schedules decorative component loading after startup so its initial browser bundle stays smaller.

flowchart LR
  A[CLI help or unknown command] --> B[Plugin command discovery]
  B --> C[Light metadata entry]
  C --> D[Unavailable runtime guard]
  D --> E[Descriptors or actionable diagnostic]
  F[Control UI sidebar] --> G[Idle pet module import]
  G --> H[Registered sidebar pet element]
Loading

Decision needed

Question Recommendation
Should metadata-only and setup-only registration adopt the explicit fail-closed runtime contract for existing third-party plugins that may currently probe missing runtime properties? Adopt the explicit contract: Keep the proxy and documented unavailable modes after packaged-plugin compatibility validation confirms normal metadata discovery remains intact.

Why: This is a public plugin-SDK behavior change: source and docs support the design, but only maintainers can accept its upgrade effect on installed plugins.

Before merge

  • Resolve merge risk (P1) - The proxy changes metadata/setup-only capability probing from an absent runtime field to an explicit error; installed third-party plugins using optional runtime probes could require an upgrade even though the documented contract is clearer.
  • Complete next step (P2) - No repair lane is needed: the patch has no verified code defect, but the maintainer label and SDK compatibility choice require human merge handling.
Agent review details

Security

None.

PR surface

Source -16, Tests +111, Docs +2, Other -1. Total +96 across 26 files.

View PR surface stats
Area Files Added Removed Net
Source 17 66 82 -16
Tests 6 130 19 +111
Docs 2 11 9 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 3 -1
Total 26 209 113 +96

Review metrics

Metric Value Why it matters
Production versus test delta production −15, tests +111, docs +2; generated boot inventory adjusted The repair adds focused boundary coverage while reducing production surface overall.

Stored data model

Persistent data-model change detected: migration/backfill/repair: ui/config/control-ui-boot-modules.json, serialized state: src/plugins/loader.cli-metadata.test.ts, unknown-data-model-change: src/plugins/loader.cli-metadata.test.ts, vector/embedding metadata: docs/plugins/sdk-runtime.md, vector/embedding metadata: src/plugins/api-builder.ts, vector/embedding metadata: src/plugins/captured-registration.test.ts, and 3 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove metadata-mode compatibility (recommended)
    Before merge, exercise the exact head with bundled and packaged external plugin metadata entries to show declarative commands still load while real runtime access emits the named diagnostic.
  2. Accept the explicit upgrade behavior
    Land the documented fail-closed contract if maintainers intentionally want older metadata/setup plugins to update rather than feature-detect unavailable runtime capabilities.

Technical review

Best possible solution:

Retain one documented unavailable-runtime contract for the two control-plane modes, prefer packaged metadata sidecars over heavy entries, and land only after compatibility and exact-head CI evidence confirms existing plugins still discover correctly.

Do we have a high-confidence way to reproduce the issue?

Yes in source: current main supplies an empty CLI-metadata runtime while the Codex plugin reads runtime configuration and state during its full registration path. This review did not execute the clean-install reproduction because the checkout is read-only and package-manager startup failed before any repository action.

Is this the best way to solve the issue?

Yes, conditionally: the repair fixes the producer-owned fabricated runtime, prefers the existing lightweight metadata seam, and aligns docs and tests; maintainers must still accept the resulting SDK compatibility contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 7602af0667bb.

Labels

Label changes:

  • add P2: This is a bounded plugin-registration and Control UI loading repair; the reported failure affects CLI discovery rather than core runtime availability.
  • add merge-risk: 🚨 compatibility: Replacing an empty runtime object with a throwing proxy changes the observable behavior of existing metadata/setup-only plugin registration.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor real-behavior-proof gate; its body nevertheless records a clean-install reproduction and build/browser checks.

Label justifications:

  • P2: This is a bounded plugin-registration and Control UI loading repair; the reported failure affects CLI discovery rather than core runtime availability.
  • merge-risk: 🚨 compatibility: Replacing an empty runtime object with a throwing proxy changes the observable behavior of existing metadata/setup-only plugin registration.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor real-behavior-proof gate; its body nevertheless records a clean-install reproduction and build/browser checks.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame attributes the empty runtime construction to Peter Steinberger, and this branch's plugin and UI repairs are attributed to the same account. (role: recent area contributor and proposed repair author; confidence: high; commits: 565fd935449e, f8d0db28d508; files: src/plugins/loader-cli-registry.ts, src/plugins/setup-registry.ts, src/plugins/api-builder.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete exact-head CI and packaged-plugin metadata compatibility validation.
  • Record the maintainer decision on the intentional fail-closed plugin-SDK behavior.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer decision recorded, addressing both rank-up moves before merge.

Decision: adopt the explicit fail-closed contract (matching the review's own recommendation).

On the P1 compatibility question — a third-party plugin that probed api.runtime.state?.openSyncKeyedStore during cli-metadata or setup-only registration previously got undefined and silently skipped, and will now get a thrown, named error. That is the intended change, for three reasons:

  1. The previous behavior was never a documented contract. docs/plugins/sdk-runtime.md claimed api.runtime is "injected into every plugin during registration", which was false for exactly these two modes. Any plugin relying on the empty-object shape was working around an undocumented defect, not an API.
  2. The documented way to detect these modes already exists and is unaffected: api.registrationMode. Plugins gating on api.registrationMode === "full" — including everything built with defineChannelPluginEntry, which splits on mode automatically — see no change.
  3. An action that silently produces nothing is the failure class this repo weights most heavily. Swapping a silent skip for a message that names the plugin, the mode, and the next step is the product-correct direction, and the SDK docs now state the contract explicitly in the same change.

Symbol reads on the unavailable runtime deliberately return undefined, so util.inspect, Symbol.toStringTag, and similar reflection cannot trip the guard from an unrelated call site. then still throws, so awaiting an unavailable runtime cannot silently succeed.

Exact-head CI: green on f8d0db28d50885a4fccb38cfecc2d0449de8b5cf (run 33032797948, 0 pending / 0 failed).

Packaged-plugin metadata compatibility: covered by a regression test that builds a packaged layout (dist/index.js plus dist/cli-metadata.js), asserts the lightweight entry supplies the CLI descriptor, and asserts via a marker file that the heavy entry is never evaluated. Pre-fix, that marker is written — which is the defect. Verified against the real published artifact too: @openclaw/[email protected] ships package/dist/cli-metadata.js and no root-level cli-metadata.*, so the old root-only probe missed it for every npm-installed plugin.

One note on the review's Live Verification FAIL: that is the harness's own 30-second wait expiring on pnpm ui:build, not a build failure — the captured output shows the build emitting assets normally. Locally pnpm build completes green with zero [INEFFECTIVE_DYNAMIC_IMPORT] warnings, where the pre-change baseline had two.

@steipete
steipete merged commit bbd66c4 into main Aug 27, 2026
285 checks passed
@steipete
steipete deleted the steipete/keen-feynman-b9d4b5 branch August 27, 2026 02:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…egistration (openclaw#130597)

* fix(plugins): fail closed when plugin runtime is unavailable

Core fabricated an empty object as `PluginRuntime` for the `cli-metadata`
and `setup-only` registration passes, so any plugin touching `api.runtime`
during `register()` died with an opaque
`TypeError: Cannot read properties of undefined (reading 'openSyncKeyedStore')`
that named neither the contract nor the mode.

Replace those fabrications with one shared fail-closed runtime that throws a
named, actionable error identifying the plugin and registration mode. Symbol
reads stay inert so inspection and reflection cannot trigger the guard.

Also resolve the lightweight `cli-metadata` entry beside the resolved plugin
entry, not only at the package root. Published plugin packages emit it at
`dist/cli-metadata.js`, so the probe always missed and the loader fell back to
executing the full heavy entry for CLI metadata collection.

Documents which registration modes expose a live `api.runtime`; the SDK
reference previously claimed it was injected into every plugin.

* fix(ui): restore sidebar lazy import boundaries

Remove the redundant viewer-facepile dynamic import: sidebar consumers
already register that element through the static graph.

Import pet data and sprite helpers from their owning leaf modules, delete
the registration module's re-export barrel, and make the element itself
the lobster-pet.runtime.ts lazy boundary. Keep shared sprite styles with
the look renderer so standalone pages do not need element registration.

Regenerate the measured boot inventory with the canonical browser probe.
Use Lit's typed lifecycle map to remove the obsolete assertion baseline
entry and keep the now-private facepile variant type local.

The full build has no INEFFECTIVE_DYNAMIC_IMPORT warnings. Relevant UI
coverage passes (503 tests plus 5 Chromium E2E tests); the unchanged plugin
runtime regression suites pass all 58 tests. The broad plugin suite still
reports schema-version, doctor-closure, hook-process, and catalog failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: file-transfer rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant