Repository navigation
refactor: keep internal preparation with its sole consumers - #180279
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 changes before merge. What this changesThis PR moves private preparation logic into its existing consumers and removes the retired helpers and modules. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-directed refactor has no confirmed introduced defect, but a newly failed restart-continuation CI job still needs attribution. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherCLI commands, provider plugins, channel delivery, Doctor, and UI owners prepare inputs for existing runtime operations and return the same outputs and receipts. flowchart TD
A[Commands and plugin callbacks] --> B[Existing operation owners]
B --> C[Local preparation]
C --> D[Existing runtime contracts]
D --> E[Network and storage operations]
E --> F[Results and delivery receipts]
Technical reviewBest possible solution: Retain the consolidated owners and resolve attribution of the additional failed CI job before landing. Do we have a high-confidence way to reproduce the issue? This PR reports unnecessary internal indirection rather than a user-facing bug; source inspection confirms the helper-to-consumer moves. Is this the best way to solve the issue? Inlining the private preparation into existing owners is a coherent simplification, and the reviewed diff removes the replaced paths without adding competing state or policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 333b38de8778. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -502, Tests +209, Other 0. Total -293 across 68 files. Added test files: 2. View PR surface stats
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 22, 2026, 12:34 AM ET / 04:34 UTC. |
|
Exact-head inherited-failure evidence for
All 322 paginated exact-head checks are complete. Types, lint including Mantle, security-fast Actual CI checkout Peter's standing campaign authority selects the native inherited-failure exception, pinned to this exact reviewed head. CI remains red; no PR-caused failure, security gate, or enforced review is waived. No CI rerun, synthetic push, timeout, retry, or skip change was used. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…#180279) * refactor: keep Gemini preparation and ACP tails with their callers * refactor: keep Perplexity tool construction with its callback * refactor: keep canonical owner evidence with repair candidates * refactor: inline private serialization and health filter frames * refactor(diffs): inline sole-consumer language alias accessor * refactor(infra): inline private platform preparation frames * refactor(x): keep reply delivery with its sole owner * refactor(doctor): inline single-consumer environment preparation * refactor(commands): inline private diagnostic preparation frames * refactor(radius): inline private auth and stream preparation * refactor(cli): inline private completion and update presentation * refactor(core): inline private schema routing and error frames * refactor(core): fold private status and runtime preparation frames * refactor(duckduckgo): keep search configuration in its sole client * refactor(ui): inline private pairing and avatar frames * refactor(cli): inline private request and presentation frames * refactor(runtime): inline single-use preparation frames * refactor(discord): own conversation callbacks in the plugin * refactor(plugins): inline private activation and transport frames * chore: shrink Discord assertion baseline after surface cleanup
…retired Main removed resolveGatewayServiceEnvForPlatformNotes in openclaw#180279; the rebase kept a copy nothing calls, which failed the prod-types, test-types and lint gates. Co-Authored-By: Claude Fable 5.1 <[email protected]>
What Problem This Solves
Internal command and plugin implementations still expose single-consumer modules and private preparation frames that add indirection without sharing an operation.
User Impact
No intended user-visible change, migration, or operator action. Public SDK, CLI, configuration, protocol, and persisted-data contracts stay unchanged.
Why This Change Was Made
Keep preparation with its existing consumer: fold search configuration leaves into their clients, X reply delivery into its sending owner, canonical session-repair evidence into candidate preparation, and private command, provider, serialization, status, and UI preparation frames into their existing execution phases. Discord conversation callbacks now own their single-use preparation directly. Shared helpers and dynamic-import boundaries remain separate.
Tests that depended on retired internal exports now exercise the existing public request, repair-candidate, delivery, or plugin-callback entry point. Native plugin integrity/admission checks, provider acceptance observers, authority checks, cancellation, durable writes, output bytes, and prompt-prefix behavior remain.
Net production LOC: 502 removed across 55 production files; 68 files total. Tests grow by 209 net lines as internal-seam assertions move to public boundaries. The assertion-safety baseline shrinks by one to match the removed Discord assertion. Counts exclude tests, fixtures, generated files, and declarations; moved implementation bodies receive no deletion credit.
Best-effort tradeoffs accepted
None added: this is an internal ownership/surface cut, not removal of concurrency, security, durability, or integrity guards. Existing best-effort behavior remains unchanged. The standalone session memory backend and its factory, registry, expiry, federation, and tests are untouched.
Evidence
Each implementation packet received focused serial tests, targeted native typechecking, formatting, and independent P0–P2 review. Focused suites cover the affected command, provider/client, delivery, repair, plugin-callback, serialization, and UI owners; the stable prompt-prefix suite is included. All review findings were resolved before the corresponding commit.
Local proof gap: Mantle typed lint reports
SimpleStreamOptionsas an unresolved/error type in the unchangedresolveMantleReasoningdeclaration. Targeted native types pass; the SDK and llm-core source definitions are present, but local generated package declarations are absent. A narrow source-config attempt produces the same lint diagnostics. No cast, suppression, declaration build, or source workaround was added, and local typed lint for Mantle is not claimed green. Exact-head CI must qualify this owner.Pre-push guards passed: suppression suite (14 cases), assertion-safety ratchet after the shrink-only update, wrapper/eager-import closure (4 selected cases), runtime cycles (0), static Madge cycles (0), and line caps. The final plugin/Mantle packet passed 39 cases across six files, plus one unchanged second-filesystem-dependent skip. Tests ran serially with one worker and isolated state.
Broad builds, full graph typechecking, cross-platform/browser execution, and live providers are intentionally left to exact-head PR CI under the campaign's host CPU budget.
ci:fullis requested for the existing UI shell/pairing paths; there is no markup, styling, or intended visual change.CI attribution
Exact head:
ecd4d85641161911ab1eaca101c7d46f57a64d44; completed CI run 39720334509, attempt 1. CI is red only on the two inherited leaves below and their downstream aggregate; this is not a green-CI claim.src/auto-reply/reply/commands-plugin.native-subagents.test.tsas an unexpected cross-area consumer. That file was added on main and is absent from this PR head. The single case passes at exact PR head and fails with the identical extra path on clean CI main parent6c00e67f5703c85f2aea88cf79f7ff702821fbb5. Actual CI checkoutc5e24b078ba6ab808bbfc34710ddda2daaa09ec8has that main parent followed by the PR head. This is inherited main-integration fallout, not a waived PR regression.completeandresetcases withchild replaced: falsetime out inwaiting-for-continuation, with callsparent,parent,child,child. Both fail with the same case/phase/call-sequence/TimeoutError signature on the clean actual CI main parent in focused Blacksmith baseline 39721952754, leasetbx_01m5gxg031vwdj5f87m1nms7z5. Only those two cases were selected; three others were unselected. Baseline Vitest took 200.60s. Source was independently bound to6c00e67f5703c85f2aea88cf79f7ff702821fbb5; state was isolated and one worker used. The test and determining restart/admission owners are unchanged by this PR.The coordinator flake catalog and the last six completed scheduled-main run inventories were checked; no listed-flake shortcut is claimed. The paginated exact-head census contains 322 checks and no pending job. Types, lint (including Mantle), security-fast, and all other selected suites pass. Sixteen historical cancelled metadata jobs are superseded by successful auto-response
119635813105, dispatch119635813279, and PR-context119635812395replacements; no test suite is missing proof. The tested merge tree was independently reconstructed from its ordered main/head parents and matches exactly.Peter's standing campaign authority selects the native inherited-failure exception with this complete failure table. No security, review, or PR-caused failure is waived; no CI rerun or synthetic push was used. The baseline requested the routine 8-class workflow but observed two usable CPUs and 8 GB RAM; its runtime preparation and focused tests were remote, not local broad proof.