Hardened the optional LLM extraction path

This commit is contained in:
2026-04-26 03:18:58 +02:00
parent 1881daea32
commit cdaeefd4b2
3 changed files with 44 additions and 1 deletions

View File

@@ -127,7 +127,20 @@ class RegistryService:
chunks,
)
stored_chunks = self.store.list_content_chunks(repository_id, completed_run.id)
candidates = self._generate_candidates(repository, facts, stored_chunks)
try:
candidates = self._generate_candidates(repository, facts, stored_chunks)
except Exception as exc:
self.store.create_review_decision(
repository_id,
completed_run.id,
action="llm_extraction_failed",
notes=str(exc),
)
candidates = self.candidate_generator.generate(
repository,
facts,
stored_chunks,
)
self.store.replace_candidate_graph(repository_id, completed_run.id, candidates)
return ScanSummary(
analysis_run=completed_run,