consciousness/src/agent
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
..
api simplify http library 2026-04-11 16:45:54 -04:00
tools Add -tool exclusion syntax, exclude delete/restore for agents 2026-04-15 02:44:13 -04:00
context.rs learn: nanosecond timestamps, token ranges for /score 2026-04-16 11:48:37 -04:00
mod.rs Remove find_context_files — identity comes from memory nodes 2026-04-15 03:11:27 -04:00
oneshot.rs Remove find_context_files — identity comes from memory nodes 2026-04-15 03:11:27 -04:00
tokenizer.rs WIP: Rename context_new → context, delete old files, fix UI layer 2026-04-08 15:20:26 -04:00