Repository navigation
refactor(tlon): simplify group summary notices - #157789
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 September 24, 2026, 9:22 PM ET / September 25, 2026, 01:22 UTC. ClawSweeper reviewWhat this changesThe Tlon plugin removes unreachable DM choices from group-summary notice handling and adds monitor tests for notices, errors, and ordinary message dispatch. Merge readiness✅ Ready for maintainer review Current main and the latest release still contain the redundant conditional. The PR appears behavior-preserving, and this review found no introduced correctness defect. Priority: P3 Review scores
Verification
How this fits togetherTlon’s monitor receives group and DM events from the Urbit firehose. For a group summary request, it fetches channel history and either posts a group notice or sends a summary prompt to an agent. flowchart LR
A[Tlon firehose event] --> B[Monitor routing]
B --> C{Group summary request?}
C -->|Yes| D[Fetch channel history]
D --> E{History available?}
E -->|No| F[Group notice]
E -->|Yes| G[Agent summary prompt]
C -->|No| H[Normal dispatch]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -13, Tests +207. Total +194 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Use one group-only notice path in the Tlon monitor while ordinary DMs continue through their existing dispatch path. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a source cleanup, and the group-only guard establishes why the removed DM branches cannot run. Is this the best way to solve the issue? Yes: simplifying the existing monitor branch is a narrow way to remove the redundant decision while preserving its group send and DM dispatch paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ef2dd3235123. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '05edd36e124dc376f63475256f45e82ec437412c': (30 commits) refactor(matrix): reuse bounded direct-room cache insertion (#157775) fix: preserve channel-owner revocation across recovery (#157709) fix(ci): stop blocking CI during release validation (#157757) refactor(tlon): remove unreachable DM summary branches (#157789) chore: speed up worktree recovery tests with Bun (#157674) fix(sessions): release PR caches when pending viewers leave (#157776) refactor(twitch): reuse setup account selection (#157787) test: skip empty task ledger resets in cron fixtures (#157767) perf: reduce gateway and state test startup (#157711) fix: preserve maintenance leases during slow heartbeat renewal (#157696) fix(channels): match non-TTY setup advice to registered flags (#157551) fix: keep failed update report uploads in the CLI (#156633) fix: preserve rejected settings reason when opening config (#157731) test(update): load real filesystem dependencies in swap fixture fix(ci): prevent Security Review checkout retry collisions (#157652) fix(ci): recover interrupted Security Review response bodies (#157651) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) ...
Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The Tlon group-summary handler repeats a group/DM decision after its outer guard has already established that the message belongs to a group.
User Impact
No user-visible change. Group summary notices, error handling, and ordinary DM delivery retain their existing behavior.
Why This Change Was Made
Remove the two unreachable DM alternatives inside the group-only summary path. Channel parsing, message objects, returns, and the two send error boundaries stay in place. This is requested maintainer cleanup work: production net −13 lines; tests net +207. No public API, configuration, storage, or transport change.
Evidence
One-worker whole-command walls on Node 24.19/Linux x64/pnpm 12.4.2: history baseline 25.195 s, candidate 16.968 s; candidate siblings 21.480 / 16.824 / 17.495 / 16.378 s in the order above. These include process startup/setup and exclude provisioning/install. Sequential cache history prevents a speedup or incremental CI-cost claim.
The fixtures use the real history/formatting path with mocked send and ingress boundaries; they do not establish live Tlon delivery or durable ingress behavior. Portal timeout and retained staging warnings were recorded separately from the successful proof and lease closure. Required hosted checks and exact-head review remain landing gates.