Skip to content

feat(eval): #86 fire-and-poll for cognition/eval + benchmark/run — long acting runs survive the client - #1940

Merged
joelteply merged 1 commit into
canaryfrom
feat/eval-fire-and-poll-86
Jul 8, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/eval-fire-and-poll-86

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

A long ACTING eval (write→compile→fix→recompile, ~11 min for ONE hard task on a shared 14B) runs far past
any IPC client timeout, so the client gives up and the run is lost. cognition/eval blocked on the client the
whole time.

Fix: a detach param. When set, run spawns the eval on an independent tokio::spawn (NOT the connection's
task, so it survives the client disconnecting), returns a job handle {detached:true, persona_id} immediately,
and lets the real result land in the progress ledger (~/.continuum/progress/<persona>.jsonl) — the caller
polls there by note. The body extracted cleanly into a ctx-free CognitionEval::run_eval(p) (it already used
neither self nor _ctx, reaching cognition via the global workspace registry), so inline and detached launch
the SAME code path — test==prod. Threaded through benchmark/run too.

Validated live: cu cognition/eval --detach true returned in 4s (was 11+ min block); the background run then
executed and reported through my new tracing line AFTER the client had exited — proving it survives the
disconnect. (The smoke run hit a cold-model readiness gate because it fired 20s post-reboot; the gate correctly
fail-loud'd instead of scoring false zeros — itself proof the detached path runs + reports.)

Composes with #85: detached jobs run off-connection, so aborting abandoned in-flight handlers won't touch them.

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ng acting runs survive the client

A long ACTING eval (write→compile→fix→recompile, ~11 min for ONE hard task on a shared 14B) runs far past
any IPC client timeout, so the client gives up and the run is lost. `cognition/eval` blocked on the client the
whole time.

Fix: a `detach` param. When set, `run` spawns the eval on an independent `tokio::spawn` (NOT the connection's
task, so it survives the client disconnecting), returns a job handle `{detached:true, persona_id}` immediately,
and lets the real result land in the progress ledger (`~/.continuum/progress/<persona>.jsonl`) — the caller
polls there by `note`. The body extracted cleanly into a ctx-free `CognitionEval::run_eval(p)` (it already used
neither `self` nor `_ctx`, reaching cognition via the global workspace registry), so inline and detached launch
the SAME code path — test==prod. Threaded through `benchmark/run` too.

Validated live: `cu cognition/eval --detach true` returned in 4s (was 11+ min block); the background run then
executed and reported through my new `tracing` line AFTER the client had exited — proving it survives the
disconnect. (The smoke run hit a cold-model readiness gate because it fired 20s post-reboot; the gate correctly
fail-loud'd instead of scoring false zeros — itself proof the detached path runs + reports.)

Composes with #85: detached jobs run off-connection, so aborting abandoned in-flight handlers won't touch them.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 7c5340b into canary Jul 8, 2026
1 check passed
@joelteply
joelteply deleted the feat/eval-fire-and-poll-86 branch July 8, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant