Skip to content

fix: probe storm, pre-derivation hold gate, reboot sees eval runs, eval turns framed on_workspace - #2412

Merged
joelteply merged 2 commits into
canaryfrom
docs/max-acts-param-doc
Aug 23, 2026
Merged

joelteply merged 2 commits into
canaryfrom
docs/max-acts-param-doc

Conversation

@joelteply

@joelteply joelteply commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Live-fire fixes from the restage attempt, one deploy:

  1. Probe storm — reconciler treated every serving-plan republish (1/s) as an edge; held_out wrote ~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.
  2. Churn — host_unattended derived 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.)
  3. Reboot blind spot — eval runs had no on-disk in-flight marker; reboot killed a mid-task battery unasked. Each eval world now carries eval-run.json (runId + core pid); the guard pid-checks and refuses without --force.
  4. Eval turns framed 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

…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
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
@joelteply joelteply changed the title fix: held_out probe storm, pre-derivation hold gate, reboot sees eval runs fix: probe storm, pre-derivation hold gate, reboot sees eval runs, eval turns framed on_workspace Aug 23, 2026
@joelteply
joelteply merged commit 1dcda6e into canary Aug 23, 2026
5 checks passed
@joelteply
joelteply deleted the docs/max-acts-param-doc branch August 23, 2026 19:13
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