Repository navigation
improve: render chat diagrams with Pele - #184482
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces Mermaid.js with Pele in the shared web and native chat diagram renderer. Example: Render
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -32, Tests +112, Docs +2, Config 0, Other -806. Total -724 across 28 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 27, 2026, 9:44 AM ET / 13:44 UTC (Revision 2). |
94b2ec2 to
e30de4a
Compare
a146340 to
c0e2df9
Compare
e30de4a to
5a29e39
Compare
|
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]>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
@clawsweeper review |
|
🦞👀 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]>
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]>
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
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]>
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]>
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]>
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)
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
Original discussion with @vincentkoc
Implementation and verification
Further implementation and verification
Evidence
Current execution and inheritance: actual checkout
46d36d2e92e81609e76776de678937c3337654f0has ordered parents8062b778ad29fc81840b209f4f79444846f42b11and current head, and tree08096a678cca041ac1b7760140becd6ba255d1cfequals their successful Git composition. Current failures are consumed-prompt count atchat-send-pending-handoff:517(job122281942444), exact “1 subagent running” button timeout atchat-header-subagents:211(job122281942320), and hidden-history count atchat-startup-priority:235(job122281942317). All three exact signatures independently fail on ancestral scheduled main40523031614, jobs122255220907/122255221059, at43dc38e6. 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 main5a64cfa307a103e210dac28912d7ce11aee81c69. 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 treea202d46bbc333e1266c8e15bcd84dfafbb3c1380, is P0–P2 scoped-clean. It assessed supplied changes and dependency documentation rather than executing tests; the tests above ran separately. Hosted review of earlier914bda6bfound 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
NativeMermaidWindowtype/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
ebb60e987ba271e97901deebe72841ef2803dd1dwith ordered base43dc38e6c1370e7682156b8a84ed6fc1abfaa0b7and head864ba14c. 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 baseline03d4dc7d7f1cad88576400d0eeaa4255fdfe4ade, head914bda6b8e4ce968d598306503071c05e8110531), 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 atchat-header-subagents.e2e.test.ts:211waiting for the exact “1 subagent running” button. Scheduled main 40513788150, job 122222802389 independently records the same case, line, locator and 30-second timeout at200f33bdb28712f25994b4134267515834903d81, 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
3a3246e7had green UI jobs, but the handoff/status owners changed substantially before this tested baseline; that contrary historical observation is retained.security-fastand 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
914bda6bwith 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
914bda6b8e4ce968d598306503071c05e8110531resolves another actual scalar-only conflict from accepted main03d4dc7d7f1cad88576400d0eeaa4255fdfe4ade(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 reviewed59c2b762(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 original59c2b762identity. Current published-head CI failed as qualified below; no old run is relabeled as current or green.Previous reviewed head
59c2b762b24b2acf0016668aac7d712b037455e7incorporates accepted main9e579cde6fcea3738b771d999dafffacb145d0cdonly 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 treedd37f31c856f8314f9f925f43362c163c787a78d, base9e579cde6fcea3738b771d999dafffacb145d0cd, 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 is8fcd295acc64bed46e0d1d35ba3e2a67c2f0bb6d, baselinea4a8f632da0a9a2f5ab8ffc2e66fe2b46693ff6a. 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.jsonleaf (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
5781e9ec8b27e908f12ce89772ff5d54563e1ac9with the explicit screenshot-fixture overlay. Applying the exact six-file fixture overlay to this independent renderer reconstructs the prior qualified stack treeb20cc4fc57a0b827cf0482fec672092672b0e9d3exactly. 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
After
Desktop context
Before
After
Typography refinement: earlier Pele scale versus layout-time 14px
Before
After
Native before and after
Actual hosted emulator/simulator captures: BEFORE
e1e020f9456bba59f00d2c87ceb3ac9815a8dd56(run 40481859539); AFTER5781e9ec8b27e908f12ce89772ff5d54563e1ac9(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
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.
iPad
The AFTER capture verifies that the natural-scale bitmap fix renders inline instead of the earlier permanent unavailable state.