Repository navigation
feat(protocol): define worker-local inference contracts - #158902
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. Reviewed October 5, 2026, 5:03 PM ET / 21:03 UTC (Revision 45). ClawSweeper reviewWhat this changesAdds optional worker-local inference metadata to worker profiles and active session placements, plus versioned worker and node capability identifiers. Merge readiness⛔ Needs changes before merge - 1 item remains This protocol foundation remains necessary: current main lacks the new metadata and capability identifiers. The narrowed patch has no actionable correctness findings, and earlier runtime/UI concerns belong to the separate stack slices. Priority: P2 Review scores
Verification
How this fits togetherGateway protocol schemas define the messages exchanged among OpenClaw clients, the Gateway, and execution workers. These additions let later runtime and client changes distinguish worker-local inference from inference through the Gateway. flowchart TD
A[Configured worker profiles] --> B[Environment summaries]
C[Active session placement] --> D[Placement summaries]
B --> E[Gateway protocol validation]
D --> E
F[Worker build capabilities] --> E
E --> G[Clients and worker connections]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +28. Total +33 across 6 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one additive protocol vocabulary, with optional worker metadata and capability-gated runtime adoption in the separately reviewed stack. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR defines a new protocol capability rather than repairing a reported existing-behavior failure. Is this the best way to solve the issue? Yes: the narrowed additions extend the existing schemas and capability vocabulary without duplicating configuration or runtime owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0e54386a4634. LabelsLabel changes: No label 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
HistoryReview history (44 earlier review cycles; latest 8 shown)
|
0cecc88 to
2858309
Compare
82744ad to
4741a64
Compare
93ecb59 to
3d3904d
Compare
93b6c9f to
fe65c67
Compare
d0809af to
d47703b
Compare
|
@clawsweeper re-review exact head 98ae53c9f09: CI repair only renames the unchanged native-inference SQLite fixture to the existing .test-support ownership convention; database-worker ratchet and the 21-test worker RPC file pass. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review exact head e4b248a8cc3: final CI repair replaces wall-clock test races with the repository-owned Vitest cancellation signal. Timeout-race ratchet, all core-test type shards, and the 14-test real worker process file pass. |
|
🦞👀 Re-review progress:
|
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
|
@clawsweeper re-review\n\nExact head: |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: re-review\n\nExact head: |
|
ClawSweeper assist: This needs a full correctness re-review. The requested Evidence:
Suggested next action: Request Source: #158902 (comment) |
|
@clawsweeper review Exact head: |
|
🦞👀 Re-review progress:
|
|
@clawsweeper review Exact head: |
|
🦞👀 Re-review progress:
|
|
@clawsweeper review Exact head: |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|


What Problem This Solves
Defines the protocol and config foundation for worker-local model inference.
models.providersconfiguration for worker-local inference; there is no separate node-side inference file or model allowlist.inference: "worker"in worker profile and active placement projections.worker-local-inference-v1protocol capability.workeras the only public value. The earlierruntime-localspelling never shipped, so this stack does not add a Doctor migration or runtime compatibility reader for it.Stack
Evidence
pnpm config:docs:checkpnpm check:base-config-schemapnpm check:bundled-channel-config-metadatapnpm tsgopnpm check:test-types