Repository navigation
refactor: share plugin and UI adapter owners - #180221
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 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 consolidates duplicated plugin, agent-core, routing, and hidden-label styling logic into existing owners. Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored consolidation is useful, and no actionable defect was found in the introduced diff; failing exact-head checks remain unattributed. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherPlugin adapters and core helpers translate CLI arguments, provider responses, session scopes, and tool results into existing runtime contracts, while shared CSS controls hidden accessible labels. flowchart LR
A[CLI and plugin inputs] --> B[Existing normalization owners]
B --> C[Plugin adapters]
C --> D[Runtime results]
E[Agent tool results] --> F[Private state copier]
F --> D
G[Settings and automation controls] --> H[Shared base styles]
Technical reviewBest possible solution: Retain the focused consolidation and resolve exact-head CI attribution before landing. Do we have a high-confidence way to reproduce the issue? No product bug is claimed; source inspection supports the stated behavior-preserving refactor, and no target code was executed during review. Is this the best way to solve the issue? The change uses existing owners, removes the replaced implementations, and adds no competing state or public contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 317f9399d9b0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -98, Tests +40, Other 0. Total -58 across 20 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 21, 2026, 11:30 PM ET / October 22, 2026, 03:30 UTC. |
Exact-head inherited failure evidence for #180221Standing Peter campaign instruction authorizes native inherited-failure landing after each check is attributed. Exact head68c82d8397d22e45a8cd65820f28b697ae8ec26c; CI39715813871 attempt1 completed failure. Actual fetched CI merge874334df90b4a4d4b4be0c6070c777bade392523 has ordered main parent4611232730583082f5c49bd79f1f68dfbfbd1b60 then PRhead68c82d8. All checks enumerated; no pending/cancelled runtime suite. Independent security-fast119618323605 passed. No failed CI called green.
Main test introductiona8ead196291935d24c44a4f40b67397d88c70256/#179729; removal24b180b712fa0c5861dc7a8c5b3c94bc00f0d6ca/#180031. At authored PR head, test does not exist and the old boolean prop still exists. Neither incompatible afterimage comes from PR73. The full main-parent sources and actual merge sources were inspected; source512 is routing/analysis, not a claimed whole-graph audit. Separate fixture repair01e63fe0d86fa8f16fd5e674fff354e0eee2d72f is signed but not yet published at this artifact checkpoint. It waits for actual async initial button readiness, then supplies an admitted artifactRead promise that remains pending during the immediate callback-refresh click. All original current-callback and four session/agent/incarnation/visibility retirement checks remain. Owner mutable artifact array is reused without copying; pending fixture settles on test cleanup. No production prop compatibility restoration, weakened assertion, timeout increase, retry or skip. Original five plus two existing desktop/mobile refresh-error/retry cases pass, targeted UI-chat native types, typed lint,format,14suppression cases and planner pass. Independent exact-change P0-P2 review scoped-clean. This repair proof is not represented as exact-head CI green. Baseline command uses repository runner and same qualified install, isolated HOME/OpenClaw/XDG and nice10/maxWorkers1; no live Gateway/operator data. Hosted Linux versus local macOS environment gap retained. Coordinator main-flakes and newest six completed ci.yml schedules inspected (39712703143,39707038848,39703131373,39693906280,39687169253,39679539559); no claimed matching scheduled fixture failure. Direct source plus matching focused baseline proves inheritance. No PR rerun or green-chasing push/rebase. Original exact-head scoped proof/reviews/media remain in native review artifact: strict production/canonical test types,typed lint,acknowledgement,threeChromium hidden-label cases,wrapper closure,zero runtime/static cycles,14suppression cases,planner; one-row Matrix8→6 shrink repair has separate passing AST/suppression proof and review. Two inspected synthetic production-markup/CSS screenshots retained in PR body; no whole-app/live proof claim.98net production removed. No new SDK/config/schema/protocol/dependency or Phase E change. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* refactor: share plugin and UI adapter owners * chore: shrink Matrix assertion allowance after consolidation
What Problem This Solves
Measured clone groups left repeated adapter code in bundled plugins, agent-core and the Control UI. This is the disjoint adapter area of the originally proposed 505-net-line settlement/readers/adapters packet. Runtime readers are in #180175; settlement #180148 was withdrawn without merging after an unresolved CI attribution. This slice does not depend on either PR, and no withdrawn LOC is credited.
What changed
Reuse existing CLI argument, session-scope and numeric normalization owners. Within their current owners, share usage-bucket admission, Matrix crypto preparation, private WeakMap slot copying, truncation classification and deprecation descriptors. FaceTime shares its first-line command-output reader inside the plugin. CUA derives advertised actions from the existing vocabulary while preserving platform exclusions. Identical hidden-label CSS now lives once in the base stylesheet; only the generic utility retains its extra clip-path.
Existing SDK contracts, diagnostic strings, validation, authority and settlement stay in place. No SDK expansion, config/schema/protocol/dependency change or Phase E memory-backend change.
Net production LOC: 98 removed, including the new FaceTime helper. 20 files total; 16 production paths, three tests and one shrink-only assertion baseline. This area-sized split keeps CI attribution independent of the widely imported core owners in the other two areas.
Best-effort tradeoffs accepted
None newly introduced. This cut consolidates implementations without removing guards or supported behavior. Tiny local helper calls/usage-bucket records are accepted implementation costs, not measured performance improvements.
Evidence
Fresh composed proof passed: formatting, stylelint, strict production native types, canonical test native types, typed lint, internal-result acknowledgement, all three Chromium hidden-label cases, wrapper/import closure, runtime and static cycles (both zero), suppression ratchet (14 cases), and changed-check planner. Ten resumed stage receipts contain 850 captures/85 unique inputs, all matching after normal signed commit hooks.
The initial broad typecheck recipe incorrectly applied script unused-parameter settings to unchanged test roots. It failed on three unused parameters. Production and test roots were split using their canonical configurations; no source, test assertion, production compiler option or baseline was weakened.
Historical focused evidence is reused for the six selected areas with explicit dependency/type/inventory/sidebar exceptions. All 18 non-base-CSS selected postimages match the signed accumulator. The composed base stylesheet also preserves main's unrelated catalog security-score selector. This is not a whole-transitive-graph equivalence claim.
Paired synthetic screenshots show static production-rendered SettingsToggleRow/CronInput markup with actual startup/lazy CSS, not a live Gateway or interactive app. Accessibility/geometry snapshots and all four PNG pairs match. Fresh composed Chromium coverage checks current CSS. Before/after screenshots are attached below.
Exact-head hosted PR CI remains the broad gate. No local broad suite, build, live Gateway, provider or device proof is claimed.
Initial hosted CI correctly required shrinking the Matrix assertion allowance from eight to six after this extraction removed two repeated casts. The repair changes only that baseline row. The exact-base native AST ratchet passes across 2,485 files, all 14 suppression cases and the planner pass, and independent review of the one-row repair found no actionable P0–P2 finding. Production and tests are unchanged; new exact-head CI remains required. The PR-context headings were also corrected without changing the evidence or attached images.
Exact-head CI39715813871 attempt1 has completed with inherited main-fixture failures, not green. Scoped standing maintainer authority selects the native pre-existing-failure exception. Fetched actual CI merge874334df has ordered main461123 and head68c82d parents; the deciding UI sources are byte-identical to main. Main#179729 introduced the test; later main#180031 replaced its old prop and synchronous rendering without migrating this consumer.
Separate signed fixture repair01e63fe observes the admitted artifactRead promise and waits on actual async button readiness, preserving the immediate pre-settlement current-callback click and all four retirement checks. All seven intent/sibling cases, targeted UI-chat native types, typed lint, formatting,14suppression cases and planner pass; fresh independent review is clean. It is not counted as cleanup LOC or exact-head CI success. No compatibility prop, assertion weakening, timeout increase, retry or skip. Local macOS versus hosted Linux gap is explicit. Coordinator flakes/latest six completed schedules inspected; attribution uses matching focused baseline and source, not an invented scheduled signature. No CI rerun or green-chasing branch update.