Include structured feedback in repair tasks
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-08-27 18:18:04 +02:00
parent efce42b967
commit 2ee2887eb9
4 changed files with 21 additions and 1 deletions

View File

@@ -29,6 +29,8 @@ def redact(value: str | None) -> str:
def build_task(report: FailureReport) -> str:
prompt = redact(report.prompt)
feedback = redact(report.user_feedback)
expected_behavior = redact(report.expected_behavior)
response = redact(report.response)
error = redact(report.error_message)
sql = redact(report.sql_query)
@@ -44,6 +46,7 @@ Rules:
- Do not commit or push; the orchestrator owns Git publication.
Failure category: {report.category}
Feedback type: {report.feedback_type or 'not specified'}
Source: {report.source}
Model: {redact(str(report.context.get('model', 'unknown')))}
Database type: {redact(str(report.context.get('database_type', 'unknown')))}
@@ -54,6 +57,12 @@ User request:
User feedback:
{feedback or '[not available]'}
Expected behavior:
{expected_behavior or '[not available]'}
Observed answer:
{response or '[not available]'}
Observed error:
{error or '[not available]'}