Skip to content

improve: qualify native diagrams in screenshot scenes - #185676

Merged
roboclaw-bot merged 5 commits into
mainfrom
roboclaw/pele-native-proof-baseline-current
Oct 28, 2026
Merged

roboclaw-bot merged 5 commits into
mainfrom
roboclaw/pele-native-proof-baseline-current

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Native store-screenshot fixtures do not include a diagram, so their captures cannot qualify a shared diagram-engine change.

User Impact

No production behavior changes. The existing Android and iOS screenshot scenes include the same synthetic Draft → Review → Ship diagram, and capture waits for the production renderer’s accessible diagram image rather than accepting source-only or loading output.

Why This Change Was Made

Keep fixture readiness separate from the renderer migration in #184482. Existing screenshot names, empty-chat behavior, and Apple Review demo are preserved. Requested by @vincentkoc.

Work sessions

Evidence

  • Matched native captures passed on Android, iPhone and iPad using product source e1e020f9456bba59f00d2c87ceb3ac9815a8dd56 (run 40481859539). Images and source-bound manifests are verified; the runtime PR gallery embeds the inspected comparison.

  • The added diagram exposed an older typography test assumption: a lazy-list message was not composed yet. The consumer now scrolls through the owning lazy list before measuring it, retaining the displayed assertion and 1 → 1.4 → 1 checks. Red on both Play/ThirdParty; the complete class passes 19/19 on each variant. This test-only follow-up does not change the captured app or fixtures.

  • Android fixture runtime: 5 passed. The full-script readiness regression was red with the observed offscreen-prose timeout and green after selecting the rendered-image description; screenshot suite: 6 passed, one existing ImageMagick-dependent skip. The synthetic manifest Git boundary is isolated from ambient repository discovery.

  • iOS evidence consumers: 32 passed. Hosted qualification compiled the actual app and passed all four snapshot cases on both iPhone and iPad in the source-bound run above; this is native Swift/WebKit execution, not web-only or synthetic proof.

  • Focused ktlint, ShellCheck, Bash syntax, whitespace checks and independent P0–P3 review passed. Android/iOS diagram markdown matches byte-for-byte.

  • A synthetic ADB boundary probe rejected source-only output and waited for the accessible diagram image. This is harness proof, not a native screenshot.

  • Six-file fixture and consumer slice. Actual old Android before/after runs rendered the diagram but could not capture because the former prose marker was offscreen; readiness now selects the rendered image. Inspected old iPhone captures also revealed that a keyboard-dismissal tap accidentally opened the diagram preview. The tap now uses the transcript gutter, and capture rejects a preview and requires a hittable inline diagram.

  • iOS scene-ownership structural check passed; six unchanged Ruby-backed Fastlane cases could not execute locally because Ruby is unavailable. Hosted iPhone and iPad capture then compiled/executed the actual app, passed all four snapshot cases per family in one invocation, and produced source-verified inline images. The earlier full-screen images were rejected.

  • Previous-head PR CI (40497885113), head 60b0c25f38f997156d3688b6128bb65fd89e9d20: Android Play, Wear, ktlint, both native-access jobs, iOS screenshot capture/evidence, and the selected changed-Node/check lanes passed. Android ThirdParty job 122168571335 exceeded its 20-minute job deadline while Gradle was running unit tests. The log reports cancellation, not a failing test case, and test-report upload was skipped. Consequently the required CI gate failed. This cancellation is not passing coverage and has not been qualified as an inherited failure; no CI exception or rerun was used.

  • Current-main conflict repair: resolved the actual screenshot-test conflict with fix(android): reduce store screenshot contention and retain diagnostics #186110 at main 228596060e33dfcddbb6740416f381daac6f84fe, keeping the retired source-mirroring assertions removed and preserving current diagnostics/build-order boundary coverage. The six-file candidate remains fixture/capture/test-only (+104/-7 against that base), with no renderer implementation change. Screenshot suite: 8 passed, one existing ImageMagick-dependent skip (1.28 s Vitest; 2.42 s launcher wall). The readiness regression fails against that current-main script (capture at source/loading dump 1) and passes with the candidate (rendered dump 3). Typed lint, format, Bash syntax, ShellCheck with its sourced helper, whitespace checks, and independent P0–P3 Auto Review passed. This is a real conflict repair, not a retry of the unqualified historical timeout; fresh current-head CI 40627265580, attempt 1, passed on 78ff15a7abf75dcb468699ed11a15a8e02232bef. Android Play, ThirdParty, Wear, both native-access jobs, ktlint, iOS capture/evidence and the required Actions gate succeeded. The unselected full Android screenshot/release jobs remain skipped, not passing coverage; the existing inspected native before/after qualification remains linked above.

Seed the existing native screenshot chat fixtures with the same synthetic release flowchart. Wait for the production renderer image before capturing, retaining existing fixture text and screenshot names.

Co-authored-by: vincentkoc <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 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 app: android App: android app: ios App: ios scripts Repository scripts size: XS labels Oct 27, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds matching diagrams to Android and iOS screenshot fixtures and waits for rendered diagram accessibility elements before capture.

Example: Capture the native chat screenshot containing Draft → Review → Ship.

  • Before: The scene contains no diagram and readiness checks cannot establish successful diagram rendering.
  • After: The scene includes the flowchart and capture waits for the renderer’s Mermaid diagram element.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent, with supporting test claims but incomplete native qualification.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored fixture PR is outside the ordinary contributor proof gate; its reported tests and synthetic ADB probe support the change, while the inspected linked screenshots demonstrate web rendering rather than the native capture paths.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Native screenshot captures cannot qualify diagram rendering when their chat fixtures contain no diagram.
Reason: Maintainer authorship establishes direction, and the change adds meaningful native rendering coverage without expanding the product surface.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored draft adds useful native screenshot coverage for the linked renderer migration, and no definite introduced code defect was found.

Priority: P3
Reviewed head: d9dbf4d1dc3ed477743a30ef4f224b5f3824161c

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The recorded draft hold still needs Android and iOS native captures showing the seeded flowchart after successful rendering, including Apple Swift/WebKit execution; these were not demonstrated by the reported tests or synthetic ADB probe.
Agent review details

How this fits together

Local screenshot fixtures supply synthetic chat messages to the native production renderers; Android ADB checks and iOS UI tests determine when store screenshots can be captured.

flowchart LR
  A[Synthetic chat fixtures] --> B[Native chat views]
  B --> C[Production diagram renderer]
  C --> D[Accessible rendered image]
  D --> E[Screenshot readiness checks]
  E --> F[Store screenshots]
Loading

Technical review

Best possible solution:

Keep diagram fixtures and successful-render waits in the existing screenshot owners, separate from the renderer replacement.

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

This is a coverage improvement rather than a reported product malfunction; source inspection confirms that the original screenshot scenes lacked diagrams.

Is this the best way to solve the issue?

The diff is a small, complete extension of existing fixture and readiness owners, with no redundant renderer, wrapper, state, or test scaffolding.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • iOS screenshot fixture separation keeps the original intent (377f618: Provide local screenshot fixture behavior separately from Apple Review demo behavior.)
  • Android deterministic screenshot readiness keeps the original intent (f163f32: Capture production screens with deterministic local fixtures and wait for scene readiness.)
  • iOS composer interaction before capture keeps the original intent (fix(ios): keyboard unavailable after tapping chat composer #120723: Ensure tapping the composer retains keyboard focus and permits typing before screenshot capture.)
  • Android latest-reply fixture content keeps the original intent (68ec50d: Show a conversation in the screenshot fixture rather than an empty chat.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Source +12, Tests +1, Other +7. Total +20 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 14 2 +12
Tests 1 1 0 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 7 0 +7
Total 4 22 2 +20

Labels

Label changes:

  • add P3: This improves screenshot qualification without changing normal user behavior or addressing an urgent production failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This improves screenshot qualification without changing normal user behavior or addressing an urgent production failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Complete the native screenshot qualification already recorded in the draft hold.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 27, 2026, 4:34 AM ET / 08:34 UTC.

roboclaw-bot and others added 2 commits October 27, 2026 09:28
Use the rendered Mermaid image description as phone chat readiness because the latest reply prose can be offscreen. Keep the scene-specific readiness owner and remove its redundant second image check.

Co-authored-by: vincentkoc <[email protected]>
Dismiss the iOS keyboard through the transcript gutter and reject an accidentally opened diagram preview. Isolate the synthetic Android manifest Git command from ambient repository discovery.

Co-authored-by: vincentkoc <[email protected]>
Locate the older fixture message through the lazy list before asserting visibility, matching the existing scale-transition scrolls. Keep the real chat and default/largest/default font-scale checks unchanged.

Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 27, 2026 11:40
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 27, 2026 11:58
@roboclaw-bot
roboclaw-bot disabled auto-merge October 28, 2026 03:27
Resolve the real screenshot test conflict with current main while retaining its removal of source-mirroring assertions. Preserve the behavioral rendered-image readiness regression and all current capture diagnostics tests.

Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit af1b5e2 into main Oct 28, 2026
114 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/pele-native-proof-baseline-current branch October 28, 2026 03:56
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
* test(native): capture Mermaid diagrams in store screenshots

Seed the existing native screenshot chat fixtures with the same synthetic release flowchart. Wait for the production renderer image before capturing, retaining existing fixture text and screenshot names.

Co-authored-by: vincentkoc <[email protected]>

* fix(android): wait for visible screenshot diagram

Use the rendered Mermaid image description as phone chat readiness because the latest reply prose can be offscreen. Keep the scene-specific readiness owner and remove its redundant second image check.

Co-authored-by: vincentkoc <[email protected]>

* test: keep native diagram captures in inline chat

Dismiss the iOS keyboard through the transcript gutter and reject an accidentally opened diagram preview. Isolate the synthetic Android manifest Git command from ambient repository discovery.

Co-authored-by: vincentkoc <[email protected]>

* test(android): scroll lazy chat before measuring typography

Locate the older fixture message through the lazy list before asserting visibility, matching the existing scale-transition scrolls. Keep the real chat and default/largest/default font-scale checks unchanged.

Co-authored-by: vincentkoc <[email protected]>

---------

Co-authored-by: vincentkoc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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