Repository navigation
fix: probe storm, pre-derivation hold gate, reboot sees eval runs, eval turns framed on_workspace - #2412
Merged
Conversation
…efore plan derivation, and give reboot eyes on eval runs Three defects from the restage's own live fire (Joel: 'the reboot sure as hell doesn't work well — you're still manually killing stuff'): 1. PROBE STORM: the serving daemon republishes its plan every tick and the hosting reconciler treats every republish as an edge, so during a roster hold the held_out probe wrote an identical pair of rows PER SECOND for the life of the hold (measured live 13:45-13:46, ~2 rows/s indefinitely). probe_held_out_once dedups per (agent, until_ms) — a renewed hold announces itself afresh; the SKIP stays per-pass. 2. CHURN: host_unattended derived a full spawn plan for held-out citizens every republish just to throw it away. The hold now gates the unattended list BY NAME before plan derivation — same filter, earlier, cheap early-return for the hold's whole life. (A plan-change gate in the reconciler loop was written and REVERTED: it would break #429's newborn-hosting under an unchanged plan.) 3. REBOOT GUARD BLIND SPOT: solve runs have had a file-backed in-flight guard since day one; cognition/eval runs had NO on-disk signal, so reboot killed a mid-task MirrorCode battery without ever asking. Each eval world now carries eval-run.json (runId + owning core pid, re-stamped on resume); in_flight_eval_runs() scans them and reboot refuses without --force when a pid-alive run stands. Marker lifetime is exactly world lifetime (Drop + orphan sweep) so no reap logic needed. Validated: persona::host + cognition::eval + boundary_serialization + ratchets green (34 tests). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
enabled auto-merge (squash)
August 23, 2026 18:54
… protections built for exactly them The eval framed EVERY task as directed-speech (TurnFraming::directed()), so workspace_deliverable was false even on tasks whose grade READS THE WORKSPACE (dod_shell, solution_file, ui_checks). Three protections gate on that flag and therefore never applied to the tasks they were built for: the #390 discovery-saturation gate (would have interrupted the MirrorCode discovery-only turn before it burned the budget with an empty src/), the no-deliverable Speak nudge, and the new act-budget proprioception (#2411) — which is why the stopwatch facts were absent from the restage's working memory. EvalTask::workspace_deliverable() is the one predicate (DoD shell / solution file / UI checks = graded on artifacts, not speech); the task drive and the empty-diff re-drive frame .on_workspace() from it. agent/solve already had the equivalent Deliverable::Workspace switch — eval was the one broken caller. Joel: 'this will fix all benchmarks AND most importantly any activity projects in general' — the live room path (held kanban work framed message()/self_thread() without claim-state) is the named follow-up; it needs the claim plumbed to framing. Validated: cognition::eval + act_observe + ratchets green (69 tests). Co-Authored-By: Claude Fable 5 <[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.
Live-fire fixes from the restage attempt, one deploy:
held_outwrote ~2 identical rows/second for the life of a hold (1,278 rows before the fix). Probe dedups per (agent, hold-window); the skip stays per-pass.host_unattendedderived full spawn plans for held-out citizens every second just to discard them. Hold now gates by name before derivation. (A reconciler-loop plan-change gate was written and deliberately reverted — it would break Gap analysis: all 45 open issues tracked #429 newborn hosting.)rebootkilled a mid-task battery unasked. Each eval world now carrieseval-run.json(runId + core pid); the guard pid-checks and refuses without--force.on_workspace()— the eval framed every task as directed-speech, so the discovery-saturation gate, the no-deliverable nudge, AND fix: the experience-degradation sweep — act budgets, serialization ratchet, canvas pre-fold #2411's act-budget stopwatch never applied to DoD-graded tasks — the exact tasks they were built for.EvalTask::workspace_deliverable()is the one predicate. This is the fix that generalizes: same contract any activity project rides.Named follow-up: the live room path frames held kanban work without claim-state — needs the claim plumbed to framing.
Batteries green (34 + 69).
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo