mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-17 23:37:15 +00:00
fix(agent): stabilize post-merge release paths
This commit is contained in:
@@ -8,13 +8,20 @@ from pathlib import Path
|
||||
|
||||
def has_initial_failure_section(report: str) -> bool:
|
||||
folded = report.casefold()
|
||||
return any(
|
||||
if any(
|
||||
marker in folded
|
||||
for marker in (
|
||||
"initial fail",
|
||||
"initially fail",
|
||||
"baseline fail",
|
||||
)
|
||||
):
|
||||
return True
|
||||
|
||||
baseline_markers = ("baseline test", "before any edit", "before editing")
|
||||
failure_markers = ("failing test", "failed test", "failures=", "errors=")
|
||||
return any(marker in folded for marker in baseline_markers) and any(
|
||||
marker in folded for marker in failure_markers
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user