Add bounded hypothesis generation with immutable budget allocations
This commit is contained in:
1 parent
b93e1acb22
commit
e8b87d6725
19 files changed
+2115
-3
No files matched your search
@@ -84,6 +84,15 @@ class CaseAssembler:
|
||||
prior_refs = []
|
||||
for _, checkpoint in reversed(chain):
|
||||
details = checkpoint["details"]
|
||||
if details.get("operation") in {"hypotheses-generating", "hypotheses-built", "hypotheses-rejected"}:
|
||||
for field in ("context_ref", "policy_ref", "hypotheses_ref", "registry_ref", "summary_ref", "error_ref"):
|
||||
if field not in details:
|
||||
continue
|
||||
ref = details[field]
|
||||
if not isinstance(ref, str) or not ref.startswith("analysis/hypotheses/"):
|
||||
raise CaseBuildError("PREVIOUS_CASE", "Invalid hypothesis artifact checkpoint")
|
||||
require_file(reader, ref)
|
||||
excluded.add(ref)
|
||||
if details.get("operation") in {"case-interpreting", "case-interpreted", "case-interpretation-rejected"}:
|
||||
for field in ("context_ref", "interpretation_ref", "summary_ref", "error_ref"):
|
||||
if field not in details:
|
||||
|
||||
Reference in new issue
Block a user