Repository navigation
fix(workers): explain worker-local inference setup failures - #165960
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 maintainer review before merge. Reviewed October 6, 2026, 2:18 AM ET / 06:18 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherWorker-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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +32, Tests +2, Docs +23. Total +57 across 9 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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
node scripts/check-changed.mjs: passed.