cambios profundos

This commit is contained in:
2026-05-27 16:29:02 +02:00
parent d95ed15766
commit 34b11dfc66
29 changed files with 594 additions and 11102 deletions
@@ -44,7 +44,7 @@ def test_resume_tras_recreacion_del_app(tmp_path: Path, monkeypatch: pytest.Monk
# 1) Primera "ejecución" del core: invoca y queda en awaiting_approval.
client_a = _fresh()
r = client_a.post("/agents/incident_analyzer/invoke", json={"input": payload})
r = client_a.post("/api/agents/incident_analyzer/invoke", json={"input": payload})
body = r.json()
assert body["status"] == "awaiting_approval"
trace_id = body["trace_id"]
@@ -54,7 +54,7 @@ def test_resume_tras_recreacion_del_app(tmp_path: Path, monkeypatch: pytest.Monk
# 2) Recreamos el app (simula restart del contenedor) — DATA_DIR persiste.
client_b = _fresh()
r2 = client_b.post(
f"/executions/{trace_id}/approve",
f"/api/executions/{trace_id}/approve",
json={"approved_action_ids": pending},
)
assert r2.status_code == 200