Skip to content

engine: mind_table (interface + resident adapter); the minds fragment becomes a class - #146

Draft
joelteply wants to merge 2 commits into
fable/engine-memory-poolfrom
fable/engine-mind-table
Draft

joelteply wants to merge 2 commits into
fable/engine-memory-poolfrom
fable/engine-mind-table

Conversation

@joelteply

Copy link
Copy Markdown

CONTINUUM-ENGINE 4.12.1. engine/mind_table.h (where each mind lives and which to move; every byte move is memory_pool's) and engine/mind_table_resident.cpp (#139's table, a class behind a factory with a typed refusal). The make-room policy that was split across the minds and slots fragments is one verb with an explicit scope; parked ids are lent and returned instead of shared; host bytes are read through a verb. server-context-minds.inc deleted. Parses per unit; CI is the build proof.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 2 commits November 16, 2026 20:04
…fore extracting the resident-minds fragment

Where each mind lives and which to move; every move is memory_pool's. Verbs from the fragment's callers: enabled,
prefetch, seat (was mind_switch), make_room (flash_coldest plus the idle-lane flash that lived in the slots
fragment's try_clear_idle_slots: one policy, one owner), release_pin, reap, and lend_id/return_id/free_ids for the
parked ids learning borrows (today read and written as park_free across three fragments and the routes). Built from
mind_table_config (startup facts) plus the pool, the page-IO worker and, until slot_registry exists, the slots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… behind mind_table; server-context-minds.inc deleted (CONTINUUM-ENGINE 4.12.1)

- engine/mind_table_resident.cpp: the fragment's methods moved whole into a class private to the file; the engine
  fields it read became dependencies (mind_table_config of startup facts, the memory pool, the page-IO worker, the
  slots); verbs renamed to the interface (enabled, prefetch, seat, release_pin, reap)
- make_resident_minds(): minds_init's checks as a typed refusal (kv_unified, page dir), its parked-id setup in the
  constructor; built in load_model right after the pool
- make_room(room_from): the coldest-parked flash plus the idle-lane flash that lived in the slots fragment; callers
  name their scope (a placement may take an idle lane's mind, a checkpoint's host bytes only parked minds), so no
  caller's behavior changed
- lend_id/return_id/free_ids replace park_free read and written by learning, the routes and the minds code;
  host_bytes(host_count) replaces the checkpoint code iterating the minds
- learn_pin_clock stays on the engine for the learner

Every translation unit parses; the class compiles -Wall -Wextra clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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