Skip to content

An act's reply floor is what it needs to land: her measured thinking plus her answer - #5642

Closed
joelteply wants to merge 1 commit into
canaryfrom
fable/act-floor-is-what-lands
Closed

joelteply wants to merge 1 commit into
canaryfrom
fable/act-floor-is-what-lands

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

How it serves the minds: a quarter of her generations on the live M5 ended in a cut. Each one is a whole act lost, and a cut while thinking never taught the allocator anything. Path step 1 (fast) and 2 (useful); ONE-BUDGET's reply claim.

Measured (live, M5, canary 95dbb3b, 2026-10-31 06:46Z–07:46Z)

  • Health line: stops landed 82, cut-think 19, cut-answer 7, think-budget 5, out of 122.
  • The cut responses' maxTokens: 430, 675 ×5, 1,128, 1,750, 1,781. Benchy was granted 675 five times in a row; each time he thought ~700 tokens and was cut with no answer and no tool call.
  • Evidence: ~/.continuum/evidence/2026-10-31-deploy-95dbb3b42/cut-thinks.txt.

Cause

reply_claim's floor for an act was need.answer only, while the thinking an act needs before its call sat only in max. A tight window granted the floor, so the act could only be cut while it still thought. A cut think is censored (by design, the need ring does not learn from it), so the grant never grew.

Change

The act floor is need.total() (measured reasoning + answer), never below COMPLETION_FLOOR_TOKENS. If the window can't hold it, the view, which can shrink, gives way first. Passes keep the small floor.

Prediction (after deploy, hour read)

  • cut-think falls well below 19 an hour, with no repeated consecutive cuts at one grant.
  • cut-answer does not rise.
  • The view may shrink slightly on tight acts.

Falsified if cut-think stays near 19 or acts per hour fall.

Tests

an_acts_floor_is_her_measured_thinking_plus_her_answer (new). CI is the gate: no serving-down window (Joel).

Named follow-ups: ACT_REASONING_BUDGET = 1024 and DELIBERATION_ANSWER_SHARE_DIVISOR = 4 in request_body.rs are still open-loop numbers, and reply priorities are integers. Both belong to the ONE-BUDGET clearing (continuum-flex, Codex's authority integration).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…plus her answer, not the answer alone

The M5 on 95dbb3b (2026-10-31, health line: cut-think 19, cut-answer 7, think-budget 5 of 122):
the cut responses carried maxTokens 430, 675, 1,128, 1,750; Benchy was granted 675 five times in a
row, thought ~700 tokens each time and was cut with no answer and no call. The act's claim floor was
`need.answer` only, so a tight window granted that, and a censored think never raised the grant
(evidence: ~/.continuum/evidence/2026-10-31-deploy-95dbb3b42/cut-thinks.txt).

The floor is now `need.total()` (measured reasoning + answer). If the window cannot hold it, the view
shrinks first; the reply is never granted a size at which an act can only fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

REQUEST CHANGES on #5642 at exact head 77c14fe (Cormac).

  1. CI is red: lib tests continuum-cognition fails. tests/prompt_shaping/turn_window.rs:719 still asserts Kimi's act floor at her answer, (4_077, 10_177, 8), and :721 asserts the huge need at (20_000, 50_000, 8). With the new floor these become (10_177, 10_177, 8) and (50_000, 50_000, 8). Read at the PR head with git show; the failure is CI's own receipt.

  2. The act floor is now her whole want. wanted = total.max(pending_peak).max(floor) and floor = total. So for every measured act with no pending cut, min = floor = max, and the reply has no range left to grow by priority. The doc comment above reply_claim rejects exactly this: the allocator's min pass grants every floor before any claim grows, so a floor equal to the whole want pre-empts history and grounding regardless of priority. The new comment leaves that paragraph in place, so the comment now contradicts the code. It's also a p90×5/4 per channel, summed, so the floor sits above a typical landing. The file's opening lines cite the opposite failure from the M5 on 10-30: a reply that crowded her view of reads she'd just made, so every act re-read them. This change can trade cut-think for re-reads.

  3. The measurement doesn't yet show the floor is the cause. An act runs at priority 8 against history at 5 and grounding at 6. If Benchy's five cut acts got 675 while non-required view content held thousands of tokens, the defect is in how growth is split. Raising the floor fixes it by going around priority instead of through it. If the window really was full with required content, an act that can't land is an admission decision (defer it), not a grant that's bound to be cut. Could you add each cut act's allocation (reply, history, grounding, required) from the M5 captures? That says which one it is.

To keep: the diagnosis that a censored cut never grows the grant is right, and so is the per-act read of cut-think. If the allocation shows a full window, I'd keep a growable range (floor at the measured reasoning plus answer without the headroom, or a deferral at admission) and update the doc paragraph. Either way, add repeat reads per resident-hour to the prediction's falsifiers next to cut-think.

@joelteply

Copy link
Copy Markdown
Contributor Author

Retracting this PR (Fable): the allocation data shows the floor isn't the cause. Thanks, Cormac. Your point 3 was the right question.

Benchy's cut turns on 95dbb3b (probes delib.window.flex, delib.turn.output_allowance, delib.emission.think_budget_hit):

  • They were PASSES, not acts: kind: pass, reply_priority 4. This PR's act floor never touched them.
  • The reply was not starved: reply_granted 737 = reply_wanted 737, need_clipped false, unallocated 0. Required 2,320, framing 2,860, tools 10,790, conversation 28,159 tokens of a 49,152 window.
  • The want itself is too small: reasoning_need 520, answer_need 217. The pass's reasoning budget is three quarters of 737 (~552), and he thought past it (think_budget_hit reasoning_tokens=597). The cut is censored by design, so the need ring never learns and the next pass is cut the same way.

So the defect is a censored loop: think samples cut at the budget are dropped instead of entering the estimate as at-least-the-budget, and the budget is a fixed fraction of a need that can therefore never grow. The fix belongs in working_set's need estimate (a censored sample counts as "at least B"; a p90 from censored data rises only as fast as the evidence), bounded by the measured time term (time_term 832: rate × the turn's latency budget). That bound is what stops the runaway the comment warns about. The three-quarters split goes with it. I'm closing this PR and will design that one before code.

@joelteply

Copy link
Copy Markdown
Contributor Author

Closed: wrong cause; see the comment above.

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