Add lean investigation sessions with deferred consolidation

This commit is contained in:
Nico committed 2026-10-18 16:10:17 +02:00
1 parent d010f70f5e
commit ca14271f20
18 files changed
+606 -8

No files matched your search

+2 -2
View File
@@ -36,7 +36,7 @@ def _schema_check(schema):
def is_investigation_review(request):
"""Route the controller's versioned narrow review, never arbitrary research text."""
if request['prompt_version'] not in {'investigation_project_v16','investigation_project_v17','investigation_project_v18'}:
if request['prompt_version'] not in {'investigation_project_v16','investigation_project_v17','investigation_project_v18','investigation_project_v19'}:
return False
try:
message = next(m for m in reversed(request['messages']) if m['role'] == 'user')
@@ -155,7 +155,7 @@ class LLMGateway:
LOGGER.warning("LLM endpoint unavailable provider=%s code=%s", provider.id, code)
except ValidationError as invalid:
info={'validation_keyword':invalid.validator}
if request['prompt_version'] in {'investigation_project_v14','investigation_project_v15','investigation_project_v16','investigation_project_v17','investigation_project_v18'}:
if request['prompt_version'] in {'investigation_project_v14','investigation_project_v15','investigation_project_v16','investigation_project_v17','investigation_project_v18','investigation_project_v19'}:
from .diagnostics import schema_feedback
info.update(schema_feedback(invalid,include_keyword=True))
error = LLMError("LLM_OUTPUT_SCHEMA",diagnostics=info)