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

@@ -71,7 +71,9 @@ def evaluate_changes(
def evaluate_report_scope(report: FailureReport, summary: ChangeSummary) -> PolicyResult:
expected = f"{report.user_feedback or ''}\n{report.expected_behavior or ''}".lower()
requires_cross_database_orchestration = "cockpit_config" in expected and "fk_" in expected
requires_cross_database_orchestration = (
"cockpit_config" in expected and ("fk_" in expected or "erp" in expected)
)
has_application_change = any(filename.startswith("app/") for filename in summary.files)
errors = []
if requires_cross_database_orchestration and not has_application_change: