{"record":{"id":"30b14e92e33cc396","repo":"abhigyanpatwari/GitNexus","slug":"promotion-binding-is-missing-hidden-oracle-or-depe","errorCode":null,"errorMessage":"promotion binding is missing hidden-oracle or dependency digests","messagePattern":"promotion binding is missing hidden-oracle or dependency digests","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"eval/workflow_bench/evolve.py","lineNumber":701,"sourceCode":") -> list[dict[str, Any]]:\n    \"\"\"Require one complete, current, exact evidence binding before apply.\"\"\"\n    if promotion.get(\"schema_version\") != 3:\n        raise ValueError(\"promotion binding uses an unsupported schema\")\n    sha256_pattern = re.compile(r\"[0-9a-f]{64}\")\n    if not selected_tasks:\n        raise ValueError(\"promotion binding has no selected tasks\")\n    for task in selected_tasks:\n        if not isinstance(task, dict) or any(\n            not isinstance(task.get(field), str) or sha256_pattern.fullmatch(task[field]) is None\n            for field in (\n                \"oracle_digest\",\n                \"oracle_command_digest\",\n                \"oracle_manifest_digest\",\n                \"sandbox_dependency_content_digest\",\n                \"sandbox_dependency_manifest_digest\",\n            )\n        ):\n            raise ValueError(\"promotion binding is missing hidden-oracle or dependency digests\")\n        oracle_files = task.get(\"oracle_files\")\n        if not isinstance(oracle_files, list) or not oracle_files:\n            raise ValueError(\"promotion binding is missing hidden-oracle files\")\n        for item in oracle_files:\n            if (\n                not isinstance(item, dict)\n                or not isinstance(item.get(\"target\"), str)\n                or not item[\"target\"]\n                or not isinstance(item.get(\"sha256\"), str)\n                or sha256_pattern.fullmatch(item[\"sha256\"]) is None\n                or not isinstance(item.get(\"size\"), int)\n                or isinstance(item.get(\"size\"), bool)\n                or item[\"size\"] < 0\n            ):\n                raise ValueError(\"promotion binding contains malformed hidden-oracle file evidence\")\n    expected_bindings = {\n        \"benchmark_model\": benchmark_model,\n        \"proposer_model\": proposer_model,","sourceCodeStart":683,"sourceCodeEnd":719,"githubUrl":"https://github.com/abhigyanpatwari/GitNexus/blob/d540b00184d71a896261ee02670da9a92d59d8f7/eval/workflow_bench/evolve.py#L683-L719","documentation":"Raised by `validate_promotion_for_apply` when any selected task is not a dict, or any of its five digest fields (oracle_digest, oracle_command_digest, oracle_manifest_digest, sandbox_dependency_content_digest, sandbox_dependency_manifest_digest) is not a 64-hex-char SHA-256 string. These hidden-oracle and dependency digests pin exact evidence.","triggerScenarios":"Calling `validate_promotion_for_apply(..., selected_tasks=[...])` where a task is missing a digest field, has a wrong-length hash, or contains a non-hex digest.","commonSituations":"A promotion.json from a run whose hidden oracle/dependency capture was incomplete (e.g. dependency manifest not materialized), or a tasks file missing oracle/dependency definitions for a selected task.","solutions":["Inspect each selected task's five digest fields and confirm each is a 64-char lowercase hex string.","Re-run the benchmark ensuring oracle and sandbox-dependency assets are fully captured for every selected task.","Drop tasks whose oracle/dependency digests cannot be produced, or fix the task definitions to include them."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"import re\npat = re.compile(r'[0-9a-f]{64}')\nfields = ('oracle_digest','oracle_command_digest','oracle_manifest_digest','sandbox_dependency_content_digest','sandbox_dependency_manifest_digest')\nfor i, t in enumerate(selected_tasks):\n    if not isinstance(t, dict) or any(not isinstance(t.get(f), str) or pat.fullmatch(t[f]) is None for f in fields):\n        raise ValueError(f'selected task {i} missing valid hidden-oracle/dependency digests')","typeGuard":"def has_valid_digests(task: dict) -> bool:\n    import re\n    pat = re.compile(r'[0-9a-f]{64}')\n    fields = ('oracle_digest','oracle_command_digest','oracle_manifest_digest','sandbox_dependency_content_digest','sandbox_dependency_manifest_digest')\n    return isinstance(task, dict) and all(isinstance(task.get(f), str) and pat.fullmatch(task[f]) for f in fields)","tryCatchPattern":null,"preventionTips":["Every selected task needs a complete hidden-oracle + dependency digest set before apply."],"tags":["python","workflow-bench","promotion","sha256","oracle","validation"],"backgroundTag":null,"analyzedSha":"d540b00184d71a896261ee02670da9a92d59d8f7","analyzedAt":"2026-08-12T19:50:25.132Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}