Encode investigation source as contiguous plain-text code blocks

This commit is contained in:
Nico committed 2026-10-15 23:47:20 +02:00
1 parent 0246feda61
commit f4e85070c8
11 files changed
+284 -15

No files matched your search

@@ -9,7 +9,7 @@ PROMPT_VERSION="investigation_v1"
def output_schema(context=None):
name = "investigation-project-output-v1.schema.json" if context and "x-project-bindings" in context["tool_schema"] else "investigation-output-v1.schema.json"
schema=json.loads(files("viano_bug_analysis.schemas").joinpath(name).read_text())
if context and context.get("prompt_version") in {"investigation_v2","investigation_project_v3","investigation_v3","investigation_project_v4","investigation_project_v5","investigation_project_v6"}:
if context and context.get("prompt_version") in {"investigation_v2","investigation_project_v3","investigation_v3","investigation_project_v4","investigation_project_v5","investigation_project_v6","investigation_project_v7"}:
schema["properties"]["next"]["oneOf"].extend(json.loads(files("viano_bug_analysis.schemas").joinpath("investigation-early-actions-v1.schema.json").read_text())["oneOf"])
return schema
@@ -17,11 +17,14 @@ def output_schema(context=None):
def build_prompt(context):
schema=output_schema(context)
version = "investigation_project_v1" if "x-project-bindings" in context["tool_schema"] else PROMPT_VERSION
if context.get('prompt_version') in {'investigation_project_v2','investigation_project_v3','investigation_project_v4','investigation_project_v5','investigation_project_v6'}:
if context.get('prompt_version') in {'investigation_project_v2','investigation_project_v3','investigation_project_v4','investigation_project_v5','investigation_project_v6','investigation_project_v7'}:
from .investigation_view import working_view
from .model_context import model_json
version = context['prompt_version']
if version == 'investigation_project_v6':
if version == 'investigation_project_v7':
from .investigation_blocks import block_view
visible = block_view(context)
elif version == 'investigation_project_v6':
from .investigation_consolidation import consolidated_view
visible = consolidated_view(context)
elif version == 'investigation_project_v5':