{"record":{"id":"bade0df715454841","repo":"tinyhumansai/openhuman","slug":"worker-protocol-mismatch-expected-got","errorCode":null,"errorMessage":"{} worker protocol mismatch: expected {}, got {:?}","messagePattern":"(.+?) worker protocol mismatch: expected (.+?), got (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/runtime/pool/worker.rs","lineNumber":191,"sourceCode":"                \"{} worker exited before readiness handshake\",\n                launch.lang.id()\n            ),\n            Ok(Err(error)) => {\n                return Err(error).context(\"reading worker handshake\");\n            }\n            Err(_) => bail!(\"{} worker readiness handshake timed out\", launch.lang.id()),\n        };\n        let ready: PoolReadyLine = serde_json::from_str(&ready_line)\n            .with_context(|| format!(\"parsing worker ready line: {ready_line}\"))?;\n        if !ready.ready {\n            bail!(\n                \"{} worker failed to start: {}\",\n                launch.lang.id(),\n                ready.error.unwrap_or_else(|| \"unknown\".to_string())\n            );\n        }\n        if ready.protocol != Some(PROTOCOL_VERSION) {\n            bail!(\n                \"{} worker protocol mismatch: expected {}, got {:?}\",\n                launch.lang.id(),\n                PROTOCOL_VERSION,\n                ready.protocol\n            );\n        }\n        if ready.protocol_token != expected_token {\n            bail!(\"{} worker protocol authentication failed\", launch.lang.id());\n        }\n        tracing::info!(lang = launch.lang.id(), \"[runtime_pool] worker ready\");\n\n        Ok(Self {\n            launch: launch.clone(),\n            _child: child,\n            stdin,\n            responses: lines,\n            jobs_done: 0,\n            last_used: Instant::now(),","sourceCodeStart":173,"sourceCodeEnd":209,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/runtime/pool/worker.rs#L173-L209","documentation":"The worker's ready line advertises a protocol version other than PROTOCOL_VERSION — the supervisor and the worker executable were built from mismatched code (stale installed worker, partial upgrade). Wire framing cannot be trusted after this point.","triggerScenarios":"Thrown at src/openhuman/runtime/pool/worker.rs:191 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-provision / rebuild the worker runtime so both sides come from the same build","Clear stale cached worker scripts and relaunch the pool"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}