Skip to content

test(agents): use a valid PNG for Windows media URLs - #159770

Closed
steipete wants to merge 1 commit into
mainfrom
deslop/l113-windows-image-fixture
Closed

steipete wants to merge 1 commit into
mainfrom
deslop/l113-windows-image-fixture

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

CLOSED, superseded: #159771 landed the same fixture repair as 7969275f362caa4fb5326f0059dbaf1024e459b4. Current-main ancestry and the retained replacement fixture were verified. This alternative was closed unmerged; no additional PNG change is needed.

What Problem This Solves

Repairs the corrupt PNG fixture in the Windows registered-media-tool test. The native view_image decode check added by #159668 correctly rejects its compressed image data with incorrect data check, so the file-URL test receives zero images before reaching its PDF and generation assertions.

Why This Change Was Made

Generate the one-pixel PNG through the existing createSolidPngBuffer fixture owner. The copied base64 literal has an invalid checksum. The existing generator uses the canonical PNG encoder and is already used by neighboring agent-tool tests.

User Impact

Test-only change. Production decoding, tool outputs, permissions, configuration, the Windows execution gate, and all existing Unicode/space file-URL assertions remain unchanged. No new test or production seam is added.

Evidence

  • Original failure: Windows job 108647126285, exposed while validating refactor(cli): deslop CLI and fix Gateway presence publication #159554. The image was read but rejected during decoding; the assertion received [image:native] omitted image payload: Error: incorrect data check.
  • Independent Codex autoreview is scoped-clean through P2. The final main refresh is patch-identical, and no duplicate fixture fix was present.
  • Exact-head CI run 36331862881 passed on 9b3446a29ec561a8a9a17d59026fc74f5a7d0f73, including all five Windows shards. The specific registered-media-tool case passed in Windows job 108655397585, 1.314 s case execution; the original failing case took 0.619 s before reaching the later PDF/generation assertions. These timings exclude collection and import/setup. Blacksmith Testbox tbx_01m3hvvc8r30qa44fk1cn00mpf (run), Node 24.21.0: the original 68-byte fixture failed standard zlib decoding with incorrect data check; the generated 69-byte 1×1 fixture decoded successfully (0.11 s control). The real image-worker suite passed all four tests (15.48 s command wall), and import-boundary siblings passed all 25 tests (4.38 s). node scripts/check-changed.mjs --base 220a6d0c71aef054f25c4a95afae93040c157d6b passed (247.53 s), and pnpm build passed (379.42 s). Frozen install passed. The proved tree was 448deb5834c2c1870a3b270eddbbf66653295732. Lease stopped and verified completed.

@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Sep 27, 2026
@steipete
steipete marked this pull request as ready for review September 27, 2026 16:04
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 12:29 PM ET / 16:29 UTC (Revision 2).

ClawSweeper review

What this changes

The branch replaces an invalid one-pixel PNG literal in a Windows-only media-tool test with a PNG produced by OpenClaw’s shared image fixture helper.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 3 items remain

Current main fixes the corrupt Windows PNG fixture through #159771. This branch’s alternative fixture now conflicts with that change, and the merged PR did not formally close this PR. Maintainer disposition is needed.

Priority: P3
Reviewed head: 9b3446a29ec561a8a9a17d59026fc74f5a7d0f73
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The small fixture repair has relevant native Windows validation, while current-main overlap and a merge conflict leave its landing value unresolved.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This is a test-only PR classified as member-authored in the supplied repository state. Exact-head Windows CI ran the changed registered-tool test path successfully; the PR body supplies case time but not full one-worker wall time. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a test-only PR classified as member-authored in the supplied repository state. Exact-head Windows CI ran the changed registered-tool test path successfully; the PR body supplies case time but not full one-worker wall time. No stored-data contract changes.
Evidence reviewed 8 items Introduced change: The pinned PR delta replaces the PNG literal with createSolidPngBuffer in the Windows-only test.
Fixture owner: The shared helper creates PNG bytes through the existing RGB PNG encoder.
Decode boundary: Native image-tool results request full decodability verification before reporting a loaded image, explaining why the corrupt fixture failed.
Findings None None.
Security None None.

How this fits together

Agent media tools load local file URLs and turn images into tool results for the model. This Windows test checks an image URL containing Unicode and spaces before continuing to PDF and image-generation assertions.

flowchart LR
 A[PNG test fixture] --> B[Windows file URL]
 B --> C[Registered image tool]
 C --> D[Image decode check]
 D --> E[Image tool result]
 E --> F[Later PDF and generation checks]
Loading

Decision needed

Question Recommendation
Should the shared PNG generator replace the valid fixture merged in #159771? Keep the merged fixture: Retain the passing current-main test and close this alternative branch after maintainer review.

Why: Both approaches fix the test; choosing to replace a just-merged fixture for consistency is a maintainer-owned judgment, and the branches conflict.

Before merge

  • Resolve merge risk (P1) - GitHub reports a conflict at the Windows fixture, so the branch cannot merge without reconciling its generator change with the valid literal already on main.
  • Complete next step (P2) - Choose which fixture to retain. If retaining this branch, resolve its conflict with main and record the full one-worker test wall time.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Tests -2. Total -2 across 1 file.

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

Review metrics

None.

Root-cause cluster

Relationship: superseded
Canonical: #159771
Summary: A merged PR repairs the same corrupt PNG fixture on current main using a different fixture source.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one valid fixture for the Windows registered-media-tool test. Adopt the shared generator only if its consistency benefit warrants replacing the merged literal.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one valid fixture for the Windows registered-media-tool test. Adopt the shared generator only if its consistency benefit warrants replacing the merged literal.

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

No current-main reproduction remains: the merged replacement supplies a valid PNG. The earlier Windows failure is supported by the reported decode error and the affected sanitizer path.

Is this the best way to solve the issue?

Unclear: generating the PNG through the shared helper is maintainable, but current main already has a passing valid fixture, so replacing it needs a deliberate owner choice.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This test-only fixture change has no production behavior impact, and current main already repairs the failing Windows case.
  • 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 is a test-only PR classified as member-authored in the supplied repository state. Exact-head Windows CI ran the changed registered-tool test path successfully; the PR body supplies case time but not full one-worker wall time. No stored-data contract changes.

Label justifications:

  • P3: This test-only fixture change has no production behavior impact, and current main already repairs the failing Windows case.
  • 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 is a test-only PR classified as member-authored in the supplied repository state. Exact-head Windows CI ran the changed registered-tool test path successfully; the PR body supplies case time but not full one-worker wall time. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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 (1 earlier review cycle)
  • reviewed 2026-09-27T16:11:46.456Z sha 9b3446a :: blocked before merge. :: none

@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 27, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #159771 (7969275), which landed the same Windows media-tool PNG fixture repair on main first. Closing unmerged.

@steipete steipete closed this Sep 27, 2026
@RomneyDa
RomneyDa deleted the deslop/l113-windows-image-fixture branch October 22, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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