mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-31 14:47:13 +00:00
fix(agent): stabilize post-merge release paths
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user