Route agents to owning application files
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-08-28 13:39:37 +02:00
parent 75894f8b52
commit 0f2f131034
6 changed files with 57 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
from lai_automation.models import FailureReport
from lai_automation.prompt import build_retry_task, build_task, redact
from lai_automation.prompt import build_retry_task, build_task, redact, repair_files
def test_redact_removes_common_secrets_and_personal_markers() -> None:
@@ -200,3 +200,8 @@ def test_cross_database_report_guides_staged_source_routing() -> None:
assert "staged-query workflows" in task
assert "Do not put an impossible cross-connection join" in task
assert "preserving tenant isolation" in task
assert repair_files(report) == (
"app/Http/Controllers/ChatController.php",
"app/Services/TenantDatabaseService.php",
"tests/Unit/ChatControllerSourceResolutionTest.php",
)