{"record":{"id":"d0a9efa0ab64ad61","repo":"deepseek-ai/deepseek-harness","slug":"unsupported-dsh-runtime-platform-tag-platform-tag","errorCode":null,"errorMessage":"unsupported DSH_RUNTIME_PLATFORM_TAG {platform_tag!r}; expected one of {supported}","messagePattern":"unsupported DSH_RUNTIME_PLATFORM_TAG (.+?); expected one of (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"python/sdk-runtime/hatch_build.py","lineNumber":64,"sourceCode":"        raise RuntimeError(f\"unsupported deepseek-harness-runtime-bin build platform: {key}\") from exc\n\n\nclass RuntimeBuildHook(BuildHookInterface):\n    \"\"\"Assign the native wheel tag and reject incomplete or mixed-platform payloads.\"\"\"\n\n    def initialize(self, version: str, build_data: dict[str, object]) -> None:\n        if version == \"editable\":\n            return\n        if self.target_name == \"sdist\":\n            raise RuntimeError(\n                \"deepseek-harness-runtime-bin is wheel-only; build and publish platform wheels only.\"\n            )\n\n        platform_tag = os.environ.get(\"DSH_RUNTIME_PLATFORM_TAG\") or _host_platform_tag()\n        matches = [value for value in _PLATFORMS.values() if value[0] == platform_tag]\n        if len(matches) != 1:\n            supported = \", \".join(value[0] for value in _PLATFORMS.values())\n            raise RuntimeError(\n                f\"unsupported DSH_RUNTIME_PLATFORM_TAG {platform_tag!r}; expected one of {supported}\"\n            )\n        expected_executable = matches[0][1]\n        runtime_dir = Path(self.root) / \"src\" / \"deepseek_harness_runtime\" / \"runtime\"\n        runtime_files = sorted(runtime_dir.glob(\"dsh-jsonrpc-agent-pkg-*\") if runtime_dir.is_dir() else [])\n        expected_files = [expected_executable, f\"{expected_executable}-rg\"]\n        if \"-macos-\" in expected_executable:\n            expected_files.append(f\"{expected_executable}-spawn-helper\")\n        found_files = [path.name for path in runtime_files]\n        if found_files != expected_files:\n            raise RuntimeError(\n                f\"runtime wheel {platform_tag} payload must be {expected_files}; found {found_files}\"\n            )\n        for executable in runtime_files:\n            if executable.stat().st_mode & stat.S_IXUSR == 0:\n                raise RuntimeError(f\"runtime executable is not executable: {executable}\")\n        build_data[\"pure_python\"] = False\n        build_data[\"infer_tag\"] = False","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/python/sdk-runtime/hatch_build.py#L46-L82","documentation":"The `DSH_RUNTIME_PLATFORM_TAG` environment variable does not match exactly one platform entry in the manifest (unset, typo'd, or ambiguous). The message lists every supported tag so the variable can be corrected or cleared to fall back to host detection.","triggerScenarios":"Thrown at python/sdk-runtime/hatch_build.py:64 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set DSH_RUNTIME_PLATFORM_TAG to one of the supported tags listed in the message."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}