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

@@ -19,8 +19,10 @@ def test_task_contains_constraints_and_redacted_report() -> None:
source="user_feedback",
category="incorrect_answer",
user_feedback="password=secret-value",
feedback_type="wrong_join",
expected_behavior="Join FK_Artikel with FK_AuftragPos and filter Auftragkennung = 3.",
prompt="List locations for admin@example.com",
response=None,
response="The wrong product count was returned.",
sql_query="SELECT * FROM company",
error_message=None,
context={"model": "mistral", "database_type": "customer"},
@@ -31,6 +33,9 @@ def test_task_contains_constraints_and_redacted_report() -> None:
assert "admin@example.com" not in task
assert "Do not commit or push" in task
assert "never mock or stub the behavior being tested" in task
assert "Feedback type: wrong_join" in task
assert "Join FK_Artikel with FK_AuftragPos and filter Auftragkennung = 3." in task
assert "The wrong product count was returned." in task
def test_redact_removes_extended_credentials() -> None:

View File

@@ -13,6 +13,8 @@ def test_dry_run_generates_task_without_agent_or_git() -> None:
source="automatic",
category="sql_execution",
user_feedback=None,
feedback_type=None,
expected_behavior=None,
prompt="List locations",
response=None,
sql_query=None,