consciousness/src/mind
Kent Overstreet 2b632d568b learn: nanosecond timestamps, token ranges for /score
Two related changes to the learn subsystem:

1. AST node timestamps are now non-optional — both Leaf and Branch
   variants carry a DateTime<Utc>. UNIX_EPOCH means "unset" (old entries
   deserialized from on-disk conversation logs).

   Training uses timestamps as unique keys for dedup, so we promote to
   nanosecond precision: node_timestamp_ns(), TrainData.timestamp_ns,
   FinetuneCandidate.timestamp_ns, mark_trained(ns).

2. build_token_ids() now also returns token-position ranges of assistant
   messages. These are passed to vLLM's /score endpoint via the new
   score_ranges field so only scored-position logprobs are returned —
   cuts bandwidth/compute when scoring small windows.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-16 11:48:37 -04:00
..
identity.rs Remove find_context_files — identity comes from memory nodes 2026-04-15 03:11:27 -04:00
log.rs learn: nanosecond timestamps, token ranges for /score 2026-04-16 11:48:37 -04:00
mod.rs F6 learn screen: fine-tuning candidate review 2026-04-16 02:04:26 -04:00
subconscious.rs DMN: wire dream hours reminder into Foraging state 2026-04-15 21:52:20 -04:00
unconscious.rs unconscious: event-driven loop via tokio::select! 2026-04-13 22:38:01 -04:00