consciousness/src/user
Kent Overstreet cf1c64f936 Split context_state_summary: ContextBudget for compaction, UI-only for display
context_state_summary() was used for both compaction decisions (just
needs token counts) and debug screen display (needs full tree with
labels). Split into:

- Agent::context_budget() -> ContextBudget: cheap token counting by
  category, used by compact(), restore_from_log(), mind event loop
- ContextBudget::format(): replaces sections_budget_string() which
  fragily pattern-matched on section name strings
- context_state_summary(): now UI-only, formatting code stays here

Also extracted entry_sections() as shared helper with include_memories
param — false for context_state_summary (memories have own section),
true for conversation_sections_from() (subconscious screen shows all).

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-07 19:02:58 -04:00
..
chat.rs Split context_state_summary: ContextBudget for compaction, UI-only for display 2026-04-07 19:02:58 -04:00
context.rs Memory scores on entries, not a separate Vec 2026-04-07 03:14:24 -04:00
mod.rs Fix build warnings across workspace 2026-04-07 13:55:30 -04:00
subconscious.rs Restrict API types visibility — types module is now private 2026-04-07 13:39:20 -04:00
thalamus.rs Fix build warnings across workspace 2026-04-07 13:55:30 -04:00
unconscious.rs fix unused imports 2026-04-06 22:43:55 -04:00