Skip to content

fix: the experience-degradation sweep — act budgets, serialization ratchet, canvas pre-fold - #2411

Merged
joelteply merged 3 commits into
canaryfrom
fix/act-budget-honest
Aug 23, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fix/act-budget-honest

Conversation

@joelteply

@joelteply joelteply commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Three commits, one directive: fix everything degrading the citizens' experience, solidified before the model handoff.

  1. Honest act budgets — default 8→32 (MirrorCode graded Atlas 0-pass with an empty src/ after 8 competent analysis acts; the cap measured our patience, not the model), EvalTask::max_acts budget-as-data per gym row, and act-budget proprioception (turn-start contract / midpoint / two-remaining facts) so she can pace like an engineer instead of hitting an invisible floor.
  2. Boundary-serialization ratchet — the sickness doctrine gets CI teeth that survive model swaps: every new serde owned-encode / base64-engine site names the true boundary it crosses, count (baseline 242, zero slack) only falls.
  3. Canvas feed publishes pre-fold — flood-sized ObserveResults were spilled+truncated before the feed parsed them, so the desktop went blind on exactly the big screenshots worth watching. Hook moved to the executor seam where the full result exists.

Batteries green: 157 + hygiene suite + 84 (tool_executor/canvas/act_observe).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… task, and she can finally SEE her own stopwatch

The MirrorCode baseline showed exactly what DEFAULT_MAX_ACTS=8 buys on a
frontier task: Atlas produced a genuinely competent case-bucketing
analysis (_analyze.py, error/ipv4/stdin/width regimes) and was graded
0-pass with an EMPTY src/ — the budget ran out before implementation
could begin. The cap measured our patience, not the model. Worse, the
budget gated acts SILENTLY: nothing in her perception ever said how many
acts remained, so an engineer's rational analysis-first plan was
indistinguishable from having thirty acts until the floor vanished.

Three changes:
1. DEFAULT_MAX_ACTS 8 → 32 (doc carries the incident). The cap exists to
   bound a runaway, so it must sit ABOVE what honest engineering needs.
2. EvalTask::max_acts — budget-as-data. A gym row can size patience to
   its task class; None inherits the run's budget. Honored at both the
   task drive and the empty-diff re-drive.
3. ACT-BUDGET PROPRIOCEPTION in the settle loop: three structural facts
   (contract at turn start, midpoint, two-remaining) on workspace-
   deliverable turns. Doctrine-compliant — each states the TRUE shape of
   the turn, names no file/fix/tool; pacing stays her decision. Guarded
   against the Speak re-perception double-stamp.

Also sweeps a pre-existing unused clog_error import (bridge_client).

Validated: act_observe + eval + experience + curriculum + ratchets all
green (157 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:03
…64 site names the boundary it crosses, count never rises

Solidifies the 2026-08-23 sickness doctrine as CI teeth before any model
swap: 'you write js level code all the time… it's like a sickness' /
'base64 is just fucking insane'. The rule watches serde_json's
owned-encode family (to_string/to_string_pretty/to_vec/to_value/
from_value) and the base64 engine shapes; each production occurrence
needs a same-line // comment (>=12 chars) naming WHICH true boundary the
encoding crosses (socket, disk format, wire protocol, foreign API).
Between in-process layers data travels as &T/Arc<T>/handles.

Ratchet, not wall — same argument as the unwrap guard verbatim: baseline
242 measured with a zero-baseline run (no slack), may only go down.
to_writer/from_str/from_slice deliberately uncounted: they touch an
existing byte stream, which is almost always a genuine boundary already.

Adds SourceFile::for_test (cfg(test)) so rules can pin their predicate
against inline fixtures.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply joelteply changed the title fix(cognition): honest act budgets — 8→32 default, per-task budgets, visible stopwatch fix(cognition): honest act budgets + the boundary-serialization ratchet Aug 23, 2026
… goes blind on big screenshots

The 2026-08-23 audit's latent canvas bug, closed. The feed hooked the
post-fold observation in act_observe/apply — but a flood-sized
ObserveResult has already been spilled to disk and cut to a preview by
then, so serde_json::from_str failed and the frame silently dropped.
The desktop went blind on exactly the observations worth watching:
full-page screenshots during design iteration.

The hook now lives at the tool-executor seam (execute_native_batch),
where the full result still exists, before fold_with_recovery cuts the
preview. One owned render feeds both the canvas feed and the fold; the
apply-side hook is removed (it would double-publish small results).

Validated: tool_executor + canvas + act_observe + ratchets green (84).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply joelteply changed the title fix(cognition): honest act budgets + the boundary-serialization ratchet fix: the experience-degradation sweep — act budgets, serialization ratchet, canvas pre-fold Aug 23, 2026
@github-actions github-actions Bot added size: L and removed size: M labels Aug 23, 2026
@joelteply
joelteply merged commit 429d92e into canary Aug 23, 2026
5 checks passed
@joelteply
joelteply deleted the fix/act-budget-honest branch August 23, 2026 18:26
joelteply added a commit that referenced this pull request Aug 23, 2026
… 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 added a commit that referenced this pull request Aug 23, 2026
…al turns framed on_workspace (#2412)

* fix(persona,eval,cli): kill the held_out probe storm, gate the hold before 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

* fix(eval): DoD-graded tasks are workspace-deliverable turns — arm the 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

---------

Co-authored-by: Claude Fable 5 <[email protected]>
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