fix(agent): stabilize post-merge release paths

This commit is contained in:
huanghuoguoguo
2026-08-04 17:04:40 +08:00
parent 5c5ed940a9
commit 444024c5b4
19 changed files with 319 additions and 57 deletions
@@ -25,6 +25,10 @@ automation_env:
automation_env_any:
- LANGBOT_LOCAL_AGENT_RAG_KB_UUID|LANGBOT_RAG_KB_UUID
automation_expected_text: "azalea-cobalt-7421"
setup_automation:
- "node:scripts/e2e/ensure-langrag-sentinel-kb.mjs --write-env"
setup_provides_env:
- LANGBOT_LOCAL_AGENT_RAG_KB_UUID
preconditions:
- "LangRAG is installed and initialized in the active LangBot instance."
- "A working embedding model is available, preferably chroma-all-MiniLM-L6-v2 for local repeatability."
@@ -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
)