Skip to content

refactor(media): finish orphan facade removal - #125121

Merged
steipete merged 1 commit into
mainfrom
steipete/w3-media-facade-cleanup
Aug 17, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/w3-media-facade-cleanup

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #122874

What Problem This Solves

The earlier media-facade cleanup left three zero-consumer roots behind. Packaging, activation, and QA staging still treated those orphan facades as runtime surfaces even though canonical media execution had already moved into core runtime modules.

Why This Change Was Made

Finish the removal pattern from abe0cd691df by deleting the unused private video-generation SDK root, the image-generation API barrel, and the obsolete media-understanding facade package. Remove their build, package, activation, QA, label, lockfile, type-path, and documentation pins while retaining the load-bearing image-generation-core/runtime-api.js sidecar and the public media-understanding SDK contract.

User Impact

No user-visible behavior changes. Installed packages and QA staging no longer carry unused media facade artifacts.

Evidence

  • node scripts/run-vitest.mjs test/scripts/bundled-plugin-build-entries.test.ts src/plugin-sdk/facade-runtime.test.ts test/openclaw-npm-postpublish-verify.test.ts test/release-check.test.ts extensions/qa-lab/src/gateway-child.test.ts — 251 tests passed across 3 shards.
  • pnpm build followed by pnpm check:changed — passed on Blacksmith Testbox (wrapper exit 0): https://github.com/openclaw/openclaw/actions/runs/31999962518
  • node scripts/check-docs-mdx.mjs docs README.md — passed across 774 files.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted --stream-engine-output — clean, no accepted/actionable findings.
  • Plugin boundary report retained the public media-understanding compatibility window and reduced its reader count from 40 to 39 by removing only the orphan facade.
  • Production source LOC: +4/-101 (net -97). Tests: +17/-29. Config/docs/tooling: +0/-37. Total: +21/-167 (net -146).

AI-assisted: yes.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 17, 2026 06:42
@steipete
steipete requested a review from a team as a code owner August 17, 2026 06:42
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/media-understanding-core/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: f4d2b61d865c96fc8d68ff21d6c492df91f8ccca
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 2:50 AM ET / 06:50 UTC.

ClawSweeper review

What this changes

This PR removes unused media facade packages and SDK exports, then removes their stale build, package, QA-staging, lockfile, label, test, and documentation references.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking correctness findings. This is a coherent follow-up to the merged media-facade cleanup: it makes package, build, activation, QA, and documentation inventories agree with the already-private media runtime ownership.

Priority: P3
Reviewed head: f4d2b61d865c96fc8d68ff21d6c492df91f8ccca

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-negative cleanup with source-backed owner-boundary and package-contract evidence.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This maintainer-authored internal cleanup has no user-visible behavior to demonstrate; the PR body supplies build and focused package/QA test evidence.
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 internal cleanup has no user-visible behavior to demonstrate; the PR body supplies build and focused package/QA test evidence.
Evidence reviewed 7 items Canonical public/private SDK boundary: The SDK inventory classifies private-local entries separately from public exports, while the migration guide states that bundled-only modules are no longer importable from the published package.
Current runtime ownership: The live plugin runtime binds media understanding directly from canonical core runtime modules, and video generation uses the canonical media-generation registry and model parser rather than the removed facade.
Branch keeps the required sidecar: The PR head retains image-generation-core as the sole manifest-less always-allowed runtime sidecar and removes media-understanding-core from matching QA staging.
Findings None None.
Security None None.

How this fits together

Bundled media support code is built into package artifacts, selectively activated by the Plugin SDK, and staged for QA before canonical media runtime code executes. This change removes facade paths that no longer participate in that flow.

flowchart LR
  A[Media facade sources] --> B[Build and package inventory]
  B --> C[Plugin SDK activation]
  C --> D[Canonical media runtimes]
  B --> E[QA plugin staging]
  E --> D
Loading

Before merge

  • Complete next step (P2) - No discrete repair is needed; this PR can proceed through normal maintainer and exact-head CI gates.
Agent review details

Security

None.

PR surface

Source -100, Tests -12, Docs -1, Config -25, Other -8. Total -146 across 21 files.

View PR surface stats
Area Files Added Removed Net
Source 7 4 104 -100
Tests 5 17 29 -12
Docs 1 0 1 -1
Config 5 0 25 -25
Generated 0 0 0 0
Other 3 0 8 -8
Total 21 21 167 -146

Review metrics

Metric Value Why it matters
Production versus test delta production +4/-101 (net -97); tests +17/-29 (net -12) The branch is net-negative cleanup while preserving focused package, activation, and QA coverage for the remaining runtime sidecar.

Technical review

Best possible solution:

Retain only the image-generation runtime sidecar, with package exports generated from the canonical public/private SDK inventory and media execution owned by the core runtime modules.

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

Not applicable: this PR removes internal facade and package artifacts, not a reported user-facing failure.

Is this the best way to solve the issue?

Yes. Deleting the stale facade roots is the cleanest solution because current runtime callers already use canonical media modules and the SDK inventory marks the removed video surface private-local.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 29b105beda3c.

Labels

Label changes:

  • add P3: This is behavior-neutral package and dead-surface cleanup rather than a user-facing regression or new capability.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 internal cleanup has no user-visible behavior to demonstrate; the PR body supplies build and focused package/QA test evidence.

Label justifications:

  • P3: This is behavior-neutral package and dead-surface cleanup rather than a user-facing regression or new capability.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 internal cleanup has no user-visible behavior to demonstrate; the PR body supplies build and focused package/QA test evidence.

Evidence

What I checked:

  • Canonical public/private SDK boundary: The SDK inventory classifies private-local entries separately from public exports, while the migration guide states that bundled-only modules are no longer importable from the published package. (scripts/lib/plugin-sdk-entries.mts:19, 29b105beda3c)
  • Current runtime ownership: The live plugin runtime binds media understanding directly from canonical core runtime modules, and video generation uses the canonical media-generation registry and model parser rather than the removed facade. (src/plugins/runtime/index.ts:75, 29b105beda3c)
  • Branch keeps the required sidecar: The PR head retains image-generation-core as the sole manifest-less always-allowed runtime sidecar and removes media-understanding-core from matching QA staging. (src/plugin-sdk/facade-activation-contract.ts:1, f4d2b61d865c)
  • Focused boundary tests: The PR-head tests retain assertions for the image runtime sidecar while removing only obsolete media-facade artifact expectations. (test/scripts/bundled-plugin-build-entries.test.ts:52, f4d2b61d865c)
  • Merged cleanup provenance: The preceding merged cleanup removed the analogous orphan video facade; this branch continues that deletion pattern for remaining orphan roots. (extensions/video-generation-core/runtime-api.ts, abe0cd691dfa)
  • Dependency delta review: The PR-head lockfile no longer contains the deleted media-understanding-core workspace importer and introduces no package or resolved-version addition. (pnpm-lock.yaml, f4d2b61d865c)

Likely related people:

  • steipete: Peter Steinberger authored the preceding merged orphan-facade cleanup and is the dominant recent contributor across the current facade, SDK inventory, and QA staging surfaces. (role: feature cleanup owner; confidence: high; commits: abe0cd691dfa, 559ee3a20978; files: src/plugin-sdk/facade-activation-contract.ts, extensions/qa-lab/src/bundled-plugin-staging.ts, docs/plugins/sdk-migration.md)

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

Land-ready review is complete on f4d2b61d865c96fc8d68ff21d6c492df91f8ccca.

@steipete
steipete merged commit 23ea04a into main Aug 17, 2026
480 of 482 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the steipete/w3-media-facade-cleanup branch August 17, 2026 07:42
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: image-generation-core extensions: media-understanding-core extensions: qa-lab extensions: xai maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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