{"record":{"id":"b18bfe8a5960c47c","repo":"deepseek-ai/deepseek-harness","slug":"unsupported-deepseek-harness-runtime-bin-build-pla","errorCode":null,"errorMessage":"unsupported deepseek-harness-runtime-bin build platform: {key}","messagePattern":"unsupported deepseek-harness-runtime-bin build platform: (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"python/sdk-runtime/hatch_build.py","lineNumber":46,"sourceCode":"            or not isinstance(raw[\"executable\"], str)\n        ):\n            raise RuntimeError(f\"{path} platform entries must contain string tag and executable fields\")\n        platforms[name] = (raw[\"tag\"], raw[\"executable\"])\n    return platforms\n\n\n_PLATFORMS = _load_platforms()\n\n\ndef _host_platform_tag() -> str:\n    machine = platform.machine().lower()\n    arch = \"arm64\" if machine in {\"arm64\", \"aarch64\"} else \"x64\" if machine in {\"x86_64\", \"amd64\"} else machine\n    system = platform.system().lower()\n    key = f\"macos-{arch}\" if system == \"darwin\" else f\"linux-{arch}\" if system == \"linux\" else system\n    try:\n        return _PLATFORMS[key][0]\n    except KeyError as exc:\n        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(","sourceCodeStart":28,"sourceCodeEnd":64,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/python/sdk-runtime/hatch_build.py#L28-L64","documentation":"Error \"unsupported deepseek-harness-runtime-bin build platform: {key}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at python/sdk-runtime/hatch_build.py:46 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported platform keys in the manifest; remove or rename the unsupported entry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}