Repository navigation
fix: restore bundled Mermaid parser license notices - #157461
Conversation
Keep Chevrotain and parser-support attributions for implementation embedded in the pinned Mermaid classic bundle. Restore the original license texts in the Android and iOS catalogs and shared native notice, and update the packaged Android inventory regression. Preserve the existing ELK removal and renderer inputs.
|
🦞👀 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. Reviewed September 25, 2026, 4:28 PM ET / 20:28 UTC (Revision 5). ClawSweeper reviewWhat this changesAdds Mermaid parser dependency notices to Android, iOS, and shared Apple renderer resources, extends Android's packaged-license check, and makes Swift compact-command tests wait for completion. Merge readiness✅ Ready for maintainer review Keep open: current main and v2026.9.6 still lack native notices for parser code in the pinned Mermaid bundle. The earlier merged renderer cleanup does not supply this correction, and the current patch has no demonstrated blocking defect. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw packages a pinned Mermaid diagram bundle for native chat. Android and iOS read bundled license files for their Licenses screens, and the renderer build copies a shared notice into Apple resources. flowchart LR
A[Pinned Mermaid bundle] --> B[Dependency notice audit]
B --> C[Android license files]
B --> D[iOS license files]
B --> E[Shared renderer notice]
C --> F[Android Licenses screen]
D --> G[iOS Licenses screen]
E --> H[Apple renderer resources]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +398, Tests +9, Other +691. Total +1098 across 21 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one audited set of license texts for parser code present in the pinned classic bundle and distribute it through the existing Android and Apple notice paths. Do we have a high-confidence way to reproduce the issue? Yes, from source: the pinned bundle contains the parser libraries while current main lacks their native notices. No device reproduction was performed. Is this the best way to solve the issue? Yes. The patch uses the existing native notice owners and makes the Swift test wait for the result it already asserts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 169da0025a2f. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Merged via squash.
|
* fix(native): restore bundled Mermaid parser notices Keep Chevrotain and parser-support attributions for implementation embedded in the pinned Mermaid classic bundle. Restore the original license texts in the Android and iOS catalogs and shared native notice, and update the packaged Android inventory regression. Preserve the existing ELK removal and renderer inputs. * chore: refresh Mermaid notices onto current main * test(chat): wait for compact commands to settle * chore: incorporate team reports test import fix Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
The native license catalogs omit parser libraries embedded in the bundled Mermaid engine.
User Impact
Android and iOS packages include the missing upstream license notices. The shared Apple renderer resources retain the same notices.
Why This Change Was Made
Mermaid's classic bundle still embeds Chevrotain, Langium, and parser-support libraries after the renderer cleanup in #157161. This restores nine notice entries, preserves their upstream license texts, and extends the existing Android packaged-asset inventory assertion. Newer JNA, libffi, and libsodium notices remain intact.
The old CI also exposed an insufficient readiness check in the Swift compact-error test: its fake transport records invocation before the awaited operation settles. Three existing predicates now wait for the exact call list and the existing submission owner to retire before checking the unchanged error/retry result. This preserves the public
/compactpath, deadlines, assertions, and deliberately in-flight concurrency test.Evidence
Current candidate
7428266b640aincorporates mainb6577e17b2c0fc7a8cf26033fd7a2a94199e7684, including the owning Team Reports test-import repair7c4866c7. All 21 PR paths retain the identical added/deleted patch lines after this mechanical refresh; the two completed independent reviews are reused, not claimed as newly rerun. The 19 notice-file postimages are identical to the original PR. All nine Android/iOS pairs match, and all twelve upstream package license bodies, including the Chevrotain subpackages, are preserved after line-ending normalization. The source inventories contain 95 Android and 85 iOS notices; these are source counts, not a fresh packaged-runtime result. Independent P0–P2 reviews of the refreshed notice change and the separate Swift test correction found no actionable findings. Diff checks pass.Historical proof on
cf1d310b: native renderer generation and Apple resource preparation passed; all four Android license tests passed and all 92 then-packaged Android notices matched their source texts. The focused Android command took 164.55 seconds including compilation; test bodies took 5.62 seconds. Those results retain their original attribution and are not presented as fresh tests of this candidate.Earlier CI 36037968095 tested merge
e6416865(cf1d310bplus0eecafaf). Its UI menu failure has the relevant fixture repair #157494 (2019fd9288c9) incorporated here. Its sole macOS package failure was the compact generic-error assertion among 1,785 tests. The source establishes that the old transport-call predicate can precede error publication; the log does not reveal the historical executor schedule or actual error value. No reconstruction of that schedule is claimed.CI 36176488439 stopped in extension test types on tested merge
09a7b2d7(98d31175plus mainebdf8ab4): the Team Reports scheduler test still imported a barrel removed by #157819, causing TS2307 and lost contextual typing. The notice/Swift patch does not touch that code. The now-incorporated owning main fix7c4866c7uses the two existing source-owner imports; its code and ancestry were verified. Other cancelled jobs are not passes. Fresh CI 36181002743 passed on exact7428266b640a158e890745374a2afd5c835d938f, testing merge541755ac14d9f4eabb2fb13adf577f9e15571363. Android play/third-party/wear tests, native access, ktlint, both macOS Swift jobs, extension test types, and iOS screenshot evidence all passed. The current Android report verifies all four license tests (0 skips/failures/errors): 5.9 seconds for the class, including 5.08 seconds for the 95-name packaged-asset assertion; the whole third-party Gradle gate took 433 seconds. The artifact ZIP digest matches the CI upload record. Current CI also rebuilt Mermaid and ran the maintained Apple resource preparation. The parallel OpenClawKit run passed 1,796 tests in 33.271 seconds; the two modified error/retry cases passed in 4.688/4.865 seconds. These are CI case/suite times, not isolated file command timings. The prepared deterministic Swift ordering control has not run. The synchronization correction adds no tests, sleeps, retries, process boots, or longer deadlines; fresh CI timings are recorded above. No iOS device or simulator test was run.The separate Shared OpenClawKit Periphery run 36181002368 fails on
GatewayExternalAuthorizationError, its initializer, anderrorDescription. Source/history review confirms those are dormant authorization scaffolding introduced by #157454, outside this PR's changed paths; the concrete production consumer remains in held #147244. This is a real unused-code finding, not an infrastructure failure or claimed scanner false positive. Removing only the three declarations would break the retained dependent scaffolding, while activating the held stack is outside this fix. No suppression, baseline change, or retry was used. The enforcedopenclaw/ci-gateand complete ordinary CI both pass on the current head.