Repository navigation
fix(tlon): require request IDs for approval replies - #186243
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 changesRequire a request ID when multiple Tlon approvals are pending while preserving bare decisions for a sole request. Example: ~bus and ~sampel both have pending DM requests when the owner replies approve.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes approval mis-targeting still present on main, with no introduced correctness or security finding. Priority: P1 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Tlon monitor receives Urbit events, authenticates owner replies, and passes decisions to the approval runtime, which updates access settings, joins groups, blocks ships, or replays approved messages. flowchart TD
A[Urbit HTTP and SSE] --> B[Tlon monitor]
B --> C[Verified owner DM]
C --> D[Approval selector]
D --> E[Ambiguous request guidance]
D --> F[Selected approval effects]
F --> G[Settings and Urbit operations]
Technical reviewBest possible solution: Use the existing approval selector to reject ambiguous bare decisions, return selectable IDs, and preserve sole-request and explicit-ID behavior. Do we have a high-confidence way to reproduce the issue? Current main deterministically selects the newest of multiple pending requests for a bare decision; supplied channel and group regressions report failing on the base and passing on the head, but this review ran no target code. Is this the best way to solve the issue? The patch fixes targeting at its existing shared owner, covers all three approval types, and preserves the concise single-request workflow without new state or configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a1859e5195f6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +10, Tests +125, Docs +2. Total +137 across 8 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 (8 earlier review cycles)
Reviewed October 28, 2026, 12:26 PM ET / 16:26 UTC (Revision 9). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Tlon owner approval replies could target a different pending request when another request arrived before the reply was handled. DM, restricted-channel mention, and group-invite approval requests all use this decision path.
User Impact
Bare approval decisions continue to work when exactly one request is pending. When multiple requests are pending, a reply without an ID lists them without changing DM access, channel authorization, group membership, or replaying a queued message.
Why This Change Was Made
The approval runtime uses the sole pending request for an unambiguous bare decision. When more than one request is pending, stable request IDs let the owner choose explicitly instead of falling back to the newest queue entry. Owner prompts and documentation explain both forms.
Evidence
channelRules, and replays its queued mention; passes on this branch with zero ambiguous bare-decision effects and a selected-only explicit grant.group-join; passes on this branch with zero ambiguous bare-decision joins and a selected-only explicit join.git diff --check: passed.Validation gap: no live Tlon service was used. The isolated proof exercises the production monitor and approval runtime through a real local Urbit HTTP/SSE transport fixture.
Behavior Proof
Mandatory behavior proof for current head
113b48089253396599a9a7ed4e0ead5da856d4b0Behavior proved: Through the shipped Tlon monitor and a real local Urbit HTTP/SSE transport, a bare owner decision affects exactly one sole pending request, ambiguous bare decisions and unauthorized senders cause zero protected effects, and ID-qualified owner decisions affect only the selected request.
Environment: local_openclaw - Local PR checkout with outbound networking disabled and synthetic configuration.
Local-only execution: actual OpenClaw path; network=outbound_disabled; third_party_contacts=0; external services are replaced by local deterministic boundaries
Privacy: synthetic_inputs=true; actual_user_config_loaded=false; scan=pass; report=
redaction-report.jsonBefore merge obligations: covered=2; artifact=
clawsweeper-obligations.json; artifact_sha256=aff21fb82d428f3a0623f235176548d7189a91826c3394558fc565f0f61cca86Entry point:
bash .local/run-tlon-approval-proof.shvia extensions/tlon/src/monitor/index.ts; faithful because monitorTlonProvider handled synthetic chat, channel, foreign-invite, and settings-update events through the real Urbit login and SSE client; its settings, channel-rule, group-join, and chat pokes were observed at a local HTTP boundary.Protected boundary: authorization
Tlon approval final-effect boundary; sink/source: Urbit settings allowlists, channel rules, group joins, chat blocks, and replay dispatch; denied effect: zero DM allowlist, channel-rule, group-join, block, or replay effectsCommand/artifact:
bash .local/run-tlon-approval-proof.sh-> exit_code=0; artifact:proof-output.json; artifact_sha256=806971add41ef766; The harness exercised sole and ambiguous bare decisions, explicit-ID selection, non-owner and forged-club rejection, and owner reassignment across DM, restricted-channel, and group-invite paths.Evidence:
proof-output.json; excerpt: denied.status=pass; denied.call_rejected=true; denied.execution_calls=0; ambiguous DM, channel, group, and replay assertions=trueproof-output.json; excerpt: compatibility.status=pass; compatibility.execution_calls=1; control.status=pass; owner_reassignment.status=pass; former_owner_execution_calls=0; replacement_owner_execution_calls=1Compatibility/operator note: Bare approve, deny, and block remain valid when exactly one request is pending. With multiple pending requests they return ID guidance and have no authorization effect; ID-qualified commands retain their prior effects, and existing pending request IDs remain valid across restart.
Third-party gaps: none; proof requiring a third party blocks for assistance instead of contacting it.
Proof pack digest:
sha256:fed337c897d24a6aa48cf9a7c94f1c00d52783af4388ce0f98607c4e913fcb3b