Add resumable LLM investigation loop with bounded controller execution
This commit is contained in:
1 parent
c03f70e3e1
commit
c39b5881d1
23 files changed
+2872
-15
No files matched your search
@@ -84,6 +84,14 @@ class CaseAssembler:
|
||||
prior_refs = []
|
||||
for _, checkpoint in reversed(chain):
|
||||
details = checkpoint["details"]
|
||||
if details.get("operation")=="investigation-state":
|
||||
for field in ("state_ref","context_ref","summary_ref"):
|
||||
ref=details.get(field)
|
||||
if ref is None:continue
|
||||
if not isinstance(ref,str) or not ref.startswith("analysis/investigation/"):
|
||||
raise CaseBuildError("PREVIOUS_CASE","Invalid investigation checkpoint")
|
||||
require_file(reader,ref)
|
||||
excluded.add(ref)
|
||||
if details.get("operation") == "evidence-stored":
|
||||
refs = [details.get("index_ref"), details.get("request_ref"), details.get("result_ref"),
|
||||
*details.get("record_refs", [])]
|
||||
|
||||
Reference in new issue
Block a user