generated from coulomb/repo-seed
Coevolution workplan extension
This commit is contained in:
@@ -121,6 +121,8 @@ class RegistryService:
|
||||
*,
|
||||
source_path: str | None = None,
|
||||
use_cached_checkout: bool = False,
|
||||
use_llm_assistance: bool = True,
|
||||
trusted_auto_approve: bool = False,
|
||||
access_username: str | None = None,
|
||||
access_password: str | None = None,
|
||||
) -> ScanSummary:
|
||||
@@ -187,6 +189,7 @@ class RegistryService:
|
||||
repository,
|
||||
facts,
|
||||
stored_chunks,
|
||||
use_llm_assistance=use_llm_assistance,
|
||||
)
|
||||
except Exception as exc:
|
||||
log_operation(
|
||||
@@ -221,6 +224,16 @@ class RegistryService:
|
||||
action="llm_extraction_used",
|
||||
notes=f"Generated {len(candidates)} candidate ability draft(s).",
|
||||
)
|
||||
if trusted_auto_approve:
|
||||
self.approve_candidate_graph(
|
||||
repository_id,
|
||||
completed_run.id,
|
||||
notes=(
|
||||
"Trusted auto-populate mode approved candidate graph "
|
||||
f"after {candidate_source} candidate generation."
|
||||
),
|
||||
action="trusted_auto_approve_candidate_graph",
|
||||
)
|
||||
log_operation(
|
||||
"analysis_completed",
|
||||
repository_id=repository_id,
|
||||
@@ -241,8 +254,10 @@ class RegistryService:
|
||||
repository: Repository,
|
||||
facts: list[ObservedFact],
|
||||
chunks: list[ContentChunk],
|
||||
*,
|
||||
use_llm_assistance: bool = True,
|
||||
):
|
||||
if self.llm_extractor is not None:
|
||||
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"
|
||||
@@ -290,6 +305,7 @@ class RegistryService:
|
||||
analysis_run_id: int,
|
||||
*,
|
||||
notes: str = "",
|
||||
action: str = "approve_candidate_graph",
|
||||
) -> RepositoryAbilityMap:
|
||||
graph = self.store.get_candidate_graph(repository_id, analysis_run_id)
|
||||
pending_abilities = [
|
||||
@@ -347,7 +363,7 @@ class RegistryService:
|
||||
self.store.create_review_decision(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
action="approve_candidate_graph",
|
||||
action=action,
|
||||
notes=notes,
|
||||
)
|
||||
self.store.update_repository_status(repository_id, "indexed")
|
||||
|
||||
Reference in New Issue
Block a user