Repository navigation
fix: report missing node worker credentials - #170257
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 rejects unresolved node provider credentials and replaces misleading update warnings with worker inference setup guidance. Example: A node configures apiKey as ${WORKER_PROXY_AUTH}, but WORKER_PROXY_AUTH is absent.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this useful maintainer-authored bug fix open; no introduced defect was found, but its recorded validation hold remains unresolved. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherNode startup snapshots local model credentials and advertises inference capability; Gateway launch admission consumes that capability before dispatching worker turns. flowchart LR
A[Node configuration] --> B[Canonical resolution facts]
B --> C[Provider credential resolution]
C --> D[Native inference snapshot]
D --> E[Node capability inventory]
E --> F[Gateway launch admission]
F --> G[Worker turn or setup guidance]
Technical reviewBest possible solution: Keep the shared setup diagnostic and canonical unresolved-path check while preserving resolved opaque credentials and fail-closed worker placement. Do we have a high-confidence way to reproduce the issue? Fetched-main source exposes both failure paths, and the body reports repeated live reproduction; this read-only review executed no target code. Is this the best way to solve the issue? The focused repair uses authoritative resolution facts instead of credential-string heuristics and reuses the existing diagnostic without changing admission or retry policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 033ec4948f52. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +29, Docs +4. Total +34 across 8 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 HistoryReview history (3 earlier review cycles)Reviewed October 12, 2026, 9:52 PM ET / October 13, 2026, 01:52 UTC (Revision 4). |
|
Landing remains blocked at
Each failed job log was fetched once. Recent scheduled-main logs do not provide a matching result for the four native/wire cases. Focused baseline attempts built the isolated runtime successfully, but the native-slot and upgrade-wire tests stalled during collection/startup and were stopped without an assertion result; the other two did not execute. A queued remote lease was cancelled without executing tests. A full baseline CI dispatch was also cancelled after confirming its test plan omits these four targeted E2E files. None of these incomplete attempts is counted as inherited-failure proof. No causal product regression has been established, and no source, test, assertion, timeout, or retry was changed. No admin merge is being requested for the unclassified failures. The remaining action is a completed focused baseline run of these four files, followed by head comparison if baseline passes. The prior finalization-scope failures did not recur in the fresh PR run. |
|
GitHub-CI baseline classification is complete. Two reported native/wire failures are exact inherited matches; two remain unclassified at the assertion/checkpoint level. #170257 stays open at The disposable probe #170480 initially added exactly one comment to each of the four test files. Completed all-file baseline job: probe head
The skill-library mismatch was checked with two focused runs whose only source change was that file's probe comment:
This PR's original skill-library error occurs on The original PR CI run passed all selected static checks; its Git-install failure was already independently classified as inherited in comment 6135654078. No test logic, assertions, timeouts, retries, or production code were changed for these probes. No Crabbox/Testbox lease was requested. The remaining requirement is matching baseline evidence or a demonstrated cause for both the later required-native checkpoint and the first-local-turn unsettled-writer failure. The inherited-only admin exception is not being applied to these unmatched failures. Native tooling was attempted but refused a sparse tooling checkout and then a full checkout without its installed Assertion-level correction: the required-native case has the same expected/received values and premature |
|
Source tracing identifies the retired settlement contract in 883d61f (#169484): the durable final reply may precede workspace reconciliation. The later skill authoring The test-only repair is in #170537. Exact-head CI 38337199993 selected all four files and passed all selected static checks. Upgrade-wire now passes 1/1 (242.309 test seconds / 269.19 runner seconds). Native-slot, required-native, and skill-library each hit the existing 300-second no-output watchdog without an assertion result. Those runs do not validate the other three repairs or establish inherited failure signatures. Logs: https://github.com/openclaw/openclaw/actions/runs/38337199993/job/115100222590 and https://github.com/openclaw/openclaw/actions/runs/38337199993/job/115100222665 . The earlier local-first unsettled database writer rejection was recorded separately for the session-actor owner; this lane did not modify its admission or authority guard. The failed-gate stop rule applies: no budgets were raised, no blind rerun or admin merge was attempted. This PR remains held at 6eb661e, with no new main merge or push from this lane. |
## What Problem This Solves Three selectively run node-worker E2Es assert ordering that #169484 intentionally retired by delivering the durable reply before workspace reconciliation. The skill-library E2E also exposed a retained-transcript regression during its sequential worker flow; its original assertions did not explicitly equate a final reply with settlement. ## User Impact The final diff is test-only. It verifies early replies while preserving claim release, workspace settlement, upgrade recovery, retained-session continuation, and skill-library behavior. ## Change - Native-slot waits on the existing session-change signal, then asserts that the claim and pending result are gone before proving physical-slot reuse. - Upgrade-wire checks its attempted upload after the existing durable recovery observation. - Required-native receives A's final while quiescence is held, preserves the queued-follow-up proof, and waits for B's settled placement. - Skill-library joins workspace settlement before sequential turns; its wire fixture exposes existing events. The updated waits uncovered two production defects: #169622 tied retained transcript facts to a writer that early final releases, and successful claim closure did not reach the existing lifecycle/WebSocket bridge. Those fixes landed separately in #170556 and #170575. Main is now integrated at 38033f1, and the final diff contains only the five test/fixture files. Production LOC: 0. No timers, polling, retries, budgets, or assertion weakening were added. ## Evidence [Integrated CI 38340516247](https://github.com/openclaw/openclaw/actions/runs/38340516247) at 7be861c passed all four E2Es and the required CI gate: | File | Test seconds | Runner seconds | | --- | ---: | ---: | | native-worker-slot | 36.141 | 45.72 | | paired-node-worker-upgrade-wire | 158.587 | 168.53 | | required-native-same-session | 82.785 | 94.17 | | skill-library-worker-wire | 41.308 | 67.21 | [Native/upgrade/same-session log](https://github.com/openclaw/openclaw/actions/runs/38340516247/job/115110480812) shows A and B claims clearing and all four same-session pairs settling on their retained environments. [Skill log](https://github.com/openclaw/openclaw/actions/runs/38340516247/job/115110480823) shows eight remote placements move from reconciling to clear; the complete authoring, continuation, cancellation, and reclaim flow passes. The [unchanged-main probe](https://github.com/openclaw/openclaw/actions/runs/38331787910/job/115083216251) reproduced the original four failures. [Control CI 38339534658](https://github.com/openclaw/openclaw/actions/runs/38339534658/job/115107577910), with only the test alignment and the extra active-run condition removed, still reached a reconciling placement twice and received no further event before the 300-second watchdog. No E2E artifacts were uploaded; the retained Vitest resource was watchdog cleanup evidence, not proof of a product child leak. Changed-file formatting, type-aware lint, and independent review pass with no actionable P0/P1 findings. Local diagnostic command `pnpm test:e2e:gateway test/e2e/qa-lab/runtime/native-worker-slot.e2e.test.ts --maxWorkers=1` took 179.68 seconds before test execution and refused to proceed because artifact separation could not be verified. The guard was preserved; subsequent proof used GitHub CI only, with no leases. The earlier skill local-first rejection with an unsettled database writer remains recorded for the session-actor campaign; this change does not alter that guard. Related credential-diagnostics PR: #170257. Final-head CI 38344788931 has the same inherited main-only TS2724 error as #170575: config-preflight-snapshot.test.ts:41 imports the function made private by main #170530. CI checkout 1e93e8ab merges this head into main 88e5ae8; this test-only PR does not change either config file. [Exact static failure](https://github.com/openclaw/openclaw/actions/runs/38344788931/job/115124083706). The config owner follow-up is recorded; no worker behavior failure is waived. Final test-only head 38033f1 passes all four selected E2Es in CI 38344788931: native-slot 45.28s Vitest / 46.69s runner; upgrade-wire 166.37s / 167.94s; required same-session 100.49s / 102.91s; skill-library 64.35s / 66.24s. Final diff is exactly five test/fixture files and zero production LOC. The only remaining failure is the documented inherited main TS2724 check; landing uses that scoped static-failure exception.
## What Problem This Solves Three selectively run node-worker E2Es assert ordering that openclaw#169484 intentionally retired by delivering the durable reply before workspace reconciliation. The skill-library E2E also exposed a retained-transcript regression during its sequential worker flow; its original assertions did not explicitly equate a final reply with settlement. ## User Impact The final diff is test-only. It verifies early replies while preserving claim release, workspace settlement, upgrade recovery, retained-session continuation, and skill-library behavior. ## Change - Native-slot waits on the existing session-change signal, then asserts that the claim and pending result are gone before proving physical-slot reuse. - Upgrade-wire checks its attempted upload after the existing durable recovery observation. - Required-native receives A's final while quiescence is held, preserves the queued-follow-up proof, and waits for B's settled placement. - Skill-library joins workspace settlement before sequential turns; its wire fixture exposes existing events. The updated waits uncovered two production defects: openclaw#169622 tied retained transcript facts to a writer that early final releases, and successful claim closure did not reach the existing lifecycle/WebSocket bridge. Those fixes landed separately in openclaw#170556 and openclaw#170575. Main is now integrated at 38033f1, and the final diff contains only the five test/fixture files. Production LOC: 0. No timers, polling, retries, budgets, or assertion weakening were added. ## Evidence [Integrated CI 38340516247](https://github.com/openclaw/openclaw/actions/runs/38340516247) at 7be861c passed all four E2Es and the required CI gate: | File | Test seconds | Runner seconds | | --- | ---: | ---: | | native-worker-slot | 36.141 | 45.72 | | paired-node-worker-upgrade-wire | 158.587 | 168.53 | | required-native-same-session | 82.785 | 94.17 | | skill-library-worker-wire | 41.308 | 67.21 | [Native/upgrade/same-session log](https://github.com/openclaw/openclaw/actions/runs/38340516247/job/115110480812) shows A and B claims clearing and all four same-session pairs settling on their retained environments. [Skill log](https://github.com/openclaw/openclaw/actions/runs/38340516247/job/115110480823) shows eight remote placements move from reconciling to clear; the complete authoring, continuation, cancellation, and reclaim flow passes. The [unchanged-main probe](https://github.com/openclaw/openclaw/actions/runs/38331787910/job/115083216251) reproduced the original four failures. [Control CI 38339534658](https://github.com/openclaw/openclaw/actions/runs/38339534658/job/115107577910), with only the test alignment and the extra active-run condition removed, still reached a reconciling placement twice and received no further event before the 300-second watchdog. No E2E artifacts were uploaded; the retained Vitest resource was watchdog cleanup evidence, not proof of a product child leak. Changed-file formatting, type-aware lint, and independent review pass with no actionable P0/P1 findings. Local diagnostic command `pnpm test:e2e:gateway test/e2e/qa-lab/runtime/native-worker-slot.e2e.test.ts --maxWorkers=1` took 179.68 seconds before test execution and refused to proceed because artifact separation could not be verified. The guard was preserved; subsequent proof used GitHub CI only, with no leases. The earlier skill local-first rejection with an unsettled database writer remains recorded for the session-actor campaign; this change does not alter that guard. Related credential-diagnostics PR: openclaw#170257. Final-head CI 38344788931 has the same inherited main-only TS2724 error as openclaw#170575: config-preflight-snapshot.test.ts:41 imports the function made private by main openclaw#170530. CI checkout 1e93e8ab merges this head into main 8526c5b; this test-only PR does not change either config file. [Exact static failure](https://github.com/openclaw/openclaw/actions/runs/38344788931/job/115124083706). The config owner follow-up is recorded; no worker behavior failure is waived. Final test-only head 38033f1 passes all four selected E2Es in CI 38344788931: native-slot 45.28s Vitest / 46.69s runner; upgrade-wire 166.37s / 167.94s; required same-session 100.49s / 102.91s; skill-library 64.35s / 66.24s. Final diff is exactly five test/fixture files and zero production LOC. The only remaining failure is the documented inherited main TS2724 check; landing uses that scoped static-failure exception.
Report native worker provider setup problems with setup guidance instead of an update warning. Reject unresolved configuration references at provider auth while preserving resolved opaque credentials. Validated missing-provider and removed-key flows, provider-auth and native-launch boundaries, and all four worker E2Es on the final head (CI 38345859459). Remaining config-test TS2724 and deferred-update expectation failures were independently attributed to main; the latter reproduced in main-baseline CI 38347391422.
What Problem This Solves
A node with no usable local provider configuration was reported as needing an update. Removing an environment-backed API key could also leave its unresolved placeholder treated as an opaque credential, producing a provider 401 instead of a node setup diagnosis.
Reuse the existing node inference setup message at native launch admission. At the provider-auth owner, reject the exact configuration path when the canonical resolution facts still mark it unresolved. Already-resolved opaque credential bytes remain valid, including strings that resemble environment placeholders. Inventory-change retries and admission rules are unchanged.
Net production LOC: +5. The setup message has one lightweight shared owner; no new configuration, protocol, or credential format is introduced.
Evidence
pnpm test src/agents/model-auth-provider-config.test.ts --maxWorkers=1: 8 passed, 44.131 s.Release-note context: missing native worker credentials/configuration now produce setup guidance rather than an update warning or an attempted request using an unresolved environment reference.
Updated validation
The worker baseline investigation found obsolete early-final timing assertions and two independent settlement defects. The transcript-authority repair is #170556; the completion notification repair is #170575. The E2E alignment is tracked in #170537. All four selected E2Es passed on the final test-only head in CI 38344788931, and #170537 is merged. Main was merged into this PR once, without conflicts, at 61992bc. The credential-diagnostics diff remains the same eight files, and all 70 introduced +/- lines match the original independently reviewed patch. Basic formatting/lint and diff checks passed. Final CI 38345859459 completed with all four repaired worker E2Es passing: native 42.02s Vitest / 43.47s runner; upgrade 161.08s / 162.72s; required same-session 111.59s / 113.72s; skill-library 65.80s / 68.19s. Two unrelated baseline failures remain and are covered by the authorized inherited-failure landing exception:
check-test-types-core-4:src/commands/config-preflight-snapshot.test.ts:41imports the now-privatereadConfigPreflightSnapshot(TS2724), introduced by fix: release Doctor inspection resources and rejected locks #170530. The implementation and test blobs are identical on main and this tested merge; this PR touches neither file.checks-node-changed-compact-large-7-1:src/cli/update-cli.deferred-completion.test.ts:114, casefinalize commits a validated downgrade without changing channels (9999.1.1, valid=false), expectsGateway did not settle.after fix(update): explain runtime retention and recovery failures #169280 introduced the more specific readiness guidance. A main-baseline probe changing only the suite label reproduced the exact expected/actual difference: CI 38347391422, job 115132090422, based on mainc7bbfd1281cd673a9a76e95acb43f33b4c7f3be6. Probe test: probe deferred update completion on main #170643 is being closed without merging. This PR touches neither that test nor the update implementation.All other completed CI and security checks passed. Both baseline defects are recorded with the campaign coordinator.