Repository navigation
refactor(imessage): share handle classification - #148229
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 14, 2026, 11:31 PM ET / September 15, 2026, 03:31 UTC (Revision 3). ClawSweeper reviewWhat this changesThe iMessage plugin shares email, group-identifier, and phone classification while retaining each caller’s existing service-prefix and contact-name handling. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, behavior-preserving cleanup absent from current main. No actionable correctness or security findings remain, and the prior review contains no outstanding findings. Priority: P3 Review scores
Verification
How this fits togetherThe iMessage plugin normalizes recipient and sender strings before message routing and allowlist matching. Its messaging and target-parsing callers share classification rules but retain different contact-name and prefix policies. flowchart TD
A[Recipient or sender text] --> B[Messaging target normalization]
A --> C[Target and sender normalization]
B --> D[Shared email, group ID, and phone classification]
C --> D
D --> E[Caller-specific fallback]
E --> F[Message routing]
E --> G[Sender and approval matching]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -8, Tests +18. Total +10 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one plugin-local classification owner while preserving the existing caller-specific routing and contact policies. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reports duplicated implementation rather than a user-facing defect; source inspection confirms the duplication on main. Is this the best way to solve the issue? Yes: extracting only the identical classification block removes duplication without merging the callers’ intentionally different policies. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 34a7948a870c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* commit 'd8e50a38fd1c4df6dd69bcbc155697c464e1be45': (23 commits) fix(cron): release queued reservations when activation fails (#141008) fix(gateway): reduce CPU work in session lists and searches (#148713) feat(gateway): add admin CPU profile diagnostics (#148004) fix(gateway): cap device-required probe cache to prevent unbounded growth (#147708) fix(ci): align Gateway E2E expectations (#148653) refactor(ai): remove unused overflow wrapper (#148719) feat: stage selected chat text as editable comments (#148649) fix(ci): admit reachable release refs with large histories (#148161) fix(agents): allow authorized email CLI actions (#148521) improve(agents): trim large tool results with less CPU (#148718) refactor(docker): share image version parsing (#148243) fix(ci): retain passing hosted checks after skipped duplicates (#148722) fix(update): report configuration failures during repair (#144819) refactor(imessage): share handle classification (#148229) fix(ui): keep the selected agent across Settings pages (#148667) test(telegram): reuse deferred fixture helper (#148501) fix(media): resize images before understanding (#122431) fix: preserve unfinished work during completed PR cleanup (#148704) refactor(migrate-hermes): reuse canonical config record coercion (#148645) perf(channels): reduce history worker metadata footprint (#148711) ...
What Problem This Solves
The iMessage plugin repeats the same handle-classification decisions in messaging-target normalization and target parsing.
User Impact
No user-visible behavior change is intended. Existing service aliases, chat identifiers, phone handling, contact-name differences between callers, and approval matching stay unchanged.
Why This Change Was Made
This maintainer-requested internal refactor shares only the ordered email, bare 32-hex identifier, and phone-like classification block in the existing normalization owner. Each caller retains its original prefix handling, recursion, and fallback behavior. No public API, SDK, configuration, or authorization policy changes.
Evidence
3efda5ef5882f6841ecf324faba1dffeda37788f, attempt 1. The earlier observer timeout was not a CI failure, and the run was not restarted.