Repository navigation
Description
Summary
The OpenClaw provider-switch E2E completed both route changes and returned the requested PONG, but the final agent turn did not use the managed gateway. OpenClaw rejected the gateway connection because a scope upgrade remained pending, then returned the response through embedded fallback.
This is a product regression with an intermittent trigger, not a flaky text assertion. The test must continue to reject an apparently successful reply that bypasses the managed gateway.
Current evidence
- Run: https://github.com/NVIDIA/NemoClaw/actions/runs/32178707220
- Job: https://github.com/NVIDIA/NemoClaw/actions/runs/32178707220/job/95856132843
- Exact SHA:
b2d1ce52a716444b083f6e3b8ed8bace1cba3240 - Test:
Inference: OpenClaw switches providers and remains responsive / no provider credential - OpenClaw:
2026.7.1 - Route update and route/config inspection passed.
- Both post-switch inference probes passed on their first attempt. No retry ran.
- The agent response contained
PONG, but the structured trace recordedtransport: "embedded"andfallbackFrom: "gateway". - Stderr recorded
scope upgrade pending approvalandpairing required: device is asking for more scopes than currently approved.
Recent executions of the same job passed with OpenClaw 2026.7.1 and fallbackUsed: false:
- https://github.com/NVIDIA/NemoClaw/actions/runs/32109011388/job/95624845946
- https://github.com/NVIDIA/NemoClaw/actions/runs/32101603265/job/95604177927
This is a recurrence of the product failure family described in #4462, but it occurs specifically after a provider switch. The dedicated issue-4462 scope-upgrade target passed in the same run, so that target does not protect this provider-switch path.
Required behavior
- After a provider switch, the next OpenClaw agent turn succeeds through the managed gateway without embedded fallback.
- Reconcile or approve the exact allowlisted scope upgrade before the agent turn is accepted as successful.
- Preserve the current fail-closed assertion against embedded fallback, even when the reply text is correct.
- Add deterministic coverage at the smallest stable scope-state boundary that would catch this path.
- Keep credentials and raw sensitive gateway output redacted from diagnostics.
Non-goals
- Accepting
PONGalone as success. - Retrying the complete workflow or broadening retries.
- Weakening scope checks or allowing unreviewed scopes.
Release signal
Classification: product regression with an intermittent trigger. It is terminal for the candidate and recovered zero times.
Activity
fix(inference): settle OpenClaw pairing after route changes (#9650)