Skip to content

refactor(media): remove unreachable geometry metadata backfills - #149272

Merged
vincentkoc merged 2 commits into
mainfrom
refactor/media-geometry-metadata-20260916
Sep 18, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
refactor/media-geometry-metadata-20260916

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Remove three unreachable metadata backfills from media geometry normalization. The branches producing changed or derived values already record the required metadata.

User Impact

Image and video requests preserve selected geometry, requested/applied and derived metadata, ignored-option ordering, and behavior when capabilities are absent. Existing image/video policy differences and public contracts remain intact.

Why This Change Was Made

Keep the producing branches authoritative. Production: -23 lines; tests unchanged. No helper, API or dependency change is introduced.

The historical one-file sloppiness score worsened from 57.563025 to 58.910891: the same 18 cloned lines occupy more of the smaller file. Historical cyclomatic complexity fell from 50 to 34 and measured SLOC from 119 to 101. No fresh scan or performance gain is claimed.

Evidence

  • Reviewed head: c22e819952f8d9989d2733192652b587f02d015c.
  • Static qualification against frozen main e2b0e2b313b0b4fec1857dcad8d8dc0be8fd9716 found the original geometry-owner preimage unchanged and rechecked shared helpers, image/video callers, sibling behavior, tests and dependency contracts. This does not claim runtime validation of that main snapshot.
  • Historical 82/82 target cases passed, zero target skips or failures, on attempt 1: shared runtime 27; image and video runtimes 21 and 34. The logs bind actual checkout 9ec8061eb18854590451afb2b470dbd9f311c9db, whose complete tree equals the reviewed head. Node 24.19.0, pnpm 12.3.4, Vitest 5.0.0.
  • Whole CI attempt 1 failed after test/scripts/worker-deploy-build-plugin.test.ts:39 exceeded 120000 ms. The original timeout remains unexplained.
  • Historical attempt 2 finished successfully. Its diagnostic retry worker passed 315/315 cases across six groups, including all 15 worker cases. The former timeout case passed in 37996 ms with unchanged source and deadline, on Node 24.20.0. Other successes and skips were carried forward from attempt 1.

Fresh hosted checks for this head passed: CI attempt 3, Workflow Sanity attempt 2, and the current required openclaw/ci-gate. Complete attempt-job metadata and the unchanged PR head were verified on 2026-09-18 at 16:07 UTC. No new test counts or actual-checkout claim are inferred from this metadata.

The latest ClawSweeper review is historical revision 5, completed at 2026-09-15T20:29:47.296Z. Its freshness window has expired; no fresh Claw review or merge readiness is claimed.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 16:30
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@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 Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 12:26 PM ET / 16:26 UTC (Revision 6).

ClawSweeper review

What this changes

Removes unreachable fallback assignments that record adjustments to image and video dimensions, aspect ratios, and resolutions.

Merge readiness

✅ Ready for maintainer review

This remains useful, behavior-preserving cleanup that is absent from current main. No actionable correctness or security findings remain; the maintainer-authored PR should proceed through normal review.

Priority: P3
Reviewed head: c22e819952f8d9989d2733192652b587f02d015c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with relevant existing coverage, a passing exact-head CI gate, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored cleanup is exempt from the external-contributor proof gate and changes no authority boundary. Existing runtime tests and exact-head CI supplement the source-based equivalence review; they are not live provider proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored cleanup is exempt from the external-contributor proof gate and changes no authority boundary. Existing runtime tests and exact-head CI supplement the source-based equivalence review; they are not live provider proof.
Evidence reviewed 8 items Introduced change: The verified merge-base-to-head diff removes only the three metadata backfills. Earlier assignments record every changed or derived surviving value; unchanged values and discarded overrides cannot satisfy the removed guards.
Current-main necessity: Fetched main still contains all three backfills. Comparing the shared owner and both normalization callers against the merge base produced no differences.
Release baseline: The latest supplied release, v2026.9.4, also retains the backfills; this cleanup is not already present there.
Findings None None.
Security None None.

How this fits together

Media geometry normalization translates requested image and video settings into provider-supported values. Its outputs feed provider requests and the metadata explaining adjustments in tool results.

flowchart LR
  A[Image or video request] --> C[Geometry normalization]
  B[Provider capabilities] --> C
  C --> D[Supported geometry]
  C --> E[Adjustment metadata and ignored options]
  D --> F[Provider generation]
  E --> G[Tool result]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -23. Total -23 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 0 23 -23
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 0 23 -23

Review metrics

None.

Technical review

Best possible solution:

Keep normalization metadata owned by the branches that change geometry, preserving the existing caller policies and result contracts.

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

Not applicable: this PR claims behavior-preserving cleanup, not a user-facing bug fix. Source inspection supports the branches being unreachable; no runtime reproduction was executed.

Is this the best way to solve the issue?

Yes. Removing the redundant tail assignments is the narrowest cleanup because the producing branches already record the same metadata.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 890c55a28e2e.

Labels

Label justifications:

  • P3: This is internal dead-code cleanup with no identified change to user-visible behavior.
  • 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 MEMBER-authored cleanup is exempt from the external-contributor proof gate and changes no authority boundary. Existing runtime tests and exact-head CI supplement the source-based equivalence review; they are not live provider proof.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a5ebadc adds src/media-generation/geometry-normalization.ts:60 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a5ebadc29370; files: src/media-generation/geometry-normalization.ts)

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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-15T16:36:32.741Z sha 97b6741 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T17:33:54.851Z sha 97b6741 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T18:43:13.366Z sha c22e819 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T19:19:41.092Z sha c22e819 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T20:29:47.296Z sha c22e819 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc merged commit 1e65cfd into main Sep 18, 2026
489 of 491 checks passed
@vincentkoc
vincentkoc deleted the refactor/media-geometry-metadata-20260916 branch September 18, 2026 20:08
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 18, 2026
…/current-conversation-binding-row

* commit 'f5276e5a54c088dd23475f08479acd9738d959bd': (46 commits)
  perf(plugins): combine runtime and tool call scopes (#152101)
  test(memory): seed restart fixtures with the Gateway stopped (#152038)
  perf(gateway): avoid session list stalls on broad updates (#152074)
  fix: preserve model failure causes and worker fallback runtime (#152028)
  perf(logging): reduce Gateway hot-path info log volume (#152080)
  improve(gateway): reduce duplicate worker data fetched from SQLite (#151878)
  improve: format messages with many links faster (#152112)
  perf(cron): avoid unused SQL binding in config projections (#152029)
  fix: explain cloud worker startup failures (#152043)
  refactor(discord): share Markdown edit projection (#149214)
  refactor(media): remove unreachable geometry metadata backfills (#149272)
  chore(autoreview): sync mirror to agent-skills a7e91e1 (#152039)
  fix(ui): restore sidebar and chat test collection (#152099)
  fix(clickclack): finish SQLite cleanup between persistence tests (#152061)
  fix(workboard): isolate board deletion from unrelated subscriptions (#152102)
  refactor(agents): unify tool availability and plugin work ownership (#152073)
  fix: session group moves lag while requests are pending (#151689)
  fix(agents): preserve active cleanup during requester settlement (#151907)
  perf(sessions): keep deletion responsive under disk pressure (#152092)
  fix: preserve successful direct replies without serializing bookkeeping keys (#151870)
  ...
vincentkoc added a commit that referenced this pull request Sep 18, 2026
…pr-149282-proof-20260918

* commit 'dfa48c256f0853268c6b42cbe09fc1338d7d24ea':
  test(qa-lab): stabilize timeout recovery delivery proof (#152100)
  fix: probe SQLite when Node denies worker threads (#152075)
  perf(gateway): keep GitHub co-author trailer scans linear (#152115)
  fix(media): report CLI models with missing command or args (#151969)
  refactor: remove retired runtime code and duplicate helpers (#151973)
  perf(plugins): combine runtime and tool call scopes (#152101)
  test(memory): seed restart fixtures with the Gateway stopped (#152038)
  perf(gateway): avoid session list stalls on broad updates (#152074)
  fix: preserve model failure causes and worker fallback runtime (#152028)
  perf(logging): reduce Gateway hot-path info log volume (#152080)
  improve(gateway): reduce duplicate worker data fetched from SQLite (#151878)
  improve: format messages with many links faster (#152112)
  perf(cron): avoid unused SQL binding in config projections (#152029)
  fix: explain cloud worker startup failures (#152043)
  refactor(discord): share Markdown edit projection (#149214)
  refactor(media): remove unreachable geometry metadata backfills (#149272)
  chore(autoreview): sync mirror to agent-skills a7e91e1 (#152039)
  fix(ui): restore sidebar and chat test collection (#152099)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. size: XS 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