consciousness/src/agent
ProofOfConcept b8485ed6c1 agent: compact() preserves Identity section
compact() was calling reload_context() to re-fetch personality_nodes
from the store and pushing fresh AstNode::memory leaves into the
Identity section. Fresh leaves start with score: None, so every
compact — which fires after every turn (mind/mod.rs:884) — was
wiping any memory scores that had just been computed. Scoring then
often ran immediately after compact on the same path (line 886),
starting from a zero-score Identity section.

Drop the rebuild. Identity content is loaded at startup via new() +
restore_from_log(); compact doesn't need to redo that. Mid-session
edits to personality-node content are a non-goal — a restart picks
them up. Scores survive.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-16 20:47:05 -04:00
..
api agent: send images as multi_modal_data on completion requests 2026-04-16 18:08:26 -04:00
tools agent: rewrite view_image to emit Image leaves 2026-04-16 18:06:25 -04:00
context.rs agent: send images as multi_modal_data on completion requests 2026-04-16 18:08:26 -04:00
mod.rs agent: compact() preserves Identity section 2026-04-16 20:47:05 -04:00
oneshot.rs config: move user_name/assistant_name to AppConfig (top level) 2026-04-16 16:20:17 -04:00
tokenizer.rs agent: add NodeBody::Image for Qwen3-VL vision input 2026-04-16 18:00:10 -04:00