{"record":{"id":"bcc67e6751560218","repo":"deepseek-ai/deepseek-harness","slug":"path-platform-entries-must-contain-string-tag-an","errorCode":null,"errorMessage":"{path} platform entries must contain string tag and executable fields","messagePattern":"(.+?) platform entries must contain string tag and executable fields","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"python/sdk-runtime/hatch_build.py","lineNumber":30,"sourceCode":"def _load_platforms() -> dict[str, tuple[str, str]]:\n    \"\"\"Load and validate the platform manifest inside an isolated wheel build.\"\"\"\n    path = Path(__file__).with_name(\"platforms.json\")\n    try:\n        payload = json.loads(path.read_text())\n    except (OSError, json.JSONDecodeError) as error:\n        raise RuntimeError(f\"could not read runtime platform manifest from {path}\") from error\n    if not isinstance(payload, dict) or not payload:\n        raise RuntimeError(f\"{path} must contain a non-empty platform object\")\n    platforms: dict[str, tuple[str, str]] = {}\n    for name, raw in payload.items():\n        if (\n            not isinstance(name, str)\n            or not isinstance(raw, dict)\n            or set(raw) != {\"tag\", \"executable\"}\n            or not isinstance(raw[\"tag\"], str)\n            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","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/python/sdk-runtime/hatch_build.py#L12-L48","documentation":"Error \"{path} platform entries must contain string tag and executable fields\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at python/sdk-runtime/hatch_build.py:30 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Give every platform entry string tag and executable fields in the manifest."],"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"}