Repository navigation
refactor: deslop gateway, channels and UI owner surfaces - #185157
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. |
bc5394a to
370da16
Compare
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. |
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
|
Codex review: needs changes before merge. What this changesThis PR folds private helpers and copied types into their existing Gateway, channel, provider, and UI consumers. Example: Send clip.aifc containing 441 Apple IMA4 packets through Matrix.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored cleanup open; it preserves existing ownership while removing redundant code, but one stale suppression-baseline entry deterministically breaks CI. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherGateway requests, agent operations, and channel messages enter existing runtime owners; those owners authenticate, prepare, persist, and deliver results that the Control UI presents. flowchart LR
Clients --> Gateway
Gateway --> AgentRuntime
AgentRuntime --> Providers
AgentRuntime --> ChannelDelivery
ChannelDelivery --> Plugins
Gateway --> ControlUI
Technical reviewBest possible solution: Prune the obsolete Matrix suppression-baseline entry while retaining the behavior-preserving refactors. Do we have a high-confidence way to reproduce the issue? The baseline failure is source-reproducible: the suppression is deleted, its baseline row remains, and the ratchet rejects that combination; no target code was executed. Is this the best way to solve the issue? The refactors reuse existing owners and retire replaced paths; the smallest remaining repair is removing one obsolete baseline row. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 41edc2a5a9c0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
LabelsLabel changes:
Label justifications:
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 26, 2026, 7:56 PM ET / 23:56 UTC. |
|
Exact head
Actual checkout The shared flake registry and the latest six completed scheduled-main runs were inspected. No matching current UI signature is claimed: all six precede #185264. The supported focused browser replay would build the whole UI, so it was not run under the campaign CPU/no-build budget. Attribution is property-causal, not a claim of zero import reach or complete execution equivalence. Tests, assertions, timeouts, suppressions, and CSS were not weakened or changed for CI. The repaired stack remains 651 net removed on GitHub's whole-diff numbers. All 39 lifecycle withdrawals remain byte-identical to the protected main snapshot; Phase E is untouched. Per-cut focused public tests, targeted types, format/lint, independent reviews, runtime cycles 0 and Madge cycles 0 are retained in the native preparation packet. The source-only UI limitation and unresolved withdrawn lifecycle diagnosis remain disclosed. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…5157) * refactor: retain disjoint owner-surface cleanup cuts * refactor: use the canonical heartbeat display predicate * refactor: keep MiniMax music readers within their operation * refactor: keep ONNX adapters with their model cache owner * refactor: keep Talk meter setup with its activity lifetime * refactor: prepare MXC host through one internal operation * refactor: own Reef transitions in its state operation * refactor: own skills menu content in its composer * refactor: inline browser and Doctor preparation frames * refactor: inline plugin request and status preparation * refactor: own profile identity presentation in its page
What Problem This Solves
Private single-consumer functions, component input frames and mirrored types add indirection without a separate responsibility. This stack moves that work into its existing owners. No intended user-visible change, migration, config, CLI, protocol or Plugin SDK change.
Independent Cuts
UI presentation frames
Localize private inputs in usage details, browser header, avatar, slash menu, message stream/video, pull-request, attachment, workspace, sidebar and dashboard children. Preserve component positions, keyed identities, live reads, callbacks, DOM and classes.
Best-effort tradeoffs accepted: none; component and reactive lifetimes remain.
Session options, heartbeat and chat projections
Fold the sole-consumer session-options parser into settings, reuse the existing heartbeat predicate, and infer private payload types at their producers. Keep malformed-input handling, session qualification and dispatch.
Best-effort tradeoffs accepted: none; public types and runtime behavior remain.
Channel preparation frames
Inline private preparation in Discord builders, FaceTime preflight, Signal Doctor, iMessage history, Slack inherited-file preparation, Telegram menus and WhatsApp mentions. These are independent local cuts, not a common owner migration.
Best-effort tradeoffs accepted: private call/Promise-adoption turns disappear where wrappers were async; actual awaits, ordering, validation and authorization remain.
Matrix media and duration
Construct media content and optional duration in the send owner. Preserve encryption, relation, voice/image, zero-size, zero-duration and nonmutation behavior. Move all six AIFC fixtures and their independent oracles to the existing public-send suite/support owner.
Best-effort tradeoffs accepted: the duration wrapper's additional Promise settlement turn disappears; the real parser await remains after upload and before delivery preparation. No guard removed.
Usage report and typed columns
Capture operation inputs in the usage report's private evaluator/classifier and keep four distinct numeric column loops directly in their consumer. SQL, cache/calendar/freshness/partial-result behavior, packed transport and comments remain. No performance claim.
Best-effort tradeoffs accepted: none; storage and arithmetic remain unchanged.
MiniMax and ONNX model owners
Keep MiniMax music readers in their operation and ONNX adapters with their model-cache owner. Migrate private adapter proof into public loader tests before deleting obsolete donor files/tests.
Best-effort tradeoffs accepted: no guard removal; load/cache ownership and supported model behavior remain.
Talk meter and MXC preparation
Keep the Talk meter setup under its existing activity lifetime. Remove MXC's private preparation frame while retaining its subprocess/probe/ACL prefix in readiness, including the security scanner's source boundary.
Best-effort tradeoffs accepted: none; cancellation, cleanup, authority and platform checks remain. No Windows/live-device claim.
Reef trust transitions
Move peer/delivery transition operations into their sole trust-state operation owner.
Best-effort tradeoffs accepted: none; schemas, authority, transaction, receipts, durability and realistic concurrency guards remain.
Composer skills menu
Keep skills content in its sole composer-menu owner, retaining the same keyed iteration, memos, loading/error handling, invalidation and lazy route boundary.
Best-effort tradeoffs accepted: none; presentation and loading lifetimes remain.
Browser and Doctor preparation
Inline browser query/graphics parsing and Feishu/LINE Doctor frames in their sole consumers. Preserve warnings, migration order and the LINE access behavior from #146169.
Best-effort tradeoffs accepted: none; every existing validation and permission guard remains.
LLM Task, WhatsApp, Slack and Telegram preparation
Localize request/status frames at their actual consumers. Retain LLM Task's per-registration dynamic loader and WhatsApp's lookup-before-caption/sender ordering.
Best-effort tradeoffs accepted: no guard removal; only private frames/types disappear. Public tool schemas, status text, Doctor predicates and lazy boundaries remain.
Profile identity
Keep the private identity component mounted inside the same ProfilePage Show branch, using its narrowed profile accessor. Retire the prop-copy/type-export seam and direct private-component harness. Move distinct avatar picker, disabled-upload, held name-save, initials and shared-owner assertions into existing public page/preferences flows; they passed against unchanged production first.
Best-effort tradeoffs accepted: none; readonly/focus behavior from #183719, upload/currentness/permission checks, readiness, reconnect and retirement remain. No visual change intended.
CI Repair and Withdrawal
The old head's lifecycle failure reproduced locally, but the serial base control failed later during setup/cleanup and could not settle attribution. Under the campaign's withdrawal rule, restore all 37 changed paths in its conservative runtime import closure plus two consistency companions to protected main
2bfc47bc6038f851066f45dd02c247519f29ebc3. All 39 resulting files were byte-verified; the original full snapshot is retained ondeslop/z25-parked-lifecycle-185157-20261015. The independent usage typed-column cut stays. No claim that this fixes the lifecycle failure or makes old CI green.Retain the Google public-test migration and registry contract rows; withdraw their production changes. Remove the stale Matrix max-lines allowance flagged by old-head CI. The old merge request was natively retired before replacement; its receipt remains intact.
Evidence
Whole diff against the current main merge base
2bfc47bc6038f851066f45dd02c247519f29ebc3: 651 net lines removed, 82 paths, 3,375 additions / 4,026 deletions, including tests. Independent cuts can be withdrawn separately. Phase E session memory is untouched.Per-cut original/final public-consumer tests, targeted native typechecks, formatting, typed lint and independent P0–P2 reviews passed. Latest combined plugin/Profile review found no actionable findings. Final plugin proof passed 44 public cases, 13 prompt-prefix stability cases and 14 lint-suppression cases. Profile migration passed 47 cases against unchanged production; final page/readiness/reconnect proof passed 50 cases plus 14 suppression cases. Reef passed 31 public trust-store cases before and after; skills passed 28; browser/Doctor passed 33; MXC passed 27 including suppression checks. No kept test was skipped, retried or weakened.
Final repaired stack: runtime value cycles 0, static/madge cycles 0; diff whitespace clean. Local checks ran serially, nice priority, isolated state, one Vitest worker; no broad suite, build or whole-graph typecheck. Reef's Node strip-only loader setup failed; the exact pinned supported Bun passed the original and final public suite. This is not a product repair claim.
Exact-head hosted CI and Security Review remain landing gates. Old-head failures/attribution are retained, not reused as replacement-head clearance. No live-service/device/provider or end-to-end build proof is claimed.