Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 2:53 AM ET / 06:53 UTC. ClawSweeper reviewWhat this changesThis PR replaces the monolithic plugin type-contract module with nine focused contract modules while preserving Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Current main already uses the same stable plugin-contract facade and focused leaf-module architecture, but this 17-day-old PR is merge-conflicted and carries the protected Priority: P3 Review scores
Verification
How this fits togetherOpenClaw plugins consume a public TypeScript contract surface through the Plugin SDK. The public barrel feeds plugin registration, provider capability, migration, and runtime declarations while internal registry code can import narrower owner modules. flowchart LR
A[Plugin authors] --> B[Public Plugin SDK]
B --> C[Stable contract facade]
C --> D[Focused owner type modules]
D --> E[Plugin registry and runtime]
C --> F[Bundled declaration artifacts]
Decision needed
Why: Current main reaches the PR’s central outcome but with a different, more granular module topology. The protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +116, Generated 0, Other -1. Total +115 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the current-main facade and leaf-module layout as the canonical design; a maintainer should close this branch if it has no unique contract improvement, or require a narrow rebase that preserves every public export and current declaration-bundle behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a contract-organization refactor, not a report of broken runtime behavior. Current source directly establishes that main already has the requested facade-and-leaf-module architecture. Is this the best way to solve the issue? No: the branch’s broad approach is already reflected in current main, but current main uses a more granular canonical split. The best path is to retain that implementation and only rebase a demonstrably unique remaining contract change. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 78486e27511c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Closing as fully superseded. The stable Plugin SDK facade and focused contract-module split landed through #108416 and was refined by #108440. Current main now owns a more granular canonical module layout while preserving the public facade and declaration surface. I compared the branch's exports and owner boundaries against current main. There is no unique contract improvement left to port, and rebasing this conflicted older topology would only risk regressing the current SDK surface. |
What Problem This Solves
The plugin contract surface had grown into one 3,051-line module spanning provider, command, migration, registration, media, worker, and host API concerns. Unrelated contract changes shared one review boundary and required a max-lines exception.
Why This Change Was Made
Split the contracts into nine focused owner modules while keeping
src/plugins/types.tsas the stable public barrel. Registry types now import their direct owners, the max-lines exception is removed, and the generated Plugin SDK API baseline records the new declaration locations.This is AI-assisted work requested by a maintainer. No compatibility layer or runtime behavior change was added.
User Impact
No user-visible behavior change. Plugin authors retain the same exported names and signatures. Maintainers get smaller, focused modules and clearer ownership for future reviews.
Evidence
origin/mainPlugin SDK comparison: 10,612 exports before and after; zero name, kind, or signature differences after normalizing declaration-owner paths; 223 source-location moves only.run_041d802a111c, exit 0. Includes formatting, max-lines ratchet, Plugin SDK API baseline, core and core-test typechecks, full core lint fan-out, import-cycle guard, boundary guards, package build, declaration verification, and Control UI build.origin/main: no accepted or actionable findings; overall confidence 0.96.