Repository navigation
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. Reviewed October 8, 2026, 7:34 AM ET / 11:34 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch preserves balanced and nested parentheses in Tlon Markdown link and image destinations. Example: Send See math! through Tlon
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR addresses a distinct formatting defect still present on current main. The focused repair has sufficient built-CLI boundary proof, and no actionable patch defect or contributor-facing blocker remains. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Tlon plugin converts outgoing Markdown into native message content before sending it to an Urbit ship. Direct messages, group posts, thread replies, and media captions share this converter. flowchart LR
A[Outgoing Markdown] --> B[Tlon message converter]
B --> C[Link or image destination]
C --> D[Track balanced parentheses]
D --> E[Native links and image blocks]
E --> F[Direct message or group sender]
F --> G[Urbit HTTP transport]
Technical reviewBest possible solution: Keep destination balancing in the existing Tlon converter while preserving native message shapes and bare-URL punctuation handling. Do we have a high-confidence way to reproduce the issue? Yes: current main's explicit-destination expressions truncate Function_(mathematics), and the supplied baseline CLI observations demonstrate the same failure at the HTTP boundary. No target code was executed during this review. Is this the best way to solve the issue? Yes: one shared destination scanner repairs links and images at their existing owner without adding configuration, dependencies, or a parallel formatting path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bfc578fa5ef7. Provenance checked
TestingProof path: shipped entry point. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +22, Tests +16. Total +38 across 2 files. View PR surface stats
LabelsLabel changes: No label 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)
|
|
Landed in ac61a40. Thanks @ly85206559! Verified through the real Tlon send path against a mock ship in DMs, groups and threads: links and images with parenthesized URLs now keep the full href, and ordinary links are unchanged. |
) Keep the full destination for Tlon Markdown links and images whose URL contains balanced parentheses (for example Wikipedia `Function_(mathematics)`), instead of cutting the href at the first `)`. Ordinary links, bare URLs and parenthesized text are unchanged. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes: Tlon messages contain broken links or image URLs when a Markdown destination includes balanced parentheses, such as Wikipedia's
Function_(mathematics)URL.User Impact
User impact: labeled links and inline images keep their complete destinations in direct messages, group posts, and thread replies. No configuration, dependency, or public API changes are required.
Why This Change Was Made
The existing story parser stops at the first closing parenthesis, even when it belongs inside the destination. Match the balanced destination in that same owner for both links and images; keep bare-URL punctuation handling and native message encoding unchanged. This follows the bare-URL repair in #164828 without changing the Markdown surface more broadly.
Evidence
9a06576ccd33dacf8fb7f00d86f15879c2dd696f; two commits, two files. The temporary proof workflow and harness are not part of this PR.pnpm openclaw message sendcommand and registered, compiled Tlon plugin, with 12 independent fixtures across DM/group/thread: 12 defect observations plus 24 controls. The baseline sends a truncatedhref/image.srcto the synthetic Urbit HTTP boundary; every command exits successfully and each send has exactly one login and one poke. V8 witnesses show both compiledmarkdownToStoryandparseInlineMarkdownexecuting. All 36 isolated states and loopback servers are cleaned up.node scripts/check-changed.mjs -- extensions/tlon/src/urbit/story.ts extensions/tlon/src/urbit/story.test.tschecks (including formatting, extension/test types, lint, dead exports, boundaries, and cycles), andpnpm buildpassed. All 36 built CLI cases now emit the complete expected native payloads; command exits are 0, no timeouts, one login/poke per case, two positive compiled-parser witnesses per case, and all state/server cleanup records are true. The same 24 controls remain correct.owner-tests.json,sibling-tests.json,changed-checks.log,build.log, andcli/summary.json. Frozen proof tools and workflow stay on a separate fork-only branch. Test/harness SHA-256 values match the before-fix artifacts; the summary binds source head, source hashes, compiled-parser hashes, payloads, exits, and cleanup.scoped-clean,findings=[], no priority-filtered findings, confidence 0.91.git diff --checkpasses.Proof boundary: genuine built CLI → synthetic loopback Urbit login/poke transport. No real service credentials are used; live Urbit rendering is not claimed. Controls include simple/percent-encoded destinations, inline code, bare URL parentheses and punctuation, and empty image alt text.
Build limitation: both before/after builds exit 0 but report an existing UI startup-size overage (373,683 B before, 373,670 B after, versus the 373,454 B enforcement figure printed by the report). No UI code, budget, or baseline was changed by this PR.
Outstanding external check: OpenGrep run 37768998777 failed before scanning, while downloading the pinned v1.30.0 binary: all five built-in attempts returned HTTP 500, ending with curl exit 22 and no SARIF output. This is not a reported source-code finding or a passed scan. The contributor has no upstream Actions write permission; a maintainer rerun is needed when that download is available. No scanner, workflow, or product-code bypass was added.
Maintainer verification
Independently exercised the real Tlon plugin outbound send path against a synthetic Urbit HTTP ship on current main
c9a0c00b8691bda5bd7a38ee494b5edd8ecb9254and candidate9a06576ccd33dacf8fb7f00d86f15879c2dd696fin isolated Node 24 containers. Captured 21 poke payloads per ref across direct messages, group posts, and thread replies. All nine parenthesized-link/nested-link/image observations truncate on main and retain their complete destinations on the candidate. Twelve ordinary-link, ordinary-image, Markdown-parenthesis, and bare-URL controls are unchanged.A real
gpt-5-miniResponses call (reasoning low, output budget 4096) generated the Wikipedia Markdown link; all three candidate routes kept its complete href at the HTTP boundary. No live Urbit client rendering is claimed. Focused story tests passed 65/65 (Vitest 1.68 s; wrapper 2.46 s); scoped realtsgopassed.No overlap with Pash/Sarah changes. No additional source changes were needed; contributor commits and exact-head review remain intact. No CI rerun was requested. The external OpenGrep download failure noted above remains unresolved; it occurred before source scanning.
Merge danger: two-way door for future sends; reverting restores the previous parser. Already delivered messages are not rewritten. Blast radius is Tlon Markdown link/image destination parsing only.