Skip to content

fix(workers): explain worker-local inference setup failures - #165960

Merged
RomneyDa merged 1 commit into
mainfrom
fix/worker-inference-troubleshooting
Oct 6, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/worker-inference-troubleshooting

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: worker-local inference setup failures report opaque internal errors when a device profile, Gateway model, or node-host prerequisite is missing.

User Impact

User impact: operators enabling worker-local inference now see the exact configuration owner and next action; ordinary Gateway inference remains unchanged.

Why This Change Was Made

The feature intentionally fails closed instead of silently moving inference back to the Gateway. This follow-up makes each fail-closed boundary actionable, distinguishes a missing paired device from an incompatible node, and adds one troubleshooting table covering the Gateway/profile/node split. It adds no config, protocol, storage, or fallback behavior.

Evidence

  • Focused owner tests: 67 passed in 306.9s.
  • node scripts/check-changed.mjs: passed.
  • Docs links, MDX, and config-example validation: passed.
  • AutoReview through P2: no actionable findings.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa
RomneyDa marked this pull request as ready for review October 6, 2026 06:13
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: S labels Oct 6, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 2:18 AM ET / 06:18 UTC.

ClawSweeper review

What this changes

The PR makes worker-local inference setup errors identify the configuration owner and recovery action, updates existing assertions, and adds troubleshooting documentation.

Merge readiness

✅ Ready for maintainer review

The diagnostic improvement remains useful: current main retains the older messages. No actionable introduced defect was found, and this member-authored PR should remain open.

Priority: P3
Reviewed head: aa63ae44acddb82c5d00ada88900044386a2a141

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused diagnostic repair with relevant existing coverage and no concrete correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from ordinary contributor runtime proof; supplied validation is test-only and was not treated as live evidence. Diagnostic changes do not materially change authority or stored-data contracts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from ordinary contributor runtime proof; supplied validation is test-only and was not treated as live evidence. Diagnostic changes do not materially change authority or stored-data contracts.
Evidence reviewed 7 items Pinned introduced change: Read the merge-base-to-head patch. Production changes update error messages, share the node setup message, and split an existing combined rejection into equivalent missing-device and missing-feature checks.
Current main still needs the improvement: Current main still reports the generic profile error and the older node setup/model errors. The latest release tag lacks the worker-local inference documentation page; no shipped replacement for this diagnostic improvement was established.
Verified merge result: Raw test-merge parents are the pinned main followed by the exact PR head. Its comparison with main retains the same narrow diagnostic change, without removing base-only work.
Findings None None.
Security None None.

How this fits together

Worker-local inference lets an explicitly selected paired worker run model requests using node-owned configuration. The Gateway checks placement and model eligibility before the node launches the worker; setup failures return diagnostics to the operator.

flowchart TD
  A[Selected device profile] --> B[Gateway eligibility checks]
  B --> C[Paired node prerequisites]
  C --> D[Node model configuration]
  D --> E[Worker launch]
  B --> F[Actionable setup diagnostic]
  C --> F
  D --> F
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +32, Tests +2, Docs +23. Total +57 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 6 47 15 +32
Tests 2 4 2 +2
Docs 1 23 0 +23
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 74 17 +57

Review metrics

None.

Technical review

Best possible solution:

Keep actionable diagnostics in the existing Gateway and node owners while preserving recorded inference placement and node-only credential custody.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: invalid inference settings, missing paired-device capability, and absent node models reach the existing setup-error branches. No runtime reproduction was executed.

Is this the best way to solve the issue?

Yes. Updating diagnostics at their existing owners and reusing rejection coverage is a narrow solution that preserves routing and credential boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ac304b9f9944.

Labels

Label changes:

  • add P3: This is a bounded diagnostic and troubleshooting improvement that preserves existing execution behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from ordinary contributor runtime proof; supplied validation is test-only and was not treated as live evidence. Diagnostic changes do not materially change authority or stored-data contracts.

Label justifications:

  • P3: This is a bounded diagnostic and troubleshooting improvement that preserves existing execution behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from ordinary contributor runtime proof; supplied validation is test-only and was not treated as live evidence. Diagnostic changes do not materially change authority or stored-data contracts.

Evidence

What I checked:

  • Pinned introduced change: Read the merge-base-to-head patch. Production changes update error messages, share the node setup message, and split an existing combined rejection into equivalent missing-device and missing-feature checks. (src/gateway/worker-environments/worker-turn-execution.ts:104, aa63ae44acdd)
  • Current main still needs the improvement: Current main still reports the generic profile error and the older node setup/model errors. The latest release tag lacks the worker-local inference documentation page; no shipped replacement for this diagnostic improvement was established. (src/node-host/node-worker-native-inference.ts:130, ac304b9f9944)
  • Verified merge result: Raw test-merge parents are the pinned main followed by the exact PR head. Its comparison with main retains the same narrow diagnostic change, without removing base-only work. (2531f98833de)
  • Existing regression cases: The updated rejection cases distinguish policy, missing device, and missing capability while retaining assertions that credentials, tunnels, execution phases, and local fallback are not reached. No new process fixtures or test cases were introduced. The PR reports 67 focused tests passing in 306.9 seconds; tests were not executed during this read-only review. (src/gateway/worker-environments/worker-turn-execution.inference.suite.ts:131, aa63ae44acdd)
  • Merged feature context: feat(gateway): dispatch worker-local native inference safely #163646 is merged at the pinned merge base and establishes the existing worker-local dispatch, node configuration ownership, and fail-closed behavior. This PR improves its diagnostics rather than introducing that policy. (bc8e15ed3b71)
  • Feature-history routing: Current-main file history records Dallin Romney's native-inference dispatch and canonical node-model configuration work. Detailed blame could not complete because retrieval of historical objects returned HTTP 403; no source-line introduction claim is made. (src/node-host/node-worker-native-inference.ts, fd5d7acb22d4)

Likely related people:

  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit 6d94780 into main Oct 6, 2026
200 checks passed
@RomneyDa
RomneyDa deleted the fix/worker-inference-troubleshooting branch October 6, 2026 06:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant