Repository navigation
feat(eval): #86 fire-and-poll for cognition/eval + benchmark/run — long acting runs survive the client - #1940
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/evalblocked on the client thewhole time.
Fix: a
detachparam. When set,runspawns the eval on an independenttokio::spawn(NOT the connection'stask, 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 callerpolls there by
note. The body extracted cleanly into a ctx-freeCognitionEval::run_eval(p)(it already usedneither
selfnor_ctx, reaching cognition via the global workspace registry), so inline and detached launchthe SAME code path — test==prod. Threaded through
benchmark/runtoo.Validated live:
cu cognition/eval --detach truereturned in 4s (was 11+ min block); the background run thenexecuted and reported through my new
tracingline AFTER the client had exited — proving it survives thedisconnect. (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