consciousness/src/agent
ProofOfConcept ddfdbe6cb1 Move conversation_log from AgentState to ContextState
The log records what goes into context, so it belongs under the context
lock. push() now auto-logs conversation entries, eliminating all the
manual lock-state-for-log, drop, lock-context-for-push dances.

- ContextState: new conversation_log field, Clone impl drops it
  (forked contexts don't log)
- push(): auto-logs Section::Conversation entries
- push_node, apply_tool_results, collect_results: all simplified
- collect_results: batch nodes under single context lock
- Assistant response logged under context lock after parse completes

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-09 00:32:32 -04:00
..
api Fix UTF-8 slicing panics: use floor_char_boundary for all truncation 2026-04-08 19:35:01 -04:00
tools Output tool via Arc<Mutex<Subconscious>> closure — complete 2026-04-08 20:41:42 -04:00
context.rs Move conversation_log from AgentState to ContextState 2026-04-09 00:32:32 -04:00
mod.rs Move conversation_log from AgentState to ContextState 2026-04-09 00:32:32 -04:00
oneshot.rs Feed observe agents their recent writes to prevent duplicate nodes 2026-04-08 23:27:12 -04:00
tokenizer.rs WIP: Rename context_new → context, delete old files, fix UI layer 2026-04-08 15:20:26 -04:00