Skip to content

Flow plan: a mind's window follows what she reads, as demand events - #5709

Merged
joelteply merged 3 commits into
canaryfrom
fable/window-by-demand-events
Nov 7, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fable/window-by-demand-events

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel (2026-11-02): "Ideally it finds who needs it too" and "Based really on what they're reading yeah just need the data flow model to send events as these things happen up or down."

Docs only: FLOW-IMPLEMENTATION-PLAN.md gains §6e.

Measured that day: four M5 residents were at 58,112 tokens each, down from 78k. One fixed 290,560-token pool was split into five equal slots, one of them a scratch slot serving a 432-token prompt. Six answers were cut at the output limit that hour; Aris was cut at 465 tokens against a measured peak of 799.

The design:

  • Demand is what she holds in view. The view codec publishes a typed DemandChanged event, only when her demand moves up or down.
  • One allocator grants every mind's window from one shared pool, sleeping on those events. Priority follows activity, scratch traffic claims only what it uses, and every downward grant has a scheduled upward test.
  • The engine honours uneven grants: slots share one KV pool (--kv-unified), so a change in grants never relaunches the engine.
  • One window owner per turn (card 1c508526), so no reader holds a stale window.

Order: unified KV (Codex), then per-mind grants, then demand events from the codec (Fable), then the one-window read. The validator comes first: a simulator run with four minds reading unevenly.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 2 commits November 7, 2026 09:32
…ve with revisions, versioned grants that never shrink under an in-flight turn, the fork's per-slot capability proven first, validator before engine work

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/window-by-demand-events branch from 3ae8f63 to fdab264 Compare November 7, 2026 15:37
@joelteply
joelteply merged commit d5f2910 into canary Nov 7, 2026
11 checks passed
@joelteply
joelteply deleted the fable/window-by-demand-events branch November 7, 2026 15:56
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