Skip to content

refactor(media): deslop media - #156406

Merged
steipete merged 2 commits into
mainfrom
deslop/06-media-generation-0922
Sep 23, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/06-media-generation-0922

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Media providers repeat request construction, polling, bounded response handling, and configuration normalization, making the same contracts harder to maintain consistently.

User Impact

No intended behavior change. Provider authentication, request/output formats, deadlines, byte limits, cleanup, configuration, and public SDK exports remain compatible.

Why This Change Was Made

  • Share bounded polling through pollProviderOperation, keeping each provider's transport, status decoding, and deadline scope local.
  • Share video-response decoding and overflow delivery through readGeneratedVideoAsset; remove duplicate download callbacks and forwarding layers around existing SDK owners.
  • Consolidate OpenRouter image request lifecycles and OpenAI JSON/multipart request preparation. Reuse the bounded response reader and canonical base64 validation for Codex image responses.
  • Reuse speech configuration normalizers and ordinary/telephony request preparation. Replace Xiaomi and ElevenLabs broad media imports with existing narrow exports of the same helpers.
  • Simplify music request assembly and local CLI audio discovery while retaining provider-specific fallback and streaming rules.
  • Consolidate media-understanding attachment retries, authentication setup, query normalization, and local-audio candidate assembly.
  • Preserve provider entrypoint coverage, repair the HTTP fixture's completed-submission transport setup, and shrink the assertion baseline where casts disappeared.

Evidence

Merged through the native maintainer flow as 16908037a03439b25e314ad5a330e9df12c45f08; the coordinator-approved source head was unchanged.

The coordinator reviewed the diff and explicitly approved landing as-is at 956 net production lines removed. On unchanged head 31619be2582d1419e1d7df6817fdb50f5f128d36, the coordinator reran the failed small-5 job: rerun SUCCESS, CI gate SUCCESS. The historical timing reproductions below remain recorded as flake evidence; no code, assertion, or timeout was changed for the rerun.

  • node scripts/check-changed.mjs --base origin/main — passed lint, formatting, core/extension production and test types, boundary guards, and ratchets after rebasing onto 31dd34ff194b (including the session-share and Telegram fixture repairs below).
  • node scripts/run-vitest.mjs <affected paths and cross-importers> — 14 native test groups passed in 294.35s: 2,232 tests / 112 passing files, six existing skips. Includes image/video/music/speech providers, media-understanding, CLI consumers, bounded response readers, real-socket transport cleanup, and shared-fixture consumers.
  • node scripts/run-vitest.mjs test/scripts/plugin-sdk-surface-report.test.ts — 11 passed; src/plugins/contracts/plugin-sdk-subpaths.test.ts — 18 passed. Public SDK surface remains 158 entrypoints / 4,569 exports / 2,681 callable exports.
  • pnpm plugin-sdk:api:diff -- --base origin/main --head HEAD — No Plugin SDK API changes. The requested plugin-sdk:api:check script does not exist; this is the repository's current comparison command.
  • pnpm build — passed in 8m34s, including runtime/SDK declarations and native plugin loading checks.
  • git diff --check and Codex autoreview through P2 — clean, no accepted/actionable findings. The latest review covers the rebased runner integration, including preserved deferred provider discovery.

The refreshed proof ran on Blacksmith Testbox tbx_01m37938cgbnazzcsm6mfzyrpg (runner), against frozen base 31dd34ff194b981c38ea63ecae4bf351e8496a49 with all 55 changed files hash-verified. The complete delegated command exited 0; the lease is stopped. The critical integration selection additionally passed 12 Vitest shards in 375.36s, covering media auto-selection, session-share, the original nine-file Telegram sequence, and native Telegram pipeline. A Testbox lifecycle job may display cancellation during normal cleanup; delegated command results own this evidence.

The fully validated head 0aece0f7c9ab0907b2f7e519de90d8921b39f4be included the upstream repairs described below and a reviewed documentation correction identifying private helpers as official-plugin-only. Head 95069c18238e6f117d7297e35b4750f4510b553b rebased that patch onto b1ec560836f0, integrating the overlapping Google/OpenAI cleanup from #156297. It retains main’s Google config/model helpers and OpenAI base-URL helper alongside this PR’s shared polling/request paths. Refreshed integration proof passed on this head. Exact-head CI reported three failures and finished cancelled; the matched-source investigation is recorded below. The earlier full proof above is explicitly tied to its original head. The net deletion fell because part of the cleanup is now already on main.

Post-conflict proof on 95069c18238, Blacksmith Testbox tbx_01m37ds8fn91g1w5m6yp8w9w60 (runner), frozen base b1ec560836f0 and all changed files hash-verified:

  • node scripts/check-changed.mjs --base origin/main -- extensions/google/speech-provider.ts extensions/google/video-generation-provider.ts extensions/openai/speech-provider.ts — passed the integrated-file checks, including extension production/test types and lint. The earlier full-branch check above covers the unchanged media patch.
  • Critical session-share/media/Telegram selection: 12 groups passed, 385.24s.
  • Full focused/cross-importer media selection: 14 groups, 2,232 tests / 112 passing files, six existing skips, 210.31s.
  • SDK API comparison: No Plugin SDK API changes; SDK surface and subpath tests also passed.
  • pnpm build — exit 0, 7m39s; native loading checked 53 built modules. Its standard report-only UI-size check reports startup JS 371,507 B against the 371,332 B enforcement threshold (175 B over). No baseline/budget was changed, and no UI repair is claimed.
  • git diff --check and fresh Codex autoreview through P2 — clean.

The complete delegated command exited 0 and the lease is stopped.

Current head 31619be2582d1419e1d7df6817fdb50f5f128d36 rebases onto 322e358bb0c. git range-diff confirms both PR commits are patch-identical. It incorporates the type-fixture repair 09012603235 and activity-summary publication synchronization 4e9e68140aa; the exact type stripe now passes locally (including Gateway, commands, SDK, and other types), and all 22 activity-summary tests pass locally (435.19s including cold transform). Exact-head CI initially reported a failure in the adjacent registry timing fixture: subagent-registry.timing.test.ts, overlap, line 174 (queue depth 0 instead of 1). The earlier steer-restart case passed in this run; that does not establish its repair. A matched comparison reproduces the exact overlap queue-depth assertion on clean base 322e358bb0c and this head; CI merge 0fee0177ef97f5c106abab3b38dd7cc3ae20b768 has the same source tree as this head. The registry baseline failure below remains unresolved; no fix is inferred from a later passing run. The previous CI run had session-share, update-panel UI, and Telegram failures; matched investigations and owning fixes are recorded below. Windows 5 passed on that head.

Behavior proof includes actual HTTP transport and cancellation through the changed owners. Representative passing cases from the refreshed provider run:

xAI download: closes the upstream socket for a never-ending malformed response over a real connection — passed
DeepInfra video: forwards configured request policy through the real local video transport path — passed
DeepInfra video: routes configured env proxy policy through a real CONNECT tunnel — passed

These synthetic network tests exercise real socket/transport boundaries; provider entrypoint tests additionally cover submit/poll/completion, byte caps, MIME rejection, overflow URL delivery, and cleanup. No vendor API contract changed.

The documentation follow-up passed its scoped changed-file check, pnpm docs:check-links (14,362 links, zero broken), and fresh Codex review through P3. The shared publishing parser verifies the new anchor. The optional full anchor audit reports 56 existing broken fragments, identical on the clean base docs snapshot and edited tree, with zero failures in the edited page; those unrelated fragments were not modified or suppressed.

Production-only measurement against the current frozen PR base 322e358bb0c, using . ':(exclude)**/*.test.*' ':(exclude)**/test/**' ':(exclude)docs/**':

49 files changed, 959 insertions(+), 1915 deletions(-)

956 net lines removed under the campaign filter; below the 1,000-line target. No padding was added.

Changed-test wall times using /usr/bin/time -p pnpm test <file> --maxWorkers=1: BytePlus video 17.95s, OpenRouter video 17.10s, Deepgram runner 15.72s, Xiaomi speech 1.75s, ElevenLabs TTS 17.48s, including runner preparation.

Initial CI failures, matched A/B reproduction, and owning repairs

The initial CI run reported unused workflow scripts, incomplete lint/packaging fixtures, a workflow assertion mismatch, a Telegram timeout, and a Windows worker shutdown crash.

Clean base 7c9f2723d63282d514484b9ae0fe3475932d770b and media head 6af66fda81b3aef1380c4d36b530401159875f0f used separate worktrees/caches and fresh installs on macOS, Node 26.5.0, pnpm 12.4.0. Identical commands produced identical failures:

node scripts/run-vitest.mjs test/scripts/install-smoke-no-push-workflow.test.ts test/scripts/dist-artifact-ownership.test.ts test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts
node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.ts
CI=true GITHUB_ACTIONS=true pnpm deadcode:unused-files
  • First command: both stopped at the tooling group with 6 failed / 37 passed (five missing-json5 fixture failures and one workflow assertion); head 281.80s, base 279.08s, exit 1.
  • Separate packaging command: both 1 failed / 63 passed / 3 skipped, missing scripts/lib/check-limits.mts; head 100.79s, base 141.02s, exit 1.
  • Unused-file scan: both production scans had zero entries; both full-tree scans reported exactly scripts/relay-build-limit-warnings.mts and scripts/run-swiftlint.mts, exit 1.

The cited green PR 156346 dependency job tested f3c9393f58d0e7761ff2ddef8697fe0b580f1692 on main parent e331b970664a4f8b923e136e348b0e47f98cbe81; the green PR 156315 job tested b44f463c18445bac0427ad8cdaf8d68e1028440c on parent 4875b96d5b8d998ba3c66d0c990a6c07ae956ab6. Their logs identify the exact checkouts; both predate 9ed5a04a655, which introduced the implicated helpers.

The final rebase incorporates 54a9d03dcf0 (Knip roots), 2989020eca7 (packaging fixture), and ceb109668b4 (lint/workflow fixtures and Telegram completion observation). The local replay now passes. No fix is claimed for the original Windows worker shutdown crash; its new-head CI result is tracked separately. The temporary A/B worktree was removed and its registration absence verified. No blind CI reruns or weakened assertions, limits, baselines, or dependencies.

Earlier local SDK graph collection hit existing timeouts under concurrent compilation; isolated proof passed without budget changes. Provider test fixtures were corrected for MiniMax's new helper export and Together's immediately completed submission transport while preserving their assertions.

No changelog, dependency, configuration schema, protocol, or persisted-state changes. No live vendor requests were needed for this behavior-preserving refactor.

Windows worker-shutdown diagnosis on the refreshed head

The remaining Windows 5 failure occurs after 94 MSteams assertions pass: Node 24.19.0 aborts in src/win/async.c with UV_HANDLE_CLOSING during Vitest fork shutdown, exit 3221226505. No code fix is claimed for this failure.

The repository's exact Windows replay workflow ran the original ordered 24 files / 8 projects, pnpm 12.4.0, Vitest 5.0.0, Node 24.19.0, four workers, 8 GiB Node heap, and serial project dispatch at one frozen workflow revision:

  • Clean base replay: source af7420cc367af23a395006f1eba8858e33c9a946, exit 0.
  • Head replay: source 10fe0f71bf0584bdf31512a86021aa4044f0a2af, exit 0.

Both artifacts verify complete project order, unchanged source/dependency hashes, native win32/x64, four visible CPUs, and approximately 14 GiB RAM. These passing reproductions do not establish a code fix or identify the native handle's owner.

The original CI job tested merge snapshot 9ecc2b3398bd0641011dbb285284c3b7d882dc83, which additionally contains upstream update-progress commit b4111411166. The exact merge-snapshot replay also passed (exit 0), with complete ordered projects and unchanged source/dependency hashes. None of the three native replays reproduced the teardown crash. Its cause remains unresolved; no native code fix is claimed.

The same 24-file command on local macOS passed all eight groups on the head (1321.57s). The clean-base local run stopped at an unrelated terminal-fixture timeout in test/helpers/openclaw-test-instance.test.ts (1 failed / 122 passed / 4 skipped, 516.27s); no fix is claimed. A separate base MSteams replay passed all 94 tests, matching the head's MSteams group. Native Windows evidence owns the platform-specific result.

Latest CI failures and matched-source investigation

The documentation head's CI tested merge 0300780f33e367d8258ebed68c346b9ff67d3f1c over main parent 5706a0626359b52daa5feb12fe98c260153525c3. Separate clean local worktrees compare that exact parent and merge, using the same Node runtime, frozen installs, and two-worker setting.

Session-share: test/plugins/session-share.integration.test.ts reproduces identically: 3 failed / 10 passed on both clean CI base (360.45s) and candidate merge (339.31s). The original CI job reported the same three receiver-list failures. Main commit 71cf3a4a16b moved receiver invocation to the registered service's start context. The integration fixture captured commands/catalogs but never started the service, so listing intentionally returned an empty result before invocation was available. The rebase incorporates owning fix d7b45d7e76c (#156464), which starts and stops the service with its invocation context. The refreshed Linux proof passes all 13 integration tests.

CI=true GITHUB_ACTIONS=true OPENCLAW_VITEST_MAX_WORKERS=2 \
OPENCLAW_NODE_TEST_PLAN_CONCURRENCY=1 OPENCLAW_VITEST_RUNTIME=node \
node scripts/run-vitest.mjs ui/src/components/update-run-view.test.ts test/plugins/session-share.integration.test.ts

The command stopped at the failing tooling group. The UI group was replayed separately using the original core-runtime-media-ui-2 descriptor: 442 files, two workers, through scripts/ci-run-node-test-shard.mts on both sources. The exact merge replay passed 442 files / 7,659 tests (1481.61s). The base passed 441 files and failed one different pasted-text handoff test (7,658 passed / 1 failed, 1576.01s). The original update-panel case passed on both sources (22ms / 39ms); no UI fix is claimed. These local replays used macOS Node 26.5.0, whereas CI used Linux Node 24.19.0. The UI CI failure expected scrollTop 0 but saw 1000. Source inspection found a likely fixture race: setting details.open queues jsdom's real toggle, then the test also dispatches a synthetic toggle while only RAF timers are faked. That test was introduced by upstream 317054d4273; no repair is claimed from source inspection alone.

The Telegram failure is grammY's unchanged 10,000ms webhook deadline, during the first real /help initialization. Plugin metadata admission invalidation and delivery failures also appear in the log, but the ordering does not establish whether they caused the timeout or followed teardown. Replaying the original nine-file sequence also hit the unchanged deadline on both old sources: the base stopped in DM-session (2 failed / 10 passed, after three passing files; total 875.80s), and the merge stopped earlier in body routing (1 failed / 49 passed, after two passing files; total 702.22s). The rebase incorporates owning fix 4205a47a639 (#156482), which settles tracked updates before teardown, removes unrelated API wall-clock throttling from routing fixtures, and defers unnecessary image-provider discovery. The original Telegram sequence plus native pipeline now passes in the refreshed Linux proof. No timeout, assertion, baseline, or ignore has been relaxed.

Provider-integration head: CI base/merge comparison

CI tested merge 0a4e774b6739f57f56c90e27f7847ccca430a45a over main parent 359a8a35b55208a6091def35d75e8836940693e9. Separate clean temporary worktrees with fresh installs compare these exact revisions.

  • Core test types (job): both parent and merge exit 1, reporting the identical TS2741 at src/gateway/session-row-placement-projection.lifecycle.test.ts:12: required policyConfig is missing. commands and other shards pass on both. The required field came from 282fc78eaf6 (feat: support scoped session reading and organization #155184), and the fixture is unchanged by this media PR. The matched command was node scripts/run-tsgo-core-test-shards.mjs --stripe 4/5 --concurrency 2, macOS Node 26.9.0 / pnpm 12.4.0. The latest rebase incorporates owning repair 09012603235, which completes the fixture’s policy configuration.
  • Activity summary (job): the exact original 15-file, eight-worker shard replay completed with identical 162 passed / 6 failed / 1 skipped on both base (637.088s) and merge (547.280s). The original activity-recap case passed on both (30.531s / 23.835s), so it was not reproduced. Both instead failed the same six cases: Code Mode timeout, watch-node disconnection mismatch, and four model-membership cases. These replays used Node 24.21.0/macOS, eight workers, plan concurrency one, and separate caches, whereas CI used Node 24.19.0/Linux. The source-owned command was OPENCLAW_NODE_TEST_GROUPS_JSON=<original-descriptor> node --import tsx scripts/ci-run-node-test-shard.mts; no assertions or timeouts changed. An upstream fixture repair, 4e9e68140aa (fix(zalouser): avoid Gateway stalls during credential persistence #156003), awaits the canonical publication event before asserting; the latest rebase incorporates it. Historical actual state was redacted in CI, so no stronger causal claim is made from that log.
  • Registry cleanup (job): both the clean parent and merge reproduce the exact first-parent-announcement assertion, before descendant completion; each full file reports 3 failed / 19 passed (316.55s / 351.50s). The fixture polls for one second while upstream 0bd1624a883 made task finalization asynchronous through SQLite workers. A separate single-case diagnostic also fails identically on both (86.70s / 86.73s, 21 other cases skipped), so preceding file/shard cases are unnecessary for local reproduction. Both use macOS Node 26.9.0, two workers, separate caches, and node scripts/run-vitest.mjs src/agents/subagents/registry/subagent-registry.steer-restart.test.ts; the single-case command adds --testNamePattern "retries deferred parent cleanup after a descendant announces". No timeout or assertion was changed.

Fresh Codex review of this integrated head is clean through P2. A FAL geometry finding was rejected and independently rechecked against the complete module: hasInputImages is passed into size resolution before the computed imageSize reaches the geometry helper.

The old matched-source worktrees have been removed through ordinary Git cleanup, with path and registration absence verified. No timeouts, assertions, baselines, or ignores were relaxed to obtain results.

Registry timing flake: matched evidence and coordinator-approved rerun

The failing job reports src/agents/subagents/registry/subagent-registry.timing.test.ts:174, overlap: queue depth remains 0 when 1 is expected. Its shard result is 1 failed / 1,534 passed / 5 skipped. This is a different case from the earlier steer-restart failure. The only other failed job in this run is the aggregate openclaw/ci-gate.

The exact merge's tree b94b2889bf53d0c4e0b9c947f892fb581f2d573b was verified equal to PR head 31619be2582. A clean detached base worktree at 322e358bb0c received a fresh pnpm install. Both sources ran the complete three-case file with the same native Node 24.21.0, pnpm 12.4.0, two workers, and separate caches:

OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/run-vitest.mjs   src/agents/subagents/registry/subagent-registry.timing.test.ts
  • Head: exit 1, 2 failed / 1 passed, 344.64s wall; exact overlap assertion reproduced. The other failure is the existing settlement helper retaining lifecycle-cleanup work.
  • Clean base: exit 1, 3 failed, 329.79s wall; exact overlap assertion reproduced. Additional failures involve retained completion/cleanup work and a duplicate announce assertion after settlement failures.

CI used Linux Node 24.19.0. These are matched local reproductions, not an assertion of platform parity. No timeouts or assertions were changed. The fixture still polls with vi.waitFor while holding a session write, and upstream 0bd1624a883 made task finalization asynchronous before terminal effects; the precise cause of delayed queue admission remains unresolved. No production fix or fixture repair is claimed. The timing fixture is outside this media diff.

The coordinator subsequently classified this as a flake, reran the failed job successfully on the unchanged head, and explicitly approved landing as-is. The media checks, focused tests, API comparison, build, and review passed as recorded above; native landing remains subject to GitHub’s enforced gates.

@clawsweeper

clawsweeper Bot commented Sep 23, 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.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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

ClawSweeper review

What this changes

Consolidates media-provider polling, bounded downloads, speech configuration, and attachment handling while preserving existing provider behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this remains useful cleanup beyond the merged overlapping work. The previous documentation and conflict concerns are resolved, and no introduced correctness or security defect was found.

Priority: P3
Reviewed head: 31619be2582d1419e1d7df6817fdb50f5f128d36

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent refactor with applicable transport proof, broad supplemental validation, and no actionable introduced findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The captured Testbox output reports successful real HTTP/CONNECT transport and malformed-stream socket cancellation through production media owners. Inspected scenarios cover the refactored download boundary, and runtime source matches the post-conflict proof head. No stored-data contract changes require migration proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured Testbox output reports successful real HTTP/CONNECT transport and malformed-stream socket cancellation through production media owners. Inspected scenarios cover the refactored download boundary, and runtime source matches the post-conflict proof head. No stored-data contract changes require migration proof.
Evidence reviewed 12 items Pinned contribution and merge identity: Reviewed the introduced delta from 322e358 to the pinned head. Raw records confirm the supplied test merge has that base followed by the exact PR head as its parents; the prior conflict warning no longer applies to this candidate.
Shared polling preserves provider decisions: The extracted loop retains read, completion, failure, and wait ordering. Provider callers retain their deadline scopes, response decoding, authentication, and guarded transport options.
Bounded assets and cleanup: The shared video reader preserves byte limits and optional MIME validation. URL delivery is restricted to observed overflow, and response release remains with the caller or download owner.
Findings None None.
Security None None.

How this fits together

OpenClaw’s media subsystem sends generation and understanding requests to provider plugins and processes incoming attachments. Shared helpers handle bounded responses and cleanup, while plugins retain their authentication, request formats, and transport policies.

flowchart LR
  A[Generation requests] --> C[Provider plugins]
  B[Incoming attachments] --> D[Attachment resolution]
  D --> C
  C --> E[Provider transport and polling]
  E --> F[Bounded response processing]
  F --> G[Media assets or descriptions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -956, Tests -96, Docs +16, Other -6. Total -1042 across 55 files.

View PR surface stats
Area Files Added Removed Net
Source 46 949 1905 -956
Tests 7 57 153 -96
Docs 1 16 0 +16
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 8 -6
Total 55 1024 2066 -1042

Review metrics

Metric Value Why it matters
SDK surface 2 private helper exports; 0 reported public API changes The consolidation stays within existing official-plugin helper paths and preserves the public SDK contract.

Technical review

Best possible solution:

Keep shared mechanics with the existing media owners and retain vendor-specific transport, authentication, and deadline decisions in provider plugins.

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

Not applicable: this is a behavior-preserving refactor, and no introduced failing path was established.

Is this the best way to solve the issue?

Yes: the patch reuses existing media owners, removes duplicate mechanics, and preserves provider-specific contracts with relevant transport and integration evidence.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 05996479d818.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal maintenance with no intended user-visible behavior change.
  • 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. Sufficient (terminal): The captured Testbox output reports successful real HTTP/CONNECT transport and malformed-stream socket cancellation through production media owners. Inspected scenarios cover the refactored download boundary, and runtime source matches the post-conflict proof head. No stored-data contract changes require migration proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured Testbox output reports successful real HTTP/CONNECT transport and malformed-stream socket cancellation through production media owners. Inspected scenarios cover the refactored download boundary, and runtime source matches the post-conflict proof head. No stored-data contract changes require migration proof.

Evidence

What I checked:

  • Pinned contribution and merge identity: Reviewed the introduced delta from 322e358 to the pinned head. Raw records confirm the supplied test merge has that base followed by the exact PR head as its parents; the prior conflict warning no longer applies to this candidate. (0fee0177ef97)
  • Shared polling preserves provider decisions: The extracted loop retains read, completion, failure, and wait ordering. Provider callers retain their deadline scopes, response decoding, authentication, and guarded transport options. (src/media-understanding/shared.ts:219, 31619be2582d)
  • Bounded assets and cleanup: The shared video reader preserves byte limits and optional MIME validation. URL delivery is restricted to observed overflow, and response release remains with the caller or download owner. (src/media-generation/provider-assets.ts:27, 31619be2582d)
  • Previous SDK documentation finding resolved: The documentation now explicitly identifies the helpers as private-local and official-plugin-only. Both affected subpaths are already in the private-local inventory; the supplied SDK comparison reports no public API changes. Public docs: docs/plugins/sdk-provider-plugins/media-and-search.md. (docs/plugins/sdk-provider-plugins/media-and-search.md:159, 31619be2582d)
  • Complete captured proof body inspected: The fetched full body hashes to 2ddd987a3afd2ed9c344dcf99c9af60bc99ceccea4acfe49720bed3738a0ff55, matching the supplied issue-body snapshot and filling its omitted ranges. It records post-conflict Testbox execution on 95069c18238e6f117d7297e35b4750f4510b553b: real-socket cancellation and CONNECT transport cases passed, alongside 2,232 focused tests, SDK checks, and a build. Historical failures retain their separate source identities and are not represented as fixed merely because later runs passed. (95069c18238e)
  • Proof remains applicable after rebase: Compared Git blob identities for every introduced path against the complete GitHub tree of the post-conflict proof head. All runtime, test, and documentation files match; only config/assertion-safety-baseline.txt differs. Local older-head range comparison was unavailable, so the GitHub tree comparison supplies this verification. (31619be2582d)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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 (4 earlier review cycles)
  • reviewed 2026-09-23T10:26:51.230Z sha f626b67 :: needs real behavior proof before merge. :: [P3] [P3] Qualify the new helpers as official-plugin-only
  • reviewed 2026-09-23T12:49:39.206Z sha d345b52 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-23T13:30:29.217Z sha d345b52 :: needs changes before merge. :: none
  • reviewed 2026-09-23T15:20:16.363Z sha 0aece0f7c9ab0907b2f7e519de90d8921b39f4be :: needs changes before merge. :: none

@steipete
steipete force-pushed the deslop/06-media-generation-0922 branch from f626b67 to 10fe0f7 Compare September 23, 2026 11:26
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@steipete
steipete force-pushed the deslop/06-media-generation-0922 branch 2 times, most recently from 0aece0f to 95069c1 Compare September 23, 2026 15:22
@steipete
steipete force-pushed the deslop/06-media-generation-0922 branch from 95069c1 to 31619be Compare September 23, 2026 16:03
@steipete
steipete merged commit 1690803 into main Sep 23, 2026
412 of 415 checks passed
@steipete
steipete deleted the deslop/06-media-generation-0922 branch September 23, 2026 17:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant