Skip to content

A collapsed block keeps only units with a pointer: her board collapses to her own cards, not 592 one-line card pointers - #5681

Merged
joelteply merged 3 commits into
canaryfrom
fable/collapsed-cards-leave
Nov 1, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fable/collapsed-cards-leave

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Serves faster, sharper minds: 21k chars of near-empty card pointers leave every resident's prompt.

Measured (M5, 8f565e6, 2026-11-01, prompt captures, scratchpad boardsize.py)

Cause

RagItem::pointer documents None as "a collapsed item leaves her view entirely". But context_streams/blocks.rs built the block's pointer level as unit.pointer.or(summary).unwrap_or(content), so no unit ever left. The board also gave every card a pointer.

Change

  • blocks.rs honors the contract: a unit with no pointer leaves the collapsed block. A block that would keep nothing collapses to its truthful minimum.
  • Board: a card keeps a pointer only when she owns it. Other cards leave the collapsed board; the headline and the available-work lead count them, and work/list lists them.
  • Explicit pointers on the units that must survive a collapse (their own text). I audited every block source first:
    • the board headline;
    • the awareness strip's heading and lines (no reopen verb);
    • the recall frame.
  • Unchanged: wall, doctrine, workspace map, active work, media and roster already set pointers on every unit.

Tests (M5, serving down)

  • continuum-cognition context_streams/recall/prompt_shaping 116/0.
  • continuum-mind room_board_source/awareness 20/0.
  • continuum-core deliberation 18/0.
  • source-hygiene 75/0.
  • New: a_unit_without_a_pointer_leaves_the_collapsed_block.
  • Updated: the large-board test (only her card keeps a pointer) and the headline test (its own pointer).

After deploy (owner Fable)

boardsize.py: card lines per resident fall to her held cards. Prompt chars per act drop about 21k on Aris and Benchy.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…s to her own cards, the headline and the leads, not 592 one-line card pointers

RagItem::pointer None means a collapsed item leaves her view, but blocks.rs fell back to each unit's
summary or whole content, so no unit ever left. On the M5 (8f565e6, 2026-11-01) Aris's and Benchy's
collapsed boards were 592 '[card x] [Open] — work/list' lines, 21k chars of every prompt.

- blocks.rs honors the contract; a block that would keep nothing collapses to its minimum.
- The board gives a card a pointer only when she owns it; others leave the collapsed board, counted by
  the headline and the available-work lead, listed by work/list.
- Units that must stay collapsed now say so with their own text as pointer (the audit of every block
  source): the board headline, the awareness strip's heading and lines (no reopen verb), the recall
  frame. Wall, doctrine, workspace map, active work, media and roster already set pointers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply and others added 2 commits October 31, 2026 20:26
… its id and verb, so the recall frame needs no pointer of its own (and the file's eight sized constants are a separate cleanup)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…y a block that keeps nothing falls to its minimum (Codex and Cormac on #5681)

blocks.rs rejected a collapsed join equal to the whole and swapped in the block's minimum, so the
awareness strip (each line its own pointer) collapsed to whatever minimum its piece carried, which
nothing pins to the strip. The join now stands; the new assertion in
a_unit_without_a_pointer_leaves_the_collapsed_block pins it.

The recall frame leaving a collapsed recall block is deliberate: collapsed memories are id+verb handles
that state no fact, so none can be read as present. recall_faculty.rs's 'the frame stays whole' comment and
its eight sized constants are carded (owner named on the card).

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

Copy link
Copy Markdown
Contributor Author

Reviewed exact head da82ad0: PASS for the context-source change. The explicit self-pointer case now survives even when its text equals the full block; the regression uses a distinct minimum and would catch the previous substitution. Full card claims remain available to the shared allocator, while the collapsed board retains owned-card and aggregate retrieval handles. Recall-frame omission is now an explicit design choice; its stale comment remains tracked by the author.

Verified GitHub cognition and mind test jobs and source-hygiene success at this head. Core tests were still running at review time: this is not permission to bypass remaining CI. No local execution or measured post-deployment latency claim. Deployment verification should inspect exact fitted requests, retrieval, and subsequent useful work.

@joelteply
joelteply merged commit 9810171 into canary Nov 1, 2026
28 of 31 checks passed
@joelteply
joelteply deleted the fable/collapsed-cards-leave branch November 1, 2026 01:46
joelteply added a commit that referenced this pull request Nov 1, 2026
…5682)

The deletion of the runner's preinstalled toolchains (#5674) runs in the
background, and the cache restore began 43 s later while it was still
running: a 26.04 runner with a 72G disk and 19G free ran out of space
unpacking the 24 GB target (#5681's continuum-dreaming job, run
41261287633, 2026-11-01 01:32Z). The deletion still overlaps the toolchain
and package installs; a new step waits for it before the restore and
reports how long it waited and the room it left.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Nov 7, 2026
#5682 made every Rust job wait for the whole toolchain deletion before
restoring the target cache: 66 s on a runner that already had 87G free
(warm run 41280912785, ubuntu26 20261026.180.1, 2026-11-01). The restore
needs its 29 GB (24 GB unpacked plus the 5 GiB download) on the disk it
unpacks onto, so the step now waits only while the deletion runs AND
/ci-target has less than 40 GB free; the 19G-free 72G runner that
failed #5681 still waits, every roomy runner goes straight on, and the
rest of the deletion finishes in the background. The notice reports the
wait and /ci-target's room (on 24.04 runners /ci-target is /mnt, where
the root deletion frees nothing, so it no longer waits there at all).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Nov 11, 2026
…om (#5685)

* CI waits for the freed toolchains only until the cache restore has room

#5682 made every Rust job wait for the whole toolchain deletion before
restoring the target cache: 66 s on a runner that already had 87G free
(warm run 41280912785, ubuntu26 20261026.180.1, 2026-11-01). The restore
needs its 29 GB (24 GB unpacked plus the 5 GiB download) on the disk it
unpacks onto, so the step now waits only while the deletion runs AND
/ci-target has less than 40 GB free; the 19G-free 72G runner that
failed #5681 still waits, every roomy runner goes straight on, and the
rest of the deletion finishes in the background. The notice reports the
wait and /ci-target's room (on 24.04 runners /ci-target is /mnt, where
the root deletion frees nothing, so it no longer waits there at all).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* The restore waits for the room it measured, 29 GB, with no unmeasured headroom

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* CI's restore wait compares bytes, never df's rounded-up gigabytes (Codex on #5685)

df -B1G rounds available blocks up, so 28 GiB + 1 byte printed 29 and skipped the wait. The step
now reads df -B1 and waits while /ci-target holds fewer than 29 GiB in bytes; the deletion-ended
escape is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[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