Repository navigation
fix(agents): build registry for an explicit selected runtime - #132489
AndrewEAUS wants to merge 12 commits into
Conversation
(cherry picked from commit 8890e1b)
(cherry picked from commit 2c3a54f)
* fix(codex): update managed runtime to 0.150.1 * test(codex): refresh newer runtime fixtures (cherry picked from commit c45cc17)
…nclaw#131515) * fix(gateway): keep config writes pending through watcher handoff * fix(gateway): import reload plan from its owning module (cherry picked from commit e0edb3a)
When an admitted Grok-primary generation executes an explicit OpenAI/Codex selection, build a fresh selection-keyed registry from the admitted metadata snapshot. Preserve strict stale-generation admission and coalesce concurrent/repeated selected routes.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:
Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed. To remove lockfile changes, restore them from the target branch: git fetch origin
git checkout 'origin/main' -- 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
|
Codex review: needs real behavior proof before merge. Reviewed September 5, 2026, 9:45 AM ET / 13:45 UTC. ClawSweeper reviewWhat this changesThe branch builds a separate plugin registry for explicitly selected runtimes, adds concurrency and reload coverage, and carries earlier release, dependency, installer, and localization changes. Merge readiness⛔ Blocked before merge - 9 items remain Keep open pending supersession verification. Current main has a broader selected-runtime implementation, but the required GitHub-verified connection to a merged fixing PR is incomplete; no discrete introduced correctness defect was established. Priority: P2 Review scores
Verification
How this fits togetherBefore running a model, OpenClaw prepares the provider and runtime plugins that the turn needs. This registry must support the selected route while remaining tied to the Gateway’s admitted metadata generation. flowchart TD
A[Configured primary] --> C[Gateway plugin generation]
B[Explicit model selection] --> D[Lease admission]
C --> D
D --> E{Registry covers selection?}
E -->|Yes| F[Reuse registry]
E -->|No| G[Build selected registry]
F --> H[Execute model turn]
G --> H
Decision needed
Why: Current source and tests strongly overlap the request, but the required merged-PR connection is not verified and the conflicted branch cannot establish its final landing scope. Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use main’s canonical registry-extension and generation-lineage flow, retaining only a demonstrated remaining regression without adding a second coverage policy. Do we have a high-confidence way to reproduce the issue? No current-main failing reproduction was established. The older source explains the reported registry mismatch, while current main checks actual plugin coverage and tests derived selected generations. Is this the best way to solve the issue? No, this is not the best landing shape against current main: the canonical loader already extends selected registries and records lineage, so any remaining repair should use that owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a4514a0aff9d. LabelsLabel changes:
Label 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
|
|
Thanks for the regression report. Closing this PR as superseded by #132804 ( |
Summary
Fix explicit model selection when the Gateway's admitted plugin generation is owned by a different provider/runtime than the requested route.
Production reproduction:
xai/grok-4.6openai/gpt-5.6-solThe Gateway correctly admitted the configured Grok generation, but registry reuse could carry that Grok-owned registry into the explicit OpenAI/Codex route. The selected model could then be absent or rejected even though the Codex subscription runtime was installed and authenticated.
Fix
Tests
The production-shaped regression proves:
openai/gpt-5.6-sol/codextuple.Validation:
oxlintpassed.git diff --checkpassed.pnpm buildpassed in the reviewed composite build.Live validation
Validated from a source-built
2026.9.1-beta.1package: a Worker with Grok as its configured primary explicitly selectedopenai/gpt-5.6-sol, completed on the requested OpenAI/Codex route, and reported no reroute.This is separate from the prepared catalog fallback behavior in #127284; both defects can appear in the same mixed-provider deployment.