Repository navigation
refactor(gateway): remove dead RPC surfaces - #121387
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
309ede5 to
5b16cf0
Compare
|
Codex review: found issues before merge. Reviewed August 10, 2026, 4:50 AM ET / 08:50 UTC. ClawSweeper reviewWhat this changesThe PR removes ten Gateway RPC methods and their handlers, schemas, generated Android/iOS bindings, documentation, and tests. Merge readiness⛔ Blocked by patch quality or review findings - 7 items remain Keep open: removing the lifecycle RPCs leaves the still-supported managed-room Talk mode able to create a room but unable to join or run it. Priority: P1 Review scores
Verification
How this fits togetherThe Gateway advertises Talk transports, validates session requests, and dispatches them to session handlers. Native and web clients use the catalog and protocol bindings to create and control those sessions. flowchart LR
Client[Gateway client] --> Catalog[Talk catalog and config]
Catalog --> Create[Create managed-room session]
Create --> Room[Room token and session record]
Room --> Lifecycle[Join and turn lifecycle]
Lifecycle --> Events[Talk events and agent control]
Lifecycle --> Close[Session close]
Decision needed
Why: The recorded decision approves deleting the RPCs, but the retained public transport, configuration value, and create path require a separate choice about the supported product contract. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -1072, Tests -1039, Docs -8, Generated 0, Other -236. Total -2355 across 54 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Choose one coherent managed-room contract: retain its full lifecycle, or retire its catalog, schema, config, creation, handoff state, docs, and existing settings through a Doctor migration in one change. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible with high confidence: create an stt-tts managed-room session, then attempt to join or start its turn on the PR head; the required lifecycle RPCs are removed while creation remains accepted. Is this the best way to solve the issue? No: the deletion is not the best complete solution while managed-room remains advertised, configurable, and creatable; its lifecycle must either remain intact or be retired coherently. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 560d172ae7e3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
5b16cf0 to
bde46c6
Compare
|
ClawSweeper rank-up move disposition:
These are justified skips under the explicit maintainer/product decision for this cleanup; there are no unaddressed implementation findings to apply. |
44d44b5 to
4258de4
Compare
cb62689 to
d7d6507
Compare
d7d6507 to
d542674
Compare
a86cded to
f51ac77
Compare
|
Merged via squash.
|
What Problem This Solves
The Gateway still advertised, validated, documented, and generated client bindings for RPC methods that had no production callers or were exercised only by tests. That stale surface made the canonical server and protocol contract larger than the product behavior it actually served.
Why This Change Was Made
This removes the confirmed dead/test-only RPCs end to end:
doctor.memory.remHarness,gateway.restart.preflight,sessions.unsubscribe,terminal.text,talk.session.join,talk.session.startTurn,talk.session.endTurn,talk.session.cancelTurn,sessions.compaction.get, andvoicewake.routing.set. Their handlers, method descriptors/scopes, schemas, validators, generated Swift/Kotlin bindings, docs, tests, and connected orphan internals are removed so the Gateway has one canonical server/protocol surface.The generated Plugin SDK API fingerprint refresh is intentional. There is no protocol version bump and no SQLite schema-version change. This follows the existing convention and the historical precedent in
ce5ab8adb8ffor removing dead RPC surface without a protocol version bump.AI-assisted: yes. The complete diff and owner boundaries were reviewed before publication.
User Impact
There is no change to live production flows: the removed methods had no production callers or only test callers. They disappear from advertised methods, protocol validation/export surfaces, generated native clients, and documentation.
skills.upload.begin,skills.upload.chunk, andskills.upload.commitare deliberately retained.skills.install({ source: "upload" })still callsinstallUploadedSkillArchive, and PR #74430 shipped that contract.skills.proposals.create,skills.proposals.update,skills.proposals.revise,skills.proposals.quarantine, andskills.proposals.events.listare also deliberately retained unchanged. Any deletion of those proposal mutation/event methods needs separate maintainer/product confirmation.Repair Doctrine measurement: non-test/production-like files are
+115/-1431(net-1316); tests are+106/-1144(net-1038). The overall change is+221/-2575(net-2354), a strongly net-negative cleanup that removes duplicate/dead contract and implementation surface rather than adding another compatibility path.Evidence
sincechecks passed; regenerated protocol output was byte-identical after verification.git diff --checkandpnpm docs:listpassed.applySessionHintsimport insrc/auto-reply/reply/get-reply-run.media-only.test.tswas confirmed unused; targeted format/lint, all 110 focused tests,git diff --check, and a fresh 0.99-confidence autoreview passed. Current main then gained the identical one-line repair, so the rebased PR correctly carries no duplicate test delta. CI evidence: https://github.com/openclaw/openclaw/actions/runs/31370467142/job/93398275506tbx_01kzmv13r0p26szc8kp3j93dhf, exit 0: https://github.com/openclaw/openclaw/actions/runs/31352376281origin/main,git diff --check, the protocol registry check, and the regenerated Plugin SDK API baseline check passed on exact headf51ac77bb74f4772cfb6bda17dd1558d5bf438a8.