You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(experiments): wire progress + context-request heartbeats into the thrash signal
Addresses two PR #704 review findings: the `activity` tally the
spawn-thrash detector reads leaned on signals that never moved during the
window that matters.
1. context_requests was dead. get_task_context emitted a
"context_requested" event but never called
LiveExperimentMonitor.record_context_request, so the counter stayed 0.
Wire the call (mirrors log_decision).
2. report_task_progress (the 25/50/75% heartbeat) was not counted at all.
get_experiment_status exposes only task counts + logged-work counters,
so an agent advancing via progress reports left `activity` flat. Add a
progress_updates counter + record_progress() to the monitor, expose it
in get_status (plus the mlflow metrics + text summary), and call it
from report_task_progress.
progress_updates is the earliest of these signals -- it fires as soon as a
claimed agent reports, well before the first artifact -- closing the
claim->first-artifact gap that could otherwise fast-fail a healthy run.
Both are folded into the runner's activity tally.
Tests: monitor heartbeat counters + get_status exposure.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments