generated from coulomb/repo-seed
Cross repo isolation
This commit is contained in:
@@ -215,7 +215,7 @@ class RegistryService:
|
||||
candidate_source = "deterministic"
|
||||
candidates = normalize_candidate_drafts(candidates)
|
||||
self.store.replace_candidate_graph(repository_id, completed_run.id, candidates)
|
||||
if candidate_source == "llm":
|
||||
if "llm" in candidate_source:
|
||||
log_operation(
|
||||
"llm_extraction_used",
|
||||
repository_id=repository_id,
|
||||
@@ -226,7 +226,10 @@ class RegistryService:
|
||||
repository_id,
|
||||
completed_run.id,
|
||||
action="llm_extraction_used",
|
||||
notes=f"Generated {len(candidates)} candidate ability draft(s).",
|
||||
notes=(
|
||||
f"Generated {len(candidates)} candidate ability draft(s) "
|
||||
f"from {candidate_source} candidate generation."
|
||||
),
|
||||
)
|
||||
if trusted_auto_approve:
|
||||
self.trusted_auto_approve_candidate_graph(
|
||||
@@ -260,11 +263,13 @@ class RegistryService:
|
||||
*,
|
||||
use_llm_assistance: bool = True,
|
||||
):
|
||||
deterministic = self.candidate_generator.generate(repository, facts, chunks)
|
||||
if use_llm_assistance and self.llm_extractor is not None:
|
||||
extracted = self.llm_extractor.extract(repository, chunks)
|
||||
if extracted:
|
||||
return self.llm_mapper.map(extracted, facts, chunks), "llm"
|
||||
return self.candidate_generator.generate(repository, facts, chunks), "deterministic"
|
||||
llm_candidates = self.llm_mapper.map(extracted, facts, chunks)
|
||||
return llm_candidates + deterministic, "llm+deterministic"
|
||||
return deterministic, "deterministic"
|
||||
|
||||
def list_analysis_runs(self, repository_id: int) -> list[AnalysisRun]:
|
||||
return self.store.list_analysis_runs(repository_id)
|
||||
|
||||
Reference in New Issue
Block a user