{"record":{"id":"7463964975d85f2e","repo":"rohitg00/ai-engineering-from-scratch","slug":"manifest-files-must-be-a-non-empty-object","errorCode":null,"errorMessage":"manifest files must be a non-empty object","messagePattern":"manifest files must be a non-empty object","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"phases/13-tools-and-protocols/27-skill-evals-packaging-and-portability/outputs/skill-release-gate/scripts/evaluate_skill.py","lineNumber":464,"sourceCode":"        if type(passed) is not bool:\n            raise ValueError(f\"{field} check {check_id!r} needs a boolean verdict\")\n        if not isinstance(evidence, str) or not evidence.strip():\n            raise ValueError(f\"{field} check {check_id!r} needs evidence\")\n        seen.add(check_id)\n        checks.append({\"id\": check_id, \"passed\": passed, \"evidence\": evidence})\n    return {\"passed\": all(bool(check[\"passed\"]) for check in checks), \"cases\": checks}\n\n\ndef verify_manifest(bundle: Path, config: dict[str, object]) -> dict[str, object]:\n    if type(config.get(\"manifestVersion\")) is not int or config.get(\n        \"manifestVersion\"\n    ) != 1:\n        raise ValueError(\"manifestVersion must be the supported integer value 1\")\n    if config.get(\"algorithm\") != \"sha256\":\n        raise ValueError(\"manifest algorithm must be 'sha256'\")\n    raw_files = config.get(\"files\")\n    if not isinstance(raw_files, dict) or not raw_files:\n        raise ValueError(\"manifest files must be a non-empty object\")\n    expected: dict[str, str] = {}\n    issues: list[str] = []\n    for raw_path, digest in raw_files.items():\n        if not isinstance(raw_path, str) or not isinstance(digest, str):\n            issues.append(\"manifest paths and digests must be strings\")\n            continue\n        relative = PurePosixPath(raw_path)\n        if (\n            \"\\\\\" in raw_path\n            or relative.is_absolute()\n            or any(part in {\"\", \".\", \"..\"} for part in relative.parts)\n            or raw_path != relative.as_posix()\n        ):\n            issues.append(f\"invalid manifest path: {raw_path!r}\")\n            continue\n        if relative.as_posix() == RESERVED_MANIFEST_PATH:\n            issues.append(f\"reserved manifest path must not be listed: {raw_path!r}\")\n            continue","sourceCodeStart":446,"sourceCodeEnd":482,"githubUrl":"https://github.com/rohitg00/ai-engineering-from-scratch/blob/39ea8a1c6d0b61f071226eff7ede4d4105fed820/phases/13-tools-and-protocols/27-skill-evals-packaging-and-portability/outputs/skill-release-gate/scripts/evaluate_skill.py#L446-L482","documentation":"Error \"manifest files must be a non-empty object\" thrown in rohitg00/ai-engineering-from-scratch.","triggerScenarios":"Thrown at phases/13-tools-and-protocols/27-skill-evals-packaging-and-portability/outputs/skill-release-gate/scripts/evaluate_skill.py:464 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"39ea8a1c6d0b61f071226eff7ede4d4105fed820","analyzedAt":"2026-08-26T03:13:46.626Z","schemaVersion":2},"datasetVersion":"2026-08-26T07:17:17.940Z"}