[eric] telemetry: silent-recovery rows carry journey context, and packaged builds stop shipping test files

This commit is contained in:
ciregenz
2026-08-07 06:35:20 -07:00
parent bbf086329f
commit c6a0c1f34b
3 changed files with 11 additions and 2 deletions
@@ -145,6 +145,7 @@ def record_recovery(session_id: str, net: str, model: Optional[str], attempts: i
"lane": lane_for_model(model),
"model": model,
"attempts": attempts,
"journey": journey_auth_context(),
"concurrency": concurrency_snapshot(sessions or {}),
})
except Exception:
+8 -1
View File
@@ -469,7 +469,14 @@ async def death_watch(proc_handle: "subprocess.Popen[Any]") -> None:
# The revive IS a safety net firing; the near-miss ledger counts it so router flap rates are queryable.
try:
from backend.apps.service.client import submit_diagnostic
submit_diagnostic({"kind": "recovered", "subkind": "router-revive"})
from backend.apps.agents.core.flight_recorder import journey_auth_context
# scope says WHY there is no session or lane here: the watchdog outlives any one turn.
submit_diagnostic({
"kind": "recovered",
"subkind": "router-revive",
"scope": "watchdog",
"journey": journey_auth_context(),
})
except Exception:
pass
p_is_running_last_ok = 0.0
+2 -1
View File
@@ -49,7 +49,8 @@
"!python-env",
"!python-env/**",
"!build-staging",
"!build-staging/**"
"!build-staging/**",
"!**/*.test.js"
],
"icon": "build/icon.png",
"mac": {