Skip to content

improve: render chat diagrams with Pele - #184482

Merged
roboclaw-bot merged 10 commits into
mainfrom
roboclaw/pele-chat-renderer
Oct 27, 2026
Merged

roboclaw-bot merged 10 commits into
mainfrom
roboclaw/pele-chat-renderer

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Chat diagrams require a large Mermaid engine and engine-specific build patches across web and native chat.

User Impact

Mermaid fences render through Pele at the existing shared Control UI/Android/Apple owner. Source/copy/expand controls, passive SVG isolation, accessible alternatives and native job envelopes remain. Labels are measured at 14px and small native diagrams retain their natural layout scale within the unchanged bitmap cap. Layout follows Pele rather than pixel-matching Mermaid. No release or deployment is included. Author-fixed light fills remain subject to existing Pele #29.

Landing gates: current-head CI, security, review and native writer authority remain required. The separate notice cleanup #185638 follows this cutover; fixture PR #185676 is not included or qualified by this production PR.

Why This Change Was Made

Replace the engine through the existing renderer and resource owners, without parallel renderers, new settings, global CSP relaxation or relaxed allocation limits. Complete Pele MIT/Lucide ISC notices remain present; obsolete notice retirement is separate. Requested by @vincentkoc.

Work sessions

Evidence

  • Current execution and inheritance: actual checkout 46d36d2e92e81609e76776de678937c3337654f0 has ordered parents 8062b778ad29fc81840b209f4f79444846f42b11 and current head, and tree 08096a678cca041ac1b7760140becd6ba255d1cf equals their successful Git composition. Current failures are consumed-prompt count at chat-send-pending-handoff:517 (job122281942444), exact “1 subagent running” button timeout at chat-header-subagents:211 (job122281942320), and hidden-history count at chat-startup-priority:235 (job122281942317). All three exact signatures independently fail on ancestral scheduled main40523031614, jobs122255220907/122255221059, at 43dc38e6. That main is 33 commits behind the executed base, not an exact-base replay. The entire chat/lib/test-helper/gateway-client/chat-style owner trees and named tests/common fixtures/bootstrap/markdown inputs have identical Git objects across ancestral main, executed base and tested merge. This establishes occurrence before C under unchanged owning inputs; packed bundles/test membership differ and no original-cause, identical-host/order, or zero possible added timing-effect claim is made.

  • Classifier labels are retained: current physical shard3’s main counterpart passed, but the matching header case actually failed in main shard5. Display labels /7 execute /6. The source-qualified case comparison is not a fabricated official table or a job-name-only waiver. All current Android access-native/play/wear/third-party/ktlint jobs passed; the older Android timeout remains unqualified/not reproduced, not claimed fixed or waived. Current security-fast and separate sensitive/dependency guards passed; Actions and the separate Security Review combined CI projection remain failed. Native current protected-publisher/live-authority validation owns admission. No CI rerun or dispatch is selected for these observed test failures.

  • Current head: 166676403a17e57f55731e7f27171f226adf9698, based on accepted main 5a64cfa307a103e210dac28912d7ce11aee81c69. CI 40530254831, attempt 1 is terminal FAILED: 75 jobs, 52 success, 3 UI roots plus failed aggregate, 19 skipped, no cancellations. The three roots are independently source-qualified inherited failures; native admission under the standing landing instruction is selected, not yet claimed successful. All review, security and live writer-authority checks remain required.

  • Repeated actual conflicts in the shared test-budget scalar are resolved by retaining main’s already-approved 6,285,000 ceiling unchanged, removing the renderer-only budget delta entirely. The runtime slice is back to 27 files (+293/−1017); the integrated owner count is 6,283,859 (1,141 slack). The budget reconciliation removes no tests and weakens no assertions, timeouts or verifiers.

  • Fresh renderer/native/component contracts (33 tests) and compiler-discovery tests passed (combined wrapper 40.70s). The actual production Knip workspace scan, strict UI-component test type graph, targeted configuration lint/format and whitespace checks passed. Frozen install plus an independent multi-document lock audit preserves all main upgrades: only the renderer importer changes, only Pele 1.6.0 is added, and 109 removed entries belong entirely to the audited Mermaid closure.

  • Full 27-path independent Codex autoreview against main 5a64cfa3, at tree a202d46bbc333e1266c8e15bcd84dfafbb3c1380, is P0–P2 scoped-clean. It assessed supplied changes and dependency documentation rather than executing tests; the tests above ran separately. Hosted review of earlier 914bda6b found no actionable production defect. Its optional inventory-test note is acknowledged: that cheap case guards explicit compiler roots, while the separately executed production Knip check supplies discovery proof.

  • The actual conflict from accepted main’s native/editor typing repair is resolved without dropping its scoped NativeMermaidWindow type/local declaration, Pele URL, reply-existence assertion or any native cases. That producer change is type declarations only, not runtime JavaScript expressions or geometry. Inspected Android/iPhone/iPad media below retains original executing SHAs and qualified runtime/source equivalence; no paid captures were repeated or physical-device/macOS visual claim added. Earlier measured engine size is 658,047 raw / 227,859 gzip bytes versus about 3.42 MB raw for Mermaid, with the deferred cap tightened from 960 KiB to 256 KiB; these are asset sizes, not end-to-end latency.

  • Historical 864 CI remains failed, not waived: 40521965451, attempt 1 executed ebb60e987ba271e97901deebe72841ef2803dd1d with ordered base 43dc38e6c1370e7682156b8a84ed6fc1abfaa0b7 and head 864ba14c. Its three UI failure signatures match actual-base scheduled main 40523031614; the fourth root, Android registry.close at line 435 after 1,000ms, remains unqualified. A bounded normal-Gradle whole-class pair on that exact base and tested merge each executed 23 cases with no failures/errors/skips, exact Temurin 21.0.12.1 and two-fork JVM profile, unchanged timeouts and normal asset generation. That is not reproduced, not fixed, inherited, original full-lane order or identical-host proof. No old CI exception is selected for the new head.

Earlier source-bound proof and recovery history — historical, not current-head CI

The 914 inherited-CI qualification was prepared, but native admission refused a subsequently introduced main-budget conflict before any replacement merge intent. The original auto request remains confirmed retired; later source repairs do not erase that receipt. These records retain original source/run identities and do not waive current-head CI.

  • Historical 914 CI remained failed, with one independently inherited root: 40513137519, attempt 1 executed 2b86327ae18c032498304b7216ae65d6e81b6d03 (ordered baseline 03d4dc7d7f1cad88576400d0eeaa4255fdfe4ade, head 914bda6b8e4ce968d598306503071c05e8110531), whose tree equals their successful Git composition. All 74 jobs are terminal: 53 success, 2 failure (one root plus aggregate), 19 skipped, none cancelled. UI E2E 3/7 times out at chat-header-subagents.e2e.test.ts:211 waiting for the exact “1 subagent running” button. Scheduled main 40513788150, job 122222802389 independently records the same case, line, locator and 30-second timeout at 200f33bdb28712f25994b4134267515834903d81, four commits after the tested baseline. The failing test, entire chat-page owner tree and all named gateway/details/history/layout fixtures have identical Git objects in the baseline, executed merge and matching scheduled main. This plain-text delegation fixture never enters the diagram renderer. An inherited-failure recovery was prepared for 914, but native admission refused a later scalar conflict before any replacement merge intent. This is not admission or CI qualification for 864. This is not an exact-base replay or a claim to fix the underlying status failure.

  • The classifier could not produce an inherited table from its incomplete snapshot; the attribution above comes from inspected full failure logs and source identity, not a fabricated table. Earlier scheduled main 3a3246e7 had green UI jobs, but the handoff/status owners changed substantially before this tested baseline; that contrary historical observation is retained. security-fast and the independent sensitive-product guard passed. The Security Review same-name CI status remains CI-only red and is separately validated by native admission. No failed-job retry is selected for this observed test failure, and skipped coverage is not called passing.

  • Hosted review: ClawSweeper reviewed exact 914bda6b with no actionable findings and no before-merge production defect. Its advisory configuration-inventory test note is acknowledged: that cheap case guards the three explicit executable Knip roots; it is not the dependency-discovery proof. The separately executed production Knip red/green check supplies that proof. The narrow registration guard is retained rather than claiming it exercises discovery by itself.

  • Historical head 914bda6b8e4ce968d598306503071c05e8110531 resolves another actual scalar-only conflict from accepted main 03d4dc7d7f1cad88576400d0eeaa4255fdfe4ade (the concurrent cron test-ceiling update). The 6,284,000 ceiling is unchanged; the exact integrated count is 6,283,941 (59 slack). Excluding that scalar, the entire production/test delta is patch-identical to reviewed 59c2b762 (0d2b06b5f93bb7d80714f7b14222d301b6bcd8fc); renderer, dependency, build, configuration and wrapper inputs are unchanged across this accepted-main interval. The 33-test, strict-type, frozen-install, lock-audit and independent P0–P2 evidence retains its original 59c2b762 identity. Current published-head CI failed as qualified below; no old run is relabeled as current or green.

  • Previous reviewed head 59c2b762b24b2acf0016668aac7d712b037455e7 incorporates accepted main 9e579cde6fcea3738b771d999dafffacb145d0cd only because its concurrent test-budget scalar update caused a real merge conflict. The existing 6,284,000 ceiling is unchanged; the integrated count is 6,283,880 (120 slack). All 33 renderer/native/component tests (17.20s wrapper), strict UI-component test types, frozen install and the complete main-upgrade-preserving lock audit pass. Local ClawSweeper is unavailable in the authorized review environment; full 28-path Codex autoreview at staged tree dd37f31c856f8314f9f925f43362c163c787a78d, base 9e579cde6fcea3738b771d999dafffacb145d0cd, is P0–P2 scoped-clean. Its CI 40511804342 is historical and is not current-head proof.

  • Historical CI 40507180966, head d27ae0b3db5250334dc969416a3716c0eeb77ee0, remains failed: UI E2E 3/7 expected “Working” but received “Preparing this turn…” in the persisted first-turn fixture; UI E2E 5/7 timed out waiting for the login gate. Its actual checkout is 8fcd295acc64bed46e0d1d35ba3e2a67c2f0bb6d, baseline a4a8f632da0a9a2f5ab8ffc2e66fe2b46693ff6a. The automatic table calls both new using older same-name main passes without selected-scope comparison. These failures are investigated separately; this integration does not claim to fix them or waive any current gate.

  • CI run 40502430677 completed 74 jobs with one root failure: the test-line budget (122184483092), plus its failed aggregate gate. This was a genuine PR budget failure, not an inherited-CI waiver. Its exact checkout reproduced 6,281,719 lines against 6,280,000: main supplied 1,638 of the excess; the renderer adds 81 lines (runtime 58, native 12, compiler discovery 7, E2E SVG capture 4). That failed run remains failed.

  • The first exact-count correction collided with a concurrent accepted-main budget update, so the actual conflict—not merely advancing main—required integration of 3a3246e7c1389c03e933e1f15805306945b1df1c. Only the internal budget scalar conflicted. The integrated owner count is 6,283,012 against main's 6,282,239 ceiling; the justified narrow ceiling is 6,284,000 (988 lines of slack, under 0.016%), preserving every reviewed test and avoiding another zero-headroom budget collision. The owner check is red before / green after. Fresh full-candidate P0–P2 review is clean; all 33 owning tests and the actual strict UI-component test type graph pass.

  • All accepted-main upgrades survive integration: frozen install passes; an independent two-document lock audit changes only the renderer importer, adds only Pele 1.6.0, removes 109 entries entirely within the already-audited Mermaid closure, and finds no changed retained entries or unexpected lost main nodes. No lockfile, verifier, timeout, dependency ignore, test or assertion was hand-weakened. Rendering/capture inputs are unchanged across the newly integrated main interval. Fresh current-head CI, normal security and required reviews still control landing.

  • Current-head CI exposed an unchecked indexed reply in the new native browser regression. Reproduced with the actual strict tsconfig.core.test.ui-components.json leaf (three TS18048 errors), then repaired with a runtime existence assertion—not a cast. That exact test type graph and all eight native browser cases pass after the repair. Earlier production-only UI typechecking did not cover this test graph.

  • CI dependency discovery reproduced a real unused-Pele finding. Knip now models the renderer, native adapter and dynamically selected classic compiler as actual executable roots—no dependency ignore or gate waiver. The scoped production dependency check is red before the repair, green after; all 27 owning discovery tests, targeted typecheck/lint/format and independent P0–P2 review pass.

  • Native images below bind the tested renderer source 5781e9ec8b27e908f12ce89772ff5d54563e1ac9 with the explicit screenshot-fixture overlay. Applying the exact six-file fixture overlay to this independent renderer reconstructs the prior qualified stack tree b20cc4fc57a0b827cf0482fec672092672b0e9d3 exactly. All four renderer commits are patch-equivalent after separation; the actual runtime and captured fixture inputs are unchanged. Later differences are test/discovery metadata, not a new rendering implementation.

  • Actual hosted iPad qualification found a real native scale defect: a small 247px layout was magnified to 1750px tall at a 694-point viewport, exceeding the unchanged 4,194,304-physical-pixel cap at 2×. The native producer now contains small diagrams at their measured layout scale while preserving the exact requested canvas width and all bridge/allocation limits. The production-path browser regression is red before the fix and green after it; eight native-adapter cases pass. This repair has fresh independent P0–P2 review, type/lint/format proof. Actual native captures subsequently passed on Android, iPhone and iPad as shown below; no cap was relaxed.

  • Narrowed from 161 files to 28 files: 27 renderer/build/test paths plus one exact internal test-budget correction, separating additive notices and mechanical retirement. Public Mermaid syntax and native adapter names remain unchanged.

  • Renderer/browser/native-adapter/component contracts: 33 passed (13 + 8 + 12). Quoted font-family preservation now checks the complete stack, not just a generic fallback. The 14px production SVG regression was red at 16px and green after the layout-time change. Removed a constant-error test that no longer exercised truncation; the Unicode-safe bridge remains unchanged.

  • Prior-head production Control UI E2E: 4/4 passed on the refined candidate, including desktop/mobile-web controls and asset-load recovery. All relevant source and image controls remain usable.

  • Current-base UI typecheck, focused lint/format, renderer/native-browser/component tests (33 total), build-contract tests and whitespace checks passed. A native test still importing the retired bundle was repaired and its seven Chromium tests rerun successfully. Prior-head production E2E build and Apple offline asset preparation passed; conditional Swift execution remains unrun locally.

  • Fresh independent P0–P2 review of the reconciled current-base candidate: no actionable findings. The lockfile audit preserves current-main upgrades and changes only the renderer importer and retired dependency closure.

  • Exact pin: Pele 1.6.0, admitted under the seven-day maturity policy when this migration was prepared. No WASM, maturity exception, global CSP relaxation or vendored patch.

  • The previously measured deferred Pele engine remains 658,047 raw / 227,859 gzip bytes, versus about 3.42 MB raw for the custom Mermaid engine. The cap stays tightened from 960 KiB to 256 KiB. These are asset sizes, not end-to-end latency claims.

A natural-resolution raster comparison found the previous exported host stack identical to generic sans-serif in this Linux browser; a lost-font alias was not reproduced. This refinement addresses label/layout scale and strengthens preservation coverage rather than claiming a universal antialiasing fix. Author-fixed light fills remain subject to existing Pele #29.

Before

Mobile-web chat diagrams before Pele

After

Mobile-web chat diagrams after Pele

Desktop context

Before

Desktop chat diagrams before Pele

After

Desktop chat diagrams after Pele

Typography refinement: earlier Pele scale versus layout-time 14px

Before

Earlier Pele label scale

After

Refined Pele label scale

Native before and after

Actual hosted emulator/simulator captures: BEFORE e1e020f9456bba59f00d2c87ceb3ac9815a8dd56 (run 40481859539); AFTER 5781e9ec8b27e908f12ce89772ff5d54563e1ac9 (run 40481874530). Android manifests, iOS manifests, image/xcresult hashes and a single successful device invocation bind these product SHAs independently from workflow source. All three AFTER diagrams are readable and unclipped, inline with the native composer—not fullscreen previews or source/error fallbacks. This does not claim physical-device, live-backend or macOS-specific visual qualification.

Model-selector labels are consistently redacted; the diagram pixels are unchanged.

iPhone

BeforeAfter
Native iPhone before PeleNative iPhone after Pele
Android and iPad contexts

Android

The oversized BEFORE baseline is scrolled: Draft is above the viewport. The AFTER image shows the complete diagram and surrounding reply.

BeforeAfter
Native Android before PeleNative Android after Pele

iPad

The AFTER capture verifies that the natural-scale bitmap fix renders inline instead of the earlier permanent unavailable state.

BeforeAfter
Native iPad before PeleNative iPad after Pele

@clawsweeper

clawsweeper Bot commented Oct 26, 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 docs Improvements or additions to documentation app: android App: android app: ios App: ios app: web-ui App: web-ui scripts Repository scripts size: XL labels Oct 26, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces Mermaid.js with Pele in the shared web and native chat diagram renderer.

Example: Render flowchart TD\nDraft --> Review\nReview --> Ship in native chat.

  • Before: The diagram expands across the available viewport with large labels.
  • After: Pele renders the diagram at its measured scale with 14px labels while retaining copy, source, and expand controls.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent, and supported by inspected product evidence; one added configuration-only test has low value, and pending CI remains a landing gate.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after web and native app captures show rendered diagrams with the intended scale and retained controls; the native captured production owners match this head by verified blob identity, with recorded production Control UI recovery and native simulator execution supporting the visual evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Chat diagrams require a large deferred engine and engine-specific build patches across web and native apps.
Reason: The maintainer-authored direction replaces substantial dependency and bundling machinery while retaining existing diagram controls and isolation; different layout and label scale are explicitly accepted.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a useful, coherent renderer cutover with no actionable production defect found; current-head CI remains pending.

Priority: P2
Reviewed head: 914bda6b8e4ce968d598306503071c05e8110531

Before merge

None.

Findings

None.

Tests

  • Low-value test test/scripts/check-deadcode-exports.test.ts: Remove or replace the added configuration-inventory case: it repeats the three literal Knip roots and can pass while actual dependency discovery remains broken.
Agent review details

How this fits together

The shared renderer receives Mermaid source and host theme values, renders inside an opaque sandbox, and returns sanitized SVG for web images or native bitmap capture.

flowchart LR
A[Chat Markdown] --> B[Shared renderer]
B --> C[Opaque sandbox]
C --> D[Pele compiler]
D --> E[SVG sanitizer]
E --> F[Web diagram image]
E --> G[Native image adapter]
Loading

Technical review

Best possible solution:

Complete the Pele cutover through the existing shared owner while preserving sandbox, source, accessibility, and native resource limits.

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

This is an engine replacement rather than an unresolved bug report; source inspection and supplied product captures establish the changed behavior.

Is this the best way to solve the issue?

The replacement uses the existing rendering and lifecycle owners, removes engine-specific bundler patches, and avoids parallel renderers or new settings.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Sandboxed rendering and passive SVG output keeps the original intent (4ec1c8a: Render completed Mermaid fences lazily while isolating diagram-controlled content and preserving source.)
  • Mermaid-specific compiler and classic layout changes intended behavior with a stated reason (9faca1d: Preserve the supported diagram surface and classic appearance while fitting Mermaid 12 into the isolated deferred bundle.)
  • Shared native adapter and viewport rasterization changes intended behavior with a stated reason (ba7b99e: Share offline rendering and bounded native image delivery with the Control UI renderer.)
  • Apple offline resource admission keeps the original intent (f00e112: Load the shared pinned engine from bundled resources through the native WebKit owner.)
  • Unicode-safe bridge errors keeps the original intent (6ac76df: Keep bounded errors from splitting surrogate pairs across iframe and native bridges.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduction and complete cutover: The introduced diff replaces the engine through the existing renderer, compiler plugin, native adapter, Apple asset admission, and optional-asset classifier; retired runtime imports have no remaining executable consumers. (packages/mermaid-renderer/src/frame.js:47, 914bda6b8e4c)
  • Current main still uses Mermaid: Fetched main retains the Mermaid 12.2.0 dependency, so the engine replacement remains distinct work. (packages/mermaid-renderer/package.json:15, 200f33bdb287)
  • Inspected visual proof and source identity: Inspected the supplied web and Android/iPhone/iPad comparisons. Native after-captures show inline diagrams rather than source or error fallbacks. GitHub blob comparisons verified that the captured frame, renderer, native adapter, compiler plugin, native build configuration, and Apple resource handler match this head. (packages/mermaid-renderer/src/native.ts:39, 914bda6b8e4c)
  • Discussion and accepted direction: The full PR body records the requested Pele cutover and explicitly accepts different layout and 14px labels; maintainer authorship supplies the direction decision. The body’s previously omitted native gallery was read. (914bda6b8e4c)
  • Direct dependency contract: The patch imports and executes Pele 1.6.0. Its pinned source confirms synchronous rendering, host-controlled source/edge/output limits, disabled-link/image options, and no runtime dependencies or install lifecycle hooks. (src/core.ts, 659c3593ce43)
  • Dependency and notice boundaries: Independent lockfile block comparison found only the renderer importer changed, Pele added, and Mermaid-related entries removed, with no changed retained package or snapshot entries. The additive notices prerequisite chore: add Pele notices before the renderer cutover #185586 is merged; notice retirement remains separate. (pnpm-lock.yaml:2977, 914bda6b8e4c)

Likely related people:

  • Vincent Koc: Raw commit 9faca1d adds packages/mermaid-renderer/vite-plugin.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9faca1d10477; files: packages/mermaid-renderer/vite-plugin.ts)
  • Peter Steinberger: Raw commit 4ec1c8a adds ui/src/components/markdown-mermaid.runtime.ts:308 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4ec1c8ad0393; files: ui/src/components/markdown-mermaid.runtime.ts)
  • Ben.Li: Raw commit 6ac76df adds packages/mermaid-renderer/src/native.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6ac76df43b1e; files: packages/mermaid-renderer/src/native.ts)

PR surface

Source -32, Tests +112, Docs +2, Config 0, Other -806. Total -724 across 28 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 13 100 132 -32
Tests 7 156 44 +112
Docs 2 20 18 +2
Config 1 1 1 0
Generated 0 0 0 0
Other 5 17 823 -806
Total 28 294 1018 -724

Review metrics

Metric Value Why it matters
Deferred renderer gzip budget 960 KiB → 256 KiB The existing performance owner tightens the deferred-engine cap without relaxing startup budgets; this establishes an asset-size improvement, not a latency claim.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: A bounded improvement to shared chat diagrams with demonstrated visual value and no urgent user-facing failure established.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-26T10:31:25.264Z sha 94b2ec2 :: needs maintainer review before merge. :: none

Reviewed October 27, 2026, 9:44 AM ET / 13:44 UTC (Revision 2).

@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/pele-chat-renderer branch from 94b2ec2 to e30de4a Compare October 27, 2026 06:48
@roboclaw-bot
roboclaw-bot changed the base branch from roboclaw/pele-chat-contracts to roboclaw/pele-license-prerequisite October 27, 2026 06:48
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed app: android App: android app: ios App: ios size: XL labels Oct 27, 2026
@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/pele-license-prerequisite branch from a146340 to c0e2df9 Compare October 27, 2026 07:38
Base automatically changed from roboclaw/pele-license-prerequisite to main October 27, 2026 07:57
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: ios App: ios size: L and removed size: M labels Oct 27, 2026
@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/pele-chat-renderer branch from e30de4a to 5a29e39 Compare October 27, 2026 08:20
@roboclaw-bot
roboclaw-bot changed the base branch from main to roboclaw/pele-native-proof-baseline-current October 27, 2026 08:20
@openclaw-barnacle openclaw-barnacle Bot added size: M and removed app: android App: android app: ios App: ios size: L labels Oct 27, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 166676403a17e57f55731e7f27171f226adf9698
  • Maintainer: @roboclaw-bot
  • Repository role: maintain

These dependency graph changes were made:

  • pnpm-lock.yaml
  • packages/mermaid-renderer/package.json

Carefully review these changes before merging.

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 27, 2026 12:22
@roboclaw-bot
roboclaw-bot disabled auto-merge October 27, 2026 12:29
roboclaw-bot and others added 3 commits October 27, 2026 12:35
Set the internal test-line ceiling to the exact 6,281,719 lines reproduced from CI merge bd0a65edb2874fd41fb598b98b4fb4c6258271ee, with zero headroom. The main input already exceeds the old ceiling by 1,638 lines; this renderer contributes 81 lines of diagram, font, native-cap and compiler-root proof. Preserve the full reviewed tests rather than delete contracts to satisfy a line count. The original CI failure remains recorded; new-head CI is still required.

Co-authored-by: vincentkoc <[email protected]>
Resolve the actual budget conflict with accepted main 3a3246e. Preserve all current-main upgrades and the unchanged renderer tests. The exact integrated owner count is 6,283,012 lines; the internal ceiling is rounded narrowly to 6,284,000 (988 lines of slack) to avoid the zero-headroom collision observed with the concurrent main budget update. The sole lockfile importer delta is the renderer, with only the audited retired Mermaid closure lost and Pele added; frozen install, all 33 owning tests and strict UI-component test types pass. Full candidate independent P0–P2 review is clean. Fresh current-head CI remains required.

Co-authored-by: vincentkoc <[email protected]>
Resolve the actual concurrent test-budget conflict against accepted main 9e579cd. Preserve the previously justified 6,284,000 ceiling and every test/assertion. The integrated owner count is 6,283,880 (120 lines of slack). Frozen install, the complete 33-test renderer/native/component proof and strict UI-component test type graph pass. The multi-document lock audit retains every main upgrade, changes only the renderer importer, adds Pele and removes only the audited Mermaid closure. Independent full-candidate P0–P2 autoreview is scoped-clean at tree dd37f31. Historical two-root E2E failure remains unresolved evidence; fresh current-head CI is required.

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

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​pele@​1.6.010010010098100

View full report

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Resolve the actual scalar-only conflict introduced by accepted main a6be2f6, integrating the native privately captured main03d4dc7d7f1cad88576400d0eeaa4255fdfe4ade. Preserve the previously reviewed6,284,000 ceiling without removing tests or weakening assertions. The exact integrated count is6,283,941 with59 lines of slack. The complete production/test delta excluding that internal scalar is patch-identical (0d2b06b5f93bb7d80714f7b14222d301b6bcd8fc) to reviewed59c2b762. No renderer, dependency, build/config, or wrapper inputs changed across this main interval. Reuse the33-test, strict-type, frozen-install, lock-audit and independent P0–P2 proof at its original59c2b762 source identity; fresh published-head CI remains required.

Co-authored-by: vincentkoc <[email protected]>
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 27, 2026
roboclaw-bot and others added 2 commits October 27, 2026 14:30
Resolve the actual concurrent budget conflict by retaining accepted main4f78407ee8fcd8391cbea3eb1105141c89ea5915's existing6,285,000 ceiling unchanged. This removes the renderer-only budget delta instead of carrying another private scalar override. The final renderer scope is27files with every test/assertion preserved; the integrated count is6,283,679 (1,321slack). Frozen install, compiler-discovery scan, owning renderer/native/component and compiler-discovery tests, strict UIcomponent test types, targeted configuration lint/format and main-upgrade-preserving lock audit pass. Fresh full27-path P0–P2 autoreview is scoped-clean at tree89f0cb632cc3b9cdddc984182013c5681cef50c7. Earlier failed CI and refused native recoveries remain historical; new published-head CI is required.

Co-authored-by: vincentkoc <[email protected]>
Integrate accepted main 5a64cfa to resolve the actual native browser-fixture import conflict. Preserve the upstream scoped NativeMermaidWindow type without dropping the Pele entry, runtime reply-existence assertion or any of the eight native cases. The accepted declaration changes add no runtime JavaScript expression changes.

Retain main's test ceiling unchanged: 6,283,859 measured against 6,285,000. Fresh renderer/native/component and compiler-discovery tests pass (40.70s combined wrapper), as do strict UI-component test types, actual production Knip discovery, fixture lint/format, frozen install and the main-preserving lock audit. Full 27-path P0–P2 autoreview is scoped-clean at tree a202d46. Old CI 40521965451 remains failed, including an unqualified Android close timeout; no old failure exception or fix is claimed for this new candidate. New published-head CI remains required.

Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit 7a95ec8 into main Oct 27, 2026
133 of 138 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/pele-chat-renderer branch October 27, 2026 16:08
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

roboclaw-bot added a commit that referenced this pull request Oct 27, 2026
Retire obsolete Mermaid-only native distribution notices after #184482. Preserve complete Pele MIT/Lucide ISC, DOMPurify, KaTeX, native Markdown and independent font/icon attributions.

The 139-file notice-only delta is unchanged from the audited split (patch d8455a68141e0f7904a223144f588977491ab0fa); current-main native renderer fixtures and runtime are preserved.

Packaged Android license tests passed 4/4 with actual asset generation and app/test compilation; app Kotlin lint, frozen install, inventory audit and independent P0-P2 review passed. CI 40540091132/1 failed on three source-qualified inherited UI cases plus their aggregate, not a green run. Selected native/Android lanes and standalone security guards passed; Apple build/snapshot UI coverage does not establish changed Swift license-unit-test execution.

Requested by @vincentkoc.

Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
Replace the shared chat-diagram engine with Pele while retaining passive SVG isolation, native bridge envelopes, accessibility, source/copy/expand controls and existing allocation limits. Preserve complete Pele/Lucide notices; retire obsolete notices separately.

The actual concurrent main test-budget conflicts were resolved without removing tests or weakening assertions. The integrated renderer/native/component tests, strict test type graph, frozen install, lock audit and independent P0–P2 review passed. Native Android/iPhone/iPad before-and-after evidence retains its original source identities.

CI remains failed on three independently observed inherited chat history/delegation fixture signatures with unchanged owning inputs. The native inherited-only exception preserves that failed outcome; it does not claim a test fix or waive security/review. Current Android coverage passed.

Requested by @vincentkoc.

Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
Retire obsolete Mermaid-only native distribution notices after openclaw#184482. Preserve complete Pele MIT/Lucide ISC, DOMPurify, KaTeX, native Markdown and independent font/icon attributions.

The 139-file notice-only delta is unchanged from the audited split (patch d8455a68141e0f7904a223144f588977491ab0fa); current-main native renderer fixtures and runtime are preserved.

Packaged Android license tests passed 4/4 with actual asset generation and app/test compilation; app Kotlin lint, frozen install, inventory audit and independent P0-P2 review passed. CI 40540091132/1 failed on three source-qualified inherited UI cases plus their aggregate, not a green run. Selected native/Android lanes and standalone security guards passed; Apple build/snapshot UI coverage does not establish changed Swift license-unit-test execution.

Requested by @vincentkoc.

Co-authored-by: vincentkoc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 14, 2026
Update only the Control UI and shared Mermaid renderer DOMPurify pins from
3.4.16 to 3.4.17 for #196925. Regenerate the matching pnpm importers,
package integrity, snapshot, and Mermaid transitive resolution using pnpm.

Release adaptation: extract only the DOMPurify portion of the broad
93-file dependency refresh in #178071. Keep all other release dependency
versions, overrides, patches, and runtime source unchanged. Generate the
lock with pnpm 12.15.0 in this independently owned worktree; no shared
install or parent checkout changes.

Companion closure: both direct consumers and Mermaid's transitive edge
resolve 3.4.17 with the source commit's exact integrity. Later same-path
changes #179116, #181047, #182010, #182251, #184482, #185194, #188576,
#189983, #189746, #192352, #194544, #180292 and 9651d63 are
not prerequisites: other dependency updates, UI features/test setup, or
the deliberately excluded Mermaid-to-Pele migration. Later source-PR
mentions 8c9a696, b394c80 and #178708 concern plugin publish
docs, MCP Apps ownership and the security-review token action, not DOMPurify. No DOMPurify API or consumer
code companion is required for this patch-only version substitution.

Validation: isolated frozen-lockfile install; 27 Markdown boundary tests;
shared Mermaid renderer production build; dependency-pin guard (749
specifications, zero violations); exact-only manifest/lock delta audit;
git diff --check. Browser Mermaid tests remain unqualified: Chromium
cannot load libatk-1.0.so.0 on this host. No broad release qualification
or publication is claimed.

(cherry picked from commit f91bca9)

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit 9fd8f627dcfcd8553cf634474678587893d03992)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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