{"record":{"id":"b77e7113f9168cba","repo":"github/spec-kit","slug":"component-priority-must-be-an-integer-got-raw-r","errorCode":null,"errorMessage":"Component priority must be an integer, got {raw!r}.","messagePattern":"Component priority must be an integer, got (.+?)\\.","errorType":"exception","errorClass":"BundlerError","httpStatus":null,"severity":"error","filePath":"src/specify_cli/bundler/models/records.py","lineNumber":229,"sourceCode":"    if not cid:\n        raise BundlerError(\n            \"Corrupt records file: a contributed component is missing its 'id'.\"\n        )\n    return ComponentRef(\n        kind=kind,\n        id=cid,\n        version=(str(data[\"version\"]) if data.get(\"version\") else None),\n        source=(str(data[\"source\"]) if data.get(\"source\") else None),\n        priority=_parse_priority(data.get(\"priority\")),\n        strategy=(str(data[\"strategy\"]) if data.get(\"strategy\") else None),\n    )\n\n\ndef _parse_priority(raw: Any) -> int | None:\n    if raw is None:\n        return None\n    if isinstance(raw, bool) or not isinstance(raw, (int, str)):\n        raise BundlerError(f\"Component priority must be an integer, got {raw!r}.\")\n    try:\n        return int(raw)\n    except (TypeError, ValueError):\n        raise BundlerError(\n            f\"Component priority must be an integer, got {raw!r}.\"\n        ) from None\n\n\ndef _utc_now() -> str:\n    return datetime.now(timezone.utc).strftime(\"%Y-%m-%dT%H:%M:%SZ\")\n","sourceCodeStart":211,"sourceCodeEnd":240,"githubUrl":"https://github.com/github/spec-kit/blob/bf88c9f9a82fa370c7a7257aa2b3cf10b457b65c/src/specify_cli/bundler/models/records.py#L211-L240","documentation":"Error \"Component priority must be an integer, got {raw!r}.\" thrown in github/spec-kit.","triggerScenarios":"Thrown at src/specify_cli/bundler/models/records.py:229 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Change the component priority in the records file to an integer value, or reinstall the bundle to regenerate valid records."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bf88c9f9a82fa370c7a7257aa2b3cf10b457b65c","analyzedAt":"2026-08-14T19:43:37.150Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}