Skip to content

refactor(tlon): simplify group summary notices - #157789

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/tlon-group-summary-branches-20260925
Sep 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/tlon-group-summary-branches-20260925

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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

  • The same expanded history suite passed 10 baseline and 10 candidate cases. Coverage includes empty history, failed history reads, ordered first-send/error-notice failures, second-send error propagation, nonempty summaries, invalid channel nests, and ordinary DM/group dispatch. Startup uses an explicit completion promise; each fixture aborts and joins its monitor.
  • Candidate sibling suites passed: monitor 34, history 1, utilities 3, and Urbit send 5 cases; 53 candidate cases total, no skipped or failing tests. Existing doctor contract coverage also passed 6 cases.
  • All 26 selected canonical checks passed, including plugin production/test types, formatting, scoped lint, and selected guards. Frozen source bindings and final restoration were verified; the remote command and controller exited 0, with EOF and the exact one-shot lease confirmed stopped.
  • Complete source, callers, history/send contracts, tests, and fresh exact-head review were checked. No findings remain. Pure mechanical refactor; no changelog entry.

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.

@vincentkoc vincentkoc self-assigned this Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 25, 2026 01:15
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 9:22 PM ET / September 25, 2026, 01:22 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 08b8d238cd1362a38ba22b367b0f136901725bd7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The small production simplification has focused boundary tests and a clear source-level equivalence argument.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored, behavior-preserving Tlon refactor is exempt from contributor runtime proof. Its added monitor cases exercise registered callbacks with mocked ingress and send boundaries; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored, behavior-preserving Tlon refactor is exempt from contributor runtime proof. Its added monitor cases exercise registered callbacks with mocked ingress and send boundaries; no stored-data contract changes.
Evidence reviewed 7 items Introduced production change: The group-summary path already requires isGroup and a channel nest; the PR removes only the DM alternatives inside its notice and error branches.
Current main still needs the cleanup: The main-branch monitor retains the guarded group/DM alternatives; its source blob matches the supplied latest-release commit’s blob.
Latest-release comparison: The supplied v2026.9.6 commit has monitor blob 79be53ce49de431f8f87f36c5496e77be2b39d6a, the same blob as current main, rather than the PR’s changed blob.
Findings None None.
Security None None.

How this fits together

Tlon’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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -13, Tests +207. Total +194 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 14 27 -13
Tests 1 207 0 +207
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 221 27 +194

Review metrics

Metric Value Why it matters
Production and test LOC production −13 net, tests +207 net The production path shrinks while the added monitor cases cover notice and dispatch behavior.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a narrowly scoped cleanup with no claimed user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored, behavior-preserving Tlon refactor is exempt from contributor runtime proof. Its added monitor cases exercise registered callbacks with mocked ingress and send boundaries; no stored-data contract changes.

Label justifications:

  • P3: This is a narrowly scoped cleanup with no claimed user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored, behavior-preserving Tlon refactor is exempt from contributor runtime proof. Its added monitor cases exercise registered callbacks with mocked ingress and send boundaries; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • sunlit-deng: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Hunter Miller: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@openclaw-barnacle openclaw-barnacle Bot added channel: tlon Channel integration: tlon size: M labels Sep 25, 2026
@vincentkoc
vincentkoc merged commit 0f13e1d into main Sep 25, 2026
172 checks passed
@vincentkoc
vincentkoc deleted the refactor/tlon-group-summary-branches-20260925 branch September 25, 2026 02:18
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 25, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: tlon Channel integration: tlon P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant