consciousness/src
Kent Overstreet 343e43afab learn: stream candidates to UI, update status during alternate gen
With the timestamp filter gone (previous commit), score_finetune_candidates
started returning the actual ~100+ candidates per scoring run. The
existing code generated alternates for all of them in a tight loop
before returning anything, leaving the status line stuck on
"finetune: scoring N responses..." for ~100s of seconds while the
B200 was pegged.

Two fixes:

1. score_finetune_candidates now takes an ActivityGuard and a callback.
   Candidates are emitted one-at-a-time as they complete (after their
   alternate if that's enabled, immediately otherwise). The activity
   status updates to "finetune: generating alternate N/M" during the
   alternate-gen phase so it's clear what's happening.

2. BgEvent::FinetuneCandidates(Vec<_>) → FinetuneCandidate(one). Each
   emitted candidate is pushed onto shared.finetune_candidates; the UI
   tick picks it up and renders it on the next frame. start_finetune_scoring
   clears the previous run's list at the top so each run is fresh.

Return type changes from (Vec, f64) → (usize, f64) — the count above
threshold is all the caller still needs since the candidates stream
through the callback.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-16 12:44:25 -04:00
..
agent context: tighten timestamp schema; every AstNode has one 2026-04-16 12:35:16 -04:00
bin context: tighten timestamp schema; every AstNode has one 2026-04-16 12:35:16 -04:00
cli Simplify context config: personality_nodes and agent_nodes 2026-04-15 02:37:49 -04:00
hippocampus store: add weight to index, index-only key matching 2026-04-15 05:14:04 -04:00
learn rust edition 2024 2026-04-05 06:20:16 -04:00
mind learn: stream candidates to UI, update status during alternate gen 2026-04-16 12:44:25 -04:00
subconscious learn: stream candidates to UI, update status during alternate gen 2026-04-16 12:44:25 -04:00
thalamus hours_since_last_dream: return 0 if dream in progress 2026-04-15 21:58:03 -04:00
user learn: move threshold/gen state out of title bar into a settings row 2026-04-16 12:44:13 -04:00
config.rs learn: F6 screen — scoring stats, ActivityGuard, configurable threshold 2026-04-16 11:49:26 -04:00
config_writer.rs config_writer: json5 round-trip editing via json-five 2026-04-16 11:48:47 -04:00
lib.rs config_writer: json5 round-trip editing via json-five 2026-04-16 11:48:47 -04:00
locks.rs locks: add process-wide lock hold time tracking 2026-04-12 20:27:42 -04:00
main.rs cli: add 'node restore' command for undeleting nodes 2026-04-15 01:40:29 -04:00
mcp_server.rs memory.rs: clean up store access and tool dispatch 2026-04-13 14:27:38 -04:00
session.rs delete claude code integration 2026-04-09 19:58:07 -04:00
util.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00