Repository navigation
fix: live model probes miss loopback requests after a build - #150684
Conversation
Co-authored-by: steipete <[email protected]> Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 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 maintainer review before merge. Reviewed September 17, 2026, 2:46 AM ET / 06:46 UTC. ClawSweeper reviewWhat this changesThe live model test suite uses an isolated provider registry so built plugins cannot divert its loopback requests, while preserving timeout handling and improving failure diagnostics. Merge readiness✅ Ready for maintainer review Keep open: this focused release-candidate repair remains useful, preserves the wire assertions, and has relevant before/after evidence. No blocking defect was found; the protected maintainer label also rules out automatic closure. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s direct-model qualification suite sends completion probes through model-provider adapters. Its loopback tests check request routing, headers, callbacks, and cancellation before qualification relies on genuine provider calls. flowchart TD
A[Model and probe options] --> B[Isolated provider registry]
B --> C[Configure transport host]
C --> D[Prepare model and headers]
D --> E[Provider adapter]
E --> F[Loopback server or live provider]
F --> G[Response and wire assertions]
D --> H[Timeout and cancellation]
H --> E
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +24. Total +24 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the direct-model sweep on one isolated registry while retaining production transport preparation and the existing real-HTTP assertions. Do we have a high-confidence way to reproduce the issue? Yes for the reported release-candidate setup: the body records failure with frozen built artifacts and success after the fix, and source supports the shared-registry mechanism. This read-only review did not execute a current-main reproduction. Is this the best way to solve the issue? Yes. The patch reuses the existing isolated-runtime API, aligns custom registration with completion dispatch, and preserves the meaningful wire checks without changing production contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8b9739cc48c0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Related: #150653
What Problem This Solves
Fixes live model qualification probes sending requests to real provider endpoints instead of their loopback transport after a build.
User Impact
Internal test fix; installed runtime behavior does not change. Qualification can enforce its routing, header, hook, and timeout assertions instead of failing with an empty local request list.
Dependency: #150653 merged into
release/2026.9.5on September 17, 2026 at 06:29:40 UTC, and its branch was deleted. That prerequisite is satisfied, so this PR targets the release branch directly. Its bootstrap-test change is not part of this three-file diff. Separate output-limit and native-steering failures remain unresolved and are neither changed nor waived here.Why This Change Was Made
Native built-plugin imports can replace adapters in the process-default registry while the source fixture configures a different package instance's transport host. The sweep now uses the existing isolated registry/runtime factories; custom Ollama registration uses the same owner.
The existing completion callback moves intact into a focused support module, with provider initialization inside its timeout/abort race. All wire assertions remain, including real HTTP aborts and callback ordering. The extraction also shrinks the oversized live test without changing a line-count baseline or suppression. Early provider errors now appear beside the request-count assertion.
This is a maintainer-requested, independently reviewed release-candidate repair, not an unrelated test cleanup.
Evidence
agents-rootandagents-othertype graphs, formatting, and diff checks pass. Reviewed three-file postimages remain byte-identical after rebasing.e60f19292fbfe707355cb60b0b8cf15a4c19a833with CI artifact 10481317411, whose manifest targets the same source and Node 24.19.0. This is retained focused evidence, not a new full release qualification.Focused commands and dependency provenance
The exact accepted prerequisite head
ee245a6398bffb09efc903faccdc7995abe69a66and its merged commitb466d221071cd72d48c26aafa1fdb8da94fa597bhave the same Git tree. The original e60 branch, pre-stack repair, exact-prerequisite stack, and original proof are preserved locally. Only the reviewed repair was rebased onto the already-merged prerequisite; neither the prerequisite nor release branch was modified by this publication.