Repository navigation
refactor(plugins): simplify private notification ownership - #177398
Conversation
Replace single-consumer listener registries with callbacks across recording, ingress, Workboard and maintenance. Keep public contracts, authorization, durable delivery, accepted-write settlement and ordinary reload behavior. Best effort: unsupported overlapping independent owners of private callback slots may replace one another; service-owned stop-before-restart remains the supported lifecycle. Remove the unused IRC raw-line hook with its test-only consumer.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces private listener registries with single callbacks across plugins and removes IRC’s unused raw-line callback. Example: Telegram’s ingress worker receives update_id 42.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the simplification preserves supported ownership and delivery paths, with no actionable correctness or security finding. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherPrivate plugin producers report recording progress, ingress events, committed changes, and maintenance deadlines to their existing lifecycle owners, which retain responsibility for delivery, persistence, and cleanup. flowchart TD
A[Plugin producer] --> B[Private callback]
B --> C[Existing lifecycle owner]
C --> D[Durable store or transport]
C --> E[Gateway event or maintenance job]
F[Service retirement] --> C
Technical reviewBest possible solution: Retain the direct private callbacks and existing lifecycle owners, without restoring unsupported subscriber multiplicity. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported bug; source and caller inspection establish the private ownership boundaries. Is this the best way to solve the issue? The change is a small, complete cutover using existing producers and consumers, and the explicitly accepted overlapping-owner cases do not justify additional machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 751d109a6717. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -37, Tests -32. Total -69 across 19 files. Added test files: 0. View PR surface stats
Review metrics
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 Reviewed October 19, 2026, 10:53 AM ET / 14:53 UTC. |
|
Merged via squash.
|
…177398) Replace single-consumer listener registries with callbacks across recording, ingress, Workboard and maintenance. Keep public contracts, authorization, durable delivery, accepted-write settlement and ordinary reload behavior. Best effort: unsupported overlapping independent owners of private callback slots may replace one another; service-owned stop-before-restart remains the supported lifecycle. Remove the unused IRC raw-line hook with its test-only consumer.
What Problem This Solves
Maintainer-requested cleanup: several private plugin owners maintain listener registries for one production consumer, or expose an unused raw callback.
User Impact
No intended user-visible change, migration, or public Plugin SDK change. Recording, ingress delivery, pairing notifications, standing intents and Workboard events retain their existing behavior.
Why This Change Was Made
Use one callback at each private producer/consumer boundary instead of subscriber containers and unsubscribe handles. Remove IRC's unused raw-line hook; keep parsed messages and transport liveness. Producer and consumer changes land together. This does not remove the reliability behavior introduced by #139658, #81746 or #122146.
Net production LOC: 37 removed (+48/-85 across 10 production files; 19 changed files total). Tests and fixtures excluded.
Best-effort tradeoffs accepted
Evidence
nice -n 10, one worker: 15 files / 280 cases passed across Discord, IRC, database-worker, Telegram and miscellaneous plugin configurations. Includes accepted-write settlement, rollback, service recreation, interrupted delivery, standing-intent scheduling and Workboard authority/epoch events.src/gateway/session-row-scope.tsunicorn/no-new-arrayallowlist entry, matching scheduled main run 39261680942. No suppression was added here.