Repository navigation
fix(tlon): preserve club delivery without trusting authors - #160699
eleqtrizit wants to merge 12 commits into
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: blocked before merge. Reviewed October 1, 2026, 5:36 PM ET / 21:36 UTC (Revision 17). ClawSweeper reviewWhat this changesThe Tlon plugin separates club identity from unverified authors, reconciles queued conversation lanes, restricts legacy approval replay, and adds club reply delivery. Merge readiness⛔ Blocked before merge - 6 items remain This work remains necessary: current main and the latest release retain the unsafe author fallback. No discrete introduced correctness defect was found, but the admission and upgrade policies need owner acceptance, and club reply delivery lacks live Tlon contract proof. Priority: P0 Review scores
Verification
How this fits togetherThe Tlon plugin receives Urbit chat events, admits them into OpenClaw’s durable queue, and routes accepted messages to agents. Conversation identity and sender authority determine session routing, command access, approval handling, and reply destinations. flowchart TD
A[Urbit chat events] --> B[Conversation identity]
B --> C[Durable message queue]
C --> D[Sender and admission checks]
D --> E[Agent session]
D --> F[Owner approval]
E --> G[Tlon reply transport]
Decision needed
Why: These choices change which users can initiate agent work and whether existing pending content replays; source inspection cannot establish the owners’ intended access and recovery policy. Before merge
Findings
Agent review detailsSecurityNeeds attention: Claimed-author privilege escalation is fenced, but anonymous club access remains a security policy choice requiring owner acceptance. PR surfaceSource +293, Tests +846, Docs +6. Total +1145 across 27 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve authenticated DM authority and club-scoped conversations under an owner-approved admission policy, with safe legacy recovery and demonstrated delivery on a real Tlon ship. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a concrete path: a club event claiming the owner in essay.author reaches owner checks through the current-main fallback. This read-only review did not execute that path. Is this the best way to solve the issue? Unclear pending owner intent: separating conversation identity from author claims is appropriate, but unconditional anonymous admission needs explicit acceptance and the new reply contract needs live confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 63a514d927e8. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
# Conflicts: # extensions/tlon/src/monitor/index.ts
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Closing this PR; the fix is being restarted from scratch. |
Summary
Tlon chat events used
essay.authoras a fallback sender whenwhomwas not a ship-shaped direct-message peer, allowing an unauthenticated club author claim to flow into owner and admission checks. This change keeps club/group-DM conversations working with no operator action by using the club UUID as the trusted conversation identity while treating the claimed author as display-only, and it fences both durable-queue and pending-approval upgrade replay. It composes with the original DM-routing and durable-ingress work while preserving direct-message and configured group-channel behavior.What Problem This Solves
extensions/tlon/src/monitor/index.tsfell back from a non-shipwhomvalue toessay.author, then reused that unbound claim for owner checks, allowlist admission, conversation identity, and dispatch.extensions/tlon/src/monitor/ingress.tsindependently usedessay.authorfor durable ingress lanes, allowing an untrusted member claim to become persistent queue identity.direct:necordirect:<claimed-author>lanes while new admissions selected different lanes, allowing one conversation to overlap or reorder during upgrade.extensions/tlon/src/monitor/approval-runtime.tscould replay pre-upgrade pending DM content that never recorded authenticated sender provenance after an owner approved the claimed ship.extensions/tlon/src/targets.ts,extensions/tlon/src/channel.runtime.ts, andextensions/tlon/src/urbit/send.tshad no club target or reply transport, so durable reply recovery could not return a response to the club conversation.The net effect was an owner-identity bypass plus upgrade and reply paths that could lose ordinary club functionality or preserve unsafe identity.
Why this design
essay.authoras unverified display metadata and represent the sender as the club, never the claimed ship.direct:~shipand atomically reconcile historical DM and club lanes before claim publication.chat-club-action-2contract and expose the same target to durable outbound recovery.Why this does not conflict with related PRs
whom; club UUIDs now select an anonymous group route instead of falling back to the author claim.Both changes are already present in the base. This patch extends their Tlon monitor paths so sender authority, durable identity, and outbound recovery agree.
Evidence
UrbitSSEClientconnected to a loopback Urbit HTTP/SSE server;whom=~nec~nec [owner], and reaches the final inbound dispatch sink.whom, owner ship inessay.authoruser, author is labeled unverified, andCommandAuthorized=false.direct:~necclub:<uuid>; it dispatches as an anonymous club turn without gaining owner authority.club:<uuid>, cannot overlap the held delivery, and dispatches second after release.direct:necdelivery held while a new bare-peer event arrivesdirect:~nec; new work uses the same lane and dispatches in order.chat-club-action-2with the club UUID and writ payload; outbound target/session routing classifies it as a group./whoamiapproval; owner approves it over real SSEThe assertions observe the real transport callback, SQLite durable state, lane claim, sender handler, approval replay sink, inbound context, final dispatch sink, and outbound HTTP poke.
SDK / caller upgrade contract
chat/~host/channelgroup channels retain their behavior.Boundary decisions requested from Tlon owners
Testing
pnpm test:extension tlon: 37 files, 320 tests passed on75833d6f69e.pnpm tsgo: passed on the final head.pnpm run check:changed --base upstream/main: passed withEXIT=0, including the line-cap ratchet and type-aware lint with 0 warnings/errors.