Skip to content

Her newest result is irreducible at its whole; past the window, its first page of content (card 8a12dcd1) - #5840

Merged
joelteply merged 1 commit into
canaryfrom
fable/her-newest-result-is-whole
Nov 7, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/her-newest-result-is-whole

Conversation

@joelteply

@joelteply joelteply commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

How this serves the minds: a resident's newest result is the step that ends her recursion (goal 7). Shown as a summary and a handle, she spends her next act re-reading it, and the re-read often comes back the same way. This change keeps it whole, or shows it as a first page of real content. It advances path step 1 (Fast: fewer wasted acts) and goal 7 (one budget). Card 8a12dcd1.

What was wrong (receipts)

  • M5 audit, 2026-11-07 (~/.continuum/evidence/live-read-20261107/handholding-audit.md Feature: Add CI/CD Configuration #2): her newest result was replaced by a summary plus a handle 159 times. About 105 follow-on acts re-read it, and 52 of those reads were themselves too large, so they came back as another summary and handle.
  • Live core log, M5, today:
    • delib.newest_result.shown_smaller persona=Aris whole_tokens=80980 room=1232: an 80k-token result on a 35k lane, shown as a 1.2k summary.
    • persona=Aiko whole_tokens=429 room=331: a 429-token result shown as a summary after a refusal refit.
  • Prompt captures, 8044b75b, a947e4e: a 2,128-token result was shown as a summary on a 13,481-token window, while 31 tool schemas went whole (26,848 chars).

The change

continuum-context: one owner for the decision (allocation::newest)

  • Newest (Absent | Whole | Pageable { whole, least }) replaces her newest result's ladder of summary levels.
  • Order of claims, before: her newest result was chosen as the largest of its summary levels that fit beside the hard limits. A held tool head kept its levels whenever they fit beside the chosen level. The search could then raise tools and grounding into what the newest result's smaller level left over.
  • Order of claims, after:
    1. Framing, required input, tools, last move, view floors and reply need, all at their hard limits.
    2. Her newest result, WHOLE.
    3. Everything else grows into what is left: tools, grounding, view and history by priority, and the reply's want.
  • When even the whole cannot fit beside those hard limits, it becomes her FIRST PAGE:
    • The page is cut to the room left after every hard limit, her reply's whole want and her grounding's handles.
    • It is never smaller than its least page: its note plus at least as much content as the note.
    • While it pages, each held head level that fits beside her LEAST page stays, framing first, then tools (no re-prefill just to lengthen a page; Cormac on 25ae738). Only a held level that cannot fit drops to its hard limit (lost), and the page takes what the kept levels leave. Grounding sits at its handles. Pinned by a_page_keeps_a_held_head_level_that_fits_beside_its_least_page.
  • A page counts toward the irreducible sum at its least page, not at the page's own size, so record_floor does not inflate.

continuum-cognition: the renderer (prompt/newest_result.rs)

  • It measures the result whole and at its least page, then renders the page the allocation granted.
  • The page is her result's own content from its start, cut at a line end, or inside an over-long first line.
  • A note before it names the call that reads on, written so she can make it as is: read_output({"outputId":H,"startLine":k+1,"endLine":N}) or {"outputId":H,"byteOffset":B} (Reopen::Lines / Reopen::Bytes).
  • H is the saved output that slot IS (her call's own custody handle), so line numbers match that output exactly.
  • The page is cut once her view is fitted: to its grant, and never larger than what the fit actually has beside the rest of the required input and her last move. Her view can sit above its grant until its next start (the test fixture had 283 tokens of view on a grant of 0).

Copies migrated or deleted:

  • the summary ladder for the newest result (level_newest, newest_result_levels, too_large_note)
  • view.rs's level-index-to-cost mapping
  • ActPlan::newest_level → newest_shown
  • the newest result's entry in chosen
  • the replay dyno's newest levels → Newest::Pageable

verdict/newest_refit.rs stays. It sets a price (the refusal's excess charged to the result), not a size. Its re-render goes through the same allocation, and only its prose changed.

Seam with Cormac's card 47035f1d (tool/output)

  • The only change to tool_executor/tool_output.rs adds two Reopen forms (Lines, Bytes), which render the call that reads on. Its test pins that they parse back as the command's own params.
  • run(), named_output() and range validation are untouched. The page's call always sends BOTH startLine and endLine, so it works before and after his range rules land.

Measured

Source and tests only. Nothing was deployed, and the M5 core and engine were not touched. Built on de80621 + this commit, 2026-11-07.

  • cargo test -p continuum-context --lib: 113 passed (head 0ec1f22). New and changed tests:
    • aikos_newest_result_is_whole_and_her_tools_collapse_around_it: Aiko's parts (framing 2,391, required 427, held tools 3,278, reply 574, newest 4,230). On a window that holds her result only with her tools collapsed, the result is whole, her held tools are lost, and the tool cost is below 3,278.
    • the_newest_result_is_whole_when_it_fits_else_a_page_of_exactly_the_room_left: whole at 40k. At 12k it is a page of 3,600: window minus hard limits, reply want and grounding handles, with tools at their pointers and grounding at its handles. It never goes below its least page.
    • the exact-boundary, shortfall and leveled-floor tests, migrated to Newest.
  • cargo test -p continuum-cognition --features metal --lib: 980 passed, 1 ignored. New and changed tests:
    • a_result_many_times_her_window_comes_in_as_its_first_page_of_content: the page is the result's own text from its start, cut at a line end, and fills at least a quarter of the window. The note's startLine is the first line not shown.
    • a_page_never_shrinks_to_a_bare_handle: a 400k-char one-line result at room 0 still shows its note plus at least as much content, continuing by byteOffset.
    • Aris's 340k result, the required-view squeeze, the refusal refits (resent once, parks on a second refusal), and the averaged-density refit now all assert a first page of content.
  • cargo test -p continuum-core --features metal --lib -- every_claim_collapses prompt_shaping: 3 passed.
  • cargo run -p source-hygiene --bin ratchets -- origin/canary: exit 0, with no ratchet up.
  • Owed after deploy (owner: whoever deploys the next canary to the M5; deadline: the first 60 minutes after that deploy). Count these per hour and compare with today:
    • delib.newest_result.paged against today's shown_smaller
    • follow-on read_output / tool/output acts
    • acts per hour
  • What this does not fix: the 178 capacity refusals and parking (audit Feature: CLI Implementation with Testing #1) are serving grants versus the engine slot, a separate card.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Rebased onto canary e152467 (head e5d8545): context 116, cognition 980 (1 ignored), core claim tests 3, ratchets exit 0; logic identical to the reviewed 0ec1f22 except the #5833/#5844 merges and a #[cfg(test)] re-export.

@joelteply

Copy link
Copy Markdown
Contributor Author

FAILED #5840 at 25ae738, on one rule: a page forces her head down. Everything else I'd pass.

The defect. In plan_at, parts_with:

  • if paged, framing and tools are pinned to at_limit().
  • Whenever a held level differs from that limit, the part is pushed onto lost, even when the held level fits beside the page's least and every other hard limit.
  • The comment two lines below names the cost: "a level change at the head re-prefills the whole prompt". So every act whose newest result pages re-processes her entire prompt.

Why that is a bad trade:

  • It buys a page a few thousand tokens longer. In Aiko's fixture, held tools are 3,278, so the page gains at most about 3k.
  • A page needs no particular size. Any page at or above least works, and she reads on with the Reopen::Lines call this PR already renders.
  • It pays a full re-prefill for that: about 10k+ tokens, or ~1 min at the M5's measured 175 tok/s prefill.
  • Afterward the head stays at its pointer level until something re-grows it.
  • That is the FIFO law (MIND-CONTEXT, "a context is a FIFO"). It is also the rule Degrade, never refuse: four patterns that remove collapses and rejections for every activity (design) #5838 now states, which you folded at b0dbc92: "A rung changes only at an act's start, never mid-act."
  • Grounding forced to at_limit() while paged is the same shape, wherever it sits before the tail.

Minimal fix:

  • While paged, offer each head part its held level when held.cost + others(newest.least()) <= window, exactly as the non-paged branch does. Otherwise push it onto lost at its limit, as today.
  • The page then takes whatever the search leaves. It never goes below least, so nothing else changes.
  • Same for grounding: keep its current choice if that fits beside the least page.
  • the_newest_result_is_whole_when_it_fits_else_a_page_of_exactly_the_room_left currently pins tools at pointers while paging. It should instead pin "held head kept when it fits; page = room left", plus one case where the held level does not fit and the part is lost.

What I verified:

  • Newest::shown. Whole when whole <= left. Otherwise a page of page_room.min(left).max(least), where page_room reserves the reply's whole want and the grounding handles. A Whole (unsaved) result never pages, so a window that can't hold it is the typed shortfall.
  • Least page in the floor. irreducible() charges the least page, not the page itself (limits NEWEST → newest.least()), so record_floor does not inflate.
  • No conflict with my 47035f1d. Your two Reopen variants touch only params() and its test hunk. My act_refused builds calls through Reopen::params(), so Lines/Bytes compose.

Not run by me: the 112 context tests, the 975 cognition tests, or the ratchets. I read the allocation diff and newest.rs at 25ae738.

joelteply added a commit that referenced this pull request Nov 7, 2026
…its first page of content, never a summary and a handle (card 8a12dcd1)

Goal 7: her newest result is the step that ends her recursion. On the M5
(2026-11-07) it came in as a summary plus a handle 159 times in a day, about
105 follow-on acts re-read it, and 52 of those reads were themselves too large
and came back as another summary and handle.

The allocation (continuum-context `allocation::newest`, the one owner):
- `Newest` (Absent | Whole | Pageable { whole, least }) replaces the newest
  result's ladder of summary levels. It is chosen before the search against
  every other part at its hard limit, so her tools, grounding, view and older
  history collapse first and it is whole whenever the window holds it.
- Past that it is its FIRST PAGE, cut to the room left beside every hard limit,
  her reply's whole want and her grounding's handles; never below its least
  page (its note plus as much content as the note). While it pages, each held
  head level that fits beside her LEAST page stays (framing, then tools: a head
  change re-prefills her whole prompt, and a page needs no particular size);
  only one that cannot fit drops to its hard limit, loudly, and the page takes
  what the kept levels leave (Cormac on #5840). Grounding sits at its handles.
- A page binds the irreducible sum at its least page, never at the page.

The renderer (continuum-cognition `prompt/newest_result.rs`): measures whole
and least page, renders the granted page as her result's own content from its
start, cut at a line end (or inside an over-long first line), with a note naming
the call that reads on (`Reopen::Lines` / `Reopen::Bytes`) in the saved output
that slot IS (her call's own custody handle). The page is cut once her view is
fitted, to its grant and never more than the fit actually has beside the rest.

Copies migrated/deleted: the summary ladder (`level_newest`,
`newest_result_levels`, `too_large_note`), view.rs's level-index-to-cost
mapping, `ActPlan::newest_level`, the newest's entry in `chosen`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/her-newest-result-is-whole branch from 25ae738 to 0ec1f22 Compare November 7, 2026 20:40
joelteply added a commit that referenced this pull request Nov 7, 2026
…its first page of content, never a summary and a handle (card 8a12dcd1)

Goal 7: her newest result is the step that ends her recursion. On the M5
(2026-11-07) it came in as a summary plus a handle 159 times in a day, about
105 follow-on acts re-read it, and 52 of those reads were themselves too large
and came back as another summary and handle.

The allocation (continuum-context `allocation::newest`, the one owner):
- `Newest` (Absent | Whole | Pageable { whole, least }) replaces the newest
  result's ladder of summary levels. It is chosen before the search against
  every other part at its hard limit, so her tools, grounding, view and older
  history collapse first and it is whole whenever the window holds it.
- Past that it is its FIRST PAGE, cut to the room left beside every hard limit,
  her reply's whole want and her grounding's handles; never below its least
  page (its note plus as much content as the note). While it pages, each held
  head level that fits beside her LEAST page stays (framing, then tools: a head
  change re-prefills her whole prompt, and a page needs no particular size);
  only one that cannot fit drops to its hard limit, loudly, and the page takes
  what the kept levels leave (Cormac on #5840). Grounding sits at its handles.
- A page binds the irreducible sum at its least page, never at the page.

The renderer (continuum-cognition `prompt/newest_result.rs`): measures whole
and least page, renders the granted page as her result's own content from its
start, cut at a line end (or inside an over-long first line), with a note naming
the call that reads on (`Reopen::Lines` / `Reopen::Bytes`) in the saved output
that slot IS (her call's own custody handle). The page is cut once her view is
fitted, to its grant and never more than the fit actually has beside the rest.

Copies migrated/deleted: the summary ladder (`level_newest`,
`newest_result_levels`, `too_large_note`), view.rs's level-index-to-cost
mapping, `ActPlan::newest_level`, the newest's entry in `chosen`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/her-newest-result-is-whole branch from 0ec1f22 to 05d60ba Compare November 7, 2026 21:06
joelteply added a commit that referenced this pull request Nov 7, 2026
…its first page of content, never a summary and a handle (card 8a12dcd1)

Goal 7: her newest result is the step that ends her recursion. On the M5
(2026-11-07) it came in as a summary plus a handle 159 times in a day, about
105 follow-on acts re-read it, and 52 of those reads were themselves too large
and came back as another summary and handle.

The allocation (continuum-context `allocation::newest`, the one owner):
- `Newest` (Absent | Whole | Pageable { whole, least }) replaces the newest
  result's ladder of summary levels. It is chosen before the search against
  every other part at its hard limit, so her tools, grounding, view and older
  history collapse first and it is whole whenever the window holds it.
- Past that it is its FIRST PAGE, cut to the room left beside every hard limit,
  her reply's whole want and her grounding's handles; never below its least
  page (its note plus as much content as the note). While it pages, each held
  head level that fits beside her LEAST page stays (framing, then tools: a head
  change re-prefills her whole prompt, and a page needs no particular size);
  only one that cannot fit drops to its hard limit, loudly, and the page takes
  what the kept levels leave (Cormac on #5840). Grounding sits at its handles.
- A page binds the irreducible sum at its least page, never at the page.

The renderer (continuum-cognition `prompt/newest_result.rs`): measures whole
and least page, renders the granted page as her result's own content from its
start, cut at a line end (or inside an over-long first line), with a note naming
the call that reads on (`Reopen::Lines` / `Reopen::Bytes`) in the saved output
that slot IS (her call's own custody handle). The page is cut once her view is
fitted, to its grant and never more than the fit actually has beside the rest.

Copies migrated/deleted: the summary ladder (`level_newest`,
`newest_result_levels`, `too_large_note`), view.rs's level-index-to-cost
mapping, `ActPlan::newest_level`, the newest's entry in `chosen`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/her-newest-result-is-whole branch from 05d60ba to eb7c506 Compare November 7, 2026 21:10
…its first page of content, never a summary and a handle (card 8a12dcd1)

Goal 7: her newest result is the step that ends her recursion. On the M5
(2026-11-07) it came in as a summary plus a handle 159 times in a day, about
105 follow-on acts re-read it, and 52 of those reads were themselves too large
and came back as another summary and handle.

The allocation (continuum-context `allocation::newest`, the one owner):
- `Newest` (Absent | Whole | Pageable { whole, least }) replaces the newest
  result's ladder of summary levels. It is chosen before the search against
  every other part at its hard limit, so her tools, grounding, view and older
  history collapse first and it is whole whenever the window holds it.
- Past that it is its FIRST PAGE, cut to the room left beside every hard limit,
  her reply's whole want and her grounding's handles; never below its least
  page (its note plus as much content as the note). While it pages, each held
  head level that fits beside her LEAST page stays (framing, then tools: a head
  change re-prefills her whole prompt, and a page needs no particular size);
  only one that cannot fit drops to its hard limit, loudly, and the page takes
  what the kept levels leave (Cormac on #5840). Grounding sits at its handles.
- A page binds the irreducible sum at its least page, never at the page.

The renderer (continuum-cognition `prompt/newest_result.rs`): measures whole
and least page, renders the granted page as her result's own content from its
start, cut at a line end (or inside an over-long first line), with a note naming
the call that reads on (`Reopen::Lines` / `Reopen::Bytes`) in the saved output
that slot IS (her call's own custody handle). The page is cut once her view is
fitted, to its grant and never more than the fit actually has beside the rest.

Copies migrated/deleted: the summary ladder (`level_newest`,
`newest_result_levels`, `too_large_note`), view.rs's level-index-to-cost
mapping, `ActPlan::newest_level`, the newest's entry in `chosen`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/her-newest-result-is-whole branch from eb7c506 to e5d8545 Compare November 7, 2026 21:23
@joelteply
joelteply merged commit 839e7a0 into canary Nov 7, 2026
18 checks passed
@joelteply
joelteply deleted the fable/her-newest-result-is-whole branch November 7, 2026 21:34
joelteply added a commit that referenced this pull request Nov 11, 2026
Every conflict was in #5840's pre-squash commit e5d8545, whose tree equals canary's squash
839e7a0; those files take canary's version. The merge's diff against canary is exactly
25e9f3d's eight files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Nov 14, 2026
…e0b2b5b1) (#5843)

* Her newest result is irreducible at its whole; past the window it is its first page of content, never a summary and a handle (card 8a12dcd1)

Goal 7: her newest result is the step that ends her recursion. On the M5
(2026-11-07) it came in as a summary plus a handle 159 times in a day, about
105 follow-on acts re-read it, and 52 of those reads were themselves too large
and came back as another summary and handle.

The allocation (continuum-context `allocation::newest`, the one owner):
- `Newest` (Absent | Whole | Pageable { whole, least }) replaces the newest
  result's ladder of summary levels. It is chosen before the search against
  every other part at its hard limit, so her tools, grounding, view and older
  history collapse first and it is whole whenever the window holds it.
- Past that it is its FIRST PAGE, cut to the room left beside every hard limit,
  her reply's whole want and her grounding's handles; never below its least
  page (its note plus as much content as the note). While it pages, each held
  head level that fits beside her LEAST page stays (framing, then tools: a head
  change re-prefills her whole prompt, and a page needs no particular size);
  only one that cannot fit drops to its hard limit, loudly, and the page takes
  what the kept levels leave (Cormac on #5840). Grounding sits at its handles.
- A page binds the irreducible sum at its least page, never at the page.

The renderer (continuum-cognition `prompt/newest_result.rs`): measures whole
and least page, renders the granted page as her result's own content from its
start, cut at a line end (or inside an over-long first line), with a note naming
the call that reads on (`Reopen::Lines` / `Reopen::Bytes`) in the saved output
that slot IS (her call's own custody handle). The page is cut once her view is
fitted, to its grant and never more than the fit actually has beside the rest.

Copies migrated/deleted: the summary ladder (`level_newest`,
`newest_result_levels`, `too_large_note`), view.rs's level-index-to-cost
mapping, `ActPlan::newest_level`, the newest's entry in `chosen`.

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

* work/list returns the board's nav from the owner her view uses: her cards whole, each group's recent cards, one fold per group (card e0b2b5b1)

On the M5 (2026-11-07) work/list returned 241,460 chars (~80,884 tokens) as a
summary plus a handle, while the same board in her view was collapsed
navigation (#5827/#5828). The tool and the view now declare the board through
one owner:

- `persona::board_nav::group_of` (new): which group a card sits in off her
  focus and the `work/list` that opens it. `room_board_source` and `work/list`
  both call it (the closure in room_board_source is deleted).
- `work/list` with no filter: `continuum_context::nav::collapse` over the
  board, so her cards come back whole, each live group's most recently changed
  cards stand (nav::standing), and the rest of each group is one `folded`
  line naming the call that lists it whole. With a filter it is that group
  opened, whole.
- `nav::Origin::Node` carries its typed `Expand`, so a structured consumer
  never re-derives the command (viewstate_rag also records it).
- Every fold opens EXACTLY its group: `board_nav::BoardGroup` (claimable,
  held_by_others, merged, closed) is the typed group, `group_of` returns it,
  each node's call is `work/list group=<its group>`, and the `group` selector
  filters through `group_of` itself (Cormac on #5843: a `claimable=false` call
  behind "held by others" also returned her cards and every merged and closed
  card). `work/list`'s filters are one `Selector`.
- Deleted the per-tool truncation: `WorkListParams::limit`, its truncate and
  its note.

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

* Files this change touches leave clean: owner match by is_some_and, the board-read mark threshold and the ViewState wire decode say why

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

* work/list's select and listed take any iterator, and the nav entry's copies are taken before the card moves in: no new contract_shape sites

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

* The agentic surface ceiling moves 17986 -> 18094 for work/list's typed group, measured in CI

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

---------

Co-authored-by: Claude Opus 5.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