Repository navigation
refactor: fold private request handoffs into their owners - #178251
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: needs changes before merge. What this changesThis PR folds single-consumer request, rendering, installation, consent, and credential helpers into their existing owners. Example: A Mattermost user invokes /models.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the refactor removes private forwarding without a concrete introduced regression, but GitHub reports a merge conflict and the PR remains draft. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherProvider requests, slash commands, service installation inputs, plugin artifacts, and channel credentials enter existing operations that produce network requests, replies, service definitions, consent records, or resolved credentials. flowchart TD
A[Request or installation inputs] --> B[Existing operation owner]
B --> C[Shared validation and authorization]
C --> D[Provider or platform adapter]
D --> E[Network or filesystem effect]
E --> F[Existing recording and recovery]
Technical reviewBest possible solution: Retain the consolidation while resolving the reported conflict with current Mistral behavior preserved. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a bug report; inspection found no definite introduced failing input, and no target code was executed during review. Is this the best way to solve the issue? The consolidation uses existing operation owners, removes the replaced private paths, and preserves shared algorithms and public contracts without introducing replacement machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6088df9dbf4f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -525. Total -525 across 16 files. Added test files: 0. 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 20, 2026, 4:23 AM ET / 08:23 UTC. |
f1fb9a1 to
fe82f68
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. |
|
|
Merged via squash.
|
What Problem This Solves
Several private helpers have one production consumer and only transport facts that the consuming operation already owns. One internal picker module also exists solely to receive a large context packet from its slash-command caller.
User Impact
No intended user-visible change, migration or operator action. Public request, rendering, installation and credential behavior stays in its existing owners.
Why This Change Was Made
Fold those private handoffs into the existing request, installation, consent and credential-collection operations. Remove the Mattermost picker leaf after moving it into its actual branch. Keep the shared algorithms, public entry points, external validation, effect authorization, cancellation, response bounds and recovery owners.
Strict production delta against the rebased branch base: +1,993 / -2,518 = 525 net lines removed, across 16 paths. Tests are unchanged. No public SDK/package API, CLI/config/protocol, dependency, persisted format, schema or permission change. The standalone session-memory backend and its factory/registry/expiry/federation machinery and tests are untouched.
Best-effort tradeoffs accepted
Evidence
EADDRNOTAVAILfor127.0.0.2. One serial exact-base replay at9970230915c8a058d22ee1156664f56bae1678d8, with all 16 changed production paths restored to base, reproduces the identical assertion in the same unchanged test. All exact candidate/index bytes were restored and verified afterward. This is an investigated host limitation, not a repaired test or a claim of passing local proof. Hosted exact-head CI remains the platform gate. No alias, skip, retry or timeout change was added.96c031792485144cb9c80bfb69eba28a8a250453preserves main refactor(ai): simplify bounded tool preparation and report broken descriptors #177997's Mistral empty-conversion-check removal. The old-to-new Mistral delta is only those eight main-deleted lines; the other 15 candidate paths and dependency/formatter inputs are unchanged. On rebased headfe82f68f57e881c5c5403035042842027a64785f, targeted AI native types, Mistral typed lint, all three public Mistral suites (43 cases), suppression (14 cases), runtime cycles (0), Madge cycles (0), formatting and whitespace checks pass. Prior unaffected-input proof is reused, not presented as rerun on this head.Exact-head hosted CI run 39393823728 completed successfully for
fe82f68f57e881c5c5403035042842027a64785f, includingopenclaw/ci-gateandsecurity-fast. No CI rerun was requested. Earlier canceled context/evidence jobs were superseded by the successful same-head context/evidence job in run 39393823180; the draft-only skipped CI run is not proof. There are no failing exact-head CI jobs to attribute.Local proof uses isolated HOME/OpenClaw/XDG paths, nice10, serial one-worker focused Vitest and targeted native type graphs. No broad local suite, whole-graph typecheck, build, E2E, live provider/device or operator-state proof is claimed. The investigated local loopback limitation remains recorded above, not relabeled a passing local test.