Extend bounded syntax repair retries
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-08-28 14:36:27 +02:00
parent 886cdbf7ef
commit 057c78110d
4 changed files with 9 additions and 4 deletions

View File

@@ -105,5 +105,5 @@ class Settings:
raise ValueError("FAILURE_DB_PASSWORD is required")
if not self.test_database_password:
raise ValueError("TEST_DB_PASSWORD is required")
if not 1 <= self.max_agent_attempts <= 3:
raise ValueError("MAX_AGENT_ATTEMPTS must be between 1 and 3")
if not 1 <= self.max_agent_attempts <= 5:
raise ValueError("MAX_AGENT_ATTEMPTS must be between 1 and 5")

View File

@@ -133,7 +133,9 @@ class AutomationWorker:
RuntimeError(
f"{exception}\n{restored_state} Make smaller edits and run php -l on each "
"changed PHP file. Reconstruct the intended application fix from this discarded "
f"patch excerpt, correcting its syntax:\n{discarded_diff}"
"patch excerpt, correcting its syntax. This is a repair-only attempt: preserve the "
"intended behavior, place methods inside their owning class, and do not redesign or "
f"expand the solution:\n{discarded_diff}"
),
)
continue