Skip to content

work/list returns the board's nav from the owner her view uses (card e0b2b5b1) - #5843

Merged
joelteply merged 8 commits into
canaryfrom
fable/tool-output-through-nav
Nov 14, 2026
Merged

joelteply merged 8 commits into
canaryfrom
fable/tool-output-through-nav

Conversation

@joelteply

@joelteply joelteply commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

How this serves the minds: a resident's work/list should show her the board the way her view does, small and navigable, instead of an 80k-token dump that becomes a handle she has to page. This advances goal 7 (one budget, one codec) and path step 1 (Fast: fewer wasted acts). Card e0b2b5b1.

Stacked on #5840 (base: fable/her-newest-result-is-whole). Retarget to canary once #5840 merges.

What was wrong (receipt)

The change

One owner for the board's shape: persona::board_nav::group_of (new)

  • It decides which group a card sits in off her focus, and the work/list call that opens that group.
  • room_board_source and work/list both call it. The closure in room_board_source is deleted.

work/list with no filter runs nav::collapse over the board:

  • Her cards come back whole.
  • Each live group's most recently changed cards stand on their own (nav::standing: 600 claimable cards show 25).
  • The rest of each group is one folded line, {group, count, open}, where open is the call that lists it whole. It is serialized before cards.
  • History (merged/closed) is only its fold.

work/list with a filter is that group opened, whole, sorted as before.

nav::Origin::Node now carries its typed Expand, so a structured consumer never re-derives the command. viewstate_rag records it as well.

Every fold opens exactly its group (Cormac on #5843). board_nav::BoardGroup (claimable, held_by_others, merged, closed) is the typed group that group_of returns. Each fold's call is work/list group=<its group>, and the group selector filters through group_of itself. Before, the "held by others" fold opened with claimable=false, which also returned her cards and every merged and closed card. work/list's filters are now one Selector.

Deleted: the per-tool truncation, i.e. WorkListParams::limit, its truncate, and its "N of M listed" note.

Not in this PR (owned follow-up)

  • The general codec move. The trunk ask is that every tool result becomes a keyed item shaped by levels (Code/Output/List), with every list going through nav::collapse.
    • Today, older results still level through working_memory::operation_level / spill::result_text.
    • This PR only migrates the one measured case (work/list) to its owner's nav and proves the seam (Origin::Node typed Expand, a structured consumer of collapse).
    • Owner: Fable, as the next PR on card e0b2b5b1.
  • tool/output argument rules (no-args, both selectors, half ranges, a reopen being a view of its source rather than a new output) stay with Cormac's card 47035f1d. This PR does not touch spill or tool/output.

Measured

Source and tests only. Nothing was deployed, and the M5 core was not touched. 2026-11-07.

  • cargo test -p continuum-mind --features metal --lib: 1115 passed, 2 ignored.
    • New test: an_unfiltered_list_is_the_boards_nav_and_each_fold_opens_exactly_its_group. A board shaped like the M5's (2 of hers, 600 claimable, 40 held by others, 174 merged, 840 closed) returns her 2 cards plus each live group's most recent (25 + 7), and four folds. For EVERY fold, running its own call returns exactly the cards group_of assigns that group, no more and no fewer, and none of them are folded again.
    • The board-view tests now pin work/list group=… node calls.
  • cargo test -p continuum-context --lib: 112 passed. The nav test now pins Origin::Node's expand.
  • cargo run -p source-hygiene --bin ratchets -- origin/canary: exit 0.
  • Owed after deploy (owner: whoever deploys the next canary to the M5; deadline: the first 60 minutes after that deploy):
    • size of work/list results in prompt captures (241k chars before)
    • follow-on read_output calls after a work/list

🤖 Generated with Claude Code

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
joelteply force-pushed the fable/tool-output-through-nav branch from f361581 to 2bc0764 Compare November 7, 2026 20:42
@joelteply
joelteply force-pushed the fable/her-newest-result-is-whole branch 2 times, most recently from 05d60ba to eb7c506 Compare November 7, 2026 21:10
@joelteply
joelteply force-pushed the fable/tool-output-through-nav branch from 2bc0764 to 6f62bff Compare November 7, 2026 21:12
…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 force-pushed the fable/tool-output-through-nav branch from 6f62bff to 7009d40 Compare November 7, 2026 21:26
@joelteply

Copy link
Copy Markdown
Contributor Author

FAILED #5843 at 7009d40, on one fold: "held by others" opens a call that is not its group.

The defect:

  • board_nav::group_of gives the held-by-others group expand = work/list claimable=false.
  • listed(…, filtered=true) returns every match whole, and the claimable=false filter keeps r.claimable == false.
  • That set is her own cards, every held-by-others card, and every merged and closed card (none of those are claimable).
  • So "▸ held by others (N) → work/list claimable=false" opens N plus her cards plus all of history. On the M5 board that is the 174 merged cards plus every closed one; 840 closed cards were 31,185 chars on 2026-10-31.
  • That puts back the very flood this PR removes, behind a fold that promises one group.
  • Before this PR the view's fold opened work/list (also not the group), so this isn't a regression in the view. But the PR's claim is "each fold names the call that lists it whole".

Minimal fix. A fold's call must select exactly its group. Either:

  • add one typed selector the board_nav group maps to, e.g. held_by: "others", or a group param naming a board_nav label that listed filters on through group_of itself;
  • or fold held-by-others with state=claimed plus an owner-not-me filter.

Using group_of as the filter would make one owner decide both the fold and what opening it returns.

Test to add: for each fold in the M5-shaped board, opening its open call returns exactly that group's cards. That means count + standing for Recent folds and count for All folds, never another group's.

What I verified:

  • One grouping. room_board_source now calls board_nav::group_of. The inline copy is deleted, so the view and the tool share it.
  • Nav nodes carry their call. Origin::Node carries the typed expand, and viewstate_rag renders it.
  • The test pins the claimable fold. Unfiltered on 2 hers + 600 claimable + 174 merged gives 2 + standing cards and two folds, and opening claimable gives 600.
  • Old callers decode. limit is removed from Params with no deny_unknown_fields, so a model's habit call still decodes.

Non-blocking:

  • One caller still sends limit: template_overhead.rs:114 probes work_list with {"room":"general","limit":5}. The PR says no caller remains; drop the field there.

Not run: the mind tests (Fable's 1115). I read the diff at 7009d40.

Base automatically changed from fable/her-newest-result-is-whole to canary November 7, 2026 21:34
…ards 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
@joelteply
joelteply force-pushed the fable/tool-output-through-nav branch from 7009d40 to 25e9f3d Compare November 7, 2026 21:41
@github-actions github-actions Bot added size: XL and removed size: M labels Nov 7, 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
@github-actions github-actions Bot added size: L and removed size: XL labels Nov 11, 2026
@joelteply
joelteply merged commit 0767e19 into canary Nov 14, 2026
18 checks passed
@joelteply
joelteply deleted the fable/tool-output-through-nav branch November 14, 2026 07:17
joelteply added a commit that referenced this pull request Nov 14, 2026
The agentic surface ceiling takes both deltas: #5843's 108 (work/list group) and this PR's 435
(the three landing verbs), each measured in CI, independent, so 18270 + 435 = 18705.

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