mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-17 18:25:42 +02:00
[eric] telemetry: silent-recovery rows carry journey context, and packaged builds stop shipping test files
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -49,7 +49,8 @@
|
||||
"!python-env",
|
||||
"!python-env/**",
|
||||
"!build-staging",
|
||||
"!build-staging/**"
|
||||
"!build-staging/**",
|
||||
"!**/*.test.js"
|
||||
],
|
||||
"icon": "build/icon.png",
|
||||
"mac": {
|
||||
|
||||
Reference in New Issue
Block a user