Repository navigation
fix(airc-purity): voice-mirror warn → live.log, LIVE-validated + end-to-end proof of #194 deploy guard - #1957
Conversation
…IVE-VALIDATED (#193) The #193 divergence warn now uses clog_warn! (auto-routes by module_path to live.log — the SAME sink the orchestrator's register logs use), replacing log_warn!/tracing::warn! which routed to sinks I never found. Also the FIRST end-to-end proof of the #194 deploy guard: this new behavior actually SHIPPED through the guarded start-server.sh and ran. LIVE RECEIPT (running core, this branch): DIVERGENT session_id != room_id → [WARN] live: MIRROR ROOM (#193): ... dddddddd != eeeeeeee — the LiveKit call is keyed by a client-minted session_id, not the room_id. COLLAPSED session_id == room_id → SILENT (0 MIRROR lines). So the instrument works: fires on the parallel-room-authority, silent when the call IS the airc room. It is the glass-box we watch go quiet when the actual collapse lands. Refs #193, #194. [[all-rooms-are-airc-rooms-no-mirrors]], [[verify-the-build-actually-deployed]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…as seeing a live call The methodical plan to get personas perceptive through LiveKit: frame → MediaFrame (content-hash) → deep cells (describe/pose/detect, computed once, shared) → per-persona projection → cognition → perceive/speak. Decisions baked in: Qwen3-VL-7B local as first eyes; ambient + drill-in intake. 6 phases, each with a validation gate; critical path = Phase 1 (Qwen3-VL up) → Phase 2 (video_rx → MediaFrame) → Phase 3 (render wire #190, the 'persona describes the call' milestone). #193 (call = airc room) runs parallel for identity/purity. Grounded in what's already in tree — wiring + one model bring-up. Refs #106, #187, #190, #192, #193. [[media-is-compute-once-zero-copy-hardware-grade]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…lution as context config; KV/memory reuse the hard constraint
Joel: the forced-look frames are thumbnails (~480w) so ambient perception is cheap
context; personas request bigger via the drill-in tool, or it's a per-persona/situation
context config. Must be smart given memory + KV reuse. Baked into the plan: one scaled
cell per frame content-hash shared to all viewers, image-token KV encoded ONCE and reused
across ticks + viewers ('thumbnails into KV once for all'); sampling cadence, not 30fps.
The ambient look is nearly free on the 2nd..Nth consumer by design.
Refs #190, #192. [[perception-feedback-must-not-blow-rag]], [[media-is-compute-once-zero-copy-hardware-grade]]
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…naged product) Joel: a repo user isn't asking Claude to run huggingface-cli. Corrected Phase 1: the VL bring-up self-provisions via the EXISTING provisioning::Downloader / models/pull path (GGUF + mmproj from the Model row's hf_source, no CLI dependency); mmproj resolution must match the GGUF's local→HF-cache→pull (today resolve_mmproj_for_model only checks the declared local path — the gap that forces manual placement). Gate: clean machine + declared VL row → auto-provision → vision-describe works, ZERO manual steps. Refs #106. [[managed-product-everything-self-provisions-no-operator-steps]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…— async/buffer-first, must not dominate Joel: thumbnails/descriptions arrive when they arrive, ABSOLUTELY non-blocking, cached; but they pile up, so like any positronic system they're a managed RAG budget — must not dominate (deep thoughts can't crowd rapid response). Design async/buffer-first, not blocking-then-patched. Baked into the resolution/budget section: (1) cells bridge in when ready, persona never waits; (2) a MediaPerceptionSource:RagSource delivers the room-as-now percepts under the ONE flexbox budget, decayed/focus-weighted, competing with engram/airc/roster, never crowding them. Refs #190, #192, #8, #167. [[command-async-shape-prefer-stream-never-block]], [[budget-at-assembly-not-clamp-the-prompt]], [[alive-fast-and-deep-three-layer-stack]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rn-routing # Conflicts: # core/continuum-core/src/modules/live.rs
joelteply
left a comment
There was a problem hiding this comment.
[IntelMac non-author review] Genuinely unlanded — all 6 commits absent from canary, two files, small. But it has been open 52 days and CANARY MOVED UNDER IT: the defect this PR describes was fixed at the macro level, so the description now misdescribes current behaviour even though the change itself is still defensible.
THE PREMISE IS OBSOLETE. The PR says the earlier log_warn!/tracing::warn! versions "routed to sinks that were never visible". On canary today, log_warn! is:
if let Some(logger) = $crate::logging::LOGGER.get() {
logger.log(...)
} else {
// NO LOGGER = NO SILENCE. `init_logger` has exactly one production caller
// (ffi/mod.rs — the legacy Node-embedding entry), so on the NATIVE server this
// arm is the only one that ever runs. Before this `else`, all 615 `log_*` call
// sites evaporated there. Falls through to the SAME sink `clog_*` already writes
// to, so there is one file-logging truth rather than a third path.
if $crate::modules::logger::log_sink_ready() {
$crate::logging::write_log_direct($category, "WARN", $component, &format!($($arg)*));
}
}
Someone fixed the invisibility for all 615 call sites at once, explicitly so log_* and clog_* would not be two different truths. On the native server that else is the arm that always runs. So "never visible" is no longer the situation, and a reader taking this PR's description at face value would form a wrong model of the logging layer.
THE CHANGE IS STILL DEFENSIBLE, FOR A DIFFERENT REASON THAN STATED — and this is worth putting in the description, because it is the actual justification now. Both macros end at the same write_log_direct behind the same log_sink_ready() gate. What differs is the CATEGORY:
log_warn!("module", "voice_register_session", …) -> category "module", explicit
clog_warn!(…) -> category = module_path_to_category(module_path!())
So the real effect of this PR is that the row's category stops being the literal string "module" and becomes the one derived from modules::live — which is what actually lands it in live.log beside the orchestrator's register logs. That is a genuine improvement and it is exactly what the PR title claims ("warn → live.log"). It just is not a visibility fix any more; it is a ROUTING fix, and those are different claims.
THE MERGE NOTE'S ASSUMPTION STILL HOLDS — I checked rather than assumed. Canary's block does carry the alias RECORDING above the warn ("Record BEFORE the idempotency guard: a browser refresh mints a NEW session_id for the same room…", inserting into legacy_call_aliases), so "canary added the alias, #1957 changes only where the warn lands" is accurate today. Keeping canary's message and re-routing it is the right resolution, and the note explaining why picking either side alone would drop real work is the kind of thing that should survive into the commit.
PRE-EXISTING AND NOT YOURS, but you are touching the file so you may want to know: BOTH macros gate the direct-write on log_sink_ready() with NO else. A warning raised before the sink is up is dropped with no trace, on either path, across all 615 call sites. That is card c7ae34b2 (a read/write whose failure renders as silence) living in the logging layer itself — the layer we would use to observe every other instance. I am not asking this PR to fix it and I have not measured whether the window is reachable in practice; flagging because "the instrument's own instrument can go quiet" is the kind of thing that is cheap to know and expensive to discover.
WHAT I CHECKED: the six commits against canary; clog_warn!'s and log_warn!'s definitions on canary; canary's current live.rs block including the alias recording; that module_path_to_category is what drives the routing difference. WHAT I DID NOT: run either macro, verify which file module_path_to_category("...modules::live") actually resolves to, or reproduce the LIVE receipt in the description — that receipt is from a running core 52 days ago and I have no voice session here to re-run it against.
Non-blocking. The routing change looks right; I would just rewrite the description's first paragraph before it lands, so the merged history does not record a defect that had already been fixed elsewhere.
One commit, touching modules/live.rs and a planning doc; no overlap with the shutdown rail. Keeps the PR current so the merge into canary is clean. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
The #193 voice-session mirror warn now routes via
clog_warn!tolive.log(the sink where the orchestrator's register logs land) — the earlierlog_warn!/tracing::warn!versions routed to sinks that were never visible.Live receipt (running core):
session_id != room_id→[WARN] live: MIRROR ROOM (#193): ... dddddddd != eeeeeeee ...fires.session_id == room_id→ silent (0 MIRROR lines).This is also the first end-to-end proof of the #194 freshness guard: this new
clog_warnbehavior actually shipped through the guardedstart-server.shand ran on the live core — the deploy no longer reports 'ready' on stale code.The instrument is now a working glass-box for the eventual voice→airc collapse (#193): we watch it go quiet when the call finally IS the airc room.
Refs #193, #194.
🤖 Generated with Claude Code