consciousness/src/user
Kent Overstreet c22b8c3a6f Unify budget and context state — single source of truth
Kill ContextBudget and recompute_budget entirely. Budget percentages,
used token counts, and compaction threshold checks now all derive from
the ContextSection tree built by context_state_summary(). This
eliminates the stale-budget bug where the cached budget diverged from
actual context contents.

Also: remove MindCommand::Turn — user input flows through
shared_mind.input exclusively. Mind::start_turn() atomically moves
text from pending input into the agent's context and spawns the turn.
Kill /retry. Make Agent::turn() take no input parameter.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-06 22:43:55 -04:00
..
chat.rs Unify budget and context state — single source of truth 2026-04-06 22:43:55 -04:00
context.rs fix unused imports 2026-04-06 22:43:55 -04:00
mod.rs fix unused imports 2026-04-06 22:43:55 -04:00
subconscious.rs fix unused imports 2026-04-06 22:43:55 -04:00
thalamus.rs fix unused imports 2026-04-06 22:43:55 -04:00
unconscious.rs fix unused imports 2026-04-06 22:43:55 -04:00